-- MySQL dump 10.16  Distrib 10.1.48-MariaDB, for debian-linux-gnu (x86_64)
--
-- Host: localhost    Database: SPYquartup1
-- ------------------------------------------------------
-- Server version	10.1.48-MariaDB-0+deb9u2

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `maesartiprerec`
--

DROP TABLE IF EXISTS `maesartiprerec`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `maesartiprerec` (
  `id_maesartiprerec` int(11) NOT NULL DEFAULT '0' COMMENT 'Nº regla cambio',
  `nombre` text NOT NULL COMMENT 'Descripción',
  `estado` tinyint(4) NOT NULL DEFAULT '1' COMMENT 'Estado',
  `ori_nivel` tinyint(4) NOT NULL DEFAULT '1' COMMENT 'Nivel orígen',
  `ori_cod_tarifa` char(4) NOT NULL DEFAULT '' COMMENT 'Tarifa orígen',
  `ori_cod_cuenta` char(12) NOT NULL DEFAULT '' COMMENT 'Cuenta orígen',
  `ori_cantidad_d` decimal(20,8) NOT NULL DEFAULT '0.00000000' COMMENT 'Desde cantidad orígen',
  `des_nivel` tinyint(4) NOT NULL DEFAULT '1' COMMENT 'Nivel destino',
  `des_cod_tarifa` char(4) NOT NULL DEFAULT '' COMMENT 'Tarifa destino',
  `des_cod_cuenta` char(12) NOT NULL DEFAULT '' COMMENT 'Cuenta destino',
  `des_cantidad_d` decimal(20,8) NOT NULL DEFAULT '0.00000000' COMMENT 'Desde cantidad destino',
  `sw_imp_tpc` char(1) NOT NULL DEFAULT 'T' COMMENT 'Tipo variación',
  `sw_neto` char(1) NOT NULL DEFAULT 'N' COMMENT 'Pasar precio y dtos',
  `sw_iva` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Quitar/añadir iva',
  `aumento` decimal(20,8) NOT NULL DEFAULT '0.00000000' COMMENT 'Variación',
  `tpc_add_desde` decimal(20,8) NOT NULL DEFAULT '0.00000000' COMMENT '% variación precios pequeños',
  `tpc_add_hasta` decimal(20,8) NOT NULL DEFAULT '0.00000000' COMMENT '% variación precios grandes',
  `precio_tpc_medio` decimal(20,8) NOT NULL DEFAULT '0.00000000' COMMENT 'Precio de aumento medio',
  `precio_add_minimo` decimal(20,8) NOT NULL DEFAULT '0.00000000' COMMENT 'Precio variado mínimo',
  `precio_add_maximo` decimal(20,8) NOT NULL DEFAULT '0.00000000' COMMENT 'Precio variado máximo',
  `decimales` tinyint(4) NOT NULL DEFAULT '3' COMMENT 'Decs. cálculos',
  `redondeo` decimal(20,8) NOT NULL DEFAULT '0.00000000' COMMENT 'Redondeo',
  `id_tenant` smallint(6) NOT NULL DEFAULT '1' COMMENT 'Nº empresa',
  `filter_cod_familia` text NOT NULL COMMENT 'Filtro familias',
  `php_sw_maesarti` text NOT NULL COMMENT 'Filtro PHP producto',
  UNIQUE KEY `key0` (`id_tenant`,`id_maesartiprerec`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `maesartiprerec`
--
-- WHERE:  id_tenant='1'

LOCK TABLES `maesartiprerec` WRITE;
/*!40000 ALTER TABLE `maesartiprerec` DISABLE KEYS */;
/*!40000 ALTER TABLE `maesartiprerec` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2025-10-30  8:41:15
