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

DROP TABLE IF EXISTS `maescuencpa`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `maescuencpa` (
  `cod_pago` char(4) NOT NULL DEFAULT '' COMMENT 'Condición de pago',
  `nombre` text NOT NULL COMMENT 'Nombre',
  `num_efectos` decimal(3,0) NOT NULL DEFAULT '0' COMMENT 'Num. Vtos.',
  `dias_factura` decimal(3,0) NOT NULL DEFAULT '0' COMMENT 'Días  1º.Vto.',
  `dias_vto` decimal(3,0) NOT NULL DEFAULT '0' COMMENT 'Resto Vtos.',
  `tipo_pago` char(1) NOT NULL DEFAULT 'M' COMMENT 'Tipo calculo',
  `sw_dto_fin` char(1) NOT NULL DEFAULT 'N' COMMENT 'Pronto pago',
  `imp_euro` decimal(20,2) NOT NULL DEFAULT '0.00' COMMENT 'Imp. Entrada euro',
  `comision` decimal(6,2) NOT NULL DEFAULT '0.00' COMMENT '% de Comisión',
  `id_tenant` smallint(6) NOT NULL DEFAULT '1' COMMENT 'Nº empresa',
  `tipo_calc` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Tipo cálculo',
  `tpc_dias` text NOT NULL COMMENT 'Porcentajes',
  `dias_pago_1` decimal(2,0) NOT NULL DEFAULT '0' COMMENT 'Día de pago 1',
  `dias_pago_2` decimal(2,0) NOT NULL DEFAULT '0' COMMENT 'Día de pago 2',
  `dias_pago_3` decimal(2,0) NOT NULL DEFAULT '0' COMMENT 'Día de pago 3',
  `dias_pago_4` decimal(2,0) NOT NULL DEFAULT '0' COMMENT 'Día de pago 4',
  `dias_pago_5` decimal(2,0) NOT NULL DEFAULT '0' COMMENT 'Día de pago 5',
  `dias_pago_6` decimal(2,0) NOT NULL DEFAULT '0' COMMENT 'Día de pago 6',
  UNIQUE KEY `key0` (`id_tenant`,`cod_pago`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

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

LOCK TABLES `maescuencpa` WRITE;
/*!40000 ALTER TABLE `maescuencpa` DISABLE KEYS */;
INSERT INTO `maescuencpa` (`cod_pago`, `nombre`, `num_efectos`, `dias_factura`, `dias_vto`, `tipo_pago`, `sw_dto_fin`, `imp_euro`, `comision`, `id_tenant`, `tipo_calc`, `tpc_dias`, `dias_pago_1`, `dias_pago_2`, `dias_pago_3`, `dias_pago_4`, `dias_pago_5`, `dias_pago_6`) VALUES ('0','ANTICIPADO',1,0,0,'M','N',150.00,0.00,1,0,'',0,0,0,0,0,0),('0001','ESPECIAL',0,0,0,'M','N',150.00,0.00,1,0,'',0,0,0,0,0,0),('0002','Especial Programación 90-120-150 días',0,0,0,'M','N',0.00,0.00,1,0,'',0,0,0,0,0,0),('015','15 DIAS F.F.',1,15,0,'M','N',150.00,0.00,1,0,'',0,0,0,0,0,0),('016','50% anticipado 50% a 30 días fin obra el día 30',2,0,30,'M','N',0.00,0.00,1,0,'',0,0,0,0,0,0),('017','50% anticipado 50% a 30 días fecha factura.',2,0,30,'M','N',0.00,0.00,1,0,'',20,0,0,0,0,0),('018','50% anticipado ,50% a la entrega por transferencia',2,0,0,'M','N',0.00,0.00,1,0,'',0,0,0,0,0,0),('030','30 DIAS F.F.',1,30,0,'M','N',150.00,0.00,1,0,'',0,0,0,0,0,0),('036','30,60 DIAS F.F.',2,30,30,'M','N',150.00,0.00,1,0,'',0,0,0,0,0,0),('045','45 DIAS F.F.',1,45,0,'M','N',150.00,0.00,1,0,'',0,0,0,0,0,0),('055','55 DIAS F.F.',1,55,0,'M','N',150.00,0.00,1,0,'',0,0,0,0,0,0),('085','85 DIAS',1,85,0,'M','N',0.00,0.00,1,0,'',0,0,0,0,0,0),('1','ENVIO DE TALON',1,0,0,'M','N',150.00,0.00,1,0,'',0,0,0,0,0,0),('10','10 días',1,10,0,'M','N',0.00,0.00,1,0,'',0,0,0,0,0,0),('120','120 DIAS F.F.',1,0,0,'M','N',150.00,0.00,1,0,'',0,0,0,0,0,0),('12V','12 VENCIMIENTOS CADA 30 DIAS',12,81,30,'M','N',150.00,0.00,1,0,'',0,0,0,0,0,0),('2','RECIBO DOMICILIADO',0,0,0,'M','N',150.00,0.00,1,0,'',0,0,0,0,0,0),('3','CONTADO RABIOSO',1,0,0,'M','N',150.00,0.00,1,0,'',0,0,0,0,0,0),('30','30 días',1,30,0,'M','N',0.00,0.00,1,0,'',0,0,0,0,0,0),('369','30, 60, 90 DIAS',3,30,30,'M','N',150.00,0.00,1,0,'',0,0,0,0,0,0),('4','CONTADO',1,0,0,'M','N',150.00,0.00,1,0,'',0,0,0,0,0,0),('5V','5 VENCIMIENTOS CADA 30 DIAS',5,90,30,'M','N',150.00,0.00,1,0,'',0,0,0,0,0,0),('60','60 DIAS F.F.',1,60,0,'M','N',150.00,0.00,1,0,'',0,0,0,0,0,0),('6090','60-90 días F.F.',2,60,30,'M','N',0.00,0.00,1,0,'',0,0,0,0,0,0),('69','60 y 90 DIAS',2,60,30,'M','N',150.00,0.00,1,0,'',0,0,0,0,0,0),('6V','6 VENCIMIENTOS CADA 30 DIAS',6,30,30,'M','N',150.00,0.00,1,0,'',0,0,0,0,0,0),('7','7 DIAS',1,7,0,'M','N',150.00,0.00,1,0,'',0,0,0,0,0,0),('8V','8 VENCIMIENTOS CADA 30 DIAS',8,30,30,'M','N',150.00,0.00,1,0,'',0,0,0,0,0,0),('90','90 DIAS F.F.',1,90,0,'M','N',150.00,0.00,1,0,'',0,0,0,0,0,0),('C','Contado',0,0,0,'M','N',0.00,0.00,1,0,'',0,0,0,0,0,0),('P','Al efectuar pedido',0,0,0,'M','N',0.00,0.00,1,0,'',0,0,0,0,0,0),('T','TRANSFERENCIA',1,0,0,'M','N',150.00,0.00,1,0,'',0,0,0,0,0,0),('V','Al vencimiento',0,0,0,'M','N',0.00,0.00,1,0,'',0,0,0,0,0,0);
/*!40000 ALTER TABLE `maescuencpa` 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:16
