-- 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=35 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `cta_cte_cliente_details` VALUES (1,3845,5,40721,40723,13,3824,20,2,76230.00,'2023-01-17 17:03:42','2023-01-17 17:17:14','2023-01-17 17:17:14'),(2,3845,5,40721,40723,758,3824,20,1,63057.46,'2023-01-17 17:03:42','2023-01-17 17:17:14','2023-01-17 17:17:14'),(3,3845,5,40721,40723,25,3824,20,1,10580.72,'2023-01-17 17:03:42','2023-01-17 17:17:14','2023-01-17 17:17:14'),(4,3845,5,40721,40723,256,3824,20,1,1829.52,'2023-01-17 17:03:42','2023-01-17 17:17:14','2023-01-17 17:17:14'),(5,3845,5,40721,40723,162,3824,20,1,762.30,'2023-01-17 17:03:42','2023-01-17 17:17:14','2023-01-17 17:17:14'),(6,3845,6,40721,40723,13,3824,20,2,185391.36,'2023-01-17 17:10:00','2023-01-17 17:10:00',NULL),(7,3845,6,40721,40723,758,3824,20,1,155440.70,'2023-01-17 17:10:00','2023-01-17 17:10:00',NULL),(8,3845,6,40721,40723,25,3824,20,1,25732.32,'2023-01-17 17:10:00','2023-01-17 17:10:00',NULL),(9,3845,6,40721,40723,23,3824,20,1,2364.43,'2023-01-17 17:10:00','2023-01-17 17:10:00',NULL),(10,3845,6,40721,40723,162,3824,20,1,1853.91,'2023-01-17 17:10:00','2023-01-17 17:10:00',NULL),(11,3845,7,40721,40722,13,3824,20,2,76230.00,'2023-01-17 17:20:06','2023-01-17 17:20:06',NULL),(12,3845,7,40721,40722,758,3824,20,1,63057.46,'2023-01-17 17:20:06','2023-01-17 17:20:06',NULL),(13,3845,7,40721,40722,25,3824,20,1,10580.72,'2023-01-17 17:20:06','2023-01-17 17:20:06',NULL),(14,3845,7,40721,40722,256,3824,20,1,1829.52,'2023-01-17 17:20:06','2023-01-17 17:20:06',NULL),(15,3845,7,40721,40722,162,3824,20,1,762.30,'2023-01-17 17:20:06','2023-01-17 17:20:06',NULL),(16,3845,64,40721,40728,57,3840,21,1,851840.00,'2024-03-11 11:05:05','2024-03-11 11:05:05',NULL),(17,3845,64,40721,40728,759,3840,21,2,425920.00,'2024-03-11 11:05:05','2024-03-11 11:05:05',NULL),(18,3845,64,40721,40728,759,3840,21,2,425920.00,'2024-03-11 11:05:05','2024-03-11 11:05:05',NULL),(19,3845,68,40721,40728,57,3841,21,1,851840.00,'2024-03-11 11:29:58','2024-03-11 11:29:58',NULL),(20,3845,68,40721,40728,23,3841,21,2,12736.60,'2024-03-11 11:29:58','2024-03-11 11:29:58',NULL),(21,3845,68,40721,40728,759,3841,21,2,839103.40,'2024-03-11 11:29:58','2024-03-11 11:29:58',NULL),(22,3845,69,40721,40733,57,3841,21,1,1028500.00,'2024-03-11 11:36:16','2024-03-11 11:36:16',NULL),(23,3845,69,40721,40733,23,3841,21,2,15656.60,'2024-03-11 11:36:16','2024-03-11 11:36:16',NULL),(24,3845,69,40721,40733,759,3841,21,2,1012843.40,'2024-03-11 11:36:17','2024-03-11 11:36:17',NULL),(25,3845,70,40721,40732,57,3841,21,1,1149500.05,'2024-03-11 11:39:16','2024-03-11 11:39:16',NULL),(26,3845,70,40721,40732,23,3841,21,2,17656.60,'2024-03-11 11:39:16','2024-03-11 11:39:16',NULL),(27,3845,70,40721,40732,759,3841,21,2,1131843.45,'2024-03-11 11:39:16','2024-03-11 11:39:16',NULL),(28,3845,84,40721,40732,57,3843,21,1,1149500.00,'2024-05-15 15:55:29','2024-05-15 15:55:29',NULL),(29,3845,84,40721,40732,23,3843,21,2,17656.60,'2024-05-15 15:55:29','2024-05-15 15:55:29',NULL),(30,3845,84,40721,40732,759,3843,21,2,1131843.40,'2024-05-15 15:55:29','2024-05-15 15:55:29',NULL),(31,3845,86,40721,40734,57,3843,21,1,1210000.00,'2024-05-15 16:47:25','2024-05-15 16:47:25',NULL),(32,3845,86,40721,40734,23,3843,21,2,18656.60,'2024-05-15 16:47:25','2024-05-15 16:47:25',NULL),(33,3845,86,40721,40734,759,3843,21,2,596671.70,'2024-05-15 16:47:25','2024-05-15 16:47:25',NULL),(34,3845,86,40721,40734,759,3843,21,2,594671.70,'2024-05-15 16:47:25','2024-05-15 16:47:25',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(11) DEFAULT NULL,
  `importe` decimal(16,2) DEFAULT NULL,
  `is_a_cuenta` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `cccpr_a_cuenta_id` int(10) 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 `fk_cccpr_a_cuenta_id` (`cccpr_a_cuenta_id`),
  CONSTRAINT `fk_cccpr_a_cuenta_id` FOREIGN KEY (`cccpr_a_cuenta_id`) REFERENCES `cta_cte_cliente_pivot_receipt` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=686 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,3845,1,1,NULL,0,NULL,'2023-01-17 12:55:22','2023-01-17 17:21:17','2023-01-17 17:21:17'),(2,3845,2,2,NULL,0,NULL,'2023-01-17 14:19:08','2023-01-17 14:19:08',NULL),(3,3845,3,3,NULL,0,NULL,'2023-01-17 14:29:05','2023-01-17 14:29:05',NULL),(4,3845,4,4,NULL,0,NULL,'2023-01-17 16:34:22','2023-01-17 16:34:22',NULL),(5,3845,5,5,NULL,0,NULL,'2023-01-17 17:03:42','2023-01-17 17:17:14','2023-01-17 17:17:14'),(6,3845,5,6,NULL,0,NULL,'2023-01-17 17:03:42','2023-01-17 17:17:14','2023-01-17 17:17:14'),(7,3845,5,7,NULL,0,NULL,'2023-01-17 17:03:42','2023-01-17 17:17:14','2023-01-17 17:17:14'),(8,3845,5,4,76230.00,0,NULL,NULL,'2023-01-17 17:17:14','2023-01-17 17:17:14'),(9,3845,6,8,NULL,0,NULL,'2023-01-17 17:10:00','2023-01-17 17:10:00',NULL),(10,3845,6,9,NULL,0,NULL,'2023-01-17 17:10:00','2023-01-17 17:10:00',NULL),(11,3845,6,10,NULL,0,NULL,'2023-01-17 17:10:00','2023-01-17 17:10:00',NULL),(12,NULL,6,2,185391.36,0,NULL,NULL,NULL,NULL),(13,3845,7,11,NULL,0,NULL,'2023-01-17 17:20:06','2023-01-17 17:20:06',NULL),(14,3845,7,12,NULL,0,NULL,'2023-01-17 17:20:06','2023-01-17 17:20:06',NULL),(15,3845,7,13,NULL,0,NULL,'2023-01-17 17:20:06','2023-01-17 17:20:06',NULL),(16,NULL,7,4,76230.00,0,NULL,NULL,NULL,NULL),(17,3845,8,1,NULL,0,NULL,'2023-01-17 17:21:17','2023-01-17 17:21:17',NULL),(18,3845,9,14,NULL,0,NULL,'2023-02-22 16:14:28','2023-02-22 16:14:28',NULL),(19,3845,10,15,NULL,0,NULL,'2023-02-22 16:40:49','2023-02-22 16:40:49',NULL),(20,3845,11,16,NULL,0,NULL,'2023-02-22 16:46:56','2023-02-22 16:46:56',NULL),(21,3845,12,17,NULL,0,NULL,'2023-02-22 16:50:10','2023-02-22 16:50:10',NULL),(22,3845,13,18,NULL,0,NULL,'2023-03-02 13:45:25','2023-03-02 13:45:25',NULL),(23,3845,14,19,NULL,0,NULL,'2023-04-05 12:42:58','2023-04-05 12:42:58',NULL),(24,3845,15,20,NULL,0,NULL,'2023-04-05 12:47:22','2023-04-05 12:47:22',NULL),(25,3845,16,21,NULL,0,NULL,'2023-04-17 16:41:13','2023-04-17 16:41:13',NULL),(26,3845,17,22,NULL,0,NULL,'2023-05-08 15:46:36','2023-05-08 15:46:36',NULL),(27,3845,18,23,NULL,0,NULL,'2023-06-05 16:36:56','2023-06-05 16:36:56',NULL),(28,3845,19,24,NULL,0,NULL,'2023-06-15 16:47:54','2023-06-15 16:47:54',NULL),(29,3845,20,25,NULL,0,NULL,'2023-06-16 10:45:37','2023-06-16 10:45:37',NULL),(30,3845,21,26,NULL,0,NULL,'2023-06-16 10:55:57','2023-06-16 10:55:57',NULL),(31,3845,22,28,NULL,0,NULL,'2023-06-16 12:09:13','2023-06-16 12:59:31','2023-06-16 12:59:31'),(32,3845,23,29,NULL,0,NULL,'2023-06-16 12:26:27','2023-06-16 12:40:24','2023-06-16 12:40:24'),(33,3845,24,30,NULL,0,NULL,'2023-06-16 12:32:04','2023-06-16 12:40:12','2023-06-16 12:40:12'),(34,3845,25,31,NULL,0,NULL,'2023-06-16 12:33:03','2023-06-16 12:33:03',NULL),(35,3845,26,30,NULL,0,NULL,'2023-06-16 12:40:12','2023-06-16 12:59:41','2023-06-16 12:59:41'),(36,3845,27,29,NULL,0,NULL,'2023-06-16 12:40:24','2023-06-16 12:59:53','2023-06-16 12:59:53'),(37,3845,28,28,NULL,0,NULL,'2023-06-16 12:59:31','2023-06-16 12:59:31',NULL),(38,3845,29,30,NULL,0,NULL,'2023-06-16 12:59:41','2023-06-16 12:59:41',NULL),(39,3845,30,29,NULL,0,NULL,'2023-06-16 12:59:53','2023-06-16 12:59:53',NULL),(40,3845,31,32,NULL,0,NULL,'2023-07-18 10:44:19','2023-07-18 10:44:19',NULL),(41,3845,32,33,NULL,0,NULL,'2023-07-20 15:16:44','2023-07-20 15:16:44',NULL),(42,3845,33,34,NULL,0,NULL,'2023-08-03 15:03:07','2023-08-03 15:03:07',NULL),(43,3845,34,35,NULL,0,NULL,'2023-08-17 12:50:19','2023-08-17 12:51:51','2023-08-17 12:51:51'),(44,3845,35,35,NULL,0,NULL,'2023-08-17 12:51:51','2023-08-17 12:52:20','2023-08-17 12:52:20'),(45,3845,36,35,NULL,0,NULL,'2023-08-17 12:52:20','2023-08-17 12:52:20',NULL),(46,3845,37,36,NULL,0,NULL,'2023-08-17 12:54:20','2023-08-17 12:54:20',NULL),(47,3845,38,38,NULL,0,NULL,'2023-09-01 15:57:23','2023-09-01 15:57:23',NULL),(48,3845,39,39,NULL,0,NULL,'2023-09-06 13:06:02','2023-09-06 13:06:02',NULL),(49,3845,40,40,NULL,0,NULL,'2023-09-14 10:23:17','2023-09-14 10:23:17',NULL),(50,3845,41,41,NULL,0,NULL,'2023-10-03 16:40:46','2023-10-03 16:40:46',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (51,3845,42,42,NULL,0,NULL,'2023-10-11 12:55:45','2023-10-11 12:55:45',NULL),(52,3845,43,43,NULL,0,NULL,'2023-10-11 12:57:08','2023-10-11 12:57:08',NULL),(53,3845,44,44,NULL,0,NULL,'2023-10-20 11:01:48','2023-10-20 11:01:48',NULL),(54,3845,45,45,NULL,0,NULL,'2023-11-03 11:41:01','2023-11-03 11:41:01',NULL),(55,3845,46,46,NULL,0,NULL,'2023-11-06 16:26:53','2023-11-06 16:26:53',NULL),(56,3845,47,47,NULL,0,NULL,'2023-11-14 15:23:03','2023-11-14 15:23:03',NULL),(57,3845,48,48,NULL,0,NULL,'2023-11-27 15:39:44','2023-11-27 15:39:44',NULL),(58,3845,49,49,NULL,0,NULL,'2023-12-05 15:42:11','2023-12-05 15:42:11',NULL),(59,3845,50,50,NULL,0,NULL,'2023-12-07 14:46:22','2023-12-07 14:46:22',NULL),(60,3845,51,52,NULL,0,NULL,'2023-12-27 11:45:42','2023-12-27 11:45:42',NULL),(61,3845,52,53,NULL,0,NULL,'2024-01-12 11:30:53','2024-01-12 11:30:53',NULL),(62,3845,53,54,NULL,0,NULL,'2024-01-23 15:48:43','2024-01-23 15:48:43',NULL),(63,3845,54,55,NULL,0,NULL,'2024-02-16 16:40:32','2024-02-16 16:40:32',NULL),(64,3845,55,56,NULL,0,NULL,'2024-02-19 16:44:07','2024-02-19 16:44:07',NULL),(65,3845,56,57,NULL,0,NULL,'2024-02-20 15:31:19','2024-02-20 15:31:19',NULL),(66,3845,57,58,NULL,0,NULL,'2024-02-20 15:34:23','2024-02-20 15:34:23',NULL),(67,3845,58,59,NULL,0,NULL,'2024-02-20 15:36:32','2024-02-20 15:36:32',NULL),(68,3845,59,60,NULL,0,NULL,'2024-02-20 15:37:57','2024-02-20 15:37:57',NULL),(69,3845,60,61,NULL,0,NULL,'2024-02-20 15:39:13','2024-02-20 15:39:13',NULL),(70,3845,61,62,NULL,0,NULL,'2024-02-20 15:41:47','2024-02-20 15:41:47',NULL),(71,3845,62,63,NULL,0,NULL,'2024-02-23 15:30:13','2024-02-23 15:30:13',NULL),(72,3845,63,64,NULL,0,NULL,'2024-03-01 15:26:49','2024-03-01 15:26:49',NULL),(73,NULL,64,55,851840.00,0,NULL,NULL,NULL,NULL),(74,3845,65,65,NULL,0,NULL,'2024-03-11 11:18:11','2024-03-11 11:18:11',NULL),(75,3845,66,66,NULL,0,NULL,'2024-03-11 11:21:43','2024-03-11 11:21:43',NULL),(76,3845,67,67,NULL,0,NULL,'2024-03-11 11:24:52','2024-03-11 11:24:52',NULL),(77,NULL,68,65,851840.00,0,NULL,NULL,NULL,NULL),(78,NULL,69,67,1028500.00,0,NULL,NULL,NULL,NULL),(79,NULL,70,66,1149500.05,0,NULL,NULL,NULL,NULL),(80,3845,71,74,NULL,0,NULL,'2024-04-08 16:06:11','2024-04-08 16:06:11',NULL),(81,3845,72,75,NULL,0,NULL,'2024-04-11 14:03:40','2024-04-11 14:03:40',NULL),(82,3845,73,76,NULL,0,NULL,'2024-04-11 14:04:27','2024-04-11 14:04:27',NULL),(83,3845,74,77,NULL,0,NULL,'2024-04-11 14:05:25','2024-04-11 14:05:25',NULL),(84,3845,75,78,NULL,0,NULL,'2024-04-11 16:03:53','2024-04-11 16:03:53',NULL),(85,3845,76,79,NULL,0,NULL,'2024-04-11 16:07:04','2024-04-11 16:07:04',NULL),(86,3845,77,80,NULL,0,NULL,'2024-04-11 16:08:10','2024-04-11 16:08:10',NULL),(87,3845,78,81,NULL,0,NULL,'2024-04-11 16:08:59','2024-04-11 16:08:59',NULL),(88,3845,79,82,NULL,0,NULL,'2024-04-11 16:09:23','2024-04-11 16:09:23',NULL),(89,3845,80,83,NULL,0,NULL,'2024-05-02 16:09:46','2024-05-02 16:09:46',NULL),(90,3845,81,84,NULL,0,NULL,'2024-05-02 16:12:09','2024-05-02 16:12:09',NULL),(91,3845,82,85,NULL,0,NULL,'2024-05-02 16:13:04','2024-05-02 16:13:04',NULL),(92,3845,83,86,NULL,0,NULL,'2024-05-15 15:39:59','2024-05-15 15:39:59',NULL),(93,NULL,84,86,1149500.00,0,NULL,NULL,NULL,NULL),(94,3845,85,87,NULL,0,NULL,'2024-05-15 16:33:52','2024-05-15 16:33:52',NULL),(95,NULL,86,87,1210000.00,0,NULL,NULL,NULL,NULL),(96,3845,87,88,NULL,0,NULL,'2024-05-20 16:27:30','2024-05-20 16:27:30',NULL),(97,3845,88,89,NULL,0,NULL,'2024-05-20 16:29:00','2024-05-20 16:29:00',NULL),(98,3845,89,90,NULL,0,NULL,'2024-05-20 16:30:02','2024-05-20 16:30:02',NULL),(99,3845,90,91,NULL,0,NULL,'2024-05-20 16:31:02','2024-05-20 16:31:02',NULL),(100,3845,91,92,NULL,0,NULL,'2024-05-20 16:35:41','2024-05-20 16:35:41',NULL),(101,3845,92,93,NULL,0,NULL,'2024-05-23 12:48:03','2024-05-23 12:48:03',NULL),(102,3845,93,94,NULL,0,NULL,'2024-05-23 12:49:00','2024-05-23 12:49:00',NULL),(103,3845,94,95,NULL,0,NULL,'2024-05-23 12:49:53','2024-05-23 12:49:53',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (104,3845,95,96,NULL,0,NULL,'2024-05-23 12:55:41','2024-05-23 12:55:41',NULL),(105,3845,96,97,NULL,0,NULL,'2024-05-23 12:57:46','2024-05-23 12:57:46',NULL),(106,3845,97,98,NULL,0,NULL,'2024-05-23 12:59:19','2024-05-23 12:59:19',NULL),(107,3845,98,99,NULL,0,NULL,'2024-06-04 10:30:21','2024-06-04 10:30:21',NULL),(108,3845,99,100,NULL,0,NULL,'2024-06-04 10:36:26','2024-06-04 10:36:26',NULL),(109,3845,100,101,NULL,0,NULL,'2024-06-04 10:37:15','2024-06-04 10:37:15',NULL),(110,3845,101,102,NULL,0,NULL,'2024-06-04 10:37:49','2024-06-04 10:37:49',NULL),(111,3845,102,103,NULL,0,NULL,'2024-06-04 10:38:19','2024-06-04 10:38:19',NULL),(112,3845,103,104,NULL,0,NULL,'2024-06-04 10:38:51','2024-06-04 10:38:51',NULL),(113,3845,104,105,NULL,0,NULL,'2024-06-04 11:00:40','2024-07-15 17:03:57','2024-07-15 17:03:57'),(114,3845,105,110,NULL,0,NULL,'2024-06-19 11:30:12','2024-06-19 11:30:12',NULL),(115,3845,106,111,NULL,0,NULL,'2024-06-19 15:48:21','2024-06-19 15:48:21',NULL),(116,3845,107,112,NULL,0,NULL,'2024-06-19 15:51:52','2024-06-19 15:51:52',NULL),(117,3845,108,113,NULL,0,NULL,'2024-06-19 15:56:10','2024-07-15 16:59:24','2024-07-15 16:59:24'),(118,3845,109,114,NULL,0,NULL,'2024-06-19 15:57:25','2024-07-15 17:00:03','2024-07-15 17:00:03'),(119,3845,110,115,NULL,0,NULL,'2024-06-19 16:26:27','2024-07-15 17:00:48','2024-07-15 17:00:48'),(120,3845,111,116,NULL,0,NULL,'2024-06-19 16:31:50','2024-07-15 17:01:18','2024-07-15 17:01:18'),(121,3845,112,117,NULL,0,NULL,'2024-06-19 16:40:46','2024-07-15 17:02:20','2024-07-15 17:02:20'),(122,3845,113,118,NULL,0,NULL,'2024-06-19 16:45:14','2024-07-15 16:58:34','2024-07-15 16:58:34'),(123,3845,114,119,NULL,0,NULL,'2024-06-19 16:51:22','2024-07-15 16:57:15','2024-07-15 16:57:15'),(124,3845,115,120,NULL,0,NULL,'2024-06-19 17:17:51','2024-07-15 16:36:57','2024-07-15 16:36:57'),(125,3845,116,121,NULL,0,NULL,'2024-06-24 16:10:05','2024-06-24 16:10:05',NULL),(126,3845,117,122,NULL,0,NULL,'2024-06-24 16:45:54','2024-06-24 16:45:54',NULL),(127,3845,118,123,NULL,0,NULL,'2024-07-03 11:19:45','2024-07-03 11:19:45',NULL),(128,3845,119,124,NULL,0,NULL,'2024-07-03 11:26:53','2024-07-03 11:26:53',NULL),(129,3845,120,125,NULL,0,NULL,'2024-07-03 11:28:40','2024-07-03 11:28:40',NULL),(130,3845,121,126,NULL,0,NULL,'2024-07-03 11:30:01','2024-07-03 11:30:01',NULL),(131,3845,122,127,NULL,0,NULL,'2024-07-03 11:33:29','2024-07-03 11:33:29',NULL),(132,3845,123,128,NULL,0,NULL,'2024-07-03 11:34:07','2024-07-03 11:34:07',NULL),(133,3845,124,129,NULL,0,NULL,'2024-07-03 11:34:57','2024-07-03 11:34:57',NULL),(134,3845,125,130,NULL,0,NULL,'2024-07-03 11:35:38','2024-07-03 11:35:38',NULL),(135,3845,126,131,NULL,0,NULL,'2024-07-03 11:36:17','2024-07-03 11:36:17',NULL),(136,3845,127,132,NULL,0,NULL,'2024-07-03 11:37:42','2024-07-03 11:37:42',NULL),(137,3845,128,133,NULL,0,NULL,'2024-07-03 11:44:16','2024-07-03 11:44:16',NULL),(138,3845,129,134,NULL,0,NULL,'2024-07-03 11:55:14','2024-07-03 11:55:14',NULL),(139,3845,130,135,NULL,0,NULL,'2024-07-03 11:56:38','2024-07-03 11:56:38',NULL),(140,3845,131,136,NULL,0,NULL,'2024-07-03 11:57:11','2024-07-03 11:57:11',NULL),(141,3845,132,137,NULL,0,NULL,'2024-07-03 11:57:44','2024-07-03 11:57:44',NULL),(142,3845,133,138,NULL,0,NULL,'2024-07-03 11:58:18','2024-07-03 11:58:18',NULL),(143,3845,134,139,NULL,0,NULL,'2024-07-03 11:58:50','2024-07-03 11:58:50',NULL),(144,3845,135,140,NULL,0,NULL,'2024-07-03 11:59:22','2024-07-03 11:59:22',NULL),(145,3845,136,141,NULL,0,NULL,'2024-07-03 12:00:04','2024-07-03 12:00:04',NULL),(146,3845,137,142,NULL,0,NULL,'2024-07-03 12:01:06','2024-07-15 16:50:38','2024-07-15 16:50:38'),(147,3845,138,143,NULL,0,NULL,'2024-07-03 12:01:59','2024-07-15 16:54:40','2024-07-15 16:54:40'),(148,3845,139,144,NULL,0,NULL,'2024-07-03 13:34:38','2024-07-03 13:34:38',NULL),(149,3845,140,145,NULL,0,NULL,'2024-07-03 15:22:56','2024-07-03 15:22:56',NULL),(150,3845,141,146,NULL,0,NULL,'2024-07-03 15:34:25','2024-07-15 13:26:06','2024-07-15 13:26:06');
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (151,3845,142,147,NULL,0,NULL,'2024-07-04 12:07:24','2024-07-04 12:07:24',NULL),(152,3845,143,148,NULL,0,NULL,'2024-07-04 12:09:34','2024-07-15 16:30:23','2024-07-15 16:30:23'),(153,3845,144,146,NULL,0,NULL,'2024-07-15 13:26:06','2024-07-15 16:28:14','2024-07-15 16:28:14'),(154,3845,145,149,NULL,0,NULL,'2024-07-15 16:26:11','2024-07-15 16:26:11',NULL),(155,3845,146,146,NULL,0,NULL,'2024-07-15 16:28:14','2024-07-15 16:28:14',NULL),(156,3845,147,148,NULL,0,NULL,'2024-07-15 16:30:23','2024-07-15 16:30:23',NULL),(157,3845,148,120,NULL,0,NULL,'2024-07-15 16:36:57','2024-07-15 16:36:57',NULL),(158,3845,149,142,NULL,0,NULL,'2024-07-15 16:50:38','2024-07-15 16:50:38',NULL),(159,3845,150,143,NULL,0,NULL,'2024-07-15 16:54:40','2024-07-15 16:54:40',NULL),(160,3845,151,119,NULL,0,NULL,'2024-07-15 16:57:15','2024-07-15 16:57:15',NULL),(161,3845,152,118,NULL,0,NULL,'2024-07-15 16:58:34','2024-07-15 16:58:34',NULL),(162,3845,153,113,NULL,0,NULL,'2024-07-15 16:59:24','2024-07-15 16:59:24',NULL),(163,3845,154,114,NULL,0,NULL,'2024-07-15 17:00:03','2024-07-15 17:00:03',NULL),(164,3845,155,115,NULL,0,NULL,'2024-07-15 17:00:48','2024-07-15 17:00:48',NULL),(165,3845,156,116,NULL,0,NULL,'2024-07-15 17:01:18','2024-07-15 17:01:18',NULL),(166,3845,157,117,NULL,0,NULL,'2024-07-15 17:02:20','2024-07-15 17:02:20',NULL),(167,3845,158,105,NULL,0,NULL,'2024-07-15 17:03:57','2024-07-15 17:03:57',NULL),(168,3845,159,150,NULL,0,NULL,'2024-07-19 10:38:56','2024-07-19 10:38:56',NULL),(169,3845,160,151,NULL,0,NULL,'2024-07-19 10:40:01','2024-07-19 10:40:01',NULL),(170,3845,161,152,NULL,0,NULL,'2024-07-19 13:00:50','2024-07-19 13:00:50',NULL),(171,3845,162,153,NULL,0,NULL,'2024-07-31 15:05:57','2024-07-31 15:05:57',NULL),(172,3845,163,154,NULL,0,NULL,'2024-07-31 15:25:16','2024-07-31 15:25:16',NULL),(173,3845,164,155,NULL,0,NULL,'2024-08-01 13:23:59','2024-08-01 13:23:59',NULL),(174,3845,165,156,NULL,0,NULL,'2024-08-07 17:41:53','2024-08-07 17:41:53',NULL),(175,3845,166,157,NULL,0,NULL,'2024-08-07 17:56:09','2024-08-07 17:56:09',NULL),(176,3845,167,158,NULL,0,NULL,'2024-08-07 17:59:09','2024-08-07 17:59:09',NULL),(177,3845,168,159,NULL,0,NULL,'2024-08-09 14:56:19','2024-08-09 14:58:29','2024-08-09 14:58:29'),(178,3845,169,159,NULL,0,NULL,'2024-08-09 14:58:29','2024-08-09 14:58:29',NULL),(179,3845,170,160,NULL,0,NULL,'2024-08-19 11:21:38','2024-08-19 11:21:38',NULL),(180,3845,171,161,NULL,0,NULL,'2024-08-19 14:34:56','2024-08-19 14:34:56',NULL),(181,3845,172,162,NULL,0,NULL,'2024-08-19 14:58:32','2024-08-19 14:58:32',NULL),(182,3845,173,163,NULL,0,NULL,'2024-08-19 15:00:38','2024-08-19 15:00:38',NULL),(183,3845,174,164,NULL,0,NULL,'2024-08-19 15:02:53','2024-08-19 15:02:53',NULL),(184,3845,175,165,NULL,0,NULL,'2024-08-21 11:12:41','2024-08-21 11:12:41',NULL),(185,3845,176,166,NULL,0,NULL,'2024-08-27 10:14:31','2024-08-27 10:53:32','2024-08-27 10:53:32'),(186,3845,177,167,NULL,0,NULL,'2024-08-27 10:41:22','2024-08-27 10:53:12','2024-08-27 10:53:12'),(187,3845,178,168,NULL,0,NULL,'2024-08-27 10:49:21','2024-08-27 10:49:21',NULL),(188,3845,179,169,NULL,0,NULL,'2024-08-27 10:52:18','2024-08-27 10:52:18',NULL),(189,3845,180,167,NULL,0,NULL,'2024-08-27 10:53:12','2024-08-27 10:58:04','2024-08-27 10:58:04'),(190,3845,181,166,NULL,0,NULL,'2024-08-27 10:53:32','2024-08-27 10:53:32',NULL),(191,3845,182,167,NULL,0,NULL,'2024-08-27 10:58:04','2024-08-27 10:58:04',NULL),(192,3845,183,170,NULL,0,NULL,'2024-08-27 11:16:49','2024-08-27 11:16:49',NULL),(193,3845,184,171,NULL,0,NULL,'2024-08-27 11:24:24','2024-08-27 11:24:24',NULL),(194,3845,185,172,NULL,0,NULL,'2024-08-27 15:10:30','2024-08-27 15:10:30',NULL),(195,3845,186,173,NULL,0,NULL,'2024-08-28 17:11:56','2024-08-28 17:11:56',NULL),(196,3845,187,174,NULL,0,NULL,'2024-08-30 10:51:30','2024-08-30 10:51:30',NULL),(197,3845,188,175,NULL,0,NULL,'2024-08-30 11:20:07','2024-08-30 11:20:07',NULL),(198,3845,189,176,NULL,0,NULL,'2024-08-30 13:08:09','2024-08-30 15:43:09','2024-08-30 15:43:09');
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (199,3845,190,177,NULL,0,NULL,'2024-08-30 13:13:29','2024-08-30 13:13:29',NULL),(200,3845,191,178,NULL,0,NULL,'2024-08-30 15:15:08','2024-08-30 15:15:08',NULL),(201,3845,192,176,NULL,0,NULL,'2024-08-30 15:43:09','2024-08-30 15:43:09',NULL),(202,3845,193,179,NULL,0,NULL,'2024-08-30 16:02:49','2024-08-30 16:02:49',NULL),(203,3845,194,180,NULL,0,NULL,'2024-09-02 11:01:02','2024-09-02 11:01:02',NULL),(204,3845,195,181,NULL,0,NULL,'2024-09-02 12:16:45','2024-09-02 12:16:45',NULL),(205,3845,196,182,NULL,0,NULL,'2024-09-02 14:04:15','2024-09-02 14:04:15',NULL),(206,3845,197,183,NULL,0,NULL,'2024-09-03 15:52:07','2024-09-03 15:52:07',NULL),(207,3845,198,184,NULL,0,NULL,'2024-09-03 15:57:38','2024-09-03 15:57:38',NULL),(208,3845,199,185,NULL,0,NULL,'2024-09-03 16:00:44','2024-09-03 16:00:44',NULL),(209,3845,200,186,NULL,0,NULL,'2024-09-03 17:43:21','2024-09-13 16:34:39','2024-09-13 16:34:39'),(210,3845,201,187,NULL,0,NULL,'2024-09-04 17:47:59','2024-09-04 17:47:59',NULL),(211,3845,202,188,NULL,0,NULL,'2024-09-05 10:27:03','2024-09-05 10:27:03',NULL),(212,3845,203,189,NULL,0,NULL,'2024-09-05 10:29:08','2024-09-05 10:29:08',NULL),(213,3845,204,190,NULL,0,NULL,'2024-09-05 10:35:21','2024-09-05 10:35:21',NULL),(214,3845,205,191,NULL,0,NULL,'2024-09-05 10:42:18','2024-09-05 10:42:18',NULL),(215,3845,206,192,NULL,0,NULL,'2024-09-06 13:41:41','2024-09-06 13:41:41',NULL),(216,3845,207,193,NULL,0,NULL,'2024-09-06 13:47:50','2024-09-06 13:47:50',NULL),(217,3845,208,194,NULL,0,NULL,'2024-09-06 15:06:12','2024-09-06 15:06:12',NULL),(218,3845,209,195,NULL,0,NULL,'2024-09-06 15:09:02','2024-09-06 15:09:02',NULL),(219,3845,210,196,NULL,0,NULL,'2024-09-12 17:43:07','2024-09-12 17:43:07',NULL),(220,3845,211,197,NULL,0,NULL,'2024-09-13 11:41:11','2024-09-13 11:41:11',NULL),(221,3845,212,198,NULL,0,NULL,'2024-09-13 11:44:36','2024-09-13 11:44:36',NULL),(222,3845,213,199,NULL,0,NULL,'2024-09-13 16:17:17','2024-09-13 16:17:17',NULL),(223,3845,214,200,NULL,0,NULL,'2024-09-13 16:23:12','2024-09-13 16:23:12',NULL),(224,3845,215,201,NULL,0,NULL,'2024-09-13 16:25:57','2024-09-13 16:25:57',NULL),(225,3845,216,202,NULL,0,NULL,'2024-09-13 16:30:49','2024-09-13 16:30:49',NULL),(226,3845,217,186,NULL,0,NULL,'2024-09-13 16:34:39','2024-09-13 16:34:39',NULL),(227,3845,218,203,NULL,0,NULL,'2024-09-16 11:28:08','2024-09-16 11:28:08',NULL),(228,3845,219,204,NULL,0,NULL,'2024-09-17 12:50:31','2024-09-17 12:50:31',NULL),(229,3845,220,205,NULL,0,NULL,'2024-09-19 13:49:00','2024-09-19 13:49:00',NULL),(230,3845,221,206,NULL,0,NULL,'2024-09-19 14:00:05','2024-09-19 14:00:05',NULL),(231,3845,222,207,NULL,0,NULL,'2024-09-20 14:34:22','2024-09-20 14:34:22',NULL),(232,3845,223,208,NULL,0,NULL,'2024-09-20 14:35:29','2024-09-20 14:35:29',NULL),(233,3845,224,209,NULL,0,NULL,'2024-09-25 12:05:31','2024-09-25 12:05:31',NULL),(234,3845,225,210,NULL,0,NULL,'2024-09-26 15:15:22','2024-09-26 15:15:22',NULL),(235,3845,226,211,NULL,0,NULL,'2024-09-27 11:56:45','2024-09-27 11:56:45',NULL),(236,3845,227,212,NULL,0,NULL,'2024-10-01 14:46:00','2024-10-01 14:46:00',NULL),(237,3845,228,213,NULL,0,NULL,'2024-10-01 14:46:42','2024-10-01 14:46:42',NULL),(238,3845,229,214,NULL,0,NULL,'2024-10-01 14:56:05','2024-10-01 14:56:05',NULL),(239,3845,230,215,NULL,0,NULL,'2024-10-01 15:28:56','2024-10-01 15:28:56',NULL),(240,3845,231,216,NULL,0,NULL,'2024-10-01 15:30:06','2024-10-01 15:30:06',NULL),(241,3845,232,217,NULL,0,NULL,'2024-10-01 17:57:08','2024-10-09 17:13:51','2024-10-09 17:13:51'),(242,3845,233,218,NULL,0,NULL,'2024-10-03 11:42:35','2024-10-03 11:42:35',NULL),(243,3845,234,219,NULL,0,NULL,'2024-10-03 12:26:13','2024-10-03 12:26:13',NULL),(244,3845,235,220,NULL,0,NULL,'2024-10-04 12:54:14','2024-10-04 12:54:14',NULL),(245,3845,236,221,NULL,0,NULL,'2024-10-04 14:38:40','2024-10-04 14:38:40',NULL),(246,3845,237,222,NULL,0,NULL,'2024-10-08 12:02:35','2024-10-08 12:02:35',NULL),(247,3845,238,223,NULL,0,NULL,'2024-10-08 12:03:29','2024-10-08 12:03:29',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (248,3845,239,224,NULL,0,NULL,'2024-10-08 12:04:29','2024-10-08 12:04:29',NULL),(249,3845,240,225,NULL,0,NULL,'2024-10-09 10:27:26','2024-10-09 10:27:26',NULL),(250,3845,241,226,NULL,0,NULL,'2024-10-09 12:39:37','2024-10-09 12:39:37',NULL),(251,3845,242,227,NULL,0,NULL,'2024-10-09 13:47:40','2024-10-09 13:47:40',NULL),(252,3845,243,217,NULL,0,NULL,'2024-10-09 17:13:51','2024-10-09 17:13:51',NULL),(253,3845,244,228,NULL,0,NULL,'2024-10-10 15:51:12','2024-10-10 15:51:12',NULL),(254,3845,245,229,NULL,0,NULL,'2024-10-14 12:36:04','2024-10-14 12:36:04',NULL),(255,3845,246,230,NULL,0,NULL,'2024-10-15 11:41:06','2024-10-15 11:41:06',NULL),(256,3845,247,231,NULL,0,NULL,'2024-10-15 12:05:04','2024-10-15 12:05:04',NULL),(257,3845,248,232,NULL,0,NULL,'2024-10-16 13:39:45','2024-10-16 13:39:45',NULL),(258,3845,249,233,NULL,0,NULL,'2024-10-16 14:46:16','2024-10-23 12:41:55','2024-10-23 12:41:55'),(259,3845,250,234,NULL,0,NULL,'2024-10-16 17:35:08','2024-10-16 17:35:08',NULL),(260,3845,251,235,NULL,0,NULL,'2024-10-16 17:38:15','2024-10-16 17:38:15',NULL),(261,3845,252,236,NULL,0,NULL,'2024-10-16 17:40:46','2024-10-16 17:40:46',NULL),(262,3845,253,237,NULL,0,NULL,'2024-10-16 17:41:27','2024-10-16 17:41:27',NULL),(263,3845,254,238,NULL,0,NULL,'2024-10-16 17:46:58','2024-10-16 17:46:58',NULL),(264,3845,255,239,NULL,0,NULL,'2024-10-16 17:48:03','2024-10-16 17:48:03',NULL),(265,3845,256,240,NULL,0,NULL,'2024-10-17 12:18:26','2024-10-17 12:18:26',NULL),(266,3845,257,241,NULL,0,NULL,'2024-10-17 16:42:38','2024-10-17 16:42:38',NULL),(267,3845,258,242,NULL,0,NULL,'2024-10-22 15:52:10','2024-10-22 15:52:10',NULL),(268,3845,259,233,NULL,0,NULL,'2024-10-23 12:41:55','2024-10-23 12:41:55',NULL),(269,3845,260,243,NULL,0,NULL,'2024-10-24 12:48:26','2024-10-24 12:48:26',NULL),(270,3845,261,244,NULL,0,NULL,'2024-10-25 11:12:42','2024-10-25 11:12:42',NULL),(271,3845,262,245,NULL,0,NULL,'2024-10-25 13:19:45','2024-10-25 13:19:45',NULL),(272,3845,263,246,NULL,0,NULL,'2024-10-29 09:59:33','2024-10-29 09:59:33',NULL),(273,3845,264,247,NULL,0,NULL,'2024-10-30 16:26:02','2024-10-30 16:26:02',NULL),(274,3845,265,248,NULL,0,NULL,'2024-10-31 09:42:48','2024-10-31 09:42:48',NULL),(275,3845,266,249,NULL,0,NULL,'2024-10-31 16:19:02','2024-10-31 16:19:02',NULL),(276,3845,267,250,NULL,0,NULL,'2024-10-31 16:21:28','2024-10-31 16:21:28',NULL),(277,3845,268,251,NULL,0,NULL,'2024-10-31 16:22:49','2024-10-31 16:22:49',NULL),(278,3845,269,252,NULL,0,NULL,'2024-11-05 09:53:08','2024-11-05 09:53:08',NULL),(279,3845,270,253,NULL,0,NULL,'2024-11-05 09:54:09','2024-11-05 09:54:09',NULL),(280,3845,271,254,NULL,0,NULL,'2024-11-05 09:54:49','2024-11-05 09:54:49',NULL),(281,3845,272,255,NULL,0,NULL,'2024-11-05 09:55:55','2024-11-05 09:55:55',NULL),(282,3845,273,256,NULL,0,NULL,'2024-11-05 09:56:49','2024-11-05 09:56:49',NULL),(283,3845,274,257,NULL,0,NULL,'2024-11-06 10:19:24','2024-11-06 10:19:24',NULL),(284,3845,275,258,NULL,0,NULL,'2024-11-06 16:39:47','2024-11-06 16:39:47',NULL),(285,3845,276,259,NULL,0,NULL,'2024-11-06 16:45:07','2024-11-06 16:45:07',NULL),(286,3845,277,260,NULL,0,NULL,'2024-11-07 12:30:21','2024-11-15 11:51:40','2024-11-15 11:51:40'),(287,3845,278,261,NULL,0,NULL,'2024-11-08 13:19:59','2024-11-08 13:19:59',NULL),(288,3845,279,262,NULL,0,NULL,'2024-11-11 12:24:06','2024-11-11 12:24:06',NULL),(289,3845,280,263,NULL,0,NULL,'2024-11-11 12:25:57','2024-11-11 12:25:57',NULL),(290,3845,281,264,NULL,0,NULL,'2024-11-12 11:10:34','2024-11-12 11:10:34',NULL),(291,3845,282,265,NULL,0,NULL,'2024-11-12 11:16:52','2024-11-12 11:16:52',NULL),(292,3845,283,266,NULL,0,NULL,'2024-11-15 11:43:49','2024-11-15 11:43:49',NULL),(293,3845,284,260,NULL,0,NULL,'2024-11-15 11:51:40','2024-11-15 11:51:40',NULL),(294,3845,285,267,NULL,0,NULL,'2024-11-15 12:29:51','2024-11-15 12:29:51',NULL),(295,3845,286,268,NULL,0,NULL,'2024-11-20 13:06:23','2024-11-20 13:06:23',NULL),(296,3845,287,269,NULL,0,NULL,'2024-11-20 13:06:52','2024-11-20 13:06:52',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (297,3845,288,270,NULL,0,NULL,'2024-11-21 11:39:35','2024-11-21 11:39:35',NULL),(298,3845,289,271,NULL,0,NULL,'2024-11-21 13:02:21','2024-11-21 13:02:21',NULL),(299,3845,290,272,NULL,0,NULL,'2024-11-21 15:57:13','2024-11-21 15:57:13',NULL),(300,3845,291,273,NULL,0,NULL,'2024-11-26 10:27:38','2024-11-26 10:27:38',NULL),(301,3845,292,274,NULL,0,NULL,'2024-11-28 11:59:56','2024-11-28 11:59:56',NULL),(302,3845,293,275,NULL,0,NULL,'2024-11-29 14:34:34','2024-11-29 14:34:34',NULL),(303,3845,294,276,NULL,0,NULL,'2024-11-29 15:39:18','2024-11-29 15:39:18',NULL),(304,3845,295,277,NULL,0,NULL,'2024-11-29 15:40:00','2024-11-29 15:40:00',NULL),(305,3845,296,278,NULL,0,NULL,'2024-12-02 12:55:19','2024-12-02 12:55:19',NULL),(306,3845,297,279,NULL,0,NULL,'2024-12-03 11:47:24','2024-12-03 11:47:24',NULL),(307,3845,298,280,NULL,0,NULL,'2024-12-03 12:08:00','2024-12-03 12:08:00',NULL),(308,3845,299,281,NULL,0,NULL,'2024-12-03 12:09:27','2024-12-03 12:09:27',NULL),(309,3845,300,282,NULL,0,NULL,'2024-12-03 12:10:03','2024-12-03 12:10:03',NULL),(310,3845,301,283,NULL,0,NULL,'2024-12-03 12:10:52','2024-12-03 12:10:52',NULL),(311,3845,302,284,NULL,0,NULL,'2024-12-03 12:11:54','2024-12-03 12:11:54',NULL),(312,3845,303,285,NULL,0,NULL,'2024-12-03 12:35:47','2024-12-03 12:35:47',NULL),(313,3845,304,286,NULL,0,NULL,'2024-12-03 12:56:43','2024-12-03 12:56:43',NULL),(314,3845,305,287,NULL,0,NULL,'2024-12-03 13:45:15','2024-12-03 13:45:15',NULL),(315,3845,306,288,NULL,0,NULL,'2024-12-03 13:45:56','2024-12-03 13:45:56',NULL),(316,3845,307,289,NULL,0,NULL,'2024-12-03 13:46:25','2024-12-03 13:46:25',NULL),(317,3845,308,290,NULL,0,NULL,'2024-12-03 13:47:20','2024-12-03 13:47:20',NULL),(318,3845,309,291,NULL,0,NULL,'2024-12-03 13:47:52','2024-12-03 13:47:52',NULL),(319,3845,310,292,NULL,0,NULL,'2024-12-03 14:00:00','2024-12-03 14:00:00',NULL),(320,3845,311,293,NULL,0,NULL,'2024-12-03 15:22:29','2024-12-03 15:22:29',NULL),(321,3845,312,294,NULL,0,NULL,'2024-12-03 17:41:16','2024-12-03 17:41:16',NULL),(322,3845,313,295,NULL,0,NULL,'2024-12-05 17:32:24','2024-12-05 17:32:24',NULL),(323,3845,314,296,NULL,0,NULL,'2024-12-06 15:19:28','2024-12-06 15:19:28',NULL),(324,3845,315,297,NULL,0,NULL,'2024-12-11 11:41:40','2024-12-11 11:41:40',NULL),(325,3845,316,298,NULL,0,NULL,'2024-12-11 12:46:38','2024-12-11 12:46:38',NULL),(326,3845,317,299,NULL,0,NULL,'2024-12-11 17:06:49','2024-12-11 17:06:49',NULL),(327,3845,318,300,NULL,0,NULL,'2024-12-13 12:38:35','2024-12-13 12:38:35',NULL),(328,3845,319,301,NULL,0,NULL,'2024-12-17 17:07:10','2024-12-17 17:07:10',NULL),(329,3845,320,302,NULL,0,NULL,'2024-12-17 17:09:59','2024-12-17 17:09:59',NULL),(330,3845,321,303,NULL,0,NULL,'2024-12-18 11:35:22','2024-12-18 11:35:22',NULL),(331,3845,322,304,NULL,0,NULL,'2024-12-23 13:02:49','2024-12-23 13:02:49',NULL),(332,3845,323,305,NULL,0,NULL,'2024-12-24 11:02:30','2024-12-24 11:02:30',NULL),(333,3845,324,306,NULL,0,NULL,'2024-12-24 11:58:57','2024-12-24 11:58:57',NULL),(334,3845,325,307,NULL,0,NULL,'2024-12-24 12:39:09','2024-12-24 12:39:09',NULL),(335,3845,326,308,NULL,0,NULL,'2024-12-26 16:46:03','2024-12-26 16:46:03',NULL),(336,3845,327,309,NULL,0,NULL,'2024-12-26 16:46:51','2024-12-26 16:46:51',NULL),(337,3845,328,310,NULL,0,NULL,'2024-12-26 16:47:41','2024-12-26 16:47:41',NULL),(338,3845,329,311,NULL,0,NULL,'2024-12-30 11:23:01','2024-12-30 11:23:01',NULL),(339,3845,330,312,NULL,0,NULL,'2024-12-30 12:51:15','2024-12-30 12:51:15',NULL),(340,3845,331,313,NULL,0,NULL,'2024-12-30 12:51:57','2024-12-30 12:51:57',NULL),(341,3845,332,314,NULL,0,NULL,'2024-12-30 12:54:56','2024-12-30 12:54:56',NULL),(342,3845,333,315,NULL,0,NULL,'2024-12-30 12:56:50','2024-12-30 12:56:50',NULL),(343,3845,334,316,NULL,0,NULL,'2024-12-30 16:35:55','2024-12-30 16:35:55',NULL),(344,3845,335,317,NULL,0,NULL,'2024-12-30 16:38:07','2024-12-30 16:38:07',NULL),(345,3845,336,318,NULL,0,NULL,'2024-12-30 16:39:28','2024-12-30 16:39:28',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (346,3845,337,319,NULL,0,NULL,'2024-12-30 16:40:37','2024-12-30 16:40:37',NULL),(347,3845,338,320,NULL,0,NULL,'2024-12-30 16:42:24','2024-12-30 16:42:24',NULL),(348,3845,339,321,NULL,0,NULL,'2024-12-31 13:14:54','2024-12-31 13:14:54',NULL),(349,3845,340,322,NULL,0,NULL,'2025-01-02 13:08:25','2025-01-02 13:08:25',NULL),(350,3845,341,323,NULL,0,NULL,'2025-01-03 12:55:01','2025-01-03 12:55:01',NULL),(351,3845,342,324,NULL,0,NULL,'2025-01-03 12:59:10','2025-01-03 12:59:10',NULL),(352,3845,343,325,NULL,0,NULL,'2025-01-03 13:03:03','2025-01-03 13:03:03',NULL),(353,3845,344,326,NULL,0,NULL,'2025-01-06 10:22:58','2025-01-06 10:22:58',NULL),(354,3845,345,327,NULL,0,NULL,'2025-01-08 14:39:44','2025-01-08 14:39:44',NULL),(355,3845,346,328,NULL,0,NULL,'2025-01-08 15:15:30','2025-01-08 15:15:30',NULL),(356,3845,347,329,NULL,0,NULL,'2025-01-10 14:47:17','2025-01-10 14:47:17',NULL),(357,3845,348,330,NULL,0,NULL,'2025-01-13 16:38:00','2025-01-13 16:38:00',NULL),(358,3845,349,331,NULL,0,NULL,'2025-01-14 12:29:50','2025-01-14 12:29:50',NULL),(359,3845,350,332,NULL,0,NULL,'2025-01-14 12:43:42','2025-01-14 12:43:42',NULL),(360,3845,351,333,NULL,0,NULL,'2025-01-14 15:53:27','2025-01-14 15:53:27',NULL),(361,3845,352,334,NULL,0,NULL,'2025-01-14 16:03:52','2025-01-14 16:11:01','2025-01-14 16:11:01'),(362,3845,353,334,NULL,0,NULL,'2025-01-14 16:11:01','2025-01-14 16:11:01',NULL),(363,3845,354,335,NULL,0,NULL,'2025-01-16 16:56:31','2025-01-16 16:56:31',NULL),(364,3845,355,336,NULL,0,NULL,'2025-01-17 10:10:01','2025-01-17 10:10:01',NULL),(365,3845,356,337,NULL,0,NULL,'2025-01-17 10:16:18','2025-01-17 10:16:18',NULL),(366,3845,357,338,NULL,0,NULL,'2025-01-17 10:57:57','2025-01-17 10:57:57',NULL),(367,3845,358,339,NULL,0,NULL,'2025-01-17 15:52:43','2025-01-17 15:52:43',NULL),(368,3845,359,340,NULL,0,NULL,'2025-01-21 11:35:56','2025-01-21 11:35:56',NULL),(369,3845,360,341,NULL,0,NULL,'2025-01-21 12:00:49','2025-01-21 12:00:49',NULL),(370,3845,361,342,NULL,0,NULL,'2025-01-24 12:31:58','2025-01-24 12:31:58',NULL),(371,3845,362,343,NULL,0,NULL,'2025-01-29 11:14:03','2025-01-29 11:14:03',NULL),(372,3845,363,344,NULL,0,NULL,'2025-02-04 15:10:41','2025-02-04 15:10:41',NULL),(373,3845,364,345,NULL,0,NULL,'2025-02-04 15:12:24','2025-02-04 15:12:24',NULL),(374,3845,365,346,NULL,0,NULL,'2025-02-04 15:13:33','2025-02-04 15:13:33',NULL),(375,3845,366,347,NULL,0,NULL,'2025-02-04 15:31:13','2025-02-04 15:31:13',NULL),(376,3845,367,348,NULL,0,NULL,'2025-02-04 15:33:48','2025-02-04 15:33:48',NULL),(377,3845,368,349,NULL,0,NULL,'2025-02-04 15:34:32','2025-02-04 15:34:32',NULL),(378,3845,369,350,NULL,0,NULL,'2025-02-04 15:35:12','2025-02-04 15:35:12',NULL),(379,3845,370,351,NULL,0,NULL,'2025-02-04 15:35:56','2025-02-04 15:35:56',NULL),(380,3845,371,352,NULL,0,NULL,'2025-02-04 15:36:45','2025-02-04 15:36:45',NULL),(381,3845,372,353,NULL,0,NULL,'2025-02-04 15:37:27','2025-02-04 15:37:27',NULL),(382,3845,373,354,NULL,0,NULL,'2025-02-04 15:38:40','2025-02-04 15:38:40',NULL),(383,3845,374,355,NULL,0,NULL,'2025-02-04 15:39:22','2025-02-04 15:39:22',NULL),(384,3845,375,356,NULL,0,NULL,'2025-02-04 15:40:40','2025-02-04 15:40:40',NULL),(385,3845,376,357,NULL,0,NULL,'2025-02-04 17:31:08','2025-02-04 17:31:08',NULL),(386,3845,377,358,NULL,0,NULL,'2025-02-05 12:26:21','2025-02-05 12:26:21',NULL),(387,3845,378,359,NULL,0,NULL,'2025-02-05 12:26:57','2025-02-05 12:26:57',NULL),(388,3845,379,360,NULL,0,NULL,'2025-02-05 12:27:33','2025-02-05 12:27:33',NULL),(389,3845,380,361,NULL,0,NULL,'2025-02-05 15:19:22','2025-02-05 15:19:22',NULL),(390,3845,381,362,NULL,0,NULL,'2025-02-05 15:20:23','2025-02-05 15:20:23',NULL),(391,3845,382,363,NULL,0,NULL,'2025-02-05 15:20:59','2025-02-05 15:20:59',NULL),(392,3845,383,364,NULL,0,NULL,'2025-02-05 15:21:49','2025-02-05 15:21:49',NULL),(393,3845,384,365,NULL,0,NULL,'2025-02-05 15:22:33','2025-02-05 15:22:33',NULL),(394,3845,385,366,NULL,0,NULL,'2025-02-05 15:23:18','2025-02-05 15:23:18',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (395,3845,386,367,NULL,0,NULL,'2025-02-05 15:23:57','2025-02-05 15:23:57',NULL),(396,3845,387,368,NULL,0,NULL,'2025-02-05 15:24:37','2025-02-05 15:24:37',NULL),(397,3845,388,369,NULL,0,NULL,'2025-02-05 15:25:54','2025-02-05 15:25:54',NULL),(398,3845,389,370,NULL,0,NULL,'2025-02-05 15:26:32','2025-02-05 15:26:32',NULL),(399,3845,390,371,NULL,0,NULL,'2025-02-05 15:27:08','2025-02-05 15:27:08',NULL),(400,3845,391,372,NULL,0,NULL,'2025-02-06 14:30:24','2025-02-06 14:30:24',NULL),(401,3845,392,373,NULL,0,NULL,'2025-02-07 16:13:24','2025-02-07 16:13:24',NULL),(402,3845,393,374,NULL,0,NULL,'2025-02-14 13:32:16','2025-03-13 15:25:49','2025-03-13 15:25:49'),(403,3845,394,375,NULL,0,NULL,'2025-02-14 15:43:35','2025-02-14 15:43:35',NULL),(404,3845,395,376,NULL,0,NULL,'2025-02-14 16:03:42','2025-02-14 16:03:42',NULL),(405,3845,396,377,NULL,0,NULL,'2025-02-14 16:07:42','2025-02-14 16:07:42',NULL),(406,3845,397,378,NULL,0,NULL,'2025-02-14 16:09:02','2025-02-14 16:09:02',NULL),(407,3845,398,379,NULL,0,NULL,'2025-02-14 16:12:10','2025-02-14 16:27:41','2025-02-14 16:27:41'),(408,3845,399,380,NULL,0,NULL,'2025-02-14 16:23:30','2025-02-14 16:27:51','2025-02-14 16:27:51'),(409,3845,400,381,NULL,0,NULL,'2025-02-14 16:25:53','2025-02-14 16:25:53',NULL),(410,3845,401,379,NULL,0,NULL,'2025-02-14 16:27:41','2025-02-14 16:27:41',NULL),(411,3845,402,380,NULL,0,NULL,'2025-02-14 16:27:51','2025-02-14 16:27:51',NULL),(412,3845,403,382,NULL,0,NULL,'2025-02-19 15:00:06','2025-02-19 15:00:06',NULL),(413,3845,404,383,NULL,0,NULL,'2025-03-11 10:27:51','2025-03-11 10:27:51',NULL),(414,3845,405,384,NULL,0,NULL,'2025-03-11 10:29:09','2025-03-11 10:29:09',NULL),(415,3845,406,385,NULL,0,NULL,'2025-03-11 10:33:01','2025-03-11 10:33:01',NULL),(416,3845,407,386,NULL,0,NULL,'2025-03-11 10:56:06','2025-03-11 10:56:06',NULL),(417,3845,408,387,NULL,0,NULL,'2025-03-11 10:57:23','2025-03-11 10:57:23',NULL),(418,3845,409,388,NULL,0,NULL,'2025-03-11 10:58:06','2025-03-11 10:58:06',NULL),(419,3845,410,389,NULL,0,NULL,'2025-03-11 10:59:01','2025-03-11 10:59:01',NULL),(420,3845,411,390,NULL,0,NULL,'2025-03-11 11:03:17','2025-03-11 11:03:17',NULL),(421,3845,412,391,NULL,0,NULL,'2025-03-11 11:09:35','2025-03-11 11:09:35',NULL),(422,3845,413,392,NULL,0,NULL,'2025-03-11 11:11:29','2025-03-11 11:11:29',NULL),(423,3845,414,393,NULL,0,NULL,'2025-03-11 11:12:39','2025-03-11 11:12:39',NULL),(424,3845,415,394,NULL,0,NULL,'2025-03-11 16:09:38','2025-03-11 16:09:38',NULL),(425,3845,416,395,NULL,0,NULL,'2025-03-11 17:11:15','2025-03-11 17:11:15',NULL),(426,3845,417,396,NULL,0,NULL,'2025-03-12 11:51:53','2025-03-12 11:51:53',NULL),(427,3845,418,397,NULL,0,NULL,'2025-03-13 14:49:36','2025-03-13 14:49:36',NULL),(428,3845,419,374,NULL,0,NULL,'2025-03-13 15:25:49','2025-03-13 15:25:49',NULL),(429,3845,420,398,NULL,0,NULL,'2025-03-13 15:31:42','2025-03-13 15:34:35','2025-03-13 15:34:35'),(430,3845,421,398,NULL,0,NULL,'2025-03-13 15:34:35','2025-03-13 15:34:35',NULL),(431,3845,422,399,NULL,0,NULL,'2025-03-14 15:20:10','2025-03-14 15:20:10',NULL),(432,3845,423,400,NULL,0,NULL,'2025-03-17 16:58:14','2025-03-17 16:58:14',NULL),(433,3845,424,401,NULL,0,NULL,'2025-03-17 17:00:47','2025-03-17 17:00:47',NULL),(434,3845,425,402,NULL,0,NULL,'2025-03-18 14:51:50','2025-03-18 14:51:50',NULL),(435,3845,426,403,NULL,0,NULL,'2025-03-19 12:46:37','2025-03-19 12:46:37',NULL),(436,3845,427,404,NULL,0,NULL,'2025-03-20 14:24:38','2025-03-20 14:24:38',NULL),(437,3845,428,405,NULL,0,NULL,'2025-03-21 11:20:15','2025-03-21 11:20:15',NULL),(438,3845,429,406,NULL,0,NULL,'2025-03-21 14:48:46','2025-03-21 14:48:46',NULL),(439,3845,430,407,NULL,0,NULL,'2025-03-25 16:20:50','2025-03-25 16:20:50',NULL),(440,3845,431,408,NULL,0,NULL,'2025-03-25 16:22:17','2025-03-25 16:22:17',NULL),(441,3845,432,409,NULL,0,NULL,'2025-03-31 15:22:36','2025-03-31 15:22:36',NULL),(442,3845,433,410,NULL,0,NULL,'2025-03-31 15:23:21','2025-03-31 15:23:21',NULL),(443,3845,434,411,NULL,0,NULL,'2025-03-31 15:24:03','2025-03-31 15:24:03',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (444,3845,435,412,NULL,0,NULL,'2025-03-31 15:24:43','2025-03-31 15:24:43',NULL),(445,3845,436,413,NULL,0,NULL,'2025-04-04 11:37:32','2025-04-04 11:37:32',NULL),(446,3845,437,414,NULL,0,NULL,'2025-04-04 11:50:27','2025-04-04 11:50:27',NULL),(447,3845,438,415,NULL,0,NULL,'2025-04-04 11:52:45','2025-04-04 11:52:45',NULL),(448,3845,439,416,NULL,0,NULL,'2025-04-04 11:54:34','2025-04-04 11:54:34',NULL),(449,3845,440,417,NULL,0,NULL,'2025-04-07 12:06:54','2025-04-07 12:06:54',NULL),(450,3845,441,418,NULL,0,NULL,'2025-04-08 13:02:16','2025-04-08 13:02:16',NULL),(451,3845,442,419,NULL,0,NULL,'2025-04-08 13:04:16','2025-04-08 13:04:16',NULL),(452,3845,443,420,NULL,0,NULL,'2025-04-08 13:05:31','2025-04-08 13:05:31',NULL),(453,3845,444,421,NULL,0,NULL,'2025-04-08 13:06:17','2025-04-08 13:06:17',NULL),(454,3845,445,422,NULL,0,NULL,'2025-04-08 14:11:31','2025-04-08 14:11:31',NULL),(455,3845,446,423,NULL,0,NULL,'2025-04-09 10:26:24','2025-04-09 10:26:24',NULL),(456,3845,447,424,NULL,0,NULL,'2025-04-09 11:39:28','2025-04-09 11:39:28',NULL),(457,3845,448,425,NULL,0,NULL,'2025-04-09 11:57:16','2025-04-09 11:57:16',NULL),(458,3845,449,426,NULL,0,NULL,'2025-04-10 10:25:29','2025-04-10 10:25:29',NULL),(459,3845,450,427,NULL,0,NULL,'2025-04-10 11:44:50','2025-04-10 11:44:50',NULL),(460,3845,451,428,NULL,0,NULL,'2025-04-11 11:14:05','2025-04-11 11:14:05',NULL),(461,3845,452,429,NULL,0,NULL,'2025-04-11 11:18:26','2025-04-11 11:18:26',NULL),(462,3845,453,430,NULL,0,NULL,'2025-04-14 17:13:17','2025-04-14 17:13:17',NULL),(463,3845,454,431,NULL,0,NULL,'2025-04-14 17:14:18','2025-04-14 17:14:18',NULL),(464,3845,455,432,NULL,0,NULL,'2025-04-14 17:14:58','2025-04-14 17:14:58',NULL),(465,3845,456,433,NULL,0,NULL,'2025-04-14 17:15:34','2025-04-14 17:15:34',NULL),(466,3845,457,434,NULL,0,NULL,'2025-04-14 17:16:36','2025-04-14 17:16:36',NULL),(467,3845,458,435,NULL,0,NULL,'2025-04-14 17:17:23','2025-04-14 17:17:23',NULL),(468,3845,459,436,NULL,0,NULL,'2025-04-15 16:17:07','2025-04-15 16:17:07',NULL),(469,3845,460,437,NULL,0,NULL,'2025-04-15 17:05:14','2025-04-15 17:05:14',NULL),(470,3845,461,438,NULL,0,NULL,'2025-04-15 17:34:51','2025-04-15 17:34:51',NULL),(471,3845,462,439,NULL,0,NULL,'2025-04-16 10:58:18','2025-04-16 10:58:18',NULL),(472,3845,463,440,NULL,0,NULL,'2025-04-16 11:16:05','2025-04-16 11:16:05',NULL),(473,3845,464,441,NULL,0,NULL,'2025-04-16 13:00:10','2025-04-16 13:00:10',NULL),(474,3845,465,442,NULL,0,NULL,'2025-04-16 13:02:43','2025-04-16 13:02:43',NULL),(475,3845,466,443,NULL,0,NULL,'2025-04-22 10:18:59','2025-04-22 10:18:59',NULL),(476,3845,467,444,NULL,0,NULL,'2025-04-22 10:50:31','2025-04-22 10:50:31',NULL),(477,3845,468,445,NULL,0,NULL,'2025-04-24 10:57:12','2025-04-24 10:57:12',NULL),(478,3845,469,446,NULL,0,NULL,'2025-04-24 10:58:18','2025-04-24 10:58:18',NULL),(479,3845,470,447,NULL,0,NULL,'2025-04-24 11:07:57','2025-04-24 11:07:57',NULL),(480,3845,471,448,NULL,0,NULL,'2025-04-24 11:09:56','2025-04-24 11:09:56',NULL),(481,3845,472,449,NULL,0,NULL,'2025-04-24 11:10:39','2025-04-24 11:10:39',NULL),(482,3845,473,450,NULL,0,NULL,'2025-04-24 11:30:31','2025-04-24 11:30:31',NULL),(483,3845,474,451,NULL,0,NULL,'2025-04-24 11:34:30','2025-04-24 11:34:30',NULL),(484,3845,475,452,NULL,0,NULL,'2025-04-24 11:36:25','2025-04-24 11:36:25',NULL),(485,3845,476,453,NULL,0,NULL,'2025-04-28 16:26:09','2025-04-28 16:26:09',NULL),(486,3845,477,454,NULL,0,NULL,'2025-04-28 16:27:14','2025-04-28 16:27:14',NULL),(487,3845,478,455,NULL,0,NULL,'2025-04-28 16:29:43','2025-04-28 16:29:43',NULL),(488,3845,479,456,NULL,0,NULL,'2025-04-29 15:23:03','2025-04-29 15:23:03',NULL),(489,3845,480,457,NULL,0,NULL,'2025-04-29 15:27:55','2025-04-29 15:27:55',NULL),(490,3845,481,458,NULL,0,NULL,'2025-04-30 14:53:11','2025-04-30 14:53:11',NULL),(491,3845,482,459,NULL,0,NULL,'2025-05-02 12:30:35','2025-05-02 12:30:35',NULL),(492,3845,483,460,NULL,0,NULL,'2025-05-06 12:49:16','2025-05-06 12:49:16',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (493,3845,484,461,NULL,0,NULL,'2025-05-06 12:50:26','2025-05-06 12:50:26',NULL),(494,3845,485,462,NULL,0,NULL,'2025-05-06 12:51:20','2025-05-06 12:51:20',NULL),(495,3845,486,463,NULL,0,NULL,'2025-05-08 15:11:03','2025-05-08 15:11:03',NULL),(496,3845,487,464,NULL,0,NULL,'2025-05-08 15:14:20','2025-05-08 15:14:20',NULL),(497,3845,488,465,NULL,0,NULL,'2025-05-08 15:15:53','2025-05-08 15:15:53',NULL),(498,3845,489,466,NULL,0,NULL,'2025-05-08 15:17:23','2025-05-08 15:17:23',NULL),(499,3845,490,467,NULL,0,NULL,'2025-05-09 15:03:02','2025-05-09 15:03:02',NULL),(500,3845,491,468,NULL,0,NULL,'2025-05-12 15:18:50','2025-05-12 15:18:50',NULL),(501,3845,492,469,NULL,0,NULL,'2025-05-12 15:23:32','2025-05-12 15:23:32',NULL),(502,3845,493,470,NULL,0,NULL,'2025-05-12 16:56:14','2025-05-12 16:56:14',NULL),(503,3845,494,471,NULL,0,NULL,'2025-05-12 16:56:49','2025-05-12 16:56:49',NULL),(504,3845,495,472,NULL,0,NULL,'2025-05-12 16:57:26','2025-05-12 16:57:26',NULL),(505,3845,496,473,NULL,0,NULL,'2025-05-15 15:25:37','2025-05-15 15:25:37',NULL),(506,3845,497,474,NULL,0,NULL,'2025-05-19 12:43:53','2025-05-19 12:43:53',NULL),(507,3845,498,475,NULL,0,NULL,'2025-05-19 12:45:05','2025-05-19 12:45:05',NULL),(508,3845,499,476,NULL,0,NULL,'2025-05-19 12:46:14','2025-05-19 12:46:14',NULL),(509,3845,500,477,NULL,0,NULL,'2025-05-21 15:07:59','2025-05-21 15:07:59',NULL),(510,3845,501,478,NULL,0,NULL,'2025-05-23 11:05:41','2025-05-23 11:05:41',NULL),(511,3845,502,479,NULL,0,NULL,'2025-05-23 14:56:38','2025-05-23 14:56:38',NULL),(512,3845,503,480,NULL,0,NULL,'2025-05-27 15:48:03','2025-05-27 15:48:03',NULL),(513,3845,504,481,NULL,0,NULL,'2025-05-27 16:01:03','2025-05-27 16:01:03',NULL),(514,3845,505,482,NULL,0,NULL,'2025-05-27 16:02:12','2025-05-27 16:02:12',NULL),(515,3845,506,483,NULL,0,NULL,'2025-05-27 16:02:55','2025-05-27 16:02:55',NULL),(516,3845,507,484,NULL,0,NULL,'2025-05-27 16:03:38','2025-05-27 16:03:38',NULL),(517,3845,508,485,NULL,0,NULL,'2025-05-29 12:57:05','2025-05-29 12:57:05',NULL),(518,3845,509,486,NULL,0,NULL,'2025-05-29 12:57:52','2025-05-29 12:57:52',NULL),(519,3845,510,487,NULL,0,NULL,'2025-05-29 12:58:38','2025-05-29 12:58:38',NULL),(520,3845,511,488,NULL,0,NULL,'2025-05-29 13:01:07','2025-05-29 13:01:07',NULL),(521,3845,512,489,NULL,0,NULL,'2025-05-29 14:32:42','2025-05-29 14:32:42',NULL),(522,3845,513,490,NULL,0,NULL,'2025-05-30 13:12:17','2025-05-30 13:12:17',NULL),(523,3845,514,491,NULL,0,NULL,'2025-06-02 16:36:07','2025-06-02 16:36:07',NULL),(524,3845,515,492,NULL,0,NULL,'2025-06-04 13:34:54','2025-06-04 13:34:54',NULL),(525,3845,516,493,NULL,0,NULL,'2025-06-04 14:32:54','2025-06-04 14:32:54',NULL),(526,3845,517,494,NULL,0,NULL,'2025-06-04 14:36:12','2025-06-04 14:36:12',NULL),(527,3845,518,495,NULL,0,NULL,'2025-06-04 14:37:50','2025-06-04 14:37:50',NULL),(528,3845,519,496,NULL,0,NULL,'2025-06-04 14:50:21','2025-06-04 14:50:21',NULL),(529,3845,520,497,NULL,0,NULL,'2025-06-05 13:30:05','2025-06-05 13:30:05',NULL),(530,3845,521,498,NULL,0,NULL,'2025-06-05 13:31:34','2025-07-18 12:45:55','2025-07-18 12:45:55'),(531,3845,522,499,NULL,0,NULL,'2025-06-09 13:15:50','2025-06-09 13:15:50',NULL),(532,3845,523,500,NULL,0,NULL,'2025-06-10 17:18:01','2025-06-10 17:18:01',NULL),(533,3845,524,501,NULL,0,NULL,'2025-06-11 11:18:18','2025-06-11 11:18:18',NULL),(534,3845,525,502,NULL,0,NULL,'2025-06-11 17:16:25','2025-06-11 17:16:25',NULL),(535,3845,526,503,NULL,0,NULL,'2025-06-12 13:01:15','2025-06-12 13:01:15',NULL),(536,3845,527,504,NULL,0,NULL,'2025-06-12 16:03:00','2025-06-12 16:03:00',NULL),(537,3845,528,505,NULL,0,NULL,'2025-06-12 16:03:45','2025-06-12 16:03:45',NULL),(538,3845,529,506,NULL,0,NULL,'2025-06-17 13:07:55','2025-06-17 13:07:55',NULL),(539,3845,530,507,NULL,0,NULL,'2025-06-17 15:09:23','2025-06-17 15:09:23',NULL),(540,3845,531,508,NULL,0,NULL,'2025-06-17 15:11:08','2025-06-17 15:11:08',NULL),(541,3845,532,509,NULL,0,NULL,'2025-06-23 12:33:07','2025-06-23 12:33:07',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (542,3845,533,510,NULL,0,NULL,'2025-06-23 13:37:07','2025-06-23 13:37:07',NULL),(543,3845,534,511,NULL,0,NULL,'2025-06-23 16:54:18','2025-06-23 16:54:18',NULL),(544,3845,535,512,NULL,0,NULL,'2025-06-23 17:08:50','2025-06-23 17:08:50',NULL),(545,3845,536,513,NULL,0,NULL,'2025-06-25 11:50:16','2025-06-25 11:50:16',NULL),(546,3845,537,514,NULL,0,NULL,'2025-06-25 11:54:49','2025-06-25 11:54:49',NULL),(547,3845,538,515,NULL,0,NULL,'2025-06-25 11:55:44','2025-06-25 11:55:44',NULL),(548,3845,539,516,NULL,0,NULL,'2025-06-25 11:57:15','2025-06-25 11:57:15',NULL),(549,3845,540,517,NULL,0,NULL,'2025-06-25 15:50:03','2025-06-25 15:50:03',NULL),(550,3845,541,518,NULL,0,NULL,'2025-06-26 10:58:41','2025-06-26 10:58:41',NULL),(551,3845,542,519,NULL,0,NULL,'2025-06-26 13:22:20','2025-06-26 13:22:20',NULL),(552,3845,543,520,NULL,0,NULL,'2025-06-26 13:22:59','2025-06-26 13:22:59',NULL),(553,3845,544,521,NULL,0,NULL,'2025-06-26 13:25:29','2025-06-26 13:25:29',NULL),(554,3845,545,522,NULL,0,NULL,'2025-06-27 15:10:40','2025-06-27 15:10:40',NULL),(555,3845,546,523,NULL,0,NULL,'2025-06-30 12:40:40','2025-06-30 12:40:40',NULL),(556,3845,547,524,NULL,0,NULL,'2025-06-30 12:43:50','2025-06-30 12:43:50',NULL),(557,3845,548,525,NULL,0,NULL,'2025-06-30 12:53:27','2025-06-30 12:53:27',NULL),(558,3845,549,526,NULL,0,NULL,'2025-06-30 12:56:22','2025-06-30 12:56:22',NULL),(559,3845,550,527,NULL,0,NULL,'2025-07-03 12:11:41','2025-07-03 12:11:41',NULL),(560,3845,551,528,NULL,0,NULL,'2025-07-03 12:13:48','2025-07-03 12:13:48',NULL),(561,3845,552,529,NULL,0,NULL,'2025-07-03 12:14:43','2025-07-03 12:14:43',NULL),(562,3845,553,530,NULL,0,NULL,'2025-07-03 12:15:54','2025-07-03 12:15:54',NULL),(563,3845,554,531,NULL,0,NULL,'2025-07-03 12:16:56','2025-07-03 12:16:56',NULL),(564,3845,555,532,NULL,0,NULL,'2025-07-03 12:27:49','2025-07-03 12:27:49',NULL),(565,3845,556,533,NULL,0,NULL,'2025-07-03 12:28:24','2025-07-03 12:28:24',NULL),(566,3845,557,534,NULL,0,NULL,'2025-07-03 12:42:22','2025-07-03 12:42:22',NULL),(567,3845,558,535,NULL,0,NULL,'2025-07-04 14:39:26','2025-07-04 14:39:26',NULL),(568,3845,559,536,NULL,0,NULL,'2025-07-14 14:54:19','2025-07-14 14:54:19',NULL),(569,3845,560,537,NULL,0,NULL,'2025-07-15 11:23:09','2025-07-15 11:23:09',NULL),(570,3845,561,538,NULL,0,NULL,'2025-07-15 11:43:16','2025-07-15 11:43:16',NULL),(571,3845,562,539,NULL,0,NULL,'2025-07-15 16:25:35','2025-07-15 16:25:35',NULL),(572,3845,563,540,NULL,0,NULL,'2025-07-16 16:46:19','2025-07-16 16:46:19',NULL),(573,3845,564,541,NULL,0,NULL,'2025-07-17 15:39:17','2025-07-17 15:40:05','2025-07-17 15:40:05'),(574,3845,565,541,NULL,0,NULL,'2025-07-17 15:40:05','2025-07-17 15:41:29','2025-07-17 15:41:29'),(575,3845,566,541,NULL,0,NULL,'2025-07-17 15:41:29','2025-07-17 15:41:29',NULL),(576,3845,567,542,NULL,0,NULL,'2025-07-17 15:43:29','2025-07-17 15:43:29',NULL),(577,3845,568,543,NULL,0,NULL,'2025-07-17 15:53:57','2025-07-17 15:53:57',NULL),(578,3845,569,498,NULL,0,NULL,'2025-07-18 12:45:55','2025-07-18 12:45:55',NULL),(579,3845,570,544,NULL,0,NULL,'2025-07-22 10:53:11','2025-07-22 10:53:11',NULL),(580,3845,571,545,NULL,0,NULL,'2025-07-22 10:56:27','2025-07-22 10:56:27',NULL),(581,3845,572,546,NULL,0,NULL,'2025-07-22 15:37:57','2025-07-22 15:37:57',NULL),(582,3845,573,547,NULL,0,NULL,'2025-07-24 12:50:52','2025-07-24 12:50:52',NULL),(583,3845,574,548,NULL,0,NULL,'2025-07-24 12:52:36','2025-07-24 12:52:36',NULL),(584,3845,575,549,NULL,0,NULL,'2025-07-24 12:53:34','2025-07-24 12:53:34',NULL),(585,3845,576,550,NULL,0,NULL,'2025-07-30 17:36:44','2025-07-30 17:36:44',NULL),(586,3845,577,551,NULL,0,NULL,'2025-07-31 11:00:23','2025-07-31 11:00:23',NULL),(587,3845,578,552,NULL,0,NULL,'2025-08-01 13:16:00','2025-08-01 13:16:00',NULL),(588,3845,579,553,NULL,0,NULL,'2025-08-01 16:14:41','2025-08-01 16:14:41',NULL),(589,3845,580,554,NULL,0,NULL,'2025-08-01 16:15:38','2025-08-01 16:15:38',NULL),(590,3845,581,555,NULL,0,NULL,'2025-08-01 16:16:14','2025-08-01 16:16:14',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (591,3845,582,556,NULL,0,NULL,'2025-08-01 16:23:24','2025-08-01 16:23:24',NULL),(592,3845,583,557,NULL,0,NULL,'2025-08-01 16:26:00','2025-08-01 16:26:00',NULL),(593,3845,584,558,NULL,0,NULL,'2025-08-01 17:34:13','2025-08-01 17:34:13',NULL),(594,3845,585,559,NULL,0,NULL,'2025-08-07 12:30:54','2025-08-07 12:30:54',NULL),(595,3845,586,560,NULL,0,NULL,'2025-08-12 10:08:22','2025-08-12 10:08:22',NULL),(596,3845,587,561,NULL,0,NULL,'2025-08-13 10:39:21','2025-08-13 10:39:21',NULL),(597,3845,588,562,NULL,0,NULL,'2025-08-13 15:36:23','2025-08-13 15:36:23',NULL),(598,3845,589,563,NULL,0,NULL,'2025-08-14 13:15:37','2025-08-14 13:15:37',NULL),(599,3845,590,564,NULL,0,NULL,'2025-08-14 13:28:53','2025-08-14 13:28:53',NULL),(600,3845,591,565,NULL,0,NULL,'2025-08-14 14:11:30','2025-08-14 14:11:30',NULL),(601,3845,592,566,NULL,0,NULL,'2025-08-15 13:32:23','2025-08-15 13:32:23',NULL),(602,3845,593,567,NULL,0,NULL,'2025-08-15 13:39:01','2025-08-15 13:39:01',NULL),(603,3845,594,568,NULL,0,NULL,'2025-08-18 11:38:23','2025-08-18 11:38:23',NULL),(604,3845,595,569,NULL,0,NULL,'2025-08-25 13:02:26','2025-08-25 13:02:26',NULL),(605,3845,596,570,NULL,0,NULL,'2025-08-26 14:28:00','2025-08-26 14:28:00',NULL),(606,3845,597,571,NULL,0,NULL,'2025-08-26 14:29:49','2025-08-26 14:29:49',NULL),(607,3845,598,572,NULL,0,NULL,'2025-08-26 17:08:54','2025-08-26 17:08:54',NULL),(608,3845,599,573,NULL,0,NULL,'2025-08-27 10:35:44','2025-08-27 10:35:44',NULL),(609,3845,600,574,NULL,0,NULL,'2025-08-27 10:39:13','2025-08-27 10:39:13',NULL),(610,3845,601,575,NULL,0,NULL,'2025-08-28 15:12:50','2025-08-28 15:12:50',NULL),(611,3845,602,576,NULL,0,NULL,'2025-08-28 15:15:12','2025-08-28 15:15:12',NULL),(612,3845,603,577,NULL,0,NULL,'2025-08-28 15:17:05','2025-08-28 15:17:05',NULL),(613,3845,604,578,NULL,0,NULL,'2025-09-02 16:38:21','2025-09-02 16:38:21',NULL),(614,3845,605,579,NULL,0,NULL,'2025-09-05 13:48:57','2025-09-05 13:48:57',NULL),(615,3845,606,580,NULL,0,NULL,'2025-09-08 13:30:40','2025-09-08 13:30:40',NULL),(616,3845,607,581,NULL,0,NULL,'2025-09-09 13:22:54','2025-09-09 13:22:54',NULL),(617,3845,608,582,NULL,0,NULL,'2025-09-09 17:12:40','2025-09-09 17:12:40',NULL),(618,3845,609,583,NULL,0,NULL,'2025-09-10 14:59:02','2025-09-10 14:59:02',NULL),(619,3845,610,584,NULL,0,NULL,'2025-09-10 15:02:29','2025-09-10 15:02:29',NULL),(620,3845,611,585,NULL,0,NULL,'2025-09-10 15:06:19','2025-09-10 15:06:19',NULL),(621,3845,612,586,NULL,0,NULL,'2025-09-11 12:18:18','2025-09-11 12:18:18',NULL),(622,3845,613,587,NULL,0,NULL,'2025-09-11 12:29:47','2025-09-11 12:29:47',NULL),(623,3845,614,588,NULL,0,NULL,'2025-09-12 11:07:55','2025-09-12 11:07:55',NULL),(624,3845,615,589,NULL,0,NULL,'2025-09-16 15:46:37','2025-09-16 15:46:37',NULL),(625,3845,616,590,NULL,0,NULL,'2025-09-16 15:49:35','2025-09-16 15:49:35',NULL),(626,3845,617,591,NULL,0,NULL,'2025-09-23 11:04:43','2025-09-23 11:04:43',NULL),(627,3845,618,592,NULL,0,NULL,'2025-09-23 15:14:35','2025-09-23 15:14:35',NULL),(628,3845,619,593,NULL,0,NULL,'2025-09-23 15:21:31','2025-09-23 15:21:31',NULL),(629,3845,620,594,NULL,0,NULL,'2025-09-23 15:27:49','2025-09-23 15:27:49',NULL),(630,3845,621,595,NULL,0,NULL,'2025-09-24 16:31:38','2025-09-24 16:31:38',NULL),(631,3845,622,596,NULL,0,NULL,'2025-09-25 11:07:09','2025-09-25 11:07:09',NULL),(632,3845,623,597,NULL,0,NULL,'2025-09-26 14:45:20','2025-09-26 14:45:20',NULL),(633,3845,624,598,NULL,0,NULL,'2025-09-26 14:46:35','2025-09-26 14:46:35',NULL),(634,3845,625,599,NULL,0,NULL,'2025-09-26 14:47:41','2025-09-26 14:47:41',NULL),(635,3845,626,600,NULL,0,NULL,'2025-09-26 15:47:01','2025-09-26 15:47:01',NULL),(636,3845,627,601,NULL,0,NULL,'2025-09-29 14:56:45','2025-09-29 14:56:45',NULL),(637,3845,628,602,NULL,0,NULL,'2025-09-30 12:18:43','2025-09-30 12:18:43',NULL),(638,3845,629,603,NULL,0,NULL,'2025-10-02 16:46:04','2025-10-02 16:46:04',NULL),(639,3845,630,604,NULL,0,NULL,'2025-10-02 16:46:41','2025-10-02 16:46:41',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (640,3845,631,605,NULL,0,NULL,'2025-10-02 16:47:25','2025-10-02 16:47:25',NULL),(641,3845,632,606,NULL,0,NULL,'2025-10-02 16:48:08','2025-10-02 16:48:08',NULL),(642,3845,633,607,NULL,0,NULL,'2025-10-02 16:48:49','2025-10-02 16:48:49',NULL),(643,3845,634,608,NULL,0,NULL,'2025-10-06 12:46:42','2025-10-06 12:46:42',NULL),(644,3845,635,609,NULL,0,NULL,'2025-10-06 12:47:53','2025-10-06 12:47:53',NULL),(645,3845,636,610,NULL,0,NULL,'2025-10-06 13:40:21','2025-10-06 13:40:21',NULL),(646,3845,637,611,NULL,0,NULL,'2025-10-06 14:47:39','2025-10-06 14:47:39',NULL),(647,3845,638,612,NULL,0,NULL,'2025-10-06 14:48:27','2025-10-06 14:48:27',NULL),(648,3845,639,613,NULL,0,NULL,'2025-10-06 14:50:00','2025-10-06 14:50:00',NULL),(649,3845,640,614,NULL,0,NULL,'2025-10-07 14:46:52','2025-10-07 14:46:52',NULL),(650,3845,641,615,NULL,0,NULL,'2025-10-07 16:06:26','2025-10-07 16:06:26',NULL),(651,3845,642,616,NULL,0,NULL,'2025-10-07 16:09:03','2025-10-07 16:09:03',NULL),(652,3845,643,617,NULL,0,NULL,'2025-10-07 16:22:19','2025-10-07 16:22:19',NULL),(653,3845,644,618,NULL,0,NULL,'2025-10-07 16:23:08','2025-10-07 16:23:08',NULL),(654,3845,645,619,NULL,0,NULL,'2025-10-08 13:41:50','2025-10-08 13:41:50',NULL),(655,3845,646,620,NULL,0,NULL,'2025-10-13 14:51:10','2025-10-13 14:51:10',NULL),(656,3845,647,621,NULL,0,NULL,'2025-10-15 14:41:21','2025-10-15 14:41:21',NULL),(657,3845,648,622,NULL,0,NULL,'2025-10-15 14:42:12','2025-10-15 14:42:12',NULL),(658,3845,649,623,NULL,0,NULL,'2025-10-15 14:42:57','2025-10-15 14:42:57',NULL),(659,3845,650,624,NULL,0,NULL,'2025-10-15 14:44:04','2025-10-15 14:44:04',NULL),(660,3845,651,625,NULL,0,NULL,'2025-10-15 14:45:22','2025-10-15 14:45:22',NULL),(661,3845,652,626,NULL,0,NULL,'2025-10-22 14:45:26','2025-10-22 14:45:26',NULL),(662,3845,653,627,NULL,0,NULL,'2025-10-22 14:48:46','2025-10-22 14:48:46',NULL),(663,3845,654,628,NULL,0,NULL,'2025-10-22 14:49:59','2025-10-22 14:49:59',NULL),(664,3845,655,629,NULL,0,NULL,'2025-10-22 14:50:47','2025-10-22 14:50:47',NULL),(665,3845,656,630,NULL,0,NULL,'2025-10-29 14:34:22','2025-10-29 14:34:22',NULL),(666,3845,657,631,NULL,0,NULL,'2025-10-30 15:02:17','2025-10-30 15:02:17',NULL),(667,3845,658,632,NULL,0,NULL,'2025-10-30 15:07:19','2025-10-30 15:07:19',NULL),(668,3845,659,633,NULL,0,NULL,'2025-11-06 11:59:12','2025-11-06 11:59:12',NULL),(669,3845,660,634,NULL,0,NULL,'2025-11-06 12:27:21','2025-11-06 12:27:21',NULL),(670,3845,661,635,NULL,0,NULL,'2025-11-06 12:29:17','2025-11-06 12:29:17',NULL),(671,3845,662,636,NULL,0,NULL,'2025-11-06 12:33:25','2025-11-06 12:33:25',NULL),(672,3845,663,637,NULL,0,NULL,'2025-11-06 12:45:27','2025-11-06 12:45:27',NULL),(673,3845,664,638,NULL,0,NULL,'2025-11-07 11:59:58','2025-11-07 11:59:58',NULL),(674,3845,665,639,NULL,0,NULL,'2025-11-10 13:02:27','2025-11-10 13:02:27',NULL),(675,3845,666,640,NULL,0,NULL,'2025-11-11 15:13:59','2025-11-11 15:13:59',NULL),(676,3845,667,641,NULL,0,NULL,'2025-11-11 15:14:44','2025-11-11 15:14:44',NULL),(677,3845,668,642,NULL,0,NULL,'2025-11-12 13:17:50','2025-11-12 13:17:50',NULL),(678,3845,669,643,NULL,0,NULL,'2025-11-12 17:12:26','2025-11-12 17:12:26',NULL),(679,3845,670,644,NULL,0,NULL,'2025-11-12 17:15:56','2025-11-12 17:15:56',NULL),(680,3845,671,645,NULL,0,NULL,'2025-11-12 17:17:51','2025-11-12 17:17:51',NULL),(681,3845,672,646,NULL,0,NULL,'2025-11-13 14:40:57','2025-11-13 14:40:57',NULL),(682,3845,673,647,NULL,0,NULL,'2025-11-13 16:07:50','2025-11-13 16:07:50',NULL),(683,3845,674,648,NULL,0,NULL,'2025-11-13 16:08:45','2025-11-13 16:08:45',NULL),(684,3845,675,649,NULL,0,NULL,'2025-11-13 16:09:24','2025-11-13 16:09:24',NULL),(685,3845,676,650,NULL,0,NULL,'2025-11-14 13:14:12','2025-11-14 13:14:12',NULL);

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

CREATE TABLE `cta_cte_tesoreria` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `bind_apibank_movement_id` bigint(20) unsigned DEFAULT NULL COMMENT 'FK soft a bind_apibank_movements (movimiento que originó este registro)',
  `bind_apibank_transfer_id` bigint(20) unsigned DEFAULT NULL COMMENT 'FK soft a bind_apibank_transfers (transferencia que originó este registro)',
  `bind_sync_status` enum('pending','synced','error') COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Estado de sincronización: pending=pendiente, synced=sincronizado, error=error al sincronizar',
  `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,
  `moneda_id` int(10) unsigned NOT NULL DEFAULT '1',
  `cotizacion` decimal(9,2) NOT NULL DEFAULT '1.00',
  `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,
  `ticket_id` bigint(20) unsigned 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`),
  KEY `cta_cte_tesoreria_moneda_id_foreign` (`moneda_id`),
  KEY `cta_cte_tesoreria_ticket_id_foreign` (`ticket_id`),
  KEY `idx_cct_bind_apibank_mov` (`bind_apibank_movement_id`),
  KEY `idx_cct_bind_apibank_trf` (`bind_apibank_transfer_id`),
  KEY `idx_cct_bind_sync_status` (`bind_sync_status`),
  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_moneda_id_foreign` FOREIGN KEY (`moneda_id`) REFERENCES `monedas` (`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`),
  CONSTRAINT `cta_cte_tesoreria_ticket_id_foreign` FOREIGN KEY (`ticket_id`) REFERENCES `tickets` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `cta_cte_tesoreria` VALUES (1,NULL,NULL,NULL,3845,40721,NULL,NULL,758,3824,'2023-01-17',19012.11,1,1.00,'Saldo Inicial',NULL,'2023-01-17 16:50:53','2023-01-17 16:50:53',NULL,NULL),(2,NULL,NULL,NULL,3845,40721,5,NULL,13,3824,'2023-01-02',76230.00,1,1.00,NULL,NULL,'2023-01-17 17:03:42','2023-01-17 17:17:14','2023-01-17 17:17:14',NULL),(3,NULL,NULL,NULL,3845,40721,6,NULL,13,3824,'2023-01-09',185391.36,1,1.00,NULL,NULL,'2023-01-17 17:10:00','2023-01-17 17:10:00',NULL,NULL),(4,NULL,NULL,NULL,3845,40721,7,NULL,13,3824,'2023-01-02',76230.00,1,1.00,NULL,NULL,'2023-01-17 17:20:06','2023-01-17 17:20:06',NULL,NULL),(5,NULL,NULL,NULL,3845,40721,NULL,NULL,759,3841,'2024-03-11',0.00,1,1.00,'Saldo Inicial',NULL,'2024-03-11 11:00:23','2024-03-11 11:00:23',NULL,NULL),(6,NULL,NULL,NULL,3845,40721,64,NULL,57,3840,'2024-02-16',851840.00,1,832.00,NULL,NULL,'2024-03-11 11:05:05','2024-03-11 11:05:05',NULL,NULL),(7,NULL,NULL,NULL,3845,40721,68,NULL,57,3841,'2024-03-07',851840.00,1,832.00,NULL,NULL,'2024-03-11 11:29:58','2024-03-11 11:29:58',NULL,NULL),(8,NULL,NULL,NULL,3845,40721,69,NULL,57,3841,'2024-03-07',1028500.00,1,832.00,NULL,NULL,'2024-03-11 11:36:17','2024-03-11 11:36:17',NULL,NULL),(9,NULL,NULL,NULL,3845,40721,70,NULL,57,3841,'2024-03-07',1149500.05,1,832.00,NULL,NULL,'2024-03-11 11:39:17','2024-03-11 11:39:17',NULL,NULL),(10,NULL,NULL,NULL,3845,40721,84,NULL,57,3843,'2024-05-15',1149500.00,1,869.00,NULL,NULL,'2024-05-15 15:55:29','2024-05-15 15:55:29',NULL,NULL),(11,NULL,NULL,NULL,3845,40721,86,NULL,57,3843,'2024-05-08',1210000.00,1,869.00,NULL,NULL,'2024-05-15 16:47:26','2024-05-15 16:47:26',NULL,NULL),(12,NULL,NULL,NULL,3845,40721,NULL,NULL,760,3844,'2024-06-04',0.00,1,1.00,'Saldo Inicial',NULL,'2024-06-04 10:23:51','2024-06-04 10:23:51',NULL,NULL);

--
-- Table structure for table `cta_cte_tesoreria_banco_cheq`
--

CREATE TABLE `cta_cte_tesoreria_banco_cheq` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `cta_cte_tesoreria_cuenta_id` int(10) unsigned NOT NULL,
  `cta_cte_tesoreria_banco_id` int(10) unsigned NOT NULL,
  `chequera_tipo_id` int(10) unsigned NOT NULL,
  `serie` text COLLATE utf8mb4_unicode_ci,
  `numero_cheque` int(11) 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 `cta_cte_tesoreria_banco_cheq_person_id_foreign` (`person_id`),
  KEY `cta_cte_tesoreria_banco_cheq_cta_cte_tesoreria_cuenta_id_foreign` (`cta_cte_tesoreria_cuenta_id`),
  KEY `cta_cte_tesoreria_banco_cheq_cta_cte_tesoreria_banco_id_foreign` (`cta_cte_tesoreria_banco_id`),
  KEY `cta_cte_tesoreria_banco_cheq_chequera_tipo_id_foreign` (`chequera_tipo_id`),
  CONSTRAINT `cta_cte_tesoreria_banco_cheq_chequera_tipo_id_foreign` FOREIGN KEY (`chequera_tipo_id`) REFERENCES `chequeras_tipos` (`id`),
  CONSTRAINT `cta_cte_tesoreria_banco_cheq_cta_cte_tesoreria_banco_id_foreign` FOREIGN KEY (`cta_cte_tesoreria_banco_id`) REFERENCES `cta_cte_tesoreria_bancos` (`id`),
  CONSTRAINT `cta_cte_tesoreria_banco_cheq_cta_cte_tesoreria_cuenta_id_foreign` FOREIGN KEY (`cta_cte_tesoreria_cuenta_id`) REFERENCES `cta_cte_tesoreria_cuentas` (`id`),
  CONSTRAINT `cta_cte_tesoreria_banco_cheq_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cta_cte_tesoreria_banco_cheq`
--

INSERT INTO `cta_cte_tesoreria_banco_cheq` VALUES (1,3845,40721,759,1,2,'1',9,1,'2024-03-11 11:00:23','2024-05-15 16:47:25',NULL);

--
-- Table structure for table `cta_cte_tesoreria_banco_claves`
--

CREATE TABLE `cta_cte_tesoreria_banco_claves` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `cta_cte_tesoreria_cuenta_id` int(10) unsigned NOT NULL,
  `cta_cte_tesoreria_banco_id` int(10) unsigned NOT NULL,
  `descripcion_name` text COLLATE utf8mb4_unicode_ci,
  `descripcion` 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 `cta_cte_tesoreria_banco_claves_person_id_foreign` (`person_id`),
  KEY `ct_cuenta_id` (`cta_cte_tesoreria_cuenta_id`),
  KEY `ct_banco_id` (`cta_cte_tesoreria_banco_id`),
  CONSTRAINT `ct_banco_id` FOREIGN KEY (`cta_cte_tesoreria_banco_id`) REFERENCES `cta_cte_tesoreria_bancos` (`id`),
  CONSTRAINT `ct_cuenta_id` FOREIGN KEY (`cta_cte_tesoreria_cuenta_id`) REFERENCES `cta_cte_tesoreria_cuentas` (`id`),
  CONSTRAINT `cta_cte_tesoreria_banco_claves_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cta_cte_tesoreria_banco_claves`
--


--
-- Table structure for table `cta_cte_tesoreria_banco_comentarios`
--

CREATE TABLE `cta_cte_tesoreria_banco_comentarios` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `cta_cte_tesoreria_cuenta_id` int(10) unsigned NOT NULL,
  `cta_cte_tesoreria_banco_id` int(10) unsigned NOT NULL,
  `fecha` datetime NOT NULL,
  `descripcion` longtext 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 `cta_cte_tesoreria_banco_comentarios_person_id_foreign` (`person_id`),
  KEY `ct_cuentas_id` (`cta_cte_tesoreria_cuenta_id`),
  KEY `ct_bancos_id` (`cta_cte_tesoreria_banco_id`),
  CONSTRAINT `ct_bancos_id` FOREIGN KEY (`cta_cte_tesoreria_banco_id`) REFERENCES `cta_cte_tesoreria_bancos` (`id`),
  CONSTRAINT `ct_cuentas_id` FOREIGN KEY (`cta_cte_tesoreria_cuenta_id`) REFERENCES `cta_cte_tesoreria_cuentas` (`id`),
  CONSTRAINT `cta_cte_tesoreria_banco_comentarios_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cta_cte_tesoreria_banco_comentarios`
--


--
-- Table structure for table `cta_cte_tesoreria_banco_estados`
--

CREATE TABLE `cta_cte_tesoreria_banco_estados` (
  `id` int(10) 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,
  `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 `cta_cte_tesoreria_banco_estados`
--

INSERT INTO `cta_cte_tesoreria_banco_estados` VALUES (1,NULL,'Habilitado',0,NULL,NULL,NULL),(2,NULL,'En Proceso',0,NULL,NULL,NULL),(3,NULL,'Bloqueado',0,NULL,NULL,NULL),(4,NULL,'Reconocimiento',0,NULL,NULL,NULL),(5,NULL,'Inhabilitado',0,NULL,NULL,NULL);

--
-- Table structure for table `cta_cte_tesoreria_bancos`
--

CREATE TABLE `cta_cte_tesoreria_bancos` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `cta_cte_tesoreria_cuenta_id` int(10) unsigned NOT NULL,
  `ctacte_banco_id` int(10) unsigned NOT NULL,
  `persona_empresa` int(11) NOT NULL DEFAULT '1',
  `zone_id` int(10) unsigned NOT NULL,
  `cuenta_contable_id` int(10) unsigned NOT NULL,
  `cuenta_contable_id_diferido` int(10) unsigned DEFAULT NULL,
  `cuenta_contable_id_pend_acred` int(10) unsigned DEFAULT NULL,
  `numero_cuenta` text COLLATE utf8mb4_unicode_ci,
  `cbu` text COLLATE utf8mb4_unicode_ci,
  `alias` text COLLATE utf8mb4_unicode_ci,
  `cta_cte_tesoreria_banco_estado_id` int(10) unsigned DEFAULT NULL,
  `person_id_relationed` int(10) unsigned 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 `cta_cte_tesoreria_bancos_person_id_foreign` (`person_id`),
  KEY `cta_cte_tesoreria_bancos_cta_cte_tesoreria_cuenta_id_foreign` (`cta_cte_tesoreria_cuenta_id`),
  KEY `cta_cte_tesoreria_bancos_ctacte_banco_id_foreign` (`ctacte_banco_id`),
  KEY `cta_cte_tesoreria_bancos_zone_id_foreign` (`zone_id`),
  KEY `cta_cte_tesoreria_bancos_cuenta_contable_id_foreign` (`cuenta_contable_id`),
  KEY `cta_cte_tesoreria_bancos_cuenta_contable_id_diferido_foreign` (`cuenta_contable_id_diferido`),
  KEY `cta_cte_tesoreria_bancos_cuenta_contable_id_pend_acred_foreign` (`cuenta_contable_id_pend_acred`),
  KEY `cta_cte_tesoreria_bancos_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `ct_banco_estado_id` (`cta_cte_tesoreria_banco_estado_id`),
  CONSTRAINT `ct_banco_estado_id` FOREIGN KEY (`cta_cte_tesoreria_banco_estado_id`) REFERENCES `cta_cte_tesoreria_banco_estados` (`id`),
  CONSTRAINT `cta_cte_tesoreria_bancos_cta_cte_tesoreria_cuenta_id_foreign` FOREIGN KEY (`cta_cte_tesoreria_cuenta_id`) REFERENCES `cta_cte_tesoreria_cuentas` (`id`),
  CONSTRAINT `cta_cte_tesoreria_bancos_ctacte_banco_id_foreign` FOREIGN KEY (`ctacte_banco_id`) REFERENCES `ctacte_bancos` (`id`),
  CONSTRAINT `cta_cte_tesoreria_bancos_cuenta_contable_id_diferido_foreign` FOREIGN KEY (`cuenta_contable_id_diferido`) REFERENCES `conta_plan_cuenta` (`id`),
  CONSTRAINT `cta_cte_tesoreria_bancos_cuenta_contable_id_foreign` FOREIGN KEY (`cuenta_contable_id`) REFERENCES `conta_plan_cuenta` (`id`),
  CONSTRAINT `cta_cte_tesoreria_bancos_cuenta_contable_id_pend_acred_foreign` FOREIGN KEY (`cuenta_contable_id_pend_acred`) REFERENCES `conta_plan_cuenta` (`id`),
  CONSTRAINT `cta_cte_tesoreria_bancos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `cta_cte_tesoreria_bancos_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`),
  CONSTRAINT `cta_cte_tesoreria_bancos_zone_id_foreign` FOREIGN KEY (`zone_id`) REFERENCES `zones` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cta_cte_tesoreria_bancos`
--

INSERT INTO `cta_cte_tesoreria_bancos` VALUES (1,3845,40721,759,8,2,1,482,482,482,'914 0004487009','0200914201000004487097','DOCTOR.COMITE.DUQUE',NULL,NULL,1,'2024-03-11 11:00:23','2024-03-11 11:00:23',NULL);

--
-- Table structure for table `cta_cte_tesoreria_cuenta_tipos`
--

CREATE TABLE `cta_cte_tesoreria_cuenta_tipos` (
  `id` int(10) 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=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cta_cte_tesoreria_cuenta_tipos`
--

INSERT INTO `cta_cte_tesoreria_cuenta_tipos` VALUES (1,NULL,'CAJA',1,NULL,NULL,NULL),(2,NULL,'BANCOS',1,NULL,NULL,NULL),(3,NULL,'CHEQUES',1,NULL,NULL,NULL),(4,NULL,'RETENCIONES EFECTUADAS',1,NULL,'2024-05-26 20:55:05',NULL),(5,NULL,'PERCEPCIONES EFECTUADAS',1,NULL,'2024-05-26 20:55:05',NULL),(6,NULL,'RESULTADO NEGATIVO',1,NULL,NULL,NULL),(7,NULL,'RESULTADO POSITIVO',1,NULL,NULL,NULL),(8,NULL,'MOVIMIENTO',1,NULL,NULL,NULL),(9,NULL,'RETENCIONES SUFRIDAS',1,NULL,NULL,NULL),(10,NULL,'PERCEPCIONES SUFRIDAS',1,NULL,NULL,NULL);

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

CREATE TABLE `cta_cte_tesoreria_cuentas` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `bind_apibank_enabled` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Tiene Bind APIBank habilitado?',
  `bind_account_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'ID de cuenta en Bind APIBank (obtenido al configurar)',
  `user_id` int(10) unsigned DEFAULT NULL,
  `is_no_fiscal` tinyint(1) DEFAULT '0',
  `moneda_id` int(10) unsigned NOT NULL DEFAULT '1',
  `plan_cuenta_id` int(10) unsigned NOT NULL,
  `person_id` int(10) unsigned DEFAULT NULL,
  `cta_cte_tesoreria_cuenta_tipo_id` int(10) unsigned NOT NULL DEFAULT '8',
  `retention_type_id` int(10) unsigned DEFAULT NULL,
  `nombre` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `cuit` text COLLATE utf8mb4_unicode_ci,
  `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',
  `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 `cta_cte_tesoreria_cuentas_person_id_foreign` (`person_id`),
  KEY `cta_cte_tesoreria_cuentas_plan_cuenta_id_foreign` (`plan_cuenta_id`),
  KEY `cta_tes_tipo_id_foreign` (`cta_cte_tesoreria_cuenta_tipo_id`),
  KEY `cta_cte_tesoreria_cuentas_moneda_id_foreign` (`moneda_id`),
  KEY `cta_cte_tesoreria_cuentas_retention_type_id_foreign` (`retention_type_id`),
  KEY `idx_cctc_bind_apibank_enabled` (`bind_apibank_enabled`),
  KEY `idx_cctc_bind_account_id` (`bind_account_id`),
  CONSTRAINT `cta_cte_tesoreria_cuentas_moneda_id_foreign` FOREIGN KEY (`moneda_id`) REFERENCES `monedas` (`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`),
  CONSTRAINT `cta_cte_tesoreria_cuentas_retention_type_id_foreign` FOREIGN KEY (`retention_type_id`) REFERENCES `retention_types` (`id`),
  CONSTRAINT `cta_tes_tipo_id_foreign` FOREIGN KEY (`cta_cte_tesoreria_cuenta_tipo_id`) REFERENCES `cta_cte_tesoreria_cuenta_tipos` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=761 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

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

INSERT INTO `cta_cte_tesoreria_detail` VALUES (1,3845,1,758,40721,3824,1,19012.11,0,'2023-01-17','2023-01-17 16:50:53','2023-01-17 16:50:53',NULL),(7,3845,3,13,40721,3824,2,185391.36,0,'2023-01-09','2023-01-17 17:10:00','2023-01-17 17:10:00',NULL),(8,3845,3,758,40721,3824,1,155440.70,0,'2023-01-09','2023-01-17 17:10:00','2023-01-17 17:10:00',NULL),(9,3845,3,25,40721,3824,1,25732.32,0,'2023-01-09','2023-01-17 17:10:00','2023-01-17 17:10:00',NULL),(10,3845,3,23,40721,3824,1,2364.43,0,'2023-01-09','2023-01-17 17:10:00','2023-01-17 17:10:00',NULL),(11,3845,3,162,40721,3824,1,1853.91,0,'2023-01-09','2023-01-17 17:10:00','2023-01-17 17:10:00',NULL),(12,3845,4,13,40721,3824,2,76230.00,0,'2023-01-02','2023-01-17 17:20:06','2023-01-17 17:20:06',NULL),(13,3845,4,758,40721,3824,1,63057.46,0,'2023-01-02','2023-01-17 17:20:06','2023-01-17 17:20:06',NULL),(14,3845,4,25,40721,3824,1,10580.72,0,'2023-01-02','2023-01-17 17:20:06','2023-01-17 17:20:06',NULL),(15,3845,4,256,40721,3824,1,1829.52,0,'2023-01-02','2023-01-17 17:20:06','2023-01-17 17:20:06',NULL),(16,3845,4,162,40721,3824,1,762.30,0,'2023-01-02','2023-01-17 17:20:06','2023-01-17 17:20:06',NULL),(17,3845,5,759,40721,3841,1,0.00,0,'2024-03-11','2024-03-11 11:00:23','2024-03-11 11:00:23',NULL),(18,3845,6,57,40721,3840,1,851840.00,0,'2024-02-16','2024-03-11 11:05:05','2024-03-11 11:05:05',NULL),(19,3845,6,759,40721,3840,2,425920.00,0,'2024-02-16','2024-03-11 11:05:05','2024-03-11 11:05:05',NULL),(20,3845,6,759,40721,3840,2,425920.00,0,'2024-02-16','2024-03-11 11:05:05','2024-03-11 11:05:05',NULL),(21,3845,7,57,40721,3841,1,851840.00,0,'2024-03-07','2024-03-11 11:29:58','2024-03-11 11:29:58',NULL),(22,3845,7,23,40721,3841,2,12736.60,0,'2024-03-07','2024-03-11 11:29:58','2024-03-11 11:29:58',NULL),(23,3845,7,759,40721,3841,2,839103.40,0,'2024-03-07','2024-03-11 11:29:58','2024-03-11 11:29:58',NULL),(24,3845,8,57,40721,3841,1,1028500.00,0,'2024-03-07','2024-03-11 11:36:17','2024-03-11 11:36:17',NULL),(25,3845,8,23,40721,3841,2,15656.60,0,'2024-03-07','2024-03-11 11:36:17','2024-03-11 11:36:17',NULL),(26,3845,8,759,40721,3841,2,1012843.40,0,'2024-03-07','2024-03-11 11:36:17','2024-03-11 11:36:17',NULL),(27,3845,9,57,40721,3841,1,1149500.05,0,'2024-03-07','2024-03-11 11:39:17','2024-03-11 11:39:17',NULL),(28,3845,9,23,40721,3841,2,17656.60,0,'2024-03-07','2024-03-11 11:39:17','2024-03-11 11:39:17',NULL),(29,3845,9,759,40721,3841,2,1131843.45,0,'2024-03-07','2024-03-11 11:39:17','2024-03-11 11:39:17',NULL),(30,3845,10,57,40721,3843,1,1149500.00,0,'2024-05-15','2024-05-15 15:55:29','2024-05-15 15:55:29',NULL),(31,3845,10,23,40721,3843,2,17656.60,0,'2024-05-15','2024-05-15 15:55:29','2024-05-15 15:55:29',NULL),(32,3845,10,759,40721,3843,2,1131843.40,0,'2024-05-15','2024-05-15 15:55:29','2024-05-15 15:55:29',NULL),(33,3845,11,57,40721,3843,1,1210000.00,0,'2024-05-08','2024-05-15 16:47:26','2024-05-15 16:47:26',NULL),(34,3845,11,23,40721,3843,2,18656.60,0,'2024-05-08','2024-05-15 16:47:26','2024-05-15 16:47:26',NULL),(35,3845,11,759,40721,3843,2,596671.70,0,'2024-05-08','2024-05-15 16:47:26','2024-05-15 16:47:26',NULL),(36,3845,11,759,40721,3843,2,594671.70,0,'2024-05-08','2024-05-15 16:47:26','2024-05-15 16:47:26',NULL),(37,3845,12,760,40721,3844,1,0.00,0,'2024-06-04','2024-06-04 10:23:51','2024-06-04 10:23:51',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,
  `cuit` 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 AUTO_INCREMENT=82 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,'30-50000173-5',NULL,NULL,NULL),(2,NULL,'BANCO DE LA NACION ARGENTINA',11,'30-50001091-2',NULL,NULL,NULL),(3,NULL,'BANCO DE LA PROVINCIA DE BUENOS AIRES',14,'33-99924210-9',NULL,NULL,NULL),(4,NULL,'INDUSTRIAL AND COMMERCIAL BANK OF CHINA',15,'30-70944784-6',NULL,NULL,NULL),(5,NULL,'CITIBANK N.A.',16,'30-50000562-5',NULL,NULL,NULL),(6,NULL,'BBVA BANCO FRANCES S.A.',17,'30-50000319-3',NULL,NULL,NULL),(7,NULL,'THE BANK OF TOKYO-MITSUBISHI UFJ, LTD.',18,'30-50001183-8',NULL,NULL,NULL),(8,NULL,'BANCO DE LA PROVINCIA DE CORDOBA S.A.',20,'30-99922856-5',NULL,NULL,NULL),(9,NULL,'BANCO SUPERVIELLE S.A.',27,'33-50000517-9',NULL,NULL,NULL),(10,NULL,'BANCO DE LA CIUDAD DE BUENOS AIRES',29,'30-99903208-3',NULL,NULL,NULL),(11,NULL,'BANCO PATAGONIA S.A.',34,'30-50000661-3',NULL,NULL,NULL),(12,NULL,'BANCO HIPOTECARIO S.A.',44,'30-50001107-2',NULL,NULL,NULL),(13,NULL,'BANCO DE SAN JUAN S.A.',45,'30-50000944-2',NULL,NULL,NULL),(14,NULL,'BANCO DEL TUCUMAN S.A.',60,'30-51794820-5',NULL,NULL,NULL),(15,NULL,'BANCO MUNICIPAL DE ROSARIO',65,'33-99918181-9',NULL,NULL,NULL),(16,NULL,'BANCO SANTANDER RIO S.A.',72,'30-50000845-4',NULL,NULL,NULL),(17,NULL,'BANCO DEL CHUBUT S.A.',83,'30-50001299-0',NULL,NULL,NULL),(18,NULL,'BANCO DE SANTA CRUZ S.A.',86,'30-50009880-1',NULL,NULL,NULL),(19,NULL,'BANCO DE LA PAMPA SOCIEDAD DE ECONOMÍA M',93,'30-50001251-6',NULL,NULL,NULL),(20,NULL,'BANCO DE CORRIENTES S.A.',94,'30-50001060-2',NULL,NULL,NULL),(21,NULL,'BANCO PROVINCIA DEL NEUQUÉN SOCIEDAD ANÓ',97,'30-50001404-7',NULL,NULL,NULL),(22,NULL,'BANCO INTERFINANZAS S.A.',147,'30-52271441-7',NULL,NULL,NULL),(23,NULL,'HSBC BANK ARGENTINA S.A.',150,'33-53718600-9',NULL,NULL,NULL),(24,NULL,'JPMORGAN CHASE BANK, NATIONAL ASSOCIATIO',165,'30-58313794-3',NULL,NULL,NULL),(25,NULL,'BANCO CREDICOOP COOPERATIVO LIMITADO',191,'30-57142135-2',NULL,NULL,NULL),(26,NULL,'BANCO DE VALORES S.A.',198,'30-57612427-5',NULL,NULL,NULL),(27,NULL,'BANCO ROELA S.A.',247,'30-53561044-0',NULL,NULL,NULL),(28,NULL,'BANCO MARIVA S.A.',254,'30-51642044-4',NULL,NULL,NULL),(29,NULL,'BANCO ITAU ARGENTINA S.A.',259,'30-58018941-1',NULL,NULL,NULL),(30,NULL,'BANK OF AMERICA, NATIONAL ASSOCIATION',262,'30-50005055-8',NULL,NULL,NULL),(31,NULL,'BNP PARIBAS',266,'30-58472756-6',NULL,NULL,NULL),(32,NULL,'BANCO PROVINCIA DE TIERRA DEL FUEGO',268,'30-57565578-1',NULL,NULL,NULL),(33,NULL,'BANCO DE LA REPUBLICA ORIENTAL DEL URUGU',269,'30-58833784-3',NULL,NULL,NULL),(34,NULL,'BANCO SAENZ S.A.',277,'30-53467243-4',NULL,NULL,NULL),(35,NULL,'BANCO MERIDIAN S.A.',281,'30-53448749-1',NULL,NULL,NULL),(36,NULL,'BANCO MACRO S.A.',285,'30-50001008-4',NULL,NULL,NULL),(37,NULL,'BANCO COMAFI SOCIEDAD ANONIMA',299,'30-60473101-8',NULL,NULL,NULL),(38,NULL,'BANCO DE INVERSION Y COMERCIO EXTERIOR S',300,'30-65112908-3',NULL,NULL,NULL),(39,NULL,'BANCO PIANO S.A.',301,'30-56915176-3',NULL,NULL,NULL),(40,NULL,'BANCO JULIO SOCIEDAD ANONIMA',305,'30-65744121-6',NULL,NULL,NULL),(41,NULL,'BANCO RIOJA SOCIEDAD ANONIMA UNIPERSONAL',309,'30-67185933-9',NULL,NULL,NULL),(42,NULL,'BANCO DEL SOL S.A.',310,'30-67793756-0',NULL,NULL,NULL),(43,NULL,'NUEVO BANCO DEL CHACO S. A.',311,'30-67015779-9',NULL,NULL,NULL),(44,NULL,'BANCO VOII S.A.',312,'30-54674163-6',NULL,NULL,NULL),(45,NULL,'BANCO DE FORMOSA S.A.',315,'30-67137590-0',NULL,NULL,NULL),(46,NULL,'BANCO CMF S.A.',319,'30-57661429-9',NULL,NULL,NULL),(47,NULL,'BANCO DE SANTIAGO DEL ESTERO S.A.',321,'33-68666464-9',NULL,NULL,NULL),(48,NULL,'BANCO INDUSTRIAL S.A.',322,'30-68502995-9',NULL,NULL,NULL),(49,NULL,'NUEVO BANCO DE SANTA FE SOCIEDAD ANONIMA',330,'30-69243266-1',NULL,NULL,NULL),(50,NULL,'BANCO CETELEM ARGENTINA S.A.',331,'30-69730636-2',NULL,NULL,NULL),(51,NULL,'BANCO DE SERVICIOS FINANCIEROS S.A.',332,'30-69726589-5',NULL,NULL,NULL),(52,NULL,'BANCO BRADESCO ARGENTINA S.A.U.',336,'30-70125555-7',NULL,NULL,NULL),(53,NULL,'BANCO DE SERVICIOS Y TRANSACCIONES S.A.',338,'30-70496099-5',NULL,NULL,NULL);
INSERT INTO `ctacte_bancos` VALUES (54,NULL,'RCI BANQUE S.A.',339,'30-70710834-3',NULL,NULL,NULL),(55,NULL,'BACS BANCO DE CREDITO Y SECURITIZACION S',340,'30-70722741-5',NULL,NULL,NULL),(56,NULL,'BANCO MASVENTAS S.A.',341,'30-54061826-3',NULL,NULL,NULL),(57,NULL,'BANCO WANAP S.A.',384,'30-71565463-2',NULL,NULL,NULL),(58,NULL,'NUEVO BANCO DE ENTRE RÍOS S.A.',386,'33-70799551-9',NULL,NULL,NULL),(59,NULL,'BANCO COLUMBIA S.A.',389,'30-51763749-8',NULL,NULL,NULL),(60,NULL,'BANCO BICA S.A.',426,'30-71233123-9',NULL,NULL,NULL),(61,NULL,'BANCO COINAG S.A.',431,'30-71419596-0',NULL,NULL,NULL),(62,NULL,'BANCO DE COMERCIO S.A.',432,'30-54203363-7',NULL,NULL,NULL),(63,NULL,'FORD CREDIT COMPAÑIA FINANCIERA S.A.',44059,'30-51654454-2',NULL,NULL,NULL),(64,NULL,'COMPAÑIA FINANCIERA ARGENTINA S.A.',44077,'30-53800640-4',NULL,NULL,NULL),(65,NULL,'VOLKWAGEN FINANCIAL SERVICES CIA.FIN.S.A',44088,'30-68241957-8',NULL,NULL,NULL),(66,NULL,'CORDIAL COMPAÑÍA FINANCIERA S.A.',44090,'30-70181085-2',NULL,NULL,NULL),(67,NULL,'FCA COMPAÑIA FINANCIERA S.A.',44092,'30-69230488-4',NULL,NULL,NULL),(68,NULL,'GPAT COMPAÑIA FINANCIERA S.A.',44093,'30-67856482-2',NULL,NULL,NULL),(69,NULL,'MERCEDES-BENZ COMPAÑÍA FINANCIERA ARGENT',44094,'30-70700229-4',NULL,NULL,NULL),(70,NULL,'ROMBO COMPAÑÍA FINANCIERA S.A.',44095,'33-70712490-9',NULL,NULL,NULL),(71,NULL,'JOHN DEERE CREDIT COMPAÑÍA FINANCIERA S.',44096,'30-70702485-9',NULL,NULL,NULL),(72,NULL,'PSA FINANCE ARGENTINA COMPAÑÍA FINANCIER',44098,'30-70784736-7',NULL,NULL,NULL),(73,NULL,'TOYOTA COMPAÑÍA FINANCIERA DE ARGENTINA',44099,'30-70900042-6',NULL,NULL,NULL),(74,NULL,'FINANDINO COMPAÑIA FINANCIERA S.A.',44100,'30-71259240-7',NULL,NULL,NULL),(75,NULL,'MONTEMAR COMPAÑIA FINANCIERA S.A.',45056,'30-58138551-6',NULL,NULL,NULL),(76,NULL,'MULTIFINANZAS COMPAÑIA FINANCIERA S.A.',45072,'30-62828435-7',NULL,NULL,NULL),(77,NULL,'CAJA DE CREDITO \"CUENCA\" COOPERATIVA LIM',65203,'30-71622694-4',NULL,NULL,NULL),(78,NULL,'MERCADO PAGO',NULL,NULL,NULL,NULL,NULL),(79,NULL,'UALA',NULL,NULL,NULL,NULL,NULL),(80,NULL,'ICBC',NULL,NULL,NULL,NULL,NULL),(81,NULL,'BMA SAU',NULL,NULL,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 AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `ctacte_bancos_datos` VALUES (1,425,'GALICIA','33-71442109-9','MEDIOS & PLANNING SRL','CORRIENTE','0005550-5 199-6','0070199620000005550566',NULL,1,'2023-01-17 16:37:23','2023-01-17 16:37:23');

--
-- 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_tesoreria_detail_id` int(10) unsigned DEFAULT NULL,
  `cta_cte_cliente_id` int(10) unsigned DEFAULT NULL,
  `cta_cte_cliente_id2` int(10) unsigned DEFAULT NULL,
  `cta_cte_cliente_detail_id` 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,
  `cuit` text COLLATE utf8mb4_unicode_ci,
  `titular` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `abierto_cruzado` int(11) NOT NULL DEFAULT '1',
  `is_no_a_la_orden` tinyint(1) NOT NULL DEFAULT '0',
  `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`),
  KEY `ctacte_cheques_cta_cte_cliente_detail_id_foreign` (`cta_cte_cliente_detail_id`),
  KEY `ctacte_cheques_cta_cte_tesoreria_detail_id_foreign` (`cta_cte_tesoreria_detail_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_detail_id_foreign` FOREIGN KEY (`cta_cte_cliente_detail_id`) REFERENCES `cta_cte_cliente_details` (`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_cta_cte_tesoreria_detail_id_foreign` FOREIGN KEY (`cta_cte_tesoreria_detail_id`) REFERENCES `cta_cte_tesoreria_detail` (`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,
  `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 `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,'BORRADOR',1,NULL,'2023-08-06 23:53:05',NULL),(2,NULL,'TERMINADO',1,NULL,'2023-08-06 23:53:05',NULL),(3,NULL,'ELIMINADO',1,NULL,'2023-08-13 09:14:54',NULL),(4,NULL,'PAGADO',1,NULL,'2023-08-06 23:53:05','2023-08-06 23:53:05'),(5,NULL,'CONCILIADO',1,NULL,'2023-08-06 23:53:05','2023-08-06 23:53:05');

--
-- Table structure for table `dc_estados_decisiones`
--

CREATE TABLE `dc_estados_decisiones` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_tipo_id` bigint(20) unsigned NOT 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`),
  KEY `dc_estados_decisiones_dc_orden_tipo_id_foreign` (`dc_orden_tipo_id`),
  CONSTRAINT `dc_estados_decisiones_dc_orden_tipo_id_foreign` FOREIGN KEY (`dc_orden_tipo_id`) REFERENCES `dc_ordenes_tipos` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_estados_decisiones`
--

INSERT INTO `dc_estados_decisiones` VALUES (1,NULL,3,'Pendiente',1,NULL,NULL,NULL),(2,NULL,3,'Aprobado',1,NULL,NULL,NULL),(3,NULL,3,'Rechazado',1,NULL,NULL,NULL),(4,NULL,3,'Cancelado',1,NULL,NULL,NULL);

--
-- Table structure for table `dc_firmas`
--

CREATE TABLE `dc_firmas` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `descripcion` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `show_firmante_dc` tinyint(1) NOT NULL DEFAULT '0',
  `show_create_dc` tinyint(1) NOT NULL DEFAULT '0',
  `faltan_firmas` tinyint(1) NOT NULL DEFAULT '0',
  `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_firmas`
--

INSERT INTO `dc_firmas` VALUES (1,NULL,'NO',1,1,0,1,NULL,'2023-08-06 23:53:05',NULL),(2,NULL,'RECHAZADO',1,1,0,1,NULL,'2023-08-06 23:53:05',NULL),(3,NULL,'ACEPTADO',1,0,0,1,NULL,'2023-08-06 23:53:05',NULL),(4,NULL,'FALTAN FIRMAS',0,0,1,1,'2023-08-06 23:53:05','2023-08-06 23:53:05',NULL),(5,NULL,'EMITIDO',1,0,0,1,'2023-10-12 07:55:58','2023-10-12 07:55:58',NULL);

--
-- Table structure for table `dc_firmas_ordenes`
--

CREATE TABLE `dc_firmas_ordenes` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `user_id_que_firma` int(10) unsigned NOT NULL,
  `dc_firma_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 `dc_firmas_ordenes_person_id_foreign` (`person_id`),
  KEY `dc_firmas_ordenes_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_firmas_ordenes_dc_firma_id_foreign` (`dc_firma_id`),
  CONSTRAINT `dc_firmas_ordenes_dc_firma_id_foreign` FOREIGN KEY (`dc_firma_id`) REFERENCES `dc_firmas` (`id`),
  CONSTRAINT `dc_firmas_ordenes_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_firmas_ordenes_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_firmas_ordenes`
--


--
-- Table structure for table `dc_firmas_reglas`
--

CREATE TABLE `dc_firmas_reglas` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `importe` decimal(16,2) NOT NULL,
  `grupos_users_ids` 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 `dc_firmas_reglas_person_id_foreign` (`person_id`),
  KEY `dc_firmas_reglas_dc_orden_id_foreign` (`dc_orden_id`),
  CONSTRAINT `dc_firmas_reglas_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_firmas_reglas_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_firmas_reglas`
--


--
-- Table structure for table `dc_orden_de_pago`
--

CREATE TABLE `dc_orden_de_pago` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `fecha` datetime NOT NULL DEFAULT '2023-09-28 16:26:04',
  `dc_orden_id` bigint(20) unsigned NOT NULL DEFAULT '10',
  `person_id` int(10) unsigned NOT NULL,
  `person_id_relationed` int(10) unsigned NOT NULL,
  `request` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `dc_estado_id` bigint(20) unsigned NOT NULL DEFAULT '1',
  `dc_firma_id` bigint(20) unsigned 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 `dc_orden_de_pago_person_id_foreign` (`person_id`),
  KEY `dc_orden_de_pago_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `dc_orden_de_pago_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_orden_de_pago_dc_firma_id_foreign` (`dc_firma_id`),
  KEY `dc_orden_de_pago_dc_estado_id_foreign` (`dc_estado_id`),
  CONSTRAINT `dc_orden_de_pago_dc_estado_id_foreign` FOREIGN KEY (`dc_estado_id`) REFERENCES `dc_estados` (`id`),
  CONSTRAINT `dc_orden_de_pago_dc_firma_id_foreign` FOREIGN KEY (`dc_firma_id`) REFERENCES `dc_firmas` (`id`),
  CONSTRAINT `dc_orden_de_pago_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_orden_de_pago_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `dc_orden_de_pago_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_orden_de_pago`
--


--
-- Table structure for table `dc_orden_de_pago_cheques`
--

CREATE TABLE `dc_orden_de_pago_cheques` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_de_pago_id` bigint(20) unsigned NOT NULL,
  `ctacte_cheque_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 `dc_orden_de_pago_cheques_dc_orden_de_pago_id_foreign` (`dc_orden_de_pago_id`),
  KEY `dc_orden_de_pago_cheques_ctacte_cheque_id_foreign` (`ctacte_cheque_id`),
  CONSTRAINT `dc_orden_de_pago_cheques_ctacte_cheque_id_foreign` FOREIGN KEY (`ctacte_cheque_id`) REFERENCES `ctacte_cheques` (`id`),
  CONSTRAINT `dc_orden_de_pago_cheques_dc_orden_de_pago_id_foreign` FOREIGN KEY (`dc_orden_de_pago_id`) REFERENCES `dc_orden_de_pago` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_orden_de_pago_cheques`
--


--
-- Table structure for table `dc_orden_de_pago_receipts`
--

CREATE TABLE `dc_orden_de_pago_receipts` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_de_pago_id` bigint(20) unsigned NOT NULL,
  `receipt_id` int(10) unsigned DEFAULT NULL,
  `importe` 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_orden_de_pago_receipts_dc_orden_de_pago_id_foreign` (`dc_orden_de_pago_id`),
  KEY `dc_orden_de_pago_receipts_receipt_id_foreign` (`receipt_id`),
  CONSTRAINT `dc_orden_de_pago_receipts_dc_orden_de_pago_id_foreign` FOREIGN KEY (`dc_orden_de_pago_id`) REFERENCES `dc_orden_de_pago` (`id`),
  CONSTRAINT `dc_orden_de_pago_receipts_receipt_id_foreign` FOREIGN KEY (`receipt_id`) REFERENCES `receipts` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_orden_de_pago_receipts`
--


--
-- Table structure for table `dc_orden_files`
--

CREATE TABLE `dc_orden_files` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `file` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `original_name` 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 `dc_orden_files_dc_orden_id_foreign` (`dc_orden_id`),
  CONSTRAINT `dc_orden_files_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_orden_files`
--


--
-- 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 DEFAULT NULL,
  `titulo` text COLLATE utf8mb4_unicode_ci,
  `sucursal` int(11) NOT NULL DEFAULT '1',
  `numero` int(11) NOT NULL,
  `numero_text` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sector` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `solicitante` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `syj_empleado_id` int(10) unsigned DEFAULT NULL,
  `fecha` date NOT NULL,
  `fecha_entrega` date DEFAULT NULL,
  `fecha_asignacion` datetime DEFAULT NULL,
  `fecha_cumplido` datetime DEFAULT NULL,
  `condicion_venta_id` int(10) unsigned DEFAULT NULL,
  `is_pago_adelantado` tinyint(1) DEFAULT NULL,
  `is_garantia` tinyint(1) NOT NULL DEFAULT '0',
  `forma_de_entrega_id` int(10) unsigned DEFAULT NULL,
  `plazo_de_pago_id` int(10) unsigned DEFAULT NULL,
  `cantidades` decimal(16,2) NOT NULL,
  `moneda_id` int(10) unsigned NOT NULL DEFAULT '1',
  `cotizacion` decimal(16,2) NOT NULL DEFAULT '1.00',
  `neto` decimal(16,2) NOT NULL,
  `iva` decimal(16,2) NOT NULL,
  `total` decimal(16,2) NOT NULL,
  `facturada` decimal(16,2) NOT NULL DEFAULT '0.00',
  `is_pagada` tinyint(1) NOT NULL,
  `garantia` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `mant_oferta` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `comen_para_cliente` text COLLATE utf8mb4_unicode_ci,
  `comentario` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `dc_ov_origen_id` bigint(20) unsigned DEFAULT NULL,
  `dc_ov_status_cobranza_id` bigint(20) unsigned DEFAULT NULL,
  `dc_ov_status_factura_id` bigint(20) unsigned DEFAULT NULL,
  `dc_ov_status_entrega_id` bigint(20) unsigned DEFAULT NULL,
  `dc_ov_status_venta_id` bigint(20) unsigned DEFAULT NULL,
  `dc_estado_id` bigint(20) unsigned NOT NULL,
  `dc_estado_decision_id` bigint(20) unsigned DEFAULT NULL,
  `inv_orden_trabajo_id` bigint(20) unsigned DEFAULT NULL,
  `conta_cc_id` bigint(20) unsigned DEFAULT NULL,
  `origendestinoable_type` text COLLATE utf8mb4_unicode_ci,
  `origendestinoable_id` int(10) unsigned DEFAULT NULL,
  `is_multiples_ot` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `dc_orden_origen_destino_id` bigint(20) unsigned DEFAULT NULL,
  `is_completado` tinyint(1) NOT NULL DEFAULT '0',
  `is_credit` tinyint(1) DEFAULT NULL,
  `dc_firma_id` bigint(20) unsigned 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 `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`),
  KEY `dc_ordenes_inv_orden_trabajo_id_foreign` (`inv_orden_trabajo_id`),
  KEY `dc_ordenes_dc_orden_origen_destino_id_foreign` (`dc_orden_origen_destino_id`),
  KEY `dc_ordenes_moneda_id_foreign` (`moneda_id`),
  KEY `dc_ordenes_dc_firma_id_foreign` (`dc_firma_id`),
  KEY `dc_ordenes_syj_empleado_id_foreign` (`syj_empleado_id`),
  KEY `dc_ordenes_dc_estado_decision_id_foreign` (`dc_estado_decision_id`),
  KEY `dc_ordenes_dc_ov_origen_id_foreign` (`dc_ov_origen_id`),
  KEY `dc_ordenes_dc_ov_status_venta_id_foreign` (`dc_ov_status_venta_id`),
  KEY `dc_ordenes_dc_ov_status_entrega_id_foreign` (`dc_ov_status_entrega_id`),
  KEY `dc_ordenes_dc_ov_status_factura_id_foreign` (`dc_ov_status_factura_id`),
  KEY `dc_ordenes_dc_ov_status_cobranza_id_foreign` (`dc_ov_status_cobranza_id`),
  CONSTRAINT `dc_ordenes_conta_cc_id_foreign` FOREIGN KEY (`conta_cc_id`) REFERENCES `conta_centro_costos` (`id`),
  CONSTRAINT `dc_ordenes_dc_estado_decision_id_foreign` FOREIGN KEY (`dc_estado_decision_id`) REFERENCES `dc_estados_decisiones` (`id`),
  CONSTRAINT `dc_ordenes_dc_estado_id_foreign` FOREIGN KEY (`dc_estado_id`) REFERENCES `dc_estados` (`id`),
  CONSTRAINT `dc_ordenes_dc_firma_id_foreign` FOREIGN KEY (`dc_firma_id`) REFERENCES `dc_firmas` (`id`),
  CONSTRAINT `dc_ordenes_dc_orden_origen_destino_id_foreign` FOREIGN KEY (`dc_orden_origen_destino_id`) REFERENCES `dc_ordenes_origen_destino` (`id`),
  CONSTRAINT `dc_ordenes_dc_orden_tipo_id_foreign` FOREIGN KEY (`dc_orden_tipo_id`) REFERENCES `dc_ordenes_tipos` (`id`),
  CONSTRAINT `dc_ordenes_dc_ov_origen_id_foreign` FOREIGN KEY (`dc_ov_origen_id`) REFERENCES `dc_ov_origenes` (`id`),
  CONSTRAINT `dc_ordenes_dc_ov_status_cobranza_id_foreign` FOREIGN KEY (`dc_ov_status_cobranza_id`) REFERENCES `dc_ov_status_cobranza` (`id`),
  CONSTRAINT `dc_ordenes_dc_ov_status_entrega_id_foreign` FOREIGN KEY (`dc_ov_status_entrega_id`) REFERENCES `dc_ov_status_entrega` (`id`),
  CONSTRAINT `dc_ordenes_dc_ov_status_factura_id_foreign` FOREIGN KEY (`dc_ov_status_factura_id`) REFERENCES `dc_ov_status_factura` (`id`),
  CONSTRAINT `dc_ordenes_dc_ov_status_venta_id_foreign` FOREIGN KEY (`dc_ov_status_venta_id`) REFERENCES `dc_ov_status_venta` (`id`),
  CONSTRAINT `dc_ordenes_inv_orden_trabajo_id_foreign` FOREIGN KEY (`inv_orden_trabajo_id`) REFERENCES `inv_orden_trabajos` (`id`),
  CONSTRAINT `dc_ordenes_moneda_id_foreign` FOREIGN KEY (`moneda_id`) REFERENCES `monedas` (`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`),
  CONSTRAINT `dc_ordenes_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 `dc_ordenes`
--


--
-- Table structure for table `dc_ordenes_compra_coti`
--

CREATE TABLE `dc_ordenes_compra_coti` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `dc_orden_coti_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 `dc_ordenes_compra_coti_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ordenes_compra_coti_dc_orden_coti_id_foreign` (`dc_orden_coti_id`),
  CONSTRAINT `dc_ordenes_compra_coti_dc_orden_coti_id_foreign` FOREIGN KEY (`dc_orden_coti_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ordenes_compra_coti_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ordenes_compra_coti`
--


--
-- Table structure for table `dc_ordenes_compra_req`
--

CREATE TABLE `dc_ordenes_compra_req` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `dc_orden_detail_id` bigint(20) unsigned NOT NULL,
  `dc_orden_req_id` bigint(20) unsigned NOT NULL,
  `dc_orden_req_detail_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 `dc_ordenes_compra_req_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ordenes_compra_req_dc_orden_detail_id_foreign` (`dc_orden_detail_id`),
  KEY `dc_ordenes_compra_req_dc_orden_req_id_foreign` (`dc_orden_req_id`),
  KEY `dc_ordenes_compra_req_dc_orden_req_detail_id_foreign` (`dc_orden_req_detail_id`),
  CONSTRAINT `dc_ordenes_compra_req_dc_orden_detail_id_foreign` FOREIGN KEY (`dc_orden_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `dc_ordenes_compra_req_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ordenes_compra_req_dc_orden_req_detail_id_foreign` FOREIGN KEY (`dc_orden_req_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `dc_ordenes_compra_req_dc_orden_req_id_foreign` FOREIGN KEY (`dc_orden_req_id`) REFERENCES `dc_ordenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ordenes_compra_req`
--


--
-- Table structure for table `dc_ordenes_cotizacion_req`
--

CREATE TABLE `dc_ordenes_cotizacion_req` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `dc_orden_detail_id` bigint(20) unsigned NOT NULL,
  `dc_orden_req_id` bigint(20) unsigned NOT NULL,
  `dc_orden_req_detail_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 `dc_ordenes_cotizacion_req_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ordenes_cotizacion_req_dc_orden_detail_id_foreign` (`dc_orden_detail_id`),
  KEY `dc_ordenes_cotizacion_req_dc_orden_req_id_foreign` (`dc_orden_req_id`),
  KEY `dc_ordenes_cotizacion_req_dc_orden_req_detail_id_foreign` (`dc_orden_req_detail_id`),
  CONSTRAINT `dc_ordenes_cotizacion_req_dc_orden_detail_id_foreign` FOREIGN KEY (`dc_orden_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `dc_ordenes_cotizacion_req_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ordenes_cotizacion_req_dc_orden_req_detail_id_foreign` FOREIGN KEY (`dc_orden_req_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `dc_ordenes_cotizacion_req_dc_orden_req_id_foreign` FOREIGN KEY (`dc_orden_req_id`) REFERENCES `dc_ordenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ordenes_cotizacion_req`
--


--
-- 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,
  `dc_orden_origen_destino_id` bigint(20) unsigned DEFAULT NULL,
  `origendestinoable_id` int(10) unsigned DEFAULT NULL,
  `origendestinoable_type` text COLLATE utf8mb4_unicode_ci,
  `cantidades` decimal(16,2) NOT NULL,
  `inv_deposito_id` bigint(20) unsigned DEFAULT NULL,
  `inv_producto_id` bigint(20) unsigned DEFAULT NULL,
  `inv_producto_id_destino` bigint(20) unsigned DEFAULT NULL,
  `prod_variant_id` bigint(20) unsigned DEFAULT NULL,
  `inv_deposito_id_destino` 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`),
  KEY `dc_ordenes_details_inv_producto_id_destino_foreign` (`inv_producto_id_destino`),
  KEY `dc_ordenes_details_dc_orden_origen_destino_id_foreign` (`dc_orden_origen_destino_id`),
  KEY `dc_ordenes_details_inv_deposito_id_foreign` (`inv_deposito_id`),
  KEY `dc_ordenes_details_inv_deposito_id_destino_foreign` (`inv_deposito_id_destino`),
  KEY `dc_ordenes_details_prod_variant_id_foreign` (`prod_variant_id`),
  CONSTRAINT `dc_ordenes_details_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ordenes_details_dc_orden_origen_destino_id_foreign` FOREIGN KEY (`dc_orden_origen_destino_id`) REFERENCES `dc_ordenes_origen_destino` (`id`),
  CONSTRAINT `dc_ordenes_details_inv_deposito_id_destino_foreign` FOREIGN KEY (`inv_deposito_id_destino`) REFERENCES `inv_depositos` (`id`),
  CONSTRAINT `dc_ordenes_details_inv_deposito_id_foreign` FOREIGN KEY (`inv_deposito_id`) REFERENCES `inv_depositos` (`id`),
  CONSTRAINT `dc_ordenes_details_inv_producto_id_destino_foreign` FOREIGN KEY (`inv_producto_id_destino`) REFERENCES `inv_productos` (`id`),
  CONSTRAINT `dc_ordenes_details_inv_producto_id_foreign` FOREIGN KEY (`inv_producto_id`) REFERENCES `inv_productos` (`id`),
  CONSTRAINT `dc_ordenes_details_prod_variant_id_foreign` FOREIGN KEY (`prod_variant_id`) REFERENCES `prod_variants` (`id`) ON DELETE SET NULL,
  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_facturada`
--

CREATE TABLE `dc_ordenes_facturada` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `dc_orden_id` bigint(20) unsigned DEFAULT NULL,
  `fact_elec_receipt_id` int(11) DEFAULT NULL,
  `receipt_id` int(10) 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_facturada_person_id_foreign` (`person_id`),
  KEY `dc_ordenes_facturada_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ordenes_facturada_fact_elec_receipt_id_foreign` (`fact_elec_receipt_id`),
  KEY `dc_ordenes_facturada_receipt_id_foreign` (`receipt_id`),
  CONSTRAINT `dc_ordenes_facturada_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ordenes_facturada_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `dc_ordenes_facturada_receipt_id_foreign` FOREIGN KEY (`receipt_id`) REFERENCES `receipts` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ordenes_facturada`
--


--
-- Table structure for table `dc_ordenes_ingreso_compra`
--

CREATE TABLE `dc_ordenes_ingreso_compra` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `dc_orden_detail_id` bigint(20) unsigned NOT NULL,
  `dc_orden_compra_id` bigint(20) unsigned NOT NULL,
  `dc_orden_compra_detail_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 `dc_ordenes_ingreso_compra_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ordenes_ingreso_compra_dc_orden_detail_id_foreign` (`dc_orden_detail_id`),
  KEY `dc_ordenes_ingreso_compra_dc_orden_compra_id_foreign` (`dc_orden_compra_id`),
  KEY `dc_ordenes_ingreso_compra_dc_orden_compra_detail_id_foreign` (`dc_orden_compra_detail_id`),
  CONSTRAINT `dc_ordenes_ingreso_compra_dc_orden_compra_detail_id_foreign` FOREIGN KEY (`dc_orden_compra_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `dc_ordenes_ingreso_compra_dc_orden_compra_id_foreign` FOREIGN KEY (`dc_orden_compra_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ordenes_ingreso_compra_dc_orden_detail_id_foreign` FOREIGN KEY (`dc_orden_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `dc_ordenes_ingreso_compra_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ordenes_ingreso_compra`
--


--
-- Table structure for table `dc_ordenes_ingxdev_rem_egr`
--

CREATE TABLE `dc_ordenes_ingxdev_rem_egr` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `dc_orden_detail_id` bigint(20) unsigned NOT NULL,
  `dc_orden_rem_egr_id` bigint(20) unsigned NOT NULL,
  `dc_orden_rem_egr_detail_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 `dc_ordenes_ingxdev_rem_egr_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ordenes_ingxdev_rem_egr_dc_orden_detail_id_foreign` (`dc_orden_detail_id`),
  KEY `dc_ordenes_ingxdev_rem_egr_dc_orden_rem_egr_id_foreign` (`dc_orden_rem_egr_id`),
  KEY `dc_ordenes_ingxdev_rem_egr_dc_orden_rem_egr_detail_id_foreign` (`dc_orden_rem_egr_detail_id`),
  CONSTRAINT `dc_ordenes_ingxdev_rem_egr_dc_orden_detail_id_foreign` FOREIGN KEY (`dc_orden_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `dc_ordenes_ingxdev_rem_egr_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ordenes_ingxdev_rem_egr_dc_orden_rem_egr_detail_id_foreign` FOREIGN KEY (`dc_orden_rem_egr_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `dc_ordenes_ingxdev_rem_egr_dc_orden_rem_egr_id_foreign` FOREIGN KEY (`dc_orden_rem_egr_id`) REFERENCES `dc_ordenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ordenes_ingxdev_rem_egr`
--


--
-- Table structure for table `dc_ordenes_logs`
--

CREATE TABLE `dc_ordenes_logs` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) unsigned DEFAULT NULL,
  `loggable_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `loggable_id` bigint(20) unsigned NOT NULL,
  `related_id` bigint(20) unsigned DEFAULT NULL,
  `related_type` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `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 `dc_ordenes_logs_loggable_type_loggable_id_index` (`loggable_type`,`loggable_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ordenes_logs`
--


--
-- Table structure for table `dc_ordenes_origen_destino`
--

CREATE TABLE `dc_ordenes_origen_destino` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `descripcion` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `modelo` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `is_deposito` tinyint(1) NOT NULL DEFAULT '0',
  `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=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ordenes_origen_destino`
--

INSERT INTO `dc_ordenes_origen_destino` VALUES (1,NULL,'Orden de Trabajo','App\\Models\\Inventario\\InvOrdenTrabajo',0,1,NULL,NULL,NULL),(2,NULL,'Centro de Costos','App\\Models\\Inventario\\InvOrdenTrabajoHorasTipo',0,1,NULL,'2023-09-12 22:14:45',NULL),(3,NULL,'Deposito','App\\Models\\Inventario\\InvDeposito',1,1,NULL,'2024-05-07 20:07:16',NULL),(4,NULL,'Empleado','App\\Models\\SyJEmpleado',0,0,NULL,'2023-07-03 22:06:35',NULL);

--
-- Table structure for table `dc_ordenes_pdf_templates`
--

CREATE TABLE `dc_ordenes_pdf_templates` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `dc_orden_tipo_id` bigint(20) unsigned NOT NULL,
  `nombre` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `vista_blade` text COLLATE utf8mb4_unicode_ci,
  `pdf_base_path` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `tipo_plantilla` enum('blade','pdf_base') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'blade',
  `configuracion` json 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`),
  UNIQUE KEY `unique_person_tipo_template` (`person_id`,`dc_orden_tipo_id`),
  KEY `dc_ordenes_pdf_templates_dc_orden_tipo_id_foreign` (`dc_orden_tipo_id`),
  CONSTRAINT `dc_ordenes_pdf_templates_dc_orden_tipo_id_foreign` FOREIGN KEY (`dc_orden_tipo_id`) REFERENCES `dc_ordenes_tipos` (`id`),
  CONSTRAINT `dc_ordenes_pdf_templates_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ordenes_pdf_templates`
--


--
-- Table structure for table `dc_ordenes_revocadas`
--

CREATE TABLE `dc_ordenes_revocadas` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `comentario` 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 `dc_ordenes_revocadas_dc_orden_id_foreign` (`dc_orden_id`),
  CONSTRAINT `dc_ordenes_revocadas_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ordenes_revocadas`
--


--
-- Table structure for table `dc_ordenes_servicio_compra`
--

CREATE TABLE `dc_ordenes_servicio_compra` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `dc_orden_detail_id` bigint(20) unsigned NOT NULL,
  `dc_orden_compra_id` bigint(20) unsigned NOT NULL,
  `dc_orden_compra_detail_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 `dc_ordenes_servicio_compra_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ordenes_servicio_compra_dc_orden_detail_id_foreign` (`dc_orden_detail_id`),
  KEY `dc_ordenes_servicio_compra_dc_orden_compra_id_foreign` (`dc_orden_compra_id`),
  KEY `dc_ordenes_servicio_compra_dc_orden_compra_detail_id_foreign` (`dc_orden_compra_detail_id`),
  CONSTRAINT `dc_ordenes_servicio_compra_dc_orden_compra_detail_id_foreign` FOREIGN KEY (`dc_orden_compra_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `dc_ordenes_servicio_compra_dc_orden_compra_id_foreign` FOREIGN KEY (`dc_orden_compra_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ordenes_servicio_compra_dc_orden_detail_id_foreign` FOREIGN KEY (`dc_orden_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `dc_ordenes_servicio_compra_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ordenes_servicio_compra`
--


--
-- 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,
  `usabilidad` longtext COLLATE utf8mb4_unicode_ci,
  `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=23 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `dc_ordenes_tipos` VALUES (1,NULL,'ORDEN DE COMPRAS',NULL,1,NULL,'2022-09-09 16:50:10',NULL),(2,NULL,'ORDEN DE VENTAS',NULL,1,NULL,'2022-09-09 16:50:10',NULL),(3,NULL,'PRESUPUESTO',NULL,1,NULL,NULL,NULL),(4,NULL,'REQUERIMIENTO',NULL,1,NULL,NULL,NULL),(5,NULL,'REMITO DE INGRESO',NULL,1,NULL,'2023-06-12 23:25:06',NULL),(6,NULL,'REMITO DE EGRESO',NULL,1,NULL,NULL,NULL),(7,NULL,'REMITO INTERNO',NULL,1,NULL,NULL,NULL),(8,NULL,'REMITO DE INGRESO','Es lo mismo que un remito de ingreso, \n        pero los productosa ingresar provienen de una Orden de Compra',1,NULL,NULL,NULL),(9,NULL,'REMITO DE SERVICIO','Es un remito de Ingreso de un servicio que se\n        asigna directo a una OT',1,NULL,NULL,NULL),(10,NULL,'ORDEN DE PAGO',NULL,1,'2023-09-28 16:26:03','2023-09-28 16:26:03',NULL),(11,NULL,'ANULACION REQUERIMIENTOS',NULL,1,'2024-04-02 22:51:23','2024-04-02 22:51:23',NULL),(12,NULL,'ANULACION COMPRAS PRODUCTOS',NULL,1,'2024-04-02 22:51:23','2024-04-02 22:51:23',NULL),(13,NULL,'ANULACION COMPRAS SERVICIOS',NULL,1,'2024-04-02 22:51:23','2024-04-02 22:51:23',NULL),(14,NULL,'REMITO DE GASTO',NULL,1,'2024-05-07 20:07:16','2024-05-07 20:07:16',NULL),(15,NULL,'COTIZACIONES',NULL,1,'2024-06-26 07:53:53','2024-06-26 07:53:53',NULL),(16,NULL,'REMITO INGRESO-DEVOLUCION',NULL,1,'2024-09-02 13:17:54','2024-09-02 13:17:54',NULL),(17,NULL,'REMITO EGRESO-DEVOLUCION',NULL,1,'2024-10-17 08:51:14','2024-10-17 08:51:14',NULL),(18,NULL,'REMITO','Es un remito de servicio, que no tiene ni ingreso ni egreso',1,'2024-12-03 21:46:40','2024-12-03 21:46:40',NULL),(19,NULL,'Remito de Cliente','Se usa en las Ordenes de Venta para demostrar que se entrego mercaderia al cliente',1,NULL,NULL,NULL),(20,NULL,'Orden de Compra de Cliente','Es la OC que envia el cliente para que se le haga el pedido',1,NULL,NULL,NULL),(21,NULL,'Solicitud de Facturacion','Es un documento que se usa para que se pueda facturar',1,NULL,NULL,NULL),(22,NULL,'Ordenes de Compra','Es una OC para Empresas',1,NULL,NULL,NULL);

--
-- Table structure for table `dc_ov_cta_cte_cliente`
--

CREATE TABLE `dc_ov_cta_cte_cliente` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `cta_cte_cliente_id` int(10) 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_ov_cta_cte_cliente_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ov_cta_cte_cliente_cta_cte_cliente_id_foreign` (`cta_cte_cliente_id`),
  CONSTRAINT `dc_ov_cta_cte_cliente_cta_cte_cliente_id_foreign` FOREIGN KEY (`cta_cte_cliente_id`) REFERENCES `cta_cte_cliente` (`id`),
  CONSTRAINT `dc_ov_cta_cte_cliente_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ov_cta_cte_cliente`
--


--
-- Table structure for table `dc_ov_fact_electronicas`
--

CREATE TABLE `dc_ov_fact_electronicas` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `fact_elec_receipt_id` int(10) 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_ov_fact_electronicas_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ov_fact_electronicas_fact_elec_receipt_id_foreign` (`fact_elec_receipt_id`),
  CONSTRAINT `dc_ov_fact_electronicas_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ov_fact_electronicas_fact_elec_receipt_id_foreign` FOREIGN KEY (`fact_elec_receipt_id`) REFERENCES `fact_elec_receipts` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ov_fact_electronicas`
--


--
-- Table structure for table `dc_ov_oc_presupuestos`
--

CREATE TABLE `dc_ov_oc_presupuestos` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `dc_orden_presupuesto_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 `dc_ov_oc_presupuestos_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ov_oc_presupuestos_dc_orden_presupuesto_id_foreign` (`dc_orden_presupuesto_id`),
  CONSTRAINT `dc_ov_oc_presupuestos_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ov_oc_presupuestos_dc_orden_presupuesto_id_foreign` FOREIGN KEY (`dc_orden_presupuesto_id`) REFERENCES `dc_ordenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ov_oc_presupuestos`
--


--
-- Table structure for table `dc_ov_ocs`
--

CREATE TABLE `dc_ov_ocs` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `dc_orden_compra_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 `dc_ov_ocs_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ov_ocs_dc_orden_compra_id_foreign` (`dc_orden_compra_id`),
  CONSTRAINT `dc_ov_ocs_dc_orden_compra_id_foreign` FOREIGN KEY (`dc_orden_compra_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ov_ocs_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ov_ocs`
--


--
-- Table structure for table `dc_ov_origenes`
--

CREATE TABLE `dc_ov_origenes` (
  `id` bigint(20) 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`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ov_origenes`
--

INSERT INTO `dc_ov_origenes` VALUES (1,NULL,'Taller',1,NULL,NULL,NULL),(2,NULL,'Comercial',1,NULL,NULL,NULL),(3,NULL,'Repuestos',1,NULL,NULL,NULL);

--
-- Table structure for table `dc_ov_origenes_users`
--

CREATE TABLE `dc_ov_origenes_users` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `dc_ov_origen_id` bigint(20) unsigned NOT NULL,
  `user_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 `dc_ov_origenes_users_dc_ov_origen_id_foreign` (`dc_ov_origen_id`),
  CONSTRAINT `dc_ov_origenes_users_dc_ov_origen_id_foreign` FOREIGN KEY (`dc_ov_origen_id`) REFERENCES `dc_ov_origenes` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ov_origenes_users`
--


--
-- Table structure for table `dc_ov_ots`
--

CREATE TABLE `dc_ov_ots` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `ot_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 `dc_ov_ots_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ov_ots_ot_id_foreign` (`ot_id`),
  CONSTRAINT `dc_ov_ots_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ov_ots_ot_id_foreign` FOREIGN KEY (`ot_id`) REFERENCES `inv_orden_trabajos` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ov_ots`
--


--
-- Table structure for table `dc_ov_pres_clientes`
--

CREATE TABLE `dc_ov_pres_clientes` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `dc_orden_pres_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 `dc_ov_pres_clientes_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ov_pres_clientes_dc_orden_pres_id_foreign` (`dc_orden_pres_id`),
  CONSTRAINT `dc_ov_pres_clientes_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ov_pres_clientes_dc_orden_pres_id_foreign` FOREIGN KEY (`dc_orden_pres_id`) REFERENCES `dc_ordenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ov_pres_clientes`
--


--
-- Table structure for table `dc_ov_rem_clientes`
--

CREATE TABLE `dc_ov_rem_clientes` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `dc_orden_rem_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 `dc_ov_rem_clientes_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ov_rem_clientes_dc_orden_rem_id_foreign` (`dc_orden_rem_id`),
  CONSTRAINT `dc_ov_rem_clientes_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ov_rem_clientes_dc_orden_rem_id_foreign` FOREIGN KEY (`dc_orden_rem_id`) REFERENCES `dc_ordenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ov_rem_clientes`
--


--
-- Table structure for table `dc_ov_remc_occ`
--

CREATE TABLE `dc_ov_remc_occ` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `dc_orden_id` bigint(20) unsigned DEFAULT NULL,
  `dc_orden_detail_id` bigint(20) unsigned DEFAULT NULL,
  `dc_occ_id` bigint(20) unsigned DEFAULT NULL,
  `dc_occ_detail_id` bigint(20) unsigned DEFAULT NULL,
  `user_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_ov_remc_occ_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ov_remc_occ_dc_orden_detail_id_foreign` (`dc_orden_detail_id`),
  KEY `dc_ov_remc_occ_dc_occ_id_foreign` (`dc_occ_id`),
  KEY `dc_ov_remc_occ_dc_occ_detail_id_foreign` (`dc_occ_detail_id`),
  CONSTRAINT `dc_ov_remc_occ_dc_occ_detail_id_foreign` FOREIGN KEY (`dc_occ_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `dc_ov_remc_occ_dc_occ_id_foreign` FOREIGN KEY (`dc_occ_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ov_remc_occ_dc_orden_detail_id_foreign` FOREIGN KEY (`dc_orden_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `dc_ov_remc_occ_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ov_remc_occ`
--


--
-- Table structure for table `dc_ov_sol_facturacion`
--

CREATE TABLE `dc_ov_sol_facturacion` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `dc_sol_facturacion_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 `dc_ov_sol_facturacion_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ov_sol_facturacion_dc_sol_facturacion_id_foreign` (`dc_sol_facturacion_id`),
  CONSTRAINT `dc_ov_sol_facturacion_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ov_sol_facturacion_dc_sol_facturacion_id_foreign` FOREIGN KEY (`dc_sol_facturacion_id`) REFERENCES `dc_ordenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ov_sol_facturacion`
--


--
-- Table structure for table `dc_ov_status_cobranza`
--

CREATE TABLE `dc_ov_status_cobranza` (
  `id` bigint(20) 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`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ov_status_cobranza`
--

INSERT INTO `dc_ov_status_cobranza` VALUES (1,NULL,'Pendiente',1,NULL,NULL,NULL),(2,NULL,'Parcial',1,NULL,NULL,NULL),(3,NULL,'Completa',1,NULL,NULL,NULL);

--
-- Table structure for table `dc_ov_status_entrega`
--

CREATE TABLE `dc_ov_status_entrega` (
  `id` bigint(20) 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`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ov_status_entrega`
--

INSERT INTO `dc_ov_status_entrega` VALUES (1,NULL,'Pendiente',1,NULL,NULL,NULL),(2,NULL,'Parcial',1,NULL,NULL,NULL),(3,NULL,'Completa',1,NULL,NULL,NULL);

--
-- Table structure for table `dc_ov_status_factura`
--

CREATE TABLE `dc_ov_status_factura` (
  `id` bigint(20) 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`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ov_status_factura`
--

INSERT INTO `dc_ov_status_factura` VALUES (1,NULL,'Pendiente',1,NULL,NULL,NULL),(2,NULL,'Facturable',1,NULL,NULL,NULL),(3,NULL,'Facturado Parcialmente',1,NULL,NULL,NULL),(4,NULL,'Facturado Totalmente',1,NULL,NULL,NULL);

--
-- Table structure for table `dc_ov_status_venta`
--

CREATE TABLE `dc_ov_status_venta` (
  `id` bigint(20) 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`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_ov_status_venta`
--

INSERT INTO `dc_ov_status_venta` VALUES (1,NULL,'Pendiente',1,NULL,NULL,NULL),(2,NULL,'Presupuesto',1,NULL,NULL,NULL),(3,NULL,'Venta',1,NULL,NULL,NULL),(4,NULL,'Rechazada',1,NULL,NULL,NULL);

--
-- Table structure for table `dc_sol_fac_occ`
--

CREATE TABLE `dc_sol_fac_occ` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL COMMENT 'Solicitud Facturación (tipo 21)',
  `dc_orden_detail_id` bigint(20) unsigned NOT NULL COMMENT 'Detalle de SF',
  `dc_occ_id` bigint(20) unsigned NOT NULL COMMENT 'OC Cliente (tipo 20)',
  `dc_occ_detail_id` bigint(20) unsigned NOT NULL COMMENT 'Detalle de OCC',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `idx_sf` (`dc_orden_id`),
  KEY `idx_occ` (`dc_occ_id`),
  KEY `dc_sol_fac_occ_dc_orden_detail_id_foreign` (`dc_orden_detail_id`),
  KEY `dc_sol_fac_occ_dc_occ_detail_id_foreign` (`dc_occ_detail_id`),
  CONSTRAINT `dc_sol_fac_occ_dc_occ_detail_id_foreign` FOREIGN KEY (`dc_occ_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `dc_sol_fac_occ_dc_occ_id_foreign` FOREIGN KEY (`dc_occ_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_sol_fac_occ_dc_orden_detail_id_foreign` FOREIGN KEY (`dc_orden_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `dc_sol_fac_occ_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_sol_fac_occ`
--


--
-- Table structure for table `despachos`
--

CREATE TABLE `despachos` (
  `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,
  `moneda_id` int(10) unsigned NOT NULL,
  `fecha` datetime NOT NULL DEFAULT '2025-04-28 16:07:46',
  `is_ponderacion_autom` tinyint(1) NOT NULL DEFAULT '1',
  `is_garantia` tinyint(1) NOT NULL DEFAULT '0',
  `numero` int(10) unsigned DEFAULT NULL,
  `comentario` longtext COLLATE utf8mb4_unicode_ci,
  `total` decimal(16,2) NOT NULL DEFAULT '0.00',
  `total_parte_1` decimal(16,2) NOT NULL DEFAULT '0.00',
  `total_parte_2` decimal(16,2) NOT NULL DEFAULT '0.00',
  `total_parte_3` decimal(16,2) NOT NULL DEFAULT '0.00',
  `cotizacion` 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 `despachos_person_id_foreign` (`person_id`),
  KEY `despachos_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `despachos_moneda_id_foreign` (`moneda_id`),
  CONSTRAINT `despachos_moneda_id_foreign` FOREIGN KEY (`moneda_id`) REFERENCES `monedas` (`id`),
  CONSTRAINT `despachos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `despachos_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 `despachos`
--


--
-- Table structure for table `despachos_cierres`
--

CREATE TABLE `despachos_cierres` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `despacho_id` bigint(20) unsigned NOT NULL,
  `receipt_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `dc_orden_detail_id` bigint(20) unsigned NOT NULL,
  `inv_producto_id` bigint(20) unsigned DEFAULT NULL,
  `costo_antes` decimal(16,2) NOT NULL DEFAULT '0.00',
  `cantidades` decimal(16,2) DEFAULT '0.00',
  `precio_x_cantidad` decimal(16,2) DEFAULT '0.00',
  `ratio` decimal(16,4) NOT NULL DEFAULT '0.0000',
  `incremento` decimal(16,2) NOT NULL DEFAULT '0.00',
  `incremento_x_cantidad` decimal(16,2) DEFAULT '0.00',
  `costo_despues` 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 `despachos_cierres_despacho_id_foreign` (`despacho_id`),
  KEY `despachos_cierres_receipt_id_foreign` (`receipt_id`),
  KEY `despachos_cierres_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `despachos_cierres_dc_orden_detail_id_foreign` (`dc_orden_detail_id`),
  KEY `despachos_cierres_inv_producto_id_foreign` (`inv_producto_id`),
  CONSTRAINT `despachos_cierres_dc_orden_detail_id_foreign` FOREIGN KEY (`dc_orden_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `despachos_cierres_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `despachos_cierres_despacho_id_foreign` FOREIGN KEY (`despacho_id`) REFERENCES `despachos` (`id`),
  CONSTRAINT `despachos_cierres_inv_producto_id_foreign` FOREIGN KEY (`inv_producto_id`) REFERENCES `inv_productos` (`id`),
  CONSTRAINT `despachos_cierres_receipt_id_foreign` FOREIGN KEY (`receipt_id`) REFERENCES `receipts` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `despachos_cierres`
--


--
-- Table structure for table `despachos_details`
--

CREATE TABLE `despachos_details` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `despacho_id` bigint(20) unsigned NOT NULL,
  `despacho_parte_id` bigint(20) unsigned NOT NULL,
  `receipt_id` int(10) unsigned DEFAULT NULL,
  `porcentaje_ponderacion` decimal(8,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 `despachos_details_despacho_id_foreign` (`despacho_id`),
  KEY `despachos_details_despacho_parte_id_foreign` (`despacho_parte_id`),
  KEY `despachos_details_receipt_id_foreign` (`receipt_id`),
  CONSTRAINT `despachos_details_despacho_id_foreign` FOREIGN KEY (`despacho_id`) REFERENCES `despachos` (`id`),
  CONSTRAINT `despachos_details_despacho_parte_id_foreign` FOREIGN KEY (`despacho_parte_id`) REFERENCES `despachos_partes` (`id`),
  CONSTRAINT `despachos_details_receipt_id_foreign` FOREIGN KEY (`receipt_id`) REFERENCES `receipts` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `despachos_details`
--


--
-- Table structure for table `despachos_files`
--

CREATE TABLE `despachos_files` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `despacho_id` bigint(20) unsigned NOT NULL,
  `descripcion` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `path` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `name_original` 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 `despachos_files_despacho_id_foreign` (`despacho_id`),
  CONSTRAINT `despachos_files_despacho_id_foreign` FOREIGN KEY (`despacho_id`) REFERENCES `despachos` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `despachos_files`
--


--
-- Table structure for table `despachos_partes`
--

CREATE TABLE `despachos_partes` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `descripcion` varchar(255) 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`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `despachos_partes`
--

INSERT INTO `despachos_partes` VALUES (1,NULL,'Facturas del Proveedor',1,NULL,NULL,NULL),(2,NULL,'Despachos de Importacion',1,NULL,NULL,NULL),(3,NULL,'Facturas de Logistica',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_perc_ret`
--

CREATE TABLE `fact_elec_perc_ret` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `codigo_afip` int(10) unsigned NOT NULL,
  `other_tax_id` 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`),
  KEY `fact_elec_perc_ret_other_tax_id_foreign` (`other_tax_id`),
  CONSTRAINT `fact_elec_perc_ret_other_tax_id_foreign` FOREIGN KEY (`other_tax_id`) REFERENCES `other_taxes` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fact_elec_perc_ret`
--

INSERT INTO `fact_elec_perc_ret` VALUES (1,NULL,'Per./Ret de Imp. a las Ganancias',1,1032,1,NULL,NULL,NULL),(2,NULL,'Per./Ret de IVA',1,1000,1,NULL,NULL,NULL),(3,NULL,'Per./Ret de IIBB',2,1006,1,NULL,NULL,NULL),(4,NULL,'Impuestos Internos',4,1001,1,NULL,NULL,NULL),(5,NULL,'Impuestos Municipales',3,1031,1,NULL,NULL,NULL);

--
-- Table structure for table `fact_elec_perc_ret_details`
--

CREATE TABLE `fact_elec_perc_ret_details` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `fact_elec_perc_ret_id` int(10) unsigned NOT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `fact_elec_receipt_id` int(10) unsigned NOT NULL,
  `detalle` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `zone_id` int(10) unsigned DEFAULT NULL,
  `base_imponible` decimal(16,2) DEFAULT NULL,
  `alicuota` decimal(16,2) DEFAULT 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`),
  KEY `fact_elec_perc_ret_details_fact_elec_perc_ret_id_foreign` (`fact_elec_perc_ret_id`),
  KEY `fact_elec_perc_ret_details_person_id_foreign` (`person_id`),
  KEY `fact_elec_perc_ret_details_fact_elec_receipt_id_foreign` (`fact_elec_receipt_id`),
  KEY `fact_elec_perc_ret_details_zone_id_foreign` (`zone_id`),
  CONSTRAINT `fact_elec_perc_ret_details_fact_elec_perc_ret_id_foreign` FOREIGN KEY (`fact_elec_perc_ret_id`) REFERENCES `fact_elec_perc_ret` (`id`),
  CONSTRAINT `fact_elec_perc_ret_details_fact_elec_receipt_id_foreign` FOREIGN KEY (`fact_elec_receipt_id`) REFERENCES `fact_elec_receipts` (`id`),
  CONSTRAINT `fact_elec_perc_ret_details_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `fact_elec_perc_ret_details_zone_id_foreign` FOREIGN KEY (`zone_id`) REFERENCES `zones` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fact_elec_perc_ret_details`
--


--
-- 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 AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `fact_elec_puntos_venta` VALUES (1,3845,'RUTA E55, KM 7, LOTE 443, COUNTRY LA CUESTA, CIUDAD DE LA CALERA. CORDOBA','2023-01-26 17:07:58','2025-04-10 16:49:53',40721,'0003','5151',1,'img//33714421099/logo_punto_venta_0003.jpg',1,NULL);

--
-- 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 AUTO_INCREMENT=106 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `fact_elec_receipt_details` VALUES (1,3845,1,'Prueba',1.00,'8',1.00,1.00,0.00,0.00,0.00,7,0.00,1.00,'2023-02-22 16:14:22','2023-02-22 16:14:22','',NULL),(2,3845,2,'venta',1.00,'8',100.00,100.00,0.00,0.00,0.00,2,21.00,121.00,'2023-02-22 16:40:44','2023-02-22 16:40:44','1',NULL),(3,3845,3,'prueba',1.00,'8',1.00,1.00,0.00,0.00,0.00,7,0.00,1.00,'2023-02-22 16:46:52','2023-02-22 16:46:52','1',NULL),(4,3845,4,'ventas',1.00,'8',100.00,100.00,0.00,0.00,0.00,2,21.00,121.00,'2023-02-22 16:50:06','2023-02-22 16:50:06','1',NULL),(5,3845,5,'ORDEN PAUTA Y DISTRIBUCION 2023-00141140 ',1.00,'8',76500.00,76500.00,0.00,0.00,0.00,2,16065.00,92565.00,'2023-03-02 13:45:20','2023-03-02 13:45:20','',NULL),(6,3845,6,'ORDEN PAUTA Y DISTRIBUCION 2023-00143763',1.00,'8',76500.00,76500.00,0.00,0.00,0.00,2,16065.00,92565.00,'2023-04-05 12:47:14','2023-04-05 12:47:14','',NULL),(7,3845,7,'ORDEN PAUTA Y DISTRIBUCION 2023-00146756',1.00,'8',76500.00,76500.00,0.00,0.00,0.00,2,16065.00,92565.00,'2023-04-17 16:41:07','2023-04-17 16:41:07','',NULL),(8,3845,8,'ORDEN PAUTA Y DISTRIBUCION 2023-00148017',1.00,'8',93000.00,93000.00,0.00,0.00,0.00,2,19530.00,112530.00,'2023-05-08 15:46:31','2023-05-08 15:46:31','',NULL),(9,3845,9,'Por la exhibición con impresión incluida de 14 carteles del formato SEXTUPLES (4.30 mts x 2.15 mts) desde el 01/05/2023 hasta el 31/05/2023 distribuidos en las ciudades de La Calera, Mendiolaza, Uniquillo y Villa Allende, en ubicaciones y circuitos a definir de acuerdo a listado adjunto.',1.00,'8',282800.00,282800.00,0.00,0.00,0.00,2,59388.00,342188.00,'2023-06-05 16:36:51','2023-06-05 16:36:51','',NULL),(10,3845,10,'Por la exhibición con impresión incluida\nde 14 carteles del formato SEXTUPLES\n(4.30 mts x 2.15 mts) desde el\n01/06/2023 hasta el 30/06/2023\ndistribuidos en las ciudades de La\nCalera, Mendiolaza, Uniquillo y Villa\nAllende, en ubicaciones y circuitos a\ndefinir de acuerdo a listado adjunto',1.00,'8',282800.00,282800.00,0.00,0.00,0.00,2,59388.00,342188.00,'2023-07-20 15:16:38','2023-07-20 15:16:38','',NULL),(11,3845,11,'Por la exhibición con impresión incluida\nde 14 carteles del formato SEXTUPLES\n(4.30 mts x 2.15 mts) desde el\n01/07/2023 hasta el 31/07/2023\ndistribuidos en las ciudades de La\nCalera, Mendiolaza, Uniquillo y Villa\nAllende, en ubicaciones y circuitos a\ndefinir de acuerdo a listado adjunto',1.00,'8',282800.00,282800.00,0.00,0.00,0.00,2,59388.00,342188.00,'2023-08-03 15:03:03','2023-08-03 15:03:03','',NULL),(13,3845,13,'Por la exhibición con impresión incluida\nde 14 carteles del formato SEXTUPLES\n(4.30 mts x 2.15 mts) desde el\n01/08/2023 hasta el 31/08/2023\ndistribuidos en las ciudades de La\nCalera, Mendiolaza, Uniquillo y Villa\nAllende, en ubicaciones y circuitos a\ndefinir de acuerdo a listado adjunto',1.00,'8',342188.00,342188.00,0.00,0.00,0.00,8,0.00,342188.00,'2023-09-01 15:57:20','2023-09-01 15:57:20','',NULL),(14,3845,14,'ORDEN PAUTA Y DISTRIBUCION 2023-00161560',1.00,'8',120000.00,120000.00,0.00,0.00,0.00,2,25200.00,145200.00,'2023-09-14 10:23:11','2023-09-14 10:23:11','',NULL),(15,3845,15,'Por la exhibición con impresión incluida\nde 14 carteles del formato SEXTUPLES\n(4.30 mts x 2.15 mts) desde el\n01/09/2023 hasta el 30/09/2023\ndistribuidos en las ciudades de La\nCalera, Mendiolaza, Uniquillo y Villa\nAllende, en ubicaciones y circuitos a\ndefinir de acuerdo a listado adjunto',1.00,'8',282800.00,282800.00,0.00,0.00,0.00,2,59388.00,342188.00,'2023-10-03 16:40:40','2023-10-03 16:40:40','',NULL),(16,3845,16,'ORDEN PAUTA Y DISTRIBUCION 2023-00162324',1.00,'8',120000.00,120000.00,0.00,0.00,0.00,2,25200.00,145200.00,'2023-10-20 11:01:43','2023-10-20 11:01:43','',NULL),(17,3845,17,'ORDEN PAUTA Y DISTRIBUCION\n2023-00166104\n',1.00,'8',80000.00,80000.00,0.00,0.00,0.00,2,16800.00,96800.00,'2023-11-03 11:40:52','2023-11-03 11:40:52','',NULL);
INSERT INTO `fact_elec_receipt_details` VALUES (18,3845,18,'Por la exhibición con impresión incluidade 14 carteles del formato SEXTUPLES(4.30 mts x 2.15 mts) desde el01/10/2023 hasta el 31/10/2023distribuidos en las ciudades de LaCalera, Mendiolaza, Uniquillo y VillaAllende, en ubicaciones y circuitos adefinir de acuerdo a listado adjunto',1.00,'8',282800.00,282800.00,0.00,0.00,0.00,2,59388.00,342188.00,'2023-11-06 16:26:47','2023-11-06 16:26:47','',NULL),(19,3845,19,'ORDEN PAUTA Y DISTRIBUCION 2023-00167955',1.00,'8',150000.00,150000.00,0.00,0.00,0.00,2,31500.00,181500.00,'2023-11-27 15:39:40','2023-11-27 15:39:40','',NULL),(20,3845,20,'ORDEN PAUTA Y DISTRIBUCION 2023-00168707',1.00,'8',150000.00,150000.00,0.00,0.00,0.00,2,31500.00,181500.00,'2023-12-05 15:42:06','2023-12-05 15:42:06','',NULL),(21,3845,21,'Por la exhibición con impresión\n incluidade 14 carteles del formato\n SEXTUPLES(4.30 mts x 2.15 mts)\n desde el01/11/2023 hasta el\n 30/11/2023distribuidos en las ciudades\n de LaCalera, Mendiolaza, Uniquillo y\n VillaAllende, en ubicaciones y circuitos\n adefinir de acuerdo a listado adjunto',1.00,'8',282800.00,282800.00,0.00,0.00,0.00,2,59388.00,342188.00,'2023-12-07 14:46:17','2023-12-07 14:46:17','',NULL),(23,3845,23,'Por la exhibición con impresión\nincluidade 14 carteles del formato\nSEXTUPLES (4.30 mts x 2.15 mts)\ndesde el 01/12/2023 hasta el\n31/12/2023 distribuidos en las ciudades\nde LaCalera, Mendiolaza, Uniquillo y\nVillaAllende, en ubicaciones y circuitos\na definir de acuerdo a listado adjunto\n',1.00,'8',282800.00,282800.00,0.00,0.00,0.00,2,59388.00,342188.00,'2023-12-27 11:45:38','2023-12-27 11:45:38','',NULL),(24,3845,24,'ORDEN PAUTA Y DISTRIBUCION 2023-00172835',1.00,'8',100000.00,100000.00,0.00,0.00,0.00,2,21000.00,121000.00,'2024-01-12 11:30:47','2024-01-12 11:30:47','',NULL),(25,3845,25,'Medios&Planning 0260-015097/2024  expte',1.00,'8',6470577.00,6470577.00,0.00,0.00,0.00,2,1358821.17,7829398.17,'2024-01-23 15:48:38','2024-01-23 15:48:38','',NULL),(26,3845,26,'ORDEN PAUTA Y DISTRIBUCION 2024-00174919',1.00,'8',210000.00,210000.00,0.00,0.00,0.00,2,44100.00,254100.00,'2024-02-23 15:30:06','2024-02-23 15:30:06','',NULL),(27,3845,27,'EXPEDIENTE 0260-015109/2024',1.00,'8',6470577.00,6470577.00,0.00,0.00,0.00,2,1358821.17,7829398.17,'2024-03-01 15:26:44','2024-03-01 15:26:44','',NULL),(34,3845,34,'Expediente 0260-015147/2024',1.00,'8',10176966.24,10176966.24,0.00,0.00,0.00,2,2137162.91,12314129.15,'2024-04-08 16:06:07','2024-04-08 16:06:07','',NULL),(35,3845,35,'EXPEDIENTE 0260-015147/2024',1.00,'8',12765966.25,12765966.25,0.00,0.00,0.00,7,0.00,12765966.25,'2024-05-02 16:09:41','2024-05-02 16:09:41','',NULL),(36,3845,36,'EXPEDIENTE 0260-015147/2024',1.00,'8',12765966.25,12765966.25,0.00,0.00,0.00,7,0.00,12765966.25,'2024-05-02 16:12:04','2024-05-02 16:12:04','',NULL),(37,3845,37,'EXPEDIENTE 0260-015147/2024',1.00,'8',12765966.25,12765966.25,0.00,0.00,0.00,2,2680852.91,15446819.16,'2024-05-02 16:13:00','2024-05-02 16:13:00','',NULL),(42,3845,42,'ORDEN DE PORMOCION TURISTICA Nº 2024/000666',1.00,'8',11089966.25,11089966.25,0.00,0.00,0.00,2,2328892.91,13418859.16,'2024-06-19 11:30:07','2024-06-19 11:30:07','',NULL),(43,3845,43,'ORDEN DE PROMOCION TURISTICA Nº 2024/000666',1.00,'8',11089966.25,11089966.25,0.00,0.00,0.00,2,2328892.91,13418859.16,'2024-07-03 15:22:52','2024-07-03 15:22:52','',NULL),(44,3845,44,'ORDEN DE PROMOCION TURISTICA Nº 2024/000666',1.00,'8',11089966.25,11089966.25,0.00,0.00,0.00,2,2328892.91,13418859.16,'2024-08-07 17:41:51','2024-08-07 17:41:51','',NULL),(45,3845,45,'ORDEN DE PROMOCION TURISTICA Nº 2024/000666',1.00,'8',11089966.25,11089966.25,0.00,0.00,0.00,2,2328892.91,13418859.16,'2024-08-07 17:56:08','2024-08-07 17:56:08','',NULL),(46,3845,46,'ORDEN DE PROMOCION TURISTICA Nº 2024/000666',1.00,'8',9983000.00,9983000.00,0.00,0.00,0.00,2,2096430.00,12079430.00,'2024-08-07 17:59:08','2024-08-07 17:59:08','',NULL);
INSERT INTO `fact_elec_receipt_details` VALUES (47,3845,47,'ORDEN DE PROMOCION TURISTICA Nº2024/001262',1.00,'8',17164148.00,17164148.00,0.00,0.00,0.00,2,3604471.08,20768619.08,'2024-09-16 11:28:07','2024-09-16 11:28:07','',NULL),(48,3845,48,'ORDEN PAUTA Y DISTRIBUCION 2024-00187725',1.00,'8',236000.00,236000.00,0.00,0.00,0.00,2,49560.00,285560.00,'2024-09-19 13:48:59','2024-09-19 13:48:59','',NULL),(49,3845,49,'ORDEN DE PAUTA Y DISTRIBUCION 2024-00187472',1.00,'8',236000.00,236000.00,0.00,0.00,0.00,2,49560.00,285560.00,'2024-09-19 14:00:04','2024-09-19 14:00:04','',NULL),(50,3845,50,'ORDEN DE PROMOCION TURISTICA Nº2024/001262\nPERIODO OCTUBRE 2024',1.00,'8',12125000.00,12125000.00,0.00,0.00,0.00,2,2546250.00,14671250.00,'2024-10-04 14:38:39','2024-10-04 14:38:39','',NULL),(51,3845,51,'	ORDEN DE PAUTA Y DISTRIBUCION 2024-00189728',1.00,'8',236000.00,236000.00,0.00,0.00,0.00,2,49560.00,285560.00,'2024-10-14 12:36:03','2024-10-14 12:36:03','',NULL),(52,3845,52,'ORDEN DE PROMOCION TURISTICA Nº2024/001529 PERIODO NOVIEMBRE 2024',1.00,'8',17569148.00,17569148.00,0.00,0.00,0.00,2,3689521.08,21258669.08,'2024-11-06 10:19:23','2024-11-06 10:19:23','',NULL),(53,3845,53,'ORDEN DE PAUTA Y DISTRIBUCION 2024-00191905',1.00,'8',272000.00,272000.00,0.00,0.00,0.00,2,57120.00,329120.00,'2024-11-11 12:24:05','2024-11-11 12:24:05','',NULL),(54,3845,54,'ORDEN DE PAUTA Y DISTRIBUCION 2024-00190009',1.00,'8',272000.00,272000.00,0.00,0.00,0.00,2,57120.00,329120.00,'2024-11-11 12:25:56','2024-11-11 12:25:56','',NULL),(55,3845,55,'ORDEN DE PROMOCION TURISTICA Nº2024/001529 PERIODO DICIEMBRE 2024	',1.00,'8',12530000.00,12530000.00,0.00,0.00,0.00,2,2631300.00,15161300.00,'2024-12-03 15:22:27','2024-12-03 15:22:27','',NULL),(56,3845,56,'ORDEN DE PAUTA Y DISTRIBUCION 2024-00192446',1.00,'8',272000.00,272000.00,0.00,0.00,0.00,2,57120.00,329120.00,'2024-12-03 17:41:15','2024-12-03 17:41:15','',NULL),(57,3845,57,'	ORDEN DE PAUTA Y DISTRIBUCION 2024-00194759',1.00,'8',272000.00,272000.00,0.00,0.00,0.00,2,57120.00,329120.00,'2024-12-24 11:02:29','2024-12-24 11:02:29','',NULL),(58,3845,58,'sextuples plazas: resistencia, posadas y corrientes ',1.00,'8',1890000.00,1890000.00,0.00,0.00,0.00,2,396900.00,2286900.00,'2024-12-30 16:35:54','2024-12-30 16:35:54','',NULL),(59,3845,59,'sextuples. plazas: mendoza ',1.00,'8',607500.00,607500.00,0.00,0.00,0.00,2,127575.00,735075.00,'2024-12-30 16:38:06','2024-12-30 16:38:06','',NULL),(60,3845,60,'servicios de impresion ',1.00,'8',745800.00,745800.00,0.00,0.00,0.00,2,156618.00,902418.00,'2024-12-30 16:39:27','2024-12-30 16:39:27','',NULL),(61,3845,61,'servicios  de impresion ',1.00,'8',784212.00,784212.00,0.00,0.00,0.00,2,164684.52,948896.52,'2024-12-30 16:40:36','2024-12-30 16:40:36','',NULL),(62,3845,62,'servicios de impresion',1.00,'8',3817357.50,3817357.50,0.00,0.00,0.00,2,801645.07,4619002.57,'2024-12-30 16:42:23','2024-12-30 16:42:23','',NULL),(63,3845,63,'ORDEN DE COMPRA Nº 4500011553 ',1.00,'8',11348820.00,11348820.00,0.00,0.00,0.00,2,2383252.20,13732072.20,'2025-01-02 13:08:24','2025-01-02 13:08:24','',NULL),(64,3845,64,'ORDEN DE PAUTA Y DISTRIBUCION 2024-00195402',1.00,'8',272000.00,272000.00,0.00,0.00,0.00,2,57120.00,329120.00,'2025-01-10 14:47:16','2025-01-10 14:47:16','',NULL),(65,3845,65,'ORDEN DE PROMOCION TURISTICA Nº2025/000276 PERIODO ENERO 2025',1.00,'8',18597188.00,18597188.00,0.00,0.00,0.00,2,3905409.48,22502597.48,'2025-01-17 15:52:42','2025-01-17 15:52:42','',NULL),(66,3845,66,'ORDEN DE COMPRA Nº 4500011810',1.00,'8',14119602.15,14119602.15,0.00,0.00,0.00,2,2965116.45,17084718.60,'2025-02-04 17:31:07','2025-02-04 17:31:07','',NULL),(67,3845,67,'ORDEN DE PROMOCION TURISTICA Nº2025/000276 PERIODO FEBRERO 2025',1.00,'8',13557960.00,13557960.00,0.00,0.00,0.00,2,2847171.60,16405131.60,'2025-02-07 16:13:23','2025-02-07 16:13:23','',NULL),(68,3845,68,'ORDEN DE PROMOCION TURISTICA Nº2025/000665 PERIODO MARZO 2025',1.00,'8',13558000.00,13558000.00,0.00,0.00,0.00,2,2847180.00,16405180.00,'2025-03-11 16:09:35','2025-03-11 16:09:35','',NULL);
INSERT INTO `fact_elec_receipt_details` VALUES (69,3845,69,'CAMPAÑA FIESTA NACIONAL DE LA VENDIMIA 2025',1.00,'8',1860730.00,1860730.00,0.00,0.00,0.00,2,390753.30,2251483.30,'2025-03-11 17:11:12','2025-03-11 17:11:12','',NULL),(70,3845,70,'IMPRESION 15 SEXTUPLES FLACO PAILOS ',1.00,'8',212625.00,212625.00,0.00,0.00,0.00,2,44651.25,257276.25,'2025-03-14 15:20:08','2025-03-14 15:20:08','',NULL),(71,3845,71,'ORDEN DE PAUTA Y DISTRIBUCION 2025-00202656',1.00,'8',365160.00,365160.00,0.00,0.00,0.00,2,76683.60,441843.60,'2025-04-07 12:06:53','2025-04-07 12:06:53','',NULL),(72,3845,72,'GESTION COMERCIAL PAUTA OMINT LED BELGRANO Y SARMIENTO MES DE FEBRERO 2025',1.00,'8',47437.60,47437.60,0.00,0.00,0.00,2,9961.90,57399.50,'2025-04-09 11:39:27','2025-04-09 11:39:27','',NULL),(73,3845,73,'ORDEN DE COMPRA Nº 4500012398',1.00,'8',1189025.00,1189025.00,0.00,0.00,0.00,2,249695.25,1438720.25,'2025-04-10 11:44:49','2025-04-10 11:44:49','',NULL),(74,3845,74,'ORDEN DE PROMOCION TURISTICA Nº2025/000941 PERIODO ABRIL 2025',1.00,'8',20456862.80,20456862.80,0.00,0.00,0.00,2,4295941.19,24752803.99,'2025-05-02 12:30:34','2025-05-02 12:30:34','',NULL),(75,3845,75,'GESTION COMERCIAL PAUTA OMINT LED BELGRANO Y SARMIENTO MES DE MARZO 2025',1.00,'8',52200.00,52200.00,0.00,0.00,0.00,2,10962.00,63162.00,'2025-05-15 15:25:36','2025-05-15 15:25:36','',NULL),(76,3845,76,'GESTION COMERCIAL PAUTA OMINT LED BELGRANO Y SARMIENTO MES DE ABRIL 2025',1.00,'8',52200.00,52200.00,0.00,0.00,0.00,2,10962.00,63162.00,'2025-05-29 14:32:41','2025-05-29 14:32:41','',NULL),(77,3845,77,'ORDEN DE PROMOCION TURISTICA Nº2025/000941 PERIODO MAYO 2025',1.00,'8',14913800.00,14913800.00,0.00,0.00,0.00,2,3131898.00,18045698.00,'2025-06-02 16:36:06','2025-06-02 16:36:06','',NULL),(78,3845,78,'ORDEN DE PAUTA Y DISTRIBUCION 2025-00208279',1.00,'8',502500.00,502500.00,0.00,0.00,0.00,2,105525.00,608025.00,'2025-06-11 11:18:17','2025-06-11 11:18:17','',NULL),(79,3845,79,'BURO',1.00,'8',1092499.23,1092499.23,0.00,0.00,0.00,2,229424.84,1321924.07,'2025-06-11 17:16:24','2025-06-11 17:16:24','',NULL),(80,3845,80,'Impresión vinilos',1.00,'8',1245000.00,1245000.00,0.00,0.00,0.00,2,261450.00,1506450.00,'2025-06-30 12:40:39','2025-06-30 12:40:39','',NULL),(81,3845,81,'Impresión Vinilos',1.00,'8',1465005.00,1465005.00,0.00,0.00,0.00,2,307651.05,1772656.05,'2025-06-30 12:43:49','2025-06-30 12:43:49','',NULL),(82,3845,82,'impresión vinilos ',1.00,'8',1080200.00,1080200.00,0.00,0.00,0.00,2,226842.00,1307042.00,'2025-06-30 12:53:25','2025-06-30 12:53:25','',NULL),(83,3845,83,'Impresión lonas',1.00,'8',1586030.00,1586030.00,0.00,0.00,0.00,2,333066.30,1919096.30,'2025-06-30 12:56:21','2025-06-30 12:56:21','',NULL),(84,3845,84,'ORDEN DE PAUTA Y DISTRIBUCION 2025-00211137',1.00,'8',502500.00,502500.00,0.00,0.00,0.00,2,105525.00,608025.00,'2025-07-04 14:39:24','2025-07-04 14:39:24','',NULL),(85,3845,85,'GESTION COMERCIAL PAUTA OMINT LED BELGRANO Y SARMIENTO MES DE MAYO 2025',1.00,'8',52200.00,52200.00,0.00,0.00,0.00,2,10962.00,63162.00,'2025-07-15 16:25:33','2025-07-15 16:25:33','',NULL),(86,3845,86,'POR SERVICIOS DE COMERCIALIZACION MES DE MAYO /25 PANTALLA ACCESO ZAPATA Y RIOJA - OMINT ',1.00,'8',34125.00,34125.00,0.00,0.00,0.00,2,7166.25,41291.25,'2025-07-22 10:53:10','2025-07-22 10:53:10','',NULL),(87,3845,87,'POR SERVICIOS DE COMERCIALIZACION MES DE MAYO/25 PANTALLA ACCESO ESTE - OMINT',1.00,'8',45000.00,45000.00,0.00,0.00,0.00,2,9450.00,54450.00,'2025-07-22 10:56:25','2025-07-22 10:56:25','',NULL),(88,3845,88,'CAMPAÑA LOTERIA DE SANTA FE POR 10 HIPERVALLAS ',1.00,'8',2900000.00,2900000.00,0.00,0.00,0.00,2,609000.00,3509000.00,'2025-08-01 13:15:59','2025-08-01 13:15:59','',NULL),(89,3845,89,'ORDEN DE PROMOCION TURISTICA Nº2025/016208 PERIODO JUNIO 2025',1.00,'8',21207262.80,21207262.80,0.00,0.00,0.00,2,4453525.19,25660787.99,'2025-08-01 17:34:11','2025-08-01 17:34:11','',NULL);
INSERT INTO `fact_elec_receipt_details` VALUES (90,3845,90,'GESTION COMERCIAL PAUTA OMINT LED BELGRANO Y SARMIENTO MES DE  JUNIO 2025',1.00,'8',57600.00,57600.00,0.00,0.00,0.00,2,12096.00,69696.00,'2025-08-14 13:15:36','2025-08-14 13:15:36','',NULL),(91,3845,91,'ORDEN DE COMPRA Nº 4500013035',1.00,'8',14996046.00,14996046.00,0.00,0.00,0.00,2,3149169.66,18145215.66,'2025-08-14 13:28:52','2025-08-14 13:28:52','',NULL),(92,3845,92,'ORDEN DE PAUTA Y DISTRIBUCION 2025-00215050',1.00,'8',335000.00,335000.00,0.00,0.00,0.00,2,70350.00,405350.00,'2025-08-14 14:11:29','2025-08-14 14:11:29','',NULL),(93,3845,93,'POR SERVICIOS DE COMERCIALIZACION\nMES DE JUNIO/25 PANTALLA ACCESO\nESTE - OMINT\n',1.00,'8',90000.00,90000.00,0.00,0.00,0.00,2,18900.00,108900.00,'2025-08-27 10:35:43','2025-08-27 10:35:43','',NULL),(94,3845,94,'POR SERVICIOS DE COMERCIALIZACION MES DE JUNIO /25 PANTALLA ACCESO ZAPATA Y RIOJA - OMINT',1.00,'8',68250.00,68250.00,0.00,0.00,0.00,2,14332.50,82582.50,'2025-08-27 10:39:11','2025-08-27 10:39:11','',NULL),(95,3845,95,'ORDEN DE PROMOCION TURISTICA Nº 2025/016208',1.00,'8',15664200.00,15664200.00,0.00,0.00,0.00,2,3289482.00,18953682.00,'2025-09-02 16:38:21','2025-09-02 16:38:21','',NULL),(96,3845,96,'ORDEN DE COMPRA Nº 4500013035',1.00,'8',3749011.50,3749011.50,0.00,0.00,0.00,2,787292.42,4536303.92,'2025-09-08 13:30:40','2025-09-08 13:30:40','',NULL),(97,3845,97,'POR SERVICIOS DE COMERCIALIZACION  MES DE JULIO /25 PANTALLA ACCESO ZAPATA Y RIOJA - OMINT ',1.00,'8',68250.00,68250.00,0.00,0.00,0.00,2,14332.50,82582.50,'2025-09-23 15:14:35','2025-09-23 15:14:35','',NULL),(98,3845,98,'POR SERVICIOS DE COMERCIALIZACION MES DE JULIO /25 PANTALLA ACCESO ESTE - OMINT',1.00,'8',90000.00,90000.00,0.00,0.00,0.00,2,18900.00,108900.00,'2025-09-23 15:21:31','2025-09-23 15:21:31','',NULL),(99,3845,99,'GESTION COMERCIAL PAUTA OMINT LED BELGRANO Y SARMIENTO MES DE JULIO /25',1.00,'8',57600.00,57600.00,0.00,0.00,0.00,2,12096.00,69696.00,'2025-09-23 15:27:49','2025-09-23 15:27:49','',NULL),(100,3845,100,'ORDEN PAUTA Y DISTRIBUCION 2025-00219696\n',1.00,'8',368500.00,368500.00,0.00,0.00,0.00,2,77385.00,445885.00,'2025-10-13 14:51:10','2025-10-13 14:51:10','',NULL),(101,3845,101,'ORDEN DE PROMOCION TURISTICA : 2025/002017',1.00,'8',40503977.60,40503977.60,0.00,0.00,0.00,2,8505835.30,49009812.90,'2025-11-07 11:59:57','2025-11-07 11:59:57','',NULL),(102,3845,102,'POR SERVICIO DE COMERCIALIZACION MES DE AGOSTO/25 PANTALLA ACCESO ESTE-OMINT ',1.00,'8',97200.00,97200.00,0.00,0.00,0.00,2,20412.00,117612.00,'2025-11-12 17:12:26','2025-11-12 17:12:26','',NULL),(103,3845,103,'GESTION COMERCIAL PAUTA OMINT LED BELGRANO Y SARMIENTO MES DE AGOSTO/25',1.00,'8',57600.00,57600.00,0.00,0.00,0.00,2,12096.00,69696.00,'2025-11-12 17:15:56','2025-11-12 17:15:56','',NULL),(104,3845,104,'POR SERVICIOS DE COMERCIALIZACION MES DE AGOSTO/25 PANTALLA ACCESO ZAPATA Y RIOJA - OMINT ',1.00,'8',74000.00,74000.00,0.00,0.00,0.00,2,15540.00,89540.00,'2025-11-12 17:17:51','2025-11-12 17:17:51','',NULL),(105,3845,105,'ORDEN DE COMPRA Nº 4500013035',1.00,'8',2499341.00,2499341.00,0.00,0.00,0.00,2,524861.61,3024202.61,'2025-11-13 14:40:56','2025-11-13 14:40:56','',NULL);

--
