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

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

CREATE TABLE `cta_cte_tesoreria` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `bind_apibank_movement_id` bigint(20) unsigned DEFAULT NULL COMMENT 'FK soft a bind_apibank_movements (movimiento que originó este registro)',
  `bind_apibank_transfer_id` bigint(20) unsigned DEFAULT NULL COMMENT 'FK soft a bind_apibank_transfers (transferencia que originó este registro)',
  `bind_sync_status` enum('pending','synced','error') COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Estado de sincronización: pending=pendiente, synced=sincronizado, error=error al sincronizar',
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `cta_cte_cliente_id` int(10) unsigned DEFAULT NULL,
  `nf_cta_cte_id` int(10) unsigned DEFAULT NULL,
  `cta_cte_tesoreria_cuenta_id` int(10) unsigned NOT NULL,
  `period_id` int(10) unsigned NOT NULL,
  `fecha` date DEFAULT NULL,
  `total` decimal(16,2) NOT NULL,
  `moneda_id` int(10) unsigned NOT NULL DEFAULT '1',
  `cotizacion` decimal(9,2) NOT NULL DEFAULT '1.00',
  `comentario` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `file` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `ticket_id` bigint(20) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `cta_cte_tesoreria_person_id_foreign` (`person_id`),
  KEY `cta_cte_tesoreria_cta_cte_cliente_id_foreign` (`cta_cte_cliente_id`),
  KEY `cta_cte_tesoreria_cta_cte_tesoreria_cuenta_id_foreign` (`cta_cte_tesoreria_cuenta_id`),
  KEY `cta_cte_tesoreria_period_id_foreign` (`period_id`),
  KEY `cta_cte_tesoreria_nf_cta_cte_id_foreign` (`nf_cta_cte_id`),
  KEY `cta_cte_tesoreria_moneda_id_foreign` (`moneda_id`),
  KEY `cta_cte_tesoreria_ticket_id_foreign` (`ticket_id`),
  KEY `idx_cct_bind_apibank_mov` (`bind_apibank_movement_id`),
  KEY `idx_cct_bind_apibank_trf` (`bind_apibank_transfer_id`),
  KEY `idx_cct_bind_sync_status` (`bind_sync_status`),
  CONSTRAINT `cta_cte_tesoreria_cta_cte_cliente_id_foreign` FOREIGN KEY (`cta_cte_cliente_id`) REFERENCES `cta_cte_cliente` (`id`),
  CONSTRAINT `cta_cte_tesoreria_cta_cte_tesoreria_cuenta_id_foreign` FOREIGN KEY (`cta_cte_tesoreria_cuenta_id`) REFERENCES `cta_cte_tesoreria_cuentas` (`id`),
  CONSTRAINT `cta_cte_tesoreria_moneda_id_foreign` FOREIGN KEY (`moneda_id`) REFERENCES `monedas` (`id`),
  CONSTRAINT `cta_cte_tesoreria_nf_cta_cte_id_foreign` FOREIGN KEY (`nf_cta_cte_id`) REFERENCES `nf_cta_cte` (`id`),
  CONSTRAINT `cta_cte_tesoreria_period_id_foreign` FOREIGN KEY (`period_id`) REFERENCES `periods` (`id`),
  CONSTRAINT `cta_cte_tesoreria_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `cta_cte_tesoreria_ticket_id_foreign` FOREIGN KEY (`ticket_id`) REFERENCES `tickets` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=68 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `cta_cte_tesoreria` VALUES (1,NULL,NULL,NULL,832,40826,160,NULL,13,77501,'2021-10-15',4729174.62,1,1.00,'',NULL,'2021-10-15 10:31:54','2021-10-15 10:50:42','2021-10-15 10:50:42',NULL),(2,NULL,NULL,NULL,832,40826,161,NULL,13,77501,'2021-10-18',4729174.62,1,1.00,'',NULL,'2021-10-18 12:06:47','2021-10-18 12:06:47',NULL,NULL),(3,NULL,NULL,NULL,832,40727,162,NULL,13,9785,'2021-10-18',5369208.02,1,1.00,'',NULL,'2021-10-18 12:14:18','2023-07-26 15:40:18','2023-07-26 15:40:18',NULL),(4,NULL,NULL,NULL,832,40718,163,NULL,13,27,'2021-10-18',218148.82,1,1.00,'',NULL,'2021-10-18 16:08:44','2021-10-18 16:10:06','2021-10-18 16:10:06',NULL),(5,NULL,NULL,NULL,832,40826,164,NULL,13,77501,'2021-10-18',218148.82,1,1.00,'',NULL,'2021-10-18 16:10:57','2021-10-18 16:10:57',NULL,NULL),(6,NULL,NULL,NULL,832,40826,165,NULL,57,77501,'2021-10-18',1621687.28,1,1.00,'',NULL,'2021-10-18 16:24:21','2021-11-02 13:53:49','2021-11-02 13:53:49',NULL),(7,NULL,NULL,NULL,832,40826,169,NULL,13,77501,'2021-10-20',1759052.40,1,1.00,'Cancelacion Facturas 4 y 115.',NULL,'2021-10-26 11:58:56','2021-10-26 11:58:56',NULL,NULL),(8,NULL,NULL,NULL,832,40826,170,NULL,13,77501,'2021-10-25',2151473.90,1,1.00,'Cancelacion Factura N° 0005-00000001',NULL,'2021-10-26 12:27:25','2021-10-26 12:27:25',NULL,NULL),(9,NULL,NULL,NULL,832,40826,282,NULL,57,77500,'2021-09-09',24200.00,1,1.00,'',NULL,'2021-10-27 13:44:41','2021-10-27 13:44:41',NULL,NULL),(10,NULL,NULL,NULL,832,40727,285,NULL,57,9784,'2021-09-09',24200.00,1,1.00,'',NULL,'2021-10-27 13:46:11','2023-07-26 15:42:05','2023-07-26 15:42:05',NULL),(11,NULL,NULL,NULL,832,40826,372,NULL,13,77501,'2021-10-28',664854.88,1,1.00,'',NULL,'2021-10-28 18:32:28','2021-10-28 18:32:28',NULL,NULL),(12,NULL,NULL,NULL,832,40727,NULL,2,57,9777,'2021-09-09',24200.00,1,1.00,'',NULL,'2021-10-29 12:08:22','2021-10-29 12:08:22',NULL,NULL),(13,NULL,NULL,NULL,832,40826,396,NULL,57,77500,'2021-09-09',24200.00,1,1.00,'pago correspondiente a la factura 213',NULL,'2021-11-01 10:44:24','2021-11-01 10:44:24',NULL,NULL),(14,NULL,NULL,NULL,832,40826,436,NULL,13,77501,'2021-10-26',2151473.90,1,1.00,'',NULL,'2021-11-02 13:20:09','2021-11-02 13:23:18','2021-11-02 13:23:18',NULL),(15,NULL,NULL,NULL,832,40826,438,NULL,57,77501,'2021-10-27',1621687.26,1,1.00,'',NULL,'2021-11-02 14:14:24','2021-11-02 14:14:24',NULL,NULL),(16,NULL,NULL,NULL,832,40826,441,NULL,13,77501,'2021-10-06',2856928.21,1,1.00,'',NULL,'2021-11-02 14:45:30','2021-11-02 14:45:30',NULL,NULL),(17,NULL,NULL,NULL,832,40826,445,NULL,13,77501,'2021-10-07',1374297.91,1,1.00,'Cancelacion Factura N° 8',NULL,'2021-11-02 15:12:30','2021-11-02 15:12:30',NULL,NULL),(18,NULL,NULL,NULL,832,40826,449,NULL,13,77501,'2021-10-15',2117500.00,1,1.00,'Cancelacion Factura N° 0005-00000009',NULL,'2021-11-04 10:58:52','2021-11-04 10:58:52',NULL,NULL),(19,NULL,NULL,NULL,832,40826,455,NULL,13,77501,'2021-10-05',558833.48,1,1.00,'Cancelacion F° 0005-00000006',NULL,'2021-11-04 12:09:11','2021-11-04 12:09:11',NULL,NULL),(20,NULL,NULL,NULL,832,40730,456,NULL,13,12345,'2021-11-09',2546880.73,1,1.00,'FCA 00004-00000404',NULL,'2021-11-09 11:48:36','2021-11-09 11:48:36',NULL,NULL),(21,NULL,NULL,NULL,832,40730,461,NULL,57,12345,'2021-11-09',393058.90,1,1.00,'FCA 0015-00001046',NULL,'2021-11-09 12:05:23','2023-04-11 15:35:38','2023-04-11 15:35:38',NULL),(22,NULL,NULL,NULL,832,40730,462,NULL,57,12345,'2021-11-09',574557.22,1,1.00,'0004-00019582',NULL,'2021-11-09 13:12:57','2023-04-11 15:33:21','2023-04-11 15:33:21',NULL),(23,NULL,NULL,NULL,5943,40826,463,NULL,13,77502,'2021-11-10',4729174.62,1,1.00,'FCA  00005-00000022\nFCA 00005-00000023\nFCA 00005-00000024\n',NULL,'2021-11-10 10:57:23','2021-11-10 10:57:23',NULL,NULL),(24,NULL,NULL,NULL,832,40727,464,NULL,13,9786,'2021-11-10',5369208.02,1,1.00,'FCA 00003-00000004\nFCA 00003-00000005\nFCA 00003-00000006',NULL,'2021-11-10 11:02:41','2023-07-26 15:40:12','2023-07-26 15:40:12',NULL);
INSERT INTO `cta_cte_tesoreria` VALUES (25,NULL,NULL,NULL,832,40730,485,NULL,57,12345,'2021-11-10',113740.00,1,1.00,'FCA 00001-00000722',NULL,'2021-11-10 13:53:29','2023-04-11 15:35:28','2023-04-11 15:35:28',NULL),(26,NULL,NULL,NULL,832,40826,493,NULL,57,77502,'2021-11-11',382647.35,1,1.00,'FCA 000031-000080995',NULL,'2021-11-11 17:15:15','2021-11-11 17:15:15',NULL,NULL),(27,NULL,NULL,NULL,832,40730,494,NULL,57,12343,'2021-11-12',2082.60,1,1.00,'PAGO FCA 5-34889',NULL,'2021-11-12 09:38:41','2023-04-11 15:35:34','2023-04-11 15:35:34',NULL),(28,NULL,NULL,NULL,832,40730,495,NULL,57,12343,'2021-11-12',968.00,1,1.00,'PAGO FCA 2-1450',NULL,'2021-11-12 09:40:18','2023-04-11 15:34:46','2023-04-11 15:34:46',NULL),(29,NULL,NULL,NULL,832,40730,496,NULL,13,12343,'2021-09-15',152877.29,1,1.00,'PAGO FCA 111-56075',NULL,'2021-11-12 09:42:53','2023-04-11 15:39:39','2023-04-11 15:39:39',NULL),(30,NULL,NULL,NULL,832,40730,497,NULL,57,12343,'2021-11-12',174.87,1,1.00,'PAGO FCA 2-27617',NULL,'2021-11-12 09:43:35','2023-04-11 15:34:50','2023-04-11 15:34:50',NULL),(31,NULL,NULL,NULL,832,40730,498,NULL,57,12343,'2021-11-12',1223.59,1,1.00,'PAGO FCA 2-27616',NULL,'2021-11-12 09:44:05','2023-04-11 15:34:38','2023-04-11 15:34:38',NULL),(32,NULL,NULL,NULL,832,40730,499,NULL,57,12343,'2021-11-12',8506.85,1,1.00,'FCA 9-47423',NULL,'2021-11-12 09:47:44','2023-04-11 15:34:42','2023-04-11 15:34:42',NULL),(33,NULL,NULL,NULL,832,40730,500,NULL,57,12345,'2021-11-12',23616.62,1,1.00,'VARIAS',NULL,'2021-11-12 09:48:25','2023-04-11 15:35:02','2023-04-11 15:35:02',NULL),(34,NULL,NULL,NULL,832,40730,501,NULL,57,12344,'2021-11-12',69084.98,1,1.00,'VARIAS',NULL,'2021-11-12 09:49:10','2023-04-11 15:34:33','2023-04-11 15:34:33',NULL),(35,NULL,NULL,NULL,832,40730,502,NULL,57,12344,'2021-11-12',61577.11,1,1.00,'VARIOS',NULL,'2021-11-12 09:51:28','2023-04-11 15:34:54','2023-04-11 15:34:54',NULL),(36,NULL,NULL,NULL,832,40730,503,NULL,57,12345,'2021-11-12',116091.57,1,1.00,'VARIOS',NULL,'2021-11-12 09:52:13','2023-04-11 15:34:29','2023-04-11 15:34:29',NULL),(37,NULL,NULL,NULL,832,40730,504,NULL,57,12345,'2021-11-12',8170.11,1,1.00,'VARIOS',NULL,'2021-11-12 09:53:32','2023-04-11 15:34:58','2023-04-11 15:34:58',NULL),(38,NULL,NULL,NULL,832,40730,505,NULL,57,12345,'2021-11-12',15000.13,1,1.00,'VARIOS',NULL,'2021-11-12 09:54:41','2023-04-11 15:35:23','2023-04-11 15:35:23',NULL),(39,NULL,NULL,NULL,832,40730,506,NULL,57,12345,'2021-11-12',13350.94,1,1.00,'VARIOS',NULL,'2021-11-12 09:55:37','2023-04-11 15:35:19','2023-04-11 15:35:19',NULL),(40,NULL,NULL,NULL,832,40730,507,NULL,57,12345,'2021-11-12',21119.89,1,1.00,'VARIOS',NULL,'2021-11-12 09:56:34','2023-04-11 15:34:24','2023-04-11 15:34:24',NULL),(41,NULL,NULL,NULL,832,40730,508,NULL,57,12345,'2021-11-12',4582.13,1,1.00,'VARIOS',NULL,'2021-11-12 09:57:02','2023-04-11 15:34:20','2023-04-11 15:34:20',NULL),(42,NULL,NULL,NULL,832,40727,509,NULL,57,9786,'2021-11-12',20146.05,1,1.00,'PAGO FCA 11-6882',NULL,'2021-11-12 10:17:31','2023-07-26 15:42:10','2023-07-26 15:42:10',NULL),(43,NULL,NULL,NULL,832,40727,510,NULL,57,9786,'2021-11-12',336999.99,1,1.00,'PAGO FCA 3-1388',NULL,'2021-11-12 10:18:11','2023-07-26 15:42:00','2023-07-26 15:42:00',NULL),(44,NULL,NULL,NULL,832,40727,511,NULL,57,9783,'2021-11-12',110968.16,1,1.00,'',NULL,'2021-11-12 10:23:19','2023-07-26 15:41:57','2023-07-26 15:41:57',NULL),(45,NULL,NULL,NULL,832,40727,512,NULL,57,9783,'2021-11-12',242000.00,1,1.00,'PAGO FCE 2-293',NULL,'2021-11-12 10:24:48','2023-07-26 15:41:54','2023-07-26 15:41:54',NULL),(46,NULL,NULL,NULL,832,40727,513,NULL,57,9783,'2021-11-12',1115.57,1,1.00,'',NULL,'2021-11-12 10:25:20','2023-07-26 15:41:51','2023-07-26 15:41:51',NULL),(47,NULL,NULL,NULL,832,40727,514,NULL,57,9783,'2021-11-12',24200.00,1,1.00,'PAGO FCA 2-194',NULL,'2021-11-12 10:25:51','2023-07-26 15:41:48','2023-07-26 15:41:48',NULL);
INSERT INTO `cta_cte_tesoreria` VALUES (48,NULL,NULL,NULL,832,40727,515,NULL,57,9784,'2021-11-12',29338.15,1,1.00,'PAGO FICTICIO PORQUE NO LO RECLAMAN (TAL VEZ SE PAGO EN EFECTIVO)\nFCA 5-2856',NULL,'2021-11-12 10:30:53','2023-07-26 15:41:44','2023-07-26 15:41:44',NULL),(49,NULL,NULL,NULL,832,40730,516,NULL,57,12342,'2021-11-12',905.62,1,1.00,'VARIOS',NULL,'2021-11-12 10:40:14','2023-04-11 15:34:15','2023-04-11 15:34:15',NULL),(50,NULL,NULL,NULL,832,40730,517,NULL,57,12342,'2021-11-12',2477.42,1,1.00,'VARIOS',NULL,'2021-11-12 10:41:06','2023-04-11 15:34:10','2023-04-11 15:34:10',NULL),(51,NULL,NULL,NULL,832,40730,518,NULL,57,12342,'2021-11-12',10162.70,1,1.00,'FCA 23-5167',NULL,'2021-11-12 10:41:45','2023-04-11 15:34:05','2023-04-11 15:34:05',NULL),(52,NULL,NULL,NULL,832,40730,519,NULL,57,12345,'2021-11-12',26322.78,1,1.00,'VARIOS',NULL,'2021-11-12 10:42:23','2023-04-11 15:33:27','2023-04-11 15:33:27',NULL),(53,NULL,NULL,NULL,832,40730,520,NULL,57,12342,'2021-11-12',962.92,1,1.00,'VARIOS',NULL,'2021-11-12 10:42:54','2023-04-11 15:33:58','2023-04-11 15:33:58',NULL),(54,NULL,NULL,NULL,832,40730,521,NULL,57,12345,'2021-11-12',4233.79,1,1.00,'VARIOS',NULL,'2021-11-12 10:43:24','2023-04-11 15:33:52','2023-04-11 15:33:52',NULL),(55,NULL,NULL,NULL,832,40730,522,NULL,57,12345,'2021-11-12',4387.85,1,1.00,'VARIOS',NULL,'2021-11-12 10:43:54','2023-04-11 15:33:47','2023-04-11 15:33:47',NULL),(56,NULL,NULL,NULL,832,40730,523,NULL,57,12345,'2021-11-12',27396.93,1,1.00,'VARIOS',NULL,'2021-11-12 10:44:48','2023-04-11 15:33:42','2023-04-11 15:33:42',NULL),(57,NULL,NULL,NULL,832,40730,526,NULL,57,12345,'2021-11-12',6594900.00,1,1.00,'FCA 4-25311',NULL,'2021-11-12 15:21:57','2023-04-11 15:33:31','2023-04-11 15:33:31',NULL),(58,NULL,NULL,NULL,832,40730,527,NULL,57,12345,'2021-11-12',200000.00,1,1.00,'PAGO A CUENTA',NULL,'2021-11-12 15:37:16','2023-04-11 15:33:37','2023-04-11 15:33:37',NULL),(59,NULL,NULL,NULL,832,40826,528,NULL,57,77502,'2021-11-12',200000.00,1,1.00,'PAGO A CUENTA',NULL,'2021-11-12 15:49:22','2021-11-12 15:49:22',NULL,NULL),(60,NULL,NULL,NULL,832,40730,530,NULL,57,12345,'2021-11-12',75000.00,1,1.00,'FCC 4-69',NULL,'2021-11-12 15:51:13','2021-11-12 15:52:59','2021-11-12 15:52:59',NULL),(61,NULL,NULL,NULL,832,40826,532,NULL,57,77502,'2021-11-15',3452368.40,1,1.00,'FCA 4-4765',NULL,'2021-11-13 10:07:02','2021-11-13 10:07:02',NULL,NULL),(62,NULL,NULL,NULL,832,40730,535,NULL,57,12345,'2021-11-16',36978.01,1,1.00,'FCA 46-111353',NULL,'2021-11-16 08:39:42','2023-04-11 15:33:09','2023-04-11 15:33:09',NULL),(63,NULL,NULL,NULL,832,40730,539,NULL,13,12344,'2021-11-16',12100000.00,1,1.00,'FCA 4-406\nFCA 4-405',NULL,'2021-11-16 09:28:57','2023-04-11 15:39:36','2023-04-11 15:39:36',NULL),(64,NULL,NULL,NULL,832,40730,540,NULL,13,12344,'2021-11-16',3913893.21,1,1.00,'FCA 4-402',NULL,'2021-11-16 09:32:44','2021-11-16 09:32:44',NULL,NULL),(65,NULL,NULL,NULL,832,40730,541,NULL,57,12345,'2021-11-16',3452368.40,1,1.00,'FCA 4-4764',NULL,'2021-11-16 09:35:43','2023-04-11 15:33:03','2023-04-11 15:33:03',NULL),(66,NULL,NULL,NULL,832,40761,727,NULL,57,48678,'2021-08-20',7937.04,1,1.00,'',NULL,'2021-12-02 11:40:34','2021-12-02 11:40:34',NULL,NULL),(67,NULL,NULL,NULL,5948,40838,745,NULL,57,78214,'2021-11-06',8928.06,1,1.00,'Pago Factura Nº 2507',NULL,'2021-12-02 15:41:37','2021-12-02 15:41:37',NULL,NULL);

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

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

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

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

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

INSERT INTO `cta_cte_tesoreria_detail` VALUES (12,832,2,13,40826,77501,2,4729174.62,0,'2021-10-18','2021-10-18 12:06:47','2021-10-18 12:06:47',NULL),(13,832,2,176,40826,77501,1,555567.23,0,'2021-10-18','2021-10-18 12:06:47','2021-10-18 12:06:47',NULL),(14,832,2,176,40826,77501,1,555567.25,0,'2021-10-18','2021-10-18 12:06:47','2021-10-18 12:06:47',NULL),(15,832,2,176,40826,77501,1,555567.36,0,'2021-10-18','2021-10-18 12:06:47','2021-10-18 12:06:47',NULL),(16,832,2,176,40826,77501,1,555567.25,0,'2021-10-18','2021-10-18 12:06:47','2021-10-18 12:06:47',NULL),(17,832,2,176,40826,77501,1,555567.25,0,'2021-10-18','2021-10-18 12:06:47','2021-10-18 12:06:47',NULL),(18,832,2,176,40826,77501,1,555567.25,0,'2021-10-18','2021-10-18 12:06:47','2021-10-18 12:06:47',NULL),(19,832,2,176,40826,77501,1,555567.25,0,'2021-10-18','2021-10-18 12:06:47','2021-10-18 12:06:47',NULL),(20,832,2,176,40826,77501,1,555567.25,0,'2021-10-18','2021-10-18 12:06:47','2021-10-18 12:06:47',NULL),(21,832,2,23,40826,77501,1,233832.53,0,'2021-10-18','2021-10-18 12:06:47','2021-10-18 12:06:47',NULL),(22,832,2,251,40826,77501,1,50804.00,0,'2021-10-18','2021-10-18 12:06:47','2021-10-18 12:06:47',NULL),(23,832,3,13,40727,9785,2,5369208.02,0,'2021-10-18','2021-10-18 12:14:18','2023-07-26 15:40:18','2023-07-26 15:40:18'),(24,832,3,176,40727,9785,1,631299.35,0,'2021-10-18','2021-10-18 12:14:18','2023-07-26 15:40:18','2023-07-26 15:40:18'),(25,832,3,176,40727,9785,1,631299.35,0,'2021-10-18','2021-10-18 12:14:18','2023-07-26 15:40:18','2023-07-26 15:40:18'),(26,832,3,176,40727,9785,1,631299.35,0,'2021-10-18','2021-10-18 12:14:18','2023-07-26 15:40:18','2023-07-26 15:40:18'),(27,832,3,176,40727,9785,1,631299.35,0,'2021-10-18','2021-10-18 12:14:18','2023-07-26 15:40:18','2023-07-26 15:40:18'),(28,832,3,176,40727,9785,1,631299.35,0,'2021-10-18','2021-10-18 12:14:18','2023-07-26 15:40:18','2023-07-26 15:40:18'),(29,832,3,176,40727,9785,1,631299.35,0,'2021-10-18','2021-10-18 12:14:18','2023-07-26 15:40:18','2023-07-26 15:40:18'),(30,832,3,176,40727,9785,1,631299.35,0,'2021-10-18','2021-10-18 12:14:18','2023-07-26 15:40:18','2023-07-26 15:40:18'),(31,832,3,251,40727,9785,1,53243.54,0,'2021-10-18','2021-10-18 12:14:18','2023-07-26 15:40:18','2023-07-26 15:40:18'),(32,832,3,23,40727,9785,1,265569.72,0,'2021-10-18','2021-10-18 12:14:18','2023-07-26 15:40:18','2023-07-26 15:40:18'),(33,832,3,176,40727,9785,1,631299.31,0,'2021-10-18','2021-10-18 12:14:18','2023-07-26 15:40:18','2023-07-26 15:40:18'),(36,832,5,13,40826,77501,2,218148.82,0,'2021-10-18','2021-10-18 16:10:57','2021-10-18 16:10:57',NULL),(37,832,5,176,40826,77501,1,218148.82,0,'2021-10-18','2021-10-18 16:10:57','2021-10-18 16:10:57',NULL),(43,832,7,13,40826,77501,2,1759052.40,0,'2021-10-20','2021-10-26 11:58:56','2021-10-26 11:58:56',NULL),(44,832,7,176,40826,77501,1,879570.10,0,'2021-10-20','2021-10-26 11:58:56','2021-10-26 11:58:56',NULL),(45,832,7,176,40826,77501,1,879482.30,0,'2021-10-20','2021-10-26 11:58:56','2021-10-26 11:58:56',NULL),(46,832,8,13,40826,77501,2,2151473.90,0,'2021-10-25','2021-10-26 12:27:25','2021-10-26 12:27:25',NULL),(47,832,8,359,40826,77501,1,2022346.23,0,'2021-10-25','2021-10-26 12:27:25','2021-10-26 12:27:25',NULL),(48,832,8,251,40826,77501,1,23115.01,0,'2021-10-25','2021-10-26 12:27:25','2021-10-26 12:27:25',NULL),(49,832,8,23,40826,77501,1,106012.66,0,'2021-10-25','2021-10-26 12:27:25','2021-10-26 12:27:25',NULL),(50,832,9,57,40826,77500,1,24200.00,0,'2021-09-09','2021-10-27 13:44:41','2021-10-27 13:44:41',NULL),(51,832,9,60,40826,77500,2,24200.00,0,'2021-09-09','2021-10-27 13:44:41','2021-10-27 13:44:41',NULL),(52,832,10,57,40727,9784,1,24200.00,0,'2021-09-09','2021-10-27 13:46:11','2023-07-26 15:42:05','2023-07-26 15:42:05'),(53,832,10,60,40727,9784,2,24200.00,0,'2021-09-09','2021-10-27 13:46:11','2023-07-26 15:42:05','2023-07-26 15:42:05'),(54,832,11,13,40826,77501,2,664854.88,0,'2021-10-28','2021-10-28 18:32:28','2021-10-28 18:32:28',NULL),(55,832,11,359,40826,77501,1,54854.88,0,'2021-10-28','2021-10-28 18:32:28','2021-10-28 18:32:28',NULL);
INSERT INTO `cta_cte_tesoreria_detail` VALUES (56,832,11,176,40826,77501,1,610000.00,0,'2021-10-28','2021-10-28 18:32:28','2021-10-28 18:32:28',NULL),(57,832,12,57,40727,9777,1,24200.00,0,'2021-09-09','2021-10-29 12:08:22','2021-10-29 12:08:22',NULL),(58,832,12,60,40727,9777,2,24200.00,0,'2021-09-09','2021-10-29 12:08:22','2021-10-29 12:08:22',NULL),(59,832,13,57,40826,77500,1,24200.00,0,'2021-09-09','2021-11-01 10:44:24','2021-11-01 10:44:24',NULL),(60,832,13,60,40826,77500,2,24200.00,0,'2021-09-09','2021-11-01 10:44:24','2021-11-01 10:44:24',NULL),(65,832,15,57,40826,77501,1,1621687.26,0,'2021-10-27','2021-11-02 14:14:24','2021-11-02 14:14:24',NULL),(66,832,15,176,40826,77501,2,218148.82,0,'2021-10-27','2021-11-02 14:14:24','2021-11-02 14:14:24',NULL),(67,832,15,176,40826,77501,2,555567.23,0,'2021-10-27','2021-11-02 14:14:24','2021-11-02 14:14:24',NULL),(68,832,15,176,40826,77501,2,555567.25,0,'2021-10-27','2021-11-02 14:14:24','2021-11-02 14:14:24',NULL),(69,832,15,60,40826,77501,2,292403.96,0,'2021-10-27','2021-11-02 14:14:24','2021-11-02 14:14:24',NULL),(70,832,16,13,40826,77501,2,2856928.21,0,'2021-10-06','2021-11-02 14:45:30','2021-11-02 14:45:30',NULL),(71,832,16,359,40826,77501,1,2685240.08,0,'2021-10-06','2021-11-02 14:45:30','2021-11-02 14:45:30',NULL),(72,832,16,23,40826,77501,1,140993.86,0,'2021-10-06','2021-11-02 14:45:30','2021-11-02 14:45:30',NULL),(73,832,16,251,40826,77501,1,30694.27,0,'2021-10-06','2021-11-02 14:45:30','2021-11-02 14:45:30',NULL),(74,832,17,13,40826,77501,2,1374297.91,0,'2021-10-07','2021-11-02 15:12:30','2021-11-02 15:12:30',NULL),(75,832,17,359,40826,77501,1,1101246.12,0,'2021-10-07','2021-11-02 15:12:30','2021-11-02 15:12:30',NULL),(76,832,17,25,40826,77501,1,190811.61,0,'2021-10-07','2021-11-02 15:12:30','2021-11-02 15:12:30',NULL),(77,832,17,251,40826,77501,1,14765.18,0,'2021-10-07','2021-11-02 15:12:30','2021-11-02 15:12:30',NULL),(78,832,17,23,40826,77501,1,67475.00,0,'2021-10-07','2021-11-02 15:12:30','2021-11-02 15:12:30',NULL),(79,832,18,13,40826,77501,2,2117500.00,0,'2021-10-15','2021-11-04 10:58:52','2021-11-04 10:58:52',NULL),(80,832,18,176,40826,77501,1,1006586.00,0,'2021-10-15','2021-11-04 10:58:52','2021-11-04 10:58:52',NULL),(81,832,18,176,40826,77501,1,1006586.00,0,'2021-10-15','2021-11-04 10:58:52','2021-11-04 10:58:52',NULL),(82,832,18,23,40826,77501,1,104328.00,0,'2021-10-15','2021-11-04 10:58:52','2021-11-04 10:58:52',NULL),(83,832,19,13,40826,77501,2,558833.48,0,'2021-10-05','2021-11-04 12:09:11','2021-11-04 12:09:11',NULL),(84,832,19,359,40826,77501,1,525790.73,0,'2021-10-05','2021-11-04 12:09:11','2021-11-04 12:09:11',NULL),(85,832,19,251,40826,77501,1,6004.00,0,'2021-10-05','2021-11-04 12:09:11','2021-11-04 12:09:11',NULL),(86,832,19,23,40826,77501,1,27038.75,0,'2021-10-05','2021-11-04 12:09:11','2021-11-04 12:09:11',NULL),(87,832,20,13,40730,12345,2,2546880.73,0,'2021-11-09','2021-11-09 11:48:36','2021-11-09 11:48:36',NULL),(88,832,20,176,40730,12345,1,20000.00,0,'2021-11-09','2021-11-09 11:48:36','2021-11-09 11:48:36',NULL),(89,832,20,176,40730,12345,1,350000.00,0,'2021-11-09','2021-11-09 11:48:36','2021-11-09 11:48:36',NULL),(90,832,20,176,40730,12345,1,151762.50,0,'2021-11-09','2021-11-09 11:48:36','2021-11-09 11:48:36',NULL),(91,832,20,176,40730,12345,1,44800.00,0,'2021-11-09','2021-11-09 11:48:36','2021-11-09 11:48:36',NULL),(92,832,20,176,40730,12345,1,35000.00,0,'2021-11-09','2021-11-09 11:48:36','2021-11-09 11:48:36',NULL),(93,832,20,176,40730,12345,1,204363.00,0,'2021-11-09','2021-11-09 11:48:36','2021-11-09 11:48:36',NULL),(94,832,20,176,40730,12345,1,286000.27,0,'2021-11-09','2021-11-09 11:48:36','2021-11-09 11:48:36',NULL),(95,832,20,176,40730,12345,1,72575.00,0,'2021-11-09','2021-11-09 11:48:36','2021-11-09 11:48:36',NULL),(96,832,20,176,40730,12345,1,40000.98,0,'2021-11-09','2021-11-09 11:48:36','2021-11-09 11:48:36',NULL),(97,832,20,176,40730,12345,1,30000.00,0,'2021-11-09','2021-11-09 11:48:36','2021-11-09 11:48:36',NULL);
INSERT INTO `cta_cte_tesoreria_detail` VALUES (98,832,20,176,40730,12345,1,25000.00,0,'2021-11-09','2021-11-09 11:48:36','2021-11-09 11:48:36',NULL),(99,832,20,176,40730,12345,1,10000.00,0,'2021-11-09','2021-11-09 11:48:36','2021-11-09 11:48:36',NULL),(100,832,20,176,40730,12345,1,15000.00,0,'2021-11-09','2021-11-09 11:48:36','2021-11-09 11:48:36',NULL),(101,832,20,176,40730,12345,1,15000.00,0,'2021-11-09','2021-11-09 11:48:36','2021-11-09 11:48:36',NULL),(102,832,20,176,40730,12345,1,30000.00,0,'2021-11-09','2021-11-09 11:48:36','2021-11-09 11:48:36',NULL),(103,832,20,176,40730,12345,1,1131350.00,0,'2021-11-09','2021-11-09 11:48:36','2021-11-09 11:48:36',NULL),(104,832,20,251,40730,12345,1,27363.18,0,'2021-11-09','2021-11-09 11:48:36','2021-11-09 11:48:36',NULL),(105,832,20,23,40730,12345,1,37617.20,0,'2021-11-09','2021-11-09 11:48:36','2021-11-09 11:48:36',NULL),(106,832,20,23,40730,12345,1,21048.60,0,'2021-11-09','2021-11-09 11:48:36','2021-11-09 11:48:36',NULL),(107,832,21,57,40730,12345,1,393058.90,0,'2021-11-09','2021-11-09 12:05:23','2023-04-11 15:35:38','2023-04-11 15:35:38'),(108,832,21,176,40730,12345,2,40000.98,0,'2021-11-09','2021-11-09 12:05:23','2023-04-11 15:35:38','2023-04-11 15:35:38'),(109,832,21,176,40730,12345,2,350000.00,0,'2021-11-09','2021-11-09 12:05:23','2023-04-11 15:35:38','2023-04-11 15:35:38'),(110,832,21,60,40730,12345,2,3057.92,0,'2021-11-09','2021-11-09 12:05:23','2023-04-11 15:35:38','2023-04-11 15:35:38'),(111,832,22,57,40730,12345,1,574557.22,0,'2021-11-09','2021-11-09 13:12:57','2023-04-11 15:33:21','2023-04-11 15:33:21'),(112,832,22,176,40730,12345,2,204363.00,0,'2021-11-09','2021-11-09 13:12:57','2023-04-11 15:33:21','2023-04-11 15:33:21'),(113,832,22,176,40730,12345,2,44800.00,0,'2021-11-09','2021-11-09 13:12:57','2023-04-11 15:33:21','2023-04-11 15:33:21'),(114,832,22,176,40730,12345,2,286000.27,0,'2021-11-09','2021-11-09 13:12:57','2023-04-11 15:33:21','2023-04-11 15:33:21'),(115,832,22,176,40730,12345,2,35000.00,0,'2021-11-09','2021-11-09 13:12:57','2023-04-11 15:33:21','2023-04-11 15:33:21'),(116,832,22,60,40730,12345,2,4393.95,0,'2021-11-09','2021-11-09 13:12:57','2023-04-11 15:33:21','2023-04-11 15:33:21'),(117,5943,23,13,40826,77502,2,4729174.62,0,'2021-11-10','2021-11-10 10:57:23','2021-11-10 10:57:23',NULL),(118,5943,23,176,40826,77502,1,555567.25,0,'2021-11-10','2021-11-10 10:57:23','2021-11-10 10:57:23',NULL),(119,5943,23,176,40826,77502,1,555567.25,0,'2021-11-10','2021-11-10 10:57:23','2021-11-10 10:57:23',NULL),(120,5943,23,176,40826,77502,1,555567.25,0,'2021-11-10','2021-11-10 10:57:23','2021-11-10 10:57:23',NULL),(121,5943,23,176,40826,77502,1,555567.25,0,'2021-11-10','2021-11-10 10:57:23','2021-11-10 10:57:23',NULL),(122,5943,23,176,40826,77502,1,555567.25,0,'2021-11-10','2021-11-10 10:57:23','2021-11-10 10:57:23',NULL),(123,5943,23,176,40826,77502,1,555567.25,0,'2021-11-10','2021-11-10 10:57:23','2021-11-10 10:57:23',NULL),(124,5943,23,176,40826,77502,1,555567.25,0,'2021-11-10','2021-11-10 10:57:23','2021-11-10 10:57:23',NULL),(125,5943,23,176,40826,77502,1,555567.23,0,'2021-11-10','2021-11-10 10:57:23','2021-11-10 10:57:23',NULL),(126,5943,23,251,40826,77502,1,50804.11,0,'2021-11-10','2021-11-10 10:57:23','2021-11-10 10:57:23',NULL),(127,5943,23,23,40826,77502,1,233832.53,0,'2021-11-10','2021-11-10 10:57:23','2021-11-10 10:57:23',NULL),(128,832,24,13,40727,9786,2,5369208.02,0,'2021-11-10','2021-11-10 11:02:41','2023-07-26 15:40:12','2023-07-26 15:40:12'),(129,832,24,176,40727,9786,1,631299.35,0,'2021-11-10','2021-11-10 11:02:41','2023-07-26 15:40:12','2023-07-26 15:40:12'),(130,832,24,176,40727,9786,1,631299.35,0,'2021-11-10','2021-11-10 11:02:41','2023-07-26 15:40:12','2023-07-26 15:40:12'),(131,832,24,176,40727,9786,1,631299.35,0,'2021-11-10','2021-11-10 11:02:41','2023-07-26 15:40:12','2023-07-26 15:40:12'),(132,832,24,176,40727,9786,1,631299.35,0,'2021-11-10','2021-11-10 11:02:41','2023-07-26 15:40:12','2023-07-26 15:40:12');
INSERT INTO `cta_cte_tesoreria_detail` VALUES (133,832,24,176,40727,9786,1,631299.35,0,'2021-11-10','2021-11-10 11:02:41','2023-07-26 15:40:12','2023-07-26 15:40:12'),(134,832,24,176,40727,9786,1,631299.35,0,'2021-11-10','2021-11-10 11:02:41','2023-07-26 15:40:12','2023-07-26 15:40:12'),(135,832,24,176,40727,9786,1,631299.35,0,'2021-11-10','2021-11-10 11:02:41','2023-07-26 15:40:12','2023-07-26 15:40:12'),(136,832,24,176,40727,9786,1,631299.31,0,'2021-11-10','2021-11-10 11:02:41','2023-07-26 15:40:12','2023-07-26 15:40:12'),(137,832,24,251,40727,9786,1,53243.54,0,'2021-11-10','2021-11-10 11:02:41','2023-07-26 15:40:12','2023-07-26 15:40:12'),(138,832,24,23,40727,9786,1,265569.72,0,'2021-11-10','2021-11-10 11:02:41','2023-07-26 15:40:12','2023-07-26 15:40:12'),(139,832,25,57,40730,12345,1,113740.00,0,'2021-11-10','2021-11-10 13:53:29','2023-04-11 15:35:28','2023-04-11 15:35:28'),(140,832,25,176,40730,12345,2,10000.00,0,'2021-11-10','2021-11-10 13:53:29','2023-04-11 15:35:28','2023-04-11 15:35:28'),(141,832,25,176,40730,12345,2,30000.00,0,'2021-11-10','2021-11-10 13:53:29','2023-04-11 15:35:28','2023-04-11 15:35:28'),(142,832,25,176,40730,12345,2,72575.00,0,'2021-11-10','2021-11-10 13:53:29','2023-04-11 15:35:28','2023-04-11 15:35:28'),(143,832,25,359,40730,12345,2,1165.00,0,'2021-11-10','2021-11-10 13:53:29','2023-04-11 15:35:28','2023-04-11 15:35:28'),(144,832,26,57,40826,77502,1,382647.35,0,'2021-11-11','2021-11-11 17:15:15','2021-11-11 17:15:15',NULL),(145,832,26,60,40826,77502,2,150000.00,0,'2021-11-11','2021-11-11 17:15:15','2021-11-11 17:15:15',NULL),(146,832,26,60,40826,77502,2,150000.00,0,'2021-11-11','2021-11-11 17:15:15','2021-11-11 17:15:15',NULL),(147,832,26,60,40826,77502,2,82647.35,0,'2021-11-11','2021-11-11 17:15:15','2021-11-11 17:15:15',NULL),(148,832,27,57,40730,12343,1,2082.60,0,'2021-11-12','2021-11-12 09:38:41','2023-04-11 15:35:34','2023-04-11 15:35:34'),(149,832,27,359,40730,12343,2,2082.60,0,'2021-11-12','2021-11-12 09:38:41','2023-04-11 15:35:34','2023-04-11 15:35:34'),(150,832,28,57,40730,12343,1,968.00,0,'2021-11-12','2021-11-12 09:40:18','2023-04-11 15:34:46','2023-04-11 15:34:46'),(151,832,28,359,40730,12343,2,968.00,0,'2021-11-12','2021-11-12 09:40:18','2023-04-11 15:34:46','2023-04-11 15:34:46'),(152,832,29,13,40730,12343,2,152877.29,0,'2021-09-15','2021-11-12 09:42:53','2023-04-11 15:39:39','2023-04-11 15:39:39'),(153,832,29,60,40730,12343,1,152877.29,0,'2021-09-15','2021-11-12 09:42:53','2023-04-11 15:39:39','2023-04-11 15:39:39'),(154,832,30,57,40730,12343,1,174.87,0,'2021-11-12','2021-11-12 09:43:35','2023-04-11 15:34:50','2023-04-11 15:34:50'),(155,832,30,359,40730,12343,2,174.87,0,'2021-11-12','2021-11-12 09:43:35','2023-04-11 15:34:50','2023-04-11 15:34:50'),(156,832,31,57,40730,12343,1,1223.59,0,'2021-11-12','2021-11-12 09:44:05','2023-04-11 15:34:38','2023-04-11 15:34:38'),(157,832,31,359,40730,12343,2,1223.59,0,'2021-11-12','2021-11-12 09:44:05','2023-04-11 15:34:38','2023-04-11 15:34:38'),(158,832,32,57,40730,12343,1,8506.85,0,'2021-11-12','2021-11-12 09:47:44','2023-04-11 15:34:42','2023-04-11 15:34:42'),(159,832,32,359,40730,12343,2,8506.85,0,'2021-11-12','2021-11-12 09:47:44','2023-04-11 15:34:42','2023-04-11 15:34:42'),(160,832,33,57,40730,12345,1,23616.62,0,'2021-11-12','2021-11-12 09:48:25','2023-04-11 15:35:02','2023-04-11 15:35:02'),(161,832,33,359,40730,12345,2,23616.62,0,'2021-11-12','2021-11-12 09:48:25','2023-04-11 15:35:02','2023-04-11 15:35:02'),(162,832,34,57,40730,12344,1,69084.98,0,'2021-11-12','2021-11-12 09:49:10','2023-04-11 15:34:33','2023-04-11 15:34:33'),(163,832,34,359,40730,12344,2,69084.98,0,'2021-11-12','2021-11-12 09:49:10','2023-04-11 15:34:33','2023-04-11 15:34:33'),(164,832,35,57,40730,12344,1,61577.11,0,'2021-11-12','2021-11-12 09:51:28','2023-04-11 15:34:54','2023-04-11 15:34:54'),(165,832,35,359,40730,12344,2,61577.11,0,'2021-11-12','2021-11-12 09:51:28','2023-04-11 15:34:54','2023-04-11 15:34:54');
INSERT INTO `cta_cte_tesoreria_detail` VALUES (166,832,36,57,40730,12345,1,116091.57,0,'2021-11-12','2021-11-12 09:52:13','2023-04-11 15:34:29','2023-04-11 15:34:29'),(167,832,36,359,40730,12345,2,116091.57,0,'2021-11-12','2021-11-12 09:52:13','2023-04-11 15:34:29','2023-04-11 15:34:29'),(168,832,37,57,40730,12345,1,8170.11,0,'2021-11-12','2021-11-12 09:53:32','2023-04-11 15:34:58','2023-04-11 15:34:58'),(169,832,37,359,40730,12345,2,8170.11,0,'2021-11-12','2021-11-12 09:53:32','2023-04-11 15:34:58','2023-04-11 15:34:58'),(170,832,38,57,40730,12345,1,15000.13,0,'2021-11-12','2021-11-12 09:54:41','2023-04-11 15:35:23','2023-04-11 15:35:23'),(171,832,38,359,40730,12345,2,15000.13,0,'2021-11-12','2021-11-12 09:54:41','2023-04-11 15:35:23','2023-04-11 15:35:23'),(172,832,39,57,40730,12345,1,13350.94,0,'2021-11-12','2021-11-12 09:55:37','2023-04-11 15:35:19','2023-04-11 15:35:19'),(173,832,39,359,40730,12345,2,13350.94,0,'2021-11-12','2021-11-12 09:55:37','2023-04-11 15:35:19','2023-04-11 15:35:19'),(174,832,40,57,40730,12345,1,21119.89,0,'2021-11-12','2021-11-12 09:56:34','2023-04-11 15:34:24','2023-04-11 15:34:24'),(175,832,40,359,40730,12345,2,21119.89,0,'2021-11-12','2021-11-12 09:56:34','2023-04-11 15:34:24','2023-04-11 15:34:24'),(176,832,41,57,40730,12345,1,4582.13,0,'2021-11-12','2021-11-12 09:57:02','2023-04-11 15:34:20','2023-04-11 15:34:20'),(177,832,41,359,40730,12345,2,4582.13,0,'2021-11-12','2021-11-12 09:57:02','2023-04-11 15:34:20','2023-04-11 15:34:20'),(178,832,42,57,40727,9786,1,20146.05,0,'2021-11-12','2021-11-12 10:17:31','2023-07-26 15:42:10','2023-07-26 15:42:10'),(179,832,42,359,40727,9786,2,20146.05,0,'2021-11-12','2021-11-12 10:17:31','2023-07-26 15:42:10','2023-07-26 15:42:10'),(180,832,43,57,40727,9786,1,336999.99,0,'2021-11-12','2021-11-12 10:18:11','2023-07-26 15:42:00','2023-07-26 15:42:00'),(181,832,43,359,40727,9786,2,336999.99,0,'2021-11-12','2021-11-12 10:18:11','2023-07-26 15:42:00','2023-07-26 15:42:00'),(182,832,44,57,40727,9783,1,110968.16,0,'2021-11-12','2021-11-12 10:23:19','2023-07-26 15:41:57','2023-07-26 15:41:57'),(183,832,44,359,40727,9783,2,110968.16,0,'2021-11-12','2021-11-12 10:23:19','2023-07-26 15:41:57','2023-07-26 15:41:57'),(184,832,45,57,40727,9783,1,242000.00,0,'2021-11-12','2021-11-12 10:24:48','2023-07-26 15:41:54','2023-07-26 15:41:54'),(185,832,45,359,40727,9783,2,242000.00,0,'2021-11-12','2021-11-12 10:24:48','2023-07-26 15:41:54','2023-07-26 15:41:54'),(186,832,46,57,40727,9783,1,1115.57,0,'2021-11-12','2021-11-12 10:25:20','2023-07-26 15:41:51','2023-07-26 15:41:51'),(187,832,46,359,40727,9783,2,1115.57,0,'2021-11-12','2021-11-12 10:25:20','2023-07-26 15:41:51','2023-07-26 15:41:51'),(188,832,47,57,40727,9783,1,24200.00,0,'2021-11-12','2021-11-12 10:25:51','2023-07-26 15:41:48','2023-07-26 15:41:48'),(189,832,47,359,40727,9783,2,24200.00,0,'2021-11-12','2021-11-12 10:25:51','2023-07-26 15:41:48','2023-07-26 15:41:48'),(190,832,48,57,40727,9784,1,29338.15,0,'2021-11-12','2021-11-12 10:30:53','2023-07-26 15:41:44','2023-07-26 15:41:44'),(191,832,48,359,40727,9784,2,29338.15,0,'2021-11-12','2021-11-12 10:30:53','2023-07-26 15:41:44','2023-07-26 15:41:44'),(192,832,49,57,40730,12342,1,905.62,0,'2021-11-12','2021-11-12 10:40:14','2023-04-11 15:34:15','2023-04-11 15:34:15'),(193,832,49,359,40730,12342,2,905.62,0,'2021-11-12','2021-11-12 10:40:14','2023-04-11 15:34:15','2023-04-11 15:34:15'),(194,832,50,57,40730,12342,1,2477.42,0,'2021-11-12','2021-11-12 10:41:06','2023-04-11 15:34:10','2023-04-11 15:34:10'),(195,832,50,359,40730,12342,2,2477.42,0,'2021-11-12','2021-11-12 10:41:06','2023-04-11 15:34:10','2023-04-11 15:34:10'),(196,832,51,57,40730,12342,1,10162.70,0,'2021-11-12','2021-11-12 10:41:45','2023-04-11 15:34:05','2023-04-11 15:34:05'),(197,832,51,359,40730,12342,2,10162.70,0,'2021-11-12','2021-11-12 10:41:45','2023-04-11 15:34:05','2023-04-11 15:34:05'),(198,832,52,57,40730,12345,1,26322.78,0,'2021-11-12','2021-11-12 10:42:23','2023-04-11 15:33:27','2023-04-11 15:33:27');
INSERT INTO `cta_cte_tesoreria_detail` VALUES (199,832,52,359,40730,12345,2,26322.78,0,'2021-11-12','2021-11-12 10:42:23','2023-04-11 15:33:27','2023-04-11 15:33:27'),(200,832,53,57,40730,12342,1,962.92,0,'2021-11-12','2021-11-12 10:42:54','2023-04-11 15:33:58','2023-04-11 15:33:58'),(201,832,53,359,40730,12342,2,962.92,0,'2021-11-12','2021-11-12 10:42:54','2023-04-11 15:33:58','2023-04-11 15:33:58'),(202,832,54,57,40730,12345,1,4233.79,0,'2021-11-12','2021-11-12 10:43:24','2023-04-11 15:33:52','2023-04-11 15:33:52'),(203,832,54,359,40730,12345,2,4233.79,0,'2021-11-12','2021-11-12 10:43:24','2023-04-11 15:33:52','2023-04-11 15:33:52'),(204,832,55,57,40730,12345,1,4387.85,0,'2021-11-12','2021-11-12 10:43:54','2023-04-11 15:33:47','2023-04-11 15:33:47'),(205,832,55,359,40730,12345,2,4387.85,0,'2021-11-12','2021-11-12 10:43:54','2023-04-11 15:33:47','2023-04-11 15:33:47'),(206,832,56,57,40730,12345,1,27396.93,0,'2021-11-12','2021-11-12 10:44:48','2023-04-11 15:33:42','2023-04-11 15:33:42'),(207,832,56,359,40730,12345,2,27396.93,0,'2021-11-12','2021-11-12 10:44:48','2023-04-11 15:33:42','2023-04-11 15:33:42'),(208,832,57,57,40730,12345,1,6594900.00,0,'2021-11-12','2021-11-12 15:21:57','2023-04-11 15:33:31','2023-04-11 15:33:31'),(209,832,57,60,40730,12345,2,1500000.00,0,'2021-11-12','2021-11-12 15:21:57','2023-04-11 15:33:31','2023-04-11 15:33:31'),(210,832,57,60,40730,12345,2,1500000.00,0,'2021-11-12','2021-11-12 15:21:57','2023-04-11 15:33:31','2023-04-11 15:33:31'),(211,832,57,60,40730,12345,2,2094900.00,0,'2021-11-12','2021-11-12 15:21:57','2023-04-11 15:33:31','2023-04-11 15:33:31'),(212,832,57,60,40730,12345,2,1500000.00,0,'2021-11-12','2021-11-12 15:21:57','2023-04-11 15:33:31','2023-04-11 15:33:31'),(213,832,58,57,40730,12345,1,200000.00,0,'2021-11-12','2021-11-12 15:37:16','2023-04-11 15:33:37','2023-04-11 15:33:37'),(214,832,58,359,40730,12345,2,200000.00,0,'2021-11-12','2021-11-12 15:37:16','2023-04-11 15:33:37','2023-04-11 15:33:37'),(215,832,59,57,40826,77502,1,200000.00,0,'2021-11-12','2021-11-12 15:49:22','2021-11-12 15:49:22',NULL),(216,832,59,359,40826,77502,2,200000.00,0,'2021-11-12','2021-11-12 15:49:22','2021-11-12 15:49:22',NULL),(217,832,61,57,40826,77502,1,3452368.40,0,'2021-11-15','2021-11-13 10:07:02','2021-11-13 10:07:02',NULL),(218,832,61,176,40826,77502,2,555567.25,0,'2021-11-15','2021-11-13 10:07:02','2021-11-13 10:07:02',NULL),(219,832,61,176,40826,77502,2,555567.25,0,'2021-11-15','2021-11-13 10:07:02','2021-11-13 10:07:02',NULL),(220,832,61,176,40826,77502,2,555567.25,0,'2021-11-15','2021-11-13 10:07:02','2021-11-13 10:07:02',NULL),(221,832,61,176,40826,77502,2,555567.25,0,'2021-11-15','2021-11-13 10:07:02','2021-11-13 10:07:02',NULL),(222,832,61,176,40826,77502,2,555567.25,0,'2021-11-15','2021-11-13 10:07:02','2021-11-13 10:07:02',NULL),(223,832,61,176,40826,77502,2,555567.25,0,'2021-11-15','2021-11-13 10:07:02','2021-11-13 10:07:02',NULL),(224,832,61,60,40826,77502,2,118964.90,0,'2021-11-15','2021-11-13 10:07:02','2021-11-13 10:07:02',NULL),(225,832,62,57,40730,12345,1,36978.01,0,'2021-11-16','2021-11-16 08:39:42','2023-04-11 15:33:09','2023-04-11 15:33:09'),(226,832,62,176,40730,12345,2,30000.00,0,'2021-11-16','2021-11-16 08:39:42','2023-04-11 15:33:09','2023-04-11 15:33:09'),(227,832,62,60,40730,12345,2,6978.01,0,'2021-11-16','2021-11-16 08:39:42','2023-04-11 15:33:09','2023-04-11 15:33:09'),(228,832,63,13,40730,12344,2,12100000.00,0,'2021-11-16','2021-11-16 09:28:57','2023-04-11 15:39:36','2023-04-11 15:39:36'),(229,832,63,359,40730,12344,1,12100000.00,0,'2021-11-16','2021-11-16 09:28:57','2023-04-11 15:39:36','2023-04-11 15:39:36'),(230,832,64,13,40730,12344,2,3913893.21,0,'2021-11-16','2021-11-16 09:32:44','2021-11-16 09:32:44',NULL),(231,832,64,176,40730,12344,1,1131350.00,0,'2021-11-16','2021-11-16 09:32:44','2021-11-16 09:32:44',NULL),(232,832,64,176,40730,12344,1,1131350.00,0,'2021-11-16','2021-11-16 09:32:44','2021-11-16 09:32:44',NULL),(233,832,64,176,40730,12344,1,1131350.00,0,'2021-11-16','2021-11-16 09:32:44','2021-11-16 09:32:44',NULL);
INSERT INTO `cta_cte_tesoreria_detail` VALUES (234,832,64,176,40730,12344,1,417580.68,0,'2021-11-16','2021-11-16 09:32:44','2021-11-16 09:32:44',NULL),(235,832,64,23,40730,12344,1,60212.44,0,'2021-11-16','2021-11-16 09:32:44','2021-11-16 09:32:44',NULL),(236,832,64,251,40730,12344,1,42050.09,0,'2021-11-16','2021-11-16 09:32:44','2021-11-16 09:32:44',NULL),(237,832,65,57,40730,12345,1,3452368.40,0,'2021-11-16','2021-11-16 09:35:43','2023-04-11 15:33:02','2023-04-11 15:33:02'),(238,832,65,176,40730,12345,2,20000.00,0,'2021-11-16','2021-11-16 09:35:43','2023-04-11 15:33:02','2023-04-11 15:33:02'),(239,832,65,176,40730,12345,2,151762.50,0,'2021-11-16','2021-11-16 09:35:43','2023-04-11 15:33:02','2023-04-11 15:33:02'),(240,832,65,176,40730,12345,2,1131350.00,0,'2021-11-16','2021-11-16 09:35:43','2023-04-11 15:33:02','2023-04-11 15:33:02'),(241,832,65,60,40730,12345,2,649255.90,0,'2021-11-16','2021-11-16 09:35:43','2023-04-11 15:33:02','2023-04-11 15:33:02'),(242,832,65,60,40730,12345,2,500000.00,0,'2021-11-16','2021-11-16 09:35:43','2023-04-11 15:33:02','2023-04-11 15:33:02'),(243,832,65,60,40730,12345,2,500000.00,0,'2021-11-16','2021-11-16 09:35:43','2023-04-11 15:33:02','2023-04-11 15:33:02'),(244,832,65,60,40730,12345,2,500000.00,0,'2021-11-16','2021-11-16 09:35:43','2023-04-11 15:33:03','2023-04-11 15:33:03'),(245,832,66,57,40761,48678,1,7937.04,0,'2021-08-20','2021-12-02 11:40:34','2021-12-02 11:40:34',NULL),(246,832,66,359,40761,48678,2,7937.04,0,'2021-08-20','2021-12-02 11:40:34','2021-12-02 11:40:34',NULL),(247,5948,67,57,40838,78214,1,8928.06,0,'2021-11-06','2021-12-02 15:41:37','2021-12-02 15:41:37',NULL),(248,5948,67,359,40838,78214,2,8928.06,0,'2021-11-06','2021-12-02 15:41:37','2021-12-02 15:41:37',NULL);

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

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

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

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

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

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

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


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

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

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

INSERT INTO `ctacte_cheques` VALUES (1,832,NULL,NULL,NULL,NULL,NULL,160,NULL,NULL,NULL,NULL,555567.25,1,0,'2021-10-15','2021-10-12',16,40826,NULL,'zarcam',1,0,75944517,NULL,'',1,'2021-10-15 10:31:54','2021-10-15 10:50:42','2021-10-15 10:50:42'),(2,832,NULL,NULL,NULL,NULL,NULL,160,NULL,NULL,NULL,NULL,555567.25,1,0,'2021-10-15','2021-10-15',16,40826,NULL,'zarcam',1,0,75944518,NULL,'',1,'2021-10-15 10:31:54','2021-10-15 10:50:42','2021-10-15 10:50:42'),(3,832,NULL,NULL,NULL,NULL,NULL,160,NULL,NULL,NULL,NULL,555567.25,1,0,'2021-10-15','2021-10-18',16,40826,NULL,'zarcam',1,0,75944519,NULL,'',1,'2021-10-15 10:31:54','2021-10-15 10:50:42','2021-10-15 10:50:42'),(4,832,NULL,NULL,NULL,NULL,NULL,160,NULL,NULL,NULL,NULL,555567.25,1,0,'2021-10-15','2021-10-20',16,40826,NULL,'zarcam',1,0,75944520,NULL,'',1,'2021-10-15 10:31:54','2021-10-15 10:50:42','2021-10-15 10:50:42'),(5,832,NULL,NULL,NULL,NULL,NULL,160,NULL,NULL,NULL,NULL,555567.25,1,0,'2021-10-15','2021-10-22',16,40826,NULL,'zarcam',1,0,75944521,NULL,'',1,'2021-10-15 10:31:54','2021-10-15 10:50:42','2021-10-15 10:50:42'),(6,832,NULL,NULL,NULL,NULL,NULL,160,NULL,NULL,NULL,NULL,555567.25,1,0,'2021-10-15','2021-10-27',16,40826,NULL,'zarcam',1,0,75944523,NULL,'',1,'2021-10-15 10:31:54','2021-10-15 10:50:42','2021-10-15 10:50:42'),(7,832,NULL,NULL,NULL,NULL,NULL,160,NULL,NULL,NULL,NULL,555567.23,1,0,'2021-10-15','2021-10-29',16,40826,NULL,'zarcam',1,0,75944524,NULL,'',1,'2021-10-15 10:31:54','2021-10-15 10:50:42','2021-10-15 10:50:42'),(8,832,NULL,NULL,NULL,NULL,NULL,160,NULL,NULL,NULL,NULL,555567.25,1,0,'2021-10-15','2021-10-25',16,40826,NULL,'zarcam',1,0,75944522,NULL,'',1,'2021-10-15 10:31:54','2021-10-15 10:50:42','2021-10-15 10:50:42'),(9,832,NULL,NULL,NULL,NULL,NULL,161,438,NULL,NULL,NULL,555567.23,1,0,'2021-10-18','2021-10-29',16,40826,NULL,'zarcam',1,0,75944526,NULL,'',0,'2021-10-18 12:06:47','2021-11-02 14:14:24',NULL),(10,832,NULL,NULL,NULL,NULL,NULL,161,NULL,NULL,NULL,NULL,555567.25,1,0,'2021-10-18','2021-10-20',16,40826,NULL,'zarcam',1,0,75944533,NULL,'',1,'2021-10-18 12:06:47','2021-10-18 12:06:47',NULL),(11,832,NULL,NULL,NULL,NULL,NULL,161,NULL,NULL,NULL,NULL,555567.36,1,0,'2021-10-18','2021-10-13',16,40826,NULL,'zarcam',1,0,75944536,NULL,'',1,'2021-10-18 12:06:47','2021-10-18 12:06:47',NULL),(12,832,NULL,NULL,NULL,NULL,NULL,161,NULL,NULL,NULL,NULL,555567.25,1,0,'2021-10-18','2021-10-22',16,40826,NULL,'zarcam',1,0,75944535,NULL,'',1,'2021-10-18 12:06:47','2021-10-18 12:06:47',NULL),(13,832,NULL,NULL,NULL,NULL,NULL,161,NULL,NULL,NULL,NULL,555567.25,1,0,'2021-10-18','2021-10-15',16,40826,NULL,'zarcam',1,0,75944523,NULL,'',1,'2021-10-18 12:06:47','2021-10-18 12:06:47',NULL),(14,832,NULL,NULL,NULL,NULL,NULL,161,NULL,NULL,NULL,NULL,555567.25,1,0,'2021-10-18','2021-10-18',16,40826,NULL,'zarcam',1,0,75944527,NULL,'',1,'2021-10-18 12:06:47','2021-10-18 12:06:47',NULL),(15,832,NULL,NULL,NULL,NULL,NULL,161,NULL,NULL,NULL,NULL,555567.25,1,0,'2021-10-18','2021-10-25',16,40826,NULL,'zarcam',1,0,75944534,NULL,'',1,'2021-10-18 12:06:47','2021-10-18 12:06:47',NULL),(16,832,NULL,NULL,NULL,NULL,NULL,161,438,NULL,NULL,NULL,555567.25,1,0,'2021-10-18','2021-10-27',16,40826,NULL,'zarcam',1,0,75944522,NULL,'',0,'2021-10-18 12:06:47','2021-11-02 14:14:24',NULL),(17,832,NULL,NULL,NULL,NULL,NULL,162,NULL,NULL,NULL,NULL,631299.35,1,0,'2021-10-18','2021-10-20',16,40727,NULL,'zarcam',1,0,75944530,NULL,'',1,'2021-10-18 12:14:18','2023-07-26 15:40:18','2023-07-26 15:40:18'),(18,832,NULL,NULL,NULL,NULL,NULL,162,NULL,NULL,NULL,NULL,631299.35,1,0,'2021-10-18','2021-10-22',16,40727,NULL,'zarcam',1,0,75944524,NULL,'',1,'2021-10-18 12:14:18','2023-07-26 15:40:18','2023-07-26 15:40:18'),(19,832,NULL,NULL,NULL,NULL,NULL,162,NULL,NULL,NULL,NULL,631299.35,1,0,'2021-10-18','2021-10-14',16,40727,NULL,'zarcam',1,0,75944528,NULL,'',1,'2021-10-18 12:14:18','2023-07-26 15:40:18','2023-07-26 15:40:18');
INSERT INTO `ctacte_cheques` VALUES (20,832,NULL,NULL,NULL,NULL,NULL,162,NULL,NULL,NULL,NULL,631299.35,1,0,'2021-10-18','2021-10-13',16,40727,NULL,'zarcam',1,0,75944538,NULL,'',1,'2021-10-18 12:14:18','2023-07-26 15:40:18','2023-07-26 15:40:18'),(21,832,NULL,NULL,NULL,NULL,NULL,162,NULL,NULL,NULL,NULL,631299.35,1,0,'2021-10-18','2021-10-25',16,40727,NULL,'zarcam',1,0,75944532,NULL,'',1,'2021-10-18 12:14:18','2023-07-26 15:40:18','2023-07-26 15:40:18'),(22,832,NULL,NULL,NULL,NULL,NULL,162,NULL,NULL,NULL,NULL,631299.35,1,0,'2021-10-18','2021-10-18',16,40727,NULL,'zarcam',1,0,75944529,NULL,'',1,'2021-10-18 12:14:18','2023-07-26 15:40:18','2023-07-26 15:40:18'),(23,832,NULL,NULL,NULL,NULL,NULL,162,NULL,NULL,NULL,NULL,631299.35,1,0,'2021-10-18','2021-10-27',16,40727,NULL,'zarcam',1,0,75944531,NULL,'',1,'2021-10-18 12:14:18','2023-07-26 15:40:18','2023-07-26 15:40:18'),(24,832,NULL,NULL,NULL,NULL,NULL,162,NULL,NULL,NULL,NULL,631299.31,1,0,'2021-10-18','2021-10-29',16,40727,NULL,'zarcam',1,0,75944525,NULL,'',1,'2021-10-18 12:14:18','2023-07-26 15:40:18','2023-07-26 15:40:18'),(25,832,NULL,NULL,NULL,NULL,NULL,163,NULL,NULL,NULL,NULL,218148.82,1,0,'2021-10-18','2021-11-30',1,40718,NULL,'faterm',1,0,1602,NULL,'',1,'2021-10-18 16:08:44','2021-10-18 16:10:06','2021-10-18 16:10:06'),(26,832,NULL,NULL,NULL,NULL,NULL,164,438,NULL,NULL,NULL,218148.82,1,0,'2021-10-18','2021-11-30',1,40826,NULL,'faterm',1,0,1602,NULL,'',0,'2021-10-18 16:10:57','2021-11-02 14:14:24',NULL),(27,832,NULL,NULL,NULL,NULL,NULL,165,NULL,NULL,NULL,NULL,292403.98,0,1,'2021-10-18','2021-10-18',1,40826,NULL,'cibeira',1,0,379,NULL,'',1,'2021-10-18 16:24:21','2021-11-02 13:53:49','2021-11-02 13:53:49'),(28,832,NULL,NULL,NULL,NULL,NULL,169,NULL,NULL,NULL,NULL,879570.10,1,0,'2021-10-20','2021-10-20',1,40826,NULL,'Laboratorios Jayor',2,0,1511,NULL,'',1,'2021-10-26 11:58:56','2021-10-26 11:58:56',NULL),(29,832,NULL,NULL,NULL,NULL,NULL,169,NULL,NULL,NULL,NULL,879482.30,1,0,'2021-10-20','2021-10-20',1,40826,NULL,'Laboratorios Jayor',2,0,1512,NULL,'',1,'2021-10-26 11:58:56','2021-10-26 11:58:56',NULL),(30,832,NULL,NULL,NULL,NULL,NULL,282,NULL,NULL,NULL,NULL,24200.00,0,1,'2021-09-09','2021-09-24',1,40826,NULL,'DAC',2,0,320,NULL,'Cancelacion FC 213',1,'2021-10-27 13:44:41','2021-10-27 13:44:41',NULL),(31,832,NULL,NULL,NULL,NULL,NULL,285,NULL,NULL,NULL,NULL,24200.00,0,1,'2021-09-09','2021-09-24',1,40727,NULL,'Bicen',2,0,63,NULL,'Cancelacion Fc N° 63',1,'2021-10-27 13:46:11','2023-07-26 15:42:05','2023-07-26 15:42:05'),(32,832,NULL,NULL,NULL,NULL,NULL,372,NULL,NULL,NULL,NULL,610000.00,1,0,'2021-10-28','2021-11-10',1,40826,NULL,'Plastitek',2,0,57512670,NULL,'Cancelacion Factura N° 5',1,'2021-10-28 18:32:28','2021-10-28 18:32:28',NULL),(33,832,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,2,24200.00,0,1,'2021-09-09','2021-09-24',1,40727,NULL,'Bicen',2,0,63,NULL,'Cancelacion Factura N° 214',1,'2021-10-29 12:08:22','2021-10-29 12:08:22',NULL),(34,832,NULL,NULL,NULL,NULL,NULL,396,NULL,NULL,NULL,NULL,24200.00,0,1,'2021-09-09','2021-09-09',1,40826,NULL,'daniel alberto cibeira',2,0,320,NULL,'pago a la factura 213',1,'2021-11-01 10:44:24','2021-11-01 10:44:24',NULL),(35,832,NULL,NULL,NULL,NULL,NULL,436,NULL,NULL,NULL,NULL,2022346.23,1,0,'2021-10-26','2021-10-26',16,40826,NULL,'Celsur',2,0,11851,NULL,'',1,'2021-11-02 13:20:09','2021-11-02 13:23:18','2021-11-02 13:23:18'),(36,832,NULL,NULL,NULL,NULL,NULL,438,NULL,NULL,NULL,NULL,292403.96,0,1,'2021-10-27','2021-10-29',1,40826,NULL,'DAC',2,0,379,NULL,'',1,'2021-11-02 14:14:24','2021-11-02 14:14:24',NULL),(37,832,NULL,NULL,NULL,NULL,NULL,449,NULL,NULL,NULL,NULL,1006586.00,1,0,'2021-10-15','2021-10-15',6,40826,NULL,'Altitude Logistics',2,0,1663139,NULL,'',1,'2021-11-04 10:58:52','2021-11-04 10:58:52',NULL),(38,832,NULL,NULL,NULL,NULL,NULL,449,NULL,NULL,NULL,NULL,1006586.00,1,0,'2021-10-15','2021-10-15',6,40826,NULL,'Altitude Logistics',2,0,1663138,NULL,'',1,'2021-11-04 10:58:52','2021-11-04 10:58:52',NULL);
INSERT INTO `ctacte_cheques` VALUES (39,832,NULL,NULL,NULL,NULL,NULL,456,NULL,NULL,NULL,NULL,20000.00,1,0,'2021-11-09','2021-11-30',1,40730,NULL,'proar',1,0,56884369,NULL,'',1,'2021-11-09 11:48:36','2023-04-11 15:33:02',NULL),(40,832,NULL,NULL,NULL,NULL,NULL,456,NULL,NULL,NULL,NULL,350000.00,1,0,'2021-11-09','2021-11-30',16,40730,NULL,'proar',2,0,5700307,NULL,'',1,'2021-11-09 11:48:36','2023-04-11 15:35:38',NULL),(41,832,NULL,NULL,NULL,NULL,NULL,456,NULL,NULL,NULL,NULL,151762.50,1,0,'2021-11-09','2021-11-30',1,40730,NULL,'proar',2,0,16752912,NULL,'',1,'2021-11-09 11:48:36','2023-04-11 15:33:02',NULL),(42,832,NULL,NULL,NULL,NULL,NULL,456,NULL,NULL,NULL,NULL,44800.00,1,0,'2021-11-09','2021-12-02',1,40730,NULL,'proar',2,0,64513604,NULL,'',1,'2021-11-09 11:48:36','2023-04-11 15:33:21',NULL),(43,832,NULL,NULL,NULL,NULL,NULL,456,NULL,NULL,NULL,NULL,35000.00,1,0,'2021-11-09','2021-12-03',36,40730,NULL,'proar',2,0,28004815,NULL,'',1,'2021-11-09 11:48:36','2023-04-11 15:33:21',NULL),(44,832,NULL,NULL,NULL,NULL,NULL,456,NULL,NULL,NULL,NULL,204363.00,1,0,'2021-11-09','2021-12-02',36,40730,NULL,'proar',2,0,28359601,NULL,'',1,'2021-11-09 11:48:36','2023-04-11 15:33:21',NULL),(45,832,NULL,NULL,NULL,NULL,NULL,456,NULL,NULL,NULL,NULL,286000.27,1,0,'2021-11-09','2021-12-03',19,40730,NULL,'proar',2,0,62701176,NULL,'',1,'2021-11-09 11:48:36','2023-04-11 15:33:21',NULL),(46,832,NULL,NULL,NULL,NULL,NULL,456,NULL,NULL,NULL,NULL,72575.00,1,0,'2021-11-09','2021-12-03',49,40730,NULL,'proar',2,0,85099006,NULL,'',1,'2021-11-09 11:48:36','2023-04-11 15:35:28',NULL),(47,832,NULL,NULL,NULL,NULL,NULL,456,NULL,NULL,NULL,NULL,40000.98,1,0,'2021-11-09','2021-12-08',36,40730,NULL,'proar',2,0,28004816,NULL,'',1,'2021-11-09 11:48:36','2023-04-11 15:35:38',NULL),(48,832,NULL,NULL,NULL,NULL,NULL,456,NULL,NULL,NULL,NULL,30000.00,1,0,'2021-11-09','2021-12-07',25,40730,NULL,'proar',2,0,45598678,NULL,'',1,'2021-11-09 11:48:36','2023-04-11 15:35:28',NULL),(49,832,NULL,NULL,NULL,NULL,NULL,456,NULL,NULL,NULL,NULL,25000.00,1,0,'2021-11-09','2021-12-05',3,40730,NULL,'proar',2,0,88813042,NULL,'',1,'2021-11-09 11:48:36','2021-11-09 11:48:36',NULL),(50,832,NULL,NULL,NULL,NULL,NULL,456,NULL,NULL,NULL,NULL,10000.00,1,0,'2021-11-09','2021-12-06',1,40730,NULL,'proar',2,0,64513607,NULL,'',1,'2021-11-09 11:48:36','2023-04-11 15:35:28',NULL),(51,832,NULL,NULL,NULL,NULL,NULL,456,NULL,NULL,NULL,NULL,15000.00,1,0,'2021-11-09','2021-12-11',3,40730,NULL,'proar',2,0,87461396,NULL,'',1,'2021-11-09 11:48:36','2021-11-09 11:48:36',NULL),(52,832,NULL,NULL,NULL,NULL,NULL,456,NULL,NULL,NULL,NULL,15000.00,1,0,'2021-11-09','2021-12-11',3,40730,NULL,'proar',2,0,87461391,NULL,'',1,'2021-11-09 11:48:36','2021-11-09 11:48:36',NULL),(53,832,NULL,NULL,NULL,NULL,NULL,456,NULL,NULL,NULL,NULL,30000.00,1,0,'2021-11-09','2021-12-11',25,40730,NULL,'proar',2,0,45598679,NULL,'',1,'2021-11-09 11:48:36','2023-04-11 15:33:09',NULL),(54,832,NULL,NULL,NULL,NULL,NULL,456,NULL,NULL,NULL,NULL,1131350.00,1,0,'2021-11-09','2022-01-10',16,40730,NULL,'proar',2,0,307,NULL,'',1,'2021-11-09 11:48:36','2021-11-09 11:48:36',NULL),(55,832,NULL,NULL,NULL,NULL,NULL,461,NULL,NULL,NULL,NULL,3057.92,0,1,'2021-11-09','2021-11-06',1,40730,NULL,'proacom',2,0,56096935,NULL,'',1,'2021-11-09 12:05:23','2023-04-11 15:35:38','2023-04-11 15:35:38'),(56,832,NULL,NULL,NULL,NULL,NULL,462,NULL,NULL,NULL,NULL,4393.95,0,1,'2021-11-09','2021-11-08',1,40730,NULL,'proacom',2,0,56096933,NULL,'',1,'2021-11-09 13:12:57','2023-04-11 15:33:21','2023-04-11 15:33:21'),(57,832,NULL,NULL,NULL,NULL,NULL,463,532,NULL,NULL,NULL,555567.25,1,0,'2021-11-10','2021-11-12',16,40826,NULL,'ZARCAM',2,0,75944566,NULL,'',0,'2021-11-10 10:57:23','2021-11-13 10:07:02',NULL),(58,832,NULL,NULL,NULL,NULL,NULL,463,532,NULL,NULL,NULL,555567.25,1,0,'2021-11-10','2021-11-15',16,40826,NULL,'ZARCAM',2,0,75944564,NULL,'',0,'2021-11-10 10:57:23','2021-11-13 10:07:02',NULL);
INSERT INTO `ctacte_cheques` VALUES (59,832,NULL,NULL,NULL,NULL,NULL,463,532,NULL,NULL,NULL,555567.25,1,0,'2021-11-10','2021-11-17',16,40826,NULL,'ZARCAM',2,0,75944561,NULL,'',0,'2021-11-10 10:57:23','2021-11-13 10:07:02',NULL),(60,832,NULL,NULL,NULL,NULL,NULL,463,532,NULL,NULL,NULL,555567.25,1,0,'2021-11-10','2021-11-19',16,40826,NULL,'ZARCAM',2,0,75944570,NULL,'',0,'2021-11-10 10:57:23','2021-11-13 10:07:02',NULL),(61,832,NULL,NULL,NULL,NULL,NULL,463,532,NULL,NULL,NULL,555567.25,1,0,'2021-11-10','2021-11-22',16,40826,NULL,'ZARCAM',2,0,75944559,NULL,'',0,'2021-11-10 10:57:23','2021-11-13 10:07:02',NULL),(62,832,NULL,NULL,NULL,NULL,NULL,463,532,NULL,NULL,NULL,555567.25,1,0,'2021-11-10','2021-11-24',16,40826,NULL,'ZARCAM',2,0,75944567,NULL,'',0,'2021-11-10 10:57:23','2021-11-13 10:07:02',NULL),(63,5943,NULL,NULL,NULL,NULL,NULL,463,NULL,NULL,NULL,NULL,555567.25,1,0,'2021-11-10','2021-11-26',16,40826,NULL,'ZARCAM',2,0,75944563,NULL,'',1,'2021-11-10 10:57:23','2021-11-10 10:57:23',NULL),(64,5943,NULL,NULL,NULL,NULL,NULL,463,NULL,NULL,NULL,NULL,555567.23,1,0,'2021-11-10','2021-11-29',16,40826,NULL,'ZARCAM',2,0,75944560,NULL,'',1,'2021-11-10 10:57:23','2021-11-10 10:57:23',NULL),(65,832,NULL,NULL,NULL,NULL,NULL,464,NULL,NULL,NULL,NULL,631299.35,1,0,'2021-11-10','2021-11-11',16,40727,NULL,'ZARCAM',2,0,75944562,NULL,'',1,'2021-11-10 11:02:41','2023-07-26 15:40:12','2023-07-26 15:40:12'),(66,832,NULL,NULL,NULL,NULL,NULL,464,NULL,NULL,NULL,NULL,631299.35,1,0,'2021-11-10','2021-11-16',16,40727,NULL,'ZARCAM',2,0,75944558,NULL,'',1,'2021-11-10 11:02:41','2023-07-26 15:40:12','2023-07-26 15:40:12'),(67,832,NULL,NULL,NULL,NULL,NULL,464,NULL,NULL,NULL,NULL,631299.35,1,0,'2021-11-10','2021-11-17',16,40727,NULL,'ZARCAM',2,0,75944569,NULL,'',1,'2021-11-10 11:02:41','2023-07-26 15:40:12','2023-07-26 15:40:12'),(68,832,NULL,NULL,NULL,NULL,NULL,464,NULL,NULL,NULL,NULL,631299.35,1,0,'2021-11-10','2021-11-18',16,40727,NULL,'ZARCAM',2,0,75944568,NULL,'',1,'2021-11-10 11:02:41','2023-07-26 15:40:12','2023-07-26 15:40:12'),(69,832,NULL,NULL,NULL,NULL,NULL,464,NULL,NULL,NULL,NULL,631299.35,1,0,'2021-11-10','2021-11-23',16,40727,NULL,'ZARCAM',2,0,75944575,NULL,'',1,'2021-11-10 11:02:41','2023-07-26 15:40:12','2023-07-26 15:40:12'),(70,832,NULL,NULL,NULL,NULL,NULL,464,NULL,NULL,NULL,NULL,631299.35,1,0,'2021-11-10','2021-11-24',16,40727,NULL,'ZARCAM',2,0,75944574,NULL,'',1,'2021-11-10 11:02:41','2023-07-26 15:40:12','2023-07-26 15:40:12'),(71,832,NULL,NULL,NULL,NULL,NULL,464,NULL,NULL,NULL,NULL,631299.35,1,0,'2021-11-10','2021-11-25',16,40727,NULL,'ZARCAM',2,0,75944573,NULL,'',1,'2021-11-10 11:02:41','2023-07-26 15:40:12','2023-07-26 15:40:12'),(72,832,NULL,NULL,NULL,NULL,NULL,464,NULL,NULL,NULL,NULL,631299.31,1,0,'2021-11-10','2021-11-30',16,40727,NULL,'ZARCAM',2,0,75944572,NULL,'',1,'2021-11-10 11:02:41','2023-07-26 15:40:12','2023-07-26 15:40:12'),(73,832,NULL,NULL,NULL,NULL,NULL,493,NULL,NULL,NULL,NULL,150000.00,0,1,'2021-11-11','2021-11-26',1,40826,NULL,'CIBEIRA',2,0,408,NULL,'',1,'2021-11-11 17:15:15','2021-11-11 17:15:15',NULL),(74,832,NULL,NULL,NULL,NULL,NULL,493,NULL,NULL,NULL,NULL,150000.00,0,1,'2021-11-11','2021-11-19',1,40826,NULL,'CIBEIRA',2,0,407,NULL,'',1,'2021-11-11 17:15:15','2021-11-11 17:15:15',NULL),(75,832,NULL,NULL,NULL,NULL,NULL,493,NULL,NULL,NULL,NULL,82647.35,0,1,'2021-11-11','2021-11-12',1,40826,NULL,'CIBEIRA',2,0,406,NULL,'',1,'2021-11-11 17:15:15','2021-11-11 17:15:15',NULL),(76,832,NULL,NULL,NULL,NULL,NULL,496,NULL,NULL,NULL,NULL,152877.29,0,1,'2021-09-15','2021-09-18',1,40730,NULL,'PROACOM',2,0,108,NULL,'',1,'2021-11-12 09:42:53','2023-04-11 15:39:39','2023-04-11 15:39:39'),(77,832,NULL,NULL,NULL,NULL,NULL,526,NULL,NULL,NULL,NULL,1500000.00,0,1,'2021-11-12','2021-11-27',1,40730,NULL,'PROACOM',2,0,123,NULL,'',1,'2021-11-12 15:21:57','2023-04-11 15:33:31','2023-04-11 15:33:31'),(78,832,NULL,NULL,NULL,NULL,NULL,526,NULL,NULL,NULL,NULL,1500000.00,0,1,'2021-11-12','2021-12-11',1,40730,NULL,'PROACOM',2,0,125,NULL,'',1,'2021-11-12 15:21:57','2023-04-11 15:33:31','2023-04-11 15:33:31');
INSERT INTO `ctacte_cheques` VALUES (79,832,NULL,NULL,NULL,NULL,NULL,526,NULL,NULL,NULL,NULL,2094900.00,0,1,'2021-11-12','2021-12-15',1,40730,NULL,'PROACOM',2,0,126,NULL,'',1,'2021-11-12 15:21:57','2023-04-11 15:33:31','2023-04-11 15:33:31'),(80,832,NULL,NULL,NULL,NULL,NULL,526,NULL,NULL,NULL,NULL,1500000.00,0,1,'2021-11-12','2021-11-30',1,40730,NULL,'PROACOM',2,0,124,NULL,'',1,'2021-11-12 15:21:57','2023-04-11 15:33:31','2023-04-11 15:33:31'),(81,832,NULL,NULL,NULL,NULL,NULL,532,NULL,NULL,NULL,NULL,118964.90,0,1,'2021-11-15','2021-11-26',1,40826,NULL,'CIBEIRA',2,0,409,NULL,'',1,'2021-11-13 10:07:02','2021-11-13 10:07:02',NULL),(82,832,NULL,NULL,NULL,NULL,NULL,535,NULL,NULL,NULL,NULL,6978.01,0,1,'2021-11-16','2021-12-20',1,40730,NULL,'CIBEIRA',2,0,56096940,NULL,'',1,'2021-11-16 08:39:42','2023-04-11 15:33:09','2023-04-11 15:33:09'),(83,832,NULL,NULL,NULL,NULL,NULL,540,NULL,NULL,NULL,NULL,1131350.00,1,0,'2021-11-16','2021-11-10',16,40730,NULL,'PROAR',2,0,305,NULL,'',1,'2021-11-16 09:32:44','2021-11-16 09:32:44',NULL),(84,832,NULL,NULL,NULL,NULL,NULL,540,NULL,NULL,NULL,NULL,1131350.00,1,0,'2021-11-16','2021-12-11',16,40730,NULL,'PROAR',2,0,306,NULL,'',1,'2021-11-16 09:32:44','2023-04-11 15:33:02',NULL),(85,832,NULL,NULL,NULL,NULL,NULL,540,NULL,NULL,NULL,NULL,1131350.00,1,0,'2021-11-16','2021-10-18',16,40730,NULL,'PROAR',2,0,304,NULL,'',1,'2021-11-16 09:32:44','2021-11-16 09:32:44',NULL),(86,832,NULL,NULL,NULL,NULL,NULL,540,NULL,NULL,NULL,NULL,417580.68,1,0,'2021-11-16','2021-10-21',16,40730,NULL,'PROAR',2,0,42240441,NULL,'',1,'2021-11-16 09:32:44','2021-11-16 09:32:44',NULL),(87,832,NULL,NULL,NULL,NULL,NULL,541,NULL,NULL,NULL,NULL,649255.90,0,1,'2021-11-16','2021-12-03',1,40730,NULL,'PROACOM',2,0,56096939,NULL,'',1,'2021-11-16 09:35:43','2023-04-11 15:33:02','2023-04-11 15:33:02'),(88,832,NULL,NULL,NULL,NULL,NULL,541,NULL,NULL,NULL,NULL,500000.00,0,1,'2021-11-16','2021-11-30',1,40730,NULL,'PROACOM',2,0,56096937,NULL,'',1,'2021-11-16 09:35:43','2023-04-11 15:33:02','2023-04-11 15:33:02'),(89,832,NULL,NULL,NULL,NULL,NULL,541,NULL,NULL,NULL,NULL,500000.00,0,1,'2021-11-16','2021-11-26',1,40730,NULL,'PROACOM',2,0,56096936,NULL,'',1,'2021-11-16 09:35:43','2023-04-11 15:33:02','2023-04-11 15:33:02'),(90,832,NULL,NULL,NULL,NULL,NULL,541,NULL,NULL,NULL,NULL,500000.00,0,1,'2021-11-16','2021-11-19',1,40730,NULL,'PROACOM',2,0,56096938,NULL,'',1,'2021-11-16 09:35:43','2023-04-11 15:33:02','2023-04-11 15:33:02');

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

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

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

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


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

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

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


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

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

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

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

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

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

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

INSERT INTO `dc_estados` VALUES (1,NULL,'BORRADOR',1,NULL,'2023-08-06 23:52:40',NULL),(2,NULL,'TERMINADO',1,NULL,'2023-08-06 23:52:40',NULL),(3,NULL,'ELIMINADO',1,NULL,'2023-08-13 09:14:44',NULL),(4,NULL,'PAGADO',1,NULL,'2023-08-06 23:52:40','2023-08-06 23:52:40'),(5,NULL,'CONCILIADO',1,NULL,'2023-08-06 23:52:40','2023-08-06 23:52:40');

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

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

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

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

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

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

--
-- Dumping data for table `dc_firmas`
--

INSERT INTO `dc_firmas` VALUES (1,NULL,'NO',1,1,0,1,NULL,'2023-08-06 23:52:41',NULL),(2,NULL,'RECHAZADO',1,1,0,1,NULL,'2023-08-06 23:52:41',NULL),(3,NULL,'ACEPTADO',1,0,0,1,NULL,'2023-08-06 23:52:41',NULL),(4,NULL,'FALTAN FIRMAS',0,0,1,1,'2023-08-06 23:52:41','2023-08-06 23:52:41',NULL),(5,NULL,'EMITIDO',1,0,0,1,'2023-10-12 07:54:26','2023-10-12 07:54:26',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:25:35',
  `dc_orden_id` bigint(20) unsigned NOT NULL DEFAULT '10',
  `person_id` int(10) unsigned NOT NULL,
  `person_id_relationed` int(10) unsigned NOT NULL,
  `request` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `dc_estado_id` bigint(20) unsigned NOT NULL DEFAULT '1',
  `dc_firma_id` bigint(20) unsigned NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `dc_orden_de_pago_person_id_foreign` (`person_id`),
  KEY `dc_orden_de_pago_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `dc_orden_de_pago_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_orden_de_pago_dc_firma_id_foreign` (`dc_firma_id`),
  KEY `dc_orden_de_pago_dc_estado_id_foreign` (`dc_estado_id`),
  CONSTRAINT `dc_orden_de_pago_dc_estado_id_foreign` FOREIGN KEY (`dc_estado_id`) REFERENCES `dc_estados` (`id`),
  CONSTRAINT `dc_orden_de_pago_dc_firma_id_foreign` FOREIGN KEY (`dc_firma_id`) REFERENCES `dc_firmas` (`id`),
  CONSTRAINT `dc_orden_de_pago_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_orden_de_pago_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `dc_orden_de_pago_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_orden_de_pago`
--


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

CREATE TABLE `dc_orden_de_pago_cheques` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_de_pago_id` bigint(20) unsigned NOT NULL,
  `ctacte_cheque_id` int(10) unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `dc_orden_de_pago_cheques_dc_orden_de_pago_id_foreign` (`dc_orden_de_pago_id`),
  KEY `dc_orden_de_pago_cheques_ctacte_cheque_id_foreign` (`ctacte_cheque_id`),
  CONSTRAINT `dc_orden_de_pago_cheques_ctacte_cheque_id_foreign` FOREIGN KEY (`ctacte_cheque_id`) REFERENCES `ctacte_cheques` (`id`),
  CONSTRAINT `dc_orden_de_pago_cheques_dc_orden_de_pago_id_foreign` FOREIGN KEY (`dc_orden_de_pago_id`) REFERENCES `dc_orden_de_pago` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


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

