-- Table structure for table `conta_tipo_asientos`
--

CREATE TABLE `conta_tipo_asientos` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `nombre` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `orden` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `conta_tipo_asientos`
--

INSERT INTO `conta_tipo_asientos` VALUES (1,'Sueldos',NULL,NULL,NULL,11),(2,'Ingresos',NULL,NULL,NULL,9),(3,'Egresos',NULL,NULL,NULL,10),(4,'Amortizaciones',NULL,NULL,NULL,4),(5,'Banco',NULL,NULL,NULL,15),(6,'Ganancias',NULL,NULL,NULL,12),(7,'Retenciones',NULL,NULL,NULL,13),(8,'SIRCREB',NULL,NULL,NULL,14),(9,'Compensaciones',NULL,NULL,NULL,16),(10,'Pagos AFIP',NULL,NULL,NULL,17),(11,'Ajustes',NULL,NULL,NULL,3),(12,'Saldos Iniciales',NULL,NULL,NULL,1),(13,'Cancelacion de Iniciales',NULL,NULL,NULL,2),(14,'Patrimonio Neto',NULL,NULL,NULL,8),(15,'Liquidaciones IVA',NULL,NULL,NULL,18),(16,'Liquidacion IIBB',NULL,NULL,NULL,19),(17,'Asientos de Cierre',NULL,NULL,NULL,5),(18,'Reclasificacion',NULL,NULL,NULL,6),(19,'Otros',NULL,NULL,NULL,7),(20,'Cobranzas','2019-10-02 03:20:37','2019-10-02 03:20:37',NULL,NULL),(21,'Pagos','2019-10-02 03:20:37','2019-10-02 03:20:37',NULL,NULL),(22,'Tesoreria','2019-10-19 02:10:24','2019-10-19 02:10:24',NULL,NULL),(23,'Ajuste por Inflacion','2020-03-01 06:39:20','2020-03-01 06:39:20',NULL,NULL);

--
-- Table structure for table `conta_tipo_cuentas`
--

CREATE TABLE `conta_tipo_cuentas` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `tipo_cuenta` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `conta_tipo_cuentas`
--

INSERT INTO `conta_tipo_cuentas` VALUES (1,'Rubro',NULL,NULL,NULL),(2,'SubRubro',NULL,NULL,NULL),(3,'Grupo',NULL,NULL,NULL),(4,'SubGrupo',NULL,NULL,NULL),(5,'Cuenta',NULL,NULL,NULL);

--
-- Table structure for table `conta_tipo_saldos`
--

CREATE TABLE `conta_tipo_saldos` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `saldo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `conta_tipo_saldos`
--

INSERT INTO `conta_tipo_saldos` VALUES (1,'Deudor',NULL,NULL,NULL),(2,'Acreedor',NULL,NULL,NULL);

--
-- Table structure for table `control_cuits_afip`
--

CREATE TABLE `control_cuits_afip` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `field_name1` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `cuit` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `error` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `control_cuits_afip_person_id_foreign` (`person_id`),
  CONSTRAINT `control_cuits_afip_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `control_cuits_afip`
--


--
-- Table structure for table `control_general`
--

