-- 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 `maesartiprecampar`
--

DROP TABLE IF EXISTS `maesartiprecampar`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `maesartiprecampar` (
  `id_maesartiprecampar` int(11) NOT NULL DEFAULT '0' COMMENT 'Nº parámetros',
  `nombre` text NOT NULL COMMENT 'Nombre',
  `descripcion` text NOT NULL COMMENT 'Descripción',
  `filter_cuentas` text NOT NULL COMMENT 'Clis/Provs',
  `filter_tarifas` text NOT NULL COMMENT 'Tarifas',
  `filter_familia` text NOT NULL COMMENT 'Familias',
  `filter_articulo` text NOT NULL COMMENT 'Productos',
  `cod_moneda` char(3) NOT NULL DEFAULT 'EUR' COMMENT 'Moneda',
  `disp_fecha` int(11) NOT NULL DEFAULT '0' COMMENT 'Días fecha validez',
  `canti_d` decimal(20,8) NOT NULL DEFAULT '0.00000000' COMMENT 'Desde cantidad',
  `canti_h` decimal(20,8) NOT NULL DEFAULT '999999.00000000' COMMENT 'Hasta cantidad',
  `sw_precio_cero` char(1) NOT NULL DEFAULT 'N' COMMENT 'Usar precios 0',
  `sw_neto` char(1) NOT NULL DEFAULT 'N' COMMENT 'Pasa precs/dtos',
  `sw_imp_tpc` char(1) NOT NULL DEFAULT 'T' COMMENT 'Tipo aumento',
  `sw_sw_imp_tpc` tinyint(4) NOT NULL DEFAULT '1' COMMENT 'Pedir tipo aumento',
  `aumento` decimal(20,8) NOT NULL DEFAULT '0.00000000' COMMENT 'Aumento',
  `tpc_add_desde` decimal(20,8) NOT NULL DEFAULT '0.00000000' COMMENT '% aumento precios pequeños',
  `tpc_add_hasta` decimal(20,8) NOT NULL DEFAULT '0.00000000' COMMENT '% aumento 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 aumentado mínimo',
  `decimales` tinyint(4) NOT NULL DEFAULT '3' COMMENT 'Decs. cálculos',
  `redondeo` decimal(20,8) NOT NULL DEFAULT '0.00000000' COMMENT 'Redondeo',
  `sw_cambio_tari_cuen` char(1) NOT NULL DEFAULT 'N' COMMENT 'Nuevas tar/cta',
  `sw_sw_cambio_tari_cuen` tinyint(4) NOT NULL DEFAULT '1' COMMENT 'Pedir nuevas tar/cta',
  `cod_tarifa_new` char(4) NOT NULL DEFAULT '' COMMENT 'Tarifa',
  `cod_cuenta_new` char(12) NOT NULL DEFAULT '' COMMENT 'Cuenta',
  `sw_cambio_cantis` char(1) NOT NULL DEFAULT 'N' COMMENT 'Nuevas cantds.',
  `sw_sw_cambio_cantis` tinyint(4) NOT NULL DEFAULT '1' COMMENT 'Pedir nuevas cantds.',
  `canti_d_new` decimal(20,8) NOT NULL DEFAULT '0.00000000' COMMENT 'Desde cantidad',
  `canti_h_new` decimal(20,8) NOT NULL DEFAULT '999999.00000000' COMMENT 'Hasta cantidad',
  `sw_cambio_fechas` char(1) NOT NULL DEFAULT 'N' COMMENT 'Nuevas fechas',
  `sw_sw_cambio_fechas` tinyint(4) NOT NULL DEFAULT '1' COMMENT 'Pedir nuevas fechas',
  `disp_fecha_d_new` int(11) NOT NULL DEFAULT '0' COMMENT 'Días desde fecha',
  `id_tenant` smallint(6) NOT NULL DEFAULT '1' COMMENT 'Nº empresa',
  UNIQUE KEY `key0` (`id_tenant`,`id_maesartiprecampar`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

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

LOCK TABLES `maesartiprecampar` WRITE;
/*!40000 ALTER TABLE `maesartiprecampar` DISABLE KEYS */;
INSERT INTO `maesartiprecampar` (`id_maesartiprecampar`, `nombre`, `descripcion`, `filter_cuentas`, `filter_tarifas`, `filter_familia`, `filter_articulo`, `cod_moneda`, `disp_fecha`, `canti_d`, `canti_h`, `sw_precio_cero`, `sw_neto`, `sw_imp_tpc`, `sw_sw_imp_tpc`, `aumento`, `tpc_add_desde`, `tpc_add_hasta`, `precio_tpc_medio`, `precio_add_minimo`, `decimales`, `redondeo`, `sw_cambio_tari_cuen`, `sw_sw_cambio_tari_cuen`, `cod_tarifa_new`, `cod_cuenta_new`, `sw_cambio_cantis`, `sw_sw_cambio_cantis`, `canti_d_new`, `canti_h_new`, `sw_cambio_fechas`, `sw_sw_cambio_fechas`, `disp_fecha_d_new`, `id_tenant`) VALUES (1,'Parámetros generales','','','','','','EUR',0,0.00000000,999999.00000000,'N','N','T',1,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,3,0.00000000,'N',1,'','','N',1,0.00000000,999999.00000000,'N',1,0,1);
/*!40000 ALTER TABLE `maesartiprecampar` 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
