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

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

INSERT INTO `cta_cte_cliente_details` VALUES (1,8263,1004,40720,40835,13,1549,20,2,316065.23,'2024-05-24 16:01:55','2024-05-24 16:05:34','2024-05-24 16:05:34'),(2,8263,1004,40720,40835,23,1549,20,1,3880.82,'2024-05-24 16:01:55','2024-05-24 16:05:34','2024-05-24 16:05:34'),(3,8263,1004,40720,40835,256,1549,20,1,3160.65,'2024-05-24 16:01:55','2024-05-24 16:05:34','2024-05-24 16:05:34'),(4,8263,1004,40720,40835,251,1549,20,1,6258.09,'2024-05-24 16:01:55','2024-05-24 16:05:34','2024-05-24 16:05:34'),(5,8263,1004,40720,40835,757,1549,20,1,302765.64,'2024-05-24 16:01:55','2024-05-24 16:05:34','2024-05-24 16:05:34'),(6,8263,1004,40720,40835,757,1549,20,1,0.03,'2024-05-24 16:01:55','2024-05-24 16:05:34','2024-05-24 16:05:34'),(7,8263,1006,40720,40837,13,1552,20,2,534840.00,'2024-05-29 07:46:20','2024-05-29 07:46:20',NULL),(8,8263,1006,40720,40837,759,1552,20,1,534840.00,'2024-05-29 07:46:20','2024-05-29 07:46:20',NULL),(9,8263,1007,40720,40837,13,1552,20,2,429300.00,'2024-05-29 07:48:04','2024-05-29 07:48:04',NULL),(10,8263,1007,40720,40837,759,1552,20,1,429300.00,'2024-05-29 07:48:04','2024-05-29 07:48:04',NULL),(11,8263,1008,40720,40835,13,1552,20,2,316065.23,'2024-05-30 16:06:59','2024-05-30 16:06:59',NULL),(12,8263,1008,40720,40835,758,1552,20,1,316065.23,'2024-05-30 16:06:59','2024-05-30 16:06:59',NULL),(13,8263,1009,40720,40835,13,1552,20,2,184139.01,'2024-05-30 18:19:38','2024-05-30 18:19:38',NULL),(14,8263,1009,40720,40835,758,1552,20,1,184139.01,'2024-05-30 18:19:38','2024-05-30 18:19:38',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=1013 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,8263,1,1,NULL,0,NULL,'2024-04-18 17:55:01','2024-04-18 17:55:01',NULL),(2,8263,2,2,NULL,0,NULL,'2024-04-18 17:55:01','2024-04-18 17:55:01',NULL),(3,8263,3,3,NULL,0,NULL,'2024-04-18 17:55:01','2024-04-18 17:55:01',NULL),(4,8263,4,4,NULL,0,NULL,'2024-04-18 17:55:01','2024-04-18 17:55:01',NULL),(5,8263,5,5,NULL,0,NULL,'2024-04-18 17:55:01','2024-04-18 17:55:01',NULL),(6,8263,6,6,NULL,0,NULL,'2024-04-18 17:55:01','2024-04-18 17:55:01',NULL),(7,8263,7,7,NULL,0,NULL,'2024-04-18 17:55:02','2024-04-18 17:55:02',NULL),(8,8263,8,8,NULL,0,NULL,'2024-04-18 17:55:02','2024-04-18 17:55:02',NULL),(9,8263,9,9,NULL,0,NULL,'2024-04-18 17:55:02','2024-04-18 17:55:02',NULL),(10,8263,10,10,NULL,0,NULL,'2024-04-18 17:55:02','2024-04-18 17:55:02',NULL),(11,8263,11,11,NULL,0,NULL,'2024-04-18 17:55:02','2024-04-18 17:55:02',NULL),(12,8263,12,12,NULL,0,NULL,'2024-04-18 17:55:02','2024-04-18 17:55:02',NULL),(13,8263,13,13,NULL,0,NULL,'2024-04-18 17:55:02','2024-04-18 17:55:02',NULL),(14,8263,14,14,NULL,0,NULL,'2024-04-18 17:55:02','2024-04-18 17:55:02',NULL),(15,8263,15,15,NULL,0,NULL,'2024-04-18 17:55:02','2024-04-18 17:55:02',NULL),(16,8263,16,16,NULL,0,NULL,'2024-04-18 17:55:02','2024-04-18 17:55:02',NULL),(17,8263,17,17,NULL,0,NULL,'2024-04-18 17:55:02','2024-04-18 17:55:02',NULL),(18,8263,18,18,NULL,0,NULL,'2024-04-18 17:55:03','2024-04-18 17:55:03',NULL),(19,8263,19,19,NULL,0,NULL,'2024-04-18 17:55:03','2024-04-18 17:55:03',NULL),(20,8263,20,20,NULL,0,NULL,'2024-04-18 17:55:03','2024-04-18 17:55:03',NULL),(21,8263,21,21,NULL,0,NULL,'2024-04-18 17:55:03','2024-04-18 17:55:03',NULL),(22,8263,22,22,NULL,0,NULL,'2024-04-18 17:55:03','2024-04-18 17:55:03',NULL),(23,8263,23,23,NULL,0,NULL,'2024-04-18 17:55:03','2024-04-18 17:55:03',NULL),(24,8263,24,24,NULL,0,NULL,'2024-04-18 17:55:03','2024-04-18 17:55:03',NULL),(25,8263,25,25,NULL,0,NULL,'2024-04-18 17:55:04','2024-04-18 17:55:04',NULL),(26,8263,26,26,NULL,0,NULL,'2024-04-18 17:55:04','2024-04-18 17:55:04',NULL),(27,8263,27,27,NULL,0,NULL,'2024-04-18 17:55:04','2024-04-18 17:55:04',NULL),(28,8263,28,28,NULL,0,NULL,'2024-04-18 17:55:04','2024-04-18 17:55:04',NULL),(29,8263,29,29,NULL,0,NULL,'2024-04-18 17:55:04','2024-04-18 17:55:04',NULL),(30,8263,30,30,NULL,0,NULL,'2024-04-18 17:55:04','2024-04-18 17:55:04',NULL),(31,8263,31,31,NULL,0,NULL,'2024-04-18 17:55:05','2024-04-18 17:55:05',NULL),(32,8263,32,32,NULL,0,NULL,'2024-04-18 17:55:05','2024-04-18 17:55:05',NULL),(33,8263,33,33,NULL,0,NULL,'2024-04-18 17:55:05','2024-04-18 17:55:05',NULL),(34,8263,34,34,NULL,0,NULL,'2024-04-18 17:55:05','2024-04-18 17:55:05',NULL),(35,8263,35,35,NULL,0,NULL,'2024-04-18 17:55:05','2024-04-18 17:55:05',NULL),(36,8263,36,36,NULL,0,NULL,'2024-04-18 17:55:05','2024-04-18 17:55:05',NULL),(37,8263,37,37,NULL,0,NULL,'2024-04-18 17:55:05','2024-04-18 17:55:05',NULL),(38,8263,38,38,NULL,0,NULL,'2024-04-18 17:55:06','2024-04-18 17:55:06',NULL),(39,8263,39,39,NULL,0,NULL,'2024-04-18 17:55:06','2024-04-18 17:55:06',NULL),(40,8263,40,40,NULL,0,NULL,'2024-04-18 17:55:06','2024-04-18 17:55:06',NULL),(41,8263,41,41,NULL,0,NULL,'2024-04-18 17:55:06','2024-04-18 17:55:06',NULL),(42,8263,42,42,NULL,0,NULL,'2024-04-18 17:55:06','2024-04-18 17:55:06',NULL),(43,8263,43,43,NULL,0,NULL,'2024-04-18 17:55:06','2024-04-18 17:55:06',NULL),(44,8263,44,44,NULL,0,NULL,'2024-04-18 17:55:06','2024-04-18 17:55:06',NULL),(45,8263,45,45,NULL,0,NULL,'2024-04-18 17:55:06','2024-04-18 17:55:06',NULL),(46,8263,46,46,NULL,0,NULL,'2024-04-18 17:55:06','2024-04-18 17:55:06',NULL),(47,8263,47,47,NULL,0,NULL,'2024-04-18 17:55:06','2024-04-18 17:55:06',NULL),(48,8263,48,48,NULL,0,NULL,'2024-04-18 17:55:07','2024-04-18 17:55:07',NULL),(49,8263,49,49,NULL,0,NULL,'2024-04-18 17:55:07','2024-04-18 17:55:07',NULL),(50,8263,50,50,NULL,0,NULL,'2024-04-18 17:55:07','2024-04-18 17:55:07',NULL),(51,8263,51,51,NULL,0,NULL,'2024-04-18 17:55:07','2024-04-18 17:55:07',NULL),(52,8263,52,52,NULL,0,NULL,'2024-04-18 17:55:07','2024-04-18 17:55:07',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (53,8263,53,53,NULL,0,NULL,'2024-04-18 17:55:07','2024-04-18 17:55:07',NULL),(54,8263,54,54,NULL,0,NULL,'2024-04-18 17:55:07','2024-04-18 17:55:07',NULL),(55,8263,55,55,NULL,0,NULL,'2024-04-18 17:55:07','2024-04-18 17:55:07',NULL),(56,8263,56,56,NULL,0,NULL,'2024-04-18 17:55:07','2024-04-18 17:55:07',NULL),(57,8263,57,57,NULL,0,NULL,'2024-04-18 17:55:07','2024-04-18 17:55:07',NULL),(58,8263,58,58,NULL,0,NULL,'2024-04-18 17:55:07','2024-04-18 17:55:07',NULL),(59,8263,59,59,NULL,0,NULL,'2024-04-18 17:55:08','2024-04-18 17:55:08',NULL),(60,8263,60,60,NULL,0,NULL,'2024-04-18 17:55:08','2024-04-18 17:55:08',NULL),(61,8263,61,61,NULL,0,NULL,'2024-04-18 17:55:08','2024-04-18 17:55:08',NULL),(62,8263,62,62,NULL,0,NULL,'2024-04-18 17:55:08','2024-04-18 17:55:08',NULL),(63,8263,63,63,NULL,0,NULL,'2024-04-18 17:55:08','2024-04-18 17:55:08',NULL),(64,8263,64,64,NULL,0,NULL,'2024-04-18 17:55:08','2024-04-18 17:55:08',NULL),(65,8263,65,65,NULL,0,NULL,'2024-04-18 17:55:08','2024-04-18 17:55:08',NULL),(66,8263,66,66,NULL,0,NULL,'2024-04-18 17:55:08','2024-04-18 17:55:08',NULL),(67,8263,67,67,NULL,0,NULL,'2024-04-18 17:55:08','2024-04-18 17:55:08',NULL),(68,8263,68,68,NULL,0,NULL,'2024-04-18 17:55:08','2024-04-18 17:55:08',NULL),(69,8263,69,69,NULL,0,NULL,'2024-04-18 17:55:08','2024-04-18 17:55:08',NULL),(70,8263,70,70,NULL,0,NULL,'2024-04-18 17:55:08','2024-04-18 17:55:08',NULL),(71,8263,71,71,NULL,0,NULL,'2024-04-18 17:55:08','2024-04-18 17:55:08',NULL),(72,8263,72,72,NULL,0,NULL,'2024-04-18 17:55:09','2024-04-18 17:55:09',NULL),(73,8263,73,73,NULL,0,NULL,'2024-04-18 17:55:09','2024-04-18 17:55:09',NULL),(74,8263,74,74,NULL,0,NULL,'2024-04-18 17:55:09','2024-04-18 17:55:09',NULL),(75,8263,75,75,NULL,0,NULL,'2024-04-18 17:55:09','2024-04-18 17:55:09',NULL),(76,8263,76,76,NULL,0,NULL,'2024-04-18 17:55:09','2024-04-18 17:55:09',NULL),(77,8263,77,77,NULL,0,NULL,'2024-04-18 17:55:09','2024-04-18 17:55:09',NULL),(78,8263,78,78,NULL,0,NULL,'2024-04-18 17:55:09','2024-04-18 17:55:09',NULL),(79,8263,79,79,NULL,0,NULL,'2024-04-18 17:55:09','2024-04-18 17:55:09',NULL),(80,8263,80,80,NULL,0,NULL,'2024-04-18 17:55:09','2024-04-18 17:55:09',NULL),(81,8263,81,81,NULL,0,NULL,'2024-04-18 17:55:09','2024-04-18 17:55:09',NULL),(82,8263,82,82,NULL,0,NULL,'2024-04-18 17:55:09','2024-04-18 17:55:09',NULL),(83,8263,83,83,NULL,0,NULL,'2024-04-18 17:55:09','2024-04-18 17:55:09',NULL),(84,8263,84,84,NULL,0,NULL,'2024-04-18 17:55:09','2024-04-18 17:55:09',NULL),(85,8263,85,85,NULL,0,NULL,'2024-04-18 17:55:10','2024-04-18 17:55:10',NULL),(86,8263,86,86,NULL,0,NULL,'2024-04-18 17:55:10','2024-04-18 17:55:10',NULL),(87,8263,87,87,NULL,0,NULL,'2024-04-18 17:55:10','2024-04-18 17:55:10',NULL),(88,8263,88,88,NULL,0,NULL,'2024-04-18 17:55:10','2024-04-18 17:55:10',NULL),(89,8263,89,89,NULL,0,NULL,'2024-04-18 17:55:10','2024-04-18 17:55:10',NULL),(90,8263,90,90,NULL,0,NULL,'2024-04-18 17:55:10','2024-04-18 17:55:10',NULL),(91,8263,91,91,NULL,0,NULL,'2024-04-18 17:55:10','2024-04-18 17:55:10',NULL),(92,8263,92,92,NULL,0,NULL,'2024-04-18 17:55:10','2024-04-18 17:55:10',NULL),(93,8263,93,93,NULL,0,NULL,'2024-04-18 17:55:10','2024-04-18 17:55:10',NULL),(94,8263,94,94,NULL,0,NULL,'2024-04-18 17:55:10','2024-04-18 17:55:10',NULL),(95,8263,95,95,NULL,0,NULL,'2024-04-18 17:55:10','2024-04-18 17:55:10',NULL),(96,8263,96,96,NULL,0,NULL,'2024-04-18 17:55:10','2024-04-18 17:55:10',NULL),(97,8263,97,97,NULL,0,NULL,'2024-04-18 17:55:10','2024-04-18 17:55:10',NULL),(98,8263,98,98,NULL,0,NULL,'2024-04-18 17:55:11','2024-04-18 17:55:11',NULL),(99,8263,99,99,NULL,0,NULL,'2024-04-18 17:55:11','2024-04-18 17:55:11',NULL),(100,8263,100,100,NULL,0,NULL,'2024-04-18 17:55:11','2024-04-18 17:55:11',NULL),(101,8263,101,101,NULL,0,NULL,'2024-04-18 17:55:11','2024-04-18 17:55:11',NULL),(102,8263,102,102,NULL,0,NULL,'2024-04-18 17:55:11','2024-04-18 17:55:11',NULL),(103,8263,103,103,NULL,0,NULL,'2024-04-18 17:55:11','2024-04-18 17:55:11',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (104,8263,104,104,NULL,0,NULL,'2024-04-18 17:55:11','2024-04-18 17:55:11',NULL),(105,8263,105,105,NULL,0,NULL,'2024-04-18 17:55:11','2024-04-18 17:55:11',NULL),(106,8263,106,106,NULL,0,NULL,'2024-04-18 17:55:11','2024-04-18 17:55:11',NULL),(107,8263,107,107,NULL,0,NULL,'2024-04-18 17:55:11','2024-04-18 17:55:11',NULL),(108,8263,108,108,NULL,0,NULL,'2024-04-18 17:55:11','2024-04-18 17:55:11',NULL),(109,8263,109,109,NULL,0,NULL,'2024-04-18 17:55:11','2024-04-18 17:55:11',NULL),(110,8263,110,110,NULL,0,NULL,'2024-04-18 17:55:11','2024-04-18 17:55:11',NULL),(111,8263,111,111,NULL,0,NULL,'2024-04-18 17:55:11','2024-04-18 17:55:11',NULL),(112,8263,112,112,NULL,0,NULL,'2024-04-18 17:55:12','2024-04-18 17:55:12',NULL),(113,8263,113,113,NULL,0,NULL,'2024-04-18 17:55:12','2024-04-18 17:55:12',NULL),(114,8263,114,114,NULL,0,NULL,'2024-04-18 17:55:12','2024-04-18 17:55:12',NULL),(115,8263,115,115,NULL,0,NULL,'2024-04-18 17:55:12','2024-04-18 17:55:12',NULL),(116,8263,116,116,NULL,0,NULL,'2024-04-18 17:55:12','2024-04-18 17:55:12',NULL),(117,8263,117,117,NULL,0,NULL,'2024-04-18 17:55:12','2024-04-18 17:55:12',NULL),(118,8263,118,118,NULL,0,NULL,'2024-04-18 17:55:12','2024-04-18 17:55:12',NULL),(119,8263,119,119,NULL,0,NULL,'2024-04-18 17:55:12','2024-04-18 17:55:12',NULL),(120,8263,120,120,NULL,0,NULL,'2024-04-18 17:55:12','2024-04-18 17:55:12',NULL),(121,8263,121,121,NULL,0,NULL,'2024-04-18 17:55:12','2024-04-18 17:55:12',NULL),(122,8263,122,122,NULL,0,NULL,'2024-04-18 17:55:12','2024-04-18 17:55:12',NULL),(123,8263,123,123,NULL,0,NULL,'2024-04-18 17:55:12','2024-04-18 17:55:12',NULL),(124,8263,124,124,NULL,0,NULL,'2024-04-18 17:55:12','2024-04-18 17:55:12',NULL),(125,8263,125,125,NULL,0,NULL,'2024-04-18 17:55:12','2024-04-18 17:55:12',NULL),(126,8263,126,126,NULL,0,NULL,'2024-04-18 17:55:12','2024-04-18 17:55:12',NULL),(127,8263,127,127,NULL,0,NULL,'2024-04-18 17:55:13','2024-04-18 17:55:13',NULL),(128,8263,128,128,NULL,0,NULL,'2024-04-18 17:55:13','2024-04-18 17:55:13',NULL),(129,8263,129,129,NULL,0,NULL,'2024-04-18 17:55:13','2024-04-18 17:55:13',NULL),(130,8263,130,130,NULL,0,NULL,'2024-04-18 17:55:13','2024-04-18 17:55:13',NULL),(131,8263,131,131,NULL,0,NULL,'2024-04-18 17:55:13','2024-04-18 17:55:13',NULL),(132,8263,132,132,NULL,0,NULL,'2024-04-18 17:55:13','2024-04-18 17:55:13',NULL),(133,8263,133,133,NULL,0,NULL,'2024-04-18 17:55:13','2024-04-18 17:55:13',NULL),(134,8263,134,134,NULL,0,NULL,'2024-04-18 17:55:13','2024-04-18 17:55:13',NULL),(135,8263,135,135,NULL,0,NULL,'2024-04-18 17:55:13','2024-04-18 17:55:13',NULL),(136,8263,136,136,NULL,0,NULL,'2024-04-18 17:55:13','2024-04-18 17:55:13',NULL),(137,8263,137,137,NULL,0,NULL,'2024-04-18 17:55:13','2024-04-18 17:55:13',NULL),(138,8263,138,138,NULL,0,NULL,'2024-04-18 17:55:13','2024-04-18 17:55:13',NULL),(139,8263,139,139,NULL,0,NULL,'2024-04-18 17:55:13','2024-04-18 17:55:13',NULL),(140,8263,140,140,NULL,0,NULL,'2024-04-18 17:55:13','2024-04-18 17:55:13',NULL),(141,8263,141,141,NULL,0,NULL,'2024-04-18 17:55:13','2024-04-18 17:55:13',NULL),(142,8263,142,142,NULL,0,NULL,'2024-04-18 17:55:14','2024-04-18 17:55:14',NULL),(143,8263,143,143,NULL,0,NULL,'2024-04-18 17:55:14','2024-04-18 17:55:14',NULL),(144,8263,144,144,NULL,0,NULL,'2024-04-18 17:55:14','2024-04-18 17:55:14',NULL),(145,8263,145,145,NULL,0,NULL,'2024-04-18 17:55:14','2024-04-18 17:55:14',NULL),(146,8263,146,146,NULL,0,NULL,'2024-04-18 17:55:14','2024-04-18 17:55:14',NULL),(147,8263,147,147,NULL,0,NULL,'2024-04-18 17:55:14','2024-04-18 17:55:14',NULL),(148,8263,148,148,NULL,0,NULL,'2024-04-18 17:55:14','2024-04-18 17:55:14',NULL),(149,8263,149,149,NULL,0,NULL,'2024-04-18 17:55:14','2024-04-18 17:55:14',NULL),(150,8263,150,150,NULL,0,NULL,'2024-04-18 17:55:14','2024-04-18 17:55:14',NULL),(151,8263,151,151,NULL,0,NULL,'2024-04-18 17:55:14','2024-04-18 17:55:14',NULL),(152,8263,152,152,NULL,0,NULL,'2024-04-18 17:55:14','2024-04-18 17:55:14',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (153,8263,153,153,NULL,0,NULL,'2024-04-18 17:55:14','2024-04-18 17:55:14',NULL),(154,8263,154,154,NULL,0,NULL,'2024-04-18 17:55:14','2024-04-18 17:55:14',NULL),(155,8263,155,155,NULL,0,NULL,'2024-04-18 17:55:14','2024-04-18 17:55:14',NULL),(156,8263,156,156,NULL,0,NULL,'2024-04-18 17:55:15','2024-04-18 17:55:15',NULL),(157,8263,157,157,NULL,0,NULL,'2024-04-18 17:55:15','2024-04-18 17:55:15',NULL),(158,8263,158,158,NULL,0,NULL,'2024-04-18 17:55:15','2024-04-18 17:55:15',NULL),(159,8263,159,159,NULL,0,NULL,'2024-04-18 17:55:15','2024-04-18 17:55:15',NULL),(160,8263,160,160,NULL,0,NULL,'2024-04-18 17:55:15','2024-04-18 17:55:15',NULL),(161,8263,161,161,NULL,0,NULL,'2024-04-18 17:55:15','2024-04-18 17:55:15',NULL),(162,8263,162,162,NULL,0,NULL,'2024-04-18 17:55:15','2024-04-18 17:55:15',NULL),(163,8263,163,163,NULL,0,NULL,'2024-04-18 17:55:15','2024-04-18 17:55:15',NULL),(164,8263,164,164,NULL,0,NULL,'2024-04-18 17:55:15','2024-04-18 17:55:15',NULL),(165,8263,165,165,NULL,0,NULL,'2024-04-18 17:55:15','2024-04-18 17:55:15',NULL),(166,8263,166,166,NULL,0,NULL,'2024-04-18 17:55:15','2024-04-18 17:55:15',NULL),(167,8263,167,167,NULL,0,NULL,'2024-04-18 17:55:15','2024-04-18 17:55:15',NULL),(168,8263,168,168,NULL,0,NULL,'2024-04-18 17:55:15','2024-04-18 17:55:15',NULL),(169,8263,169,169,NULL,0,NULL,'2024-04-18 17:55:15','2024-04-18 17:55:15',NULL),(170,8263,170,170,NULL,0,NULL,'2024-04-18 17:55:15','2024-04-18 17:55:15',NULL),(171,8263,171,171,NULL,0,NULL,'2024-04-18 17:55:15','2024-04-18 17:55:15',NULL),(172,8263,172,172,NULL,0,NULL,'2024-04-18 17:55:16','2024-04-18 17:55:16',NULL),(173,8263,173,173,NULL,0,NULL,'2024-04-18 17:55:16','2024-04-18 17:55:16',NULL),(174,8263,174,174,NULL,0,NULL,'2024-04-18 17:55:16','2024-04-18 17:55:16',NULL),(175,8263,175,175,NULL,0,NULL,'2024-04-18 17:55:16','2024-04-18 17:55:16',NULL),(176,8263,176,176,NULL,0,NULL,'2024-04-18 17:55:16','2024-04-18 17:55:16',NULL),(177,8263,177,177,NULL,0,NULL,'2024-04-18 17:55:16','2024-04-18 17:55:16',NULL),(178,8263,178,178,NULL,0,NULL,'2024-04-18 17:55:16','2024-04-18 17:55:16',NULL),(179,8263,179,179,NULL,0,NULL,'2024-04-18 17:55:16','2024-04-18 17:55:16',NULL),(180,8263,180,180,NULL,0,NULL,'2024-04-18 17:55:16','2024-04-18 17:55:16',NULL),(181,8263,181,181,NULL,0,NULL,'2024-04-18 17:55:16','2024-04-18 17:55:16',NULL),(182,8263,182,182,NULL,0,NULL,'2024-04-18 17:55:16','2024-04-18 17:55:16',NULL),(183,8263,183,183,NULL,0,NULL,'2024-04-18 17:55:16','2024-04-18 17:55:16',NULL),(184,8263,184,184,NULL,0,NULL,'2024-04-18 17:55:16','2024-04-18 17:55:16',NULL),(185,8263,185,185,NULL,0,NULL,'2024-04-18 17:55:16','2024-04-18 17:55:16',NULL),(186,8263,186,186,NULL,0,NULL,'2024-04-18 17:55:17','2024-04-18 17:55:17',NULL),(187,8263,187,187,NULL,0,NULL,'2024-04-18 17:55:17','2024-04-18 17:55:17',NULL),(188,8263,188,188,NULL,0,NULL,'2024-04-18 17:55:17','2024-04-18 17:55:17',NULL),(189,8263,189,189,NULL,0,NULL,'2024-04-18 17:55:17','2024-04-18 17:55:17',NULL),(190,8263,190,190,NULL,0,NULL,'2024-04-18 17:55:17','2024-04-18 17:55:17',NULL),(191,8263,191,191,NULL,0,NULL,'2024-04-18 17:55:17','2024-04-18 17:55:17',NULL),(192,8263,192,192,NULL,0,NULL,'2024-04-18 17:55:17','2024-04-18 17:55:17',NULL),(193,8263,193,193,NULL,0,NULL,'2024-04-18 17:55:17','2024-04-18 17:55:17',NULL),(194,8263,194,194,NULL,0,NULL,'2024-04-18 17:55:17','2024-04-18 17:55:17',NULL),(195,8263,195,195,NULL,0,NULL,'2024-04-18 17:55:17','2024-04-18 17:55:17',NULL),(196,8263,196,196,NULL,0,NULL,'2024-04-18 17:55:17','2024-04-18 17:55:17',NULL),(197,8263,197,197,NULL,0,NULL,'2024-04-18 17:55:17','2024-04-18 17:55:17',NULL),(198,8263,198,198,NULL,0,NULL,'2024-04-18 17:55:17','2024-04-18 17:55:17',NULL),(199,8263,199,199,NULL,0,NULL,'2024-04-18 17:55:17','2024-04-18 17:55:17',NULL),(200,8263,200,200,NULL,0,NULL,'2024-04-18 17:55:18','2024-04-18 17:55:18',NULL),(201,8263,201,201,NULL,0,NULL,'2024-04-18 17:55:18','2024-04-18 17:55:18',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (202,8263,202,202,NULL,0,NULL,'2024-04-18 17:55:18','2024-04-18 17:55:18',NULL),(203,8263,203,203,NULL,0,NULL,'2024-04-18 17:55:18','2024-04-18 17:55:18',NULL),(204,8263,204,204,NULL,0,NULL,'2024-04-18 17:55:18','2024-04-18 17:55:18',NULL),(205,8263,205,205,NULL,0,NULL,'2024-04-18 17:55:18','2024-04-18 17:55:18',NULL),(206,8263,206,206,NULL,0,NULL,'2024-04-18 17:55:18','2024-04-18 17:55:18',NULL),(207,8263,207,207,NULL,0,NULL,'2024-04-18 17:55:18','2024-04-18 17:55:18',NULL),(208,8263,208,208,NULL,0,NULL,'2024-04-18 17:55:18','2024-04-18 17:55:18',NULL),(209,8263,209,209,NULL,0,NULL,'2024-04-18 17:55:18','2024-04-18 17:55:18',NULL),(210,8263,210,210,NULL,0,NULL,'2024-04-18 17:55:18','2024-04-18 17:55:18',NULL),(211,8263,211,211,NULL,0,NULL,'2024-04-18 17:55:18','2024-04-18 17:55:18',NULL),(212,8263,212,212,NULL,0,NULL,'2024-04-18 17:55:18','2024-04-18 17:55:18',NULL),(213,8263,213,213,NULL,0,NULL,'2024-04-18 17:55:18','2024-04-18 17:55:18',NULL),(214,8263,214,214,NULL,0,NULL,'2024-04-18 17:55:19','2024-04-18 17:55:19',NULL),(215,8263,215,215,NULL,0,NULL,'2024-04-18 17:55:19','2024-04-18 17:55:19',NULL),(216,8263,216,216,NULL,0,NULL,'2024-04-18 17:55:19','2024-04-18 17:55:19',NULL),(217,8263,217,217,NULL,0,NULL,'2024-04-18 17:55:19','2024-04-18 17:55:19',NULL),(218,8263,218,218,NULL,0,NULL,'2024-04-19 12:45:41','2024-04-19 12:45:41',NULL),(219,8263,219,219,NULL,0,NULL,'2024-04-19 12:45:41','2024-04-19 12:45:41',NULL),(220,8263,220,220,NULL,0,NULL,'2024-04-19 12:45:41','2024-04-19 12:45:41',NULL),(221,8263,221,221,NULL,0,NULL,'2024-04-19 12:45:41','2024-04-19 12:51:45','2024-04-19 12:51:45'),(222,8263,222,222,NULL,0,NULL,'2024-04-19 12:45:41','2024-04-19 12:45:41',NULL),(223,8263,223,223,NULL,0,NULL,'2024-04-19 12:45:41','2024-04-19 12:45:41',NULL),(224,8263,224,224,NULL,0,NULL,'2024-04-19 12:45:41','2024-04-19 12:45:41',NULL),(225,8263,225,225,NULL,0,NULL,'2024-04-19 12:45:41','2024-04-19 12:45:41',NULL),(226,8263,226,226,NULL,0,NULL,'2024-04-19 12:45:41','2024-04-19 12:45:41',NULL),(227,8263,227,227,NULL,0,NULL,'2024-04-19 12:45:41','2024-04-19 12:45:41',NULL),(228,8263,228,228,NULL,0,NULL,'2024-04-19 12:45:41','2024-04-22 11:29:45','2024-04-22 11:29:45'),(229,8263,229,229,NULL,0,NULL,'2024-04-19 12:45:41','2024-04-19 12:45:41',NULL),(230,8263,230,230,NULL,0,NULL,'2024-04-19 12:45:42','2024-04-19 12:45:42',NULL),(231,8263,231,231,NULL,0,NULL,'2024-04-19 12:45:42','2024-04-19 12:45:42',NULL),(232,8263,232,232,NULL,0,NULL,'2024-04-19 12:45:42','2024-04-19 12:45:42',NULL),(233,8263,233,233,NULL,0,NULL,'2024-04-19 12:45:42','2024-04-19 12:49:12','2024-04-19 12:49:12'),(234,8263,234,234,NULL,0,NULL,'2024-04-19 12:45:42','2024-04-19 12:45:42',NULL),(235,8263,235,235,NULL,0,NULL,'2024-04-19 12:45:42','2024-04-19 12:45:42',NULL),(236,8263,236,236,NULL,0,NULL,'2024-04-19 12:45:42','2024-04-19 12:45:42',NULL),(237,8263,237,237,NULL,0,NULL,'2024-04-19 12:45:42','2024-04-19 12:45:42',NULL),(238,8263,238,238,NULL,0,NULL,'2024-04-19 12:45:42','2024-04-19 12:45:42',NULL),(239,8263,239,233,NULL,0,NULL,'2024-04-19 12:49:12','2024-04-19 12:49:12',NULL),(240,8263,240,221,NULL,0,NULL,'2024-04-19 12:51:45','2024-04-22 12:04:45','2024-04-22 12:04:45'),(241,8263,241,239,NULL,0,NULL,'2024-04-19 13:24:35','2024-05-23 11:24:07','2024-05-23 11:24:07'),(242,8263,242,240,NULL,0,NULL,'2024-04-22 11:01:38','2024-04-22 11:01:38',NULL),(243,8263,243,241,NULL,0,NULL,'2024-04-22 11:10:32','2024-04-22 11:10:32',NULL),(244,8263,244,242,NULL,0,NULL,'2024-04-22 11:15:21','2024-05-21 17:47:51','2024-05-21 17:47:51'),(245,8263,245,228,NULL,0,NULL,'2024-04-22 11:29:45','2024-04-22 11:29:45',NULL),(246,8263,246,221,NULL,0,NULL,'2024-04-22 12:04:45','2024-04-22 12:04:45',NULL),(247,8263,247,244,NULL,0,NULL,'2024-05-21 09:19:43','2024-05-21 09:19:43',NULL),(248,8263,248,245,NULL,0,NULL,'2024-05-21 09:19:43','2024-05-21 09:19:43',NULL),(249,8263,249,246,NULL,0,NULL,'2024-05-21 09:19:43','2024-05-21 09:19:43',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (250,8263,250,247,NULL,0,NULL,'2024-05-21 09:19:43','2024-05-21 09:19:43',NULL),(251,8263,251,248,NULL,0,NULL,'2024-05-21 09:19:43','2024-05-21 09:19:43',NULL),(252,8263,252,249,NULL,0,NULL,'2024-05-21 09:19:43','2024-05-21 09:19:43',NULL),(253,8263,253,250,NULL,0,NULL,'2024-05-21 09:19:43','2024-05-21 09:19:43',NULL),(254,8263,254,251,NULL,0,NULL,'2024-05-21 09:19:44','2024-05-21 09:19:44',NULL),(255,8263,255,252,NULL,0,NULL,'2024-05-21 09:19:44','2024-05-21 09:19:44',NULL),(256,8263,256,253,NULL,0,NULL,'2024-05-21 09:19:44','2024-05-21 09:19:44',NULL),(257,8263,257,254,NULL,0,NULL,'2024-05-21 09:19:44','2024-05-21 09:19:44',NULL),(258,8263,258,255,NULL,0,NULL,'2024-05-21 09:19:44','2024-05-21 09:19:44',NULL),(259,8263,259,256,NULL,0,NULL,'2024-05-21 09:19:44','2024-05-21 09:19:44',NULL),(260,8263,260,257,NULL,0,NULL,'2024-05-21 09:19:44','2024-05-21 09:19:44',NULL),(261,8263,261,258,NULL,0,NULL,'2024-05-21 09:19:44','2024-05-21 09:19:44',NULL),(262,8263,262,259,NULL,0,NULL,'2024-05-21 09:19:44','2024-05-21 09:19:44',NULL),(263,8263,263,260,NULL,0,NULL,'2024-05-21 09:19:44','2024-05-21 09:19:44',NULL),(264,8263,264,261,NULL,0,NULL,'2024-05-21 09:19:44','2024-05-21 09:19:44',NULL),(265,8263,265,262,NULL,0,NULL,'2024-05-21 09:19:44','2024-05-21 09:19:44',NULL),(266,8263,266,263,NULL,0,NULL,'2024-05-21 09:19:44','2024-05-21 09:19:44',NULL),(267,8263,267,264,NULL,0,NULL,'2024-05-21 09:19:44','2024-05-21 09:19:44',NULL),(268,8263,268,265,NULL,0,NULL,'2024-05-21 09:19:45','2024-05-21 09:19:45',NULL),(269,8263,269,266,NULL,0,NULL,'2024-05-21 09:19:45','2024-05-21 09:19:45',NULL),(270,8263,270,267,NULL,0,NULL,'2024-05-21 09:19:45','2024-05-21 09:19:45',NULL),(271,8263,271,268,NULL,0,NULL,'2024-05-21 09:19:45','2024-05-21 09:19:45',NULL),(272,8263,272,269,NULL,0,NULL,'2024-05-21 09:19:45','2024-05-21 09:19:45',NULL),(273,8263,273,270,NULL,0,NULL,'2024-05-21 09:19:45','2024-05-21 09:19:45',NULL),(274,8263,274,271,NULL,0,NULL,'2024-05-21 09:19:45','2024-05-21 09:19:45',NULL),(275,8263,275,272,NULL,0,NULL,'2024-05-21 09:19:45','2024-05-21 09:19:45',NULL),(276,8263,276,273,NULL,0,NULL,'2024-05-21 09:19:45','2024-05-21 09:19:45',NULL),(277,8263,277,274,NULL,0,NULL,'2024-05-21 09:19:45','2024-05-21 09:19:45',NULL),(278,8263,278,275,NULL,0,NULL,'2024-05-21 09:19:45','2024-05-21 09:19:45',NULL),(279,8263,279,276,NULL,0,NULL,'2024-05-21 09:19:45','2024-05-21 09:19:45',NULL),(280,8263,280,277,NULL,0,NULL,'2024-05-21 09:19:45','2024-05-21 09:19:45',NULL),(281,8263,281,278,NULL,0,NULL,'2024-05-21 09:19:45','2024-05-21 09:19:45',NULL),(282,8263,282,279,NULL,0,NULL,'2024-05-21 09:19:45','2024-05-21 09:19:45',NULL),(283,8263,283,280,NULL,0,NULL,'2024-05-21 09:19:46','2024-05-21 09:19:46',NULL),(284,8263,284,281,NULL,0,NULL,'2024-05-21 09:19:46','2024-05-21 09:19:46',NULL),(285,8263,285,282,NULL,0,NULL,'2024-05-21 09:19:46','2024-05-21 09:19:46',NULL),(286,8263,286,283,NULL,0,NULL,'2024-05-21 09:19:46','2024-05-21 09:19:46',NULL),(287,8263,287,284,NULL,0,NULL,'2024-05-21 09:19:46','2024-05-21 09:19:46',NULL),(288,8263,288,285,NULL,0,NULL,'2024-05-21 09:19:46','2024-05-21 09:19:46',NULL),(289,8263,289,286,NULL,0,NULL,'2024-05-21 09:19:46','2024-05-21 09:19:46',NULL),(290,8263,290,287,NULL,0,NULL,'2024-05-21 09:19:46','2024-05-21 09:19:46',NULL),(291,8263,291,288,NULL,0,NULL,'2024-05-21 09:19:46','2024-05-21 09:19:46',NULL),(292,8263,292,289,NULL,0,NULL,'2024-05-21 09:19:46','2024-05-21 09:19:46',NULL),(293,8263,293,290,NULL,0,NULL,'2024-05-21 09:19:46','2024-05-21 09:19:46',NULL),(294,8263,294,291,NULL,0,NULL,'2024-05-21 09:19:46','2024-05-21 09:19:46',NULL),(295,8263,295,292,NULL,0,NULL,'2024-05-21 09:19:46','2024-05-21 09:19:46',NULL),(296,8263,296,293,NULL,0,NULL,'2024-05-21 09:19:46','2024-05-21 09:19:46',NULL),(297,8263,297,294,NULL,0,NULL,'2024-05-21 09:19:46','2024-05-21 09:19:46',NULL),(298,8263,298,295,NULL,0,NULL,'2024-05-21 09:19:46','2024-05-21 09:19:46',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (299,8263,299,296,NULL,0,NULL,'2024-05-21 09:19:46','2024-05-21 09:19:46',NULL),(300,8263,300,297,NULL,0,NULL,'2024-05-21 09:19:47','2024-05-21 09:19:47',NULL),(301,8263,301,298,NULL,0,NULL,'2024-05-21 09:19:47','2024-05-21 09:19:47',NULL),(302,8263,302,299,NULL,0,NULL,'2024-05-21 09:19:47','2024-05-21 09:19:47',NULL),(303,8263,303,300,NULL,0,NULL,'2024-05-21 09:19:47','2024-05-21 09:19:47',NULL),(304,8263,304,301,NULL,0,NULL,'2024-05-21 09:19:47','2024-05-21 09:19:47',NULL),(305,8263,305,302,NULL,0,NULL,'2024-05-21 09:19:47','2024-05-21 09:19:47',NULL),(306,8263,306,303,NULL,0,NULL,'2024-05-21 09:19:47','2024-05-21 09:19:47',NULL),(307,8263,307,304,NULL,0,NULL,'2024-05-21 09:19:47','2024-05-21 09:19:47',NULL),(308,8263,308,305,NULL,0,NULL,'2024-05-21 09:19:47','2024-05-21 09:19:47',NULL),(309,8263,309,306,NULL,0,NULL,'2024-05-21 09:19:47','2024-05-21 09:19:47',NULL),(310,8263,310,307,NULL,0,NULL,'2024-05-21 09:19:47','2024-05-21 09:19:47',NULL),(311,8263,311,308,NULL,0,NULL,'2024-05-21 09:19:47','2024-05-21 09:19:47',NULL),(312,8263,312,309,NULL,0,NULL,'2024-05-21 09:19:47','2024-05-21 09:19:47',NULL),(313,8263,313,310,NULL,0,NULL,'2024-05-21 09:19:47','2024-05-21 09:19:47',NULL),(314,8263,314,311,NULL,0,NULL,'2024-05-21 09:19:47','2024-05-21 09:19:47',NULL),(315,8263,315,312,NULL,0,NULL,'2024-05-21 09:19:47','2024-05-21 09:19:47',NULL),(316,8263,316,313,NULL,0,NULL,'2024-05-21 09:19:47','2024-05-21 09:19:47',NULL),(317,8263,317,314,NULL,0,NULL,'2024-05-21 09:19:47','2024-05-21 09:19:47',NULL),(318,8263,318,315,NULL,0,NULL,'2024-05-21 09:19:48','2024-05-21 09:19:48',NULL),(319,8263,319,316,NULL,0,NULL,'2024-05-21 09:19:48','2024-05-21 09:19:48',NULL),(320,8263,320,317,NULL,0,NULL,'2024-05-21 09:19:48','2024-05-21 09:19:48',NULL),(321,8263,321,318,NULL,0,NULL,'2024-05-21 09:19:48','2024-05-21 09:19:48',NULL),(322,8263,322,319,NULL,0,NULL,'2024-05-21 09:19:48','2024-05-21 09:19:48',NULL),(323,8263,323,320,NULL,0,NULL,'2024-05-21 09:19:48','2024-05-21 09:19:48',NULL),(324,8263,324,321,NULL,0,NULL,'2024-05-21 09:19:48','2024-05-21 09:19:48',NULL),(325,8263,325,322,NULL,0,NULL,'2024-05-21 09:19:48','2024-05-21 09:19:48',NULL),(326,8263,326,323,NULL,0,NULL,'2024-05-21 09:19:48','2024-05-21 09:19:48',NULL),(327,8263,327,324,NULL,0,NULL,'2024-05-21 09:20:07','2024-05-21 13:05:36','2024-05-21 13:05:36'),(328,8263,328,325,NULL,0,NULL,'2024-05-21 09:20:07','2024-05-21 13:05:19','2024-05-21 13:05:19'),(329,8263,329,326,NULL,0,NULL,'2024-05-21 09:20:07','2024-05-21 10:42:33','2024-05-21 10:42:33'),(330,8263,330,327,NULL,0,NULL,'2024-05-21 09:20:08','2024-05-21 13:04:52','2024-05-21 13:04:52'),(331,8263,331,328,NULL,0,NULL,'2024-05-21 09:20:08','2024-05-21 13:04:37','2024-05-21 13:04:37'),(332,8263,332,329,NULL,0,NULL,'2024-05-21 09:20:08','2024-05-21 13:04:22','2024-05-21 13:04:22'),(333,8263,333,330,NULL,0,NULL,'2024-05-21 09:20:08','2024-05-21 13:03:36','2024-05-21 13:03:36'),(334,8263,334,331,NULL,0,NULL,'2024-05-21 09:20:08','2024-05-21 13:03:14','2024-05-21 13:03:14'),(335,8263,335,332,NULL,0,NULL,'2024-05-21 09:20:08','2024-05-21 13:02:40','2024-05-21 13:02:40'),(336,8263,336,333,NULL,0,NULL,'2024-05-21 09:20:08','2024-05-21 13:01:41','2024-05-21 13:01:41'),(337,8263,337,334,NULL,0,NULL,'2024-05-21 09:20:08','2024-05-21 13:01:18','2024-05-21 13:01:18'),(338,8263,338,335,NULL,0,NULL,'2024-05-21 09:20:08','2024-05-21 12:08:37','2024-05-21 12:08:37'),(339,8263,339,336,NULL,0,NULL,'2024-05-21 09:20:08','2024-05-21 12:06:57','2024-05-21 12:06:57'),(340,8263,340,337,NULL,0,NULL,'2024-05-21 09:20:08','2024-05-21 12:02:58','2024-05-21 12:02:58'),(341,8263,341,338,NULL,0,NULL,'2024-05-21 09:20:08','2024-05-21 10:46:11','2024-05-21 10:46:11'),(342,8263,342,339,NULL,0,NULL,'2024-05-21 09:20:08','2024-05-21 11:50:03','2024-05-21 11:50:03'),(343,8263,343,340,NULL,0,NULL,'2024-05-21 09:20:08','2024-05-21 11:01:26','2024-05-21 11:01:26'),(344,8263,344,341,NULL,0,NULL,'2024-05-21 09:20:09','2024-05-21 12:02:19','2024-05-21 12:02:19');
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (345,8263,345,342,NULL,0,NULL,'2024-05-21 09:20:09','2024-05-21 09:20:09',NULL),(346,8263,346,343,NULL,0,NULL,'2024-05-21 09:20:09','2024-05-21 11:47:50','2024-05-21 11:47:50'),(347,8263,347,344,NULL,0,NULL,'2024-05-21 09:20:09','2024-05-21 11:03:23','2024-05-21 11:03:23'),(348,8263,348,345,NULL,0,NULL,'2024-05-21 09:20:09','2024-05-21 11:02:06','2024-05-21 11:02:06'),(349,8263,349,346,NULL,0,NULL,'2024-05-21 09:20:09','2024-05-21 11:00:45','2024-05-21 11:00:45'),(350,8263,350,347,NULL,0,NULL,'2024-05-21 09:20:09','2024-05-21 11:00:29','2024-05-21 11:00:29'),(351,8263,351,348,NULL,0,NULL,'2024-05-21 09:20:09','2024-05-21 11:45:24','2024-05-21 11:45:24'),(352,8263,352,349,NULL,0,NULL,'2024-05-21 09:20:09','2024-05-21 09:20:09',NULL),(353,8263,353,350,NULL,0,NULL,'2024-05-21 09:20:09','2024-05-21 09:20:09',NULL),(354,8263,354,351,NULL,0,NULL,'2024-05-21 09:20:09','2024-05-21 10:58:49','2024-05-21 10:58:49'),(355,8263,355,326,NULL,0,NULL,'2024-05-21 10:42:33','2024-05-21 10:42:33',NULL),(356,8263,356,338,NULL,0,NULL,'2024-05-21 10:46:11','2024-05-21 10:47:21','2024-05-21 10:47:21'),(357,8263,357,338,NULL,0,NULL,'2024-05-21 10:47:21','2024-05-21 10:55:43','2024-05-21 10:55:43'),(358,8263,358,338,NULL,0,NULL,'2024-05-21 10:55:43','2024-05-21 10:55:43',NULL),(359,8263,359,351,NULL,0,NULL,'2024-05-21 10:58:49','2024-05-21 10:58:49',NULL),(360,8263,360,347,NULL,0,NULL,'2024-05-21 11:00:29','2024-05-21 11:00:29',NULL),(361,8263,361,346,NULL,0,NULL,'2024-05-21 11:00:45','2024-05-21 11:00:45',NULL),(362,8263,362,340,NULL,0,NULL,'2024-05-21 11:01:26','2024-05-21 11:01:26',NULL),(363,8263,363,345,NULL,0,NULL,'2024-05-21 11:02:06','2024-05-21 11:02:06',NULL),(364,8263,364,344,NULL,0,NULL,'2024-05-21 11:03:23','2024-05-21 11:03:23',NULL),(365,8263,365,348,NULL,0,NULL,'2024-05-21 11:45:24','2024-05-21 12:55:41','2024-05-21 12:55:41'),(366,8263,366,343,NULL,0,NULL,'2024-05-21 11:47:50','2024-05-21 11:47:50',NULL),(367,8263,367,339,NULL,0,NULL,'2024-05-21 11:50:03','2024-05-21 13:56:46','2024-05-21 13:56:46'),(368,8263,368,341,NULL,0,NULL,'2024-05-21 12:02:19','2024-05-21 12:02:19',NULL),(369,8263,369,337,NULL,0,NULL,'2024-05-21 12:02:58','2024-05-21 12:02:58',NULL),(370,8263,370,336,NULL,0,NULL,'2024-05-21 12:06:57','2024-05-21 12:06:57',NULL),(371,8263,371,335,NULL,0,NULL,'2024-05-21 12:08:37','2024-05-21 12:08:37',NULL),(372,8263,372,348,NULL,0,NULL,'2024-05-21 12:55:41','2024-05-21 12:58:11','2024-05-21 12:58:11'),(373,8263,373,348,NULL,0,NULL,'2024-05-21 12:58:11','2024-05-21 12:58:11',NULL),(374,8263,374,334,NULL,0,NULL,'2024-05-21 13:01:18','2024-05-21 13:01:18',NULL),(375,8263,375,333,NULL,0,NULL,'2024-05-21 13:01:41','2024-05-21 13:01:41',NULL),(376,8263,376,332,NULL,0,NULL,'2024-05-21 13:02:40','2024-05-21 13:02:40',NULL),(377,8263,377,331,NULL,0,NULL,'2024-05-21 13:03:14','2024-05-21 13:03:14',NULL),(378,8263,378,330,NULL,0,NULL,'2024-05-21 13:03:36','2024-05-21 13:03:36',NULL),(379,8263,379,329,NULL,0,NULL,'2024-05-21 13:04:22','2024-05-21 13:04:22',NULL),(380,8263,380,328,NULL,0,NULL,'2024-05-21 13:04:37','2024-05-21 13:04:37',NULL),(381,8263,381,327,NULL,0,NULL,'2024-05-21 13:04:52','2024-05-21 13:04:52',NULL),(382,8263,382,325,NULL,0,NULL,'2024-05-21 13:05:19','2024-05-21 13:05:19',NULL),(383,8263,383,324,NULL,0,NULL,'2024-05-21 13:05:36','2024-05-21 13:05:36',NULL),(384,8263,384,339,NULL,0,NULL,'2024-05-21 13:56:46','2024-05-21 13:56:46',NULL),(385,8263,385,353,NULL,0,NULL,'2024-05-21 16:04:08','2024-05-21 16:04:08',NULL),(386,8263,386,354,NULL,0,NULL,'2024-05-21 16:06:56','2024-05-21 16:06:56',NULL),(387,8263,387,355,NULL,0,NULL,'2024-05-21 16:11:18','2024-05-21 16:11:18',NULL),(388,8263,388,356,NULL,0,NULL,'2024-05-21 16:15:10','2024-05-21 16:15:10',NULL),(389,8263,389,242,NULL,0,NULL,'2024-05-21 17:47:51','2024-05-21 17:47:51',NULL),(390,8263,390,357,NULL,0,NULL,'2024-05-23 10:22:38','2024-05-23 10:22:38',NULL),(391,8263,391,358,NULL,0,NULL,'2024-05-23 10:22:39','2024-05-23 10:22:39',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (392,8263,392,359,NULL,0,NULL,'2024-05-23 10:22:39','2024-05-23 10:22:39',NULL),(393,8263,393,360,NULL,0,NULL,'2024-05-23 10:22:39','2024-05-23 10:22:39',NULL),(394,8263,394,361,NULL,0,NULL,'2024-05-23 10:22:39','2024-05-23 10:22:39',NULL),(395,8263,395,362,NULL,0,NULL,'2024-05-23 10:22:39','2024-05-23 10:22:39',NULL),(396,8263,396,363,NULL,0,NULL,'2024-05-23 10:22:40','2024-05-23 10:22:40',NULL),(397,8263,397,364,NULL,0,NULL,'2024-05-23 10:22:40','2024-05-23 10:22:40',NULL),(398,8263,398,365,NULL,0,NULL,'2024-05-23 10:22:40','2024-05-23 10:22:40',NULL),(399,8263,399,366,NULL,0,NULL,'2024-05-23 10:22:40','2024-05-23 10:22:40',NULL),(400,8263,400,367,NULL,0,NULL,'2024-05-23 10:22:41','2024-05-23 10:22:41',NULL),(401,8263,401,368,NULL,0,NULL,'2024-05-23 10:22:41','2024-05-23 10:22:41',NULL),(402,8263,402,369,NULL,0,NULL,'2024-05-23 10:22:41','2024-05-23 10:22:41',NULL),(403,8263,403,370,NULL,0,NULL,'2024-05-23 10:22:41','2024-05-23 10:22:41',NULL),(404,8263,404,371,NULL,0,NULL,'2024-05-23 10:22:41','2024-05-23 10:22:41',NULL),(405,8263,405,372,NULL,0,NULL,'2024-05-23 10:22:41','2024-05-23 10:22:41',NULL),(406,8263,406,373,NULL,0,NULL,'2024-05-23 10:22:41','2024-05-23 10:22:41',NULL),(407,8263,407,374,NULL,0,NULL,'2024-05-23 10:22:42','2024-05-23 10:22:42',NULL),(408,8263,408,375,NULL,0,NULL,'2024-05-23 10:22:42','2024-05-23 10:22:42',NULL),(409,8263,409,376,NULL,0,NULL,'2024-05-23 10:22:42','2024-05-23 10:22:42',NULL),(410,8263,410,377,NULL,0,NULL,'2024-05-23 10:22:42','2024-05-23 10:22:42',NULL),(411,8263,411,378,NULL,0,NULL,'2024-05-23 10:22:42','2024-05-23 10:22:42',NULL),(412,8263,412,379,NULL,0,NULL,'2024-05-23 10:22:43','2024-05-23 10:22:43',NULL),(413,8263,413,380,NULL,0,NULL,'2024-05-23 10:22:43','2024-05-23 10:22:43',NULL),(414,8263,414,381,NULL,0,NULL,'2024-05-23 10:22:43','2024-05-23 10:22:43',NULL),(415,8263,415,382,NULL,0,NULL,'2024-05-23 10:22:43','2024-05-23 10:22:43',NULL),(416,8263,416,383,NULL,0,NULL,'2024-05-23 10:22:43','2024-05-23 10:22:43',NULL),(417,8263,417,384,NULL,0,NULL,'2024-05-23 10:22:43','2024-05-23 10:22:43',NULL),(418,8263,418,385,NULL,0,NULL,'2024-05-23 10:22:43','2024-05-23 10:22:43',NULL),(419,8263,419,386,NULL,0,NULL,'2024-05-23 10:22:44','2024-05-23 10:22:44',NULL),(420,8263,420,387,NULL,0,NULL,'2024-05-23 10:22:44','2024-05-23 10:22:44',NULL),(421,8263,421,388,NULL,0,NULL,'2024-05-23 10:22:44','2024-05-23 10:22:44',NULL),(422,8263,422,389,NULL,0,NULL,'2024-05-23 10:22:44','2024-05-23 10:22:44',NULL),(423,8263,423,390,NULL,0,NULL,'2024-05-23 10:22:44','2024-05-23 10:22:44',NULL),(424,8263,424,391,NULL,0,NULL,'2024-05-23 10:22:45','2024-05-23 10:22:45',NULL),(425,8263,425,392,NULL,0,NULL,'2024-05-23 10:22:45','2024-05-23 10:22:45',NULL),(426,8263,426,393,NULL,0,NULL,'2024-05-23 10:22:45','2024-05-23 10:22:45',NULL),(427,8263,427,394,NULL,0,NULL,'2024-05-23 10:22:45','2024-05-23 10:22:45',NULL),(428,8263,428,395,NULL,0,NULL,'2024-05-23 10:22:45','2024-05-23 10:22:45',NULL),(429,8263,429,396,NULL,0,NULL,'2024-05-23 10:22:46','2024-05-23 10:22:46',NULL),(430,8263,430,397,NULL,0,NULL,'2024-05-23 10:22:46','2024-05-23 10:22:46',NULL),(431,8263,431,398,NULL,0,NULL,'2024-05-23 10:22:46','2024-05-23 10:22:46',NULL),(432,8263,432,399,NULL,0,NULL,'2024-05-23 10:22:46','2024-05-23 10:22:46',NULL),(433,8263,433,400,NULL,0,NULL,'2024-05-23 10:22:46','2024-05-23 10:22:46',NULL),(434,8263,434,401,NULL,0,NULL,'2024-05-23 10:22:47','2024-05-23 10:22:47',NULL),(435,8263,435,402,NULL,0,NULL,'2024-05-23 10:22:47','2024-05-23 10:22:47',NULL),(436,8263,436,403,NULL,0,NULL,'2024-05-23 10:22:47','2024-05-23 10:22:47',NULL),(437,8263,437,404,NULL,0,NULL,'2024-05-23 10:22:47','2024-05-23 10:22:47',NULL),(438,8263,438,405,NULL,0,NULL,'2024-05-23 10:22:47','2024-05-23 10:22:47',NULL),(439,8263,439,406,NULL,0,NULL,'2024-05-23 10:22:47','2024-05-23 10:22:47',NULL),(440,8263,440,407,NULL,0,NULL,'2024-05-23 10:22:48','2024-05-23 10:22:48',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (441,8263,441,408,NULL,0,NULL,'2024-05-23 10:22:48','2024-05-23 10:22:48',NULL),(442,8263,442,409,NULL,0,NULL,'2024-05-23 10:22:48','2024-05-23 10:22:48',NULL),(443,8263,443,410,NULL,0,NULL,'2024-05-23 10:22:48','2024-05-23 10:22:48',NULL),(444,8263,444,411,NULL,0,NULL,'2024-05-23 10:22:48','2024-05-23 10:22:48',NULL),(445,8263,445,412,NULL,0,NULL,'2024-05-23 10:22:48','2024-05-23 10:22:48',NULL),(446,8263,446,413,NULL,0,NULL,'2024-05-23 10:22:48','2024-05-23 10:22:48',NULL),(447,8263,447,414,NULL,0,NULL,'2024-05-23 10:22:49','2024-05-23 10:22:49',NULL),(448,8263,448,415,NULL,0,NULL,'2024-05-23 10:22:49','2024-05-23 10:22:49',NULL),(449,8263,449,416,NULL,0,NULL,'2024-05-23 10:22:49','2024-05-23 10:22:49',NULL),(450,8263,450,417,NULL,0,NULL,'2024-05-23 10:22:49','2024-05-23 10:22:49',NULL),(451,8263,451,418,NULL,0,NULL,'2024-05-23 10:22:49','2024-05-23 10:22:49',NULL),(452,8263,452,419,NULL,0,NULL,'2024-05-23 10:22:49','2024-05-23 10:22:49',NULL),(453,8263,453,420,NULL,0,NULL,'2024-05-23 10:22:50','2024-05-23 10:22:50',NULL),(454,8263,454,421,NULL,0,NULL,'2024-05-23 10:22:50','2024-05-23 10:22:50',NULL),(455,8263,455,422,NULL,0,NULL,'2024-05-23 10:22:50','2024-05-23 10:22:50',NULL),(456,8263,456,423,NULL,0,NULL,'2024-05-23 10:22:50','2024-05-23 10:22:50',NULL),(457,8263,457,424,NULL,0,NULL,'2024-05-23 10:22:51','2024-05-23 10:22:51',NULL),(458,8263,458,425,NULL,0,NULL,'2024-05-23 10:22:51','2024-05-23 10:22:51',NULL),(459,8263,459,426,NULL,0,NULL,'2024-05-23 10:22:51','2024-05-23 10:22:51',NULL),(460,8263,460,427,NULL,0,NULL,'2024-05-23 10:22:51','2024-05-23 10:22:51',NULL),(461,8263,461,428,NULL,0,NULL,'2024-05-23 10:22:51','2024-05-23 10:22:51',NULL),(462,8263,462,429,NULL,0,NULL,'2024-05-23 10:22:52','2024-05-23 10:22:52',NULL),(463,8263,463,430,NULL,0,NULL,'2024-05-23 10:22:52','2024-05-23 10:22:52',NULL),(464,8263,464,431,NULL,0,NULL,'2024-05-23 10:22:52','2024-05-23 10:22:52',NULL),(465,8263,465,432,NULL,0,NULL,'2024-05-23 10:22:52','2024-05-23 10:22:52',NULL),(466,8263,466,433,NULL,0,NULL,'2024-05-23 10:22:52','2024-05-23 10:22:52',NULL),(467,8263,467,434,NULL,0,NULL,'2024-05-23 10:22:53','2024-05-23 10:22:53',NULL),(468,8263,468,435,NULL,0,NULL,'2024-05-23 10:22:53','2024-05-23 10:22:53',NULL),(469,8263,469,436,NULL,0,NULL,'2024-05-23 10:22:53','2024-05-23 10:22:53',NULL),(470,8263,470,437,NULL,0,NULL,'2024-05-23 10:22:53','2024-05-23 10:22:53',NULL),(471,8263,471,438,NULL,0,NULL,'2024-05-23 10:22:54','2024-05-23 10:22:54',NULL),(472,8263,472,439,NULL,0,NULL,'2024-05-23 10:22:54','2024-05-23 10:22:54',NULL),(473,8263,473,440,NULL,0,NULL,'2024-05-23 10:22:54','2024-05-23 10:22:54',NULL),(474,8263,474,441,NULL,0,NULL,'2024-05-23 10:22:54','2024-05-23 10:22:54',NULL),(475,8263,475,442,NULL,0,NULL,'2024-05-23 10:22:55','2024-05-23 10:22:55',NULL),(476,8263,476,443,NULL,0,NULL,'2024-05-23 10:22:55','2024-05-23 10:22:55',NULL),(477,8263,477,444,NULL,0,NULL,'2024-05-23 10:22:55','2024-05-23 10:22:55',NULL),(478,8263,478,445,NULL,0,NULL,'2024-05-23 10:22:55','2024-05-23 10:22:55',NULL),(479,8263,479,446,NULL,0,NULL,'2024-05-23 10:22:55','2024-05-23 10:22:55',NULL),(480,8263,480,447,NULL,0,NULL,'2024-05-23 10:22:56','2024-05-23 10:22:56',NULL),(481,8263,481,448,NULL,0,NULL,'2024-05-23 10:22:56','2024-05-23 10:22:56',NULL),(482,8263,482,449,NULL,0,NULL,'2024-05-23 10:22:56','2024-05-23 10:22:56',NULL),(483,8263,483,450,NULL,0,NULL,'2024-05-23 10:22:56','2024-05-23 10:22:56',NULL),(484,8263,484,451,NULL,0,NULL,'2024-05-23 10:22:56','2024-05-23 10:22:56',NULL),(485,8263,485,452,NULL,0,NULL,'2024-05-23 10:22:57','2024-05-23 10:22:57',NULL),(486,8263,486,453,NULL,0,NULL,'2024-05-23 10:22:57','2024-05-23 10:22:57',NULL),(487,8263,487,454,NULL,0,NULL,'2024-05-23 10:22:57','2024-05-23 10:22:57',NULL),(488,8263,488,455,NULL,0,NULL,'2024-05-23 10:22:57','2024-05-23 10:22:57',NULL),(489,8263,489,456,NULL,0,NULL,'2024-05-23 10:22:57','2024-05-23 10:22:57',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (490,8263,490,457,NULL,0,NULL,'2024-05-23 10:22:57','2024-05-23 10:22:57',NULL),(491,8263,491,458,NULL,0,NULL,'2024-05-23 10:22:57','2024-05-23 10:22:57',NULL),(492,8263,492,459,NULL,0,NULL,'2024-05-23 10:22:58','2024-05-23 10:22:58',NULL),(493,8263,493,460,NULL,0,NULL,'2024-05-23 10:22:58','2024-05-23 10:22:58',NULL),(494,8263,494,461,NULL,0,NULL,'2024-05-23 10:22:58','2024-05-23 10:22:58',NULL),(495,8263,495,462,NULL,0,NULL,'2024-05-23 10:22:58','2024-05-23 10:22:58',NULL),(496,8263,496,463,NULL,0,NULL,'2024-05-23 10:22:58','2024-05-23 10:22:58',NULL),(497,8263,497,464,NULL,0,NULL,'2024-05-23 10:22:58','2024-05-23 10:22:58',NULL),(498,8263,498,465,NULL,0,NULL,'2024-05-23 10:22:58','2024-05-23 10:22:58',NULL),(499,8263,499,466,NULL,0,NULL,'2024-05-23 10:22:58','2024-05-23 10:22:58',NULL),(500,8263,500,467,NULL,0,NULL,'2024-05-23 10:22:58','2024-05-23 10:22:58',NULL),(501,8263,501,468,NULL,0,NULL,'2024-05-23 10:22:58','2024-05-23 10:22:58',NULL),(502,8263,502,469,NULL,0,NULL,'2024-05-23 10:22:59','2024-05-23 10:22:59',NULL),(503,8263,503,470,NULL,0,NULL,'2024-05-23 10:22:59','2024-05-23 10:22:59',NULL),(504,8263,504,471,NULL,0,NULL,'2024-05-23 10:22:59','2024-05-23 10:22:59',NULL),(505,8263,505,472,NULL,0,NULL,'2024-05-23 10:22:59','2024-05-23 10:22:59',NULL),(506,8263,506,473,NULL,0,NULL,'2024-05-23 10:22:59','2024-05-23 10:22:59',NULL),(507,8263,507,474,NULL,0,NULL,'2024-05-23 10:22:59','2024-05-23 10:22:59',NULL),(508,8263,508,475,NULL,0,NULL,'2024-05-23 10:22:59','2024-05-23 10:22:59',NULL),(509,8263,509,476,NULL,0,NULL,'2024-05-23 10:22:59','2024-05-23 10:22:59',NULL),(510,8263,510,477,NULL,0,NULL,'2024-05-23 10:22:59','2024-05-23 10:22:59',NULL),(511,8263,511,478,NULL,0,NULL,'2024-05-23 10:23:00','2024-05-23 10:23:00',NULL),(512,8263,512,479,NULL,0,NULL,'2024-05-23 10:23:00','2024-05-23 10:23:00',NULL),(513,8263,513,480,NULL,0,NULL,'2024-05-23 10:23:00','2024-05-23 10:23:00',NULL),(514,8263,514,481,NULL,0,NULL,'2024-05-23 10:23:00','2024-05-23 10:23:00',NULL),(515,8263,515,482,NULL,0,NULL,'2024-05-23 10:23:00','2024-05-23 10:23:00',NULL),(516,8263,516,483,NULL,0,NULL,'2024-05-23 10:23:00','2024-05-23 10:23:00',NULL),(517,8263,517,484,NULL,0,NULL,'2024-05-23 10:23:00','2024-05-23 10:23:00',NULL),(518,8263,518,485,NULL,0,NULL,'2024-05-23 10:23:01','2024-05-23 10:23:01',NULL),(519,8263,519,486,NULL,0,NULL,'2024-05-23 10:23:01','2024-05-23 10:23:01',NULL),(520,8263,520,487,NULL,0,NULL,'2024-05-23 10:23:01','2024-05-23 10:23:01',NULL),(521,8263,521,488,NULL,0,NULL,'2024-05-23 10:23:01','2024-05-23 10:23:01',NULL),(522,8263,522,489,NULL,0,NULL,'2024-05-23 10:23:01','2024-05-23 10:23:01',NULL),(523,8263,523,490,NULL,0,NULL,'2024-05-23 10:23:01','2024-05-23 10:23:01',NULL),(524,8263,524,491,NULL,0,NULL,'2024-05-23 10:23:02','2024-05-23 10:23:02',NULL),(525,8263,525,492,NULL,0,NULL,'2024-05-23 10:23:02','2024-05-23 10:23:02',NULL),(526,8263,526,493,NULL,0,NULL,'2024-05-23 10:23:02','2024-05-23 10:23:02',NULL),(527,8263,527,494,NULL,0,NULL,'2024-05-23 10:23:02','2024-05-23 10:23:02',NULL),(528,8263,528,495,NULL,0,NULL,'2024-05-23 10:23:02','2024-05-23 10:23:02',NULL),(529,8263,529,496,NULL,0,NULL,'2024-05-23 10:23:02','2024-05-23 10:23:02',NULL),(530,8263,530,497,NULL,0,NULL,'2024-05-23 10:23:03','2024-05-23 10:23:03',NULL),(531,8263,531,498,NULL,0,NULL,'2024-05-23 10:23:03','2024-05-23 10:23:03',NULL),(532,8263,532,499,NULL,0,NULL,'2024-05-23 10:23:03','2024-05-23 10:23:03',NULL),(533,8263,533,500,NULL,0,NULL,'2024-05-23 10:23:03','2024-05-23 10:23:03',NULL),(534,8263,534,501,NULL,0,NULL,'2024-05-23 10:23:03','2024-05-23 10:23:03',NULL),(535,8263,535,502,NULL,0,NULL,'2024-05-23 10:23:04','2024-05-23 10:23:04',NULL),(536,8263,536,503,NULL,0,NULL,'2024-05-23 10:23:04','2024-05-23 10:23:04',NULL),(537,8263,537,504,NULL,0,NULL,'2024-05-23 10:23:04','2024-05-23 10:23:04',NULL),(538,8263,538,505,NULL,0,NULL,'2024-05-23 10:23:04','2024-05-23 10:23:04',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (539,8263,539,506,NULL,0,NULL,'2024-05-23 10:23:04','2024-05-23 10:23:04',NULL),(540,8263,540,507,NULL,0,NULL,'2024-05-23 10:23:05','2024-05-23 10:23:05',NULL),(541,8263,541,508,NULL,0,NULL,'2024-05-23 10:23:05','2024-05-23 10:23:05',NULL),(542,8263,542,509,NULL,0,NULL,'2024-05-23 10:23:05','2024-05-23 10:23:05',NULL),(543,8263,543,510,NULL,0,NULL,'2024-05-23 10:23:05','2024-05-23 10:23:05',NULL),(544,8263,544,511,NULL,0,NULL,'2024-05-23 10:23:05','2024-05-23 10:23:05',NULL),(545,8263,545,512,NULL,0,NULL,'2024-05-23 10:23:05','2024-05-23 10:23:05',NULL),(546,8263,546,513,NULL,0,NULL,'2024-05-23 10:23:06','2024-05-23 10:23:06',NULL),(547,8263,547,514,NULL,0,NULL,'2024-05-23 10:23:06','2024-05-23 10:23:06',NULL),(548,8263,548,515,NULL,0,NULL,'2024-05-23 10:23:06','2024-05-23 10:23:06',NULL),(549,8263,549,516,NULL,0,NULL,'2024-05-23 10:23:06','2024-05-23 10:23:06',NULL),(550,8263,550,517,NULL,0,NULL,'2024-05-23 10:23:06','2024-05-23 10:23:06',NULL),(551,8263,551,518,NULL,0,NULL,'2024-05-23 10:23:07','2024-05-23 10:23:07',NULL),(552,8263,552,519,NULL,0,NULL,'2024-05-23 10:23:07','2024-05-23 10:23:07',NULL),(553,8263,553,520,NULL,0,NULL,'2024-05-23 10:23:07','2024-05-23 10:23:07',NULL),(554,8263,554,521,NULL,0,NULL,'2024-05-23 10:23:07','2024-05-23 10:23:07',NULL),(555,8263,555,522,NULL,0,NULL,'2024-05-23 10:23:07','2024-05-23 10:23:07',NULL),(556,8263,556,523,NULL,0,NULL,'2024-05-23 10:23:08','2024-05-23 10:23:08',NULL),(557,8263,557,524,NULL,0,NULL,'2024-05-23 10:23:08','2024-05-23 10:23:08',NULL),(558,8263,558,525,NULL,0,NULL,'2024-05-23 10:23:08','2024-05-23 10:23:08',NULL),(559,8263,559,526,NULL,0,NULL,'2024-05-23 10:23:08','2024-05-23 10:23:08',NULL),(560,8263,560,527,NULL,0,NULL,'2024-05-23 10:23:08','2024-05-23 10:23:08',NULL),(561,8263,561,528,NULL,0,NULL,'2024-05-23 10:23:09','2024-05-23 10:23:09',NULL),(562,8263,562,529,NULL,0,NULL,'2024-05-23 10:23:09','2024-05-23 10:23:09',NULL),(563,8263,563,530,NULL,0,NULL,'2024-05-23 10:23:09','2024-05-23 10:23:09',NULL),(564,8263,564,531,NULL,0,NULL,'2024-05-23 10:23:09','2024-05-23 10:23:09',NULL),(565,8263,565,532,NULL,0,NULL,'2024-05-23 10:23:09','2024-05-23 10:23:09',NULL),(566,8263,566,533,NULL,0,NULL,'2024-05-23 10:23:10','2024-05-23 10:23:10',NULL),(567,8263,567,534,NULL,0,NULL,'2024-05-23 10:23:10','2024-05-23 10:23:10',NULL),(568,8263,568,535,NULL,0,NULL,'2024-05-23 10:23:10','2024-05-23 10:23:10',NULL),(569,8263,569,536,NULL,0,NULL,'2024-05-23 10:23:10','2024-05-23 10:23:10',NULL),(570,8263,570,537,NULL,0,NULL,'2024-05-23 10:23:10','2024-05-23 10:23:10',NULL),(571,8263,571,538,NULL,0,NULL,'2024-05-23 10:23:10','2024-05-23 10:23:10',NULL),(572,8263,572,539,NULL,0,NULL,'2024-05-23 10:23:11','2024-05-23 10:23:11',NULL),(573,8263,573,540,NULL,0,NULL,'2024-05-23 10:23:11','2024-05-23 10:23:11',NULL),(574,8263,574,541,NULL,0,NULL,'2024-05-23 10:23:11','2024-05-23 10:23:11',NULL),(575,8263,575,542,NULL,0,NULL,'2024-05-23 10:23:11','2024-05-23 10:23:11',NULL),(576,8263,576,543,NULL,0,NULL,'2024-05-23 10:23:11','2024-05-23 10:23:11',NULL),(577,8263,577,544,NULL,0,NULL,'2024-05-23 10:23:11','2024-05-23 10:23:11',NULL),(578,8263,578,545,NULL,0,NULL,'2024-05-23 10:23:12','2024-05-23 10:23:12',NULL),(579,8263,579,546,NULL,0,NULL,'2024-05-23 10:23:12','2024-05-23 10:23:12',NULL),(580,8263,580,547,NULL,0,NULL,'2024-05-23 10:23:12','2024-05-23 10:23:12',NULL),(581,8263,581,548,NULL,0,NULL,'2024-05-23 10:23:12','2024-05-23 10:23:12',NULL),(582,8263,582,549,NULL,0,NULL,'2024-05-23 10:23:12','2024-05-23 10:23:12',NULL),(583,8263,583,550,NULL,0,NULL,'2024-05-23 10:23:13','2024-05-23 10:23:13',NULL),(584,8263,584,551,NULL,0,NULL,'2024-05-23 10:23:13','2024-05-23 10:23:13',NULL),(585,8263,585,552,NULL,0,NULL,'2024-05-23 10:23:13','2024-05-23 10:23:13',NULL),(586,8263,586,553,NULL,0,NULL,'2024-05-23 10:23:13','2024-05-23 10:23:13',NULL),(587,8263,587,554,NULL,0,NULL,'2024-05-23 10:23:13','2024-05-23 10:23:13',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (588,8263,588,555,NULL,0,NULL,'2024-05-23 10:23:14','2024-05-23 10:23:14',NULL),(589,8263,589,556,NULL,0,NULL,'2024-05-23 10:23:14','2024-05-23 10:23:14',NULL),(590,8263,590,557,NULL,0,NULL,'2024-05-23 10:23:14','2024-05-23 10:23:14',NULL),(591,8263,591,558,NULL,0,NULL,'2024-05-23 10:23:14','2024-05-23 10:23:14',NULL),(592,8263,592,559,NULL,0,NULL,'2024-05-23 10:23:14','2024-05-23 10:23:14',NULL),(593,8263,593,560,NULL,0,NULL,'2024-05-23 10:23:15','2024-05-23 10:23:15',NULL),(594,8263,594,561,NULL,0,NULL,'2024-05-23 10:23:15','2024-05-23 10:23:15',NULL),(595,8263,595,562,NULL,0,NULL,'2024-05-23 10:23:15','2024-05-23 10:23:15',NULL),(596,8263,596,563,NULL,0,NULL,'2024-05-23 10:23:15','2024-05-23 10:23:15',NULL),(597,8263,597,564,NULL,0,NULL,'2024-05-23 10:23:15','2024-05-23 10:23:15',NULL),(598,8263,598,565,NULL,0,NULL,'2024-05-23 10:23:16','2024-05-23 10:23:16',NULL),(599,8263,599,566,NULL,0,NULL,'2024-05-23 10:23:16','2024-05-23 10:23:16',NULL),(600,8263,600,567,NULL,0,NULL,'2024-05-23 10:23:16','2024-05-23 10:23:16',NULL),(601,8263,601,568,NULL,0,NULL,'2024-05-23 10:23:16','2024-05-23 10:23:16',NULL),(602,8263,602,569,NULL,0,NULL,'2024-05-23 10:23:16','2024-05-23 10:23:16',NULL),(603,8263,603,570,NULL,0,NULL,'2024-05-23 10:23:16','2024-05-23 10:23:16',NULL),(604,8263,604,571,NULL,0,NULL,'2024-05-23 10:23:17','2024-05-23 10:23:17',NULL),(605,8263,605,572,NULL,0,NULL,'2024-05-23 10:23:17','2024-05-23 10:23:17',NULL),(606,8263,606,573,NULL,0,NULL,'2024-05-23 10:23:17','2024-05-23 10:23:17',NULL),(607,8263,607,574,NULL,0,NULL,'2024-05-23 10:23:17','2024-05-23 10:23:17',NULL),(608,8263,608,575,NULL,0,NULL,'2024-05-23 10:23:17','2024-05-23 10:23:17',NULL),(609,8263,609,576,NULL,0,NULL,'2024-05-23 10:23:17','2024-05-23 10:23:17',NULL),(610,8263,610,577,NULL,0,NULL,'2024-05-23 10:23:18','2024-05-23 10:23:18',NULL),(611,8263,611,578,NULL,0,NULL,'2024-05-23 10:23:18','2024-05-23 10:23:18',NULL),(612,8263,612,579,NULL,0,NULL,'2024-05-23 10:23:18','2024-05-23 10:23:18',NULL),(613,8263,613,580,NULL,0,NULL,'2024-05-23 10:23:18','2024-05-23 10:23:18',NULL),(614,8263,614,581,NULL,0,NULL,'2024-05-23 10:23:18','2024-05-23 10:23:18',NULL),(615,8263,615,582,NULL,0,NULL,'2024-05-23 10:23:19','2024-05-23 10:23:19',NULL),(616,8263,616,583,NULL,0,NULL,'2024-05-23 10:23:19','2024-05-23 10:23:19',NULL),(617,8263,617,584,NULL,0,NULL,'2024-05-23 10:23:19','2024-05-23 10:23:19',NULL),(618,8263,618,585,NULL,0,NULL,'2024-05-23 10:23:19','2024-05-23 10:23:19',NULL),(619,8263,619,586,NULL,0,NULL,'2024-05-23 10:23:19','2024-05-23 10:23:19',NULL),(620,8263,620,587,NULL,0,NULL,'2024-05-23 10:23:20','2024-05-23 10:23:20',NULL),(621,8263,621,588,NULL,0,NULL,'2024-05-23 10:23:20','2024-05-23 10:23:20',NULL),(622,8263,622,589,NULL,0,NULL,'2024-05-23 10:23:20','2024-05-23 10:23:20',NULL),(623,8263,623,590,NULL,0,NULL,'2024-05-23 10:23:20','2024-05-23 10:23:20',NULL),(624,8263,624,591,NULL,0,NULL,'2024-05-23 10:23:21','2024-05-23 10:23:21',NULL),(625,8263,625,592,NULL,0,NULL,'2024-05-23 10:23:21','2024-05-23 10:23:21',NULL),(626,8263,626,593,NULL,0,NULL,'2024-05-23 10:23:21','2024-05-23 10:23:21',NULL),(627,8263,627,594,NULL,0,NULL,'2024-05-23 10:23:21','2024-05-23 10:23:21',NULL),(628,8263,628,595,NULL,0,NULL,'2024-05-23 10:23:21','2024-05-23 10:23:21',NULL),(629,8263,629,596,NULL,0,NULL,'2024-05-23 10:23:21','2024-05-23 10:23:21',NULL),(630,8263,630,597,NULL,0,NULL,'2024-05-23 10:23:22','2024-05-23 10:23:22',NULL),(631,8263,631,598,NULL,0,NULL,'2024-05-23 10:23:22','2024-05-23 10:23:22',NULL),(632,8263,632,599,NULL,0,NULL,'2024-05-23 10:23:22','2024-05-23 10:23:22',NULL),(633,8263,633,600,NULL,0,NULL,'2024-05-23 10:23:22','2024-05-23 10:23:22',NULL),(634,8263,634,601,NULL,0,NULL,'2024-05-23 10:23:22','2024-05-23 10:23:22',NULL),(635,8263,635,602,NULL,0,NULL,'2024-05-23 10:23:22','2024-05-23 10:23:22',NULL),(636,8263,636,603,NULL,0,NULL,'2024-05-23 10:23:23','2024-05-23 10:23:23',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (637,8263,637,604,NULL,0,NULL,'2024-05-23 10:23:23','2024-05-23 10:23:23',NULL),(638,8263,638,605,NULL,0,NULL,'2024-05-23 10:23:23','2024-05-23 10:23:23',NULL),(639,8263,639,606,NULL,0,NULL,'2024-05-23 10:23:23','2024-05-23 10:23:23',NULL),(640,8263,640,607,NULL,0,NULL,'2024-05-23 10:23:23','2024-05-23 10:23:23',NULL),(641,8263,641,608,NULL,0,NULL,'2024-05-23 10:23:23','2024-05-23 10:23:23',NULL),(642,8263,642,609,NULL,0,NULL,'2024-05-23 10:23:24','2024-05-23 10:23:24',NULL),(643,8263,643,610,NULL,0,NULL,'2024-05-23 10:23:24','2024-05-23 10:23:24',NULL),(644,8263,644,611,NULL,0,NULL,'2024-05-23 10:23:24','2024-05-23 10:23:24',NULL),(645,8263,645,612,NULL,0,NULL,'2024-05-23 10:23:24','2024-05-23 10:23:24',NULL),(646,8263,646,613,NULL,0,NULL,'2024-05-23 10:23:24','2024-05-23 10:23:24',NULL),(647,8263,647,614,NULL,0,NULL,'2024-05-23 10:23:24','2024-05-23 10:23:24',NULL),(648,8263,648,615,NULL,0,NULL,'2024-05-23 10:23:24','2024-05-23 10:23:24',NULL),(649,8263,649,616,NULL,0,NULL,'2024-05-23 10:23:25','2024-05-23 10:23:25',NULL),(650,8263,650,617,NULL,0,NULL,'2024-05-23 10:23:25','2024-05-23 10:23:25',NULL),(651,8263,651,618,NULL,0,NULL,'2024-05-23 10:23:25','2024-05-23 10:23:25',NULL),(652,8263,652,619,NULL,0,NULL,'2024-05-23 10:23:25','2024-05-23 10:23:25',NULL),(653,8263,653,620,NULL,0,NULL,'2024-05-23 10:23:25','2024-05-23 10:23:25',NULL),(654,8263,654,621,NULL,0,NULL,'2024-05-23 10:23:25','2024-05-23 10:23:25',NULL),(655,8263,655,622,NULL,0,NULL,'2024-05-23 10:23:25','2024-05-23 10:23:25',NULL),(656,8263,656,623,NULL,0,NULL,'2024-05-23 10:23:26','2024-05-23 10:23:26',NULL),(657,8263,657,624,NULL,0,NULL,'2024-05-23 10:23:26','2024-05-23 10:23:26',NULL),(658,8263,658,625,NULL,0,NULL,'2024-05-23 10:23:26','2024-05-23 10:23:26',NULL),(659,8263,659,626,NULL,0,NULL,'2024-05-23 10:23:26','2024-05-23 10:23:26',NULL),(660,8263,660,627,NULL,0,NULL,'2024-05-23 10:23:26','2024-05-23 10:23:26',NULL),(661,8263,661,628,NULL,0,NULL,'2024-05-23 10:23:26','2024-05-23 10:23:26',NULL),(662,8263,662,629,NULL,0,NULL,'2024-05-23 10:23:26','2024-05-23 10:23:26',NULL),(663,8263,663,630,NULL,0,NULL,'2024-05-23 10:23:26','2024-05-23 10:23:26',NULL),(664,8263,664,631,NULL,0,NULL,'2024-05-23 10:23:26','2024-05-23 10:23:26',NULL),(665,8263,665,632,NULL,0,NULL,'2024-05-23 10:23:27','2024-05-23 10:23:27',NULL),(666,8263,666,633,NULL,0,NULL,'2024-05-23 10:23:27','2024-05-23 10:23:27',NULL),(667,8263,667,634,NULL,0,NULL,'2024-05-23 10:23:27','2024-05-23 10:23:27',NULL),(668,8263,668,635,NULL,0,NULL,'2024-05-23 10:23:27','2024-05-23 10:23:27',NULL),(669,8263,669,636,NULL,0,NULL,'2024-05-23 10:23:27','2024-05-23 10:23:27',NULL),(670,8263,670,637,NULL,0,NULL,'2024-05-23 10:23:27','2024-05-23 10:23:27',NULL),(671,8263,671,638,NULL,0,NULL,'2024-05-23 10:23:27','2024-05-23 10:23:27',NULL),(672,8263,672,639,NULL,0,NULL,'2024-05-23 10:23:28','2024-05-23 10:23:28',NULL),(673,8263,673,640,NULL,0,NULL,'2024-05-23 10:23:28','2024-05-23 10:23:28',NULL),(674,8263,674,641,NULL,0,NULL,'2024-05-23 10:23:28','2024-05-23 10:23:28',NULL),(675,8263,675,642,NULL,0,NULL,'2024-05-23 10:23:28','2024-05-23 10:23:28',NULL),(676,8263,676,643,NULL,0,NULL,'2024-05-23 10:23:28','2024-05-23 10:23:28',NULL),(677,8263,677,644,NULL,0,NULL,'2024-05-23 10:23:28','2024-05-23 10:23:28',NULL),(678,8263,678,645,NULL,0,NULL,'2024-05-23 10:23:29','2024-05-23 10:23:29',NULL),(679,8263,679,646,NULL,0,NULL,'2024-05-23 10:23:29','2024-05-23 10:23:29',NULL),(680,8263,680,647,NULL,0,NULL,'2024-05-23 10:23:29','2024-05-23 10:23:29',NULL),(681,8263,681,648,NULL,0,NULL,'2024-05-23 10:23:29','2024-05-23 10:23:29',NULL),(682,8263,682,649,NULL,0,NULL,'2024-05-23 10:23:29','2024-05-23 10:23:29',NULL),(683,8263,683,650,NULL,0,NULL,'2024-05-23 10:23:30','2024-05-23 10:23:30',NULL),(684,8263,684,651,NULL,0,NULL,'2024-05-23 10:23:30','2024-05-23 10:23:30',NULL),(685,8263,685,652,NULL,0,NULL,'2024-05-23 10:23:30','2024-05-23 10:23:30',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (686,8263,686,653,NULL,0,NULL,'2024-05-23 10:23:30','2024-05-23 10:23:30',NULL),(687,8263,687,654,NULL,0,NULL,'2024-05-23 10:23:30','2024-05-23 10:23:30',NULL),(688,8263,688,655,NULL,0,NULL,'2024-05-23 10:23:31','2024-05-23 10:23:31',NULL),(689,8263,689,656,NULL,0,NULL,'2024-05-23 10:23:31','2024-05-23 10:23:31',NULL),(690,8263,690,657,NULL,0,NULL,'2024-05-23 10:23:31','2024-05-23 10:23:31',NULL),(691,8263,691,658,NULL,0,NULL,'2024-05-23 10:23:31','2024-05-23 10:23:31',NULL),(692,8263,692,659,NULL,0,NULL,'2024-05-23 10:23:32','2024-05-23 10:23:32',NULL),(693,8263,693,660,NULL,0,NULL,'2024-05-23 10:23:32','2024-05-23 10:23:32',NULL),(694,8263,694,661,NULL,0,NULL,'2024-05-23 10:23:32','2024-05-23 10:23:32',NULL),(695,8263,695,662,NULL,0,NULL,'2024-05-23 10:23:32','2024-05-23 10:23:32',NULL),(696,8263,696,663,NULL,0,NULL,'2024-05-23 10:23:32','2024-05-23 10:23:32',NULL),(697,8263,697,664,NULL,0,NULL,'2024-05-23 10:23:32','2024-05-23 10:23:32',NULL),(698,8263,698,665,NULL,0,NULL,'2024-05-23 10:23:33','2024-05-23 10:23:33',NULL),(699,8263,699,666,NULL,0,NULL,'2024-05-23 10:23:33','2024-05-23 10:23:33',NULL),(700,8263,700,667,NULL,0,NULL,'2024-05-23 10:23:33','2024-05-23 10:23:33',NULL),(701,8263,701,668,NULL,0,NULL,'2024-05-23 10:23:33','2024-05-23 10:23:33',NULL),(702,8263,702,669,NULL,0,NULL,'2024-05-23 10:23:33','2024-05-23 10:23:33',NULL),(703,8263,703,670,NULL,0,NULL,'2024-05-23 10:23:33','2024-05-23 10:23:33',NULL),(704,8263,704,671,NULL,0,NULL,'2024-05-23 10:23:34','2024-05-23 10:23:34',NULL),(705,8263,705,672,NULL,0,NULL,'2024-05-23 10:23:34','2024-05-23 10:23:34',NULL),(706,8263,706,673,NULL,0,NULL,'2024-05-23 10:23:34','2024-05-23 10:23:34',NULL),(707,8263,707,674,NULL,0,NULL,'2024-05-23 10:23:34','2024-05-23 10:23:34',NULL),(708,8263,708,675,NULL,0,NULL,'2024-05-23 10:23:34','2024-05-23 10:23:34',NULL),(709,8263,709,676,NULL,0,NULL,'2024-05-23 10:23:34','2024-05-23 10:23:34',NULL),(710,8263,710,677,NULL,0,NULL,'2024-05-23 10:23:35','2024-05-23 10:23:35',NULL),(711,8263,711,678,NULL,0,NULL,'2024-05-23 10:23:35','2024-05-23 10:23:35',NULL),(712,8263,712,679,NULL,0,NULL,'2024-05-23 10:23:35','2024-05-23 10:23:35',NULL),(713,8263,713,680,NULL,0,NULL,'2024-05-23 10:23:35','2024-05-23 10:23:35',NULL),(714,8263,714,681,NULL,0,NULL,'2024-05-23 10:23:35','2024-05-23 10:23:35',NULL),(715,8263,715,682,NULL,0,NULL,'2024-05-23 10:23:36','2024-05-23 10:23:36',NULL),(716,8263,716,683,NULL,0,NULL,'2024-05-23 10:23:36','2024-05-23 10:23:36',NULL),(717,8263,717,684,NULL,0,NULL,'2024-05-23 10:23:36','2024-05-23 10:23:36',NULL),(718,8263,718,685,NULL,0,NULL,'2024-05-23 10:23:36','2024-05-23 10:23:36',NULL),(719,8263,719,686,NULL,0,NULL,'2024-05-23 10:23:36','2024-05-23 10:23:36',NULL),(720,8263,720,687,NULL,0,NULL,'2024-05-23 10:23:36','2024-05-23 10:23:36',NULL),(721,8263,721,688,NULL,0,NULL,'2024-05-23 10:23:37','2024-05-23 10:23:37',NULL),(722,8263,722,689,NULL,0,NULL,'2024-05-23 10:23:37','2024-05-23 10:23:37',NULL),(723,8263,723,690,NULL,0,NULL,'2024-05-23 10:23:37','2024-05-23 10:23:37',NULL),(724,8263,724,691,NULL,0,NULL,'2024-05-23 10:23:37','2024-05-23 10:23:37',NULL),(725,8263,725,692,NULL,0,NULL,'2024-05-23 10:23:37','2024-05-23 10:23:37',NULL),(726,8263,726,693,NULL,0,NULL,'2024-05-23 10:23:37','2024-05-23 10:23:37',NULL),(727,8263,727,694,NULL,0,NULL,'2024-05-23 10:23:37','2024-05-23 10:23:37',NULL),(728,8263,728,695,NULL,0,NULL,'2024-05-23 10:23:37','2024-05-23 10:23:37',NULL),(729,8263,729,696,NULL,0,NULL,'2024-05-23 10:23:37','2024-05-23 10:23:37',NULL),(730,8263,730,697,NULL,0,NULL,'2024-05-23 10:23:38','2024-05-23 10:23:38',NULL),(731,8263,731,698,NULL,0,NULL,'2024-05-23 10:23:38','2024-05-23 10:23:38',NULL),(732,8263,732,699,NULL,0,NULL,'2024-05-23 10:23:38','2024-05-23 10:23:38',NULL),(733,8263,733,700,NULL,0,NULL,'2024-05-23 10:23:38','2024-05-23 10:23:38',NULL),(734,8263,734,701,NULL,0,NULL,'2024-05-23 10:23:38','2024-05-23 10:23:38',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (735,8263,735,702,NULL,0,NULL,'2024-05-23 10:23:38','2024-05-23 10:23:38',NULL),(736,8263,736,703,NULL,0,NULL,'2024-05-23 10:23:38','2024-05-23 10:23:38',NULL),(737,8263,737,704,NULL,0,NULL,'2024-05-23 10:23:39','2024-05-23 10:23:39',NULL),(738,8263,738,705,NULL,0,NULL,'2024-05-23 10:23:39','2024-05-23 10:23:39',NULL),(739,8263,739,706,NULL,0,NULL,'2024-05-23 10:23:39','2024-05-23 10:23:39',NULL),(740,8263,740,707,NULL,0,NULL,'2024-05-23 10:23:39','2024-05-23 10:23:39',NULL),(741,8263,741,708,NULL,0,NULL,'2024-05-23 10:23:39','2024-05-23 10:23:39',NULL),(742,8263,742,709,NULL,0,NULL,'2024-05-23 10:23:39','2024-05-23 10:23:39',NULL),(743,8263,743,710,NULL,0,NULL,'2024-05-23 10:23:40','2024-05-23 10:23:40',NULL),(744,8263,744,711,NULL,0,NULL,'2024-05-23 10:23:40','2024-05-23 10:23:40',NULL),(745,8263,745,712,NULL,0,NULL,'2024-05-23 10:23:40','2024-05-23 10:23:40',NULL),(746,8263,746,713,NULL,0,NULL,'2024-05-23 10:23:40','2024-05-23 10:23:40',NULL),(747,8263,747,714,NULL,0,NULL,'2024-05-23 10:23:40','2024-05-23 10:23:40',NULL),(748,8263,748,715,NULL,0,NULL,'2024-05-23 10:23:40','2024-05-23 10:23:40',NULL),(749,8263,749,716,NULL,0,NULL,'2024-05-23 10:23:40','2024-05-23 10:23:40',NULL),(750,8263,750,717,NULL,0,NULL,'2024-05-23 10:23:41','2024-05-23 10:23:41',NULL),(751,8263,751,718,NULL,0,NULL,'2024-05-23 10:23:41','2024-05-23 10:23:41',NULL),(752,8263,752,719,NULL,0,NULL,'2024-05-23 10:23:41','2024-05-23 10:23:41',NULL),(753,8263,753,720,NULL,0,NULL,'2024-05-23 10:23:41','2024-05-23 10:23:41',NULL),(754,8263,754,721,NULL,0,NULL,'2024-05-23 10:23:41','2024-05-23 10:23:41',NULL),(755,8263,755,722,NULL,0,NULL,'2024-05-23 10:23:41','2024-05-23 10:23:41',NULL),(756,8263,756,723,NULL,0,NULL,'2024-05-23 10:23:42','2024-05-23 10:23:42',NULL),(757,8263,757,724,NULL,0,NULL,'2024-05-23 10:23:42','2024-05-23 10:23:42',NULL),(758,8263,758,725,NULL,0,NULL,'2024-05-23 10:23:42','2024-05-23 10:23:42',NULL),(759,8263,759,726,NULL,0,NULL,'2024-05-23 10:23:42','2024-05-23 10:23:42',NULL),(760,8263,760,727,NULL,0,NULL,'2024-05-23 10:23:42','2024-05-23 10:23:42',NULL),(761,8263,761,728,NULL,0,NULL,'2024-05-23 10:23:42','2024-05-23 10:23:42',NULL),(762,8263,762,729,NULL,0,NULL,'2024-05-23 10:23:42','2024-05-23 10:23:42',NULL),(763,8263,763,730,NULL,0,NULL,'2024-05-23 10:23:43','2024-05-23 10:23:43',NULL),(764,8263,764,731,NULL,0,NULL,'2024-05-23 10:23:43','2024-05-23 10:23:43',NULL),(765,8263,765,732,NULL,0,NULL,'2024-05-23 10:23:43','2024-05-23 10:23:43',NULL),(766,8263,766,733,NULL,0,NULL,'2024-05-23 10:23:43','2024-05-23 10:23:43',NULL),(767,8263,767,734,NULL,0,NULL,'2024-05-23 10:23:43','2024-05-23 10:23:43',NULL),(768,8263,768,735,NULL,0,NULL,'2024-05-23 10:23:43','2024-05-23 10:23:43',NULL),(769,8263,769,736,NULL,0,NULL,'2024-05-23 10:23:43','2024-05-23 10:23:43',NULL),(770,8263,770,737,NULL,0,NULL,'2024-05-23 10:23:44','2024-05-23 10:23:44',NULL),(771,8263,771,738,NULL,0,NULL,'2024-05-23 10:23:44','2024-05-23 10:23:44',NULL),(772,8263,772,739,NULL,0,NULL,'2024-05-23 10:23:44','2024-05-23 10:23:44',NULL),(773,8263,773,740,NULL,0,NULL,'2024-05-23 10:23:44','2024-05-23 10:23:44',NULL),(774,8263,774,741,NULL,0,NULL,'2024-05-23 10:23:44','2024-05-23 10:23:44',NULL),(775,8263,775,742,NULL,0,NULL,'2024-05-23 10:23:44','2024-05-23 10:23:44',NULL),(776,8263,776,743,NULL,0,NULL,'2024-05-23 10:23:44','2024-05-23 10:23:44',NULL),(777,8263,777,744,NULL,0,NULL,'2024-05-23 10:23:45','2024-05-23 10:23:45',NULL),(778,8263,778,745,NULL,0,NULL,'2024-05-23 10:23:45','2024-05-23 10:23:45',NULL),(779,8263,779,746,NULL,0,NULL,'2024-05-23 10:32:52','2024-05-23 10:32:52',NULL),(780,8263,780,747,NULL,0,NULL,'2024-05-23 10:32:52','2024-05-23 10:32:52',NULL),(781,8263,781,748,NULL,0,NULL,'2024-05-23 10:32:52','2024-05-23 10:32:52',NULL),(782,8263,782,749,NULL,0,NULL,'2024-05-23 10:32:52','2024-05-23 10:32:52',NULL),(783,8263,783,750,NULL,0,NULL,'2024-05-23 10:32:52','2024-05-23 10:32:52',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (784,8263,784,751,NULL,0,NULL,'2024-05-23 10:32:53','2024-05-23 10:32:53',NULL),(785,8263,785,752,NULL,0,NULL,'2024-05-23 10:32:53','2024-05-23 10:32:53',NULL),(786,8263,786,753,NULL,0,NULL,'2024-05-23 10:32:53','2024-05-23 10:32:53',NULL),(787,8263,787,754,NULL,0,NULL,'2024-05-23 10:32:53','2024-05-23 10:32:53',NULL),(788,8263,788,755,NULL,0,NULL,'2024-05-23 10:32:53','2024-05-23 10:32:53',NULL),(789,8263,789,756,NULL,0,NULL,'2024-05-23 10:32:54','2024-05-23 10:32:54',NULL),(790,8263,790,757,NULL,0,NULL,'2024-05-23 10:32:54','2024-05-23 10:32:54',NULL),(791,8263,791,758,NULL,0,NULL,'2024-05-23 10:32:54','2024-05-23 10:32:54',NULL),(792,8263,792,759,NULL,0,NULL,'2024-05-23 10:32:54','2024-05-23 10:32:54',NULL),(793,8263,793,760,NULL,0,NULL,'2024-05-23 10:32:54','2024-05-23 10:32:54',NULL),(794,8263,794,761,NULL,0,NULL,'2024-05-23 10:32:54','2024-05-23 10:32:54',NULL),(795,8263,795,762,NULL,0,NULL,'2024-05-23 10:32:54','2024-05-23 10:32:54',NULL),(796,8263,796,763,NULL,0,NULL,'2024-05-23 10:32:55','2024-05-23 10:32:55',NULL),(797,8263,797,764,NULL,0,NULL,'2024-05-23 10:32:55','2024-05-23 10:32:55',NULL),(798,8263,798,765,NULL,0,NULL,'2024-05-23 10:32:55','2024-05-23 10:32:55',NULL),(799,8263,799,766,NULL,0,NULL,'2024-05-23 10:32:55','2024-05-23 10:32:55',NULL),(800,8263,800,767,NULL,0,NULL,'2024-05-23 10:32:55','2024-05-23 10:32:55',NULL),(801,8263,801,768,NULL,0,NULL,'2024-05-23 10:32:55','2024-05-23 10:32:55',NULL),(802,8263,802,769,NULL,0,NULL,'2024-05-23 10:32:55','2024-05-23 10:32:55',NULL),(803,8263,803,770,NULL,0,NULL,'2024-05-23 10:32:55','2024-05-23 10:32:55',NULL),(804,8263,804,771,NULL,0,NULL,'2024-05-23 10:32:56','2024-05-23 10:32:56',NULL),(805,8263,805,772,NULL,0,NULL,'2024-05-23 10:32:56','2024-05-23 10:32:56',NULL),(806,8263,806,773,NULL,0,NULL,'2024-05-23 10:32:56','2024-05-23 10:32:56',NULL),(807,8263,807,774,NULL,0,NULL,'2024-05-23 10:32:56','2024-05-23 10:32:56',NULL),(808,8263,808,775,NULL,0,NULL,'2024-05-23 10:32:56','2024-05-23 10:32:56',NULL),(809,8263,809,776,NULL,0,NULL,'2024-05-23 10:32:56','2024-05-23 10:32:56',NULL),(810,8263,810,777,NULL,0,NULL,'2024-05-23 10:32:56','2024-05-23 10:32:56',NULL),(811,8263,811,778,NULL,0,NULL,'2024-05-23 10:32:56','2024-05-23 10:32:56',NULL),(812,8263,812,779,NULL,0,NULL,'2024-05-23 10:32:56','2024-05-23 10:32:56',NULL),(813,8263,813,780,NULL,0,NULL,'2024-05-23 10:32:56','2024-05-23 10:32:56',NULL),(814,8263,814,781,NULL,0,NULL,'2024-05-23 10:32:57','2024-05-23 10:32:57',NULL),(815,8263,815,782,NULL,0,NULL,'2024-05-23 10:32:57','2024-05-23 10:32:57',NULL),(816,8263,816,783,NULL,0,NULL,'2024-05-23 10:32:57','2024-05-23 10:32:57',NULL),(817,8263,817,784,NULL,0,NULL,'2024-05-23 10:32:57','2024-05-23 10:32:57',NULL),(818,8263,818,785,NULL,0,NULL,'2024-05-23 10:32:57','2024-05-23 10:32:57',NULL),(819,8263,819,786,NULL,0,NULL,'2024-05-23 10:32:57','2024-05-23 10:32:57',NULL),(820,8263,820,787,NULL,0,NULL,'2024-05-23 10:32:57','2024-05-23 10:32:57',NULL),(821,8263,821,788,NULL,0,NULL,'2024-05-23 10:32:57','2024-05-23 10:32:57',NULL),(822,8263,822,789,NULL,0,NULL,'2024-05-23 10:32:57','2024-05-23 10:32:57',NULL),(823,8263,823,790,NULL,0,NULL,'2024-05-23 10:32:58','2024-05-23 10:32:58',NULL),(824,8263,824,791,NULL,0,NULL,'2024-05-23 10:32:58','2024-05-23 10:32:58',NULL),(825,8263,825,792,NULL,0,NULL,'2024-05-23 10:32:58','2024-05-23 10:32:58',NULL),(826,8263,826,793,NULL,0,NULL,'2024-05-23 10:32:58','2024-05-23 10:32:58',NULL),(827,8263,827,794,NULL,0,NULL,'2024-05-23 10:32:58','2024-05-23 10:32:58',NULL),(828,8263,828,795,NULL,0,NULL,'2024-05-23 10:32:58','2024-05-23 10:32:58',NULL),(829,8263,829,796,NULL,0,NULL,'2024-05-23 10:32:58','2024-05-23 10:32:58',NULL),(830,8263,830,797,NULL,0,NULL,'2024-05-23 10:32:59','2024-05-23 10:32:59',NULL),(831,8263,831,798,NULL,0,NULL,'2024-05-23 10:32:59','2024-05-23 10:32:59',NULL),(832,8263,832,799,NULL,0,NULL,'2024-05-23 10:32:59','2024-05-23 10:32:59',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (833,8263,833,800,NULL,0,NULL,'2024-05-23 10:32:59','2024-05-23 10:32:59',NULL),(834,8263,834,801,NULL,0,NULL,'2024-05-23 10:32:59','2024-05-23 10:32:59',NULL),(835,8263,835,802,NULL,0,NULL,'2024-05-23 10:32:59','2024-05-23 10:32:59',NULL),(836,8263,836,803,NULL,0,NULL,'2024-05-23 10:32:59','2024-05-23 10:32:59',NULL),(837,8263,837,804,NULL,0,NULL,'2024-05-23 10:33:00','2024-05-23 10:33:00',NULL),(838,8263,838,805,NULL,0,NULL,'2024-05-23 10:33:00','2024-05-23 10:33:00',NULL),(839,8263,839,806,NULL,0,NULL,'2024-05-23 10:33:00','2024-05-23 10:33:00',NULL),(840,8263,840,807,NULL,0,NULL,'2024-05-23 10:33:00','2024-05-23 10:33:00',NULL),(841,8263,841,808,NULL,0,NULL,'2024-05-23 10:33:00','2024-05-23 10:33:00',NULL),(842,8263,842,809,NULL,0,NULL,'2024-05-23 10:33:01','2024-05-23 10:33:01',NULL),(843,8263,843,810,NULL,0,NULL,'2024-05-23 10:33:01','2024-05-23 10:33:01',NULL),(844,8263,844,811,NULL,0,NULL,'2024-05-23 10:33:01','2024-05-23 10:33:01',NULL),(845,8263,845,812,NULL,0,NULL,'2024-05-23 10:33:01','2024-05-23 10:33:01',NULL),(846,8263,846,813,NULL,0,NULL,'2024-05-23 10:33:01','2024-05-23 10:33:01',NULL),(847,8263,847,814,NULL,0,NULL,'2024-05-23 10:33:01','2024-05-23 10:33:01',NULL),(848,8263,848,815,NULL,0,NULL,'2024-05-23 10:33:02','2024-05-23 10:33:02',NULL),(849,8263,849,816,NULL,0,NULL,'2024-05-23 10:33:02','2024-05-23 10:33:02',NULL),(850,8263,850,817,NULL,0,NULL,'2024-05-23 10:33:02','2024-05-23 10:33:02',NULL),(851,8263,851,818,NULL,0,NULL,'2024-05-23 10:33:02','2024-05-23 10:33:02',NULL),(852,8263,852,819,NULL,0,NULL,'2024-05-23 10:33:02','2024-05-23 10:33:02',NULL),(853,8263,853,820,NULL,0,NULL,'2024-05-23 10:33:02','2024-05-28 10:27:27','2024-05-28 10:27:27'),(854,8263,854,821,NULL,0,NULL,'2024-05-23 10:33:03','2024-05-23 10:33:03',NULL),(855,8263,855,822,NULL,0,NULL,'2024-05-23 10:33:03','2024-05-23 10:33:03',NULL),(856,8263,856,823,NULL,0,NULL,'2024-05-23 10:33:03','2024-05-23 10:33:03',NULL),(857,8263,857,824,NULL,0,NULL,'2024-05-23 10:33:03','2024-05-23 10:33:03',NULL),(858,8263,858,825,NULL,0,NULL,'2024-05-23 10:33:03','2024-05-23 10:33:03',NULL),(859,8263,859,826,NULL,0,NULL,'2024-05-23 10:33:03','2024-05-23 10:33:03',NULL),(860,8263,860,827,NULL,0,NULL,'2024-05-23 10:33:04','2024-05-23 10:33:04',NULL),(861,8263,861,828,NULL,0,NULL,'2024-05-23 10:33:04','2024-05-24 11:49:04','2024-05-24 11:49:04'),(862,8263,862,829,NULL,0,NULL,'2024-05-23 10:33:05','2024-05-23 10:33:05',NULL),(863,8263,863,830,NULL,0,NULL,'2024-05-23 10:33:05','2024-05-23 10:33:05',NULL),(864,8263,864,831,NULL,0,NULL,'2024-05-23 10:33:05','2024-05-23 10:33:05',NULL),(865,8263,865,832,NULL,0,NULL,'2024-05-23 10:33:05','2024-05-23 10:33:05',NULL),(866,8263,866,833,NULL,0,NULL,'2024-05-23 10:33:06','2024-05-23 10:33:06',NULL),(867,8263,867,834,NULL,0,NULL,'2024-05-23 10:33:06','2024-05-23 10:33:06',NULL),(868,8263,868,835,NULL,0,NULL,'2024-05-23 10:33:06','2024-05-23 10:33:06',NULL),(869,8263,869,836,NULL,0,NULL,'2024-05-23 10:33:06','2024-05-23 10:33:06',NULL),(870,8263,870,837,NULL,0,NULL,'2024-05-23 10:33:07','2024-05-23 10:33:07',NULL),(871,8263,871,838,NULL,0,NULL,'2024-05-23 10:33:07','2024-05-23 10:33:07',NULL),(872,8263,872,839,NULL,0,NULL,'2024-05-23 10:33:07','2024-05-23 10:33:07',NULL),(873,8263,873,840,NULL,0,NULL,'2024-05-23 10:33:07','2024-05-23 10:33:07',NULL),(874,8263,874,841,NULL,0,NULL,'2024-05-23 10:33:08','2024-05-23 10:33:08',NULL),(875,8263,875,842,NULL,0,NULL,'2024-05-23 10:33:08','2024-05-23 10:33:08',NULL),(876,8263,876,843,NULL,0,NULL,'2024-05-23 10:33:08','2024-05-23 10:33:08',NULL),(877,8263,877,844,NULL,0,NULL,'2024-05-23 10:33:08','2024-05-23 10:33:08',NULL),(878,8263,878,845,NULL,0,NULL,'2024-05-23 10:33:08','2024-05-23 10:33:08',NULL),(879,8263,879,846,NULL,0,NULL,'2024-05-23 10:33:09','2024-05-23 10:33:09',NULL),(880,8263,880,847,NULL,0,NULL,'2024-05-23 10:33:09','2024-05-23 10:33:09',NULL),(881,8263,881,848,NULL,0,NULL,'2024-05-23 10:33:09','2024-05-23 10:33:09',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (882,8263,882,849,NULL,0,NULL,'2024-05-23 10:33:09','2024-05-23 10:33:09',NULL),(883,8263,883,850,NULL,0,NULL,'2024-05-23 10:33:09','2024-05-23 10:33:09',NULL),(884,8263,884,851,NULL,0,NULL,'2024-05-23 10:33:10','2024-05-23 10:33:10',NULL),(885,8263,885,852,NULL,0,NULL,'2024-05-23 10:33:10','2024-05-23 10:33:10',NULL),(886,8263,886,853,NULL,0,NULL,'2024-05-23 10:33:10','2024-05-23 10:33:10',NULL),(887,8263,887,854,NULL,0,NULL,'2024-05-23 10:33:10','2024-05-23 10:33:10',NULL),(888,8263,888,855,NULL,0,NULL,'2024-05-23 10:33:10','2024-05-23 10:33:10',NULL),(889,8263,889,856,NULL,0,NULL,'2024-05-23 10:33:11','2024-05-23 10:33:11',NULL),(890,8263,890,857,NULL,0,NULL,'2024-05-23 10:33:11','2024-05-23 10:33:11',NULL),(891,8263,891,858,NULL,0,NULL,'2024-05-23 10:33:11','2024-05-23 10:33:11',NULL),(892,8263,892,859,NULL,0,NULL,'2024-05-23 10:33:11','2024-05-23 10:33:11',NULL),(893,8263,893,860,NULL,0,NULL,'2024-05-23 10:33:11','2024-05-23 10:33:11',NULL),(894,8263,894,861,NULL,0,NULL,'2024-05-23 10:33:12','2024-05-23 10:33:12',NULL),(895,8263,895,862,NULL,0,NULL,'2024-05-23 10:33:12','2024-05-23 10:33:12',NULL),(896,8263,896,863,NULL,0,NULL,'2024-05-23 10:33:12','2024-05-23 10:33:12',NULL),(897,8263,897,864,NULL,0,NULL,'2024-05-23 10:33:12','2024-05-23 10:33:12',NULL),(898,8263,898,865,NULL,0,NULL,'2024-05-23 10:33:12','2024-05-23 10:33:12',NULL),(899,8263,899,866,NULL,0,NULL,'2024-05-23 10:33:12','2024-05-23 10:33:12',NULL),(900,8263,900,867,NULL,0,NULL,'2024-05-23 10:33:12','2024-05-23 10:33:12',NULL),(901,8263,901,868,NULL,0,NULL,'2024-05-23 10:33:13','2024-05-23 10:33:13',NULL),(902,8263,902,869,NULL,0,NULL,'2024-05-23 10:33:13','2024-05-23 10:33:13',NULL),(903,8263,903,870,NULL,0,NULL,'2024-05-23 10:33:13','2024-05-23 10:33:13',NULL),(904,8263,904,871,NULL,0,NULL,'2024-05-23 10:33:13','2024-05-23 10:33:13',NULL),(905,8263,905,872,NULL,0,NULL,'2024-05-23 10:33:13','2024-05-23 10:33:13',NULL),(906,8263,906,873,NULL,0,NULL,'2024-05-23 10:33:13','2024-05-23 10:33:13',NULL),(907,8263,907,874,NULL,0,NULL,'2024-05-23 10:33:13','2024-05-23 10:33:13',NULL),(908,8263,908,875,NULL,0,NULL,'2024-05-23 10:33:14','2024-05-23 10:33:14',NULL),(909,8263,909,876,NULL,0,NULL,'2024-05-23 10:33:14','2024-05-23 10:33:14',NULL),(910,8263,910,877,NULL,0,NULL,'2024-05-23 10:33:14','2024-05-23 10:33:14',NULL),(911,8263,911,878,NULL,0,NULL,'2024-05-23 10:33:14','2024-05-23 10:33:14',NULL),(912,8263,912,879,NULL,0,NULL,'2024-05-23 10:33:14','2024-05-23 10:33:14',NULL),(913,8263,913,880,NULL,0,NULL,'2024-05-23 10:33:15','2024-05-23 10:33:15',NULL),(914,8263,914,881,NULL,0,NULL,'2024-05-23 10:33:15','2024-05-23 10:33:15',NULL),(915,8263,915,882,NULL,0,NULL,'2024-05-23 10:33:15','2024-05-23 10:33:15',NULL),(916,8263,916,883,NULL,0,NULL,'2024-05-23 10:33:15','2024-05-23 10:33:15',NULL),(917,8263,917,884,NULL,0,NULL,'2024-05-23 10:33:15','2024-05-23 10:33:15',NULL),(918,8263,918,885,NULL,0,NULL,'2024-05-23 10:33:15','2024-05-23 10:33:15',NULL),(919,8263,919,886,NULL,0,NULL,'2024-05-23 10:33:15','2024-05-23 10:33:15',NULL),(920,8263,920,887,NULL,0,NULL,'2024-05-23 10:33:16','2024-05-23 10:33:16',NULL),(921,8263,921,888,NULL,0,NULL,'2024-05-23 10:33:16','2024-05-23 10:33:16',NULL),(922,8263,922,889,NULL,0,NULL,'2024-05-23 10:33:16','2024-05-23 10:33:16',NULL),(923,8263,923,890,NULL,0,NULL,'2024-05-23 10:33:16','2024-05-23 10:33:16',NULL),(924,8263,924,891,NULL,0,NULL,'2024-05-23 10:33:17','2024-05-23 10:33:17',NULL),(925,8263,925,892,NULL,0,NULL,'2024-05-23 10:33:17','2024-05-23 10:33:17',NULL),(926,8263,926,893,NULL,0,NULL,'2024-05-23 10:33:17','2024-05-23 10:33:17',NULL),(927,8263,927,894,NULL,0,NULL,'2024-05-23 10:33:17','2024-05-23 10:33:17',NULL),(928,8263,928,895,NULL,0,NULL,'2024-05-23 10:33:18','2024-05-23 10:33:18',NULL),(929,8263,929,896,NULL,0,NULL,'2024-05-23 10:33:18','2024-05-23 10:33:18',NULL),(930,8263,930,897,NULL,0,NULL,'2024-05-23 10:33:18','2024-05-23 10:33:18',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (931,8263,931,898,NULL,0,NULL,'2024-05-23 10:33:18','2024-05-23 10:33:18',NULL),(932,8263,932,899,NULL,0,NULL,'2024-05-23 10:33:19','2024-05-23 10:33:19',NULL),(933,8263,933,900,NULL,0,NULL,'2024-05-23 10:33:19','2024-05-23 10:33:19',NULL),(934,8263,934,901,NULL,0,NULL,'2024-05-23 10:33:19','2024-05-23 10:33:19',NULL),(935,8263,935,902,NULL,0,NULL,'2024-05-23 10:33:19','2024-05-23 10:33:19',NULL),(936,8263,936,903,NULL,0,NULL,'2024-05-23 10:33:19','2024-05-23 10:33:19',NULL),(937,8263,937,904,NULL,0,NULL,'2024-05-23 10:33:19','2024-05-23 10:33:19',NULL),(938,8263,938,905,NULL,0,NULL,'2024-05-23 10:33:20','2024-05-23 10:33:20',NULL),(939,8263,939,906,NULL,0,NULL,'2024-05-23 10:33:20','2024-05-23 10:33:20',NULL),(940,8263,940,907,NULL,0,NULL,'2024-05-23 10:33:20','2024-05-23 10:33:20',NULL),(941,8263,941,908,NULL,0,NULL,'2024-05-23 10:33:20','2024-05-23 10:33:20',NULL),(942,8263,942,909,NULL,0,NULL,'2024-05-23 10:33:21','2024-05-23 10:33:21',NULL),(943,8263,943,910,NULL,0,NULL,'2024-05-23 10:33:21','2024-05-23 10:33:21',NULL),(944,8263,944,911,NULL,0,NULL,'2024-05-23 10:33:21','2024-05-23 10:33:21',NULL),(945,8263,945,912,NULL,0,NULL,'2024-05-23 10:33:21','2024-05-23 10:33:21',NULL),(946,8263,946,913,NULL,0,NULL,'2024-05-23 10:33:21','2024-05-23 10:33:21',NULL),(947,8263,947,914,NULL,0,NULL,'2024-05-23 10:33:21','2024-05-23 10:33:21',NULL),(948,8263,948,915,NULL,0,NULL,'2024-05-23 10:33:21','2024-05-23 10:33:21',NULL),(949,8263,949,916,NULL,0,NULL,'2024-05-23 10:33:22','2024-05-23 10:33:22',NULL),(950,8263,950,917,NULL,0,NULL,'2024-05-23 10:33:22','2024-05-23 10:33:22',NULL),(951,8263,951,918,NULL,0,NULL,'2024-05-23 10:33:22','2024-05-23 10:33:22',NULL),(952,8263,952,919,NULL,0,NULL,'2024-05-23 10:33:22','2024-05-23 10:33:22',NULL),(953,8263,953,920,NULL,0,NULL,'2024-05-23 10:33:22','2024-05-23 10:33:22',NULL),(954,8263,954,921,NULL,0,NULL,'2024-05-23 10:33:22','2024-05-23 10:33:22',NULL),(955,8263,955,922,NULL,0,NULL,'2024-05-23 10:33:22','2024-05-23 10:33:22',NULL),(956,8263,956,923,NULL,0,NULL,'2024-05-23 10:33:23','2024-05-23 10:33:23',NULL),(957,8263,957,924,NULL,0,NULL,'2024-05-23 10:33:23','2024-05-23 10:33:23',NULL),(958,8263,958,925,NULL,0,NULL,'2024-05-23 10:33:23','2024-05-23 10:33:23',NULL),(959,8263,959,926,NULL,0,NULL,'2024-05-23 10:33:23','2024-05-23 10:33:23',NULL),(960,8263,960,927,NULL,0,NULL,'2024-05-23 10:33:23','2024-05-23 10:33:23',NULL),(961,8263,961,928,NULL,0,NULL,'2024-05-23 10:33:24','2024-05-23 10:33:24',NULL),(962,8263,962,929,NULL,0,NULL,'2024-05-23 10:33:24','2024-05-23 10:33:24',NULL),(963,8263,963,930,NULL,0,NULL,'2024-05-23 10:33:24','2024-05-23 10:33:24',NULL),(964,8263,964,931,NULL,0,NULL,'2024-05-23 10:33:24','2024-05-23 10:33:24',NULL),(965,8263,965,932,NULL,0,NULL,'2024-05-23 10:33:24','2024-05-23 10:33:24',NULL),(966,8263,966,933,NULL,0,NULL,'2024-05-23 10:33:24','2024-05-23 10:33:24',NULL),(967,8263,967,934,NULL,0,NULL,'2024-05-23 10:33:25','2024-05-23 10:33:25',NULL),(968,8263,968,935,NULL,0,NULL,'2024-05-23 10:33:25','2024-05-23 10:33:25',NULL),(969,8263,969,936,NULL,0,NULL,'2024-05-23 10:33:25','2024-05-23 10:33:25',NULL),(970,8263,970,937,NULL,0,NULL,'2024-05-23 10:33:25','2024-05-23 10:33:25',NULL),(971,8263,971,938,NULL,0,NULL,'2024-05-23 10:33:25','2024-05-23 10:33:25',NULL),(972,8263,972,939,NULL,0,NULL,'2024-05-23 10:33:25','2024-05-23 10:33:25',NULL),(973,8263,973,940,NULL,0,NULL,'2024-05-23 10:33:26','2024-05-23 10:33:26',NULL),(974,8263,974,941,NULL,0,NULL,'2024-05-23 10:33:26','2024-05-23 10:33:26',NULL),(975,8263,975,942,NULL,0,NULL,'2024-05-23 10:33:26','2024-05-23 10:33:26',NULL),(976,8263,976,943,NULL,0,NULL,'2024-05-23 10:33:26','2024-05-23 10:33:26',NULL),(977,8263,977,944,NULL,0,NULL,'2024-05-23 10:33:26','2024-05-23 10:33:26',NULL),(978,8263,978,945,NULL,0,NULL,'2024-05-23 10:33:26','2024-05-23 10:33:26',NULL),(979,8263,979,946,NULL,0,NULL,'2024-05-23 10:33:26','2024-05-23 10:33:26',NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (980,8263,980,947,NULL,0,NULL,'2024-05-23 10:33:26','2024-05-23 10:33:26',NULL),(981,8263,981,948,NULL,0,NULL,'2024-05-23 10:33:26','2024-05-23 10:33:26',NULL),(982,8263,982,949,NULL,0,NULL,'2024-05-23 10:33:27','2024-05-23 10:33:27',NULL),(983,8263,983,950,NULL,0,NULL,'2024-05-23 10:33:27','2024-05-23 10:33:27',NULL),(984,8263,984,951,NULL,0,NULL,'2024-05-23 10:33:27','2024-05-23 10:33:27',NULL),(985,8263,985,952,NULL,0,NULL,'2024-05-23 10:33:27','2024-05-23 10:33:27',NULL),(986,8263,986,953,NULL,0,NULL,'2024-05-23 10:33:27','2024-05-23 10:33:27',NULL),(987,8263,987,954,NULL,0,NULL,'2024-05-23 10:33:27','2024-05-23 10:33:27',NULL),(988,8263,988,955,NULL,0,NULL,'2024-05-23 10:33:27','2024-05-23 10:33:27',NULL),(989,8263,989,956,NULL,0,NULL,'2024-05-23 10:33:28','2024-05-23 10:33:28',NULL),(990,8263,990,957,NULL,0,NULL,'2024-05-23 10:33:28','2024-05-23 10:33:28',NULL),(991,8263,991,958,NULL,0,NULL,'2024-05-23 10:33:28','2024-05-23 10:33:28',NULL),(992,8263,992,959,NULL,0,NULL,'2024-05-23 10:33:28','2024-05-23 10:33:28',NULL),(993,8263,993,960,NULL,0,NULL,'2024-05-23 10:33:28','2024-05-23 10:33:28',NULL),(994,8263,994,961,NULL,0,NULL,'2024-05-23 10:33:28','2024-05-23 10:33:28',NULL),(995,8263,995,962,NULL,0,NULL,'2024-05-23 10:33:29','2024-05-23 10:33:29',NULL),(996,8263,996,963,NULL,0,NULL,'2024-05-23 10:33:29','2024-05-23 10:33:29',NULL),(997,8263,997,964,NULL,0,NULL,'2024-05-23 10:33:29','2024-05-23 10:33:29',NULL),(998,8263,998,965,NULL,0,NULL,'2024-05-23 10:33:29','2024-05-23 10:33:29',NULL),(999,8263,999,966,NULL,0,NULL,'2024-05-23 10:33:29','2024-05-23 10:33:29',NULL),(1000,8263,1000,239,NULL,0,NULL,'2024-05-23 11:24:07','2024-05-23 11:26:36','2024-05-23 11:26:36'),(1001,8263,1001,239,NULL,0,NULL,'2024-05-23 11:26:36','2024-05-23 11:26:36',NULL),(1002,8263,1002,828,NULL,0,NULL,'2024-05-24 11:49:04','2024-05-24 11:51:46','2024-05-24 11:51:46'),(1003,8263,1003,828,NULL,0,NULL,'2024-05-24 11:51:46','2024-05-24 11:51:46',NULL),(1004,8263,1004,967,NULL,0,NULL,'2024-05-24 16:01:55','2024-05-24 16:05:33','2024-05-24 16:05:33'),(1005,8263,1004,968,NULL,0,NULL,'2024-05-24 16:01:55','2024-05-24 16:05:34','2024-05-24 16:05:34'),(1006,8263,1004,969,NULL,0,NULL,'2024-05-24 16:01:55','2024-05-24 16:05:34','2024-05-24 16:05:34'),(1007,8263,1004,434,316065.23,0,NULL,NULL,'2024-05-24 16:05:34','2024-05-24 16:05:34'),(1008,8263,1005,820,NULL,0,NULL,'2024-05-28 10:27:28','2024-05-28 10:27:28',NULL),(1009,NULL,1006,120,534840.00,0,NULL,NULL,NULL,NULL),(1010,NULL,1007,276,429300.00,0,NULL,NULL,NULL,NULL),(1011,NULL,1008,434,316065.23,0,NULL,NULL,NULL,NULL),(1012,NULL,1009,118,184139.01,0,NULL,NULL,NULL,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=14 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `cta_cte_tesoreria` VALUES (1,NULL,NULL,NULL,8263,40720,NULL,NULL,757,1552,'2024-05-23',2880891.75,1,1.00,'Saldo Inicial',NULL,'2024-05-23 12:17:53','2024-05-23 12:17:53',NULL,NULL),(2,NULL,NULL,NULL,8263,40720,NULL,NULL,758,1552,'2024-05-24',0.00,1,1.00,'Saldo Inicial',NULL,'2024-05-24 11:57:46','2024-05-24 11:57:46',NULL,NULL),(3,NULL,NULL,NULL,8263,40720,NULL,NULL,759,1552,'2024-05-24',0.00,1,1.00,'Saldo Inicial',NULL,'2024-05-24 11:59:03','2024-05-24 11:59:03',NULL,NULL),(4,NULL,NULL,NULL,8263,40720,1004,NULL,13,1549,'2024-02-07',316065.23,1,874.00,NULL,NULL,'2024-05-24 16:01:55','2024-05-24 16:05:34','2024-05-24 16:05:34',NULL),(5,NULL,NULL,NULL,8263,40720,1006,NULL,13,1552,'2024-05-29',534840.00,1,877.00,NULL,NULL,'2024-05-29 07:46:20','2024-05-29 07:46:20',NULL,NULL),(6,NULL,NULL,NULL,8263,40720,1007,NULL,13,1552,'2024-05-29',429300.00,1,877.00,NULL,NULL,'2024-05-29 07:48:04','2024-05-29 07:48:04',NULL,NULL),(7,NULL,NULL,NULL,8263,40720,NULL,NULL,760,1552,'2024-05-30',0.00,1,1.00,'Saldo Inicial',NULL,'2024-05-30 12:11:45','2024-05-30 12:45:55',NULL,NULL),(8,NULL,NULL,NULL,8263,40720,NULL,NULL,761,1552,'2024-05-30',0.00,1,1.00,'Saldo Inicial',NULL,'2024-05-30 12:49:14','2024-05-30 12:49:14',NULL,NULL),(9,NULL,NULL,NULL,8263,40720,NULL,NULL,762,1552,'2024-05-30',0.00,1,1.00,'Saldo Inicial',NULL,'2024-05-30 12:50:49','2024-05-30 12:50:49',NULL,NULL),(10,NULL,NULL,NULL,8263,40720,NULL,NULL,763,1552,'2024-05-30',0.00,1,1.00,'Saldo Inicial',NULL,'2024-05-30 12:52:25','2024-05-30 12:52:25',NULL,NULL),(11,NULL,NULL,NULL,8263,40720,NULL,NULL,764,1552,'2024-05-30',0.00,1,1.00,'Saldo Inicial',NULL,'2024-05-30 12:53:26','2024-05-30 12:53:26',NULL,NULL),(12,NULL,NULL,NULL,8263,40720,1008,NULL,13,1552,'2024-05-30',316065.23,1,877.00,NULL,NULL,'2024-05-30 16:06:59','2024-05-30 16:06:59',NULL,NULL),(13,NULL,NULL,NULL,8263,40720,1009,NULL,13,1552,'2024-05-30',184139.01,1,877.00,NULL,NULL,'2024-05-30 18:19:38','2024-05-30 18:19:38',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,8263,40720,757,1,2,'1',1,1,'2024-05-23 12:17:53','2024-05-23 12:17:53',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,8263,40720,757,25,2,1,474,474,474,'191100035198','1910100455010003519382','devalliscem',NULL,NULL,1,'2024-05-23 12:17:53','2024-05-23 12:17:53',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 21:00:23',NULL),(5,NULL,'PERCEPCIONES EFECTUADAS',1,NULL,'2024-05-26 21:00:23',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=765 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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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:18:14','2023-03-20 23:18:14'),(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:18:14','2023-03-20 23:18:14'),(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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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:58:33',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',NULL),(527,0,NULL,NULL,0,1,114,NULL,8,NULL,'ACA',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:31:37',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-27 00:31:37',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-27 00:31:37',NULL),(530,0,NULL,NULL,0,1,117,NULL,8,NULL,'AGUA AYSA',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:31:37',NULL),(531,0,NULL,NULL,0,1,118,NULL,8,NULL,'TV Cablevision',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',NULL),(535,0,NULL,NULL,0,1,123,NULL,8,NULL,'Comida',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:31:37',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-27 00:31:37',NULL),(537,0,NULL,NULL,0,1,127,NULL,8,NULL,'Luz Edesur',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:31:37',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-27 00:31:37',NULL),(539,0,NULL,NULL,0,1,129,NULL,8,NULL,'Mantenimiento',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:31:37',NULL),(540,0,NULL,NULL,0,1,130,NULL,8,NULL,'IVA No Computable',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:31:37',NULL),(541,0,NULL,NULL,0,1,131,NULL,8,NULL,'Entretenimiento',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',NULL),(548,0,NULL,NULL,0,1,144,NULL,8,NULL,'Diferencia de Cambio Bces. en M.Extranjera',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:31:37',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-27 00:31:37',NULL),(550,0,NULL,NULL,0,1,146,NULL,8,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-27 00:31:37',NULL),(551,0,NULL,NULL,0,1,147,NULL,8,NULL,'Diferencia de cambio CMV',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:31:37',NULL),(552,0,NULL,NULL,0,1,148,NULL,8,NULL,'Diferencia de cambio PT',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:31:37',NULL),(553,0,NULL,NULL,0,1,149,NULL,8,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-27 00:31:37',NULL),(554,0,NULL,NULL,0,1,150,NULL,8,NULL,'Diferencia de cambio PE',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:31:37',NULL),(555,0,NULL,NULL,0,1,151,NULL,8,NULL,'Diferencia de cambio Ds.Vtas.',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',NULL),(564,0,NULL,NULL,0,1,178,NULL,8,NULL,'Google',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',NULL),(577,0,NULL,NULL,0,1,215,NULL,8,NULL,'Tarjeta Shopping',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:07','2023-03-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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:58:33',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:37',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',NULL),(719,0,NULL,NULL,0,1,421,NULL,8,NULL,'Amortización Rodados',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:31:38',NULL);
INSERT INTO `cta_cte_tesoreria_cuentas` VALUES (720,0,NULL,NULL,0,1,422,NULL,8,NULL,'Amortización Maquinarias',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',NULL),(744,0,NULL,NULL,0,1,462,NULL,8,NULL,'Amortización Equipos de comput.',NULL,0,0,0,0,0,1,1,'2020-02-06 17:23:08','2023-03-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',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-27 00:31:38',NULL),(757,0,NULL,8263,0,1,474,40720,2,NULL,'BANCO CREDICOOP','30571421352',0,0,1,1,1,0,1,'2024-05-23 12:17:53','2024-05-23 12:17:53',NULL),(758,0,NULL,8263,0,1,5,40720,1,NULL,'Caja Efvo',NULL,0,0,1,1,1,0,1,'2024-05-24 11:57:46','2024-05-24 11:57:46',NULL),(759,0,NULL,8263,0,1,176,40720,3,NULL,'Cheques de terceros en Cartera',NULL,1,0,1,1,1,0,1,'2024-05-24 11:59:03','2024-05-24 11:59:03',NULL),(760,0,NULL,8263,0,1,216,40720,9,1,'Retenciones impuesto a las ganancias ','33716493089',0,0,1,1,1,0,1,'2024-05-30 12:11:45','2024-05-30 12:11:45',NULL),(761,0,NULL,8263,0,1,21,40720,9,9,'Retenciones IIBB Cordoba','33716493089',0,0,1,1,1,0,1,'2024-05-30 12:49:14','2024-05-30 12:49:14',NULL),(762,0,NULL,8263,0,1,25,40720,9,3,'Retenciones IVA','33716493089',0,0,1,1,1,0,1,'2024-05-30 12:50:49','2024-05-30 12:50:49',NULL),(763,0,NULL,8263,0,1,162,40720,9,2,'Retenciones SUSS','33716493089',0,0,1,1,1,0,1,'2024-05-30 12:52:25','2024-05-30 12:52:25',NULL),(764,0,NULL,8263,0,1,1034,40720,9,NULL,'Retenciones Comercio e Industria','33716493089',0,0,1,1,1,0,1,'2024-05-30 12:53:26','2024-05-30 12:53:26',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=23 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `cta_cte_tesoreria_detail` VALUES (1,8263,1,757,40720,1552,1,2880891.75,0,'2024-05-23','2024-05-23 12:17:53','2024-05-23 12:17:53',NULL),(2,8263,2,758,40720,1552,1,0.00,0,'2024-05-24','2024-05-24 11:57:46','2024-05-24 11:57:46',NULL),(3,8263,3,759,40720,1552,1,0.00,0,'2024-05-24','2024-05-24 11:59:03','2024-05-24 11:59:03',NULL),(4,8263,4,13,40720,1549,2,316065.23,0,'2024-02-07','2024-05-24 16:01:55','2024-05-24 16:05:34','2024-05-24 16:05:34'),(5,8263,4,23,40720,1549,1,3880.82,0,'2024-02-07','2024-05-24 16:01:55','2024-05-24 16:05:34','2024-05-24 16:05:34'),(6,8263,4,256,40720,1549,1,3160.65,0,'2024-02-07','2024-05-24 16:01:55','2024-05-24 16:05:34','2024-05-24 16:05:34'),(7,8263,4,251,40720,1549,1,6258.09,0,'2024-02-07','2024-05-24 16:01:55','2024-05-24 16:05:34','2024-05-24 16:05:34'),(8,8263,4,757,40720,1549,1,302765.64,0,'2024-02-07','2024-05-24 16:01:55','2024-05-24 16:05:34','2024-05-24 16:05:34'),(9,8263,4,757,40720,1549,1,0.03,0,'2024-02-07','2024-05-24 16:01:55','2024-05-24 16:05:34','2024-05-24 16:05:34'),(10,8263,5,13,40720,1552,2,534840.00,0,'2024-05-29','2024-05-29 07:46:20','2024-05-29 07:46:20',NULL),(11,8263,5,759,40720,1552,1,534840.00,0,'2024-05-29','2024-05-29 07:46:20','2024-05-29 07:46:20',NULL),(12,8263,6,13,40720,1552,2,429300.00,0,'2024-05-29','2024-05-29 07:48:04','2024-05-29 07:48:04',NULL),(13,8263,6,759,40720,1552,1,429300.00,0,'2024-05-29','2024-05-29 07:48:04','2024-05-29 07:48:04',NULL),(14,8263,7,760,40720,1552,1,0.00,0,'2024-05-30','2024-05-30 12:11:45','2024-05-30 12:45:55',NULL),(15,8263,8,761,40720,1552,1,0.00,0,'2024-05-30','2024-05-30 12:49:14','2024-05-30 12:49:14',NULL),(16,8263,9,762,40720,1552,1,0.00,0,'2024-05-30','2024-05-30 12:50:49','2024-05-30 12:50:49',NULL),(17,8263,10,763,40720,1552,1,0.00,0,'2024-05-30','2024-05-30 12:52:25','2024-05-30 12:52:25',NULL),(18,8263,11,764,40720,1552,1,0.00,0,'2024-05-30','2024-05-30 12:53:26','2024-05-30 12:53:26',NULL),(19,8263,12,13,40720,1552,2,316065.23,0,'2024-05-30','2024-05-30 16:06:59','2024-05-30 16:06:59',NULL),(20,8263,12,758,40720,1552,1,316065.23,0,'2024-05-30','2024-05-30 16:06:59','2024-05-30 16:06:59',NULL),(21,8263,13,13,40720,1552,2,184139.01,0,'2024-05-30','2024-05-30 18:19:38','2024-05-30 18:19:38',NULL),(22,8263,13,758,40720,1552,1,184139.01,0,'2024-05-30','2024-05-30 18:19:38','2024-05-30 18:19:38',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 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


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

CREATE TABLE `ctacte_cheques` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `asiento_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `cuenta_conta_id` int(10) unsigned DEFAULT NULL,
  `cta_cte_tesoreria_cuenta_id` int(10) unsigned DEFAULT NULL,
  `cta_cte_tesoreria_id` int(10) unsigned DEFAULT NULL,
  `cta_cte_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 AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `ctacte_cheques` VALUES (1,8263,NULL,NULL,NULL,NULL,NULL,1006,NULL,8,NULL,NULL,534840.00,1,0,'2024-05-29','2024-05-29',2,40720,'30-65289231-7','OBRA SOCIAL PERSONAL INDUSTRIA GRAFICA',2,0,88141,NULL,'',1,'2024-05-29 07:46:20','2024-05-29 07:46:20',NULL),(2,8263,NULL,NULL,NULL,NULL,NULL,1007,NULL,10,NULL,NULL,429300.00,1,0,'2024-05-29','2024-05-29',2,40720,'30-65289231-7','OSPIG',1,0,88330,NULL,'',1,'2024-05-29 07:48:04','2024-05-29 07:48:04',NULL);

--
-- 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-07 00:11:19',NULL),(2,NULL,'TERMINADO',1,NULL,'2023-08-07 00:11:19',NULL),(3,NULL,'ELIMINADO',1,NULL,'2023-08-13 09:24:32',NULL),(4,NULL,'PAGADO',1,NULL,'2023-08-07 00:11:19','2023-08-07 00:11:19'),(5,NULL,'CONCILIADO',1,NULL,'2023-08-07 00:11:19','2023-08-07 00:11:19');

--
-- 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-07 00:11:19',NULL),(2,NULL,'RECHAZADO',1,1,0,1,NULL,'2023-08-07 00:11:19',NULL),(3,NULL,'ACEPTADO',1,0,0,1,NULL,'2023-08-07 00:11:19',NULL),(4,NULL,'FALTAN FIRMAS',0,0,1,1,'2023-08-07 00:11:19','2023-08-07 00:11:19',NULL),(5,NULL,'EMITIDO',1,0,0,1,'2023-10-12 08:20:52','2023-10-12 08:20:52',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:40:37',
  `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:32:53',NULL),(3,NULL,'Deposito','App\\Models\\Inventario\\InvDeposito',1,1,NULL,'2024-05-07 20:15:22',NULL),(4,NULL,'Empleado','App\\Models\\SyJEmpleado',0,0,NULL,'2023-07-03 22:14:59',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-12-26 09:12:21',NULL),(2,NULL,'ORDEN DE VENTAS',NULL,1,NULL,'2022-12-26 09:12:21',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:33:57',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:40:37','2023-09-28 16:40:37',NULL),(11,NULL,'ANULACION REQUERIMIENTOS',NULL,1,'2024-04-02 23:38:42','2024-04-02 23:38:42',NULL),(12,NULL,'ANULACION COMPRAS PRODUCTOS',NULL,1,'2024-04-02 23:38:42','2024-04-02 23:38:42',NULL),(13,NULL,'ANULACION COMPRAS SERVICIOS',NULL,1,'2024-04-02 23:38:42','2024-04-02 23:38:42',NULL),(14,NULL,'REMITO DE GASTO',NULL,1,'2024-05-07 20:15:22','2024-05-07 20:15:22',NULL),(15,NULL,'COTIZACIONES',NULL,1,'2024-06-26 07:54:45','2024-06-26 07:54:45',NULL),(16,NULL,'REMITO INGRESO-DEVOLUCION',NULL,1,'2024-09-02 13:18:30','2024-09-02 13:18:30',NULL),(17,NULL,'REMITO EGRESO-DEVOLUCION',NULL,1,'2024-10-17 08:51:36','2024-10-17 08:51:36',NULL),(18,NULL,'REMITO','Es un remito de servicio, que no tiene ni ingreso ni egreso',1,'2024-12-03 21:47:52','2024-12-03 21:47:52',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:09:00',
  `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;

--