CREATE TABLE `control_general` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `description` varchar(180) COLLATE utf8mb4_unicode_ci NOT NULL,
  `class` int(10) unsigned NOT NULL,
  `class_description` varchar(180) COLLATE utf8mb4_unicode_ci NOT NULL,
  `path` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `control_general_description_unique` (`description`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `control_general`
--

INSERT INTO `control_general` VALUES (1,'Ingresos - Egresos - Resultado',1,'Proyeccion Ganancias','control_general/proyecGanancias',NULL,NULL),(2,'IVA',2,'IVA','control_general/iva',NULL,NULL),(3,'IIBB',3,'IIBB','control_general/iibb',NULL,NULL),(4,'Por Mes',4,'Vto. Impuestos','control_general/vto',NULL,NULL),(5,'Por Impuesto',4,'Vto. Impuestos','control_general/vtoPorImpuestos',NULL,NULL);

--
-- Table structure for table `cta_cte_cliente`
--

CREATE TABLE `cta_cte_cliente` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `tipo_asiento_id` int(10) unsigned NOT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_relationed` int(10) unsigned NOT NULL,
  `cta_cte_tesoreria_cuenta_id` int(10) unsigned DEFAULT NULL,
  `period_id` int(10) unsigned NOT NULL,
  `saldo_id` int(10) unsigned NOT NULL,
  `compensado` tinyint(1) NOT NULL DEFAULT '0',
  `fecha` date DEFAULT NULL,
  `total` decimal(16,2) NOT NULL,
  `comentario` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `file` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `cta_cte_cliente_person_id_foreign` (`person_id`),
  KEY `cta_cte_cliente_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `cta_cte_cliente_period_id_foreign` (`period_id`),
  KEY `cta_cte_cliente_saldo_id_foreign` (`saldo_id`),
  KEY `cta_cte_cliente_tipo_asiento_id_foreign` (`tipo_asiento_id`),
  KEY `cta_cte_cliente_cta_cte_tesoreria_cuenta_id_foreign` (`cta_cte_tesoreria_cuenta_id`),
  CONSTRAINT `cta_cte_cliente_cta_cte_tesoreria_cuenta_id_foreign` FOREIGN KEY (`cta_cte_tesoreria_cuenta_id`) REFERENCES `cta_cte_tesoreria_cuentas` (`id`),
  CONSTRAINT `cta_cte_cliente_period_id_foreign` FOREIGN KEY (`period_id`) REFERENCES `periods` (`id`),
  CONSTRAINT `cta_cte_cliente_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `cta_cte_cliente_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`),
  CONSTRAINT `cta_cte_cliente_saldo_id_foreign` FOREIGN KEY (`saldo_id`) REFERENCES `conta_tipo_saldos` (`id`),
  CONSTRAINT `cta_cte_cliente_tipo_asiento_id_foreign` FOREIGN KEY (`tipo_asiento_id`) REFERENCES `conta_tipo_asientos` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=145 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cta_cte_cliente`
--

INSERT INTO `cta_cte_cliente` VALUES (1,3755,2,40720,40721,13,1557,1,0,'2021-03-01',85804.10,'Factura A N°: 0001-00000176',NULL,'2021-04-16 19:37:27','2021-04-16 19:37:27',NULL),(2,3755,2,40720,40721,13,1557,1,0,'2021-03-01',15972.00,'Factura A N°: 0001-00000177',NULL,'2021-04-16 19:37:27','2021-04-16 19:37:27',NULL),(3,3755,2,40720,40722,13,1557,1,0,'2021-03-01',42108.00,'Factura A N°: 0001-00000178',NULL,'2021-04-16 19:37:27','2021-04-16 19:37:27',NULL),(4,3755,2,40720,40723,13,1557,1,0,'2021-03-01',9972.82,'Factura A N°: 0001-00000179',NULL,'2021-04-16 19:37:27','2021-04-16 19:37:27',NULL),(5,3755,2,40720,40724,13,1557,1,0,'2021-03-01',42350.00,'Factura A N°: 0001-00000180',NULL,'2021-04-16 19:37:27','2021-04-16 19:37:27',NULL),(6,3755,2,40720,40724,13,1557,1,0,'2021-03-01',89462.56,'Factura A N°: 0001-00000181',NULL,'2021-04-16 19:37:27','2021-04-16 19:37:27',NULL),(7,3755,2,40720,40725,13,1557,1,0,'2021-03-01',7865.00,'Factura A N°: 0001-00000182',NULL,'2021-04-16 19:37:27','2021-04-16 19:37:27',NULL),(8,3755,2,40720,40726,13,1557,1,0,'2021-03-01',122391.50,'Factura A N°: 0001-00000183',NULL,'2021-04-16 19:37:27','2021-04-16 19:37:27',NULL),(9,3755,2,40720,40726,13,1557,1,0,'2021-03-01',130135.50,'Factura A N°: 0001-00000184',NULL,'2021-04-16 19:37:27','2021-04-16 19:37:27',NULL),(10,3755,2,40720,40727,13,1557,1,0,'2021-03-01',10500.00,'Factura B N°: 0001-00000025',NULL,'2021-04-16 19:37:27','2021-04-16 19:37:27',NULL),(11,3755,2,40720,40727,13,1557,1,0,'2021-03-01',10500.00,'Factura B N°: 0001-00000026',NULL,'2021-04-16 19:37:27','2021-04-16 19:37:27',NULL),(12,3755,2,40720,40726,13,1557,1,0,'2021-03-05',289136.76,'FACTURA DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE) A N°: 0001-00000010',NULL,'2021-04-16 19:37:27','2021-04-16 19:37:27',NULL),(13,3755,2,40720,40721,13,1557,1,0,'2021-03-26',132624.47,'Factura A N°: 0001-00000185',NULL,'2021-04-16 19:37:27','2021-04-16 19:37:27',NULL),(14,3755,2,40720,40721,13,1557,1,0,'2021-03-26',12902.23,'Factura A N°: 0001-00000186',NULL,'2021-04-16 19:37:27','2021-04-16 19:37:27',NULL),(15,3755,2,40720,40721,13,1557,1,0,'2021-03-26',13038.96,'Factura A N°: 0001-00000187',NULL,'2021-04-16 19:37:27','2021-04-16 19:37:27',NULL),(16,3755,2,40720,40728,13,1557,1,0,'2021-03-26',1600.00,'Factura B N°: 0001-00000027',NULL,'2021-04-16 19:37:27','2021-04-16 19:37:27',NULL),(17,3755,2,40720,40721,13,1557,1,0,'2021-03-31',85804.10,'Factura A N°: 0001-00000188',NULL,'2021-04-16 19:37:28','2021-04-16 19:37:28',NULL),(18,3755,2,40720,40722,13,1557,1,0,'2021-03-31',40656.00,'Factura A N°: 0001-00000189',NULL,'2021-04-16 19:37:28','2021-04-16 19:37:28',NULL),(19,3755,2,40720,40723,13,1557,1,0,'2021-03-31',9972.82,'Factura A N°: 0001-00000190',NULL,'2021-04-16 19:37:28','2021-04-16 19:37:28',NULL),(20,3755,2,40720,40724,13,1557,1,0,'2021-03-31',42350.00,'Factura A N°: 0001-00000191',NULL,'2021-04-16 19:37:28','2021-04-16 19:37:28',NULL),(21,3755,2,40720,40724,13,1557,1,0,'2021-03-31',89462.56,'Factura A N°: 0001-00000192',NULL,'2021-04-16 19:37:28','2021-04-16 19:37:28',NULL),(22,3755,2,40720,40729,13,1557,1,0,'2021-03-31',18824.64,'Factura A N°: 0001-00000193',NULL,'2021-04-16 19:37:28','2021-04-16 19:37:28',NULL),(23,3755,2,40720,40730,13,1557,1,0,'2021-03-31',1600.00,'Factura A N°: 0001-00000194',NULL,'2021-04-16 19:37:28','2021-04-16 19:37:28',NULL),(24,3755,2,40720,40731,13,1557,1,0,'2021-03-31',1600.00,'Factura B N°: 0001-00000028',NULL,'2021-04-16 19:37:28','2021-04-16 19:37:28',NULL),(25,3755,2,40720,40726,13,1557,1,0,'2021-03-31',274452.20,'FACTURA DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE) A N°: 0001-00000011',NULL,'2021-04-16 19:37:28','2021-04-16 19:37:28',NULL),(26,3755,2,40720,40721,13,1556,1,0,'2021-02-26',132624.47,'Factura A N°: 0001-00000173',NULL,'2021-04-17 18:53:34','2021-04-17 18:53:34',NULL),(27,3755,2,40720,40721,13,1556,1,0,'2021-02-26',12902.23,'Factura A N°: 0001-00000174',NULL,'2021-04-17 18:53:34','2021-04-17 18:53:34',NULL);
INSERT INTO `cta_cte_cliente` VALUES (28,3755,2,40720,40721,13,1556,1,0,'2021-02-26',13038.96,'Factura A N°: 0001-00000175',NULL,'2021-04-17 18:53:34','2021-04-17 18:53:34',NULL),(29,3755,2,40720,40721,13,1556,1,0,'2021-01-07',85804.10,'Factura A N°: 0001-00000158',NULL,'2021-04-17 18:56:34','2021-04-17 18:56:34',NULL),(30,3755,2,40720,40721,13,1556,1,0,'2021-01-07',107255.13,'Factura A N°: 0001-00000159',NULL,'2021-04-17 18:56:34','2021-04-17 18:56:34',NULL),(31,3755,2,40720,40721,13,1556,1,0,'2021-01-07',107255.13,'Factura A N°: 0001-00000160',NULL,'2021-04-17 18:56:34','2021-04-17 18:56:34',NULL),(32,3755,2,40720,40721,13,1556,2,0,'2021-01-07',107255.13,'Nota de crédito A N°: 0001-00000003',NULL,'2021-04-17 18:56:34','2021-04-17 18:56:34',NULL),(33,3755,2,40720,40721,13,1556,1,0,'2021-01-26',132624.47,'Factura A N°: 0001-00000161',NULL,'2021-04-17 18:56:34','2021-04-17 18:56:34',NULL),(34,3755,2,40720,40721,13,1556,1,0,'2021-01-26',13038.96,'Factura A N°: 0001-00000162',NULL,'2021-04-17 18:56:34','2021-04-17 18:56:34',NULL),(35,3755,2,40720,40721,13,1556,1,0,'2021-01-26',12902.23,'Factura A N°: 0001-00000163',NULL,'2021-04-17 18:56:34','2021-04-17 18:56:34',NULL),(36,3755,2,40720,40721,13,1556,1,0,'2021-01-26',85804.10,'Factura A N°: 0001-00000164',NULL,'2021-04-17 18:56:34','2021-04-17 18:56:34',NULL),(37,3755,2,40720,40721,13,1556,1,0,'2021-01-26',2420.00,'Factura A N°: 0001-00000165',NULL,'2021-04-17 18:56:35','2021-04-17 18:56:35',NULL),(38,3755,2,40720,40721,13,1556,1,0,'2021-01-28',35695.00,'Factura A N°: 0001-00000166',NULL,'2021-04-17 18:56:35','2021-04-17 18:56:35',NULL),(39,3755,2,40720,40725,13,1556,1,0,'2021-01-29',15730.00,'Factura A N°: 0001-00000167',NULL,'2021-04-17 18:56:35','2021-04-17 18:56:35',NULL),(40,3755,2,40720,40725,13,1556,1,0,'2021-01-29',9075.00,'Factura A N°: 0001-00000168',NULL,'2021-04-17 18:56:35','2021-04-17 18:56:35',NULL),(41,3755,2,40720,40722,13,1556,1,0,'2021-01-29',22506.00,'Factura A N°: 0001-00000169',NULL,'2021-04-17 18:56:35','2021-04-17 18:56:35',NULL),(42,3755,2,40720,40723,13,1556,1,0,'2021-01-29',10712.86,'Factura A N°: 0001-00000170',NULL,'2021-04-17 18:56:35','2021-04-17 18:56:35',NULL),(43,3755,2,40720,40724,13,1556,1,0,'2021-01-29',42350.00,'Factura A N°: 0001-00000171',NULL,'2021-04-17 18:56:35','2021-04-17 18:56:35',NULL),(44,3755,2,40720,40726,13,1556,1,0,'2021-01-29',220793.54,'FACTURA DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE) A N°: 0001-00000009',NULL,'2021-04-17 18:56:35','2021-04-17 18:56:35',NULL),(45,3755,2,40720,40724,13,1556,1,0,'2021-01-30',89462.56,'Factura A N°: 0001-00000172',NULL,'2021-04-17 18:56:35','2021-04-17 18:56:35',NULL),(46,3755,2,40720,40721,13,1556,1,0,'2020-12-28',69333.00,'Factura A N°: 0001-00000146',NULL,'2021-04-17 18:57:22','2021-04-17 18:57:22',NULL),(47,3755,2,40720,40721,13,1556,1,0,'2020-12-28',36818.48,'Factura A N°: 0001-00000147',NULL,'2021-04-17 18:57:22','2021-04-17 18:57:22',NULL),(48,3755,2,40720,40721,13,1556,1,0,'2020-12-28',49610.00,'Factura A N°: 0001-00000148',NULL,'2021-04-17 18:57:22','2021-04-17 18:57:22',NULL),(49,3755,2,40720,40732,13,1556,1,0,'2020-12-30',17783.37,'Factura A N°: 0001-00000149',NULL,'2021-04-17 18:57:22','2021-04-17 18:57:22',NULL),(50,3755,2,40720,40723,13,1556,1,0,'2020-12-30',25702.82,'Factura A N°: 0001-00000150',NULL,'2021-04-17 18:57:23','2021-04-17 18:57:23',NULL),(51,3755,2,40720,40724,13,1556,1,0,'2020-12-30',42350.00,'Factura A N°: 0001-00000151',NULL,'2021-04-17 18:57:23','2021-04-17 18:57:23',NULL),(52,3755,2,40720,40724,13,1556,1,0,'2020-12-30',67096.92,'Factura A N°: 0001-00000152',NULL,'2021-04-17 18:57:23','2021-04-17 18:57:23',NULL),(53,3755,2,40720,40722,13,1556,1,0,'2020-12-30',40656.00,'Factura A N°: 0001-00000153',NULL,'2021-04-17 18:57:23','2021-04-17 18:57:23',NULL),(54,3755,2,40720,40721,13,1556,1,0,'2020-12-30',132624.47,'Factura A N°: 0001-00000154',NULL,'2021-04-17 18:57:23','2021-04-17 18:57:23',NULL);
INSERT INTO `cta_cte_cliente` VALUES (55,3755,2,40720,40721,13,1556,1,0,'2020-12-30',12902.23,'Factura A N°: 0001-00000155',NULL,'2021-04-17 18:57:23','2021-04-17 18:57:23',NULL),(56,3755,2,40720,40721,13,1556,1,0,'2020-12-30',13038.96,'Factura A N°: 0001-00000156',NULL,'2021-04-17 18:57:23','2021-04-17 18:57:23',NULL),(57,3755,2,40720,40733,13,1556,1,0,'2020-12-30',9075.00,'Factura A N°: 0001-00000157',NULL,'2021-04-17 18:57:23','2021-04-17 18:57:23',NULL),(58,3755,2,40720,40721,13,1556,1,0,'2020-11-16',30250.00,'Factura A N°: 0001-00000132',NULL,'2021-04-17 18:58:00','2021-04-17 18:58:00',NULL),(59,3755,2,40720,40721,13,1556,1,0,'2020-11-16',46379.30,'Factura A N°: 0001-00000133',NULL,'2021-04-17 18:58:00','2021-04-17 18:58:00',NULL),(60,3755,2,40720,40721,13,1556,1,0,'2020-11-16',107255.13,'Factura A N°: 0001-00000134',NULL,'2021-04-17 18:58:00','2021-04-17 18:58:00',NULL),(61,3755,2,40720,40721,13,1556,1,0,'2020-11-27',33275.00,'Factura A N°: 0001-00000135',NULL,'2021-04-17 18:58:00','2021-04-17 18:58:00',NULL),(62,3755,2,40720,40721,13,1556,1,0,'2020-11-30',132624.47,'Factura A N°: 0001-00000136',NULL,'2021-04-17 18:58:00','2021-04-17 18:58:00',NULL),(63,3755,2,40720,40721,13,1556,1,0,'2020-11-30',12902.23,'Factura A N°: 0001-00000137',NULL,'2021-04-17 18:58:00','2021-04-17 18:58:00',NULL),(64,3755,2,40720,40721,13,1556,1,0,'2020-11-30',13038.96,'Factura A N°: 0001-00000138',NULL,'2021-04-17 18:58:00','2021-04-17 18:58:00',NULL),(65,3755,2,40720,40732,13,1556,1,0,'2020-11-30',17783.37,'Factura A N°: 0001-00000139',NULL,'2021-04-17 18:58:00','2021-04-17 18:58:00',NULL),(66,3755,2,40720,40723,13,1556,1,0,'2020-11-30',9972.82,'Factura A N°: 0001-00000140',NULL,'2021-04-17 18:58:00','2021-04-17 18:58:00',NULL),(67,3755,2,40720,40724,13,1556,1,0,'2020-11-30',42350.00,'Factura A N°: 0001-00000141',NULL,'2021-04-17 18:58:00','2021-04-17 18:58:00',NULL),(68,3755,2,40720,40724,13,1556,1,0,'2020-11-30',89462.56,'Factura A N°: 0001-00000142',NULL,'2021-04-17 18:58:00','2021-04-17 18:58:00',NULL),(69,3755,2,40720,40733,13,1556,1,0,'2020-11-30',9075.00,'Factura A N°: 0001-00000143',NULL,'2021-04-17 18:58:00','2021-04-17 18:58:00',NULL),(70,3755,2,40720,40726,13,1556,1,0,'2020-11-30',15125.00,'Factura A N°: 0001-00000144',NULL,'2021-04-17 18:58:00','2021-04-17 18:58:00',NULL),(71,3755,2,40720,40722,13,1556,1,0,'2020-11-30',45012.00,'Factura A N°: 0001-00000145',NULL,'2021-04-17 18:58:00','2021-04-17 18:58:00',NULL),(72,3755,2,40720,40721,13,1556,1,0,'2020-10-27',85803.52,'Factura A N°: 0001-00000119',NULL,'2021-04-17 18:58:39','2021-04-17 18:58:39',NULL),(73,3755,2,40720,40721,13,1556,1,0,'2020-10-27',7986.00,'Factura A N°: 0001-00000120',NULL,'2021-04-17 18:58:39','2021-04-17 18:58:39',NULL),(74,3755,2,40720,40721,13,1556,1,0,'2020-10-27',33275.00,'Factura A N°: 0001-00000121',NULL,'2021-04-17 18:58:39','2021-04-17 18:58:39',NULL),(75,3755,2,40720,40721,13,1556,1,0,'2020-10-30',132624.47,'Factura A N°: 0001-00000122',NULL,'2021-04-17 18:58:39','2021-07-02 18:37:49','2021-07-02 18:37:49'),(76,3755,2,40720,40721,13,1556,1,0,'2020-10-30',12865.93,'Factura A N°: 0001-00000123',NULL,'2021-04-17 18:58:39','2021-07-02 18:37:44','2021-07-02 18:37:44'),(77,3755,2,40720,40721,13,1556,1,0,'2020-10-30',13038.96,'Factura A N°: 0001-00000124',NULL,'2021-04-17 18:58:39','2021-07-02 18:37:37','2021-07-02 18:37:37'),(78,3755,2,40720,40721,13,1556,1,0,'2020-10-30',5445.00,'Factura A N°: 0001-00000125',NULL,'2021-04-17 18:58:39','2021-04-17 18:58:39',NULL),(79,3755,2,40720,40722,13,1556,1,0,'2020-10-30',22506.00,'Factura A N°: 0001-00000126',NULL,'2021-04-17 18:58:39','2021-04-17 18:58:39',NULL),(80,3755,2,40720,40732,13,1556,1,0,'2020-10-30',17783.37,'Factura A N°: 0001-00000127',NULL,'2021-04-17 18:58:40','2021-04-17 18:58:40',NULL),(81,3755,2,40720,40723,13,1556,1,0,'2020-10-30',9972.82,'Factura A N°: 0001-00000128',NULL,'2021-04-17 18:58:40','2021-04-17 18:58:40',NULL);
INSERT INTO `cta_cte_cliente` VALUES (82,3755,2,40720,40724,13,1556,1,0,'2020-10-30',42350.00,'Factura A N°: 0001-00000129',NULL,'2021-04-17 18:58:40','2021-04-17 18:58:40',NULL),(83,3755,2,40720,40724,13,1556,1,0,'2020-10-30',111828.20,'Factura A N°: 0001-00000130',NULL,'2021-04-17 18:58:40','2021-07-02 14:23:43','2021-07-02 14:23:43'),(84,3755,2,40720,40733,13,1556,1,0,'2020-10-30',10890.00,'Factura A N°: 0001-00000131',NULL,'2021-04-17 18:58:40','2021-07-02 14:23:40','2021-07-02 14:23:40'),(85,3755,20,40720,40721,13,1549,2,0,'2021-04-17',53603.00,'FC 97 Y 98 DEL 25/08/2020',NULL,'2021-04-17 19:15:52','2021-04-17 19:17:12','2021-04-17 19:17:12'),(86,3755,20,40720,40721,13,1549,2,0,'2020-10-02',53603.00,'FC A 00001-00000097 \nFC A 00001-00000098 ',NULL,'2021-04-17 19:21:56','2021-04-17 19:21:56',NULL),(87,3755,20,40720,40722,13,1549,2,0,'2020-10-07',18150.00,'FC A 00001-00000105',NULL,'2021-04-17 19:26:00','2021-04-17 19:26:00',NULL),(88,3755,20,40720,40723,13,1549,2,0,'2020-10-08',16523.52,'FC A 00001-00000115',NULL,'2021-04-17 19:27:47','2021-04-17 19:27:47',NULL),(89,3755,20,40720,40721,13,1549,2,0,'2020-10-09',229991.26,'FC A 00001-000000101\nFC A 00001-000000102\nFC A 00001-000000103\nFC A 00001-000000104',NULL,'2021-04-17 19:33:40','2021-04-17 19:33:40',NULL),(90,3755,20,40720,40724,13,1549,2,0,'2020-10-14',89462.56,'FC A 00001-00000108',NULL,'2021-04-17 19:39:00','2021-04-17 19:39:00',NULL),(91,3755,20,40720,40724,13,1549,2,0,'2020-10-14',386079.54,'FC A 00001-00000083\nFC A 00001-00000082\nFC A 00001-00000081\nFC A 00001-00000096\nFC A 00001-00000095\nFC A 00001-00000094\nFC A 00001-00000067\nFC A 00001-00000068\n',NULL,'2021-04-17 19:48:57','2021-04-17 19:48:57',NULL),(92,3755,20,40720,40721,13,1550,2,0,'2020-11-09',147817.16,'FC A 00001-00000109\nFC A 00001-00000110\nFC A 00001-00000111\nFC A 00001-00000112',NULL,'2021-04-17 19:54:51','2021-04-17 19:54:51',NULL),(93,3755,20,40720,40723,13,1550,2,0,'2020-11-12',9972.82,'FC A 00001-00000128',NULL,'2021-04-17 19:56:31','2021-04-17 19:56:31',NULL),(94,3755,20,40720,40722,13,1550,2,0,'2020-11-30',22506.00,'FC A 00001-00000113',NULL,'2021-04-17 19:58:04','2021-04-17 19:58:04',NULL),(95,3755,20,40720,40724,13,1550,2,0,'2021-04-17',138316.31,'FC A 00001-00000116\nFC A 00001-00000117\nFC A 00001-00000118',NULL,'2021-04-17 20:04:16','2021-04-17 20:04:16',NULL),(96,3755,20,40720,40721,13,1551,2,0,'2020-12-04',291038.88,'FC A 00001-00000119\nFC A 00001-00000120\nFC A 00001-00000121\nFC A 00001-00000122\nFC A 00001-00000123\nFC A 00001-00000124\nFC A 00001-00000125\n',NULL,'2021-04-17 20:20:42','2021-04-17 20:20:42',NULL),(97,3755,20,40720,40723,13,1551,2,0,'2020-12-10',9972.82,'FC A 00001-00000140',NULL,'2021-04-17 20:22:45','2021-04-17 20:22:45',NULL),(98,3755,20,40720,40721,13,1551,2,0,'2020-12-28',183884.43,'FCA 00001-00000132\nFCA 00001-00000133\nFCA 00001-00000134\n',NULL,'2021-04-17 20:28:18','2021-04-17 20:28:18',NULL),(99,3755,20,40720,40722,13,1551,2,0,'2020-12-30',45012.00,'FC A 00001-00000145\n\n',NULL,'2021-04-17 20:30:18','2021-04-17 20:30:18',NULL),(100,3755,20,40720,40721,13,1551,2,0,'2020-12-30',33275.00,'FC A 0001-00000135',NULL,'2021-04-17 20:34:30','2021-04-17 20:34:30',NULL),(101,3755,20,40720,40733,13,1551,2,0,'2020-12-30',19965.00,'FC A 00001-00000131\nFC A 00001-00000143',NULL,'2021-04-17 20:42:29','2021-04-17 20:42:29',NULL),(102,3755,20,40720,40723,13,1555,2,0,'2021-01-07',25702.82,'FC A 00001-00000150',NULL,'2021-04-17 20:47:02','2021-04-17 20:47:02',NULL),(103,3755,20,40720,40721,13,1555,2,0,'2021-01-08',145526.70,'FC A 00001-00000136\nFC A 00001-00000137',NULL,'2021-04-17 20:51:40','2021-04-17 20:51:40',NULL),(104,3755,20,40720,40724,13,1556,2,0,'2021-02-03',285990.76,'FC A 00001-00000129\nFC A 00001-00000130\nFC A 00001-00000141\nFC A 00001-00000142',NULL,'2021-04-17 20:57:39','2021-04-17 20:57:39',NULL),(105,3755,20,40720,40726,13,1556,2,0,'2021-02-05',14500.00,'FC A 00001-00000144 PARCIAL',NULL,'2021-04-17 21:06:30','2021-04-17 21:06:30',NULL);
INSERT INTO `cta_cte_cliente` VALUES (106,3755,20,40720,40721,13,1556,2,0,'2021-02-06',314327.14,'FC A 00001-000000146\nFC A 00001-000000147\nFC A 00001-000000148\nFC A 00001-000000154\nFC A 00001-000000155\nFC A 00001-000000156\n',NULL,'2021-04-17 21:09:04','2021-04-17 21:09:04',NULL),(107,3755,20,40720,40723,13,1556,2,0,'2021-02-12',10712.86,'FC A 00001-00000170',NULL,'2021-04-17 21:11:40','2021-04-17 21:11:40',NULL),(108,3755,20,40720,40721,13,1556,2,0,'2021-02-13',193059.23,'FC A 00001-00000158\nFC A 00001-00000160 ',NULL,'2021-04-17 21:14:58','2021-04-17 21:14:58',NULL),(109,3755,20,40720,40722,13,1557,2,0,'2021-03-02',22506.00,'FC A 00001-000000126',NULL,'2021-04-17 21:33:27','2021-04-17 21:33:27',NULL),(110,3755,20,40720,40721,13,1557,2,0,'2021-03-05',282484.76,'FC A 00001-00000161\nFC A 00001-00000162\nFC A 00001-00000163\nFC A 00001-00000164\nFC A 00001-00000165\nFC A 00001-00000166',NULL,'2021-04-17 21:38:45','2021-04-17 21:38:45',NULL),(111,3755,20,40720,40727,13,1557,2,0,'2021-03-20',21000.00,'FC B 00001-00000025\nFC B 00001-00000026\n',NULL,'2021-04-17 21:40:57','2021-04-17 21:40:57',NULL),(112,3755,20,40720,40723,13,1557,2,0,'2021-03-26',9972.82,'FC A 00001-00000179',NULL,'2021-04-17 21:42:37','2021-04-17 21:42:37',NULL),(113,3755,20,40720,40723,13,1548,1,0,'2020-10-01',16523.52,'Saldo Inicial',NULL,'2021-04-17 21:47:14','2021-04-17 21:47:14',NULL),(114,3755,20,40720,40722,13,1548,1,0,'2020-09-30',36300.00,'Saldo Inicial',NULL,'2021-04-17 21:49:44','2021-04-17 21:49:44',NULL),(115,3755,20,40720,40730,13,1558,2,0,'2021-04-18',1600.00,'FC A 00001-00000194',NULL,'2021-04-17 21:52:27','2021-04-17 21:52:27',NULL),(116,3755,20,40720,40731,13,1558,2,0,'2021-04-18',1600.00,'FC B 00001-00000028',NULL,'2021-04-17 21:53:33','2021-04-17 21:53:33',NULL),(117,3755,20,40720,40728,13,1558,2,0,'2021-04-18',1600.00,'FC B 00001-00000027',NULL,'2021-04-17 21:54:54','2021-04-17 21:54:54',NULL),(118,3755,20,40720,40721,13,1548,1,0,'2020-10-01',431411.42,'Saldo Inicial',NULL,'2021-04-17 23:23:22','2021-04-17 23:23:22',NULL),(119,3755,3,40720,40734,57,1557,2,0,'2021-03-23',13436.60,'Tique Factura A N°: 7018-00004643',NULL,'2021-04-20 16:32:54','2021-04-20 16:32:54',NULL),(120,3755,3,40720,40735,57,1557,2,0,'2021-03-15',465.66,'Tique Factura A N°: 1395-00000022',NULL,'2021-04-20 16:38:42','2021-04-20 16:38:42',NULL),(121,3755,3,40720,40736,57,1557,2,0,'2021-03-11',1590.32,'Tique Factura A N°: 13958-00191416',NULL,'2021-04-20 16:41:25','2021-04-20 16:41:25',NULL),(122,3755,3,40720,40735,57,1557,2,0,'2021-03-04',517.38,'Tique Factura A N°: 10261-00025554',NULL,'2021-04-20 16:42:54','2021-04-20 16:42:54',NULL),(123,3755,3,40720,40735,57,1557,2,0,'2021-03-02',620.78,'Tique Factura A N°: 1026-00025484',NULL,'2021-04-20 16:43:43','2021-04-20 16:43:43',NULL),(124,3755,20,40720,40723,13,1557,2,0,'2021-04-13',9972.82,'FC A 00001-0000000190',NULL,'2021-04-22 21:02:34','2021-04-22 21:02:34',NULL),(125,3755,20,40720,40725,13,1558,2,0,'2021-04-17',24805.00,'FC A 00001-00000167\nFC A 00001-00000168',NULL,'2021-04-22 21:04:27','2021-04-22 21:04:27',NULL),(126,3755,20,40720,40724,13,1558,2,0,'2021-04-22',241259.48,'FC A 00001-00000151\nFC A 00001-00000152\nFC A 00001-00000171\nFC A 00001-00000172',NULL,'2021-04-22 21:08:17','2021-04-22 21:08:17',NULL),(127,3755,20,40720,40724,13,1558,2,0,'2021-04-22',263625.12,'FC A 00001-00000180\nFC A 00001-00000181\nFC A 00001-00000191\nFC A 00001-00000192',NULL,'2021-04-22 21:10:59','2021-04-22 21:10:59',NULL),(128,3755,20,40720,40726,13,1558,2,0,'2021-04-23',196639.52,'FCE A 00001-00000009 PAGO PARCIAL',NULL,'2021-04-22 21:14:04','2021-04-22 21:14:04',NULL),(129,3755,3,40720,40737,57,1557,2,0,'2021-03-31',1970.00,'Tique Factura A N°: 0003-00000266',NULL,'2021-04-22 21:18:50','2021-04-22 21:18:50',NULL),(130,3755,3,40720,40738,57,1557,2,0,'2021-03-31',1000.00,'Tique Factura A N°: 0314-00000899',NULL,'2021-04-22 21:20:38','2021-04-22 21:20:38',NULL);
INSERT INTO `cta_cte_cliente` VALUES (131,3755,20,40720,40733,13,1558,2,0,'2021-04-26',9075.00,'FC A 00001-00000157',NULL,'2021-05-03 19:02:55','2021-05-03 19:02:55',NULL),(132,3755,20,40720,40722,13,1558,2,0,'2021-04-27',40656.00,'FC A 00001-00000189',NULL,'2021-05-03 19:04:51','2021-05-03 19:04:51',NULL),(133,3755,20,40720,40721,13,1558,2,0,'2021-04-30',244369.76,'FC A 00001-00000173\nFC A 00001-00000174\nFC A 00001-00000175\nFC A 00001-00000176',NULL,'2021-05-03 19:07:55','2021-05-03 19:07:55',NULL),(134,3755,2,40720,40721,13,1558,1,0,'2021-04-01',5445.00,'Factura A N°: 0001-00000195',NULL,'2021-05-27 15:37:37','2021-05-27 15:37:37',NULL),(135,3755,2,40720,40726,13,1558,1,0,'2021-04-01',587576.00,'FACTURA DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE) A N°: 0001-00000012',NULL,'2021-05-27 15:37:37','2021-06-16 10:43:56','2021-06-16 10:43:56'),(136,3755,2,40720,40721,13,1558,1,0,'2021-04-14',57120.47,'Factura A N°: 0001-00000196',NULL,'2021-05-27 15:37:37','2021-06-16 10:44:03','2021-06-16 10:44:03'),(137,3755,2,40720,40722,13,1558,1,0,'2021-04-30',26862.00,'Factura A N°: 0001-00000197',NULL,'2021-05-27 15:37:37','2021-06-16 10:44:21','2021-06-16 10:44:21'),(138,3755,2,40720,40723,13,1558,1,0,'2021-04-30',9972.82,'Factura A N°: 0001-00000198',NULL,'2021-05-27 15:37:37','2021-05-27 15:37:37',NULL),(139,3755,2,40720,40724,13,1558,1,0,'2021-04-30',42350.00,'Factura A N°: 0001-00000199',NULL,'2021-05-27 15:37:37','2021-05-27 15:37:37',NULL),(140,3755,2,40720,40724,13,1558,1,0,'2021-04-30',89462.56,'Factura A N°: 0001-00000200',NULL,'2021-05-27 15:37:37','2021-07-02 14:23:34','2021-07-02 14:23:34'),(141,3755,2,40720,40724,13,1558,1,0,'2021-04-30',4719.00,'Factura A N°: 0001-00000201',NULL,'2021-05-27 15:37:37','2021-05-27 15:37:37',NULL),(142,3755,2,40720,40726,13,1558,1,0,'2021-04-30',4990.04,'Factura A N°: 0001-00000202',NULL,'2021-05-27 15:37:37','2021-05-27 15:37:37',NULL),(143,3755,2,40720,40726,13,1558,1,0,'2021-04-30',274452.20,'FACTURA DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE) A N°: 0001-00000013',NULL,'2021-05-27 15:37:37','2021-06-16 10:44:30','2021-06-16 10:44:30'),(144,3755,2,40720,40726,13,1558,1,0,'2021-04-30',516367.50,'FACTURA DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE) A N°: 0001-00000014',NULL,'2021-05-27 15:37:37','2021-06-16 10:43:32','2021-06-16 10:43:32');

--
-- Table structure for table `cta_cte_cliente_details`
--

CREATE TABLE `cta_cte_cliente_details` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `cta_cte_cliente_id` int(10) unsigned NOT NULL,
  `person_id` int(10) unsigned DEFAULT NULL,
  `person_id_relationed` int(10) unsigned DEFAULT NULL,
  `cta_cte_tesoreria_cuenta_id` int(10) unsigned DEFAULT NULL,
  `period_id` int(10) unsigned DEFAULT NULL,
  `tipo_asiento_id` int(10) unsigned NOT NULL,
  `saldo_id` int(10) unsigned NOT NULL,
  `monto` decimal(16,2) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `cta_cte_cliente_details_cta_cte_cliente_id_foreign` (`cta_cte_cliente_id`),
  KEY `cta_cte_cliente_details_person_id_foreign` (`person_id`),
  KEY `cta_cte_cliente_details_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `cta_cte_cliente_details_period_id_foreign` (`period_id`),
  KEY `cta_cte_cliente_details_tipo_asiento_id_foreign` (`tipo_asiento_id`),
  KEY `cta_cte_cliente_details_saldo_id_foreign` (`saldo_id`),
  KEY `cta_cte_cliente_details_cta_cte_tesoreria_cuenta_id_foreign` (`cta_cte_tesoreria_cuenta_id`),
  CONSTRAINT `cta_cte_cliente_details_cta_cte_cliente_id_foreign` FOREIGN KEY (`cta_cte_cliente_id`) REFERENCES `cta_cte_cliente` (`id`),
  CONSTRAINT `cta_cte_cliente_details_cta_cte_tesoreria_cuenta_id_foreign` FOREIGN KEY (`cta_cte_tesoreria_cuenta_id`) REFERENCES `cta_cte_tesoreria_cuentas` (`id`),
  CONSTRAINT `cta_cte_cliente_details_period_id_foreign` FOREIGN KEY (`period_id`) REFERENCES `periods` (`id`),
  CONSTRAINT `cta_cte_cliente_details_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `cta_cte_cliente_details_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`),
  CONSTRAINT `cta_cte_cliente_details_saldo_id_foreign` FOREIGN KEY (`saldo_id`) REFERENCES `conta_tipo_saldos` (`id`),
  CONSTRAINT `cta_cte_cliente_details_tipo_asiento_id_foreign` FOREIGN KEY (`tipo_asiento_id`) REFERENCES `conta_tipo_asientos` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=153 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cta_cte_cliente_details`
--

INSERT INTO `cta_cte_cliente_details` VALUES (7,3755,86,40720,40721,13,1549,20,2,53603.00,'2021-04-17 19:21:56','2021-04-17 19:21:56',NULL),(8,3755,86,40720,40721,757,1549,20,1,46300.57,'2021-04-17 19:21:56','2021-04-17 19:21:56',NULL),(9,3755,86,40720,40721,162,1549,20,1,410.00,'2021-04-17 19:21:56','2021-04-17 19:21:56',NULL),(10,3755,86,40720,40721,25,1549,20,1,6888.00,'2021-04-17 19:21:56','2021-04-17 19:21:56',NULL),(11,3755,86,40720,40721,251,1549,20,1,0.33,'2021-04-17 19:21:56','2021-04-17 19:21:56',NULL),(12,3755,86,40720,40721,251,1549,20,1,4.10,'2021-04-17 19:21:56','2021-04-17 19:21:56',NULL),(13,3755,87,40720,40722,13,1549,20,2,18150.00,'2021-04-17 19:26:00','2021-04-17 19:26:00',NULL),(14,3755,87,40720,40722,757,1549,20,1,18150.00,'2021-04-17 19:26:01','2021-04-17 19:26:01',NULL),(15,3755,88,40720,40723,13,1549,20,2,16523.52,'2021-04-17 19:27:47','2021-04-17 19:27:47',NULL),(16,3755,88,40720,40723,757,1549,20,1,16523.52,'2021-04-17 19:27:47','2021-04-17 19:27:47',NULL),(17,3755,89,40720,40721,13,1549,20,2,229991.26,'2021-04-17 19:33:40','2021-04-17 19:33:40',NULL),(18,3755,89,40720,40721,757,1549,20,1,190092.85,'2021-04-17 19:33:40','2021-04-17 19:33:40',NULL),(19,3755,89,40720,40721,162,1549,20,1,1706.12,'2021-04-17 19:33:40','2021-04-17 19:33:40',NULL),(20,3755,89,40720,40721,25,1549,20,1,31932.67,'2021-04-17 19:33:40','2021-04-17 19:33:40',NULL),(21,3755,89,40720,40721,251,1549,20,1,3801.51,'2021-04-17 19:33:40','2021-04-17 19:33:40',NULL),(22,3755,89,40720,40721,23,1549,20,1,2458.11,'2021-04-17 19:33:40','2021-04-17 19:33:40',NULL),(23,3755,90,40720,40724,13,1549,20,2,89462.56,'2021-04-17 19:39:00','2021-04-17 19:39:00',NULL),(24,3755,90,40720,40724,757,1549,20,1,87983.84,'2021-04-17 19:39:00','2021-04-17 19:39:00',NULL),(25,3755,90,40720,40724,251,1549,20,1,1478.72,'2021-04-17 19:39:00','2021-04-17 19:39:00',NULL),(26,3755,91,40720,40724,13,1549,20,2,386079.54,'2021-04-17 19:48:57','2021-04-17 19:48:57',NULL),(27,3755,91,40720,40724,757,1549,20,1,377548.63,'2021-04-17 19:48:57','2021-04-17 19:48:57',NULL),(28,3755,91,40720,40724,23,1549,20,1,5038.08,'2021-04-17 19:48:57','2021-04-17 19:48:57',NULL),(29,3755,91,40720,40724,251,1549,20,1,20.33,'2021-04-17 19:48:57','2021-04-17 19:48:57',NULL),(30,3755,91,40720,40724,252,1549,20,1,3472.50,'2021-04-17 19:48:57','2021-04-17 19:48:57',NULL),(31,3755,92,40720,40721,13,1550,20,2,147817.16,'2021-04-17 19:54:51','2021-04-17 19:54:51',NULL),(32,3755,92,40720,40721,757,1550,20,1,122753.67,'2021-04-17 19:54:51','2021-04-17 19:54:51',NULL),(33,3755,92,40720,40721,251,1550,20,1,2443.26,'2021-04-17 19:54:51','2021-04-17 19:54:51',NULL),(34,3755,92,40720,40721,23,1550,20,1,1099.86,'2021-04-17 19:54:51','2021-04-17 19:54:51',NULL),(35,3755,92,40720,40721,25,1550,20,1,20523.37,'2021-04-17 19:54:51','2021-04-17 19:54:51',NULL),(36,3755,92,40720,40721,162,1550,20,1,997.00,'2021-04-17 19:54:51','2021-04-17 19:54:51',NULL),(37,3755,93,40720,40723,13,1550,20,2,9972.82,'2021-04-17 19:56:31','2021-04-17 19:56:31',NULL),(38,3755,93,40720,40723,757,1550,20,1,9972.82,'2021-04-17 19:56:31','2021-04-17 19:56:31',NULL),(39,3755,94,40720,40722,13,1550,20,2,22506.00,'2021-04-17 19:58:04','2021-04-17 19:58:04',NULL),(40,3755,94,40720,40722,757,1550,20,1,22506.00,'2021-04-17 19:58:04','2021-04-17 19:58:04',NULL),(41,3755,95,40720,40724,13,1550,20,2,138316.31,'2021-04-17 20:04:16','2021-04-17 20:04:16',NULL),(42,3755,95,40720,40724,757,1550,20,1,134683.52,'2021-04-17 20:04:16','2021-04-17 20:04:16',NULL),(43,3755,95,40720,40724,251,1550,20,1,1478.72,'2021-04-17 20:04:16','2021-04-17 20:04:16',NULL),(44,3755,95,40720,40724,252,1550,20,1,1211.25,'2021-04-17 20:04:16','2021-04-17 20:04:16',NULL),(45,3755,95,40720,40724,23,1550,20,1,942.82,'2021-04-17 20:04:16','2021-04-17 20:04:16',NULL),(46,3755,96,40720,40721,13,1551,20,2,291038.88,'2021-04-17 20:20:42','2021-04-17 20:20:42',NULL),(47,3755,96,40720,40721,757,1551,20,1,240125.16,'2021-04-17 20:20:42','2021-04-17 20:20:42',NULL);
INSERT INTO `cta_cte_cliente_details` VALUES (48,3755,96,40720,40721,251,1551,20,1,4588.56,'2021-04-17 20:20:42','2021-04-17 20:20:42',NULL),(49,3755,96,40720,40721,251,1551,20,1,222.00,'2021-04-17 20:20:42','2021-04-17 20:20:42',NULL),(50,3755,96,40720,40721,23,1551,20,1,4588.56,'2021-04-17 20:20:42','2021-04-17 20:20:42',NULL),(51,3755,96,40720,40721,162,1551,20,1,1805.19,'2021-04-17 20:20:42','2021-04-17 20:20:42',NULL),(52,3755,96,40720,40721,25,1551,20,1,38543.91,'2021-04-17 20:20:42','2021-04-17 20:20:42',NULL),(53,3755,96,40720,40721,25,1551,20,1,1165.50,'2021-04-17 20:20:42','2021-04-17 20:20:42',NULL),(54,3755,97,40720,40723,13,1551,20,2,9972.82,'2021-04-17 20:22:45','2021-04-17 20:22:45',NULL),(55,3755,97,40720,40723,757,1551,20,1,9972.82,'2021-04-17 20:22:45','2021-04-17 20:22:45',NULL),(56,3755,98,40720,40721,13,1551,20,2,183884.43,'2021-04-17 20:28:18','2021-04-17 20:28:18',NULL),(57,3755,98,40720,40721,757,1551,20,1,155912.93,'2021-04-17 20:28:18','2021-04-17 20:28:18',NULL),(58,3755,98,40720,40721,23,1551,20,1,929.41,'2021-04-17 20:28:18','2021-04-17 20:28:18',NULL),(59,3755,98,40720,40721,25,1551,20,1,19091.62,'2021-04-17 20:28:18','2021-04-17 20:28:18',NULL),(60,3755,98,40720,40721,25,1551,20,1,4024.65,'2021-04-17 20:28:18','2021-04-17 20:28:18',NULL),(61,3755,98,40720,40721,251,1551,20,1,766.60,'2021-04-17 20:28:18','2021-04-17 20:28:18',NULL),(62,3755,98,40720,40721,251,1551,20,1,2272.81,'2021-04-17 20:28:18','2021-04-17 20:28:18',NULL),(63,3755,98,40720,40721,162,1551,20,1,886.41,'2021-04-17 20:28:18','2021-04-17 20:28:18',NULL),(64,3755,99,40720,40722,13,1551,20,2,45012.00,'2021-04-17 20:30:18','2021-04-17 20:30:18',NULL),(65,3755,99,40720,40722,757,1551,20,1,45012.00,'2021-04-17 20:30:18','2021-04-17 20:30:18',NULL),(66,3755,100,40720,40721,13,1551,20,2,33275.00,'2021-04-17 20:34:30','2021-04-17 20:34:30',NULL),(67,3755,100,40720,40721,757,1551,20,1,27555.00,'2021-04-17 20:34:30','2021-04-17 20:34:30',NULL),(68,3755,100,40720,40721,251,1551,20,1,550.00,'2021-04-17 20:34:30','2021-04-17 20:34:30',NULL),(69,3755,100,40720,40721,23,1551,20,1,550.00,'2021-04-17 20:34:30','2021-04-17 20:34:30',NULL),(70,3755,100,40720,40721,25,1551,20,1,4620.00,'2021-04-17 20:34:30','2021-04-17 20:34:30',NULL),(71,3755,101,40720,40733,13,1551,20,2,19965.00,'2021-04-17 20:42:29','2021-04-17 20:42:29',NULL),(72,3755,101,40720,40733,757,1551,20,1,19470.00,'2021-04-17 20:42:29','2021-04-17 20:42:29',NULL),(73,3755,101,40720,40733,252,1551,20,1,495.00,'2021-04-17 20:42:29','2021-04-17 20:42:29',NULL),(74,3755,102,40720,40723,13,1555,20,2,25702.82,'2021-04-17 20:47:02','2021-04-17 20:47:02',NULL),(75,3755,102,40720,40723,757,1555,20,1,25702.82,'2021-04-17 20:47:02','2021-04-17 20:47:02',NULL),(76,3755,103,40720,40721,13,1555,20,2,145526.70,'2021-04-17 20:51:40','2021-04-17 20:51:40',NULL),(77,3755,103,40720,40721,757,1555,20,1,120757.87,'2021-04-17 20:51:40','2021-04-17 20:51:40',NULL),(78,3755,103,40720,40721,251,1555,20,1,2405.40,'2021-04-17 20:51:40','2021-04-17 20:51:40',NULL),(79,3755,103,40720,40721,25,1555,20,1,20205.36,'2021-04-17 20:51:40','2021-04-17 20:51:40',NULL),(80,3755,103,40720,40721,23,1555,20,1,1062.00,'2021-04-17 20:51:40','2021-04-17 20:51:40',NULL),(81,3755,103,40720,40721,162,1555,20,1,1096.07,'2021-04-17 20:51:40','2021-04-17 20:51:40',NULL),(82,3755,104,40720,40724,13,1556,20,2,285990.76,'2021-04-17 20:57:39','2021-04-17 20:57:39',NULL),(83,3755,104,40720,40724,251,1556,20,1,3327.12,'2021-04-17 20:57:39','2021-04-17 20:57:39',NULL),(84,3755,104,40720,40724,252,1556,20,1,2100.00,'2021-04-17 20:57:39','2021-04-17 20:57:39',NULL),(85,3755,104,40720,40724,23,1556,20,1,3383.72,'2021-04-17 20:57:39','2021-04-17 20:57:39',NULL),(86,3755,104,40720,40724,757,1556,20,1,138589.96,'2021-04-17 20:57:39','2021-04-17 20:57:39',NULL),(87,3755,104,40720,40724,757,1556,20,1,138589.96,'2021-04-17 20:57:39','2021-04-17 20:57:39',NULL),(88,3755,105,40720,40726,13,1556,20,2,14500.00,'2021-04-17 21:06:30','2021-04-17 21:06:30',NULL);
INSERT INTO `cta_cte_cliente_details` VALUES (89,3755,105,40720,40726,757,1556,20,1,14500.00,'2021-04-17 21:06:30','2021-04-17 21:06:30',NULL),(90,3755,106,40720,40721,13,1556,20,2,314327.14,'2021-04-17 21:09:04','2021-04-17 21:09:04',NULL),(91,3755,106,40720,40721,757,1556,20,1,259558.38,'2021-04-17 21:09:04','2021-04-17 21:09:04',NULL),(92,3755,106,40720,40721,251,1556,20,1,5195.49,'2021-04-17 21:09:04','2021-04-17 21:09:04',NULL),(93,3755,106,40720,40721,25,1556,20,1,43642.11,'2021-04-17 21:09:04','2021-04-17 21:09:04',NULL),(94,3755,106,40720,40721,23,1556,20,1,3852.09,'2021-04-17 21:09:04','2021-04-17 21:09:04',NULL),(95,3755,106,40720,40721,162,1556,20,1,2079.07,'2021-04-17 21:09:04','2021-04-17 21:09:04',NULL),(96,3755,107,40720,40723,13,1556,20,2,10712.86,'2021-04-17 21:11:40','2021-04-17 21:11:40',NULL),(97,3755,107,40720,40723,757,1556,20,1,10712.86,'2021-04-17 21:11:40','2021-04-17 21:11:40',NULL),(98,3755,108,40720,40721,13,1556,20,2,193059.23,'2021-04-17 21:14:58','2021-04-17 21:14:58',NULL),(99,3755,108,40720,40721,757,1556,20,1,158276.66,'2021-04-17 21:14:58','2021-04-17 21:14:58',NULL),(100,3755,108,40720,40721,162,1556,20,1,1595.53,'2021-04-17 21:14:58','2021-04-17 21:14:58',NULL),(101,3755,108,40720,40721,251,1556,20,1,3191.06,'2021-04-17 21:14:58','2021-04-17 21:14:58',NULL),(102,3755,108,40720,40721,23,1556,20,1,3191.06,'2021-04-17 21:14:58','2021-04-17 21:14:58',NULL),(103,3755,108,40720,40721,25,1556,20,1,26804.92,'2021-04-17 21:14:58','2021-04-17 21:14:58',NULL),(104,3755,109,40720,40722,13,1557,20,2,22506.00,'2021-04-17 21:33:27','2021-04-17 21:33:27',NULL),(105,3755,109,40720,40722,757,1557,20,1,22506.00,'2021-04-17 21:33:27','2021-04-17 21:33:27',NULL),(106,3755,110,40720,40721,13,1557,20,2,282484.76,'2021-04-17 21:38:45','2021-04-17 21:38:45',NULL),(107,3755,110,40720,40721,757,1557,20,1,233839.60,'2021-04-17 21:38:45','2021-04-17 21:38:45',NULL),(108,3755,110,40720,40721,25,1557,20,1,38885.03,'2021-04-17 21:38:45','2021-04-17 21:38:45',NULL),(109,3755,110,40720,40721,251,1557,20,1,40.00,'2021-04-17 21:38:45','2021-04-17 21:38:45',NULL),(110,3755,110,40720,40721,251,1557,20,1,4629.17,'2021-04-17 21:38:45','2021-04-17 21:38:45',NULL),(111,3755,110,40720,40721,23,1557,20,1,3285.77,'2021-04-17 21:38:45','2021-04-17 21:38:45',NULL),(112,3755,110,40720,40721,162,1557,20,1,1805.19,'2021-04-17 21:38:45','2021-04-17 21:38:45',NULL),(113,3755,111,40720,40727,13,1557,20,2,21000.00,'2021-04-17 21:40:57','2021-04-17 21:40:57',NULL),(114,3755,111,40720,40727,757,1557,20,1,21000.00,'2021-04-17 21:40:57','2021-04-17 21:40:57',NULL),(115,3755,112,40720,40723,13,1557,20,2,9972.82,'2021-04-17 21:42:37','2021-04-17 21:42:37',NULL),(116,3755,112,40720,40723,757,1557,20,1,9972.82,'2021-04-17 21:42:37','2021-04-17 21:42:37',NULL),(117,3755,115,40720,40730,13,1558,20,2,1600.00,'2021-04-17 21:52:27','2021-04-17 21:52:27',NULL),(118,3755,115,40720,40730,359,1558,20,1,1600.00,'2021-04-17 21:52:27','2021-04-17 21:52:27',NULL),(119,3755,116,40720,40731,13,1558,20,2,1600.00,'2021-04-17 21:53:33','2021-04-17 21:53:33',NULL),(120,3755,116,40720,40731,359,1558,20,1,1600.00,'2021-04-17 21:53:33','2021-04-17 21:53:33',NULL),(121,3755,117,40720,40728,13,1558,20,2,1600.00,'2021-04-17 21:54:54','2021-04-17 21:54:54',NULL),(122,3755,117,40720,40728,359,1558,20,1,1600.00,'2021-04-17 21:54:54','2021-04-17 21:54:54',NULL),(123,3755,124,40720,40723,13,1557,20,2,9972.82,'2021-04-22 21:02:34','2021-04-22 21:02:34',NULL),(124,3755,124,40720,40723,757,1557,20,1,9972.82,'2021-04-22 21:02:34','2021-04-22 21:02:34',NULL),(125,3755,125,40720,40725,13,1558,20,2,24805.00,'2021-04-22 21:04:27','2021-04-22 21:04:27',NULL),(126,3755,125,40720,40725,757,1558,20,1,24805.00,'2021-04-22 21:04:27','2021-04-22 21:04:27',NULL),(127,3755,126,40720,40724,13,1558,20,2,241259.48,'2021-04-22 21:08:17','2021-04-22 21:08:17',NULL),(128,3755,126,40720,40724,757,1558,20,1,233927.36,'2021-04-22 21:08:17','2021-04-22 21:08:17',NULL);
INSERT INTO `cta_cte_cliente_details` VALUES (129,3755,126,40720,40724,251,1558,20,1,2587.76,'2021-04-22 21:08:17','2021-04-22 21:08:17',NULL),(130,3755,126,40720,40724,252,1558,20,1,2100.00,'2021-04-22 21:08:17','2021-04-22 21:08:17',NULL),(131,3755,126,40720,40724,23,1558,20,1,2644.36,'2021-04-22 21:08:17','2021-04-22 21:08:17',NULL),(132,3755,127,40720,40724,13,1558,20,2,263625.12,'2021-04-22 21:10:59','2021-04-22 21:10:59',NULL),(133,3755,127,40720,40724,757,1558,20,1,254210.24,'2021-04-22 21:10:59','2021-04-22 21:10:59',NULL),(134,3755,127,40720,40724,23,1558,20,1,4357.44,'2021-04-22 21:10:59','2021-04-22 21:10:59',NULL),(135,3755,127,40720,40724,251,1558,20,1,2957.44,'2021-04-22 21:10:59','2021-04-22 21:10:59',NULL),(136,3755,127,40720,40724,252,1558,20,1,2100.00,'2021-04-22 21:10:59','2021-04-22 21:10:59',NULL),(137,3755,128,40720,40726,13,1558,20,2,196639.52,'2021-04-22 21:14:04','2021-04-22 21:14:04',NULL),(138,3755,128,40720,40726,23,1558,20,1,2650.24,'2021-04-22 21:14:04','2021-04-22 21:14:04',NULL),(139,3755,128,40720,40726,251,1558,20,1,3250.24,'2021-04-22 21:14:04','2021-04-22 21:14:04',NULL),(140,3755,128,40720,40726,252,1558,20,1,4875.36,'2021-04-22 21:14:04','2021-04-22 21:14:04',NULL),(141,3755,128,40720,40726,757,1558,20,1,185863.68,'2021-04-22 21:14:04','2021-04-22 21:14:04',NULL),(142,3755,131,40720,40733,13,1558,20,2,9075.00,'2021-05-03 19:02:55','2021-05-03 19:02:55',NULL),(143,3755,131,40720,40733,757,1558,20,1,8850.00,'2021-05-03 19:02:55','2021-05-03 19:02:55',NULL),(144,3755,131,40720,40733,252,1558,20,1,225.00,'2021-05-03 19:02:55','2021-05-03 19:02:55',NULL),(145,3755,132,40720,40722,13,1558,20,2,40656.00,'2021-05-03 19:04:51','2021-05-03 19:04:51',NULL),(146,3755,132,40720,40722,757,1558,20,1,40656.00,'2021-05-03 19:04:51','2021-05-03 19:04:51',NULL),(147,3755,133,40720,40721,13,1558,20,2,244369.76,'2021-05-03 19:07:55','2021-05-03 19:07:55',NULL),(148,3755,133,40720,40721,25,1558,20,1,33929.03,'2021-05-03 19:07:55','2021-05-03 19:07:55',NULL),(149,3755,133,40720,40721,23,1558,20,1,2695.77,'2021-05-03 19:07:55','2021-05-03 19:07:55',NULL),(150,3755,133,40720,40721,251,1558,20,1,4039.17,'2021-05-03 19:07:55','2021-05-03 19:07:55',NULL),(151,3755,133,40720,40721,162,1558,20,1,1805.19,'2021-05-03 19:07:55','2021-05-03 19:07:55',NULL),(152,3755,133,40720,40721,757,1558,20,1,201900.60,'2021-05-03 19:07:55','2021-05-03 19:07:55',NULL);

--
-- Table structure for table `cta_cte_cliente_pivot_receipt`
--

CREATE TABLE `cta_cte_cliente_pivot_receipt` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `cta_cte_cliente_id` int(10) unsigned NOT NULL,
  `receipt_id` int(10) unsigned NOT NULL,
  `importe` decimal(16,2) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=174 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cta_cte_cliente_pivot_receipt`
