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

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


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

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

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

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


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

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


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

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


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

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

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

INSERT INTO `cta_cte_tesoreria_cuenta_tipos` VALUES (1,NULL,'CAJA',1,NULL,NULL,NULL),(2,NULL,'BANCOS',1,NULL,NULL,NULL),(3,NULL,'CHEQUES',1,NULL,NULL,NULL),(4,NULL,'RETENCIONES EFECTUADAS',1,NULL,'2024-05-26 20:58:07',NULL),(5,NULL,'PERCEPCIONES EFECTUADAS',1,NULL,'2024-05-26 20:58:07',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=757 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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:16:59','2023-03-20 23:16:59'),(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:16:59','2023-03-20 23:16:59'),(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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:57:18',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:09',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:57:18',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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:25:10',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 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


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

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


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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

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

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

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


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

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

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


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

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

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

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

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

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

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

INSERT INTO `dc_estados` VALUES (1,NULL,'BORRADOR',1,NULL,'2023-08-07 00:08:27',NULL),(2,NULL,'TERMINADO',1,NULL,'2023-08-07 00:08:27',NULL),(3,NULL,'ELIMINADO',1,NULL,'2023-08-13 09:23:03',NULL),(4,NULL,'PAGADO',1,NULL,'2023-08-07 00:08:27','2023-08-07 00:08:27'),(5,NULL,'CONCILIADO',1,NULL,'2023-08-07 00:08:27','2023-08-07 00:08:27');

--
-- 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:08:27',NULL),(2,NULL,'RECHAZADO',1,1,0,1,NULL,'2023-08-07 00:08:27',NULL),(3,NULL,'ACEPTADO',1,0,0,1,NULL,'2023-08-07 00:08:27',NULL),(4,NULL,'FALTAN FIRMAS',0,0,1,1,'2023-08-07 00:08:27','2023-08-07 00:08:27',NULL),(5,NULL,'EMITIDO',1,0,0,1,'2023-10-12 08:18:20','2023-10-12 08:18:20',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:38:45',
  `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:30:32',NULL),(3,NULL,'Deposito','App\\Models\\Inventario\\InvDeposito',1,1,NULL,'2024-05-07 20:10:51',NULL),(4,NULL,'Empleado','App\\Models\\SyJEmpleado',0,0,NULL,'2023-07-03 22:13:25',NULL);

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

CREATE TABLE `dc_ordenes_pdf_templates` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `dc_orden_tipo_id` bigint(20) unsigned NOT NULL,
  `nombre` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `vista_blade` text COLLATE utf8mb4_unicode_ci,
  `pdf_base_path` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `tipo_plantilla` enum('blade','pdf_base') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'blade',
  `configuracion` json DEFAULT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `unique_person_tipo_template` (`person_id`,`dc_orden_tipo_id`),
  KEY `dc_ordenes_pdf_templates_dc_orden_tipo_id_foreign` (`dc_orden_tipo_id`),
  CONSTRAINT `dc_ordenes_pdf_templates_dc_orden_tipo_id_foreign` FOREIGN KEY (`dc_orden_tipo_id`) REFERENCES `dc_ordenes_tipos` (`id`),
  CONSTRAINT `dc_ordenes_pdf_templates_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


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

CREATE TABLE `dc_ordenes_revocadas` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `comentario` longtext COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `dc_ordenes_revocadas_dc_orden_id_foreign` (`dc_orden_id`),
  CONSTRAINT `dc_ordenes_revocadas_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


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

CREATE TABLE `dc_ordenes_servicio_compra` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `dc_orden_detail_id` bigint(20) unsigned NOT NULL,
  `dc_orden_compra_id` bigint(20) unsigned NOT NULL,
  `dc_orden_compra_detail_id` bigint(20) unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `dc_ordenes_servicio_compra_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ordenes_servicio_compra_dc_orden_detail_id_foreign` (`dc_orden_detail_id`),
  KEY `dc_ordenes_servicio_compra_dc_orden_compra_id_foreign` (`dc_orden_compra_id`),
  KEY `dc_ordenes_servicio_compra_dc_orden_compra_detail_id_foreign` (`dc_orden_compra_detail_id`),
  CONSTRAINT `dc_ordenes_servicio_compra_dc_orden_compra_detail_id_foreign` FOREIGN KEY (`dc_orden_compra_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `dc_ordenes_servicio_compra_dc_orden_compra_id_foreign` FOREIGN KEY (`dc_orden_compra_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ordenes_servicio_compra_dc_orden_detail_id_foreign` FOREIGN KEY (`dc_orden_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `dc_ordenes_servicio_compra_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


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

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

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

INSERT INTO `dc_ordenes_tipos` VALUES (1,NULL,'ORDEN DE COMPRAS',NULL,1,NULL,'2022-09-09 16:54:42',NULL),(2,NULL,'ORDEN DE VENTAS',NULL,1,NULL,'2022-09-09 16:54:42',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:32:17',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:38:45','2023-09-28 16:38:45',NULL),(11,NULL,'ANULACION REQUERIMIENTOS',NULL,1,'2024-04-02 23:30:57','2024-04-02 23:30:57',NULL),(12,NULL,'ANULACION COMPRAS PRODUCTOS',NULL,1,'2024-04-02 23:30:57','2024-04-02 23:30:57',NULL),(13,NULL,'ANULACION COMPRAS SERVICIOS',NULL,1,'2024-04-02 23:30:57','2024-04-02 23:30:57',NULL),(14,NULL,'REMITO DE GASTO',NULL,1,'2024-05-07 20:10:51','2024-05-07 20:10:51',NULL),(15,NULL,'COTIZACIONES',NULL,1,'2024-06-26 07:54:19','2024-06-26 07:54:19',NULL),(16,NULL,'REMITO INGRESO-DEVOLUCION',NULL,1,'2024-09-02 13:18:13','2024-09-02 13:18:13',NULL),(17,NULL,'REMITO EGRESO-DEVOLUCION',NULL,1,'2024-10-17 08:51:25','2024-10-17 08:51:25',NULL),(18,NULL,'REMITO','Es un remito de servicio, que no tiene ni ingreso ni egreso',1,'2024-12-03 21:47:15','2024-12-03 21:47:15',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:08:27',
  `is_ponderacion_autom` tinyint(1) NOT NULL DEFAULT '1',
  `is_garantia` tinyint(1) NOT NULL DEFAULT '0',
  `numero` int(10) unsigned DEFAULT NULL,
  `comentario` longtext COLLATE utf8mb4_unicode_ci,
  `total` decimal(16,2) NOT NULL DEFAULT '0.00',
  `total_parte_1` decimal(16,2) NOT NULL DEFAULT '0.00',
  `total_parte_2` decimal(16,2) NOT NULL DEFAULT '0.00',
  `total_parte_3` decimal(16,2) NOT NULL DEFAULT '0.00',
  `cotizacion` decimal(16,2) NOT NULL DEFAULT '0.00',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `despachos_person_id_foreign` (`person_id`),
  KEY `despachos_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `despachos_moneda_id_foreign` (`moneda_id`),
  CONSTRAINT `despachos_moneda_id_foreign` FOREIGN KEY (`moneda_id`) REFERENCES `monedas` (`id`),
  CONSTRAINT `despachos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `despachos_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `despachos`
--


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

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

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


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

CREATE TABLE `despachos_details` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `despacho_id` bigint(20) unsigned NOT NULL,
  `despacho_parte_id` bigint(20) unsigned NOT NULL,
  `receipt_id` int(10) unsigned DEFAULT NULL,
  `porcentaje_ponderacion` decimal(8,2) NOT NULL DEFAULT '0.00',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `despachos_details_despacho_id_foreign` (`despacho_id`),
  KEY `despachos_details_despacho_parte_id_foreign` (`despacho_parte_id`),
  KEY `despachos_details_receipt_id_foreign` (`receipt_id`),
  CONSTRAINT `despachos_details_despacho_id_foreign` FOREIGN KEY (`despacho_id`) REFERENCES `despachos` (`id`),
  CONSTRAINT `despachos_details_despacho_parte_id_foreign` FOREIGN KEY (`despacho_parte_id`) REFERENCES `despachos_partes` (`id`),
  CONSTRAINT `despachos_details_receipt_id_foreign` FOREIGN KEY (`receipt_id`) REFERENCES `receipts` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


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

CREATE TABLE `despachos_files` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `despacho_id` bigint(20) unsigned NOT NULL,
  `descripcion` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `path` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `name_original` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `despachos_files_despacho_id_foreign` (`despacho_id`),
  CONSTRAINT `despachos_files_despacho_id_foreign` FOREIGN KEY (`despacho_id`) REFERENCES `despachos` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


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

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

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

INSERT INTO `despachos_partes` VALUES (1,NULL,'Facturas del Proveedor',1,NULL,NULL,NULL),(2,NULL,'Despachos de Importacion',1,NULL,NULL,NULL),(3,NULL,'Facturas de Logistica',1,NULL,NULL,NULL);

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

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

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


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

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

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


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

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

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

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

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

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

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


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

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

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


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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

--
-- Table structure for table `fact_elec_perc_ret`
--

CREATE TABLE `fact_elec_perc_ret` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `codigo_afip` int(10) unsigned NOT NULL,
  `other_tax_id` int(10) unsigned NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `fact_elec_perc_ret_other_tax_id_foreign` (`other_tax_id`),
  CONSTRAINT `fact_elec_perc_ret_other_tax_id_foreign` FOREIGN KEY (`other_tax_id`) REFERENCES `other_taxes` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

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

CREATE TABLE `fact_elec_perc_ret_details` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `fact_elec_perc_ret_id` int(10) unsigned NOT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `fact_elec_receipt_id` int(10) unsigned NOT NULL,
  `detalle` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `zone_id` int(10) unsigned DEFAULT NULL,
  `base_imponible` decimal(16,2) DEFAULT NULL,
  `alicuota` decimal(16,2) DEFAULT NULL,
  `importe` decimal(16,2) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `fact_elec_perc_ret_details_fact_elec_perc_ret_id_foreign` (`fact_elec_perc_ret_id`),
  KEY `fact_elec_perc_ret_details_person_id_foreign` (`person_id`),
  KEY `fact_elec_perc_ret_details_fact_elec_receipt_id_foreign` (`fact_elec_receipt_id`),
  KEY `fact_elec_perc_ret_details_zone_id_foreign` (`zone_id`),
  CONSTRAINT `fact_elec_perc_ret_details_fact_elec_perc_ret_id_foreign` FOREIGN KEY (`fact_elec_perc_ret_id`) REFERENCES `fact_elec_perc_ret` (`id`),
  CONSTRAINT `fact_elec_perc_ret_details_fact_elec_receipt_id_foreign` FOREIGN KEY (`fact_elec_receipt_id`) REFERENCES `fact_elec_receipts` (`id`),
  CONSTRAINT `fact_elec_perc_ret_details_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `fact_elec_perc_ret_details_zone_id_foreign` FOREIGN KEY (`zone_id`) REFERENCES `zones` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


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

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

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


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

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

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


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

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

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


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

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

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

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

--