CREATE TABLE `dc_orden_de_pago_receipts` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_de_pago_id` bigint(20) unsigned NOT NULL,
  `receipt_id` int(10) unsigned DEFAULT NULL,
  `importe` decimal(16,2) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `dc_orden_de_pago_receipts_dc_orden_de_pago_id_foreign` (`dc_orden_de_pago_id`),
  KEY `dc_orden_de_pago_receipts_receipt_id_foreign` (`receipt_id`),
  CONSTRAINT `dc_orden_de_pago_receipts_dc_orden_de_pago_id_foreign` FOREIGN KEY (`dc_orden_de_pago_id`) REFERENCES `dc_orden_de_pago` (`id`),
  CONSTRAINT `dc_orden_de_pago_receipts_receipt_id_foreign` FOREIGN KEY (`receipt_id`) REFERENCES `receipts` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


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

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

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


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

CREATE TABLE `dc_ordenes` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_tipo_id` bigint(20) unsigned NOT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_relationed` int(10) unsigned DEFAULT NULL,
  `titulo` text COLLATE utf8mb4_unicode_ci,
  `sucursal` int(11) NOT NULL DEFAULT '1',
  `numero` int(11) NOT NULL,
  `numero_text` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sector` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `solicitante` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `syj_empleado_id` int(10) unsigned DEFAULT NULL,
  `fecha` date NOT NULL,
  `fecha_entrega` date DEFAULT NULL,
  `fecha_asignacion` datetime DEFAULT NULL,
  `fecha_cumplido` datetime DEFAULT NULL,
  `condicion_venta_id` int(10) unsigned DEFAULT NULL,
  `is_pago_adelantado` tinyint(1) DEFAULT NULL,
  `is_garantia` tinyint(1) NOT NULL DEFAULT '0',
  `forma_de_entrega_id` int(10) unsigned DEFAULT NULL,
  `plazo_de_pago_id` int(10) unsigned DEFAULT NULL,
  `cantidades` decimal(16,2) NOT NULL,
  `moneda_id` int(10) unsigned NOT NULL DEFAULT '1',
  `cotizacion` decimal(16,2) NOT NULL DEFAULT '1.00',
  `neto` decimal(16,2) NOT NULL,
  `iva` decimal(16,2) NOT NULL,
  `total` decimal(16,2) NOT NULL,
  `facturada` decimal(16,2) NOT NULL DEFAULT '0.00',
  `is_pagada` tinyint(1) NOT NULL,
  `garantia` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `mant_oferta` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `comen_para_cliente` text COLLATE utf8mb4_unicode_ci,
  `comentario` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `dc_ov_origen_id` bigint(20) unsigned DEFAULT NULL,
  `dc_ov_status_cobranza_id` bigint(20) unsigned DEFAULT NULL,
  `dc_ov_status_factura_id` bigint(20) unsigned DEFAULT NULL,
  `dc_ov_status_entrega_id` bigint(20) unsigned DEFAULT NULL,
  `dc_ov_status_venta_id` bigint(20) unsigned DEFAULT NULL,
  `dc_estado_id` bigint(20) unsigned NOT NULL,
  `dc_estado_decision_id` bigint(20) unsigned DEFAULT NULL,
  `inv_orden_trabajo_id` bigint(20) unsigned DEFAULT NULL,
  `conta_cc_id` bigint(20) unsigned DEFAULT NULL,
  `origendestinoable_type` text COLLATE utf8mb4_unicode_ci,
  `origendestinoable_id` int(10) unsigned DEFAULT NULL,
  `is_multiples_ot` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `dc_orden_origen_destino_id` bigint(20) unsigned DEFAULT NULL,
  `is_completado` tinyint(1) NOT NULL DEFAULT '0',
  `is_credit` tinyint(1) DEFAULT NULL,
  `dc_firma_id` bigint(20) unsigned NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `dc_ordenes_dc_orden_tipo_id_foreign` (`dc_orden_tipo_id`),
  KEY `dc_ordenes_person_id_foreign` (`person_id`),
  KEY `dc_ordenes_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `dc_ordenes_dc_estado_id_foreign` (`dc_estado_id`),
  KEY `dc_ordenes_conta_cc_id_foreign` (`conta_cc_id`),
  KEY `dc_ordenes_inv_orden_trabajo_id_foreign` (`inv_orden_trabajo_id`),
  KEY `dc_ordenes_dc_orden_origen_destino_id_foreign` (`dc_orden_origen_destino_id`),
  KEY `dc_ordenes_moneda_id_foreign` (`moneda_id`),
  KEY `dc_ordenes_dc_firma_id_foreign` (`dc_firma_id`),
  KEY `dc_ordenes_syj_empleado_id_foreign` (`syj_empleado_id`),
  KEY `dc_ordenes_dc_estado_decision_id_foreign` (`dc_estado_decision_id`),
  KEY `dc_ordenes_dc_ov_origen_id_foreign` (`dc_ov_origen_id`),
  KEY `dc_ordenes_dc_ov_status_venta_id_foreign` (`dc_ov_status_venta_id`),
  KEY `dc_ordenes_dc_ov_status_entrega_id_foreign` (`dc_ov_status_entrega_id`),
  KEY `dc_ordenes_dc_ov_status_factura_id_foreign` (`dc_ov_status_factura_id`),
  KEY `dc_ordenes_dc_ov_status_cobranza_id_foreign` (`dc_ov_status_cobranza_id`),
  CONSTRAINT `dc_ordenes_conta_cc_id_foreign` FOREIGN KEY (`conta_cc_id`) REFERENCES `conta_centro_costos` (`id`),
  CONSTRAINT `dc_ordenes_dc_estado_decision_id_foreign` FOREIGN KEY (`dc_estado_decision_id`) REFERENCES `dc_estados_decisiones` (`id`),
  CONSTRAINT `dc_ordenes_dc_estado_id_foreign` FOREIGN KEY (`dc_estado_id`) REFERENCES `dc_estados` (`id`),
  CONSTRAINT `dc_ordenes_dc_firma_id_foreign` FOREIGN KEY (`dc_firma_id`) REFERENCES `dc_firmas` (`id`),
  CONSTRAINT `dc_ordenes_dc_orden_origen_destino_id_foreign` FOREIGN KEY (`dc_orden_origen_destino_id`) REFERENCES `dc_ordenes_origen_destino` (`id`),
  CONSTRAINT `dc_ordenes_dc_orden_tipo_id_foreign` FOREIGN KEY (`dc_orden_tipo_id`) REFERENCES `dc_ordenes_tipos` (`id`),
  CONSTRAINT `dc_ordenes_dc_ov_origen_id_foreign` FOREIGN KEY (`dc_ov_origen_id`) REFERENCES `dc_ov_origenes` (`id`),
  CONSTRAINT `dc_ordenes_dc_ov_status_cobranza_id_foreign` FOREIGN KEY (`dc_ov_status_cobranza_id`) REFERENCES `dc_ov_status_cobranza` (`id`),
  CONSTRAINT `dc_ordenes_dc_ov_status_entrega_id_foreign` FOREIGN KEY (`dc_ov_status_entrega_id`) REFERENCES `dc_ov_status_entrega` (`id`),
  CONSTRAINT `dc_ordenes_dc_ov_status_factura_id_foreign` FOREIGN KEY (`dc_ov_status_factura_id`) REFERENCES `dc_ov_status_factura` (`id`),
  CONSTRAINT `dc_ordenes_dc_ov_status_venta_id_foreign` FOREIGN KEY (`dc_ov_status_venta_id`) REFERENCES `dc_ov_status_venta` (`id`),
  CONSTRAINT `dc_ordenes_inv_orden_trabajo_id_foreign` FOREIGN KEY (`inv_orden_trabajo_id`) REFERENCES `inv_orden_trabajos` (`id`),
  CONSTRAINT `dc_ordenes_moneda_id_foreign` FOREIGN KEY (`moneda_id`) REFERENCES `monedas` (`id`),
  CONSTRAINT `dc_ordenes_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `dc_ordenes_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`),
  CONSTRAINT `dc_ordenes_syj_empleado_id_foreign` FOREIGN KEY (`syj_empleado_id`) REFERENCES `syj_empleados` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


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

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

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


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