--

INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (1,NULL,1,1,NULL,NULL,NULL,NULL),(2,NULL,2,2,NULL,NULL,NULL,NULL),(3,NULL,3,3,NULL,NULL,NULL,NULL),(4,NULL,4,4,NULL,NULL,NULL,NULL),(5,NULL,5,5,NULL,NULL,NULL,NULL),(6,NULL,6,6,NULL,NULL,NULL,NULL),(7,NULL,7,7,NULL,NULL,NULL,NULL),(8,NULL,8,8,NULL,NULL,NULL,NULL),(9,NULL,9,9,NULL,NULL,NULL,NULL),(10,NULL,10,10,NULL,NULL,NULL,NULL),(11,NULL,11,11,NULL,NULL,NULL,NULL),(12,NULL,12,12,NULL,NULL,NULL,NULL),(13,NULL,13,13,NULL,NULL,NULL,NULL),(14,NULL,14,14,NULL,NULL,NULL,NULL),(15,NULL,15,15,NULL,NULL,NULL,NULL),(16,NULL,16,16,NULL,NULL,NULL,NULL),(17,NULL,17,17,NULL,NULL,NULL,NULL),(18,NULL,18,18,NULL,NULL,NULL,NULL),(19,NULL,19,19,NULL,NULL,NULL,NULL),(20,NULL,20,20,NULL,NULL,NULL,NULL),(21,NULL,21,21,NULL,NULL,NULL,NULL),(22,NULL,22,22,NULL,NULL,NULL,NULL),(23,NULL,23,23,NULL,NULL,NULL,NULL),(24,NULL,24,24,NULL,NULL,NULL,NULL),(25,NULL,25,25,NULL,NULL,NULL,NULL),(26,NULL,26,26,NULL,NULL,NULL,NULL),(27,NULL,27,27,NULL,NULL,NULL,NULL),(28,NULL,28,28,NULL,NULL,NULL,NULL),(29,NULL,29,29,NULL,NULL,NULL,NULL),(30,NULL,30,30,NULL,NULL,NULL,NULL),(31,NULL,31,31,NULL,NULL,NULL,NULL),(32,NULL,32,32,NULL,NULL,NULL,NULL),(33,NULL,33,33,NULL,NULL,NULL,NULL),(34,NULL,34,34,NULL,NULL,NULL,NULL),(35,NULL,35,35,NULL,NULL,NULL,NULL),(36,NULL,36,36,NULL,NULL,NULL,NULL),(37,NULL,37,37,NULL,NULL,NULL,NULL),(38,NULL,38,38,NULL,NULL,NULL,NULL),(39,NULL,39,39,NULL,NULL,NULL,NULL),(40,NULL,40,40,NULL,NULL,NULL,NULL),(41,NULL,41,41,NULL,NULL,NULL,NULL),(42,NULL,42,42,NULL,NULL,NULL,NULL),(43,NULL,43,43,NULL,NULL,NULL,NULL),(44,NULL,44,44,NULL,NULL,NULL,NULL),(45,NULL,45,45,NULL,NULL,NULL,NULL),(46,NULL,46,46,NULL,NULL,NULL,NULL),(47,NULL,47,47,NULL,NULL,NULL,NULL),(48,NULL,48,48,NULL,NULL,NULL,NULL),(49,NULL,49,49,NULL,NULL,NULL,NULL),(50,NULL,50,50,NULL,NULL,NULL,NULL),(51,NULL,51,51,NULL,NULL,NULL,NULL),(52,NULL,52,52,NULL,NULL,NULL,NULL),(53,NULL,53,53,NULL,NULL,NULL,NULL),(54,NULL,54,54,NULL,NULL,NULL,NULL),(55,NULL,55,55,NULL,NULL,NULL,NULL),(56,NULL,56,56,NULL,NULL,NULL,NULL),(57,NULL,57,57,NULL,NULL,NULL,NULL),(58,NULL,58,58,NULL,NULL,NULL,NULL),(59,NULL,59,59,NULL,NULL,NULL,NULL),(60,NULL,60,60,NULL,NULL,NULL,NULL),(61,NULL,61,61,NULL,NULL,NULL,NULL),(62,NULL,62,62,NULL,NULL,NULL,NULL),(63,NULL,63,63,NULL,NULL,NULL,NULL),(64,NULL,64,64,NULL,NULL,NULL,NULL),(65,NULL,65,65,NULL,NULL,NULL,NULL),(66,NULL,66,66,NULL,NULL,NULL,NULL),(67,NULL,67,67,NULL,NULL,NULL,NULL),(68,NULL,68,68,NULL,NULL,NULL,NULL),(69,NULL,69,69,NULL,NULL,NULL,NULL),(70,NULL,70,70,NULL,NULL,NULL,NULL),(71,NULL,71,71,NULL,NULL,NULL,NULL),(72,NULL,72,72,NULL,NULL,NULL,NULL),(73,NULL,73,73,NULL,NULL,NULL,NULL),(74,NULL,74,74,NULL,NULL,NULL,NULL),(78,NULL,78,78,NULL,NULL,NULL,NULL),(79,NULL,79,79,NULL,NULL,NULL,NULL),(80,NULL,80,80,NULL,NULL,NULL,NULL),(81,NULL,81,81,NULL,NULL,NULL,NULL),(82,NULL,82,82,NULL,NULL,NULL,NULL),(89,NULL,86,89,NULL,NULL,NULL,NULL),(90,NULL,86,90,NULL,NULL,NULL,NULL),(91,NULL,86,91,NULL,NULL,NULL,NULL),(92,NULL,86,92,NULL,NULL,NULL,NULL),(93,NULL,89,93,NULL,NULL,NULL,NULL),(94,NULL,89,94,NULL,NULL,NULL,NULL),(95,NULL,89,95,NULL,NULL,NULL,NULL),(96,NULL,89,96,NULL,NULL,NULL,NULL),(97,NULL,90,97,NULL,NULL,NULL,NULL),(98,NULL,91,98,NULL,NULL,NULL,NULL),(99,NULL,91,99,NULL,NULL,NULL,NULL),(100,NULL,91,100,NULL,NULL,NULL,NULL),(101,NULL,92,101,NULL,NULL,NULL,NULL),(102,NULL,92,102,NULL,NULL,NULL,NULL),(103,NULL,92,103,NULL,NULL,NULL,NULL),(104,NULL,92,104,NULL,NULL,NULL,NULL),(105,NULL,95,105,NULL,NULL,NULL,NULL),(106,NULL,95,106,NULL,NULL,NULL,NULL),(107,NULL,95,107,NULL,NULL,NULL,NULL),(108,NULL,96,108,NULL,NULL,NULL,NULL),(109,NULL,96,109,NULL,NULL,NULL,NULL),(110,NULL,96,110,NULL,NULL,NULL,NULL),(111,NULL,96,111,NULL,NULL,NULL,NULL),(112,NULL,96,112,NULL,NULL,NULL,NULL),(113,NULL,96,113,NULL,NULL,NULL,NULL),(114,NULL,98,114,NULL,NULL,NULL,NULL),(115,NULL,98,115,NULL,NULL,NULL,NULL),(116,NULL,98,116,NULL,NULL,NULL,NULL),(117,NULL,98,117,NULL,NULL,NULL,NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (118,NULL,98,118,NULL,NULL,NULL,NULL),(119,NULL,98,119,NULL,NULL,NULL,NULL),(120,NULL,100,120,NULL,NULL,NULL,NULL),(121,NULL,100,121,NULL,NULL,NULL,NULL),(122,NULL,100,122,NULL,NULL,NULL,NULL),(123,NULL,101,123,NULL,NULL,NULL,NULL),(124,NULL,103,124,NULL,NULL,NULL,NULL),(125,NULL,103,125,NULL,NULL,NULL,NULL),(126,NULL,103,126,NULL,NULL,NULL,NULL),(127,NULL,103,127,NULL,NULL,NULL,NULL),(128,NULL,104,128,NULL,NULL,NULL,NULL),(129,NULL,104,129,NULL,NULL,NULL,NULL),(130,NULL,104,130,NULL,NULL,NULL,NULL),(131,NULL,106,131,NULL,NULL,NULL,NULL),(132,NULL,106,132,NULL,NULL,NULL,NULL),(133,NULL,106,133,NULL,NULL,NULL,NULL),(134,NULL,106,134,NULL,NULL,NULL,NULL),(135,NULL,108,135,NULL,NULL,NULL,NULL),(136,NULL,108,136,NULL,NULL,NULL,NULL),(137,NULL,108,137,NULL,NULL,NULL,NULL),(138,NULL,108,138,NULL,NULL,NULL,NULL),(139,NULL,110,139,NULL,NULL,NULL,NULL),(140,NULL,110,140,NULL,NULL,NULL,NULL),(141,NULL,110,141,NULL,NULL,NULL,NULL),(142,NULL,110,142,NULL,NULL,NULL,NULL),(143,NULL,110,143,NULL,NULL,NULL,NULL),(144,NULL,119,144,NULL,NULL,NULL,NULL),(145,NULL,120,145,NULL,NULL,NULL,NULL),(146,NULL,121,146,NULL,NULL,NULL,NULL),(147,NULL,122,147,NULL,NULL,NULL,NULL),(148,NULL,123,148,NULL,NULL,NULL,NULL),(149,NULL,126,149,NULL,NULL,NULL,NULL),(150,NULL,126,150,NULL,NULL,NULL,NULL),(151,NULL,126,151,NULL,NULL,NULL,NULL),(152,NULL,127,152,NULL,NULL,NULL,NULL),(153,NULL,127,153,NULL,NULL,NULL,NULL),(154,NULL,127,154,NULL,NULL,NULL,NULL),(155,NULL,128,155,NULL,NULL,NULL,NULL),(156,NULL,128,156,NULL,NULL,NULL,NULL),(157,NULL,128,157,NULL,NULL,NULL,NULL),(158,NULL,129,158,NULL,NULL,NULL,NULL),(159,NULL,130,159,NULL,NULL,NULL,NULL),(160,NULL,131,160,NULL,NULL,NULL,NULL),(161,NULL,133,161,NULL,NULL,NULL,NULL),(162,NULL,133,162,NULL,NULL,NULL,NULL),(163,NULL,133,163,NULL,NULL,NULL,NULL),(164,NULL,133,164,NULL,NULL,NULL,NULL),(165,NULL,134,165,NULL,NULL,NULL,NULL),(169,NULL,138,169,NULL,NULL,NULL,NULL),(170,NULL,139,170,NULL,NULL,NULL,NULL),(172,NULL,141,172,NULL,NULL,NULL,NULL),(173,NULL,142,173,NULL,NULL,NULL,NULL);

--
-- Table structure for table `cta_cte_tesoreria`
--

CREATE TABLE `cta_cte_tesoreria` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `cta_cte_cliente_id` int(10) unsigned DEFAULT NULL,
  `nf_cta_cte_id` int(10) unsigned DEFAULT NULL,
  `cta_cte_tesoreria_cuenta_id` int(10) unsigned NOT NULL,
  `period_id` int(10) unsigned NOT NULL,
  `fecha` date DEFAULT NULL,
  `total` decimal(16,2) NOT NULL,
  `comentario` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `file` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `cta_cte_tesoreria_person_id_foreign` (`person_id`),
  KEY `cta_cte_tesoreria_cta_cte_cliente_id_foreign` (`cta_cte_cliente_id`),
  KEY `cta_cte_tesoreria_cta_cte_tesoreria_cuenta_id_foreign` (`cta_cte_tesoreria_cuenta_id`),
  KEY `cta_cte_tesoreria_period_id_foreign` (`period_id`),
  KEY `cta_cte_tesoreria_nf_cta_cte_id_foreign` (`nf_cta_cte_id`),
  CONSTRAINT `cta_cte_tesoreria_cta_cte_cliente_id_foreign` FOREIGN KEY (`cta_cte_cliente_id`) REFERENCES `cta_cte_cliente` (`id`),
  CONSTRAINT `cta_cte_tesoreria_cta_cte_tesoreria_cuenta_id_foreign` FOREIGN KEY (`cta_cte_tesoreria_cuenta_id`) REFERENCES `cta_cte_tesoreria_cuentas` (`id`),
  CONSTRAINT `cta_cte_tesoreria_nf_cta_cte_id_foreign` FOREIGN KEY (`nf_cta_cte_id`) REFERENCES `nf_cta_cte` (`id`),
  CONSTRAINT `cta_cte_tesoreria_period_id_foreign` FOREIGN KEY (`period_id`) REFERENCES `periods` (`id`),
  CONSTRAINT `cta_cte_tesoreria_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=40 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cta_cte_tesoreria`
--

INSERT INTO `cta_cte_tesoreria` VALUES (1,3755,40720,85,NULL,13,1549,'2021-04-17',53603.00,'FC 97 Y 98 DEL 25/08/2020',NULL,'2021-04-17 19:15:52','2021-04-17 19:17:12','2021-04-17 19:17:12'),(2,3755,40720,86,NULL,13,1549,'2020-10-02',53603.00,'FC A 00001-00000097 \nFC A 00001-00000098 ',NULL,'2021-04-17 19:21:56','2021-04-17 19:21:56',NULL),(3,3755,40720,87,NULL,13,1549,'2020-10-07',18150.00,'FC A 00001-00000105',NULL,'2021-04-17 19:26:01','2021-04-17 19:26:01',NULL),(4,3755,40720,88,NULL,13,1549,'2020-10-08',16523.52,'FC A 00001-00000115',NULL,'2021-04-17 19:27:47','2021-04-17 19:27:47',NULL),(5,3755,40720,89,NULL,13,1549,'2020-10-09',229991.26,'FC A 00001-000000101\nFC A 00001-000000102\nFC A 00001-000000103\nFC A 00001-000000104',NULL,'2021-04-17 19:33:40','2021-04-17 19:33:40',NULL),(6,3755,40720,90,NULL,13,1549,'2020-10-14',89462.56,'FC A 00001-00000108',NULL,'2021-04-17 19:39:00','2021-04-17 19:39:00',NULL),(7,3755,40720,91,NULL,13,1549,'2020-10-14',386079.54,'FC A 00001-00000083\nFC A 00001-00000082\nFC A 00001-00000081\nFC A 00001-00000096\nFC A 00001-00000095\nFC A 00001-00000094\nFC A 00001-00000067\nFC A 00001-00000068\n',NULL,'2021-04-17 19:48:57','2021-04-17 19:48:57',NULL),(8,3755,40720,92,NULL,13,1550,'2020-11-09',147817.16,'FC A 00001-00000109\nFC A 00001-00000110\nFC A 00001-00000111\nFC A 00001-00000112',NULL,'2021-04-17 19:54:51','2021-04-17 19:54:51',NULL),(9,3755,40720,93,NULL,13,1550,'2020-11-12',9972.82,'FC A 00001-00000128',NULL,'2021-04-17 19:56:31','2021-04-17 19:56:31',NULL),(10,3755,40720,94,NULL,13,1550,'2020-11-30',22506.00,'FC A 00001-00000113',NULL,'2021-04-17 19:58:04','2021-04-17 19:58:04',NULL),(11,3755,40720,95,NULL,13,1550,'2021-04-17',138316.31,'FC A 00001-00000116\nFC A 00001-00000117\nFC A 00001-00000118',NULL,'2021-04-17 20:04:16','2021-04-17 20:04:16',NULL),(12,3755,40720,96,NULL,13,1551,'2020-12-04',291038.88,'FC A 00001-00000119\nFC A 00001-00000120\nFC A 00001-00000121\nFC A 00001-00000122\nFC A 00001-00000123\nFC A 00001-00000124\nFC A 00001-00000125\n',NULL,'2021-04-17 20:20:42','2021-04-17 20:20:42',NULL),(13,3755,40720,97,NULL,13,1551,'2020-12-10',9972.82,'FC A 00001-00000140',NULL,'2021-04-17 20:22:45','2021-04-17 20:22:45',NULL),(14,3755,40720,98,NULL,13,1551,'2020-12-28',183884.43,'FCA 00001-00000132\nFCA 00001-00000133\nFCA 00001-00000134\n',NULL,'2021-04-17 20:28:18','2021-04-17 20:28:18',NULL),(15,3755,40720,99,NULL,13,1551,'2020-12-30',45012.00,'FC A 00001-00000145\n\n',NULL,'2021-04-17 20:30:18','2021-04-17 20:30:18',NULL),(16,3755,40720,100,NULL,13,1551,'2020-12-30',33275.00,'FC A 0001-00000135',NULL,'2021-04-17 20:34:30','2021-04-17 20:34:30',NULL),(17,3755,40720,101,NULL,13,1551,'2020-12-30',19965.00,'FC A 00001-00000131\nFC A 00001-00000143',NULL,'2021-04-17 20:42:29','2021-04-17 20:42:29',NULL),(18,3755,40720,102,NULL,13,1555,'2021-01-07',25702.82,'FC A 00001-00000150',NULL,'2021-04-17 20:47:02','2021-04-17 20:47:02',NULL),(19,3755,40720,103,NULL,13,1555,'2021-01-08',145526.70,'FC A 00001-00000136\nFC A 00001-00000137',NULL,'2021-04-17 20:51:40','2021-04-17 20:51:40',NULL),(20,3755,40720,104,NULL,13,1556,'2021-02-03',285990.76,'FC A 00001-00000129\nFC A 00001-00000130\nFC A 00001-00000141\nFC A 00001-00000142',NULL,'2021-04-17 20:57:39','2021-04-17 20:57:39',NULL),(21,3755,40720,105,NULL,13,1556,'2021-02-05',14500.00,'FC A 00001-00000144 PARCIAL',NULL,'2021-04-17 21:06:30','2021-04-17 21:06:30',NULL),(22,3755,40720,106,NULL,13,1556,'2021-02-06',314327.14,'FC A 00001-000000146\nFC A 00001-000000147\nFC A 00001-000000148\nFC A 00001-000000154\nFC A 00001-000000155\nFC A 00001-000000156\n',NULL,'2021-04-17 21:09:04','2021-04-17 21:09:04',NULL),(23,3755,40720,107,NULL,13,1556,'2021-02-12',10712.86,'FC A 00001-00000170',NULL,'2021-04-17 21:11:40','2021-04-17 21:11:40',NULL),(24,3755,40720,108,NULL,13,1556,'2021-02-13',193059.23,'FC A 00001-00000158\nFC A 00001-00000160 ',NULL,'2021-04-17 21:14:58','2021-04-17 21:14:58',NULL);
INSERT INTO `cta_cte_tesoreria` VALUES (25,3755,40720,109,NULL,13,1557,'2021-03-02',22506.00,'FC A 00001-000000126',NULL,'2021-04-17 21:33:27','2021-04-17 21:33:27',NULL),(26,3755,40720,110,NULL,13,1557,'2021-03-05',282484.76,'FC A 00001-00000161\nFC A 00001-00000162\nFC A 00001-00000163\nFC A 00001-00000164\nFC A 00001-00000165\nFC A 00001-00000166',NULL,'2021-04-17 21:38:45','2021-04-17 21:38:45',NULL),(27,3755,40720,111,NULL,13,1557,'2021-03-20',21000.00,'FC B 00001-00000025\nFC B 00001-00000026\n',NULL,'2021-04-17 21:40:57','2021-04-17 21:40:57',NULL),(28,3755,40720,112,NULL,13,1557,'2021-03-26',9972.82,'FC A 00001-00000179',NULL,'2021-04-17 21:42:37','2021-04-17 21:42:37',NULL),(29,3755,40720,115,NULL,13,1558,'2021-04-18',1600.00,'FC A 00001-00000194',NULL,'2021-04-17 21:52:27','2021-04-17 21:52:27',NULL),(30,3755,40720,116,NULL,13,1558,'2021-04-18',1600.00,'FC B 00001-00000028',NULL,'2021-04-17 21:53:33','2021-04-17 21:53:33',NULL),(31,3755,40720,117,NULL,13,1558,'2021-04-18',1600.00,'FC B 00001-00000027',NULL,'2021-04-17 21:54:54','2021-04-17 21:54:54',NULL),(32,3755,40720,124,NULL,13,1557,'2021-04-13',9972.82,'FC A 00001-0000000190',NULL,'2021-04-22 21:02:34','2021-04-22 21:02:34',NULL),(33,3755,40720,125,NULL,13,1558,'2021-04-17',24805.00,'FC A 00001-00000167\nFC A 00001-00000168',NULL,'2021-04-22 21:04:27','2021-04-22 21:04:27',NULL),(34,3755,40720,126,NULL,13,1558,'2021-04-22',241259.48,'FC A 00001-00000151\nFC A 00001-00000152\nFC A 00001-00000171\nFC A 00001-00000172',NULL,'2021-04-22 21:08:17','2021-04-22 21:08:17',NULL),(35,3755,40720,127,NULL,13,1558,'2021-04-22',263625.12,'FC A 00001-00000180\nFC A 00001-00000181\nFC A 00001-00000191\nFC A 00001-00000192',NULL,'2021-04-22 21:10:59','2021-04-22 21:10:59',NULL),(36,3755,40720,128,NULL,13,1558,'2021-04-23',196639.52,'FCE A 00001-00000009 PAGO PARCIAL',NULL,'2021-04-22 21:14:04','2021-04-22 21:14:04',NULL),(37,3755,40720,131,NULL,13,1558,'2021-04-26',9075.00,'FC A 00001-00000157',NULL,'2021-05-03 19:02:55','2021-05-03 19:02:55',NULL),(38,3755,40720,132,NULL,13,1558,'2021-04-27',40656.00,'FC A 00001-00000189',NULL,'2021-05-03 19:04:51','2021-05-03 19:04:51',NULL),(39,3755,40720,133,NULL,13,1558,'2021-04-30',244369.76,'FC A 00001-00000173\nFC A 00001-00000174\nFC A 00001-00000175\nFC A 00001-00000176',NULL,'2021-05-03 19:07:55','2021-05-03 19:07:55',NULL);

--
-- Table structure for table `cta_cte_tesoreria_cuentas`
--

CREATE TABLE `cta_cte_tesoreria_cuentas` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `plan_cuenta_id` int(10) unsigned NOT NULL,
  `person_id` int(10) unsigned DEFAULT NULL,
  `nombre` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `cheque3ros` tinyint(1) NOT NULL DEFAULT '0',
  `cheque_emitidos` tinyint(1) NOT NULL DEFAULT '0',
  `tes_cta_cte` tinyint(1) NOT NULL DEFAULT '0',
  `tes_cuenta_origen` tinyint(1) NOT NULL DEFAULT '0',
  `tes_cuenta_destino` tinyint(1) NOT NULL DEFAULT '0',
  `conta_asientos` tinyint(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `cta_cte_tesoreria_cuentas_person_id_foreign` (`person_id`),
  KEY `cta_cte_tesoreria_cuentas_plan_cuenta_id_foreign` (`plan_cuenta_id`),
  CONSTRAINT `cta_cte_tesoreria_cuentas_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `cta_cte_tesoreria_cuentas_plan_cuenta_id_foreign` FOREIGN KEY (`plan_cuenta_id`) REFERENCES `conta_plan_cuenta` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=758 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cta_cte_tesoreria_cuentas`
--

INSERT INTO `cta_cte_tesoreria_cuentas` VALUES (13,NULL,13,NULL,'Clientes - Deudores',0,0,0,0,0,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(20,NULL,20,NULL,'Anticipos Impuesto a las Ganancias',0,0,0,0,1,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(23,NULL,23,NULL,'Retenciones Impuesto a las Ganancias',0,0,1,0,0,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(25,NULL,25,NULL,'Retenciones de IVA',0,0,1,0,0,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(57,NULL,57,NULL,'Proveedores en Cta. Cte. locales',0,0,0,0,0,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(60,NULL,60,NULL,'Cheques emitidos ',0,1,1,1,1,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(62,NULL,62,NULL,'Sueldos y Jornales a pagar',0,0,0,0,1,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(140,NULL,140,NULL,'Intereses y Gastos bancarios',0,0,0,0,1,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(162,NULL,162,NULL,'Retenciones SUSS',0,0,1,0,0,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(176,NULL,176,NULL,'Cheques en Cartera',1,0,1,1,1,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(201,NULL,201,NULL,'Monotributo',0,0,0,0,1,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(203,NULL,203,NULL,'Autonomos',0,0,0,0,1,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(219,NULL,219,NULL,'Pagos AFIP',0,0,0,0,1,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(251,NULL,251,NULL,'Retenciones de IIBB Buenos Aires',0,0,1,0,0,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(252,NULL,252,NULL,'Retenciones de IIBB Capital Federal',0,0,1,0,0,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(253,NULL,253,NULL,'Retenciones de IIBB Catamarca',0,0,1,0,0,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(254,NULL,254,NULL,'Retenciones de IIBB Chaco',0,0,1,0,0,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(255,NULL,255,NULL,'Retenciones de IIBB Chubut',0,0,1,0,0,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(256,NULL,256,NULL,'Retenciones de IIBB Córdoba',0,0,1,0,0,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(257,NULL,257,NULL,'Retenciones de IIBB Corrientes',0,0,1,0,0,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(258,NULL,258,NULL,'Retenciones de IIBB Entre Ríos',0,0,1,0,0,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(259,NULL,259,NULL,'Retenciones de IIBB Formosa',0,0,1,0,0,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(260,NULL,260,NULL,'Retenciones de IIBB Jujuy',0,0,1,0,0,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(261,NULL,261,NULL,'Retenciones de IIBB La Pampa',0,0,1,0,0,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(262,NULL,262,NULL,'Retenciones de IIBB La Rioja',0,0,1,0,0,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(263,NULL,263,NULL,'Retenciones de IIBB Mendoza',0,0,1,0,0,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(264,NULL,264,NULL,'Retenciones de IIBB Misiones',0,0,1,0,0,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(265,NULL,265,NULL,'Retenciones de IIBB Neuquén',0,0,1,0,0,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(266,NULL,266,NULL,'Retenciones de IIBB Pascua Lama',0,0,1,0,0,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(267,NULL,267,NULL,'Retenciones de IIBB Río Negro',0,0,1,0,0,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(268,NULL,268,NULL,'Retenciones de IIBB Salta',0,0,1,0,0,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(269,NULL,269,NULL,'Retenciones de IIBB San Juan',0,0,1,0,0,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(270,NULL,270,NULL,'Retenciones de IIBB San Luis',0,0,1,0,0,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(271,NULL,271,NULL,'Retenciones de IIBB Santa Cruz',0,0,1,0,0,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(272,NULL,272,NULL,'Retenciones de IIBB Santa Fe',0,0,1,0,0,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(273,NULL,273,NULL,'Retenciones de IIBB Santiago del Estero',0,0,1,0,0,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL);
INSERT INTO `cta_cte_tesoreria_cuentas` VALUES (274,NULL,274,NULL,'Retenciones de IIBB Tierra del Fuego',0,0,1,0,0,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(275,NULL,275,NULL,'Retenciones de IIBB Tucuman',0,0,1,0,0,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(351,NULL,351,NULL,'BANCO SIRCREB',0,0,0,0,1,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(359,NULL,359,NULL,'Caja en Pesos',0,0,1,1,1,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(360,NULL,360,NULL,'Retenciones Bancarias de Ganancias a Favor',0,0,0,0,1,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(364,NULL,364,NULL,'Anticipo de Clientes',0,0,0,0,1,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(384,NULL,384,NULL,'Caja en Dolares',0,0,1,1,1,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(409,NULL,409,NULL,'IVA Crédito Fiscal No computable',0,0,0,0,1,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(418,NULL,418,NULL,'Deudas Bancarias',0,0,0,1,1,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(433,NULL,433,NULL,'Préstamo',0,0,0,1,1,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(441,NULL,441,NULL,'Leasing',0,0,0,1,1,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(448,NULL,448,NULL,'Planes de Pagos AFIP',0,0,0,1,1,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(450,NULL,450,NULL,'Cheques Rechazados',0,0,0,0,1,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(467,NULL,467,NULL,'Interés',0,0,0,0,1,0,'2019-10-19 02:10:24','2019-10-19 02:10:24',NULL),(468,0,14,NULL,'Deudores por ventas comunes',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(469,0,15,NULL,'Deudores por ventas morosos',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(470,0,16,NULL,'Deudores en gestión judicial',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(471,0,17,NULL,'Previsión deudores incobrables',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(472,0,22,NULL,'Anticipo Impto.Ganancia Mínima Presunta',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(473,0,24,NULL,'Impuesto a las Ganancias (Saldo a favor)',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(474,0,27,NULL,'Anticipos de proveedores',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(475,0,28,NULL,'Depósito en garantía alquileres',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(476,0,29,NULL,'Derechos adquiridos a devengar',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(477,0,30,NULL,'Intereses a devengar',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(478,0,31,NULL,'Cuentas a rendir - Directores',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(479,0,32,NULL,'Alquileres no devengados',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(480,0,38,NULL,'Equipos de computación valores históricos',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(481,0,39,NULL,'Equipos de computación ajuste',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(482,0,40,NULL,'Amortización Acumulada Equipos de comput.',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(483,0,42,NULL,'Instalaciones valores históricos',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(484,0,43,NULL,'Instalaciones ajuste',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(485,0,44,NULL,'Amortización Acumulada Instalaciones',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(486,0,46,NULL,'Muebles y utiles valores históricos',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(487,0,47,NULL,'Muebles y utiles ajuste',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(488,0,48,NULL,'Amortización Acumulada Muebles y Útiles',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(489,0,50,NULL,'Gastos de organización valores historicos',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL);
INSERT INTO `cta_cte_tesoreria_cuentas` VALUES (490,0,51,NULL,'Gastos de organización ajuste',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(491,0,52,NULL,'Amortización acumulada gs. de organización',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(492,0,58,NULL,'Proveedores en cta. cte. exterior',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(493,0,59,NULL,'Derechos de exhibición a devengar',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(494,0,63,NULL,'Cargas sociales a pagar',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(495,0,64,NULL,'Sindicatos a Pagar',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(496,0,67,NULL,'IVA Debito Fiscal',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(497,0,68,NULL,'IVA Credito Fiscal',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(498,0,69,NULL,'Impuestos Internos',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(499,0,70,NULL,'Impuestos al Combustible',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(500,0,71,NULL,'IVA Retenciones de terceros',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(501,0,72,NULL,'IVA Percepciones realiz.por terceros',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(502,0,73,NULL,'IVA Saldo a favor',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(503,0,74,NULL,'IVA a pagar',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(504,0,75,NULL,'Percepciones Ingresos Brutos',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(505,0,76,NULL,'Otros Pagos AFIP',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(506,0,78,NULL,'Impuesto a los Ingresos Brutos Pasivo',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(507,0,79,NULL,'Impuesto a las Ganancias',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(508,0,80,NULL,'Impuesto a la Ganancia Mínima Presunta',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(509,0,81,NULL,'AFIP - Retenciones Impuesto a las Ganancias',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(510,0,82,NULL,'AFIP - Plan de Facilidades Decreto 338/02',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(511,0,87,NULL,'Acciones en circulación',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(512,0,88,NULL,'Ajuste del Capital',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(513,0,89,NULL,'Aportes Irrevocables Futuras Suscripciones',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(514,0,91,NULL,'Resultado del ejercicio',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(515,0,92,NULL,'Resultado ejercicios anteriores',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(516,0,93,NULL,'A.R.E.A.',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(517,0,96,NULL,'VENTAS',0,0,0,0,1,1,'2020-02-06 17:23:07','2021-04-16 11:58:34',NULL),(518,0,97,NULL,'Honorarios',0,0,0,0,1,1,'2020-02-06 17:23:07','2021-04-16 11:58:34',NULL),(519,0,99,NULL,'Descuentos obtenidos',0,0,0,0,1,1,'2020-02-06 17:23:07','2021-04-16 11:58:34',NULL),(520,0,100,NULL,'Reintegros por exportaciones',0,0,0,0,1,1,'2020-02-06 17:23:07','2021-04-16 11:58:34',NULL),(521,0,102,NULL,'Intereses Cobrados',0,0,0,0,1,1,'2020-02-06 17:23:07','2021-04-16 11:58:34',NULL),(522,0,103,NULL,'Diferencias de cambio',0,0,0,0,1,1,'2020-02-06 17:23:07','2021-04-16 11:58:34',NULL),(523,0,104,NULL,'Descuentos obtenidos',0,0,0,0,1,1,'2020-02-06 17:23:07','2021-04-16 11:58:34',NULL),(524,0,110,NULL,'Sueldos',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(525,0,111,NULL,'Contribuciones',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(526,0,112,NULL,'Sindicato',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(527,0,114,NULL,'ACA',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL);
INSERT INTO `cta_cte_tesoreria_cuentas` VALUES (528,0,115,NULL,'Aereos',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(529,0,116,NULL,'Alquiler',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(530,0,117,NULL,'AGUA AYSA',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(531,0,118,NULL,'TV Cablevision',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(532,0,119,NULL,'Caja Jubilacion Consejo',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(533,0,120,NULL,'Celulares',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(534,0,121,NULL,'Cheques',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(535,0,123,NULL,'Comida',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(536,0,126,NULL,'Fletes y acarreos',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(537,0,127,NULL,'Luz Edesur',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(538,0,128,NULL,'Movilidad y Viáticos',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(539,0,129,NULL,'Mantenimiento',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(540,0,130,NULL,'IVA No Computable',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(541,0,131,NULL,'Entretenimiento',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(542,0,132,NULL,'Amortización Bienes de Uso',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(543,0,135,NULL,'Gastos varios',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(544,0,136,NULL,'Ajuste por redondeo',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(545,0,137,NULL,'Deudores Incobrables',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(546,0,141,NULL,'Intereses Proveedores',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(547,0,143,NULL,'Diferencias de cambio',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(548,0,144,NULL,'Diferencia de Cambio Bces. en M.Extranjera',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(549,0,145,NULL,'Diferencia tipo cambio Vendedor/Comprador',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(550,0,146,NULL,'Diferencia por conversion en Bce. en Mon. Extranj.',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(551,0,147,NULL,'Diferencia de cambio CMV',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(552,0,148,NULL,'Diferencia de cambio PT',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(553,0,149,NULL,'Resultado por Exposición a la Inflación',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(554,0,150,NULL,'Diferencia de cambio PE',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(555,0,151,NULL,'Diferencia de cambio Ds.Vtas.',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(556,0,152,NULL,'Diferencia de cambio ME',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(557,0,153,NULL,'Descuentos otorgados',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(558,0,155,NULL,'Impuesto a las Ganancias',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(559,0,156,NULL,'Impuesto a los Ingresos Brutos',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(560,0,157,NULL,'Impuesto al Debito y Credito Bancario',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(561,0,159,NULL,'Pérdida por venta bienes de uso',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(562,0,160,NULL,'Inversiones',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(563,0,161,NULL,'Amortizaciones extraordinarias',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(564,0,178,NULL,'Google',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(565,0,188,NULL,'Publicidad',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(566,0,191,NULL,'Cargas Sociales',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL);
INSERT INTO `cta_cte_tesoreria_cuentas` VALUES (567,0,192,NULL,'Honorarios',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(568,0,193,NULL,'Telefono Fijo',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(569,0,198,NULL,'Seguros',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(570,0,199,NULL,'Internet',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(571,0,204,NULL,'Multas Impositivas',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(572,0,208,NULL,'Impuesto a los Ingresos Brutos - BS AS',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(573,0,209,NULL,'SIRCREB',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(574,0,212,NULL,'Tarjeta Visa',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(575,0,213,NULL,'Tarjeta American Express',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(576,0,214,NULL,'Tarjeta Mastercard',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(577,0,215,NULL,'Tarjeta Shopping',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(578,0,216,NULL,'Tarjeta Cencosud',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(579,0,217,NULL,'Compras',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(580,0,218,NULL,'Ventas No Gravadas',0,0,0,0,1,1,'2020-02-06 17:23:07','2021-04-16 11:58:34',NULL),(581,0,220,NULL,'Perc IVA -RG3337',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(582,0,221,NULL,'Imps. Internos',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(583,0,222,NULL,'Imp. Gasoil',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(584,0,223,NULL,'Imp. Hídricos',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(585,0,224,NULL,'ITC',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(586,0,225,NULL,'Perc IIBB  Buenos Aires',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(587,0,226,NULL,'Perc IIBB  Capital Federal',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(588,0,227,NULL,'Perc IIBB  Catamarca',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(589,0,228,NULL,'Perc IIBB  Chaco',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(590,0,229,NULL,'Perc IIBB  Chubut',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(591,0,230,NULL,'Perc IIBB  Córdoba',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(592,0,231,NULL,'Perc IIBB  Corrientes',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(593,0,232,NULL,'Perc IIBB  Entre Ríos',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(594,0,233,NULL,'Perc IIBB  Formosa',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(595,0,234,NULL,'Perc IIBB  Jujuy',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(596,0,235,NULL,'Perc IIBB  La Pampa',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(597,0,236,NULL,'Perc IIBB  La Rioja',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(598,0,237,NULL,'Perc IIBB  Mendoza',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(599,0,238,NULL,'Perc IIBB  Misiones',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(600,0,239,NULL,'Perc IIBB  Neuquén',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(601,0,240,NULL,'Perc IIBB  Pascua Lama',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(602,0,241,NULL,'Perc IIBB  Río Negro',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(603,0,242,NULL,'Perc IIBB  Salta',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(604,0,243,NULL,'Perc IIBB  San Juan',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(605,0,244,NULL,'Perc IIBB  San Luis',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(606,0,245,NULL,'Perc IIBB  Santa Cruz',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL);
INSERT INTO `cta_cte_tesoreria_cuentas` VALUES (607,0,246,NULL,'Perc IIBB  Santa Fe',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(608,0,247,NULL,'Perc IIBB  Santiago del Estero',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(609,0,248,NULL,'Perc IIBB  Tierra del Fuego',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(610,0,249,NULL,'Perc IIBB  Tucuman',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(611,0,250,NULL,'Compras No Gravadas',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(612,0,276,NULL,'SIRCREB Buenos Aires',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(613,0,277,NULL,'SIRCREB Capital Federal',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(614,0,278,NULL,'SIRCREB Catamarca',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(615,0,279,NULL,'SIRCREB Chaco',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(616,0,280,NULL,'SIRCREB Chubut',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(617,0,281,NULL,'SIRCREB Córdoba',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(618,0,282,NULL,'SIRCREB Corrientes',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(619,0,283,NULL,'SIRCREB Entre Ríos',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(620,0,284,NULL,'SIRCREB Formosa',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(621,0,285,NULL,'SIRCREB Jujuy',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(622,0,286,NULL,'SIRCREB La Pampa',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(623,0,287,NULL,'SIRCREB La Rioja',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(624,0,288,NULL,'SIRCREB Mendoza',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(625,0,289,NULL,'SIRCREB Misiones',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(626,0,290,NULL,'SIRCREB Neuquén',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(627,0,291,NULL,'SIRCREB Pascua Lama',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(628,0,292,NULL,'SIRCREB Río Negro',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(629,0,293,NULL,'SIRCREB Salta',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(630,0,294,NULL,'SIRCREB San Juan',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(631,0,295,NULL,'SIRCREB San Luis',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(632,0,296,NULL,'SIRCREB Santa Cruz',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(633,0,297,NULL,'SIRCREB Santa Fe',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(634,0,298,NULL,'SIRCREB Santiago del Estero',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(635,0,299,NULL,'SIRCREB Tierra del Fuego',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(636,0,300,NULL,'SIRCREB Tucuman',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(637,0,301,NULL,'IIBB a Favor Buenos Aires',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(638,0,302,NULL,'IIBB a Favor Capital Federal',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(639,0,303,NULL,'IIBB a Favor Catamarca',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(640,0,304,NULL,'IIBB a Favor Chaco',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(641,0,305,NULL,'IIBB a Favor Chubut',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(642,0,306,NULL,'IIBB a Favor Córdoba',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(643,0,307,NULL,'IIBB a Favor Corrientes',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(644,0,308,NULL,'IIBB a Favor Entre Ríos',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(645,0,309,NULL,'IIBB a Favor Formosa',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(646,0,310,NULL,'IIBB a Favor Jujuy',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL);
INSERT INTO `cta_cte_tesoreria_cuentas` VALUES (647,0,311,NULL,'IIBB a Favor La Pampa',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(648,0,312,NULL,'IIBB a Favor La Rioja',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(649,0,313,NULL,'IIBB a Favor Mendoza',0,0,0,0,0,1,'2020-02-06 17:23:07','2020-02-06 17:23:07',NULL),(650,0,314,NULL,'IIBB a Favor Misiones',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(651,0,315,NULL,'IIBB a Favor Neuquén',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(652,0,316,NULL,'IIBB a Favor Pascua Lama',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(653,0,317,NULL,'IIBB a Favor Río Negro',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(654,0,318,NULL,'IIBB a Favor Salta',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(655,0,319,NULL,'IIBB a Favor San Juan',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(656,0,320,NULL,'IIBB a Favor San Luis',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(657,0,321,NULL,'IIBB a Favor Santa Cruz',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(658,0,322,NULL,'IIBB a Favor Santa Fe',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(659,0,323,NULL,'IIBB a Favor Santiago del Estero',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(660,0,324,NULL,'IIBB a Favor Tierra del Fuego',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(661,0,325,NULL,'IIBB a Favor Tucuman',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(662,0,326,NULL,'IIBB a Pagar Buenos Aires',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(663,0,327,NULL,'IIBB a Pagar Capital Federal',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(664,0,328,NULL,'IIBB a Pagar Catamarca',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(665,0,329,NULL,'IIBB a Pagar Chaco',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(666,0,330,NULL,'IIBB a Pagar Chubut',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(667,0,331,NULL,'IIBB a Pagar Córdoba',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(668,0,332,NULL,'IIBB a Pagar Corrientes',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(669,0,333,NULL,'IIBB a Pagar Entre Ríos',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(670,0,334,NULL,'IIBB a Pagar Formosa',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(671,0,335,NULL,'IIBB a Pagar Jujuy',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(672,0,336,NULL,'IIBB a Pagar La Pampa',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(673,0,337,NULL,'IIBB a Pagar La Rioja',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(674,0,338,NULL,'IIBB a Pagar Mendoza',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(675,0,339,NULL,'IIBB a Pagar Misiones',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(676,0,340,NULL,'IIBB a Pagar Neuquén',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(677,0,341,NULL,'IIBB a Pagar Pascua Lama',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(678,0,342,NULL,'IIBB a Pagar Río Negro',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(679,0,343,NULL,'IIBB a Pagar Salta',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(680,0,344,NULL,'IIBB a Pagar San Juan',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(681,0,345,NULL,'IIBB a Pagar San Luis',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(682,0,346,NULL,'IIBB a Pagar Santa Cruz',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(683,0,347,NULL,'IIBB a Pagar Santa Fe',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(684,0,348,NULL,'IIBB a Pagar Santiago del Estero',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL);
INSERT INTO `cta_cte_tesoreria_cuentas` VALUES (685,0,349,NULL,'IIBB a Pagar Tierra del Fuego',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(686,0,350,NULL,'IIBB a Pagar Tucuman',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(687,0,352,NULL,'Compensacion',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(688,0,353,NULL,'IVA Saldo Tecnico',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(689,0,354,NULL,'IVA Saldo Libre Disponibilidad',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(690,0,361,NULL,'Equipos de Computación',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(691,0,362,NULL,'Computadoras',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(692,0,363,NULL,'Muebles y Utiles',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(693,0,365,NULL,'Provision Honorarios',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(694,0,366,NULL,'Cta. Cte Directores',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(695,0,367,NULL,'Provisión Honorarios Directores',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(696,0,368,NULL,'Cuenta Particular Socio 1',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(697,0,369,NULL,'Capital',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(698,0,380,NULL,'Instalaciones',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(699,0,381,NULL,'Reserva Legal',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(700,0,382,NULL,'Reserva Legal',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(701,0,383,NULL,'Resultado no asignado',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(702,0,386,NULL,'PLAZO FIJO',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(703,0,388,NULL,'ACCIONES',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(704,0,389,NULL,'Inmuebles',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(705,0,390,NULL,'Vehiculos',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(706,0,391,NULL,'Maquinarias',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(707,0,392,NULL,'MERCADERIAS',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(708,0,393,NULL,'OTROS',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(709,0,395,NULL,'Cuenta Particular Socio 2',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(710,0,396,NULL,'Comisiones Y gastos Bancarios',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(711,0,411,NULL,'Provisión Impuesto a las Ganancias',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(712,0,412,NULL,'Amortización Muebles y Útiles',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(713,0,413,NULL,'Amortización Equipos',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(714,0,414,NULL,'Amortizacion Acumulada Equipos',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(715,0,415,NULL,'Amortización Acumulada Maquinarias',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(716,0,416,NULL,'Materias Primas',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(717,0,419,NULL,'Rodados',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(718,0,420,NULL,'Amortización Acumulada Rodados',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(719,0,421,NULL,'Amortización Rodados',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(720,0,422,NULL,'Amortización Maquinarias',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(721,0,423,NULL,'Accesorios',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(722,0,424,NULL,'Amortización Acumulada Accesorios',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(723,0,426,NULL,'Reserva Facultativa',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL);
INSERT INTO `cta_cte_tesoreria_cuentas` VALUES (724,0,427,NULL,'Créditos por Impuestos Diferidos',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(725,0,428,NULL,'Fondo de Comercio',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(726,0,429,NULL,'Amortizacion Acumulada Fondo de Comercio',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(727,0,430,NULL,'Intereses a devengar AGIP',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(728,0,431,NULL,'PFP IIBB',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(729,0,434,NULL,'Productos',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(730,0,435,NULL,'Intereses a devengar PFP',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(731,0,437,NULL,'Imp. Ley 25413 Cred 0.6%',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(732,0,438,NULL,'Honorarios Directorio a Pagar',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(733,0,439,NULL,'Reserva para Futuras Inversiones',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(734,0,440,NULL,'TEAC - Trabajos Ejecutados a Certificar',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(735,0,444,NULL,'Banco Santander Rio Cta Cte',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(736,0,449,NULL,'Leasing',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(737,0,453,NULL,'Inversión Central Caribe',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(738,0,454,NULL,'Otras Inversiones',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(739,0,455,NULL,'Otros Créditos',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(740,0,456,NULL,'Provisión Honorarios Socio Gerente',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(741,0,459,NULL,'Moratoria SUSS a pagar',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(742,0,460,NULL,'Impuestos Municipales a Pagar',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(743,0,461,NULL,'Amortización Instalaciones',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(744,0,462,NULL,'Amortización Equipos de comput.',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(745,0,463,NULL,'Cuenta Particular Socio 3',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(746,0,464,NULL,'Cuenta Particular Socio 4',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(747,0,465,NULL,'Otras Reservas',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(748,0,466,NULL,'IGMP (Saldo a Favor)',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(749,0,468,NULL,'Productos en Proceso',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(750,0,469,NULL,'Depósitos en Garantía Socio Gerente',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(751,0,470,NULL,'Fondos Embargados',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(752,0,471,NULL,'Cuota Solid.',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(753,0,472,NULL,'Anticipo Honorarios Directores',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(754,0,473,NULL,'SICORE a Pagar',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(755,0,476,NULL,'RECPAM',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(756,0,478,NULL,'CO2 - Imp. Al Carbono',0,0,0,0,0,1,'2020-02-06 17:23:08','2020-02-06 17:23:08',NULL),(757,3755,8,40720,'Banco Santander',0,1,1,1,1,0,'2021-04-17 18:48:35','2021-04-17 18:48:35',NULL);

--
-- Table structure for table `cta_cte_tesoreria_detail`
--

CREATE TABLE `cta_cte_tesoreria_detail` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `cta_cte_tesoreria_id` int(10) unsigned NOT NULL,
  `cta_cte_tesoreria_cuenta_id` int(10) unsigned NOT NULL,
  `person_id` int(10) unsigned DEFAULT NULL,
  `period_id` int(10) unsigned DEFAULT NULL,
  `saldo_id` int(10) unsigned NOT NULL,
  `monto` decimal(16,2) NOT NULL,
  `fecha` date DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `cta_cte_tesoreria_detail_cta_cte_tesoreria_id_foreign` (`cta_cte_tesoreria_id`),
  KEY `cta_cte_tesoreria_detail_cta_cte_tesoreria_cuenta_id_foreign` (`cta_cte_tesoreria_cuenta_id`),
  KEY `cta_cte_tesoreria_detail_person_id_foreign` (`person_id`),
  KEY `cta_cte_tesoreria_detail_period_id_foreign` (`period_id`),
  KEY `cta_cte_tesoreria_detail_saldo_id_foreign` (`saldo_id`),
  CONSTRAINT `cta_cte_tesoreria_detail_cta_cte_tesoreria_cuenta_id_foreign` FOREIGN KEY (`cta_cte_tesoreria_cuenta_id`) REFERENCES `cta_cte_tesoreria_cuentas` (`id`),
  CONSTRAINT `cta_cte_tesoreria_detail_cta_cte_tesoreria_id_foreign` FOREIGN KEY (`cta_cte_tesoreria_id`) REFERENCES `cta_cte_tesoreria` (`id`),
  CONSTRAINT `cta_cte_tesoreria_detail_period_id_foreign` FOREIGN KEY (`period_id`) REFERENCES `periods` (`id`),
  CONSTRAINT `cta_cte_tesoreria_detail_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `cta_cte_tesoreria_detail_saldo_id_foreign` FOREIGN KEY (`saldo_id`) REFERENCES `conta_tipo_saldos` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=153 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cta_cte_tesoreria_detail`
--

INSERT INTO `cta_cte_tesoreria_detail` VALUES (7,3755,2,13,40720,1549,2,53603.00,'2020-10-02','2021-04-17 19:21:56','2021-04-17 19:21:56',NULL),(8,3755,2,757,40720,1549,1,46300.57,'2020-10-02','2021-04-17 19:21:56','2021-04-17 19:21:56',NULL),(9,3755,2,162,40720,1549,1,410.00,'2020-10-02','2021-04-17 19:21:56','2021-04-17 19:21:56',NULL),(10,3755,2,25,40720,1549,1,6888.00,'2020-10-02','2021-04-17 19:21:56','2021-04-17 19:21:56',NULL),(11,3755,2,251,40720,1549,1,0.33,'2020-10-02','2021-04-17 19:21:56','2021-04-17 19:21:56',NULL),(12,3755,2,251,40720,1549,1,4.10,'2020-10-02','2021-04-17 19:21:56','2021-04-17 19:21:56',NULL),(13,3755,3,13,40720,1549,2,18150.00,'2020-10-07','2021-04-17 19:26:01','2021-04-17 19:26:01',NULL),(14,3755,3,757,40720,1549,1,18150.00,'2020-10-07','2021-04-17 19:26:01','2021-04-17 19:26:01',NULL),(15,3755,4,13,40720,1549,2,16523.52,'2020-10-08','2021-04-17 19:27:47','2021-04-17 19:27:47',NULL),(16,3755,4,757,40720,1549,1,16523.52,'2020-10-08','2021-04-17 19:27:47','2021-04-17 19:27:47',NULL),(17,3755,5,13,40720,1549,2,229991.26,'2020-10-09','2021-04-17 19:33:40','2021-04-17 19:33:40',NULL),(18,3755,5,757,40720,1549,1,190092.85,'2020-10-09','2021-04-17 19:33:40','2021-04-17 19:33:40',NULL),(19,3755,5,162,40720,1549,1,1706.12,'2020-10-09','2021-04-17 19:33:40','2021-04-17 19:33:40',NULL),(20,3755,5,25,40720,1549,1,31932.67,'2020-10-09','2021-04-17 19:33:40','2021-04-17 19:33:40',NULL),(21,3755,5,251,40720,1549,1,3801.51,'2020-10-09','2021-04-17 19:33:40','2021-04-17 19:33:40',NULL),(22,3755,5,23,40720,1549,1,2458.11,'2020-10-09','2021-04-17 19:33:40','2021-04-17 19:33:40',NULL),(23,3755,6,13,40720,1549,2,89462.56,'2020-10-14','2021-04-17 19:39:00','2021-04-17 19:39:00',NULL),(24,3755,6,757,40720,1549,1,87983.84,'2020-10-14','2021-04-17 19:39:00','2021-04-17 19:39:00',NULL),(25,3755,6,251,40720,1549,1,1478.72,'2020-10-14','2021-04-17 19:39:00','2021-04-17 19:39:00',NULL),(26,3755,7,13,40720,1549,2,386079.54,'2020-10-14','2021-04-17 19:48:57','2021-04-17 19:48:57',NULL),(27,3755,7,757,40720,1549,1,377548.63,'2020-10-14','2021-04-17 19:48:57','2021-04-17 19:48:57',NULL),(28,3755,7,23,40720,1549,1,5038.08,'2020-10-14','2021-04-17 19:48:57','2021-04-17 19:48:57',NULL),(29,3755,7,251,40720,1549,1,20.33,'2020-10-14','2021-04-17 19:48:57','2021-04-17 19:48:57',NULL),(30,3755,7,252,40720,1549,1,3472.50,'2020-10-14','2021-04-17 19:48:57','2021-04-17 19:48:57',NULL),(31,3755,8,13,40720,1550,2,147817.16,'2020-11-09','2021-04-17 19:54:51','2021-04-17 19:54:51',NULL),(32,3755,8,757,40720,1550,1,122753.67,'2020-11-09','2021-04-17 19:54:51','2021-04-17 19:54:51',NULL),(33,3755,8,251,40720,1550,1,2443.26,'2020-11-09','2021-04-17 19:54:51','2021-04-17 19:54:51',NULL),(34,3755,8,23,40720,1550,1,1099.86,'2020-11-09','2021-04-17 19:54:51','2021-04-17 19:54:51',NULL),(35,3755,8,25,40720,1550,1,20523.37,'2020-11-09','2021-04-17 19:54:51','2021-04-17 19:54:51',NULL),(36,3755,8,162,40720,1550,1,997.00,'2020-11-09','2021-04-17 19:54:51','2021-04-17 19:54:51',NULL),(37,3755,9,13,40720,1550,2,9972.82,'2020-11-12','2021-04-17 19:56:31','2021-04-17 19:56:31',NULL),(38,3755,9,757,40720,1550,1,9972.82,'2020-11-12','2021-04-17 19:56:31','2021-04-17 19:56:31',NULL),(39,3755,10,13,40720,1550,2,22506.00,'2020-11-30','2021-04-17 19:58:04','2021-04-17 19:58:04',NULL),(40,3755,10,757,40720,1550,1,22506.00,'2020-11-30','2021-04-17 19:58:04','2021-04-17 19:58:04',NULL),(41,3755,11,13,40720,1550,2,138316.31,'2021-04-17','2021-04-17 20:04:16','2021-04-17 20:04:16',NULL),(42,3755,11,757,40720,1550,1,134683.52,'2021-04-17','2021-04-17 20:04:16','2021-04-17 20:04:16',NULL),(43,3755,11,251,40720,1550,1,1478.72,'2021-04-17','2021-04-17 20:04:16','2021-04-17 20:04:16',NULL),(44,3755,11,252,40720,1550,1,1211.25,'2021-04-17','2021-04-17 20:04:16','2021-04-17 20:04:16',NULL),(45,3755,11,23,40720,1550,1,942.82,'2021-04-17','2021-04-17 20:04:16','2021-04-17 20:04:16',NULL),(46,3755,12,13,40720,1551,2,291038.88,'2020-12-04','2021-04-17 20:20:42','2021-04-17 20:20:42',NULL);
INSERT INTO `cta_cte_tesoreria_detail` VALUES (47,3755,12,757,40720,1551,1,240125.16,'2020-12-04','2021-04-17 20:20:42','2021-04-17 20:20:42',NULL),(48,3755,12,251,40720,1551,1,4588.56,'2020-12-04','2021-04-17 20:20:42','2021-04-17 20:20:42',NULL),(49,3755,12,251,40720,1551,1,222.00,'2020-12-04','2021-04-17 20:20:42','2021-04-17 20:20:42',NULL),(50,3755,12,23,40720,1551,1,4588.56,'2020-12-04','2021-04-17 20:20:42','2021-04-17 20:20:42',NULL),(51,3755,12,162,40720,1551,1,1805.19,'2020-12-04','2021-04-17 20:20:42','2021-04-17 20:20:42',NULL),(52,3755,12,25,40720,1551,1,38543.91,'2020-12-04','2021-04-17 20:20:42','2021-04-17 20:20:42',NULL),(53,3755,12,25,40720,1551,1,1165.50,'2020-12-04','2021-04-17 20:20:42','2021-04-17 20:20:42',NULL),(54,3755,13,13,40720,1551,2,9972.82,'2020-12-10','2021-04-17 20:22:45','2021-04-17 20:22:45',NULL),(55,3755,13,757,40720,1551,1,9972.82,'2020-12-10','2021-04-17 20:22:45','2021-04-17 20:22:45',NULL),(56,3755,14,13,40720,1551,2,183884.43,'2020-12-28','2021-04-17 20:28:18','2021-04-17 20:28:18',NULL),(57,3755,14,757,40720,1551,1,155912.93,'2020-12-28','2021-04-17 20:28:18','2021-04-17 20:28:18',NULL),(58,3755,14,23,40720,1551,1,929.41,'2020-12-28','2021-04-17 20:28:18','2021-04-17 20:28:18',NULL),(59,3755,14,25,40720,1551,1,19091.62,'2020-12-28','2021-04-17 20:28:18','2021-04-17 20:28:18',NULL),(60,3755,14,25,40720,1551,1,4024.65,'2020-12-28','2021-04-17 20:28:18','2021-04-17 20:28:18',NULL),(61,3755,14,251,40720,1551,1,766.60,'2020-12-28','2021-04-17 20:28:18','2021-04-17 20:28:18',NULL),(62,3755,14,251,40720,1551,1,2272.81,'2020-12-28','2021-04-17 20:28:18','2021-04-17 20:28:18',NULL),(63,3755,14,162,40720,1551,1,886.41,'2020-12-28','2021-04-17 20:28:18','2021-04-17 20:28:18',NULL),(64,3755,15,13,40720,1551,2,45012.00,'2020-12-30','2021-04-17 20:30:18','2021-04-17 20:30:18',NULL),(65,3755,15,757,40720,1551,1,45012.00,'2020-12-30','2021-04-17 20:30:18','2021-04-17 20:30:18',NULL),(66,3755,16,13,40720,1551,2,33275.00,'2020-12-30','2021-04-17 20:34:30','2021-04-17 20:34:30',NULL),(67,3755,16,757,40720,1551,1,27555.00,'2020-12-30','2021-04-17 20:34:30','2021-04-17 20:34:30',NULL),(68,3755,16,251,40720,1551,1,550.00,'2020-12-30','2021-04-17 20:34:30','2021-04-17 20:34:30',NULL),(69,3755,16,23,40720,1551,1,550.00,'2020-12-30','2021-04-17 20:34:30','2021-04-17 20:34:30',NULL),(70,3755,16,25,40720,1551,1,4620.00,'2020-12-30','2021-04-17 20:34:30','2021-04-17 20:34:30',NULL),(71,3755,17,13,40720,1551,2,19965.00,'2020-12-30','2021-04-17 20:42:29','2021-04-17 20:42:29',NULL),(72,3755,17,757,40720,1551,1,19470.00,'2020-12-30','2021-04-17 20:42:29','2021-04-17 20:42:29',NULL),(73,3755,17,252,40720,1551,1,495.00,'2020-12-30','2021-04-17 20:42:29','2021-04-17 20:42:29',NULL),(74,3755,18,13,40720,1555,2,25702.82,'2021-01-07','2021-04-17 20:47:02','2021-04-17 20:47:02',NULL),(75,3755,18,757,40720,1555,1,25702.82,'2021-01-07','2021-04-17 20:47:02','2021-04-17 20:47:02',NULL),(76,3755,19,13,40720,1555,2,145526.70,'2021-01-08','2021-04-17 20:51:40','2021-04-17 20:51:40',NULL),(77,3755,19,757,40720,1555,1,120757.87,'2021-01-08','2021-04-17 20:51:40','2021-04-17 20:51:40',NULL),(78,3755,19,251,40720,1555,1,2405.40,'2021-01-08','2021-04-17 20:51:40','2021-04-17 20:51:40',NULL),(79,3755,19,25,40720,1555,1,20205.36,'2021-01-08','2021-04-17 20:51:40','2021-04-17 20:51:40',NULL),(80,3755,19,23,40720,1555,1,1062.00,'2021-01-08','2021-04-17 20:51:40','2021-04-17 20:51:40',NULL),(81,3755,19,162,40720,1555,1,1096.07,'2021-01-08','2021-04-17 20:51:40','2021-04-17 20:51:40',NULL),(82,3755,20,13,40720,1556,2,285990.76,'2021-02-03','2021-04-17 20:57:39','2021-04-17 20:57:39',NULL),(83,3755,20,251,40720,1556,1,3327.12,'2021-02-03','2021-04-17 20:57:39','2021-04-17 20:57:39',NULL),(84,3755,20,252,40720,1556,1,2100.00,'2021-02-03','2021-04-17 20:57:39','2021-04-17 20:57:39',NULL),(85,3755,20,23,40720,1556,1,3383.72,'2021-02-03','2021-04-17 20:57:39','2021-04-17 20:57:39',NULL),(86,3755,20,757,40720,1556,1,138589.96,'2021-02-03','2021-04-17 20:57:39','2021-04-17 20:57:39',NULL);
INSERT INTO `cta_cte_tesoreria_detail` VALUES (87,3755,20,757,40720,1556,1,138589.96,'2021-02-03','2021-04-17 20:57:39','2021-04-17 20:57:39',NULL),(88,3755,21,13,40720,1556,2,14500.00,'2021-02-05','2021-04-17 21:06:30','2021-04-17 21:06:30',NULL),(89,3755,21,757,40720,1556,1,14500.00,'2021-02-05','2021-04-17 21:06:30','2021-04-17 21:06:30',NULL),(90,3755,22,13,40720,1556,2,314327.14,'2021-02-06','2021-04-17 21:09:04','2021-04-17 21:09:04',NULL),(91,3755,22,757,40720,1556,1,259558.38,'2021-02-06','2021-04-17 21:09:04','2021-04-17 21:09:04',NULL),(92,3755,22,251,40720,1556,1,5195.49,'2021-02-06','2021-04-17 21:09:04','2021-04-17 21:09:04',NULL),(93,3755,22,25,40720,1556,1,43642.11,'2021-02-06','2021-04-17 21:09:04','2021-04-17 21:09:04',NULL),(94,3755,22,23,40720,1556,1,3852.09,'2021-02-06','2021-04-17 21:09:04','2021-04-17 21:09:04',NULL),(95,3755,22,162,40720,1556,1,2079.07,'2021-02-06','2021-04-17 21:09:04','2021-04-17 21:09:04',NULL),(96,3755,23,13,40720,1556,2,10712.86,'2021-02-12','2021-04-17 21:11:40','2021-04-17 21:11:40',NULL),(97,3755,23,757,40720,1556,1,10712.86,'2021-02-12','2021-04-17 21:11:40','2021-04-17 21:11:40',NULL),(98,3755,24,13,40720,1556,2,193059.23,'2021-02-13','2021-04-17 21:14:58','2021-04-17 21:14:58',NULL),(99,3755,24,757,40720,1556,1,158276.66,'2021-02-13','2021-04-17 21:14:58','2021-04-17 21:14:58',NULL),(100,3755,24,162,40720,1556,1,1595.53,'2021-02-13','2021-04-17 21:14:58','2021-04-17 21:14:58',NULL),(101,3755,24,251,40720,1556,1,3191.06,'2021-02-13','2021-04-17 21:14:58','2021-04-17 21:14:58',NULL),(102,3755,24,23,40720,1556,1,3191.06,'2021-02-13','2021-04-17 21:14:58','2021-04-17 21:14:58',NULL),(103,3755,24,25,40720,1556,1,26804.92,'2021-02-13','2021-04-17 21:14:58','2021-04-17 21:14:58',NULL),(104,3755,25,13,40720,1557,2,22506.00,'2021-03-02','2021-04-17 21:33:27','2021-04-17 21:33:27',NULL),(105,3755,25,757,40720,1557,1,22506.00,'2021-03-02','2021-04-17 21:33:27','2021-04-17 21:33:27',NULL),(106,3755,26,13,40720,1557,2,282484.76,'2021-03-05','2021-04-17 21:38:45','2021-04-17 21:38:45',NULL),(107,3755,26,757,40720,1557,1,233839.60,'2021-03-05','2021-04-17 21:38:45','2021-04-17 21:38:45',NULL),(108,3755,26,25,40720,1557,1,38885.03,'2021-03-05','2021-04-17 21:38:45','2021-04-17 21:38:45',NULL),(109,3755,26,251,40720,1557,1,40.00,'2021-03-05','2021-04-17 21:38:45','2021-04-17 21:38:45',NULL),(110,3755,26,251,40720,1557,1,4629.17,'2021-03-05','2021-04-17 21:38:45','2021-04-17 21:38:45',NULL),(111,3755,26,23,40720,1557,1,3285.77,'2021-03-05','2021-04-17 21:38:45','2021-04-17 21:38:45',NULL),(112,3755,26,162,40720,1557,1,1805.19,'2021-03-05','2021-04-17 21:38:45','2021-04-17 21:38:45',NULL),(113,3755,27,13,40720,1557,2,21000.00,'2021-03-20','2021-04-17 21:40:57','2021-04-17 21:40:57',NULL),(114,3755,27,757,40720,1557,1,21000.00,'2021-03-20','2021-04-17 21:40:57','2021-04-17 21:40:57',NULL),(115,3755,28,13,40720,1557,2,9972.82,'2021-03-26','2021-04-17 21:42:37','2021-04-17 21:42:37',NULL),(116,3755,28,757,40720,1557,1,9972.82,'2021-03-26','2021-04-17 21:42:37','2021-04-17 21:42:37',NULL),(117,3755,29,13,40720,1558,2,1600.00,'2021-04-18','2021-04-17 21:52:27','2021-04-17 21:52:27',NULL),(118,3755,29,359,40720,1558,1,1600.00,'2021-04-18','2021-04-17 21:52:28','2021-04-17 21:52:28',NULL),(119,3755,30,13,40720,1558,2,1600.00,'2021-04-18','2021-04-17 21:53:33','2021-04-17 21:53:33',NULL),(120,3755,30,359,40720,1558,1,1600.00,'2021-04-18','2021-04-17 21:53:33','2021-04-17 21:53:33',NULL),(121,3755,31,13,40720,1558,2,1600.00,'2021-04-18','2021-04-17 21:54:54','2021-04-17 21:54:54',NULL),(122,3755,31,359,40720,1558,1,1600.00,'2021-04-18','2021-04-17 21:54:54','2021-04-17 21:54:54',NULL),(123,3755,32,13,40720,1557,2,9972.82,'2021-04-13','2021-04-22 21:02:34','2021-04-22 21:02:34',NULL),(124,3755,32,757,40720,1557,1,9972.82,'2021-04-13','2021-04-22 21:02:34','2021-04-22 21:02:34',NULL),(125,3755,33,13,40720,1558,2,24805.00,'2021-04-17','2021-04-22 21:04:27','2021-04-22 21:04:27',NULL);
INSERT INTO `cta_cte_tesoreria_detail` VALUES (126,3755,33,757,40720,1558,1,24805.00,'2021-04-17','2021-04-22 21:04:27','2021-04-22 21:04:27',NULL),(127,3755,34,13,40720,1558,2,241259.48,'2021-04-22','2021-04-22 21:08:17','2021-04-22 21:08:17',NULL),(128,3755,34,757,40720,1558,1,233927.36,'2021-04-22','2021-04-22 21:08:17','2021-04-22 21:08:17',NULL),(129,3755,34,251,40720,1558,1,2587.76,'2021-04-22','2021-04-22 21:08:17','2021-04-22 21:08:17',NULL),(130,3755,34,252,40720,1558,1,2100.00,'2021-04-22','2021-04-22 21:08:17','2021-04-22 21:08:17',NULL),(131,3755,34,23,40720,1558,1,2644.36,'2021-04-22','2021-04-22 21:08:17','2021-04-22 21:08:17',NULL),(132,3755,35,13,40720,1558,2,263625.12,'2021-04-22','2021-04-22 21:10:59','2021-04-22 21:10:59',NULL),(133,3755,35,757,40720,1558,1,254210.24,'2021-04-22','2021-04-22 21:10:59','2021-04-22 21:10:59',NULL),(134,3755,35,23,40720,1558,1,4357.44,'2021-04-22','2021-04-22 21:11:00','2021-04-22 21:11:00',NULL),(135,3755,35,251,40720,1558,1,2957.44,'2021-04-22','2021-04-22 21:11:00','2021-04-22 21:11:00',NULL),(136,3755,35,252,40720,1558,1,2100.00,'2021-04-22','2021-04-22 21:11:00','2021-04-22 21:11:00',NULL),(137,3755,36,13,40720,1558,2,196639.52,'2021-04-23','2021-04-22 21:14:04','2021-04-22 21:14:04',NULL),(138,3755,36,23,40720,1558,1,2650.24,'2021-04-23','2021-04-22 21:14:04','2021-04-22 21:14:04',NULL),(139,3755,36,251,40720,1558,1,3250.24,'2021-04-23','2021-04-22 21:14:04','2021-04-22 21:14:04',NULL),(140,3755,36,252,40720,1558,1,4875.36,'2021-04-23','2021-04-22 21:14:04','2021-04-22 21:14:04',NULL),(141,3755,36,757,40720,1558,1,185863.68,'2021-04-23','2021-04-22 21:14:04','2021-04-22 21:14:04',NULL),(142,3755,37,13,40720,1558,2,9075.00,'2021-04-26','2021-05-03 19:02:55','2021-05-03 19:02:55',NULL),(143,3755,37,757,40720,1558,1,8850.00,'2021-04-26','2021-05-03 19:02:55','2021-05-03 19:02:55',NULL),(144,3755,37,252,40720,1558,1,225.00,'2021-04-26','2021-05-03 19:02:55','2021-05-03 19:02:55',NULL),(145,3755,38,13,40720,1558,2,40656.00,'2021-04-27','2021-05-03 19:04:51','2021-05-03 19:04:51',NULL),(146,3755,38,757,40720,1558,1,40656.00,'2021-04-27','2021-05-03 19:04:51','2021-05-03 19:04:51',NULL),(147,3755,39,13,40720,1558,2,244369.76,'2021-04-30','2021-05-03 19:07:55','2021-05-03 19:07:55',NULL),(148,3755,39,25,40720,1558,1,33929.03,'2021-04-30','2021-05-03 19:07:55','2021-05-03 19:07:55',NULL),(149,3755,39,23,40720,1558,1,2695.77,'2021-04-30','2021-05-03 19:07:55','2021-05-03 19:07:55',NULL),(150,3755,39,251,40720,1558,1,4039.17,'2021-04-30','2021-05-03 19:07:55','2021-05-03 19:07:55',NULL),(151,3755,39,162,40720,1558,1,1805.19,'2021-04-30','2021-05-03 19:07:55','2021-05-03 19:07:55',NULL),(152,3755,39,757,40720,1558,1,201900.60,'2021-04-30','2021-05-03 19:07:55','2021-05-03 19:07:55',NULL);

--
-- Table structure for table `ctacte_bancos`
--

CREATE TABLE `ctacte_bancos` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `nombre` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `codigoBCRA` int(11) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=78 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ctacte_bancos`
--

INSERT INTO `ctacte_bancos` VALUES (1,NULL,'BANCO DE GALICIA Y BUENOS AIRES S.A.',7,NULL,NULL,NULL),(2,NULL,'BANCO DE LA NACION ARGENTINA',11,NULL,NULL,NULL),(3,NULL,'BANCO DE LA PROVINCIA DE BUENOS AIRES',14,NULL,NULL,NULL),(4,NULL,'INDUSTRIAL AND COMMERCIAL BANK OF CHINA',15,NULL,NULL,NULL),(5,NULL,'CITIBANK N.A.',16,NULL,NULL,NULL),(6,NULL,'BBVA BANCO FRANCES S.A.',17,NULL,NULL,NULL),(7,NULL,'THE BANK OF TOKYO-MITSUBISHI UFJ, LTD.',18,NULL,NULL,NULL),(8,NULL,'BANCO DE LA PROVINCIA DE CORDOBA S.A.',20,NULL,NULL,NULL),(9,NULL,'BANCO SUPERVIELLE S.A.',27,NULL,NULL,NULL),(10,NULL,'BANCO DE LA CIUDAD DE BUENOS AIRES',29,NULL,NULL,NULL),(11,NULL,'BANCO PATAGONIA S.A.',34,NULL,NULL,NULL),(12,NULL,'BANCO HIPOTECARIO S.A.',44,NULL,NULL,NULL),(13,NULL,'BANCO DE SAN JUAN S.A.',45,NULL,NULL,NULL),(14,NULL,'BANCO DEL TUCUMAN S.A.',60,NULL,NULL,NULL),(15,NULL,'BANCO MUNICIPAL DE ROSARIO',65,NULL,NULL,NULL),(16,NULL,'BANCO SANTANDER RIO S.A.',72,NULL,NULL,NULL),(17,NULL,'BANCO DEL CHUBUT S.A.',83,NULL,NULL,NULL),(18,NULL,'BANCO DE SANTA CRUZ S.A.',86,NULL,NULL,NULL),(19,NULL,'BANCO DE LA PAMPA SOCIEDAD DE ECONOMÍA M',93,NULL,NULL,NULL),(20,NULL,'BANCO DE CORRIENTES S.A.',94,NULL,NULL,NULL),(21,NULL,'BANCO PROVINCIA DEL NEUQUÉN SOCIEDAD ANÓ',97,NULL,NULL,NULL),(22,NULL,'BANCO INTERFINANZAS S.A.',147,NULL,NULL,NULL),(23,NULL,'HSBC BANK ARGENTINA S.A.',150,NULL,NULL,NULL),(24,NULL,'JPMORGAN CHASE BANK, NATIONAL ASSOCIATIO',165,NULL,NULL,NULL),(25,NULL,'BANCO CREDICOOP COOPERATIVO LIMITADO',191,NULL,NULL,NULL),(26,NULL,'BANCO DE VALORES S.A.',198,NULL,NULL,NULL),(27,NULL,'BANCO ROELA S.A.',247,NULL,NULL,NULL),(28,NULL,'BANCO MARIVA S.A.',254,NULL,NULL,NULL),(29,NULL,'BANCO ITAU ARGENTINA S.A.',259,NULL,NULL,NULL),(30,NULL,'BANK OF AMERICA, NATIONAL ASSOCIATION',262,NULL,NULL,NULL),(31,NULL,'BNP PARIBAS',266,NULL,NULL,NULL),(32,NULL,'BANCO PROVINCIA DE TIERRA DEL FUEGO',268,NULL,NULL,NULL),(33,NULL,'BANCO DE LA REPUBLICA ORIENTAL DEL URUGU',269,NULL,NULL,NULL),(34,NULL,'BANCO SAENZ S.A.',277,NULL,NULL,NULL),(35,NULL,'BANCO MERIDIAN S.A.',281,NULL,NULL,NULL),(36,NULL,'BANCO MACRO S.A.',285,NULL,NULL,NULL),(37,NULL,'BANCO COMAFI SOCIEDAD ANONIMA',299,NULL,NULL,NULL),(38,NULL,'BANCO DE INVERSION Y COMERCIO EXTERIOR S',300,NULL,NULL,NULL),(39,NULL,'BANCO PIANO S.A.',301,NULL,NULL,NULL),(40,NULL,'BANCO JULIO SOCIEDAD ANONIMA',305,NULL,NULL,NULL),(41,NULL,'BANCO RIOJA SOCIEDAD ANONIMA UNIPERSONAL',309,NULL,NULL,NULL),(42,NULL,'BANCO DEL SOL S.A.',310,NULL,NULL,NULL),(43,NULL,'NUEVO BANCO DEL CHACO S. A.',311,NULL,NULL,NULL),(44,NULL,'BANCO VOII S.A.',312,NULL,NULL,NULL),(45,NULL,'BANCO DE FORMOSA S.A.',315,NULL,NULL,NULL),(46,NULL,'BANCO CMF S.A.',319,NULL,NULL,NULL),(47,NULL,'BANCO DE SANTIAGO DEL ESTERO S.A.',321,NULL,NULL,NULL),(48,NULL,'BANCO INDUSTRIAL S.A.',322,NULL,NULL,NULL),(49,NULL,'NUEVO BANCO DE SANTA FE SOCIEDAD ANONIMA',330,NULL,NULL,NULL),(50,NULL,'BANCO CETELEM ARGENTINA S.A.',331,NULL,NULL,NULL),(51,NULL,'BANCO DE SERVICIOS FINANCIEROS S.A.',332,NULL,NULL,NULL),(52,NULL,'BANCO BRADESCO ARGENTINA S.A.U.',336,NULL,NULL,NULL),(53,NULL,'BANCO DE SERVICIOS Y TRANSACCIONES S.A.',338,NULL,NULL,NULL),(54,NULL,'RCI BANQUE S.A.',339,NULL,NULL,NULL),(55,NULL,'BACS BANCO DE CREDITO Y SECURITIZACION S',340,NULL,NULL,NULL),(56,NULL,'BANCO MASVENTAS S.A.',341,NULL,NULL,NULL),(57,NULL,'BANCO WANAP S.A.',384,NULL,NULL,NULL),(58,NULL,'NUEVO BANCO DE ENTRE RÍOS S.A.',386,NULL,NULL,NULL),(59,NULL,'BANCO COLUMBIA S.A.',389,NULL,NULL,NULL),(60,NULL,'BANCO BICA S.A.',426,NULL,NULL,NULL),(61,NULL,'BANCO COINAG S.A.',431,NULL,NULL,NULL),(62,NULL,'BANCO DE COMERCIO S.A.',432,NULL,NULL,NULL),(63,NULL,'FORD CREDIT COMPAÑIA FINANCIERA S.A.',44059,NULL,NULL,NULL),(64,NULL,'COMPAÑIA FINANCIERA ARGENTINA S.A.',44077,NULL,NULL,NULL),(65,NULL,'VOLKWAGEN FINANCIAL SERVICES CIA.FIN.S.A',44088,NULL,NULL,NULL),(66,NULL,'CORDIAL COMPAÑÍA FINANCIERA S.A.',44090,NULL,NULL,NULL),(67,NULL,'FCA COMPAÑIA FINANCIERA S.A.',44092,NULL,NULL,NULL);
INSERT INTO `ctacte_bancos` VALUES (68,NULL,'GPAT COMPAÑIA FINANCIERA S.A.',44093,NULL,NULL,NULL),(69,NULL,'MERCEDES-BENZ COMPAÑÍA FINANCIERA ARGENT',44094,NULL,NULL,NULL),(70,NULL,'ROMBO COMPAÑÍA FINANCIERA S.A.',44095,NULL,NULL,NULL),(71,NULL,'JOHN DEERE CREDIT COMPAÑÍA FINANCIERA S.',44096,NULL,NULL,NULL),(72,NULL,'PSA FINANCE ARGENTINA COMPAÑÍA FINANCIER',44098,NULL,NULL,NULL),(73,NULL,'TOYOTA COMPAÑÍA FINANCIERA DE ARGENTINA',44099,NULL,NULL,NULL),(74,NULL,'FINANDINO COMPAÑIA FINANCIERA S.A.',44100,NULL,NULL,NULL),(75,NULL,'MONTEMAR COMPAÑIA FINANCIERA S.A.',45056,NULL,NULL,NULL),(76,NULL,'MULTIFINANZAS COMPAÑIA FINANCIERA S.A.',45072,NULL,NULL,NULL),(77,NULL,'CAJA DE CREDITO \"CUENCA\" COOPERATIVA LIM',65203,NULL,NULL,NULL);

--
-- Table structure for table `ctacte_bancos_datos`
--

CREATE TABLE `ctacte_bancos_datos` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `cuenta_conta_id` int(10) unsigned DEFAULT NULL,
  `nombre` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `cuit` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `titular` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `cuenta` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `num_cuenta` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `cbu` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `alias` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` int(11) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `ctacte_bancos_datos_cuenta_conta_id_foreign` (`cuenta_conta_id`),
  CONSTRAINT `ctacte_bancos_datos_cuenta_conta_id_foreign` FOREIGN KEY (`cuenta_conta_id`) REFERENCES `conta_plan_cuenta` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ctacte_bancos_datos`
--


--
-- Table structure for table `ctacte_cheques`
--

CREATE TABLE `ctacte_cheques` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `asiento_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `cuenta_conta_id` int(10) unsigned DEFAULT NULL,
  `cta_cte_tesoreria_cuenta_id` int(10) unsigned DEFAULT NULL,
  `cta_cte_tesoreria_id` int(10) unsigned DEFAULT NULL,
  `cta_cte_cliente_id` int(10) unsigned DEFAULT NULL,
  `cta_cte_cliente_id2` int(10) unsigned DEFAULT NULL,
  `nf_cta_cte_id2` int(10) unsigned DEFAULT NULL,
  `nf_cta_cte_id` int(10) unsigned DEFAULT NULL,
  `monto` decimal(16,2) DEFAULT NULL,
  `cheque3ros` tinyint(1) NOT NULL DEFAULT '0',
  `cheque_emitidos` tinyint(1) NOT NULL DEFAULT '0',
  `fecha` date DEFAULT NULL,
  `fecha_cobro` date DEFAULT NULL,
  `banco_id` int(10) unsigned NOT NULL,
  `person_id` int(10) unsigned DEFAULT NULL,
  `titular` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `abierto_cruzado` int(11) NOT NULL DEFAULT '1',
  `numero` int(10) unsigned DEFAULT NULL,
  `foto` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `comentario` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` int(11) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `ctacte_cheques_asiento_id_foreign` (`asiento_id`),
  KEY `ctacte_cheques_cuenta_conta_id_foreign` (`cuenta_conta_id`),
  KEY `ctacte_cheques_banco_id_foreign` (`banco_id`),
  KEY `ctacte_cheques_person_id_foreign` (`person_id`),
  KEY `ctacte_cheques_cta_cte_cliente_id2_foreign` (`cta_cte_cliente_id2`),
  KEY `ctacte_cheques_cta_cte_cliente_id_foreign` (`cta_cte_cliente_id`),
  KEY `cta_cte_tesorer_id` (`cta_cte_tesoreria_id`),
  KEY `ctacte_cheques_nf_cta_cte_id_foreign` (`nf_cta_cte_id`),
  KEY `ctacte_cheques_nf_cta_cte_id2_foreign` (`nf_cta_cte_id2`),
  KEY `ctacte_cheques_cta_cte_tesoreria_cuenta_id_foreign` (`cta_cte_tesoreria_cuenta_id`),
  CONSTRAINT `cta_cte_tesorer_id` FOREIGN KEY (`cta_cte_tesoreria_id`) REFERENCES `cta_cte_tesoreria` (`id`),
  CONSTRAINT `ctacte_cheques_banco_id_foreign` FOREIGN KEY (`banco_id`) REFERENCES `ctacte_bancos` (`id`),
  CONSTRAINT `ctacte_cheques_cta_cte_cliente_id2_foreign` FOREIGN KEY (`cta_cte_cliente_id2`) REFERENCES `cta_cte_cliente` (`id`),
  CONSTRAINT `ctacte_cheques_cta_cte_cliente_id_foreign` FOREIGN KEY (`cta_cte_cliente_id`) REFERENCES `cta_cte_cliente` (`id`),
  CONSTRAINT `ctacte_cheques_cta_cte_tesoreria_cuenta_id_foreign` FOREIGN KEY (`cta_cte_tesoreria_cuenta_id`) REFERENCES `cta_cte_tesoreria_cuentas` (`id`),
  CONSTRAINT `ctacte_cheques_cuenta_conta_id_foreign` FOREIGN KEY (`cuenta_conta_id`) REFERENCES `conta_plan_cuenta` (`id`),
  CONSTRAINT `ctacte_cheques_nf_cta_cte_id2_foreign` FOREIGN KEY (`nf_cta_cte_id2`) REFERENCES `nf_cta_cte` (`id`),
  CONSTRAINT `ctacte_cheques_nf_cta_cte_id_foreign` FOREIGN KEY (`nf_cta_cte_id`) REFERENCES `nf_cta_cte` (`id`),
  CONSTRAINT `ctacte_cheques_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ctacte_cheques`
--


--
-- Table structure for table `ctactegastos_centrocosto`
--

CREATE TABLE `ctactegastos_centrocosto` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `nombre` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ctactegastos_centrocosto`
--

INSERT INTO `ctactegastos_centrocosto` VALUES (1,NULL,'OFICINA',NULL,NULL,NULL),(2,NULL,'FIJO',NULL,NULL,NULL),(3,NULL,'VARIABLE',NULL,NULL,NULL),(4,NULL,'GISELA',NULL,NULL,NULL),(5,NULL,'LIA',NULL,NULL,NULL),(6,NULL,'PADRES',NULL,NULL,NULL),(7,NULL,'CASA',NULL,NULL,NULL),(8,NULL,'VANESA',NULL,NULL,NULL);

--
-- Table structure for table `ctactegastos_cuenta_tipo`
--

CREATE TABLE `ctactegastos_cuenta_tipo` (
  `idCuentaTipo` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `cta_cte_tesoreria_cuenta_id` int(10) unsigned DEFAULT NULL,
  `idTipo` int(10) unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`idCuentaTipo`),
  KEY `ctactegastos_cuenta_tipo_idtipo_foreign` (`idTipo`),
  KEY `ctactegastos_cuenta_tipo_cta_cte_tesoreria_cuenta_id_foreign` (`cta_cte_tesoreria_cuenta_id`),
  CONSTRAINT `ctactegastos_cuenta_tipo_cta_cte_tesoreria_cuenta_id_foreign` FOREIGN KEY (`cta_cte_tesoreria_cuenta_id`) REFERENCES `cta_cte_tesoreria_cuentas` (`id`),
  CONSTRAINT `ctactegastos_cuenta_tipo_idtipo_foreign` FOREIGN KEY (`idTipo`) REFERENCES `ctactegastos_tiposdegastos` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ctactegastos_cuenta_tipo`
--

INSERT INTO `ctactegastos_cuenta_tipo` VALUES (1,NULL,NULL,3,NULL,NULL,NULL),(2,NULL,NULL,6,NULL,NULL,NULL),(3,NULL,NULL,3,NULL,NULL,NULL),(4,NULL,NULL,4,NULL,NULL,NULL),(5,NULL,NULL,5,NULL,NULL,NULL),(6,NULL,NULL,3,NULL,NULL,NULL),(7,NULL,NULL,4,NULL,NULL,NULL),(8,NULL,NULL,3,NULL,NULL,NULL),(9,NULL,NULL,4,NULL,NULL,NULL),(10,NULL,NULL,7,NULL,NULL,NULL),(11,NULL,NULL,8,NULL,NULL,NULL),(12,NULL,NULL,3,NULL,NULL,NULL),(13,NULL,NULL,3,NULL,NULL,NULL),(14,NULL,NULL,4,NULL,NULL,NULL),(15,NULL,NULL,1,NULL,NULL,NULL),(16,NULL,NULL,2,NULL,NULL,NULL),(17,NULL,NULL,5,NULL,NULL,NULL);

--
-- Table structure for table `ctactegastos_mensuales`
--

CREATE TABLE `ctactegastos_mensuales` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `CuentaTipo_id` int(10) unsigned NOT NULL,
  `cta_cte_tesoreria_cuenta_id` int(10) unsigned NOT NULL DEFAULT '13',
  `TipoDeGasto_id` int(10) unsigned NOT NULL,
  `CentroCosto_id` int(10) unsigned NOT NULL,
  `gasto_cta_cte_tesoreria_cuenta_id` int(10) unsigned NOT NULL DEFAULT '13',
  `monto` decimal(16,2) DEFAULT NULL,
  `comentario` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` int(11) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `ctactegastos_mensuales_cuentatipo_id_foreign` (`CuentaTipo_id`),
  KEY `ctactegastos_mensuales_tipodegasto_id_foreign` (`TipoDeGasto_id`),
  KEY `ctactegastos_mensuales_centrocosto_id_foreign` (`CentroCosto_id`),
  KEY `ctactegastos_mensuales_cta_cte_tesoreria_cuenta_id_foreign` (`cta_cte_tesoreria_cuenta_id`),
  KEY `ctactegastos_mensuales_gasto_cta_cte_tesoreria_cuenta_id_foreign` (`gasto_cta_cte_tesoreria_cuenta_id`),
  CONSTRAINT `ctactegastos_mensuales_centrocosto_id_foreign` FOREIGN KEY (`CentroCosto_id`) REFERENCES `ctactegastos_centrocosto` (`id`),
  CONSTRAINT `ctactegastos_mensuales_cta_cte_tesoreria_cuenta_id_foreign` FOREIGN KEY (`cta_cte_tesoreria_cuenta_id`) REFERENCES `cta_cte_tesoreria_cuentas` (`id`),
  CONSTRAINT `ctactegastos_mensuales_cuentatipo_id_foreign` FOREIGN KEY (`CuentaTipo_id`) REFERENCES `ctactegastos_cuenta_tipo` (`idCuentaTipo`),
  CONSTRAINT `ctactegastos_mensuales_gasto_cta_cte_tesoreria_cuenta_id_foreign` FOREIGN KEY (`gasto_cta_cte_tesoreria_cuenta_id`) REFERENCES `cta_cte_tesoreria_cuentas` (`id`),
  CONSTRAINT `ctactegastos_mensuales_tipodegasto_id_foreign` FOREIGN KEY (`TipoDeGasto_id`) REFERENCES `ctactegastos_tiposdegastos` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ctactegastos_mensuales`
--


--
-- Table structure for table `ctactegastos_tiposdegastos`
--

CREATE TABLE `ctactegastos_tiposdegastos` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `nombre` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ctactegastos_tiposdegastos`
--

INSERT INTO `ctactegastos_tiposdegastos` VALUES (1,NULL,'Oficina',NULL,NULL,NULL),(2,NULL,'Personales',NULL,NULL,NULL),(3,NULL,'Tarjeta VISA',NULL,NULL,NULL),(4,NULL,'Tarjeta Mastercard',NULL,NULL,NULL),(5,NULL,'Debito Automatico',NULL,NULL,NULL),(6,NULL,'American Express',NULL,NULL,NULL),(7,NULL,'Tarjeta Shopping',NULL,NULL,NULL),(8,NULL,'Tarjeta Cencosud',NULL,NULL,NULL),(9,NULL,'Tarjeta Coto',NULL,NULL,NULL),(10,NULL,'Tarjeta Nativa',NULL,NULL,NULL);

--
-- Table structure for table `cursos`
--

CREATE TABLE `cursos` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `nombre` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `descripcion` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `fecha` date DEFAULT NULL,
  `hora` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `profesor` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `cant_clases` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `duracion` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `adjuntos` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `link_zoom` longtext COLLATE utf8mb4_unicode_ci,
  `cod_zoom` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `contraseña_zoom` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `link_youtube` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `materiales` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cursos`
--


--
-- Table structure for table `cursos_detail`
--

CREATE TABLE `cursos_detail` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `curso_id` int(10) unsigned NOT NULL,
  `field_name1` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `celular` int(11) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `cursos_detail_curso_id_foreign` (`curso_id`),
  CONSTRAINT `cursos_detail_curso_id_foreign` FOREIGN KEY (`curso_id`) REFERENCES `cursos` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cursos_detail`
--


--
-- Table structure for table `data_types`
--

CREATE TABLE `data_types` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `description` varchar(180) COLLATE utf8mb4_unicode_ci NOT NULL,
  `class` int(10) unsigned NOT NULL,
  `class_description` varchar(180) COLLATE utf8mb4_unicode_ci NOT NULL,
  `data_type` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `path` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `data_types_description_unique` (`description`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `data_types`
--

INSERT INTO `data_types` VALUES (1,'Comprobantes XLS',1,'Importación','XLS','data/imports/receipts/xls',NULL,NULL),(2,'CITI-Ventas',1,'Importación','TXT','data/imports/receipts/CitiVentas',NULL,NULL),(3,'CITI Compras',2,'Exportación','TXT','data/exports/receipts/citi',NULL,NULL),(4,'CITI Ventas',2,'Exportación','TXT','data/exports/receipts/CitiVentasExport',NULL,NULL),(5,'Convenio Multilateral',2,'Exportación','TXT','data/exports/receipts/convenio',NULL,NULL),(6,'Libro IVA Digital',2,'Exportación','TXT','data/exports/receipts/libro_iva_digital',NULL,'2019-11-20 21:43:44'),(7,'Mis Comprobantes',1,'Importacion','','data/imports/receipts/mis_comprobantes',NULL,NULL),(8,'Consulta AFIP',3,'AFIP','','data/afip/index','2019-12-06 14:49:55','2019-12-06 14:49:55');

--
-- Table structure for table `dc_estados`
--

CREATE TABLE `dc_estados` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `descripcion` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_estados`
--

INSERT INTO `dc_estados` VALUES (1,NULL,'PEDIDO',1,NULL,NULL,NULL),(2,NULL,'ACEPTADO',1,NULL,NULL,NULL),(3,NULL,'RECHAZADO',1,NULL,NULL,NULL),(4,NULL,'PAGADO',1,NULL,NULL,NULL),(5,NULL,'CONCILIADO',1,NULL,NULL,NULL);

--
-- Table structure for table `dc_ordenes`
--

CREATE TABLE `dc_ordenes` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_tipo_id` bigint(20) unsigned NOT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_relationed` int(10) unsigned NOT NULL,
  `numero` int(11) NOT NULL,
  `sector` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `solicitante` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `fecha` date NOT NULL,
  `fecha_entrega` date DEFAULT NULL,
  `cantidades` decimal(16,2) NOT NULL,
  `neto` decimal(16,2) NOT NULL,
  `iva` decimal(16,2) NOT NULL,
  `total` decimal(16,2) NOT NULL,
  `comentario` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `dc_estado_id` bigint(20) unsigned NOT NULL,
  `conta_cc_id` bigint(20) unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `dc_ordenes_dc_orden_tipo_id_foreign` (`dc_orden_tipo_id`),
  KEY `dc_ordenes_person_id_foreign` (`person_id`),
  KEY `dc_ordenes_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `dc_ordenes_dc_estado_id_foreign` (`dc_estado_id`),
  KEY `dc_ordenes_conta_cc_id_foreign` (`conta_cc_id`),
  CONSTRAINT `dc_ordenes_conta_cc_id_foreign` FOREIGN KEY (`conta_cc_id`) REFERENCES `conta_centro_costos` (`id`),
  CONSTRAINT `dc_ordenes_dc_estado_id_foreign` FOREIGN KEY (`dc_estado_id`) REFERENCES `dc_estados` (`id`),
  CONSTRAINT `dc_ordenes_dc_orden_tipo_id_foreign` FOREIGN KEY (`dc_orden_tipo_id`) REFERENCES `dc_ordenes_tipos` (`id`),
  CONSTRAINT `dc_ordenes_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `dc_ordenes_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ordenes`
--


--
-- Table structure for table `dc_ordenes_details`
--

CREATE TABLE `dc_ordenes_details` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `cantidades` decimal(16,2) NOT NULL,
  `inv_producto_id` bigint(20) unsigned DEFAULT NULL,
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `neto` decimal(16,2) NOT NULL,
  `desc_porc` decimal(16,2) DEFAULT NULL,
  `descuento` decimal(16,2) DEFAULT NULL,
  `system_tax_id` int(10) unsigned NOT NULL,
  `iva` decimal(16,2) NOT NULL,
  `subtotal` decimal(16,2) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `dc_ordenes_details_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ordenes_details_inv_producto_id_foreign` (`inv_producto_id`),
  KEY `dc_ordenes_details_system_tax_id_foreign` (`system_tax_id`),
  CONSTRAINT `dc_ordenes_details_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ordenes_details_inv_producto_id_foreign` FOREIGN KEY (`inv_producto_id`) REFERENCES `inv_productos` (`id`),
  CONSTRAINT `dc_ordenes_details_system_tax_id_foreign` FOREIGN KEY (`system_tax_id`) REFERENCES `system_taxes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ordenes_details`
--


--
-- Table structure for table `dc_ordenes_tipos`
--

CREATE TABLE `dc_ordenes_tipos` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `descripcion` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ordenes_tipos`
--

INSERT INTO `dc_ordenes_tipos` VALUES (1,NULL,'COMPRAS',1,NULL,NULL,NULL),(2,NULL,'VENTAS',1,NULL,NULL,NULL);

--
-- Table structure for table `deudas_impositivas`
--

CREATE TABLE `deudas_impositivas` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `vto_impuesto_id` int(10) unsigned NOT NULL,
  `periodo_deuda` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `concepto` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `importe` decimal(16,2) NOT NULL DEFAULT '0.00',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `deudas_impositivas_vto_impuesto_id_foreign` (`vto_impuesto_id`),
  KEY `deudas_impositivas_person_id_foreign` (`person_id`),
  CONSTRAINT `deudas_impositivas_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `deudas_impositivas_vto_impuesto_id_foreign` FOREIGN KEY (`vto_impuesto_id`) REFERENCES `vto_impuestos` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `deudas_impositivas`
--


--
-- Table structure for table `ejer_anteriores`
--

CREATE TABLE `ejer_anteriores` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `anio` int(11) NOT NULL,
  `ventas` decimal(16,2) DEFAULT NULL,
  `compras` decimal(16,2) DEFAULT NULL,
  `sueldos` decimal(16,2) DEFAULT NULL,
  `impuesto` decimal(16,2) DEFAULT NULL,
  `apagar` decimal(16,2) DEFAULT NULL,
  `afavor` decimal(16,2) DEFAULT NULL,
  `comentario` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `ejer_anteriores_person_id_foreign` (`person_id`),
  CONSTRAINT `ejer_anteriores_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ejer_anteriores`
--


--
-- Table structure for table `estado_civil`
--

CREATE TABLE `estado_civil` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `estado_civil_descripcion_unique` (`descripcion`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `estado_civil`
--

INSERT INTO `estado_civil` VALUES (1,NULL,'Separado Legal',1,'2020-05-28 20:55:23','2020-05-28 20:55:23',NULL),(2,NULL,'Separado de Hecho',1,'2020-05-28 20:55:23','2020-05-28 20:55:23',NULL),(3,NULL,'Divorciado',1,'2020-05-28 20:55:23','2020-05-28 20:55:23',NULL),(4,NULL,'Convivencia',1,'2020-05-28 20:55:23','2020-05-28 20:55:23',NULL),(5,NULL,'Soltero',1,'2020-05-28 20:55:23','2020-05-28 20:55:23',NULL),(6,NULL,'Casado',1,'2020-05-28 20:55:23','2020-05-28 20:55:23',NULL),(7,NULL,'Viudo',1,'2020-05-28 20:55:23','2020-05-28 20:55:23',NULL);

--
-- Table structure for table `fa_masiva`
--

CREATE TABLE `fa_masiva` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `person_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fa_masiva`
--


--
-- Table structure for table `fa_masiva_detalle`
--

CREATE TABLE `fa_masiva_detalle` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `fa_masiva_id` int(11) NOT NULL,
  `cliente_id` int(11) NOT NULL,
  `tipo_comprobante_id` int(10) unsigned NOT NULL DEFAULT '1',
  `zone_id` int(10) unsigned NOT NULL DEFAULT '22',
  `activity_id` int(10) unsigned NOT NULL DEFAULT '1',
  `cond_frente_iva_id` int(10) unsigned NOT NULL DEFAULT '1',
  `system_tax_id` int(10) unsigned NOT NULL DEFAULT '1',
  `concepto_id` int(10) unsigned NOT NULL DEFAULT '1',
  `taxable_iibb` int(10) unsigned NOT NULL DEFAULT '2',
  `renglon1` varchar(180) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `importe1` decimal(20,2) DEFAULT NULL,
  `renglon2` varchar(180) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `importe2` decimal(20,2) DEFAULT NULL,
  `renglon3` varchar(180) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `importe3` decimal(20,2) DEFAULT NULL,
  `punto_venta_id` int(11) DEFAULT NULL,
  `fecha_comprobante` date DEFAULT NULL,
  `fecha_facturado_desde` date DEFAULT NULL,
  `fecha_facturado_hasta` date DEFAULT NULL,
  `fecha_vencimiento_pago` date DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `fa_masiva_detalle_concepto_id_foreign` (`concepto_id`),
  KEY `fa_masiva_detalle_system_tax_id_foreign` (`system_tax_id`),
  KEY `fa_masiva_detalle_cond_frente_iva_id_foreign` (`cond_frente_iva_id`),
  KEY `fa_masiva_detalle_zone_id_foreign` (`zone_id`),
  KEY `fa_masiva_detalle_tipo_comprobante_id_foreign` (`tipo_comprobante_id`),
  KEY `fa_masiva_detalle_activity_id_foreign` (`activity_id`),
  CONSTRAINT `fa_masiva_detalle_activity_id_foreign` FOREIGN KEY (`activity_id`) REFERENCES `activities` (`id`),
  CONSTRAINT `fa_masiva_detalle_concepto_id_foreign` FOREIGN KEY (`concepto_id`) REFERENCES `fact_elec_conceptos_afip` (`id`),
  CONSTRAINT `fa_masiva_detalle_cond_frente_iva_id_foreign` FOREIGN KEY (`cond_frente_iva_id`) REFERENCES `fac_elec_cond_frente_iva` (`id`),
  CONSTRAINT `fa_masiva_detalle_system_tax_id_foreign` FOREIGN KEY (`system_tax_id`) REFERENCES `system_taxes` (`id`),
  CONSTRAINT `fa_masiva_detalle_tipo_comprobante_id_foreign` FOREIGN KEY (`tipo_comprobante_id`) REFERENCES `receipt_types` (`id`),
  CONSTRAINT `fa_masiva_detalle_zone_id_foreign` FOREIGN KEY (`zone_id`) REFERENCES `zones` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fa_masiva_detalle`
--


--
-- Table structure for table `fa_masiva_stock`
--

CREATE TABLE `fa_masiva_stock` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_relationed` int(10) unsigned NOT NULL,
  `data` longtext COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `fa_masiva_stock_person_id_foreign` (`person_id`),
  KEY `fa_masiva_stock_person_id_relationed_foreign` (`person_id_relationed`),
  CONSTRAINT `fa_masiva_stock_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `fa_masiva_stock_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fa_masiva_stock`
--


--
-- Table structure for table `fac_elec_cond_frente_iva`
--

CREATE TABLE `fac_elec_cond_frente_iva` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `fac_elec_cond_frente_iva_name_unique` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fac_elec_cond_frente_iva`
--

INSERT INTO `fac_elec_cond_frente_iva` VALUES (1,'IVA Responsable Inscripto','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(2,'IVA Sujeto Exento','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(3,'Consumidor Final','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(4,'Responsable Monotributo','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(5,'Proveedor del Exterior','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(6,'Cliente del Exterior','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(7,'IVA Liberado - Ley Nº 19.640','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(8,'IVA Responsable Inscripto - Agente de Percepción','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(9,'Monotributista Social','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(10,'IVA No Alcanzado','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL);

--
-- Table structure for table `fac_elec_unidad_medidas`
--

CREATE TABLE `fac_elec_unidad_medidas` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `fac_elec_unidad_medidas_name_unique` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fac_elec_unidad_medidas`
--

INSERT INTO `fac_elec_unidad_medidas` VALUES (1,'Grs','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(2,'Kg','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(3,'Mts','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(4,'Mts2','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(5,'Mts3','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(6,'Lts','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(7,'1000 Kwh','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(8,'Unidades','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(9,'Pares','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(10,'Doc','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(11,'Quilates','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(12,'Millares','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(13,'Milimetros','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(14,'Mm 3','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(15,'Km','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(16,'Hectolitros','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(17,'Cm','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL),(18,'Cm 3','2019-07-15 18:37:39','2019-07-15 18:37:39',NULL);

--
-- Table structure for table `fact_elec_conceptos_afip`
--

CREATE TABLE `fact_elec_conceptos_afip` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `afip_comprobante_id` int(10) unsigned NOT NULL,
  `descripcion` varchar(180) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fact_elec_conceptos_afip`
--

INSERT INTO `fact_elec_conceptos_afip` VALUES (1,1,'Producto','2019-03-13 13:29:34','2019-03-13 13:29:34'),(2,2,'Servicios','2019-03-13 13:29:34','2019-03-13 13:29:34'),(3,3,'Productos y Servicios','2019-03-13 13:29:34','2019-03-13 13:29:34');

--
-- Table structure for table `fact_elec_puntos_venta`
--

CREATE TABLE `fact_elec_puntos_venta` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `direccion` varchar(180) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `codigo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT '0000',
  `codigo_postal` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `zone_id` int(11) DEFAULT NULL,
  `logo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `fact_elec_puntos_venta_person_id_foreign` (`person_id`),
  CONSTRAINT `fact_elec_puntos_venta_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fact_elec_puntos_venta`
--


--
-- Table structure for table `fact_elec_receipt_details`
--

CREATE TABLE `fact_elec_receipt_details` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `fact_elec_receipt_id` int(10) unsigned NOT NULL,
  `descripcion` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `cantidad` decimal(20,2) NOT NULL,
  `unidad_medida` text COLLATE utf8mb4_unicode_ci,
  `precio_unitario` decimal(20,2) NOT NULL,
  `neto_gravado` decimal(20,2) NOT NULL,
  `bonificacion_porcentaje` decimal(20,2) DEFAULT NULL,
  `bonificacion_monto` decimal(20,2) DEFAULT NULL,
  `bonificacion_subtotal` decimal(20,2) DEFAULT NULL,
  `system_tax_id` int(10) unsigned NOT NULL DEFAULT '1',
  `iva_monto` decimal(20,2) DEFAULT NULL,
  `iva_subtotal` decimal(20,2) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `codigo` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `fact_elec_receipt_details_fact_elec_receipt_id_foreign` (`fact_elec_receipt_id`),
  KEY `fact_elec_receipt_details_system_tax_id_foreign` (`system_tax_id`),
  CONSTRAINT `fact_elec_receipt_details_fact_elec_receipt_id_foreign` FOREIGN KEY (`fact_elec_receipt_id`) REFERENCES `fact_elec_receipts` (`id`),
  CONSTRAINT `fact_elec_receipt_details_system_tax_id_foreign` FOREIGN KEY (`system_tax_id`) REFERENCES `system_taxes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fact_elec_receipt_details`
--


--
-- Table structure for table `fact_elec_receipts`
--

CREATE TABLE `fact_elec_receipts` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT NULL,
  `fecha_comprobante` date NOT NULL,
  `fecha_facturado_desde` date DEFAULT NULL,
  `fecha_facturado_hasta` date DEFAULT NULL,
  `fecha_vencimiento_pago` date DEFAULT NULL,
  `concepto_id` int(10) unsigned NOT NULL,
  `punto_venta_id` int(10) unsigned NOT NULL,
  `tipo_comprobante_id` int(10) unsigned NOT NULL,
  `condiciones_venta` varchar(180) COLLATE utf8mb4_unicode_ci NOT NULL,
  `comprobante_asoc` longtext COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `cae` varchar(180) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `cae_vencimiento` date DEFAULT NULL,
  `nro_comprobante_afip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `fecha_proceso_afip` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_receptor` int(10) unsigned NOT NULL,
  `condicion_venta_id` int(11) DEFAULT NULL,
  `cond_frente_iva_id` int(10) unsigned NOT NULL DEFAULT '1',
  `cbu` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `opcion_transferencia` longtext COLLATE utf8mb4_unicode_ci,
  `alias_cbu` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `total` decimal(16,2) NOT NULL DEFAULT '0.00',
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `fact_elec_receipts_user_id_foreign` (`user_id`),
  KEY `fact_elec_receipts_punto_venta_id_foreign` (`punto_venta_id`),
  KEY `fact_elec_receipts_tipo_comprobante_id_foreign` (`tipo_comprobante_id`),
  KEY `fact_elec_receipts_person_id_foreign` (`person_id`),
  KEY `fact_elec_receipts_person_id_receptor_foreign` (`person_id_receptor`),
  KEY `fact_elec_receipts_cond_frente_iva_id_foreign` (`cond_frente_iva_id`),
  CONSTRAINT `fact_elec_receipts_cond_frente_iva_id_foreign` FOREIGN KEY (`cond_frente_iva_id`) REFERENCES `condicion_frente_al_iva` (`id`),
  CONSTRAINT `fact_elec_receipts_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `fact_elec_receipts_person_id_receptor_foreign` FOREIGN KEY (`person_id_receptor`) REFERENCES `persons` (`id`),
  CONSTRAINT `fact_elec_receipts_punto_venta_id_foreign` FOREIGN KEY (`punto_venta_id`) REFERENCES `fact_elec_puntos_venta` (`id`),
  CONSTRAINT `fact_elec_receipts_tipo_comprobante_id_foreign` FOREIGN KEY (`tipo_comprobante_id`) REFERENCES `receipt_types` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fact_elec_receipts`
--


--
-- Table structure for table `fact_elec_tipos_docs_afip`
--

CREATE TABLE `fact_elec_tipos_docs_afip` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `afip_tipo_doc_id` int(10) unsigned NOT NULL,
  `descripcion` varchar(180) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=100 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fact_elec_tipos_docs_afip`
--

INSERT INTO `fact_elec_tipos_docs_afip` VALUES (1,1,'CI Buenos Aires','2019-03-13 13:29:34','2019-03-13 13:29:34'),(2,2,'CI Catamarca','2019-03-13 13:29:34','2019-03-13 13:29:34'),(3,3,'CI Córdoba','2019-03-13 13:29:34','2019-03-13 13:29:34'),(4,4,'CI Corrientes','2019-03-13 13:29:34','2019-03-13 13:29:34'),(5,5,'CI Entre Ríos','2019-03-13 13:29:34','2019-03-13 13:29:34'),(6,6,'CI Jujuy','2019-03-13 13:29:34','2019-03-13 13:29:34'),(7,7,'CI Mendoza','2019-03-13 13:29:34','2019-03-13 13:29:34'),(8,8,'CI La Rioja','2019-03-13 13:29:34','2019-03-13 13:29:34'),(9,9,'CI Salta','2019-03-13 13:29:34','2019-03-13 13:29:34'),(10,10,'CI San Juan','2019-03-13 13:29:34','2019-03-13 13:29:34'),(11,11,'CI San Luis','2019-03-13 13:29:34','2019-03-13 13:29:34'),(12,12,'CI Santa Fe','2019-03-13 13:29:34','2019-03-13 13:29:34'),(13,13,'CI Santiago del Estero','2019-03-13 13:29:34','2019-03-13 13:29:34'),(14,14,'CI Tucumán','2019-03-13 13:29:34','2019-03-13 13:29:34'),(16,16,'CI Chaco','2019-03-13 13:29:34','2019-03-13 13:29:34'),(17,17,'CI Chubut','2019-03-13 13:29:34','2019-03-13 13:29:34'),(18,18,'CI Formosa','2019-03-13 13:29:34','2019-03-13 13:29:34'),(19,19,'CI Misiones','2019-03-13 13:29:34','2019-03-13 13:29:34'),(20,20,'CI Neuquén','2019-03-13 13:29:34','2019-03-13 13:29:34'),(21,21,'CI La Pampa','2019-03-13 13:29:34','2019-03-13 13:29:34'),(22,22,'CI Río Negro','2019-03-13 13:29:34','2019-03-13 13:29:34'),(23,23,'CI Santa Cruz','2019-03-13 13:29:34','2019-03-13 13:29:34'),(24,24,'CI Tierra del Fuego','2019-03-13 13:29:34','2019-03-13 13:29:34'),(80,80,'CUIT','2019-03-13 13:29:34','2019-03-13 13:29:34'),(86,86,'CUIL','2019-03-13 13:29:34','2019-03-13 13:29:34'),(87,87,'CDI','2019-03-13 13:29:34','2019-03-13 13:29:34'),(89,89,'LE','2019-03-13 13:29:34','2019-03-13 13:29:34'),(90,90,'LC','2019-03-13 13:29:34','2019-03-13 13:29:34'),(91,91,'CI Extranjera','2019-03-13 13:29:34','2019-03-13 13:29:34'),(92,92,'en trámite','2019-03-13 13:29:34','2019-03-13 13:29:34'),(93,93,'Acta Nacimiento','2019-03-13 13:29:34','2019-03-13 13:29:34'),(94,94,'Pasaporte','2019-03-13 13:29:34','2019-03-13 13:29:34'),(95,95,'CI Bs. As. RNP','2019-03-13 13:29:34','2019-03-13 13:29:34'),(96,96,'DNI','2019-03-13 13:29:34','2019-03-13 13:29:34'),(97,0,'CI Policía Federal','2019-03-13 13:29:34','2019-03-13 13:29:34'),(99,99,'Doc. (Otro)','2019-03-13 13:29:34','2019-03-13 13:29:34');

--
-- Table structure for table `failed_jobs`
--

CREATE TABLE `failed_jobs` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `failed_jobs`
--


--
-- Table structure for table `faq`
--

CREATE TABLE `faq` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `pregunta` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `respuesta` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `faq`
--


--
-- Table structure for table `file_upload_details`
--

CREATE TABLE `file_upload_details` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `file_upload_id` int(10) unsigned NOT NULL,
  `detail` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `file_upload_details_file_upload_id_foreign` (`file_upload_id`),
  CONSTRAINT `file_upload_details_file_upload_id_foreign` FOREIGN KEY (`file_upload_id`) REFERENCES `file_uploads` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `file_upload_details`
--


--
-- Table structure for table `file_uploads`
--

CREATE TABLE `file_uploads` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `data_type_id` int(10) unsigned NOT NULL,
  `user_id` int(10) unsigned NOT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `period_id` int(10) unsigned DEFAULT NULL,
  `path` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` int(10) unsigned NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `file_uploads_data_type_id_foreign` (`data_type_id`),
  KEY `file_uploads_user_id_foreign` (`user_id`),
  KEY `file_uploads_person_id_foreign` (`person_id`),
  KEY `file_uploads_period_id_foreign` (`period_id`),
  CONSTRAINT `file_uploads_data_type_id_foreign` FOREIGN KEY (`data_type_id`) REFERENCES `data_types` (`id`),
  CONSTRAINT `file_uploads_period_id_foreign` FOREIGN KEY (`period_id`) REFERENCES `periods` (`id`),
  CONSTRAINT `file_uploads_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `file_uploads_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `tusers` (`idUser`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `file_uploads`
--


--
-- Table structure for table `ganan_art_90`
--

CREATE TABLE `ganan_art_90` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `anio` int(10) unsigned NOT NULL,
  `desde` decimal(16,2) NOT NULL DEFAULT '0.00',
  `hasta` decimal(16,2) NOT NULL DEFAULT '0.00',
  `impuesto` decimal(16,2) NOT NULL DEFAULT '0.00',
  `mas_porcentaje` decimal(16,2) NOT NULL DEFAULT '0.00',
  `excedente` decimal(16,2) NOT NULL DEFAULT '0.00',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=64 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ganan_art_90`
--

INSERT INTO `ganan_art_90` VALUES (1,2017,0.00,20000.00,0.00,0.05,0.00,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(2,2017,20000.00,40000.00,1000.00,0.09,20000.00,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(3,2017,40000.00,60000.00,2800.00,0.12,40000.00,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(4,2017,60000.00,80000.00,5200.00,0.15,60000.00,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(5,2017,80000.00,120000.00,8200.00,0.19,80000.00,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(6,2017,120000.00,160000.00,15800.00,0.23,120000.00,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(7,2017,160000.00,240000.00,25000.00,0.27,160000.00,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(8,2017,240000.00,320000.00,46600.00,0.31,240000.00,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(9,2017,320000.00,999999999.99,71400.00,0.35,320000.00,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(10,2018,0.00,25754.00,0.00,0.05,0.00,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(11,2018,25754.00,51508.00,1287.70,0.09,25754.00,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(12,2018,51508.00,77262.00,3605.56,0.12,51508.00,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(13,2018,77262.00,103016.00,6696.04,0.15,77262.00,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(14,2018,103016.00,154524.00,10559.14,0.19,103016.00,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(15,2018,154524.00,206032.00,20345.66,0.23,154524.00,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(16,2018,206032.00,309048.00,32192.50,0.27,206032.00,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(17,2018,309048.00,412064.00,60006.82,0.31,309048.00,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(18,2018,412064.00,999999999.99,91941.78,0.35,412064.00,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(19,2019,0.00,33039.81,0.00,0.05,0.00,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(20,2019,33039.81,66079.61,1651.99,0.09,33039.81,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(21,2019,66079.61,99119.42,4625.57,0.12,66079.61,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(22,2019,99119.42,132159.23,8590.35,0.15,99119.42,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(23,2019,132159.23,198238.84,13546.32,0.19,132159.23,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(24,2019,198238.84,264318.45,26101.45,0.23,198238.84,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(25,2019,264318.45,396477.68,41299.76,0.27,264318.45,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(26,2019,396477.68,528636.91,76982.75,0.31,396477.68,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(27,2019,528636.91,999999999.99,117952.11,0.35,528636.91,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(28,2016,0.00,10000.00,0.00,0.09,0.00,'2020-01-28 13:48:34','2020-02-27 02:59:44',NULL),(29,2016,10000.00,20000.00,900.00,0.14,10000.00,'2020-01-28 13:48:34','2020-02-27 02:59:44',NULL),(30,2016,20000.00,30000.00,2300.00,0.19,20000.00,'2020-01-28 13:48:34','2020-02-27 02:59:44',NULL),(31,2016,30000.00,60000.00,4200.00,0.23,30000.00,'2020-01-28 13:48:34','2020-02-27 02:59:44',NULL),(32,2016,60000.00,90000.00,11100.00,0.27,60000.00,'2020-01-28 13:48:34','2020-02-27 02:59:44',NULL),(33,2016,90000.00,120000.00,19200.00,0.31,90000.00,'2020-01-28 13:48:34','2020-02-27 02:59:44',NULL),(34,2016,120000.00,999999999.00,28500.00,0.35,120000.00,'2020-01-28 13:48:34','2020-02-27 02:59:44',NULL),(37,2020,0.00,47669.16,0.00,0.05,0.00,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(38,2020,47669.16,95338.32,2383.46,0.09,47669.16,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(39,2020,95338.32,143007.48,6673.68,0.12,95338.32,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(40,2020,143007.48,190676.65,12393.98,0.15,143007.48,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(41,2020,190676.65,286014.96,19544.36,0.19,190676.65,'2020-01-28 14:17:39','2021-04-16 11:58:38',NULL),(42,2020,286014.96,381353.28,37658.64,0.23,286014.96,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL);
INSERT INTO `ganan_art_90` VALUES (43,2020,381353.28,572029.92,59586.45,0.27,381353.28,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(44,2020,572029.92,762706.57,111069.14,0.31,572029.92,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(45,2020,762706.57,999999999.99,170178.90,0.35,762706.57,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(46,2021,0.00,64532.64,0.00,0.05,0.00,'2021-04-16 11:58:39','2021-04-16 11:58:39',NULL),(47,2021,64532.64,129065.29,3226.63,0.09,64532.64,'2021-04-16 11:58:39','2021-04-16 11:58:39',NULL),(48,2021,129065.29,193597.93,9034.57,0.12,129065.29,'2021-04-16 11:58:39','2021-04-16 11:58:39',NULL),(49,2021,193597.93,258130.58,16778.49,0.15,193597.93,'2021-04-16 11:58:39','2021-04-16 11:58:39',NULL),(50,2021,258130.58,387195.86,26458.39,0.19,258130.58,'2021-04-16 11:58:39','2021-04-16 11:58:39',NULL),(51,2021,387195.86,516261.14,50980.79,0.23,387195.86,'2021-04-16 11:58:39','2022-06-07 10:49:16',NULL),(52,2021,516261.14,774391.71,80665.80,0.27,516261.14,'2021-04-16 11:58:39','2021-04-16 11:58:39',NULL),(53,2021,774391.71,1032522.30,150361.06,0.31,774391.71,'2021-04-16 11:58:39','2021-04-16 11:58:39',NULL),(54,2021,1032522.30,999999999.99,230381.54,0.35,1032522.30,'2021-04-16 11:58:39','2021-04-16 11:58:39',NULL),(55,2022,0.00,97201.99,0.00,0.05,0.00,'2022-01-11 13:18:04','2022-02-06 22:23:00',NULL),(56,2022,97201.99,194404.01,4860.10,0.09,97201.99,'2022-01-11 13:18:04','2022-01-11 13:18:04',NULL),(57,2022,194404.01,291606.01,13608.29,0.12,194404.01,'2022-01-11 13:18:04','2022-01-11 13:18:04',NULL),(58,2022,291606.01,388808.02,25272.52,0.15,291606.01,'2022-01-11 13:18:04','2022-01-11 13:18:04',NULL),(59,2022,388808.02,583212.02,39852.82,0.19,388808.02,'2022-01-11 13:18:04','2022-01-11 13:18:04',NULL),(60,2022,583212.02,777616.02,76789.59,0.23,583212.02,'2022-01-11 13:18:04','2022-01-11 13:18:04',NULL),(61,2022,777616.02,1166424.03,121502.49,0.27,777616.02,'2022-01-11 13:18:04','2022-01-11 13:18:04',NULL),(62,2022,1166424.03,1555232.07,226480.67,0.31,1166424.03,'2022-01-11 13:18:04','2022-01-11 13:18:04',NULL),(63,2022,1555232.07,9999999.00,347011.15,0.35,1555232.07,'2022-01-11 13:18:04','2022-01-11 13:18:04',NULL);

--
-- Table structure for table `ganan_categorias`
--

CREATE TABLE `ganan_categorias` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `nombre` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ganan_categorias`
--

INSERT INTO `ganan_categorias` VALUES (1,'Primera',1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(2,'Segunda',1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(3,'Tercera',1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(4,'Cuarta',1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL);

--
-- Table structure for table `ganan_conceptos_anticipos`
--

CREATE TABLE `ganan_conceptos_anticipos` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `nombre` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `ganan_conceptos_anticipos_nombre_unique` (`nombre`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ganan_conceptos_anticipos`
--

INSERT INTO `ganan_conceptos_anticipos` VALUES (1,NULL,'Anticipos',1,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(2,NULL,'Retenciones y Percepciones',1,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(3,NULL,'Saldo a Favor Anterior',1,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL);

--
-- Table structure for table `ganan_ddjj_detail_anticipos`
--

CREATE TABLE `ganan_ddjj_detail_anticipos` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `ganan_ddjj_id` int(10) unsigned NOT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `ganan_concepto_anticipo_id` int(10) unsigned NOT NULL,
  `importe` decimal(16,2) NOT NULL DEFAULT '0.00',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `ganan_ddjj_detail_anticipos_ganan_ddjj_id_foreign` (`ganan_ddjj_id`),
  KEY `ganan_ddjj_detail_anticipos_person_id_foreign` (`person_id`),
  KEY `ganan_ddjj_detail_anticipos_ganan_concepto_anticipo_id_foreign` (`ganan_concepto_anticipo_id`),
  CONSTRAINT `ganan_ddjj_detail_anticipos_ganan_concepto_anticipo_id_foreign` FOREIGN KEY (`ganan_concepto_anticipo_id`) REFERENCES `ganan_conceptos_anticipos` (`id`),
  CONSTRAINT `ganan_ddjj_detail_anticipos_ganan_ddjj_id_foreign` FOREIGN KEY (`ganan_ddjj_id`) REFERENCES `ganan_ddjjs` (`id`),
  CONSTRAINT `ganan_ddjj_detail_anticipos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ganan_ddjj_detail_anticipos`
--


--
-- Table structure for table `ganan_ddjj_detail_deducciones`
--

CREATE TABLE `ganan_ddjj_detail_deducciones` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `ganan_ddjj_id` int(10) unsigned NOT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `ganan_deduccion_id` int(10) unsigned NOT NULL,
  `importe` decimal(16,2) NOT NULL DEFAULT '0.00',
  `comentario` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `ganan_ddjj_detail_deducciones_ganan_ddjj_id_foreign` (`ganan_ddjj_id`),
  KEY `ganan_ddjj_detail_deducciones_person_id_foreign` (`person_id`),
  KEY `ganan_ddjj_detail_deducciones_ganan_deduccion_id_foreign` (`ganan_deduccion_id`),
  CONSTRAINT `ganan_ddjj_detail_deducciones_ganan_ddjj_id_foreign` FOREIGN KEY (`ganan_ddjj_id`) REFERENCES `ganan_ddjjs` (`id`),
  CONSTRAINT `ganan_ddjj_detail_deducciones_ganan_deduccion_id_foreign` FOREIGN KEY (`ganan_deduccion_id`) REFERENCES `ganan_deducciones` (`id`),
  CONSTRAINT `ganan_ddjj_detail_deducciones_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ganan_ddjj_detail_deducciones`
--


--
-- Table structure for table `ganan_ddjj_detail_ing_egr`
--

CREATE TABLE `ganan_ddjj_detail_ing_egr` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `ganan_ddjj_id` int(10) unsigned NOT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `conta_tipo_asiento_id` int(10) unsigned NOT NULL,
  `ganan_categoria_id` int(10) unsigned NOT NULL,
  `ganan_tipo_op_id` int(10) unsigned NOT NULL,
  `importe` decimal(16,2) NOT NULL DEFAULT '0.00',
  `comentario` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `ganan_ddjj_detail_ing_egr_ganan_ddjj_id_foreign` (`ganan_ddjj_id`),
  KEY `ganan_ddjj_detail_ing_egr_person_id_foreign` (`person_id`),
  KEY `ganan_ddjj_detail_ing_egr_conta_tipo_asiento_id_foreign` (`conta_tipo_asiento_id`),
  KEY `ganan_ddjj_detail_ing_egr_ganan_categoria_id_foreign` (`ganan_categoria_id`),
  KEY `ganan_ddjj_detail_ing_egr_ganan_tipo_op_id_foreign` (`ganan_tipo_op_id`),
  CONSTRAINT `ganan_ddjj_detail_ing_egr_conta_tipo_asiento_id_foreign` FOREIGN KEY (`conta_tipo_asiento_id`) REFERENCES `conta_tipo_asientos` (`id`),
  CONSTRAINT `ganan_ddjj_detail_ing_egr_ganan_categoria_id_foreign` FOREIGN KEY (`ganan_categoria_id`) REFERENCES `ganan_categorias` (`id`),
  CONSTRAINT `ganan_ddjj_detail_ing_egr_ganan_ddjj_id_foreign` FOREIGN KEY (`ganan_ddjj_id`) REFERENCES `ganan_ddjjs` (`id`),
  CONSTRAINT `ganan_ddjj_detail_ing_egr_ganan_tipo_op_id_foreign` FOREIGN KEY (`ganan_tipo_op_id`) REFERENCES `ganan_tipos_op` (`id`),
  CONSTRAINT `ganan_ddjj_detail_ing_egr_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ganan_ddjj_detail_ing_egr`
--


--
-- Table structure for table `ganan_ddjjs`
--

CREATE TABLE `ganan_ddjjs` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `anio` int(10) unsigned NOT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `ingresos_gravados` decimal(16,2) NOT NULL DEFAULT '0.00',
  `ingresos_exentos` decimal(16,2) NOT NULL DEFAULT '0.00',
  `egresos_gravados` decimal(16,2) NOT NULL DEFAULT '0.00',
  `egresos_exentos` decimal(16,2) NOT NULL DEFAULT '0.00',
  `deducciones_total` decimal(16,2) NOT NULL DEFAULT '0.00',
  `base_imponible` decimal(16,2) NOT NULL DEFAULT '0.00',
  `impuesto_determinado` decimal(16,2) NOT NULL DEFAULT '0.00',
  `saldo_a_pagar` decimal(16,2) NOT NULL DEFAULT '0.00',
  `saldo_a_favor` decimal(16,2) NOT NULL DEFAULT '0.00',
  `comentario` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `ganan_ddjjs_person_id_foreign` (`person_id`),
  CONSTRAINT `ganan_ddjjs_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ganan_ddjjs`
--


--
-- Table structure for table `ganan_deducciones`
--

CREATE TABLE `ganan_deducciones` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `anio` int(10) unsigned NOT NULL,
  `generales` tinyint(1) NOT NULL DEFAULT '0',
  `particulares` tinyint(1) NOT NULL DEFAULT '0',
  `nombre` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `importe` decimal(16,2) NOT NULL DEFAULT '0.00',
  `status` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=151 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ganan_deducciones`
--

INSERT INTO `ganan_deducciones` VALUES (1,NULL,2017,1,0,'Primas de seguro para el caso de muerte',999.00,1,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(2,NULL,2017,1,0,'Gastos de Sepelio',999.00,1,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(3,NULL,2017,1,0,'Aportes a Obras Sociales',0.00,1,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(4,NULL,2017,1,0,'Aportes obligatorios a Fondos de jubilaciones, retiros, pensiones o subsidios a cajas nacionales, provinciales o municipales- incluidas las Cajas de Previsión para Profesionales.',0.00,1,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(5,NULL,2017,1,0,'Otras deducciones del Anexo III de la RG 2437: Aportes para fondos de Jubilación, Retiros, Pensiones o Subsidios destinados al ANSES',0.00,1,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(6,NULL,2017,1,0,'Aportes a Cajas Provinciales o Municipales o de Previsión para Profesionales',0.00,1,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(7,NULL,2017,1,0,'Pagos Régimen Nacional de Trabajadores Autónomos',0.00,1,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(8,NULL,2017,1,0,'Aportes a Cajas Complementarias de Previsión',0.00,1,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(9,NULL,2017,1,0,'Aportes a Fondos Compensadores de Previsión',0.00,1,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(10,NULL,2017,1,0,'Intereses Crédito Hipotecario',20000.00,1,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(11,NULL,2017,1,0,'Servicio Doméstico',51967.00,1,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(12,NULL,2017,1,0,'Donaciones',0.00,1,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(13,NULL,2017,1,0,'Cuota médico asistencial abonado por usted y por sus familiares a cargo',0.00,1,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(14,NULL,2017,1,0,'Honorarios Correspondientes a los Servicios de asistencia Sanitaria, Médica y Paramédica',0.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(15,NULL,2017,0,1,'Conyuge',48447.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(16,NULL,2017,0,1,'Hijo Incapacitado',24432.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(17,NULL,2017,0,1,'Hijo Menor 18 años',24432.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(18,NULL,2017,0,1,'Hijastro Incapacitado',24432.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(19,NULL,2017,0,1,'Hijastro Menor 18 Años',24432.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(20,NULL,2017,0,1,'Ganancia No Imponible',51967.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(21,NULL,2017,0,1,'Deduccion Especial',51967.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(22,NULL,2018,1,0,'Primas de seguro para el caso de muerte',12000.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(23,NULL,2018,1,0,'Gastos de Sepelio',999.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(24,NULL,2018,1,0,'Aportes a Obras Sociales',0.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(25,NULL,2018,1,0,'Aportes obligatorios a Fondos de jubilaciones, retiros, pensiones o subsidios a cajas nacionales, provinciales o municipales- incluidas las Cajas de Previsión para Profesionales.',0.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(26,NULL,2018,1,0,'Otras deducciones del Anexo III de la RG 2437: Aportes para fondos de Jubilación, Retiros, Pensiones o Subsidios destinados al ANSES',0.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(27,NULL,2018,1,0,'Aportes a Cajas Provinciales o Municipales o de Previsión para Profesionales',0.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(28,NULL,2018,1,0,'Pagos Régimen Nacional de Trabajadores Autónomos',0.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(29,NULL,2018,1,0,'Aportes a Cajas Complementarias de Previsión',0.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(30,NULL,2018,1,0,'Aportes a Fondos Compensadores de Previsión',0.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL);
INSERT INTO `ganan_deducciones` VALUES (31,NULL,2018,1,0,'Intereses Crédito Hipotecario',20000.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(32,NULL,2018,1,0,'Servicio Doméstico',66917.91,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(33,NULL,2018,1,0,'Donaciones',0.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(34,NULL,2018,1,0,'Cuota médico asistencial abonado por usted y por sus familiares a cargo',0.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(35,NULL,2018,1,0,'Honorarios Correspondientes a los Servicios de asistencia Sanitaria, Médica y Paramédica',0.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(36,NULL,2018,0,1,'Conyuge',66917.91,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(37,NULL,2018,0,1,'Hijo Incapacitado',31461.09,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(38,NULL,2018,0,1,'Hijo Menor 18 años',31461.09,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(39,NULL,2018,0,1,'Hijastro Incapacitado',31461.09,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(40,NULL,2018,0,1,'Hijastro Menor 18 Años',31461.09,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(41,NULL,2018,0,1,'Ganancia No Imponible',66917.91,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(42,NULL,2018,0,1,'Deduccion Especial',66917.91,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(43,NULL,2019,1,0,'Primas de seguro para el caso de muerte',18000.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(44,NULL,2019,1,0,'Gastos de Sepelio',999.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(45,NULL,2019,1,0,'Aportes a Obras Sociales',0.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(46,NULL,2019,1,0,'Aportes obligatorios a Fondos de jubilaciones, retiros, pensiones o subsidios a cajas nacionales, provinciales o municipales- incluidas las Cajas de Previsión para Profesionales.',0.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(47,NULL,2019,1,0,'Otras deducciones del Anexo III de la RG 2437: Aportes para fondos de Jubilación, Retiros, Pensiones o Subsidios destinados al ANSES',0.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(48,NULL,2019,1,0,'Aportes a Cajas Provinciales o Municipales o de Previsión para Profesionales',0.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(49,NULL,2019,1,0,'Pagos Régimen Nacional de Trabajadores Autónomos',0.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(50,NULL,2019,1,0,'Aportes a Cajas Complementarias de Previsión',0.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(51,NULL,2019,1,0,'Aportes a Fondos Compensadores de Previsión',0.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(52,NULL,2019,1,0,'Intereses Crédito Hipotecario',20000.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(53,NULL,2019,1,0,'Servicio Doméstico',103018.79,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(54,NULL,2019,1,0,'Donaciones',0.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(55,NULL,2019,1,0,'Cuota médico asistencial abonado por usted y por sus familiares a cargo',0.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(56,NULL,2019,1,0,'Honorarios Correspondientes a los Servicios de asistencia Sanitaria, Médica y Paramédica',0.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(57,NULL,2019,0,1,'Conyuge',80033.97,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(58,NULL,2019,0,1,'Hijo Incapacitado',40361.43,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(59,NULL,2019,0,1,'Hijo Menor 18 años',206037.56,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(60,NULL,2019,0,1,'Hijastro Incapacitado',206037.56,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(61,NULL,2019,0,1,'Hijastro Menor 18 Años',0.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(62,NULL,2019,0,1,'Ganancia No Imponible',103018.79,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(63,NULL,2019,0,1,'Deduccion Especial',103018.79,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL);
INSERT INTO `ganan_deducciones` VALUES (64,NULL,2016,1,0,'Primas de seguro para el caso de muerte',999.00,1,'2020-01-28 13:48:34','2020-01-28 13:48:34',NULL),(65,NULL,2016,1,0,'Gastos de Sepelio',999.00,1,'2020-01-28 13:48:34','2020-01-28 13:48:34',NULL),(66,NULL,2016,1,0,'Aportes a Obras Sociales',0.00,1,'2020-01-28 13:48:34','2020-01-28 13:48:34',NULL),(67,NULL,2016,1,0,'Aportes obligatorios a Fondos de jubilaciones, retiros, pensiones o subsidios a cajas nacionales, provinciales o municipales- incluidas las Cajas de Previsión para Profesionales.',0.00,1,'2020-01-28 13:48:34','2020-01-28 13:48:34',NULL),(68,NULL,2016,1,0,'Otras deducciones del Anexo III de la RG 2437: Aportes para fondos de Jubilación, Retiros, Pensiones o Subsidios destinados al ANSES',0.00,1,'2020-01-28 13:48:34','2020-01-28 13:48:34',NULL),(69,NULL,2016,1,0,'Aportes a Cajas Provinciales o Municipales o de Previsión para Profesionales',0.00,1,'2020-01-28 13:48:34','2020-01-28 13:48:34',NULL),(70,NULL,2016,1,0,'Pagos Régimen Nacional de Trabajadores Autónomos',0.00,1,'2020-01-28 13:48:34','2020-01-28 13:48:34',NULL),(71,NULL,2016,1,0,'Aportes a Cajas Complementarias de Previsión',0.00,1,'2020-01-28 13:48:34','2020-01-28 13:48:34',NULL),(72,NULL,2016,1,0,'Aportes a Fondos Compensadores de Previsión',0.00,1,'2020-01-28 13:48:34','2020-01-28 13:48:34',NULL),(73,NULL,2016,1,0,'Intereses Crédito Hipotecario',20000.00,1,'2020-01-28 13:48:34','2020-01-28 13:48:34',NULL),(74,NULL,2016,1,0,'Servicio Doméstico',42318.00,1,'2020-01-28 13:48:34','2020-01-28 13:48:34',NULL),(75,NULL,2016,1,0,'Donaciones',0.00,1,'2020-01-28 13:48:34','2020-01-28 13:48:34',NULL),(76,NULL,2016,1,0,'Cuota médico asistencial abonado por usted y por sus familiares a cargo',0.00,1,'2020-01-28 13:48:34','2020-01-28 13:48:34',NULL),(77,NULL,2016,1,0,'Honorarios Correspondientes a los Servicios de asistencia Sanitaria, Médica y \n            Paramédica',0.00,1,'2020-01-28 13:48:34','2020-01-28 13:48:34',NULL),(78,NULL,2016,0,1,'Conyuge',39778.00,1,'2020-01-28 13:48:34','2020-01-28 13:48:34',NULL),(79,NULL,2016,0,1,'Hijo Incapacitado',19889.00,1,'2020-01-28 13:48:34','2020-01-28 13:48:34',NULL),(80,NULL,2016,0,1,'Hijo Menor 18 años',19889.00,1,'2020-01-28 13:48:34','2020-01-28 13:48:34',NULL),(81,NULL,2016,0,1,'Hijastro Incapacitado',19889.00,1,'2020-01-28 13:48:34','2020-01-28 13:48:34',NULL),(82,NULL,2016,0,1,'Hijastro Menor 18 Años',19889.00,1,'2020-01-28 13:48:34','2020-01-28 13:48:34',NULL),(83,NULL,2016,0,1,'Ganancia No Imponible',42318.00,1,'2020-01-28 13:48:34','2020-01-28 13:48:34',NULL),(84,NULL,2016,0,1,'Deduccion Especial',42318.00,1,'2020-01-28 13:48:34','2020-01-28 13:48:34',NULL),(85,NULL,2019,1,0,'Alquileres',103018.97,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(86,NULL,2020,1,0,'Alquileres',123861.17,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(87,NULL,2020,1,0,'Primas de seguro para el caso de muerte',18000.00,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(88,NULL,2020,1,0,'Gastos de Sepelio',999.00,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(89,NULL,2020,1,0,'Aportes a Obras Sociales',0.00,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(90,NULL,2020,1,0,'Aportes obligatorios a Fondos de jubilaciones, retiros, pensiones o subsidios a cajas nacionales, provinciales o municipales- incluidas las Cajas de Previsión para Profesionales.',0.00,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(91,NULL,2020,1,0,'Otras deducciones del Anexo III de la RG 2437: Aportes para fondos de Jubilación, Retiros, Pensiones o Subsidios destinados al ANSES',0.00,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(92,NULL,2020,1,0,'Aportes a Cajas Provinciales o Municipales o de Previsión para Profesionales',0.00,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(93,NULL,2020,1,0,'Pagos Régimen Nacional de Trabajadores Autónomos',0.00,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL);
INSERT INTO `ganan_deducciones` VALUES (94,NULL,2020,1,0,'Aportes a Cajas Complementarias de Previsión',0.00,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(95,NULL,2020,1,0,'Aportes a Fondos Compensadores de Previsión',0.00,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(96,NULL,2020,1,0,'Intereses Crédito Hipotecario',20000.00,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(97,NULL,2020,1,0,'Servicio Doméstico',123861.17,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(98,NULL,2020,1,0,'Donaciones',0.00,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(99,NULL,2020,1,0,'Cuota médico asistencial abonado por usted y por sus familiares a cargo',0.00,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(100,NULL,2020,1,0,'Honorarios Correspondientes a los Servicios de asistencia Sanitaria, Médica y Paramédica',0.00,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(101,NULL,2020,0,1,'Conyuge',115471.38,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(102,NULL,2020,0,1,'Hijo Incapacitado',58232.65,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(103,NULL,2020,0,1,'Hijo Menor 18 años',58232.65,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(104,NULL,2020,0,1,'Hijastro Incapacitado',58232.65,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(105,NULL,2020,0,1,'Hijastro Menor 18 Años',0.00,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(106,NULL,2020,0,1,'Ganancia No Imponible',123861.17,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(107,NULL,2020,0,1,'Deduccion Especial Art 30 Apartado 1',103018.79,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(108,NULL,2020,0,1,'Deduccion Especial Art 30 Apartado 1 \"Nuevos Profesionales / Emprendedores',309652.93,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(109,NULL,2020,0,1,'Deduccion Especial Art 30 Apartado 2',594533.62,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(110,NULL,2021,1,0,'Primas de seguro para el caso de muerte',24000.00,1,'2021-04-16 11:58:39','2021-04-16 11:58:39',NULL),(111,NULL,2021,1,0,'Gastos de Sepelio',996.23,1,'2021-04-16 11:58:39','2021-04-16 11:58:39',NULL),(112,NULL,2021,1,0,'Aportes a Obras Sociales',0.00,1,'2021-04-16 11:58:39','2021-04-16 11:58:39',NULL),(113,NULL,2021,1,0,'Aportes obligatorios a Fondos de jubilaciones, retiros, pensiones o subsidios a cajas nacionales, provinciales o municipales- incluidas las Cajas de Previsión para Profesionales.',0.00,1,'2021-04-16 11:58:39','2021-04-16 11:58:39',NULL),(114,NULL,2021,1,0,'Otras deducciones del Anexo III de la RG 2437: Aportes para fondos de Jubilación, Retiros, Pensiones o Subsidios destinados al ANSES',0.00,1,'2021-04-16 11:58:39','2021-04-16 11:58:39',NULL),(115,NULL,2021,1,0,'Aportes a Cajas Provinciales o Municipales o de Previsión para Profesionales',0.00,1,'2021-04-16 11:58:39','2021-04-16 11:58:39',NULL),(116,NULL,2021,1,0,'Pagos Régimen Nacional de Trabajadores Autónomos',0.00,1,'2021-04-16 11:58:39','2021-04-16 11:58:39',NULL),(117,NULL,2021,1,0,'Aportes a Cajas Complementarias de Previsión',0.00,1,'2021-04-16 11:58:39','2021-04-16 11:58:39',NULL),(118,NULL,2021,1,0,'Aportes a Fondos Compensadores de Previsión',0.00,1,'2021-04-16 11:58:39','2021-04-16 11:58:39',NULL),(119,NULL,2021,1,0,'Intereses Crédito Hipotecario',20000.00,1,'2021-04-16 11:58:39','2021-04-16 11:58:39',NULL),(120,NULL,2021,1,0,'Servicio Doméstico',167678.40,1,'2021-04-16 11:58:39','2021-04-16 11:58:39',NULL),(121,NULL,2021,1,0,'Donaciones',0.00,1,'2021-04-16 11:58:39','2021-04-16 11:58:39',NULL),(122,NULL,2021,1,0,'Cuota médico asistencial abonado por usted y por sus familiares a cargo',0.00,1,'2021-04-16 11:58:39','2021-04-16 11:58:39',NULL),(123,NULL,2021,1,0,'Honorarios Correspondientes a los Servicios de asistencia Sanitaria, Médica y Paramédica',0.00,1,'2021-04-16 11:58:39','2021-04-16 11:58:39',NULL),(124,NULL,2021,0,1,'Conyuge',156320.63,1,'2021-04-16 11:58:39','2021-04-16 11:58:39',NULL),(125,NULL,2021,0,1,'Hijo Menor 18 años',78833.08,1,'2021-04-16 11:58:39','2021-04-16 11:58:39',NULL);
INSERT INTO `ganan_deducciones` VALUES (126,NULL,2021,0,1,'Ganancia No Imponible',167678.40,1,'2021-04-16 11:58:39','2021-04-16 11:58:39',NULL),(127,NULL,2021,0,1,'Deduccion Especial',804856.34,1,'2021-04-16 11:58:39','2021-04-16 11:58:39',NULL),(128,NULL,2022,1,0,'Primas de seguro para el caso de muerte',24000.00,1,'2022-01-11 13:18:04','2022-01-11 13:18:04',NULL),(129,NULL,2022,1,0,'Gastos de Sepelio',996.23,1,'2022-01-11 13:18:04','2022-01-11 13:18:04',NULL),(130,NULL,2022,1,0,'Aportes a Obras Sociales',0.00,1,'2022-01-11 13:18:04','2022-01-11 13:18:04',NULL),(131,NULL,2022,1,0,'Aportes obligatorios a Fondos de jubilaciones, retiros, pensiones o subsidios a cajas nacionales, provinciales o municipales- incluidas las Cajas de Previsión para Profesionales.',0.00,1,'2022-01-11 13:18:04','2022-01-11 13:18:04',NULL),(132,NULL,2022,1,0,'Otras deducciones del Anexo III de la RG 2437: Aportes para fondos de Jubilación, Retiros, Pensiones o Subsidios destinados al ANSES',0.00,1,'2022-01-11 13:18:04','2022-01-11 13:18:04',NULL),(133,NULL,2022,1,0,'Aportes a Cajas Provinciales o Municipales o de Previsión para Profesionales',0.00,1,'2022-01-11 13:18:04','2022-01-11 13:18:04',NULL),(134,NULL,2022,1,0,'Pagos Régimen Nacional de Trabajadores Autónomos',0.00,1,'2022-01-11 13:18:04','2022-01-11 13:18:04',NULL),(135,NULL,2022,1,0,'Aportes a Cajas Complementarias de Previsión',0.00,1,'2022-01-11 13:18:04','2022-01-11 13:18:04',NULL),(136,NULL,2022,1,0,'Aportes a Fondos Compensadores de Previsión',0.00,1,'2022-01-11 13:18:04','2022-01-11 13:18:04',NULL),(137,NULL,2022,1,0,'Intereses Crédito Hipotecario',20000.00,1,'2022-01-11 13:18:04','2022-01-11 13:18:04',NULL),(138,NULL,2022,1,0,'Servicio Doméstico',252564.84,1,'2022-01-11 13:18:04','2022-01-11 13:18:04',NULL),(139,NULL,2022,1,0,'Donaciones',0.00,1,'2022-01-11 13:18:04','2022-01-11 13:18:04',NULL),(140,NULL,2022,1,0,'Cuota médico asistencial abonado por usted y por sus familiares a cargo',0.00,1,'2022-01-11 13:18:04','2022-01-11 13:18:04',NULL),(141,NULL,2022,1,0,'Honorarios Correspondientes a los Servicios de asistencia Sanitaria, Médica y Paramédica',0.00,1,'2022-01-11 13:18:04','2022-01-11 13:18:04',NULL),(142,NULL,2022,1,0,'Alquileres',252564.84,1,'2022-01-11 13:18:04','2022-01-11 13:18:04',NULL),(143,NULL,2022,0,1,'Conyuge',235457.25,1,'2022-01-11 13:18:04','2022-01-11 13:18:04',NULL),(144,NULL,2022,0,1,'Hijo Menor 18 años',118741.97,1,'2022-01-11 13:18:04','2022-01-11 13:18:04',NULL),(145,NULL,2022,0,1,'Ganancia No Imponible',252564.84,1,'2022-01-11 13:18:04','2022-01-11 13:18:04',NULL),(146,NULL,2022,0,1,'Deducción Especial [Artículo 30, inciso c), Apartado 2]',1212311.24,1,'2022-01-11 13:18:04','2022-01-11 13:18:04',NULL),(147,NULL,2022,0,1,'Deducción Especial [Artículo 30, inciso c), Apartado 1]',505129.68,1,'2022-01-11 13:18:04','2022-01-11 13:18:04',NULL),(148,NULL,2022,0,1,'Deducción Especial [Artículo 30, inciso c), Apartado 1 “nuevos profesionales/emprendedores”]',631412.10,1,'2022-01-11 13:18:04','2022-01-11 13:18:04',NULL),(149,NULL,2022,0,1,'Hijo Incapacitado',237483.94,1,'2022-01-11 13:18:04','2022-01-11 13:18:04',NULL),(150,NULL,2021,1,0,'Alquileres',167678.40,1,NULL,NULL,NULL);

--
-- Table structure for table `ganan_tipos_op`
--

CREATE TABLE `ganan_tipos_op` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `nombre` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ganan_tipos_op`
--

INSERT INTO `ganan_tipos_op` VALUES (1,NULL,'Gravado',1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(2,NULL,'Exento',1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL);

--
-- Table structure for table `iibb_perceptions`
--

CREATE TABLE `iibb_perceptions` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `code` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `iibb_perceptions`
--

INSERT INTO `iibb_perceptions` VALUES (1,NULL,NULL,NULL,'IIBB CABA','IIBBCABA'),(2,NULL,NULL,NULL,'IIBB Bs. As.','IIBBBSAS'),(3,NULL,NULL,NULL,'Percepcion IIBB Tucuman','IIBBTucuman'),(4,NULL,NULL,NULL,'Perc IIBB Misiones','IIBBMisiones'),(5,NULL,NULL,NULL,'Perc IIBB Cordoba','IIBBCba'),(6,NULL,NULL,NULL,'Pec IIBB La Pampa','IIBB La Pampa'),(7,NULL,NULL,NULL,'Perc IIBB Rio Negro','IIBB Rio Negro'),(8,NULL,NULL,NULL,'Perc IIBB Corrientes','IIIBB Corrientes'),(9,NULL,NULL,NULL,'Perc IIBB Santiago del Estero','IIBBSantiago');

--
-- Table structure for table `inv_combos`
--

CREATE TABLE `inv_combos` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `inv_product_combo_id` bigint(20) unsigned NOT NULL,
  `inv_product_id` bigint(20) unsigned NOT NULL,
  `cantidades` int(11) NOT NULL,
  `codigo_interno` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_combos_inv_product_combo_id_foreign` (`inv_product_combo_id`),
  KEY `inv_combos_inv_product_id_foreign` (`inv_product_id`),
  CONSTRAINT `inv_combos_inv_product_combo_id_foreign` FOREIGN KEY (`inv_product_combo_id`) REFERENCES `inv_productos` (`id`),
  CONSTRAINT `inv_combos_inv_product_id_foreign` FOREIGN KEY (`inv_product_id`) REFERENCES `inv_productos` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_combos`
--


--
-- Table structure for table `inv_control_stock`
--

CREATE TABLE `inv_control_stock` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_control_stock_person_id_foreign` (`person_id`),
  CONSTRAINT `inv_control_stock_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_control_stock`
--


--
-- Table structure for table `inv_control_stock_detail`
--

CREATE TABLE `inv_control_stock_detail` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `inv_control_stock_id` bigint(20) unsigned NOT NULL,
  `inv_product_id` bigint(20) unsigned NOT NULL,
  `stock_actual` decimal(16,2) NOT NULL DEFAULT '0.00',
  `stock_real` decimal(16,2) NOT NULL DEFAULT '0.00',
  `stock_diferencia` decimal(16,2) NOT NULL DEFAULT '0.00',
  `precio_costo` decimal(16,2) NOT NULL DEFAULT '0.00',
  `precio_diferencia` decimal(16,2) NOT NULL DEFAULT '0.00',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_control_stock_detail_person_id_foreign` (`person_id`),
  KEY `inv_control_stock_detail_inv_control_stock_id_foreign` (`inv_control_stock_id`),
  KEY `inv_control_stock_detail_inv_product_id_foreign` (`inv_product_id`),
  CONSTRAINT `inv_control_stock_detail_inv_control_stock_id_foreign` FOREIGN KEY (`inv_control_stock_id`) REFERENCES `inv_control_stock` (`id`),
  CONSTRAINT `inv_control_stock_detail_inv_product_id_foreign` FOREIGN KEY (`inv_product_id`) REFERENCES `inv_productos` (`id`),
  CONSTRAINT `inv_control_stock_detail_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_control_stock_detail`
--


--
-- Table structure for table `inv_indicadores`
--

CREATE TABLE `inv_indicadores` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `metodo` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `tipo` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `orden` int(10) unsigned NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_indicadores`
--

INSERT INTO `inv_indicadores` VALUES (1,NULL,'Datos Grales','datos_grales','card_info',5,1,NULL,'2022-05-19 21:54:50',NULL),(2,NULL,'Impuestos Asociados','impuestos_asociados','card_info',6,1,NULL,'2022-05-19 21:54:50',NULL),(3,NULL,'Informacion de Liquidacion','informacion_de_liquidacion','card_info',7,1,NULL,'2022-05-19 21:54:50',NULL),(4,NULL,'Cantidad Ventas del Mes','cantidad_ventas_del_mes','card',1,1,NULL,'2022-05-19 21:54:50',NULL),(5,NULL,'Total Facturado En El Mes','total_facturado_en_el_mes','card',2,1,NULL,'2022-05-19 21:54:50',NULL),(6,NULL,'Total Facturado En El Dia','total_facturado_en_el_dia','card',3,1,NULL,'2022-05-19 21:54:50',NULL),(7,NULL,'Total Facturado En El Año','total_facturado_en_el_anio','card',4,1,NULL,'2022-05-19 21:54:50',NULL),(8,NULL,'Facturacion Mensual','facturacion_mensual','grafico',8,1,NULL,'2022-05-19 21:54:50',NULL),(9,NULL,'Proyeccion de Ganancias','proyeccion_de_ganancias','tabla',9,1,NULL,'2022-05-19 21:54:50',NULL),(10,NULL,'Posicion IVA','posicion_de_iva','tabla',10,1,NULL,'2022-05-19 21:54:50',NULL);

--
-- Table structure for table `inv_indicadores_persons`
--

CREATE TABLE `inv_indicadores_persons` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `inv_indicador_id` bigint(20) unsigned NOT NULL,
  `objetivo` decimal(16,2) NOT NULL DEFAULT '0.00',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_indicadores_persons_person_id_foreign` (`person_id`),
  KEY `inv_indicadores_persons_inv_indicador_id_foreign` (`inv_indicador_id`),
  CONSTRAINT `inv_indicadores_persons_inv_indicador_id_foreign` FOREIGN KEY (`inv_indicador_id`) REFERENCES `inv_indicadores` (`id`),
  CONSTRAINT `inv_indicadores_persons_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_indicadores_persons`
--


--
-- Table structure for table `inv_ing_egr_stock`
--

CREATE TABLE `inv_ing_egr_stock` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_ing_egr_stock_person_id_foreign` (`person_id`),
  CONSTRAINT `inv_ing_egr_stock_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_ing_egr_stock`
--


--
-- Table structure for table `inv_ing_egr_stock_detail`
--

CREATE TABLE `inv_ing_egr_stock_detail` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `inv_ing_egr_stock_id` bigint(20) unsigned NOT NULL,
  `inv_product_id` bigint(20) unsigned NOT NULL,
  `sumar1_restar0` tinyint(1) NOT NULL DEFAULT '1',
  `cantidades` decimal(16,2) NOT NULL DEFAULT '0.00',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_ing_egr_stock_detail_person_id_foreign` (`person_id`),
  KEY `inv_ing_egr_stock_detail_inv_ing_egr_stock_id_foreign` (`inv_ing_egr_stock_id`),
  KEY `inv_ing_egr_stock_detail_inv_product_id_foreign` (`inv_product_id`),
  CONSTRAINT `inv_ing_egr_stock_detail_inv_ing_egr_stock_id_foreign` FOREIGN KEY (`inv_ing_egr_stock_id`) REFERENCES `inv_ing_egr_stock` (`id`),
  CONSTRAINT `inv_ing_egr_stock_detail_inv_product_id_foreign` FOREIGN KEY (`inv_product_id`) REFERENCES `inv_productos` (`id`),
  CONSTRAINT `inv_ing_egr_stock_detail_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_ing_egr_stock_detail`
--


--
-- Table structure for table `inv_lista_de_precios`
--

CREATE TABLE `inv_lista_de_precios` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `porcentaje_descuento` decimal(16,2) NOT NULL DEFAULT '0.00',
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_lista_de_precios_person_id_foreign` (`person_id`),
  CONSTRAINT `inv_lista_de_precios_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_lista_de_precios`
--


--
-- Table structure for table `inv_orden_trabajo_config_cc`
--

CREATE TABLE `inv_orden_trabajo_config_cc` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `horas_conta_plan_cuenta_id` int(10) unsigned NOT NULL,
  `horas_contra_conta_plan_cuenta_id` int(10) unsigned NOT NULL,
  `gastos_conta_plan_cuenta_id` int(10) unsigned NOT NULL,
  `gastos_contra_conta_plan_cuenta_id` int(10) unsigned NOT NULL,
  `productos_conta_plan_cuenta_id` int(10) unsigned NOT NULL,
  `productos_contra_conta_plan_cuenta_id` int(10) unsigned NOT NULL,
  `asiento_horas_cpc_id` int(10) unsigned NOT NULL DEFAULT '217',
  `asiento_contra_horas_cpc_id` int(10) unsigned NOT NULL DEFAULT '217',
  `asiento_gastos_cpc_id` int(10) unsigned NOT NULL DEFAULT '217',
  `asiento_contra_gastos_cpc_id` int(10) unsigned NOT NULL DEFAULT '217',
  `asiento_productos_cpc_id` int(10) unsigned NOT NULL DEFAULT '217',
  `asiento_contra_productos_cpc_id` int(10) unsigned NOT NULL DEFAULT '217',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_orden_trabajo_config_cc_person_id_foreign` (`person_id`),
  KEY `hcc_id_foreign` (`horas_conta_plan_cuenta_id`),
  KEY `gcc_id_foreign` (`gastos_conta_plan_cuenta_id`),
  KEY `pcc_id_foreign` (`productos_conta_plan_cuenta_id`),
  KEY `h_contra_cc_id_foreign` (`horas_contra_conta_plan_cuenta_id`),
  KEY `g_contra_cc_id_foreign` (`gastos_contra_conta_plan_cuenta_id`),
  KEY `p_contra_cc_id_foreign` (`productos_contra_conta_plan_cuenta_id`),
  KEY `ahcc_id_foreign` (`asiento_horas_cpc_id`),
  KEY `agcc_id_foreign` (`asiento_gastos_cpc_id`),
  KEY `apcc_id_foreign` (`asiento_productos_cpc_id`),
  KEY `ah_contra_cc_id_foreign` (`asiento_contra_horas_cpc_id`),
  KEY `ag_contra_cc_id_foreign` (`asiento_contra_gastos_cpc_id`),
  KEY `ap_contra_cc_id_foreign` (`asiento_contra_productos_cpc_id`),
  CONSTRAINT `ag_contra_cc_id_foreign` FOREIGN KEY (`asiento_contra_gastos_cpc_id`) REFERENCES `conta_plan_cuenta` (`id`),
  CONSTRAINT `agcc_id_foreign` FOREIGN KEY (`asiento_gastos_cpc_id`) REFERENCES `conta_plan_cuenta` (`id`),
  CONSTRAINT `ah_contra_cc_id_foreign` FOREIGN KEY (`asiento_contra_horas_cpc_id`) REFERENCES `conta_plan_cuenta` (`id`),
  CONSTRAINT `ahcc_id_foreign` FOREIGN KEY (`asiento_horas_cpc_id`) REFERENCES `conta_plan_cuenta` (`id`),
  CONSTRAINT `ap_contra_cc_id_foreign` FOREIGN KEY (`asiento_contra_productos_cpc_id`) REFERENCES `conta_plan_cuenta` (`id`),
  CONSTRAINT `apcc_id_foreign` FOREIGN KEY (`asiento_productos_cpc_id`) REFERENCES `conta_plan_cuenta` (`id`),
  CONSTRAINT `g_contra_cc_id_foreign` FOREIGN KEY (`gastos_contra_conta_plan_cuenta_id`) REFERENCES `conta_plan_cuenta` (`id`),
  CONSTRAINT `gcc_id_foreign` FOREIGN KEY (`gastos_conta_plan_cuenta_id`) REFERENCES `conta_plan_cuenta` (`id`),
  CONSTRAINT `h_contra_cc_id_foreign` FOREIGN KEY (`horas_contra_conta_plan_cuenta_id`) REFERENCES `conta_plan_cuenta` (`id`),
  CONSTRAINT `hcc_id_foreign` FOREIGN KEY (`horas_conta_plan_cuenta_id`) REFERENCES `conta_plan_cuenta` (`id`),
  CONSTRAINT `inv_orden_trabajo_config_cc_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `p_contra_cc_id_foreign` FOREIGN KEY (`productos_contra_conta_plan_cuenta_id`) REFERENCES `conta_plan_cuenta` (`id`),
  CONSTRAINT `pcc_id_foreign` FOREIGN KEY (`productos_conta_plan_cuenta_id`) REFERENCES `conta_plan_cuenta` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_orden_trabajo_config_cc`
--


--
-- Table structure for table `inv_orden_trabajo_facturada`
--

CREATE TABLE `inv_orden_trabajo_facturada` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `inv_orden_trabajo_id` bigint(20) unsigned DEFAULT NULL,
  `fact_elec_receipt_id` int(10) unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_orden_trabajo_facturada_person_id_foreign` (`person_id`),
  KEY `inv_orden_trabajo_facturada_inv_orden_trabajo_id_foreign` (`inv_orden_trabajo_id`),
  KEY `inv_orden_trabajo_facturada_fact_elec_receipt_id_foreign` (`fact_elec_receipt_id`),
  CONSTRAINT `inv_orden_trabajo_facturada_fact_elec_receipt_id_foreign` FOREIGN KEY (`fact_elec_receipt_id`) REFERENCES `fact_elec_receipts` (`id`),
  CONSTRAINT `inv_orden_trabajo_facturada_inv_orden_trabajo_id_foreign` FOREIGN KEY (`inv_orden_trabajo_id`) REFERENCES `inv_orden_trabajos` (`id`),
  CONSTRAINT `inv_orden_trabajo_facturada_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_orden_trabajo_facturada`
--


--
-- Table structure for table `inv_orden_trabajo_gastos`
--

CREATE TABLE `inv_orden_trabajo_gastos` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `inv_orden_trabajo_id` bigint(20) unsigned DEFAULT NULL,
  `inv_orden_trabajo_gastos_tipo_id` bigint(20) unsigned DEFAULT NULL,
  `person_id_relationed` int(10) unsigned DEFAULT NULL,
  `receipt_id` int(10) unsigned DEFAULT NULL,
  `fecha` datetime NOT NULL DEFAULT '2022-04-27 23:44:27',
  `importe` decimal(16,2) NOT NULL DEFAULT '0.00',
  `total` decimal(16,2) NOT NULL DEFAULT '0.00',
  `comentario` text COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_orden_trabajo_gastos_person_id_foreign` (`person_id`),
  KEY `inv_orden_trabajo_gastos_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `inv_orden_trabajo_gastos_receipt_id_foreign` (`receipt_id`),
  KEY `i_o_t_g_t_id_foreign` (`inv_orden_trabajo_gastos_tipo_id`),
  KEY `inv_orden_trabajo_gastos_inv_orden_trabajo_id_foreign` (`inv_orden_trabajo_id`),
  CONSTRAINT `i_o_t_g_t_id_foreign` FOREIGN KEY (`inv_orden_trabajo_gastos_tipo_id`) REFERENCES `inv_orden_trabajo_gastos_tipos` (`id`),
  CONSTRAINT `inv_orden_trabajo_gastos_inv_orden_trabajo_id_foreign` FOREIGN KEY (`inv_orden_trabajo_id`) REFERENCES `inv_orden_trabajos` (`id`),
  CONSTRAINT `inv_orden_trabajo_gastos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `inv_orden_trabajo_gastos_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`),
  CONSTRAINT `inv_orden_trabajo_gastos_receipt_id_foreign` FOREIGN KEY (`receipt_id`) REFERENCES `receipts` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_orden_trabajo_gastos`
--


--
-- Table structure for table `inv_orden_trabajo_gastos_tipos`
--

CREATE TABLE `inv_orden_trabajo_gastos_tipos` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `descripcion` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_orden_trabajo_gastos_tipos_person_id_foreign` (`person_id`),
  CONSTRAINT `inv_orden_trabajo_gastos_tipos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_orden_trabajo_gastos_tipos`
--


--
-- Table structure for table `inv_orden_trabajo_horas`
--

CREATE TABLE `inv_orden_trabajo_horas` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `inv_orden_trabajo_id` bigint(20) unsigned DEFAULT NULL,
  `inv_orden_trabajo_horas_tipo_id` bigint(20) unsigned DEFAULT NULL,
  `fecha` datetime NOT NULL DEFAULT '2022-04-27 23:44:27',
  `syj_empleado_id` int(10) unsigned DEFAULT NULL,
  `cantidad` decimal(16,2) NOT NULL DEFAULT '0.00',
  `importe` decimal(16,2) NOT NULL DEFAULT '0.00',
  `total` decimal(16,2) NOT NULL DEFAULT '0.00',
  `comentario` text COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_orden_trabajo_horas_person_id_foreign` (`person_id`),
  KEY `inv_orden_trabajo_horas_inv_orden_trabajo_horas_tipo_id_foreign` (`inv_orden_trabajo_horas_tipo_id`),
  KEY `inv_orden_trabajo_horas_inv_orden_trabajo_id_foreign` (`inv_orden_trabajo_id`),
  KEY `inv_orden_trabajo_horas_syj_empleado_id_foreign` (`syj_empleado_id`),
  CONSTRAINT `inv_orden_trabajo_horas_inv_orden_trabajo_horas_tipo_id_foreign` FOREIGN KEY (`inv_orden_trabajo_horas_tipo_id`) REFERENCES `inv_orden_trabajo_horas_tipos` (`id`),
  CONSTRAINT `inv_orden_trabajo_horas_inv_orden_trabajo_id_foreign` FOREIGN KEY (`inv_orden_trabajo_id`) REFERENCES `inv_orden_trabajos` (`id`),
  CONSTRAINT `inv_orden_trabajo_horas_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `inv_orden_trabajo_horas_syj_empleado_id_foreign` FOREIGN KEY (`syj_empleado_id`) REFERENCES `syj_empleados` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_orden_trabajo_horas`
--


--
-- Table structure for table `inv_orden_trabajo_horas_tipos`
--

CREATE TABLE `inv_orden_trabajo_horas_tipos` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `descripcion` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_orden_trabajo_horas_tipos_person_id_foreign` (`person_id`),
  CONSTRAINT `inv_orden_trabajo_horas_tipos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_orden_trabajo_horas_tipos`
--


--
-- Table structure for table `inv_orden_trabajo_productos`
--

CREATE TABLE `inv_orden_trabajo_productos` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `inv_orden_trabajo_id` bigint(20) unsigned DEFAULT NULL,
  `inv_producto_id` bigint(20) unsigned DEFAULT NULL,
  `fecha` datetime NOT NULL DEFAULT '2022-04-27 23:44:27',
  `cantidades` decimal(16,2) NOT NULL DEFAULT '0.00',
  `comentario` text COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_orden_trabajo_productos_person_id_foreign` (`person_id`),
  KEY `inv_orden_trabajo_productos_inv_orden_trabajo_id_foreign` (`inv_orden_trabajo_id`),
  KEY `inv_orden_trabajo_productos_inv_producto_id_foreign` (`inv_producto_id`),
  CONSTRAINT `inv_orden_trabajo_productos_inv_orden_trabajo_id_foreign` FOREIGN KEY (`inv_orden_trabajo_id`) REFERENCES `inv_orden_trabajos` (`id`),
  CONSTRAINT `inv_orden_trabajo_productos_inv_producto_id_foreign` FOREIGN KEY (`inv_producto_id`) REFERENCES `inv_productos` (`id`),
  CONSTRAINT `inv_orden_trabajo_productos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_orden_trabajo_productos`
--


--
-- Table structure for table `inv_orden_trabajos`
--

CREATE TABLE `inv_orden_trabajos` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_relationed` int(10) unsigned DEFAULT NULL,
  `fecha` datetime NOT NULL DEFAULT '2022-04-27 23:44:27',
  `numero` int(10) unsigned NOT NULL,
  `importe` decimal(16,2) NOT NULL DEFAULT '0.00',
  `titulo` text COLLATE utf8mb4_unicode_ci,
  `descripcion` longtext COLLATE utf8mb4_unicode_ci,
  `cerrada` tinyint(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_orden_trabajos_person_id_foreign` (`person_id`),
  KEY `inv_orden_trabajos_person_id_relationed_foreign` (`person_id_relationed`),
  CONSTRAINT `inv_orden_trabajos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `inv_orden_trabajos_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_orden_trabajos`
--


--
-- Table structure for table `inv_product_receipt`
--

CREATE TABLE `inv_product_receipt` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT NULL,
  `type_id` int(10) unsigned NOT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `inv_product_id` bigint(20) unsigned NOT NULL,
  `receiptable_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `receiptable_id` int(10) unsigned NOT NULL,
  `cantidades` decimal(16,2) NOT NULL,
  `costo` decimal(16,2) NOT NULL DEFAULT '0.00',
  `precio_sin_iva` decimal(16,2) NOT NULL DEFAULT '0.00',
  `descuento` decimal(16,2) NOT NULL DEFAULT '0.00',
  `descuento_por1_imp0` tinyint(1) NOT NULL DEFAULT '1',
  `descuento_porcentaje` decimal(16,2) NOT NULL DEFAULT '0.00',
  `precio_con_descuento` decimal(16,2) NOT NULL DEFAULT '0.00',
  `precio_final` decimal(16,2) NOT NULL DEFAULT '0.00',
  `iva` decimal(16,2) NOT NULL DEFAULT '0.00',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_product_receipt_type_id_foreign` (`type_id`),
  KEY `inv_product_receipt_person_id_foreign` (`person_id`),
  KEY `inv_product_receipt_inv_product_id_foreign` (`inv_product_id`),
  CONSTRAINT `inv_product_receipt_inv_product_id_foreign` FOREIGN KEY (`inv_product_id`) REFERENCES `inv_productos` (`id`),
  CONSTRAINT `inv_product_receipt_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `inv_product_receipt_type_id_foreign` FOREIGN KEY (`type_id`) REFERENCES `types` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_product_receipt`
--


--
-- Table structure for table `inv_productos`
--

CREATE TABLE `inv_productos` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT NULL,
  `inv_producto_tipo_id` bigint(20) unsigned NOT NULL DEFAULT '1',
  `person_id` int(10) unsigned NOT NULL,
  `person_prov_id` int(10) unsigned DEFAULT NULL,
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `codigo_externo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `codigo_interno` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `fac_ele_unidad_medida_id` int(10) unsigned NOT NULL DEFAULT '8',
  `inv_rubro_sub_id` bigint(20) unsigned NOT NULL,
  `inv_ubicacion_id` bigint(20) unsigned DEFAULT NULL,
  `moneda_id` int(10) unsigned NOT NULL DEFAULT '1',
  `costo` decimal(16,2) NOT NULL DEFAULT '0.00',
  `margen` decimal(16,2) NOT NULL DEFAULT '0.00',
  `precio_sin_iva` decimal(16,2) NOT NULL DEFAULT '0.00',
  `system_tax_id` int(10) unsigned DEFAULT NULL,
  `iva` decimal(16,2) NOT NULL DEFAULT '0.00',
  `precio_final` decimal(16,2) NOT NULL DEFAULT '0.00',
  `inv_lista_de_precio_id` bigint(20) unsigned DEFAULT NULL,
  `foto` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `stock` decimal(16,2) NOT NULL DEFAULT '0.00',
  `stock_minimo` decimal(16,2) NOT NULL DEFAULT '0.00',
  `sku` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_productos_person_id_foreign` (`person_id`),
  KEY `inv_productos_person_prov_id_foreign` (`person_prov_id`),
  KEY `inv_productos_fac_ele_unidad_medida_id_foreign` (`fac_ele_unidad_medida_id`),
  KEY `inv_productos_inv_rubro_sub_id_foreign` (`inv_rubro_sub_id`),
  KEY `inv_productos_inv_ubicacion_id_foreign` (`inv_ubicacion_id`),
  KEY `inv_productos_system_tax_id_foreign` (`system_tax_id`),
  KEY `inv_productos_inv_lista_de_precio_id_foreign` (`inv_lista_de_precio_id`),
  KEY `inv_productos_inv_producto_tipo_id_foreign` (`inv_producto_tipo_id`),
  KEY `inv_productos_moneda_id_foreign` (`moneda_id`),
  CONSTRAINT `inv_productos_fac_ele_unidad_medida_id_foreign` FOREIGN KEY (`fac_ele_unidad_medida_id`) REFERENCES `fac_elec_unidad_medidas` (`id`),
  CONSTRAINT `inv_productos_inv_lista_de_precio_id_foreign` FOREIGN KEY (`inv_lista_de_precio_id`) REFERENCES `inv_lista_de_precios` (`id`),
  CONSTRAINT `inv_productos_inv_producto_tipo_id_foreign` FOREIGN KEY (`inv_producto_tipo_id`) REFERENCES `inv_productos_tipos` (`id`),
  CONSTRAINT `inv_productos_inv_rubro_sub_id_foreign` FOREIGN KEY (`inv_rubro_sub_id`) REFERENCES `inv_rubros_sub` (`id`),
  CONSTRAINT `inv_productos_inv_ubicacion_id_foreign` FOREIGN KEY (`inv_ubicacion_id`) REFERENCES `inv_ubicaciones` (`id`),
  CONSTRAINT `inv_productos_moneda_id_foreign` FOREIGN KEY (`moneda_id`) REFERENCES `monedas` (`id`),
  CONSTRAINT `inv_productos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `inv_productos_person_prov_id_foreign` FOREIGN KEY (`person_prov_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `inv_productos_system_tax_id_foreign` FOREIGN KEY (`system_tax_id`) REFERENCES `system_taxes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_productos`
--


--
-- Table structure for table `inv_productos_tipos`
--

CREATE TABLE `inv_productos_tipos` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `descripcion` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_productos_tipos`
--

INSERT INTO `inv_productos_tipos` VALUES (1,NULL,'Unitario',1,NULL,NULL,NULL),(2,NULL,'Combo',1,NULL,NULL,NULL);

--
-- Table structure for table `inv_rubros`
--

CREATE TABLE `inv_rubros` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_rubros_person_id_foreign` (`person_id`),
  CONSTRAINT `inv_rubros_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_rubros`
--


--
-- Table structure for table `inv_rubros_sub`
--

CREATE TABLE `inv_rubros_sub` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `inv_rubro_id` bigint(20) unsigned NOT NULL,
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_rubros_sub_person_id_foreign` (`person_id`),
  KEY `inv_rubros_sub_inv_rubro_id_foreign` (`inv_rubro_id`),
  CONSTRAINT `inv_rubros_sub_inv_rubro_id_foreign` FOREIGN KEY (`inv_rubro_id`) REFERENCES `inv_rubros` (`id`),
  CONSTRAINT `inv_rubros_sub_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_rubros_sub`
--


--
-- Table structure for table `inv_stock_movimientos`
--

CREATE TABLE `inv_stock_movimientos` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `inv_product_id` bigint(20) unsigned NOT NULL,
  `movimiento` decimal(16,2) NOT NULL DEFAULT '0.00',
  `stock` decimal(16,2) NOT NULL DEFAULT '0.00',
  `costo` decimal(16,2) NOT NULL DEFAULT '0.00',
  `precio_sin_iva` decimal(16,2) NOT NULL DEFAULT '0.00',
  `precio_final` decimal(16,2) NOT NULL DEFAULT '0.00',
  `transactionable_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `transactionable_id` bigint(20) unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `account_transactions_morph` (`transactionable_type`,`transactionable_id`),
  KEY `inv_stock_movimientos_person_id_foreign` (`person_id`),
  KEY `inv_stock_movimientos_inv_product_id_foreign` (`inv_product_id`),
  CONSTRAINT `inv_stock_movimientos_inv_product_id_foreign` FOREIGN KEY (`inv_product_id`) REFERENCES `inv_productos` (`id`),
  CONSTRAINT `inv_stock_movimientos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_stock_movimientos`
--


--
-- Table structure for table `inv_ubicaciones`
--

CREATE TABLE `inv_ubicaciones` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_ubicaciones_person_id_foreign` (`person_id`),
  CONSTRAINT `inv_ubicaciones_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_ubicaciones`
--


--
-- Table structure for table `iva_agrupacion`
--

CREATE TABLE `iva_agrupacion` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `type` int(11) NOT NULL,
  `ordr` int(11) NOT NULL,
  `total` decimal(16,2) NOT NULL DEFAULT '0.00',
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `iva_agrupacion`
--

INSERT INTO `iva_agrupacion` VALUES (1,1,1,0.00,'Operaciones con Responsables Inscriptos',1,NULL,NULL,NULL),(2,1,2,0.00,'Operaciones con Consumidores finales, Exentos y No alcanzados',1,NULL,NULL,NULL),(3,1,3,0.00,'Operaciones no gravadas y exentas',1,NULL,NULL,NULL),(4,1,4,0.00,'Credito fiscal a restituir',1,NULL,NULL,NULL),(5,2,5,0.00,'Debito fiscal a restituir',1,NULL,NULL,NULL),(6,2,6,0.00,'Total Credito Fiscal',1,NULL,NULL,NULL),(7,2,7,0.00,'Total Operaciones que no Generan Credito Fiscal',1,NULL,NULL,NULL),(8,1,8,0.00,'Operaciones con Monotributistas - Regimen Simmplificado',1,'2022-03-18 08:13:22','2022-03-18 08:13:22',NULL);

--
-- Table structure for table `iva_conditions`
--

CREATE TABLE `iva_conditions` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `description` varchar(180) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `iva_conditions_description_unique` (`description`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `iva_conditions`
--

INSERT INTO `iva_conditions` VALUES (1,'Monotributo',NULL,NULL),(2,'Responsable Inscripto',NULL,NULL),(3,'Otro',NULL,NULL);

--
-- Table structure for table `iva_creditos_tipos`
--

CREATE TABLE `iva_creditos_tipos` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `total` decimal(16,2) NOT NULL DEFAULT '0.00',
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `iva_creditos_tipos`
--

INSERT INTO `iva_creditos_tipos` VALUES (1,0,'Compras de bienes (excepto bienes de uso)',0.00,1,NULL,NULL,NULL),(2,0,'Locaciones',0.00,1,NULL,NULL,NULL),(3,0,'Prestaciones de servicios',0.00,1,NULL,NULL,NULL),(4,0,'Inversiones de Bienes de Uso',0.00,1,NULL,NULL,NULL),(5,0,'Compras de bienes usados a consumidores finales',0.00,1,NULL,NULL,NULL),(6,0,'Tur IVA',0.00,1,NULL,NULL,NULL),(7,0,'Contribuciones de la Seguridad Social',0.00,1,NULL,NULL,NULL),(8,0,'Contribuciones de la Seguridad Social - Artículo 91 Ley 27.467',0.00,1,NULL,NULL,NULL),(9,0,'Otros Conceptos',0.00,1,NULL,NULL,NULL),(10,0,'Compras de Bienes en el Exterior',0.00,1,NULL,NULL,NULL),(11,0,'Compras de Servicios en el exterior - Impuesto ingresado a través de entidades Financieras',0.00,1,NULL,NULL,NULL),(12,0,'Compras de Servicios en el exterior - Impuesto ingresado por el responsable',0.00,1,NULL,NULL,NULL),(13,0,'Locaciones o prestaciones gravadas en el país realizadas por sujetos del exterior - Impuesto ingresado a través de entidades Financieras',0.00,1,NULL,NULL,NULL),(14,0,'Régimen especial de compensación para la estabilización de precios - Emergencia alimentaria - Ley 27.519',0.00,1,NULL,NULL,NULL);

--
-- Table structure for table `jobs`
--

CREATE TABLE `jobs` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `queue` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `attempts` tinyint(3) unsigned NOT NULL,
  `reserved_at` int(10) unsigned DEFAULT NULL,
  `available_at` int(10) unsigned NOT NULL,
  `created_at` int(10) unsigned NOT NULL,
  `base_de_dato` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `jobs_queue_index` (`queue`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