CREATE TABLE `dc_ordenes_compra_req` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `dc_orden_detail_id` bigint(20) unsigned NOT NULL,
  `dc_orden_req_id` bigint(20) unsigned NOT NULL,
  `dc_orden_req_detail_id` bigint(20) unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `dc_ordenes_compra_req_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ordenes_compra_req_dc_orden_detail_id_foreign` (`dc_orden_detail_id`),
  KEY `dc_ordenes_compra_req_dc_orden_req_id_foreign` (`dc_orden_req_id`),
  KEY `dc_ordenes_compra_req_dc_orden_req_detail_id_foreign` (`dc_orden_req_detail_id`),
  CONSTRAINT `dc_ordenes_compra_req_dc_orden_detail_id_foreign` FOREIGN KEY (`dc_orden_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `dc_ordenes_compra_req_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ordenes_compra_req_dc_orden_req_detail_id_foreign` FOREIGN KEY (`dc_orden_req_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `dc_ordenes_compra_req_dc_orden_req_id_foreign` FOREIGN KEY (`dc_orden_req_id`) REFERENCES `dc_ordenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


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

CREATE TABLE `dc_ordenes_cotizacion_req` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `dc_orden_detail_id` bigint(20) unsigned NOT NULL,
  `dc_orden_req_id` bigint(20) unsigned NOT NULL,
  `dc_orden_req_detail_id` bigint(20) unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `dc_ordenes_cotizacion_req_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ordenes_cotizacion_req_dc_orden_detail_id_foreign` (`dc_orden_detail_id`),
  KEY `dc_ordenes_cotizacion_req_dc_orden_req_id_foreign` (`dc_orden_req_id`),
  KEY `dc_ordenes_cotizacion_req_dc_orden_req_detail_id_foreign` (`dc_orden_req_detail_id`),
  CONSTRAINT `dc_ordenes_cotizacion_req_dc_orden_detail_id_foreign` FOREIGN KEY (`dc_orden_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `dc_ordenes_cotizacion_req_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ordenes_cotizacion_req_dc_orden_req_detail_id_foreign` FOREIGN KEY (`dc_orden_req_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `dc_ordenes_cotizacion_req_dc_orden_req_id_foreign` FOREIGN KEY (`dc_orden_req_id`) REFERENCES `dc_ordenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


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

CREATE TABLE `dc_ordenes_details` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `dc_orden_origen_destino_id` bigint(20) unsigned DEFAULT NULL,
  `origendestinoable_id` int(10) unsigned DEFAULT NULL,
  `origendestinoable_type` text COLLATE utf8mb4_unicode_ci,
  `cantidades` decimal(16,2) NOT NULL,
  `inv_deposito_id` bigint(20) unsigned DEFAULT NULL,
  `inv_producto_id` bigint(20) unsigned DEFAULT NULL,
  `inv_producto_id_destino` bigint(20) unsigned DEFAULT NULL,
  `prod_variant_id` bigint(20) unsigned DEFAULT NULL,
  `inv_deposito_id_destino` bigint(20) unsigned DEFAULT NULL,
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `neto` decimal(16,2) NOT NULL,
  `desc_porc` decimal(16,2) DEFAULT NULL,
  `descuento` decimal(16,2) DEFAULT NULL,
  `system_tax_id` int(10) unsigned NOT NULL,
  `iva` decimal(16,2) NOT NULL,
  `subtotal` decimal(16,2) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `dc_ordenes_details_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ordenes_details_inv_producto_id_foreign` (`inv_producto_id`),
  KEY `dc_ordenes_details_system_tax_id_foreign` (`system_tax_id`),
  KEY `dc_ordenes_details_inv_producto_id_destino_foreign` (`inv_producto_id_destino`),
  KEY `dc_ordenes_details_dc_orden_origen_destino_id_foreign` (`dc_orden_origen_destino_id`),
  KEY `dc_ordenes_details_inv_deposito_id_foreign` (`inv_deposito_id`),
  KEY `dc_ordenes_details_inv_deposito_id_destino_foreign` (`inv_deposito_id_destino`),
  KEY `dc_ordenes_details_prod_variant_id_foreign` (`prod_variant_id`),
  CONSTRAINT `dc_ordenes_details_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ordenes_details_dc_orden_origen_destino_id_foreign` FOREIGN KEY (`dc_orden_origen_destino_id`) REFERENCES `dc_ordenes_origen_destino` (`id`),
  CONSTRAINT `dc_ordenes_details_inv_deposito_id_destino_foreign` FOREIGN KEY (`inv_deposito_id_destino`) REFERENCES `inv_depositos` (`id`),
  CONSTRAINT `dc_ordenes_details_inv_deposito_id_foreign` FOREIGN KEY (`inv_deposito_id`) REFERENCES `inv_depositos` (`id`),
  CONSTRAINT `dc_ordenes_details_inv_producto_id_destino_foreign` FOREIGN KEY (`inv_producto_id_destino`) REFERENCES `inv_productos` (`id`),
  CONSTRAINT `dc_ordenes_details_inv_producto_id_foreign` FOREIGN KEY (`inv_producto_id`) REFERENCES `inv_productos` (`id`),
  CONSTRAINT `dc_ordenes_details_prod_variant_id_foreign` FOREIGN KEY (`prod_variant_id`) REFERENCES `prod_variants` (`id`) ON DELETE SET NULL,
  CONSTRAINT `dc_ordenes_details_system_tax_id_foreign` FOREIGN KEY (`system_tax_id`) REFERENCES `system_taxes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


--
-- Table structure for table `dc_ordenes_facturada`
--

CREATE TABLE `dc_ordenes_facturada` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `dc_orden_id` bigint(20) unsigned DEFAULT NULL,
  `fact_elec_receipt_id` int(11) DEFAULT NULL,
  `receipt_id` int(10) unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `dc_ordenes_facturada_person_id_foreign` (`person_id`),
  KEY `dc_ordenes_facturada_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ordenes_facturada_fact_elec_receipt_id_foreign` (`fact_elec_receipt_id`),
  KEY `dc_ordenes_facturada_receipt_id_foreign` (`receipt_id`),
  CONSTRAINT `dc_ordenes_facturada_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ordenes_facturada_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `dc_ordenes_facturada_receipt_id_foreign` FOREIGN KEY (`receipt_id`) REFERENCES `receipts` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


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

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

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


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

CREATE TABLE `dc_ordenes_ingxdev_rem_egr` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `dc_orden_detail_id` bigint(20) unsigned NOT NULL,
  `dc_orden_rem_egr_id` bigint(20) unsigned NOT NULL,
  `dc_orden_rem_egr_detail_id` bigint(20) unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `dc_ordenes_ingxdev_rem_egr_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_ordenes_ingxdev_rem_egr_dc_orden_detail_id_foreign` (`dc_orden_detail_id`),
  KEY `dc_ordenes_ingxdev_rem_egr_dc_orden_rem_egr_id_foreign` (`dc_orden_rem_egr_id`),
  KEY `dc_ordenes_ingxdev_rem_egr_dc_orden_rem_egr_detail_id_foreign` (`dc_orden_rem_egr_detail_id`),
  CONSTRAINT `dc_ordenes_ingxdev_rem_egr_dc_orden_detail_id_foreign` FOREIGN KEY (`dc_orden_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `dc_ordenes_ingxdev_rem_egr_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ordenes_ingxdev_rem_egr_dc_orden_rem_egr_detail_id_foreign` FOREIGN KEY (`dc_orden_rem_egr_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `dc_ordenes_ingxdev_rem_egr_dc_orden_rem_egr_id_foreign` FOREIGN KEY (`dc_orden_rem_egr_id`) REFERENCES `dc_ordenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


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

CREATE TABLE `dc_ordenes_logs` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) unsigned DEFAULT NULL,
  `loggable_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `loggable_id` bigint(20) unsigned NOT NULL,
  `related_id` bigint(20) unsigned DEFAULT NULL,
  `related_type` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `comentario` text COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `dc_ordenes_logs_loggable_type_loggable_id_index` (`loggable_type`,`loggable_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


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

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

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

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

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

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

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


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

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

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


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

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

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


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

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

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

INSERT INTO `dc_ordenes_tipos` VALUES (1,NULL,'ORDEN DE COMPRAS',NULL,1,NULL,'2022-09-09 16:50:02',NULL),(2,NULL,'ORDEN DE VENTAS',NULL,1,NULL,'2022-09-09 16:50:02',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:24:49',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:25:35','2023-09-28 16:25:35',NULL),(11,NULL,'ANULACION REQUERIMIENTOS',NULL,1,'2024-04-02 22:50:49','2024-04-02 22:50:49',NULL),(12,NULL,'ANULACION COMPRAS PRODUCTOS',NULL,1,'2024-04-02 22:50:49','2024-04-02 22:50:49',NULL),(13,NULL,'ANULACION COMPRAS SERVICIOS',NULL,1,'2024-04-02 22:50:49','2024-04-02 22:50:49',NULL),(14,NULL,'REMITO DE GASTO',NULL,1,'2024-05-07 20:06:05','2024-05-07 20:06:05',NULL),(15,NULL,'COTIZACIONES',NULL,1,'2024-06-26 07:50:36','2024-06-26 07:50:36',NULL),(16,NULL,'REMITO INGRESO-DEVOLUCION',NULL,1,'2024-09-02 13:15:54','2024-09-02 13:15:54',NULL),(17,NULL,'REMITO EGRESO-DEVOLUCION',NULL,1,'2024-10-17 08:49:53','2024-10-17 08:49:53',NULL),(18,NULL,'REMITO','Es un remito de servicio, que no tiene ni ingreso ni egreso',1,'2024-12-03 21:42:27','2024-12-03 21:42:27',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:02:32',
  `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;

--
