-- Table structure for table `cta_cte_cliente_details`
--

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

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


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

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

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

INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (1,NULL,1,1,NULL,NULL,NULL,NULL),(2,NULL,2,2,NULL,NULL,NULL,NULL),(3,NULL,3,3,NULL,NULL,NULL,NULL),(4,NULL,4,4,NULL,NULL,NULL,NULL),(5,NULL,5,5,NULL,NULL,NULL,NULL),(6,NULL,6,6,NULL,NULL,NULL,NULL),(7,NULL,7,7,NULL,NULL,NULL,NULL),(8,NULL,8,8,NULL,NULL,NULL,NULL),(9,NULL,9,9,NULL,NULL,NULL,NULL),(10,NULL,10,10,NULL,NULL,NULL,NULL),(11,NULL,11,11,NULL,NULL,NULL,NULL),(12,NULL,12,12,NULL,NULL,NULL,NULL),(13,NULL,13,13,NULL,NULL,NULL,NULL),(14,NULL,14,14,NULL,NULL,NULL,NULL),(15,NULL,15,15,NULL,NULL,NULL,NULL),(16,NULL,16,16,NULL,NULL,NULL,NULL),(17,NULL,17,17,NULL,NULL,NULL,NULL),(18,NULL,18,18,NULL,NULL,NULL,NULL),(19,NULL,19,19,NULL,NULL,NULL,NULL),(20,NULL,20,20,NULL,NULL,NULL,NULL),(21,NULL,21,21,NULL,NULL,NULL,NULL),(22,NULL,22,22,NULL,NULL,NULL,NULL),(23,NULL,23,23,NULL,NULL,NULL,NULL),(24,NULL,24,24,NULL,NULL,NULL,NULL),(25,NULL,25,25,NULL,NULL,NULL,NULL),(26,NULL,26,24,NULL,NULL,NULL,NULL),(27,NULL,27,26,NULL,NULL,NULL,NULL),(28,NULL,28,27,NULL,NULL,NULL,NULL),(29,NULL,29,28,NULL,NULL,NULL,NULL),(30,NULL,30,29,NULL,NULL,NULL,NULL),(31,NULL,31,30,NULL,NULL,NULL,NULL),(32,NULL,32,31,NULL,NULL,NULL,NULL),(33,NULL,33,32,NULL,NULL,NULL,NULL),(34,NULL,34,33,NULL,NULL,NULL,NULL),(35,NULL,35,34,NULL,NULL,NULL,NULL),(36,NULL,36,35,NULL,NULL,NULL,NULL),(37,NULL,37,35,NULL,NULL,NULL,NULL),(38,NULL,38,36,NULL,NULL,NULL,NULL),(39,NULL,39,37,NULL,NULL,NULL,NULL),(40,NULL,40,38,NULL,NULL,NULL,NULL),(41,NULL,41,39,NULL,NULL,NULL,NULL),(42,NULL,42,40,NULL,NULL,NULL,NULL),(43,NULL,43,41,NULL,NULL,NULL,NULL),(44,NULL,44,42,NULL,NULL,NULL,NULL),(45,NULL,45,43,NULL,NULL,NULL,NULL),(46,NULL,46,44,NULL,NULL,NULL,NULL),(47,NULL,47,45,NULL,NULL,NULL,NULL),(48,NULL,48,46,NULL,NULL,NULL,NULL),(49,NULL,49,47,NULL,NULL,NULL,NULL),(50,NULL,50,48,NULL,NULL,NULL,NULL),(51,NULL,51,49,NULL,NULL,NULL,NULL),(52,NULL,52,50,NULL,NULL,NULL,NULL),(53,NULL,53,51,NULL,NULL,NULL,NULL),(54,NULL,54,212,NULL,NULL,NULL,NULL),(55,NULL,55,213,NULL,NULL,NULL,NULL),(56,NULL,56,214,NULL,NULL,NULL,NULL),(57,NULL,57,215,NULL,NULL,NULL,NULL),(58,NULL,58,216,NULL,NULL,NULL,NULL),(59,NULL,59,217,NULL,NULL,NULL,NULL),(60,NULL,60,218,NULL,NULL,NULL,NULL),(61,NULL,61,219,NULL,NULL,NULL,NULL),(62,NULL,62,220,NULL,NULL,NULL,NULL),(63,NULL,63,221,NULL,NULL,NULL,NULL),(64,NULL,64,222,NULL,NULL,NULL,NULL),(65,NULL,65,223,NULL,NULL,NULL,NULL),(66,NULL,66,224,NULL,NULL,NULL,NULL),(67,NULL,67,225,NULL,NULL,NULL,NULL),(68,NULL,68,226,NULL,NULL,NULL,NULL),(69,NULL,69,227,NULL,NULL,NULL,NULL),(70,NULL,70,228,NULL,NULL,NULL,NULL),(71,NULL,71,229,NULL,NULL,NULL,NULL),(72,NULL,72,230,NULL,NULL,NULL,NULL),(73,NULL,73,231,NULL,NULL,NULL,NULL),(74,NULL,74,232,NULL,NULL,NULL,NULL),(75,NULL,75,233,NULL,NULL,NULL,NULL),(76,NULL,76,234,NULL,NULL,NULL,NULL),(77,NULL,77,235,NULL,NULL,NULL,NULL),(78,NULL,78,236,NULL,NULL,NULL,NULL),(79,NULL,79,237,NULL,NULL,NULL,NULL),(80,NULL,80,238,NULL,NULL,NULL,NULL),(81,NULL,81,239,NULL,NULL,NULL,NULL),(82,NULL,82,240,NULL,NULL,NULL,NULL),(83,NULL,83,241,NULL,NULL,NULL,NULL),(84,NULL,84,262,NULL,NULL,NULL,NULL),(85,NULL,85,263,NULL,NULL,NULL,NULL),(86,NULL,86,263,NULL,NULL,NULL,NULL),(87,NULL,87,267,NULL,NULL,NULL,NULL),(88,NULL,88,268,NULL,NULL,NULL,NULL),(89,NULL,89,269,NULL,NULL,NULL,NULL),(90,NULL,90,270,NULL,NULL,NULL,NULL),(91,NULL,91,271,NULL,NULL,NULL,NULL),(92,NULL,92,272,NULL,NULL,NULL,NULL),(93,NULL,93,273,NULL,NULL,NULL,NULL),(94,NULL,94,274,NULL,NULL,NULL,NULL),(95,NULL,95,275,NULL,NULL,NULL,NULL),(96,NULL,96,276,NULL,NULL,NULL,NULL),(97,NULL,97,277,NULL,NULL,NULL,NULL),(98,NULL,98,278,NULL,NULL,NULL,NULL),(99,NULL,99,279,NULL,NULL,NULL,NULL),(100,NULL,100,280,NULL,NULL,NULL,NULL),(101,NULL,101,281,NULL,NULL,NULL,NULL),(102,NULL,102,282,NULL,NULL,NULL,NULL),(107,NULL,107,290,NULL,NULL,NULL,NULL),(108,NULL,108,291,NULL,NULL,NULL,NULL),(109,NULL,109,292,NULL,NULL,NULL,NULL),(110,NULL,110,293,NULL,NULL,NULL,NULL),(111,NULL,111,294,NULL,NULL,NULL,NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (112,NULL,112,295,NULL,NULL,NULL,NULL),(113,NULL,113,296,NULL,NULL,NULL,NULL),(114,NULL,114,297,NULL,NULL,NULL,NULL),(115,NULL,115,294,NULL,NULL,NULL,NULL),(116,NULL,116,352,NULL,NULL,NULL,NULL),(117,NULL,117,353,NULL,NULL,NULL,NULL),(118,NULL,118,354,NULL,NULL,NULL,NULL),(119,NULL,119,355,NULL,NULL,NULL,NULL),(120,NULL,120,356,NULL,NULL,NULL,NULL),(121,NULL,121,357,NULL,NULL,NULL,NULL),(122,NULL,122,358,NULL,NULL,NULL,NULL),(123,NULL,123,359,NULL,NULL,NULL,NULL),(124,NULL,124,360,NULL,NULL,NULL,NULL),(125,NULL,125,361,NULL,NULL,NULL,NULL),(126,NULL,126,362,NULL,NULL,NULL,NULL),(127,NULL,127,363,NULL,NULL,NULL,NULL),(128,NULL,128,364,NULL,NULL,NULL,NULL),(129,NULL,129,365,NULL,NULL,NULL,NULL),(130,NULL,130,366,NULL,NULL,NULL,NULL),(131,NULL,131,367,NULL,NULL,NULL,NULL),(132,NULL,132,368,NULL,NULL,NULL,NULL),(133,NULL,133,369,NULL,NULL,NULL,NULL),(134,NULL,134,370,NULL,NULL,NULL,NULL),(135,NULL,135,371,NULL,NULL,NULL,NULL),(136,NULL,136,372,NULL,NULL,NULL,NULL),(137,NULL,137,373,NULL,NULL,NULL,NULL),(138,NULL,138,374,NULL,NULL,NULL,NULL),(139,NULL,139,375,NULL,NULL,NULL,NULL),(140,NULL,140,376,NULL,NULL,NULL,NULL),(141,NULL,141,377,NULL,NULL,NULL,NULL),(142,NULL,142,378,NULL,NULL,NULL,NULL),(143,NULL,143,379,NULL,NULL,NULL,NULL),(144,NULL,144,380,NULL,NULL,NULL,NULL),(145,NULL,145,381,NULL,NULL,NULL,NULL),(146,NULL,146,382,NULL,NULL,NULL,NULL),(147,NULL,147,383,NULL,NULL,NULL,NULL),(148,NULL,148,384,NULL,NULL,NULL,NULL),(149,NULL,149,385,NULL,NULL,NULL,NULL),(150,NULL,150,386,NULL,NULL,NULL,NULL),(151,NULL,151,375,NULL,NULL,NULL,NULL),(152,NULL,152,411,NULL,NULL,NULL,NULL),(153,NULL,153,412,NULL,NULL,NULL,NULL),(154,NULL,154,413,NULL,NULL,NULL,NULL),(155,NULL,155,414,NULL,NULL,NULL,NULL),(156,NULL,156,415,NULL,NULL,NULL,NULL),(157,NULL,157,416,NULL,NULL,NULL,NULL),(158,NULL,158,417,NULL,NULL,NULL,NULL),(159,NULL,159,418,NULL,NULL,NULL,NULL),(160,NULL,160,419,NULL,NULL,NULL,NULL),(161,NULL,161,420,NULL,NULL,NULL,NULL),(162,NULL,162,421,NULL,NULL,NULL,NULL),(163,NULL,163,422,NULL,NULL,NULL,NULL),(164,NULL,164,423,NULL,NULL,NULL,NULL),(165,NULL,165,424,NULL,NULL,NULL,NULL),(166,NULL,166,425,NULL,NULL,NULL,NULL),(167,NULL,167,426,NULL,NULL,NULL,NULL),(168,NULL,168,427,NULL,NULL,NULL,NULL),(169,NULL,169,428,NULL,NULL,NULL,NULL),(170,NULL,170,453,NULL,NULL,NULL,NULL),(171,NULL,171,454,NULL,NULL,NULL,NULL),(172,NULL,172,455,NULL,NULL,NULL,NULL),(173,NULL,173,456,NULL,NULL,NULL,NULL),(174,NULL,174,457,NULL,NULL,NULL,NULL),(175,NULL,175,458,NULL,NULL,NULL,NULL),(176,NULL,176,459,NULL,NULL,NULL,NULL),(178,NULL,178,461,NULL,NULL,NULL,NULL),(179,NULL,179,462,NULL,NULL,NULL,NULL),(180,NULL,180,463,NULL,NULL,NULL,NULL),(181,NULL,181,464,NULL,NULL,NULL,NULL),(182,NULL,182,465,NULL,NULL,NULL,NULL),(183,NULL,183,466,NULL,NULL,NULL,NULL),(184,NULL,184,456,NULL,NULL,NULL,NULL),(185,NULL,185,459,NULL,NULL,NULL,NULL),(186,NULL,186,461,NULL,NULL,NULL,NULL),(187,NULL,187,467,NULL,NULL,NULL,NULL),(188,NULL,188,468,NULL,NULL,NULL,NULL),(189,NULL,189,469,NULL,NULL,NULL,NULL),(190,NULL,190,470,NULL,NULL,NULL,NULL),(191,NULL,191,471,NULL,NULL,NULL,NULL),(192,NULL,192,472,NULL,NULL,NULL,NULL),(193,NULL,193,473,NULL,NULL,NULL,NULL),(194,NULL,194,474,NULL,NULL,NULL,NULL),(195,NULL,195,475,NULL,NULL,NULL,NULL),(196,NULL,196,476,NULL,NULL,NULL,NULL),(197,NULL,197,477,NULL,NULL,NULL,NULL),(198,NULL,198,478,NULL,NULL,NULL,NULL),(199,NULL,199,479,NULL,NULL,NULL,NULL),(200,NULL,200,480,NULL,NULL,NULL,NULL),(201,NULL,201,481,NULL,NULL,NULL,NULL),(202,NULL,202,482,NULL,NULL,NULL,NULL),(203,NULL,203,483,NULL,NULL,NULL,NULL),(204,NULL,204,484,NULL,NULL,NULL,NULL),(205,NULL,205,485,NULL,NULL,NULL,NULL),(206,NULL,206,486,NULL,NULL,NULL,NULL),(207,NULL,207,487,NULL,NULL,NULL,NULL),(208,NULL,208,488,NULL,NULL,NULL,NULL),(209,NULL,209,489,NULL,NULL,NULL,NULL),(210,NULL,210,490,NULL,NULL,NULL,NULL),(211,NULL,211,491,NULL,NULL,NULL,NULL),(212,NULL,212,492,NULL,NULL,NULL,NULL),(213,NULL,213,493,NULL,NULL,NULL,NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (214,NULL,214,494,NULL,NULL,NULL,NULL),(215,NULL,215,495,NULL,NULL,NULL,NULL),(216,NULL,216,496,NULL,NULL,NULL,NULL),(217,NULL,217,497,NULL,NULL,NULL,NULL),(218,NULL,218,498,NULL,NULL,NULL,NULL),(219,NULL,219,498,NULL,NULL,NULL,NULL),(220,NULL,220,521,NULL,NULL,NULL,NULL),(221,NULL,221,522,NULL,NULL,NULL,NULL),(222,NULL,222,523,NULL,NULL,NULL,NULL),(223,NULL,223,524,NULL,NULL,NULL,NULL),(224,NULL,224,525,NULL,NULL,NULL,NULL),(225,NULL,225,526,NULL,NULL,NULL,NULL),(226,NULL,226,527,NULL,NULL,NULL,NULL),(227,NULL,227,528,NULL,NULL,NULL,NULL),(228,NULL,228,529,NULL,NULL,NULL,NULL),(229,NULL,229,530,NULL,NULL,NULL,NULL),(230,NULL,230,531,NULL,NULL,NULL,NULL),(231,NULL,231,532,NULL,NULL,NULL,NULL),(232,NULL,232,533,NULL,NULL,NULL,NULL),(233,NULL,233,534,NULL,NULL,NULL,NULL),(234,NULL,234,535,NULL,NULL,NULL,NULL),(235,NULL,235,536,NULL,NULL,NULL,NULL),(236,NULL,236,537,NULL,NULL,NULL,NULL),(237,NULL,237,538,NULL,NULL,NULL,NULL),(238,NULL,238,539,NULL,NULL,NULL,NULL),(239,NULL,239,540,NULL,NULL,NULL,NULL),(240,NULL,240,541,NULL,NULL,NULL,NULL),(241,NULL,241,542,NULL,NULL,NULL,NULL),(242,NULL,242,543,NULL,NULL,NULL,NULL),(243,NULL,243,544,NULL,NULL,NULL,NULL),(244,NULL,244,545,NULL,NULL,NULL,NULL),(245,NULL,245,546,NULL,NULL,NULL,NULL),(246,NULL,246,547,NULL,NULL,NULL,NULL),(247,NULL,247,548,NULL,NULL,NULL,NULL),(248,NULL,248,549,NULL,NULL,NULL,NULL),(249,NULL,249,550,NULL,NULL,NULL,NULL),(250,NULL,250,551,NULL,NULL,NULL,NULL),(251,NULL,251,552,NULL,NULL,NULL,NULL),(252,NULL,252,553,NULL,NULL,NULL,NULL),(253,NULL,253,554,NULL,NULL,NULL,NULL),(254,NULL,254,555,NULL,NULL,NULL,NULL),(255,NULL,255,556,NULL,NULL,NULL,NULL),(256,NULL,256,557,NULL,NULL,NULL,NULL),(257,NULL,257,558,NULL,NULL,NULL,NULL),(258,NULL,258,559,NULL,NULL,NULL,NULL),(259,NULL,259,560,NULL,NULL,NULL,NULL),(260,NULL,260,561,NULL,NULL,NULL,NULL),(261,NULL,261,562,NULL,NULL,NULL,NULL),(262,NULL,262,563,NULL,NULL,NULL,NULL),(263,NULL,263,564,NULL,NULL,NULL,NULL),(264,NULL,264,565,NULL,NULL,NULL,NULL),(265,NULL,265,566,NULL,NULL,NULL,NULL),(266,NULL,266,567,NULL,NULL,NULL,NULL),(267,NULL,267,569,NULL,NULL,NULL,NULL),(268,NULL,268,570,NULL,NULL,NULL,NULL),(269,NULL,269,571,NULL,NULL,NULL,NULL),(270,NULL,270,572,NULL,NULL,NULL,NULL),(271,NULL,271,573,NULL,NULL,NULL,NULL),(272,NULL,272,574,NULL,NULL,NULL,NULL),(273,NULL,273,575,NULL,NULL,NULL,NULL),(274,NULL,274,576,NULL,NULL,NULL,NULL),(275,NULL,275,577,NULL,NULL,NULL,NULL),(276,NULL,276,578,NULL,NULL,NULL,NULL),(277,NULL,277,579,NULL,NULL,NULL,NULL),(278,NULL,278,580,NULL,NULL,NULL,NULL),(279,NULL,279,581,NULL,NULL,NULL,NULL),(280,NULL,280,582,NULL,NULL,NULL,NULL),(281,NULL,281,583,NULL,NULL,NULL,NULL),(282,NULL,282,584,NULL,NULL,NULL,NULL),(283,NULL,283,585,NULL,NULL,NULL,NULL),(284,NULL,284,586,NULL,NULL,NULL,NULL),(285,NULL,285,587,NULL,NULL,NULL,NULL),(286,NULL,286,588,NULL,NULL,NULL,NULL),(287,NULL,287,589,NULL,NULL,NULL,NULL),(288,NULL,288,590,NULL,NULL,NULL,NULL),(289,NULL,289,591,NULL,NULL,NULL,NULL),(290,NULL,290,592,NULL,NULL,NULL,NULL),(291,NULL,291,593,NULL,NULL,NULL,NULL),(292,NULL,292,594,NULL,NULL,NULL,NULL),(293,NULL,293,595,NULL,NULL,NULL,NULL),(294,NULL,294,596,NULL,NULL,NULL,NULL),(295,NULL,295,597,NULL,NULL,NULL,NULL),(296,NULL,296,598,NULL,NULL,NULL,NULL),(297,NULL,297,599,NULL,NULL,NULL,NULL),(298,NULL,298,600,NULL,NULL,NULL,NULL),(299,NULL,299,601,NULL,NULL,NULL,NULL),(300,NULL,300,602,NULL,NULL,NULL,NULL),(301,NULL,301,603,NULL,NULL,NULL,NULL),(302,NULL,302,604,NULL,NULL,NULL,NULL),(303,NULL,303,605,NULL,NULL,NULL,NULL),(304,NULL,304,606,NULL,NULL,NULL,NULL),(305,NULL,305,607,NULL,NULL,NULL,NULL),(306,NULL,306,608,NULL,NULL,NULL,NULL),(307,NULL,307,609,NULL,NULL,NULL,NULL),(308,NULL,308,610,NULL,NULL,NULL,NULL),(309,NULL,309,611,NULL,NULL,NULL,NULL),(310,NULL,310,612,NULL,NULL,NULL,NULL),(311,NULL,311,613,NULL,NULL,NULL,NULL),(312,NULL,312,614,NULL,NULL,NULL,NULL),(313,NULL,313,615,NULL,NULL,NULL,NULL),(314,NULL,314,616,NULL,NULL,NULL,NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (315,NULL,315,617,NULL,NULL,NULL,NULL),(316,NULL,316,618,NULL,NULL,NULL,NULL),(317,NULL,317,619,NULL,NULL,NULL,NULL),(318,NULL,318,620,NULL,NULL,NULL,NULL),(319,NULL,319,621,NULL,NULL,NULL,NULL),(320,NULL,320,622,NULL,NULL,NULL,NULL),(321,NULL,321,623,NULL,NULL,NULL,NULL),(322,NULL,322,624,NULL,NULL,NULL,NULL),(323,NULL,323,625,NULL,NULL,NULL,NULL),(324,NULL,324,626,NULL,NULL,NULL,NULL),(325,NULL,325,627,NULL,NULL,NULL,NULL),(326,NULL,326,628,NULL,NULL,NULL,NULL),(327,NULL,327,629,NULL,NULL,NULL,NULL),(328,NULL,328,630,NULL,NULL,NULL,NULL),(329,NULL,329,631,NULL,NULL,NULL,NULL),(330,NULL,330,632,NULL,NULL,NULL,NULL),(331,NULL,331,633,NULL,NULL,NULL,NULL),(332,NULL,332,607,NULL,NULL,NULL,NULL),(333,NULL,333,634,NULL,NULL,NULL,NULL),(334,NULL,334,635,NULL,NULL,NULL,NULL),(335,NULL,335,636,NULL,NULL,NULL,NULL),(336,NULL,336,637,NULL,NULL,NULL,NULL),(337,NULL,337,638,NULL,NULL,NULL,NULL),(338,NULL,338,639,NULL,NULL,NULL,NULL),(339,NULL,339,640,NULL,NULL,NULL,NULL),(340,NULL,340,641,NULL,NULL,NULL,NULL),(341,NULL,341,642,NULL,NULL,NULL,NULL),(342,NULL,342,643,NULL,NULL,NULL,NULL),(343,NULL,343,644,NULL,NULL,NULL,NULL),(344,NULL,344,645,NULL,NULL,NULL,NULL),(345,NULL,345,646,NULL,NULL,NULL,NULL),(346,NULL,346,647,NULL,NULL,NULL,NULL),(347,NULL,347,648,NULL,NULL,NULL,NULL),(348,NULL,348,649,NULL,NULL,NULL,NULL),(349,NULL,349,650,NULL,NULL,NULL,NULL),(350,NULL,350,651,NULL,NULL,NULL,NULL),(351,NULL,351,652,NULL,NULL,NULL,NULL),(352,NULL,352,653,NULL,NULL,NULL,NULL),(353,NULL,353,654,NULL,NULL,NULL,NULL),(354,NULL,354,655,NULL,NULL,NULL,NULL),(355,NULL,355,656,NULL,NULL,NULL,NULL),(356,NULL,356,657,NULL,NULL,NULL,NULL),(357,NULL,357,658,NULL,NULL,NULL,NULL),(358,NULL,358,659,NULL,NULL,NULL,NULL),(359,NULL,359,660,NULL,NULL,NULL,NULL),(360,NULL,360,661,NULL,NULL,NULL,NULL),(361,NULL,361,663,NULL,NULL,NULL,NULL),(362,NULL,362,664,NULL,NULL,NULL,NULL),(363,NULL,363,665,NULL,NULL,NULL,NULL),(364,NULL,364,666,NULL,NULL,NULL,NULL),(365,NULL,365,667,NULL,NULL,NULL,NULL),(366,NULL,366,668,NULL,NULL,NULL,NULL),(367,NULL,367,669,NULL,NULL,NULL,NULL),(368,NULL,368,670,NULL,NULL,NULL,NULL),(369,NULL,369,671,NULL,NULL,NULL,NULL),(370,NULL,370,672,NULL,NULL,NULL,NULL),(371,NULL,371,673,NULL,NULL,NULL,NULL),(372,NULL,372,674,NULL,NULL,NULL,NULL),(373,NULL,373,675,NULL,NULL,NULL,NULL),(374,NULL,374,676,NULL,NULL,NULL,NULL),(375,NULL,375,677,NULL,NULL,NULL,NULL),(376,NULL,376,678,NULL,NULL,NULL,NULL),(377,NULL,377,679,NULL,NULL,NULL,NULL),(378,NULL,378,680,NULL,NULL,NULL,NULL),(379,NULL,379,681,NULL,NULL,NULL,NULL),(380,NULL,380,682,NULL,NULL,NULL,NULL),(381,NULL,381,683,NULL,NULL,NULL,NULL),(382,NULL,382,684,NULL,NULL,NULL,NULL),(383,NULL,383,685,NULL,NULL,NULL,NULL),(384,NULL,384,686,NULL,NULL,NULL,NULL),(385,NULL,385,687,NULL,NULL,NULL,NULL),(386,NULL,386,688,NULL,NULL,NULL,NULL),(387,NULL,387,689,NULL,NULL,NULL,NULL),(388,NULL,388,690,NULL,NULL,NULL,NULL),(389,NULL,389,691,NULL,NULL,NULL,NULL),(390,NULL,390,692,NULL,NULL,NULL,NULL),(391,NULL,391,693,NULL,NULL,NULL,NULL),(392,NULL,392,694,NULL,NULL,NULL,NULL),(393,NULL,393,695,NULL,NULL,NULL,NULL),(394,NULL,394,696,NULL,NULL,NULL,NULL),(395,NULL,395,697,NULL,NULL,NULL,NULL),(396,NULL,396,698,NULL,NULL,NULL,NULL),(397,NULL,397,699,NULL,NULL,NULL,NULL),(398,NULL,398,669,NULL,NULL,NULL,NULL),(399,NULL,399,699,NULL,NULL,NULL,NULL),(400,NULL,400,719,NULL,NULL,NULL,NULL),(401,NULL,401,720,NULL,NULL,NULL,NULL),(402,NULL,402,721,NULL,NULL,NULL,NULL),(403,NULL,403,722,NULL,NULL,NULL,NULL),(404,NULL,404,723,NULL,NULL,NULL,NULL),(405,NULL,405,724,NULL,NULL,NULL,NULL),(406,NULL,406,725,NULL,NULL,NULL,NULL),(407,NULL,407,726,NULL,NULL,NULL,NULL),(408,NULL,408,727,NULL,NULL,NULL,NULL),(409,NULL,409,728,NULL,NULL,NULL,NULL),(410,NULL,410,729,NULL,NULL,NULL,NULL),(411,NULL,411,730,NULL,NULL,NULL,NULL),(412,NULL,412,731,NULL,NULL,NULL,NULL),(413,NULL,413,732,NULL,NULL,NULL,NULL),(414,NULL,414,733,NULL,NULL,NULL,NULL),(415,NULL,415,734,NULL,NULL,NULL,NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (416,NULL,416,735,NULL,NULL,NULL,NULL),(417,NULL,417,736,NULL,NULL,NULL,NULL),(418,NULL,418,737,NULL,NULL,NULL,NULL),(419,NULL,419,738,NULL,NULL,NULL,NULL),(420,NULL,420,739,NULL,NULL,NULL,NULL),(421,NULL,421,740,NULL,NULL,NULL,NULL),(422,NULL,422,741,NULL,NULL,NULL,NULL),(423,NULL,423,742,NULL,NULL,NULL,NULL),(424,NULL,424,743,NULL,NULL,NULL,NULL),(425,NULL,425,744,NULL,NULL,NULL,NULL),(426,NULL,426,745,NULL,NULL,NULL,NULL),(427,NULL,427,746,NULL,NULL,NULL,NULL),(428,NULL,428,747,NULL,NULL,NULL,NULL),(429,NULL,429,748,NULL,NULL,NULL,NULL),(430,NULL,430,749,NULL,NULL,NULL,NULL),(431,NULL,431,750,NULL,NULL,NULL,NULL),(432,NULL,432,751,NULL,NULL,NULL,NULL),(433,NULL,433,752,NULL,NULL,NULL,NULL),(434,NULL,434,753,NULL,NULL,NULL,NULL),(435,NULL,435,754,NULL,NULL,NULL,NULL),(436,NULL,436,755,NULL,NULL,NULL,NULL),(437,NULL,437,756,NULL,NULL,NULL,NULL),(438,NULL,438,757,NULL,NULL,NULL,NULL),(439,NULL,439,758,NULL,NULL,NULL,NULL),(440,NULL,440,759,NULL,NULL,NULL,NULL),(441,NULL,441,760,NULL,NULL,NULL,NULL),(442,NULL,442,761,NULL,NULL,NULL,NULL),(443,NULL,443,762,NULL,NULL,NULL,NULL),(444,NULL,444,763,NULL,NULL,NULL,NULL),(445,NULL,445,764,NULL,NULL,NULL,NULL),(446,NULL,446,765,NULL,NULL,NULL,NULL),(447,NULL,447,766,NULL,NULL,NULL,NULL),(448,NULL,448,767,NULL,NULL,NULL,NULL),(449,NULL,449,768,NULL,NULL,NULL,NULL),(450,NULL,450,769,NULL,NULL,NULL,NULL),(451,NULL,451,770,NULL,NULL,NULL,NULL),(452,NULL,452,771,NULL,NULL,NULL,NULL),(453,NULL,453,772,NULL,NULL,NULL,NULL),(454,NULL,454,773,NULL,NULL,NULL,NULL),(455,NULL,455,774,NULL,NULL,NULL,NULL),(456,NULL,456,775,NULL,NULL,NULL,NULL),(457,NULL,457,776,NULL,NULL,NULL,NULL),(458,NULL,458,777,NULL,NULL,NULL,NULL),(459,NULL,459,778,NULL,NULL,NULL,NULL),(460,NULL,460,779,NULL,NULL,NULL,NULL),(461,NULL,461,780,NULL,NULL,NULL,NULL),(462,NULL,462,781,NULL,NULL,NULL,NULL),(463,NULL,463,782,NULL,NULL,NULL,NULL),(464,NULL,464,783,NULL,NULL,NULL,NULL),(465,NULL,465,784,NULL,NULL,NULL,NULL),(466,NULL,466,785,NULL,NULL,NULL,NULL),(467,NULL,467,786,NULL,NULL,NULL,NULL),(468,NULL,468,787,NULL,NULL,NULL,NULL),(469,NULL,469,788,NULL,NULL,NULL,NULL),(470,NULL,470,789,NULL,NULL,NULL,NULL),(471,NULL,471,790,NULL,NULL,NULL,NULL),(472,NULL,472,791,NULL,NULL,NULL,NULL),(473,NULL,473,792,NULL,NULL,NULL,NULL),(474,NULL,474,793,NULL,NULL,NULL,NULL),(475,NULL,475,794,NULL,NULL,NULL,NULL),(476,NULL,476,795,NULL,NULL,NULL,NULL),(477,NULL,477,796,NULL,NULL,NULL,NULL),(478,NULL,478,797,NULL,NULL,NULL,NULL),(479,NULL,479,798,NULL,NULL,NULL,NULL),(480,NULL,480,799,NULL,NULL,NULL,NULL),(481,NULL,481,800,NULL,NULL,NULL,NULL),(482,NULL,482,801,NULL,NULL,NULL,NULL),(483,NULL,483,802,NULL,NULL,NULL,NULL),(484,NULL,484,803,NULL,NULL,NULL,NULL),(485,NULL,485,804,NULL,NULL,NULL,NULL),(486,NULL,486,805,NULL,NULL,NULL,NULL),(488,NULL,488,807,NULL,NULL,NULL,NULL),(489,NULL,489,808,NULL,NULL,NULL,NULL),(490,NULL,490,809,NULL,NULL,NULL,NULL),(491,NULL,491,810,NULL,NULL,NULL,NULL),(492,NULL,492,811,NULL,NULL,NULL,NULL),(493,NULL,493,807,NULL,NULL,NULL,NULL),(494,NULL,494,807,NULL,NULL,NULL,NULL),(496,NULL,496,839,NULL,NULL,NULL,NULL),(497,NULL,497,840,NULL,NULL,NULL,NULL),(498,NULL,498,841,NULL,NULL,NULL,NULL),(499,NULL,499,842,NULL,NULL,NULL,NULL),(500,NULL,500,843,NULL,NULL,NULL,NULL),(501,NULL,501,844,NULL,NULL,NULL,NULL),(502,NULL,502,845,NULL,NULL,NULL,NULL),(503,NULL,503,846,NULL,NULL,NULL,NULL),(504,NULL,504,847,NULL,NULL,NULL,NULL),(505,NULL,505,848,NULL,NULL,NULL,NULL),(506,NULL,506,849,NULL,NULL,NULL,NULL),(507,NULL,507,850,NULL,NULL,NULL,NULL),(508,NULL,508,851,NULL,NULL,NULL,NULL),(509,NULL,509,852,NULL,NULL,NULL,NULL),(510,NULL,510,853,NULL,NULL,NULL,NULL),(511,NULL,511,854,NULL,NULL,NULL,NULL),(512,NULL,512,855,NULL,NULL,NULL,NULL),(513,NULL,513,856,NULL,NULL,NULL,NULL),(514,NULL,514,857,NULL,NULL,NULL,NULL),(515,NULL,515,858,NULL,NULL,NULL,NULL),(516,NULL,516,859,NULL,NULL,NULL,NULL),(517,NULL,517,860,NULL,NULL,NULL,NULL),(518,NULL,518,861,NULL,NULL,NULL,NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (519,NULL,519,862,NULL,NULL,NULL,NULL),(520,NULL,520,863,NULL,NULL,NULL,NULL),(521,NULL,521,864,NULL,NULL,NULL,NULL),(522,NULL,522,865,NULL,NULL,NULL,NULL),(523,NULL,523,866,NULL,NULL,NULL,NULL),(524,NULL,524,867,NULL,NULL,NULL,NULL),(525,NULL,525,868,NULL,NULL,NULL,NULL),(526,NULL,526,869,NULL,NULL,NULL,NULL),(527,NULL,527,870,NULL,NULL,NULL,NULL),(528,NULL,528,871,NULL,NULL,NULL,NULL),(529,NULL,529,872,NULL,NULL,NULL,NULL),(530,NULL,530,873,NULL,NULL,NULL,NULL),(531,NULL,531,874,NULL,NULL,NULL,NULL),(532,NULL,532,875,NULL,NULL,NULL,NULL),(533,NULL,533,876,NULL,NULL,NULL,NULL),(534,NULL,534,877,NULL,NULL,NULL,NULL),(535,NULL,535,878,NULL,NULL,NULL,NULL),(536,NULL,536,879,NULL,NULL,NULL,NULL),(537,NULL,537,880,NULL,NULL,NULL,NULL),(538,NULL,538,881,NULL,NULL,NULL,NULL),(539,NULL,539,882,NULL,NULL,NULL,NULL),(540,NULL,540,883,NULL,NULL,NULL,NULL),(541,NULL,541,884,NULL,NULL,NULL,NULL),(542,NULL,542,885,NULL,NULL,NULL,NULL),(543,NULL,543,886,NULL,NULL,NULL,NULL),(544,NULL,544,887,NULL,NULL,NULL,NULL),(545,NULL,545,888,NULL,NULL,NULL,NULL),(546,NULL,546,889,NULL,NULL,NULL,NULL),(547,NULL,547,890,NULL,NULL,NULL,NULL),(548,NULL,548,891,NULL,NULL,NULL,NULL),(549,NULL,549,892,NULL,NULL,NULL,NULL),(550,NULL,550,893,NULL,NULL,NULL,NULL),(551,NULL,551,894,NULL,NULL,NULL,NULL),(552,NULL,552,895,NULL,NULL,NULL,NULL),(553,NULL,553,896,NULL,NULL,NULL,NULL),(554,NULL,554,897,NULL,NULL,NULL,NULL),(555,NULL,555,898,NULL,NULL,NULL,NULL),(556,NULL,556,899,NULL,NULL,NULL,NULL),(557,NULL,557,900,NULL,NULL,NULL,NULL),(558,NULL,558,901,NULL,NULL,NULL,NULL),(559,NULL,559,902,NULL,NULL,NULL,NULL),(560,NULL,560,903,NULL,NULL,NULL,NULL),(561,NULL,561,904,NULL,NULL,NULL,NULL),(562,NULL,562,905,NULL,NULL,NULL,NULL),(563,NULL,563,906,NULL,NULL,NULL,NULL),(564,NULL,564,907,NULL,NULL,NULL,NULL),(565,NULL,565,908,NULL,NULL,NULL,NULL),(566,NULL,566,909,NULL,NULL,NULL,NULL),(567,NULL,567,910,NULL,NULL,NULL,NULL),(568,NULL,568,911,NULL,NULL,NULL,NULL),(569,NULL,569,912,NULL,NULL,NULL,NULL),(570,NULL,570,913,NULL,NULL,NULL,NULL),(571,NULL,571,914,NULL,NULL,NULL,NULL),(572,NULL,572,915,NULL,NULL,NULL,NULL),(573,NULL,573,916,NULL,NULL,NULL,NULL),(574,NULL,574,903,NULL,NULL,NULL,NULL),(575,NULL,575,938,NULL,NULL,NULL,NULL),(576,NULL,576,939,NULL,NULL,NULL,NULL),(577,NULL,577,940,NULL,NULL,NULL,NULL),(578,NULL,578,941,NULL,NULL,NULL,NULL),(579,NULL,579,942,NULL,NULL,NULL,NULL),(580,NULL,580,943,NULL,NULL,NULL,NULL),(581,NULL,581,944,NULL,NULL,NULL,NULL),(582,NULL,582,945,NULL,NULL,NULL,NULL),(583,NULL,583,946,NULL,NULL,NULL,NULL),(584,NULL,584,947,NULL,NULL,NULL,NULL),(585,NULL,585,948,NULL,NULL,NULL,NULL),(586,NULL,586,949,NULL,NULL,NULL,NULL),(587,NULL,587,950,NULL,NULL,NULL,NULL),(588,NULL,588,951,NULL,NULL,NULL,NULL),(589,NULL,589,952,NULL,NULL,NULL,NULL),(590,NULL,590,953,NULL,NULL,NULL,NULL),(591,NULL,591,954,NULL,NULL,NULL,NULL),(592,NULL,592,955,NULL,NULL,NULL,NULL),(593,NULL,593,956,NULL,NULL,NULL,NULL),(594,NULL,594,957,NULL,NULL,NULL,NULL),(595,NULL,595,958,NULL,NULL,NULL,NULL),(596,NULL,596,959,NULL,NULL,NULL,NULL),(597,NULL,597,960,NULL,NULL,NULL,NULL),(598,NULL,598,961,NULL,NULL,NULL,NULL),(599,NULL,599,962,NULL,NULL,NULL,NULL),(600,NULL,600,963,NULL,NULL,NULL,NULL),(601,NULL,601,964,NULL,NULL,NULL,NULL),(602,NULL,602,965,NULL,NULL,NULL,NULL),(603,NULL,603,966,NULL,NULL,NULL,NULL),(604,NULL,604,967,NULL,NULL,NULL,NULL),(605,NULL,605,968,NULL,NULL,NULL,NULL),(606,NULL,606,969,NULL,NULL,NULL,NULL),(607,NULL,607,970,NULL,NULL,NULL,NULL),(608,NULL,608,971,NULL,NULL,NULL,NULL),(609,NULL,609,972,NULL,NULL,NULL,NULL),(610,NULL,610,973,NULL,NULL,NULL,NULL),(611,NULL,611,974,NULL,NULL,NULL,NULL),(612,NULL,612,975,NULL,NULL,NULL,NULL),(613,NULL,613,976,NULL,NULL,NULL,NULL),(614,NULL,614,977,NULL,NULL,NULL,NULL),(615,NULL,615,978,NULL,NULL,NULL,NULL),(616,NULL,616,979,NULL,NULL,NULL,NULL),(617,NULL,617,980,NULL,NULL,NULL,NULL),(618,NULL,618,981,NULL,NULL,NULL,NULL),(619,NULL,619,982,NULL,NULL,NULL,NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (620,NULL,620,983,NULL,NULL,NULL,NULL),(621,NULL,621,984,NULL,NULL,NULL,NULL),(622,NULL,622,985,NULL,NULL,NULL,NULL),(623,NULL,623,986,NULL,NULL,NULL,NULL),(624,NULL,624,987,NULL,NULL,NULL,NULL),(625,NULL,625,988,NULL,NULL,NULL,NULL),(626,NULL,626,989,NULL,NULL,NULL,NULL),(627,NULL,627,990,NULL,NULL,NULL,NULL),(628,NULL,628,991,NULL,NULL,NULL,NULL),(629,NULL,629,992,NULL,NULL,NULL,NULL),(630,NULL,630,993,NULL,NULL,NULL,NULL),(631,NULL,631,994,NULL,NULL,NULL,NULL),(632,NULL,632,995,NULL,NULL,NULL,NULL),(633,NULL,633,996,NULL,NULL,NULL,NULL),(634,NULL,634,997,NULL,NULL,NULL,NULL),(635,NULL,635,998,NULL,NULL,NULL,NULL),(636,NULL,636,999,NULL,NULL,NULL,NULL),(637,NULL,637,1000,NULL,NULL,NULL,NULL),(638,NULL,638,1001,NULL,NULL,NULL,NULL),(639,NULL,639,1002,NULL,NULL,NULL,NULL),(640,NULL,640,1003,NULL,NULL,NULL,NULL),(641,NULL,641,1003,NULL,NULL,NULL,NULL),(642,NULL,642,1004,NULL,NULL,NULL,NULL),(643,NULL,643,1005,NULL,NULL,NULL,NULL),(644,NULL,644,1006,NULL,NULL,NULL,NULL),(645,NULL,645,1007,NULL,NULL,NULL,NULL),(646,NULL,646,1008,NULL,NULL,NULL,NULL),(647,NULL,647,1009,NULL,NULL,NULL,NULL),(649,NULL,649,1011,NULL,NULL,NULL,NULL),(650,NULL,650,1012,NULL,NULL,NULL,NULL),(651,NULL,651,1013,NULL,NULL,NULL,NULL),(652,NULL,652,1014,NULL,NULL,NULL,NULL),(653,NULL,653,1015,NULL,NULL,NULL,NULL),(654,NULL,654,1016,NULL,NULL,NULL,NULL),(655,NULL,655,972,NULL,NULL,NULL,NULL),(656,NULL,656,973,NULL,NULL,NULL,NULL),(657,NULL,657,1017,NULL,NULL,NULL,NULL),(658,NULL,658,1018,NULL,NULL,NULL,NULL),(659,NULL,659,1019,NULL,NULL,NULL,NULL),(660,NULL,660,1020,NULL,NULL,NULL,NULL),(661,NULL,661,1021,NULL,NULL,NULL,NULL),(662,NULL,662,978,NULL,NULL,NULL,NULL),(663,NULL,663,976,NULL,NULL,NULL,NULL),(664,NULL,664,977,NULL,NULL,NULL,NULL),(665,NULL,665,1022,NULL,NULL,NULL,NULL),(666,NULL,666,1023,NULL,NULL,NULL,NULL),(667,NULL,667,1024,NULL,NULL,NULL,NULL),(668,NULL,668,1025,NULL,NULL,NULL,NULL),(669,NULL,669,980,NULL,NULL,NULL,NULL),(670,NULL,670,1026,NULL,NULL,NULL,NULL),(671,NULL,671,1027,NULL,NULL,NULL,NULL),(672,NULL,672,1028,NULL,NULL,NULL,NULL),(673,NULL,673,1012,NULL,NULL,NULL,NULL),(674,NULL,674,1025,NULL,NULL,NULL,NULL),(675,NULL,675,1051,NULL,NULL,NULL,NULL),(676,NULL,676,1052,NULL,NULL,NULL,NULL),(677,NULL,677,1053,NULL,NULL,NULL,NULL),(678,NULL,678,1054,NULL,NULL,NULL,NULL),(679,NULL,679,1055,NULL,NULL,NULL,NULL),(680,NULL,680,1056,NULL,NULL,NULL,NULL),(681,NULL,681,1057,NULL,NULL,NULL,NULL),(682,NULL,682,1058,NULL,NULL,NULL,NULL),(683,NULL,683,1059,NULL,NULL,NULL,NULL),(684,NULL,684,1060,NULL,NULL,NULL,NULL),(685,NULL,685,1061,NULL,NULL,NULL,NULL),(686,NULL,686,1062,NULL,NULL,NULL,NULL),(687,NULL,687,1063,NULL,NULL,NULL,NULL),(688,NULL,688,1064,NULL,NULL,NULL,NULL),(689,NULL,689,1065,NULL,NULL,NULL,NULL),(690,NULL,690,1066,NULL,NULL,NULL,NULL),(691,NULL,691,1067,NULL,NULL,NULL,NULL),(692,NULL,692,1068,NULL,NULL,NULL,NULL),(693,NULL,693,1069,NULL,NULL,NULL,NULL),(694,NULL,694,1070,NULL,NULL,NULL,NULL),(695,NULL,695,1071,NULL,NULL,NULL,NULL),(696,NULL,696,1072,NULL,NULL,NULL,NULL),(697,NULL,697,1073,NULL,NULL,NULL,NULL),(698,NULL,698,1074,NULL,NULL,NULL,NULL),(699,NULL,699,1075,NULL,NULL,NULL,NULL),(700,NULL,700,1076,NULL,NULL,NULL,NULL),(701,NULL,701,1077,NULL,NULL,NULL,NULL),(702,NULL,702,1078,NULL,NULL,NULL,NULL),(703,NULL,703,1079,NULL,NULL,NULL,NULL),(704,NULL,704,1080,NULL,NULL,NULL,NULL),(705,NULL,705,1081,NULL,NULL,NULL,NULL),(706,NULL,706,1082,NULL,NULL,NULL,NULL),(707,NULL,707,1083,NULL,NULL,NULL,NULL),(708,NULL,708,1084,NULL,NULL,NULL,NULL),(709,NULL,709,1085,NULL,NULL,NULL,NULL),(710,NULL,710,1086,NULL,NULL,NULL,NULL),(711,NULL,711,1087,NULL,NULL,NULL,NULL),(712,NULL,712,1088,NULL,NULL,NULL,NULL),(713,NULL,713,1089,NULL,NULL,NULL,NULL),(714,NULL,714,1090,NULL,NULL,NULL,NULL),(715,NULL,715,1091,NULL,NULL,NULL,NULL),(716,NULL,716,1092,NULL,NULL,NULL,NULL),(717,NULL,717,1093,NULL,NULL,NULL,NULL),(718,NULL,718,1094,NULL,NULL,NULL,NULL),(719,NULL,719,1095,NULL,NULL,NULL,NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (720,NULL,720,1096,NULL,NULL,NULL,NULL),(721,NULL,721,1097,NULL,NULL,NULL,NULL),(722,NULL,722,1098,NULL,NULL,NULL,NULL),(723,NULL,723,1099,NULL,NULL,NULL,NULL),(724,NULL,724,1100,NULL,NULL,NULL,NULL),(725,NULL,725,1101,NULL,NULL,NULL,NULL),(726,NULL,726,1102,NULL,NULL,NULL,NULL),(727,NULL,727,1103,NULL,NULL,NULL,NULL),(728,NULL,728,1104,NULL,NULL,NULL,NULL),(729,NULL,729,1105,NULL,NULL,NULL,NULL),(730,NULL,730,1106,NULL,NULL,NULL,NULL),(731,NULL,731,1107,NULL,NULL,NULL,NULL),(732,NULL,732,1108,NULL,NULL,NULL,NULL),(733,NULL,733,1109,NULL,NULL,NULL,NULL),(734,NULL,734,1110,NULL,NULL,NULL,NULL),(735,NULL,735,1111,NULL,NULL,NULL,NULL),(736,NULL,736,1112,NULL,NULL,NULL,NULL),(737,NULL,737,1113,NULL,NULL,NULL,NULL),(738,NULL,738,1114,NULL,NULL,NULL,NULL),(739,NULL,739,1115,NULL,NULL,NULL,NULL),(740,NULL,740,1116,NULL,NULL,NULL,NULL),(741,NULL,741,1117,NULL,NULL,NULL,NULL),(742,NULL,742,1118,NULL,NULL,NULL,NULL),(743,NULL,743,1119,NULL,NULL,NULL,NULL),(744,NULL,744,1120,NULL,NULL,NULL,NULL),(745,NULL,745,1121,NULL,NULL,NULL,NULL),(746,NULL,746,1122,NULL,NULL,NULL,NULL),(747,NULL,747,1123,NULL,NULL,NULL,NULL),(748,NULL,748,1124,NULL,NULL,NULL,NULL),(749,NULL,749,1125,NULL,NULL,NULL,NULL),(750,NULL,750,1126,NULL,NULL,NULL,NULL),(751,NULL,751,1127,NULL,NULL,NULL,NULL),(752,NULL,752,1128,NULL,NULL,NULL,NULL),(753,NULL,753,1129,NULL,NULL,NULL,NULL),(754,NULL,754,1130,NULL,NULL,NULL,NULL),(755,NULL,755,1131,NULL,NULL,NULL,NULL),(756,NULL,756,1132,NULL,NULL,NULL,NULL),(757,NULL,757,1133,NULL,NULL,NULL,NULL),(758,NULL,758,1134,NULL,NULL,NULL,NULL),(759,NULL,759,1135,NULL,NULL,NULL,NULL),(760,NULL,760,1136,NULL,NULL,NULL,NULL),(761,NULL,761,1137,NULL,NULL,NULL,NULL),(762,NULL,762,1138,NULL,NULL,NULL,NULL),(763,NULL,763,1139,NULL,NULL,NULL,NULL),(764,NULL,764,1140,NULL,NULL,NULL,NULL),(765,NULL,765,1141,NULL,NULL,NULL,NULL),(766,NULL,766,1142,NULL,NULL,NULL,NULL),(767,NULL,767,1143,NULL,NULL,NULL,NULL),(768,NULL,768,1144,NULL,NULL,NULL,NULL),(769,NULL,769,1145,NULL,NULL,NULL,NULL),(770,NULL,770,1146,NULL,NULL,NULL,NULL),(771,NULL,771,1147,NULL,NULL,NULL,NULL),(772,NULL,772,1148,NULL,NULL,NULL,NULL),(773,NULL,773,1149,NULL,NULL,NULL,NULL),(774,NULL,774,1150,NULL,NULL,NULL,NULL),(775,NULL,775,1151,NULL,NULL,NULL,NULL),(776,NULL,776,1152,NULL,NULL,NULL,NULL),(777,NULL,777,1153,NULL,NULL,NULL,NULL),(778,NULL,778,1154,NULL,NULL,NULL,NULL),(779,NULL,779,1155,NULL,NULL,NULL,NULL),(780,NULL,780,1156,NULL,NULL,NULL,NULL),(781,NULL,781,1157,NULL,NULL,NULL,NULL),(782,NULL,782,1158,NULL,NULL,NULL,NULL),(783,NULL,783,1159,NULL,NULL,NULL,NULL),(784,NULL,784,1160,NULL,NULL,NULL,NULL),(785,NULL,785,1161,NULL,NULL,NULL,NULL),(786,NULL,786,1162,NULL,NULL,NULL,NULL),(787,NULL,787,1163,NULL,NULL,NULL,NULL),(788,NULL,788,1164,NULL,NULL,NULL,NULL),(789,NULL,789,1165,NULL,NULL,NULL,NULL),(790,NULL,790,1166,NULL,NULL,NULL,NULL),(791,NULL,791,1167,NULL,NULL,NULL,NULL),(792,NULL,792,1168,NULL,NULL,NULL,NULL),(793,NULL,793,1169,NULL,NULL,NULL,NULL),(794,NULL,794,1170,NULL,NULL,NULL,NULL),(795,NULL,795,1171,NULL,NULL,NULL,NULL),(796,NULL,796,1172,NULL,NULL,NULL,NULL),(797,NULL,797,1173,NULL,NULL,NULL,NULL),(798,NULL,798,1174,NULL,NULL,NULL,NULL),(799,NULL,799,1175,NULL,NULL,NULL,NULL),(800,NULL,800,1176,NULL,NULL,NULL,NULL),(801,NULL,801,1177,NULL,NULL,NULL,NULL),(802,NULL,802,1178,NULL,NULL,NULL,NULL),(803,NULL,803,1179,NULL,NULL,NULL,NULL),(804,NULL,804,1180,NULL,NULL,NULL,NULL),(805,NULL,805,1181,NULL,NULL,NULL,NULL),(806,NULL,806,1182,NULL,NULL,NULL,NULL),(807,NULL,807,1183,NULL,NULL,NULL,NULL),(808,NULL,808,1184,NULL,NULL,NULL,NULL),(809,NULL,809,1185,NULL,NULL,NULL,NULL),(810,NULL,810,1186,NULL,NULL,NULL,NULL),(811,NULL,811,1187,NULL,NULL,NULL,NULL),(812,NULL,812,1188,NULL,NULL,NULL,NULL),(813,NULL,813,1189,NULL,NULL,NULL,NULL),(814,NULL,814,1190,NULL,NULL,NULL,NULL),(815,NULL,815,1191,NULL,NULL,NULL,NULL),(816,NULL,816,1192,NULL,NULL,NULL,NULL),(817,NULL,817,1193,NULL,NULL,NULL,NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (818,NULL,818,1194,NULL,NULL,NULL,NULL),(819,NULL,819,1195,NULL,NULL,NULL,NULL),(820,NULL,820,1196,NULL,NULL,NULL,NULL),(821,NULL,821,1197,NULL,NULL,NULL,NULL),(822,NULL,822,1198,NULL,NULL,NULL,NULL),(823,NULL,823,1199,NULL,NULL,NULL,NULL),(824,NULL,824,1200,NULL,NULL,NULL,NULL),(825,NULL,825,1201,NULL,NULL,NULL,NULL),(826,NULL,826,1202,NULL,NULL,NULL,NULL),(827,NULL,827,1203,NULL,NULL,NULL,NULL),(828,NULL,828,1204,NULL,NULL,NULL,NULL),(829,NULL,829,1205,NULL,NULL,NULL,NULL),(830,NULL,830,1206,NULL,NULL,NULL,NULL),(831,NULL,831,1207,NULL,NULL,NULL,NULL),(832,NULL,832,1208,NULL,NULL,NULL,NULL),(833,NULL,833,1209,NULL,NULL,NULL,NULL),(834,NULL,834,1210,NULL,NULL,NULL,NULL),(835,NULL,835,1211,NULL,NULL,NULL,NULL),(836,NULL,836,1212,NULL,NULL,NULL,NULL),(837,NULL,837,1213,NULL,NULL,NULL,NULL),(838,NULL,838,1214,NULL,NULL,NULL,NULL),(839,NULL,839,1215,NULL,NULL,NULL,NULL),(840,NULL,840,1216,NULL,NULL,NULL,NULL),(841,NULL,841,1217,NULL,NULL,NULL,NULL),(842,NULL,842,1218,NULL,NULL,NULL,NULL),(843,NULL,843,1219,NULL,NULL,NULL,NULL),(844,NULL,844,1220,NULL,NULL,NULL,NULL),(845,NULL,845,1221,NULL,NULL,NULL,NULL),(846,NULL,846,1222,NULL,NULL,NULL,NULL),(847,NULL,847,1223,NULL,NULL,NULL,NULL),(848,NULL,848,1224,NULL,NULL,NULL,NULL),(849,NULL,849,1225,NULL,NULL,NULL,NULL),(850,NULL,850,1226,NULL,NULL,NULL,NULL),(851,NULL,851,1227,NULL,NULL,NULL,NULL),(852,NULL,852,1228,NULL,NULL,NULL,NULL),(853,NULL,853,1229,NULL,NULL,NULL,NULL),(854,NULL,854,1230,NULL,NULL,NULL,NULL),(855,NULL,855,1231,NULL,NULL,NULL,NULL),(856,NULL,856,1232,NULL,NULL,NULL,NULL),(857,NULL,857,1233,NULL,NULL,NULL,NULL),(858,NULL,858,1234,NULL,NULL,NULL,NULL),(859,NULL,859,1235,NULL,NULL,NULL,NULL),(860,NULL,860,1236,NULL,NULL,NULL,NULL),(1065,NULL,1065,1441,NULL,NULL,NULL,NULL),(1066,NULL,1066,1442,NULL,NULL,NULL,NULL),(1067,NULL,1067,1443,NULL,NULL,NULL,NULL),(1068,NULL,1068,1444,NULL,NULL,NULL,NULL),(1069,NULL,1069,1445,NULL,NULL,NULL,NULL),(1070,NULL,1070,1446,NULL,NULL,NULL,NULL),(1071,NULL,1071,1447,NULL,NULL,NULL,NULL),(1072,NULL,1072,1448,NULL,NULL,NULL,NULL),(1073,NULL,1073,1449,NULL,NULL,NULL,NULL),(1074,NULL,1074,1450,NULL,NULL,NULL,NULL),(1075,NULL,1075,1451,NULL,NULL,NULL,NULL),(1076,NULL,1076,1452,NULL,NULL,NULL,NULL),(1077,NULL,1077,1453,NULL,NULL,NULL,NULL),(1078,NULL,1078,1454,NULL,NULL,NULL,NULL),(1079,NULL,1079,1455,NULL,NULL,NULL,NULL),(1080,NULL,1080,1456,NULL,NULL,NULL,NULL),(1081,NULL,1081,1457,NULL,NULL,NULL,NULL),(1082,NULL,1082,1458,NULL,NULL,NULL,NULL),(1083,NULL,1083,1459,NULL,NULL,NULL,NULL),(1084,NULL,1084,1460,NULL,NULL,NULL,NULL),(1085,NULL,1085,1461,NULL,NULL,NULL,NULL),(1086,NULL,1086,1462,NULL,NULL,NULL,NULL),(1087,NULL,1087,1463,NULL,NULL,NULL,NULL),(1088,NULL,1088,1464,NULL,NULL,NULL,NULL),(1089,NULL,1089,1465,NULL,NULL,NULL,NULL),(1090,NULL,1090,1466,NULL,NULL,NULL,NULL),(1091,NULL,1091,1467,NULL,NULL,NULL,NULL),(1092,NULL,1092,1468,NULL,NULL,NULL,NULL),(1093,NULL,1093,1469,NULL,NULL,NULL,NULL),(1094,NULL,1094,1470,NULL,NULL,NULL,NULL),(1095,NULL,1095,1471,NULL,NULL,NULL,NULL),(1096,NULL,1096,1472,NULL,NULL,NULL,NULL),(1097,NULL,1097,1473,NULL,NULL,NULL,NULL),(1098,NULL,1098,1474,NULL,NULL,NULL,NULL),(1099,NULL,1099,1475,NULL,NULL,NULL,NULL),(1100,NULL,1100,1476,NULL,NULL,NULL,NULL),(1101,NULL,1101,1477,NULL,NULL,NULL,NULL),(1102,NULL,1102,1478,NULL,NULL,NULL,NULL),(1103,NULL,1103,1479,NULL,NULL,NULL,NULL),(1104,NULL,1104,1480,NULL,NULL,NULL,NULL),(1105,NULL,1105,1481,NULL,NULL,NULL,NULL),(1106,NULL,1106,1482,NULL,NULL,NULL,NULL),(1107,NULL,1107,1483,NULL,NULL,NULL,NULL),(1108,NULL,1108,1484,NULL,NULL,NULL,NULL),(1109,NULL,1109,1485,NULL,NULL,NULL,NULL),(1110,NULL,1110,1486,NULL,NULL,NULL,NULL),(1111,NULL,1111,1487,NULL,NULL,NULL,NULL),(1112,NULL,1112,1488,NULL,NULL,NULL,NULL),(1113,NULL,1113,1489,NULL,NULL,NULL,NULL),(1114,NULL,1114,1490,NULL,NULL,NULL,NULL),(1115,NULL,1115,1491,NULL,NULL,NULL,NULL),(1116,NULL,1116,1492,NULL,NULL,NULL,NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (1117,NULL,1117,1493,NULL,NULL,NULL,NULL),(1118,NULL,1118,1494,NULL,NULL,NULL,NULL),(1119,NULL,1119,1495,NULL,NULL,NULL,NULL),(1120,NULL,1120,1496,NULL,NULL,NULL,NULL),(1121,NULL,1121,1497,NULL,NULL,NULL,NULL),(1122,NULL,1122,1498,NULL,NULL,NULL,NULL),(1123,NULL,1123,1499,NULL,NULL,NULL,NULL),(1124,NULL,1124,1500,NULL,NULL,NULL,NULL),(1125,NULL,1125,1501,NULL,NULL,NULL,NULL),(1126,NULL,1126,1502,NULL,NULL,NULL,NULL),(1127,NULL,1127,1503,NULL,NULL,NULL,NULL),(1128,NULL,1128,1504,NULL,NULL,NULL,NULL),(1129,NULL,1129,1505,NULL,NULL,NULL,NULL),(1130,NULL,1130,1506,NULL,NULL,NULL,NULL),(1131,NULL,1131,1507,NULL,NULL,NULL,NULL),(1132,NULL,1132,1508,NULL,NULL,NULL,NULL),(1133,NULL,1133,1509,NULL,NULL,NULL,NULL),(1134,NULL,1134,1510,NULL,NULL,NULL,NULL),(1135,NULL,1135,1511,NULL,NULL,NULL,NULL),(1136,NULL,1136,1512,NULL,NULL,NULL,NULL),(1137,NULL,1137,1513,NULL,NULL,NULL,NULL),(1138,NULL,1138,1514,NULL,NULL,NULL,NULL),(1139,NULL,1139,1515,NULL,NULL,NULL,NULL),(1140,NULL,1140,1516,NULL,NULL,NULL,NULL),(1141,NULL,1141,1517,NULL,NULL,NULL,NULL),(1142,NULL,1142,1518,NULL,NULL,NULL,NULL),(1143,NULL,1143,1519,NULL,NULL,NULL,NULL),(1144,NULL,1144,1520,NULL,NULL,NULL,NULL),(1145,NULL,1145,1521,NULL,NULL,NULL,NULL),(1146,NULL,1146,1522,NULL,NULL,NULL,NULL),(1147,NULL,1147,1523,NULL,NULL,NULL,NULL),(1148,NULL,1148,1524,NULL,NULL,NULL,NULL),(1149,NULL,1149,1525,NULL,NULL,NULL,NULL),(1150,NULL,1150,1526,NULL,NULL,NULL,NULL),(1151,NULL,1151,1527,NULL,NULL,NULL,NULL),(1152,NULL,1152,1528,NULL,NULL,NULL,NULL),(1153,NULL,1153,1529,NULL,NULL,NULL,NULL),(1154,NULL,1154,1530,NULL,NULL,NULL,NULL),(1155,NULL,1155,1531,NULL,NULL,NULL,NULL),(1156,NULL,1156,1532,NULL,NULL,NULL,NULL),(1157,NULL,1157,1533,NULL,NULL,NULL,NULL),(1158,NULL,1158,1534,NULL,NULL,NULL,NULL),(1159,NULL,1159,1535,NULL,NULL,NULL,NULL),(1160,NULL,1160,1536,NULL,NULL,NULL,NULL),(1161,NULL,1161,1537,NULL,NULL,NULL,NULL),(1162,NULL,1162,1538,NULL,NULL,NULL,NULL),(1163,NULL,1163,1539,NULL,NULL,NULL,NULL),(1164,NULL,1164,1540,NULL,NULL,NULL,NULL),(1165,NULL,1165,1541,NULL,NULL,NULL,NULL),(1166,NULL,1166,1542,NULL,NULL,NULL,NULL),(1167,NULL,1167,1543,NULL,NULL,NULL,NULL),(1168,NULL,1168,1544,NULL,NULL,NULL,NULL),(1169,NULL,1169,1545,NULL,NULL,NULL,NULL),(1170,NULL,1170,1546,NULL,NULL,NULL,NULL),(1171,NULL,1171,1547,NULL,NULL,NULL,NULL),(1172,NULL,1172,1548,NULL,NULL,NULL,NULL),(1173,NULL,1173,1549,NULL,NULL,NULL,NULL),(1174,NULL,1174,1550,NULL,NULL,NULL,NULL),(1175,NULL,1175,1551,NULL,NULL,NULL,NULL),(1176,NULL,1176,1552,NULL,NULL,NULL,NULL),(1177,NULL,1177,1553,NULL,NULL,NULL,NULL),(1178,NULL,1178,1554,NULL,NULL,NULL,NULL),(1179,NULL,1179,1555,NULL,NULL,NULL,NULL),(1180,NULL,1180,1556,NULL,NULL,NULL,NULL),(1181,NULL,1181,1557,NULL,NULL,NULL,NULL),(1182,NULL,1182,1558,NULL,NULL,NULL,NULL),(1183,NULL,1183,1559,NULL,NULL,NULL,NULL),(1184,NULL,1184,1560,NULL,NULL,NULL,NULL),(1185,NULL,1185,1561,NULL,NULL,NULL,NULL),(1186,NULL,1186,1562,NULL,NULL,NULL,NULL),(1187,NULL,1187,1563,NULL,NULL,NULL,NULL),(1188,NULL,1188,1564,NULL,NULL,NULL,NULL),(1189,NULL,1189,1565,NULL,NULL,NULL,NULL),(1190,NULL,1190,1566,NULL,NULL,NULL,NULL),(1191,NULL,1191,1567,NULL,NULL,NULL,NULL),(1192,NULL,1192,1568,NULL,NULL,NULL,NULL),(1193,NULL,1193,1569,NULL,NULL,NULL,NULL),(1194,NULL,1194,1570,NULL,NULL,NULL,NULL),(1195,NULL,1195,1571,NULL,NULL,NULL,NULL),(1196,NULL,1196,1572,NULL,NULL,NULL,NULL),(1197,NULL,1197,1573,NULL,NULL,NULL,NULL),(1198,NULL,1198,1574,NULL,NULL,NULL,NULL),(1199,NULL,1199,1575,NULL,NULL,NULL,NULL),(1200,NULL,1200,1576,NULL,NULL,NULL,NULL),(1201,NULL,1201,1577,NULL,NULL,NULL,NULL),(1202,NULL,1202,1578,NULL,NULL,NULL,NULL),(1203,NULL,1203,1579,NULL,NULL,NULL,NULL),(1204,NULL,1204,1580,NULL,NULL,NULL,NULL),(1205,NULL,1205,1581,NULL,NULL,NULL,NULL),(1206,NULL,1206,1582,NULL,NULL,NULL,NULL),(1207,NULL,1207,1583,NULL,NULL,NULL,NULL),(1208,NULL,1208,1584,NULL,NULL,NULL,NULL),(1209,NULL,1209,1585,NULL,NULL,NULL,NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (1210,NULL,1210,1586,NULL,NULL,NULL,NULL),(1211,NULL,1211,1587,NULL,NULL,NULL,NULL),(1212,NULL,1212,1588,NULL,NULL,NULL,NULL),(1213,NULL,1213,1589,NULL,NULL,NULL,NULL),(1214,NULL,1214,1590,NULL,NULL,NULL,NULL),(1215,NULL,1215,1591,NULL,NULL,NULL,NULL),(1216,NULL,1216,1592,NULL,NULL,NULL,NULL),(1217,NULL,1217,1593,NULL,NULL,NULL,NULL),(1218,NULL,1218,1594,NULL,NULL,NULL,NULL),(1219,NULL,1219,1595,NULL,NULL,NULL,NULL),(1220,NULL,1220,1596,NULL,NULL,NULL,NULL),(1221,NULL,1221,1597,NULL,NULL,NULL,NULL),(1222,NULL,1222,1598,NULL,NULL,NULL,NULL),(1223,NULL,1223,1599,NULL,NULL,NULL,NULL),(1224,NULL,1224,1600,NULL,NULL,NULL,NULL),(1225,NULL,1225,1601,NULL,NULL,NULL,NULL),(1226,NULL,1226,1602,NULL,NULL,NULL,NULL),(1227,NULL,1227,1603,NULL,NULL,NULL,NULL),(1228,NULL,1228,1604,NULL,NULL,NULL,NULL),(1229,NULL,1229,1605,NULL,NULL,NULL,NULL),(1230,NULL,1230,1606,NULL,NULL,NULL,NULL),(1231,NULL,1231,1607,NULL,NULL,NULL,NULL),(1232,NULL,1232,1608,NULL,NULL,NULL,NULL),(1233,NULL,1233,1609,NULL,NULL,NULL,NULL),(1234,NULL,1234,1610,NULL,NULL,NULL,NULL),(1235,NULL,1235,1611,NULL,NULL,NULL,NULL),(1236,NULL,1236,1612,NULL,NULL,NULL,NULL),(1237,NULL,1237,1613,NULL,NULL,NULL,NULL),(1238,NULL,1238,1614,NULL,NULL,NULL,NULL),(1239,NULL,1239,1615,NULL,NULL,NULL,NULL),(1240,NULL,1240,1616,NULL,NULL,NULL,NULL),(1241,NULL,1241,1617,NULL,NULL,NULL,NULL),(1242,NULL,1242,1618,NULL,NULL,NULL,NULL),(1243,NULL,1243,1619,NULL,NULL,NULL,NULL),(1244,NULL,1244,1620,NULL,NULL,NULL,NULL),(1245,NULL,1245,1621,NULL,NULL,NULL,NULL),(1246,NULL,1246,1622,NULL,NULL,NULL,NULL),(1247,NULL,1247,1623,NULL,NULL,NULL,NULL),(1248,NULL,1248,1624,NULL,NULL,NULL,NULL),(1249,NULL,1249,1625,NULL,NULL,NULL,NULL),(1250,NULL,1250,1626,NULL,NULL,NULL,NULL),(1251,NULL,1251,1627,NULL,NULL,NULL,NULL),(1252,NULL,1252,1628,NULL,NULL,NULL,NULL),(1253,NULL,1253,1629,NULL,NULL,NULL,NULL),(1254,NULL,1254,1630,NULL,NULL,NULL,NULL),(1255,NULL,1255,1631,NULL,NULL,NULL,NULL),(1256,NULL,1256,1632,NULL,NULL,NULL,NULL),(1257,NULL,1257,1633,NULL,NULL,NULL,NULL),(1258,NULL,1258,1634,NULL,NULL,NULL,NULL),(1259,NULL,1259,1635,NULL,NULL,NULL,NULL),(1260,NULL,1260,1636,NULL,NULL,NULL,NULL),(1261,NULL,1261,1637,NULL,NULL,NULL,NULL),(1262,NULL,1262,1638,NULL,NULL,NULL,NULL),(1263,NULL,1263,1639,NULL,NULL,NULL,NULL),(1264,NULL,1264,1640,NULL,NULL,NULL,NULL),(1265,NULL,1265,1641,NULL,NULL,NULL,NULL),(1266,NULL,1266,1642,NULL,NULL,NULL,NULL),(1267,NULL,1267,1643,NULL,NULL,NULL,NULL),(1268,NULL,1268,1644,NULL,NULL,NULL,NULL),(1269,NULL,1269,1645,NULL,NULL,NULL,NULL),(1270,NULL,1270,1646,NULL,NULL,NULL,NULL),(1271,NULL,1271,1647,NULL,NULL,NULL,NULL),(1272,NULL,1272,1648,NULL,NULL,NULL,NULL),(1273,NULL,1273,1649,NULL,NULL,NULL,NULL),(1274,NULL,1274,1650,NULL,NULL,NULL,NULL),(1275,NULL,1275,1651,NULL,NULL,NULL,NULL),(1403,NULL,1403,1779,NULL,NULL,NULL,NULL),(1404,NULL,1404,1780,NULL,NULL,NULL,NULL),(1405,NULL,1405,1781,NULL,NULL,NULL,NULL),(1406,NULL,1406,1782,NULL,NULL,NULL,NULL),(1407,NULL,1407,1783,NULL,NULL,NULL,NULL),(1408,NULL,1408,1784,NULL,NULL,NULL,NULL),(1409,NULL,1409,1785,NULL,NULL,NULL,NULL),(1410,NULL,1410,1786,NULL,NULL,NULL,NULL),(1411,NULL,1411,1787,NULL,NULL,NULL,NULL),(1412,NULL,1412,1788,NULL,NULL,NULL,NULL),(1413,NULL,1413,1789,NULL,NULL,NULL,NULL),(1414,NULL,1414,1790,NULL,NULL,NULL,NULL),(1415,NULL,1415,1791,NULL,NULL,NULL,NULL),(1416,NULL,1416,1792,NULL,NULL,NULL,NULL),(1417,NULL,1417,1793,NULL,NULL,NULL,NULL),(1418,NULL,1418,1794,NULL,NULL,NULL,NULL),(1419,NULL,1419,1795,NULL,NULL,NULL,NULL),(1420,NULL,1420,1796,NULL,NULL,NULL,NULL),(1421,NULL,1421,1797,NULL,NULL,NULL,NULL),(1422,NULL,1422,1798,NULL,NULL,NULL,NULL),(1423,NULL,1423,1799,NULL,NULL,NULL,NULL),(1424,NULL,1424,1800,NULL,NULL,NULL,NULL),(1425,NULL,1425,1801,NULL,NULL,NULL,NULL),(1426,NULL,1426,1802,NULL,NULL,NULL,NULL),(1427,NULL,1427,1803,NULL,NULL,NULL,NULL),(1428,NULL,1428,1804,NULL,NULL,NULL,NULL),(1429,NULL,1429,1805,NULL,NULL,NULL,NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (1430,NULL,1430,1806,NULL,NULL,NULL,NULL),(1431,NULL,1431,1807,NULL,NULL,NULL,NULL),(1432,NULL,1432,1808,NULL,NULL,NULL,NULL),(1433,NULL,1433,1809,NULL,NULL,NULL,NULL),(1434,NULL,1434,1810,NULL,NULL,NULL,NULL),(1435,NULL,1435,1811,NULL,NULL,NULL,NULL),(1436,NULL,1436,1812,NULL,NULL,NULL,NULL),(1437,NULL,1437,1813,NULL,NULL,NULL,NULL),(1438,NULL,1438,1814,NULL,NULL,NULL,NULL),(1439,NULL,1439,1815,NULL,NULL,NULL,NULL),(1440,NULL,1440,1816,NULL,NULL,NULL,NULL),(1441,NULL,1441,1817,NULL,NULL,NULL,NULL),(1442,NULL,1442,1818,NULL,NULL,NULL,NULL),(1443,NULL,1443,1819,NULL,NULL,NULL,NULL),(1444,NULL,1444,1820,NULL,NULL,NULL,NULL),(1445,NULL,1445,1821,NULL,NULL,NULL,NULL),(1446,NULL,1446,1822,NULL,NULL,NULL,NULL),(1447,NULL,1447,1823,NULL,NULL,NULL,NULL),(1448,NULL,1448,1824,NULL,NULL,NULL,NULL),(1449,NULL,1449,1825,NULL,NULL,NULL,NULL),(1450,NULL,1450,1826,NULL,NULL,NULL,NULL),(1451,NULL,1451,1827,NULL,NULL,NULL,NULL),(1452,NULL,1452,1828,NULL,NULL,NULL,NULL),(1453,NULL,1453,1829,NULL,NULL,NULL,NULL),(1454,NULL,1454,1830,NULL,NULL,NULL,NULL),(1455,NULL,1455,1831,NULL,NULL,NULL,NULL),(1456,NULL,1456,1832,NULL,NULL,NULL,NULL),(1457,NULL,1457,1833,NULL,NULL,NULL,NULL),(1458,NULL,1458,1834,NULL,NULL,NULL,NULL),(1459,NULL,1459,1835,NULL,NULL,NULL,NULL),(1460,NULL,1460,1836,NULL,NULL,NULL,NULL),(1461,NULL,1461,1837,NULL,NULL,NULL,NULL),(1462,NULL,1462,1838,NULL,NULL,NULL,NULL),(1463,NULL,1463,1839,NULL,NULL,NULL,NULL),(1464,NULL,1464,1840,NULL,NULL,NULL,NULL),(1465,NULL,1465,1841,NULL,NULL,NULL,NULL),(1466,NULL,1466,1842,NULL,NULL,NULL,NULL),(1467,NULL,1467,1843,NULL,NULL,NULL,NULL),(1468,NULL,1468,1844,NULL,NULL,NULL,NULL),(1469,NULL,1469,1845,NULL,NULL,NULL,NULL),(1470,NULL,1470,1846,NULL,NULL,NULL,NULL),(1471,NULL,1471,1847,NULL,NULL,NULL,NULL),(1472,NULL,1472,1848,NULL,NULL,NULL,NULL),(1473,NULL,1473,1849,NULL,NULL,NULL,NULL),(1474,NULL,1474,1850,NULL,NULL,NULL,NULL),(1475,NULL,1475,1851,NULL,NULL,NULL,NULL),(1476,NULL,1476,1852,NULL,NULL,NULL,NULL),(1477,NULL,1477,1853,NULL,NULL,NULL,NULL),(1478,NULL,1478,1854,NULL,NULL,NULL,NULL),(1479,NULL,1479,1855,NULL,NULL,NULL,NULL),(1480,NULL,1480,1856,NULL,NULL,NULL,NULL),(1481,NULL,1481,1857,NULL,NULL,NULL,NULL),(1482,NULL,1482,1858,NULL,NULL,NULL,NULL),(1483,NULL,1483,1859,NULL,NULL,NULL,NULL),(1484,NULL,1484,1860,NULL,NULL,NULL,NULL),(1485,NULL,1485,1861,NULL,NULL,NULL,NULL),(1486,NULL,1486,1862,NULL,NULL,NULL,NULL),(1487,NULL,1487,1863,NULL,NULL,NULL,NULL),(1488,NULL,1488,1864,NULL,NULL,NULL,NULL),(1489,NULL,1489,1865,NULL,NULL,NULL,NULL),(1490,NULL,1490,1866,NULL,NULL,NULL,NULL),(1491,NULL,1491,1867,NULL,NULL,NULL,NULL),(1492,NULL,1492,1868,NULL,NULL,NULL,NULL),(1493,NULL,1493,1869,NULL,NULL,NULL,NULL),(1494,NULL,1494,1870,NULL,NULL,NULL,NULL),(1495,NULL,1495,1871,NULL,NULL,NULL,NULL),(1496,NULL,1496,1872,NULL,NULL,NULL,NULL),(1497,NULL,1497,1873,NULL,NULL,NULL,NULL),(1498,NULL,1498,1874,NULL,NULL,NULL,NULL),(1499,NULL,1499,1875,NULL,NULL,NULL,NULL),(1500,NULL,1500,1876,NULL,NULL,NULL,NULL),(1501,NULL,1501,1877,NULL,NULL,NULL,NULL),(1502,NULL,1502,1878,NULL,NULL,NULL,NULL),(1503,NULL,1503,1879,NULL,NULL,NULL,NULL),(1504,NULL,1504,1880,NULL,NULL,NULL,NULL),(1505,NULL,1505,1881,NULL,NULL,NULL,NULL),(1506,NULL,1506,1882,NULL,NULL,NULL,NULL),(1507,NULL,1507,1883,NULL,NULL,NULL,NULL),(1508,NULL,1508,1884,NULL,NULL,NULL,NULL),(1509,NULL,1509,1885,NULL,NULL,NULL,NULL),(1510,NULL,1510,1886,NULL,NULL,NULL,NULL),(1511,NULL,1511,1887,NULL,NULL,NULL,NULL),(1512,NULL,1512,1888,NULL,NULL,NULL,NULL),(1513,NULL,1513,1889,NULL,NULL,NULL,NULL),(1514,NULL,1514,1890,NULL,NULL,NULL,NULL),(1515,NULL,1515,1891,NULL,NULL,NULL,NULL),(1516,NULL,1516,1892,NULL,NULL,NULL,NULL),(1517,NULL,1517,1893,NULL,NULL,NULL,NULL),(1518,NULL,1518,1894,NULL,NULL,NULL,NULL),(1519,NULL,1519,1895,NULL,NULL,NULL,NULL),(1530,NULL,1530,1906,NULL,NULL,NULL,NULL),(1531,NULL,1531,1907,NULL,NULL,NULL,NULL),(1532,NULL,1532,1908,NULL,NULL,NULL,NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (1533,NULL,1533,1909,NULL,NULL,NULL,NULL),(1534,NULL,1534,1910,NULL,NULL,NULL,NULL),(1535,NULL,1535,1911,NULL,NULL,NULL,NULL),(1536,NULL,1536,1912,NULL,NULL,NULL,NULL),(1537,NULL,1537,1913,NULL,NULL,NULL,NULL),(1538,NULL,1538,1914,NULL,NULL,NULL,NULL),(1539,NULL,1539,1915,NULL,NULL,NULL,NULL),(1540,NULL,1540,1916,NULL,NULL,NULL,NULL),(1541,NULL,1541,1917,NULL,NULL,NULL,NULL),(1542,NULL,1542,1918,NULL,NULL,NULL,NULL),(1543,NULL,1543,1919,NULL,NULL,NULL,NULL),(1544,NULL,1544,1920,NULL,NULL,NULL,NULL),(1545,NULL,1545,1921,NULL,NULL,NULL,NULL),(1546,NULL,1546,1922,NULL,NULL,NULL,NULL),(1547,NULL,1547,1923,NULL,NULL,NULL,NULL),(1548,NULL,1548,1924,NULL,NULL,NULL,NULL),(1549,NULL,1549,1925,NULL,NULL,NULL,NULL),(1550,NULL,1550,1926,NULL,NULL,NULL,NULL),(1551,NULL,1551,1927,NULL,NULL,NULL,NULL),(1552,NULL,1552,1928,NULL,NULL,NULL,NULL),(1553,NULL,1553,1929,NULL,NULL,NULL,NULL),(1554,NULL,1554,1930,NULL,NULL,NULL,NULL),(1555,NULL,1555,1931,NULL,NULL,NULL,NULL),(1556,NULL,1556,1932,NULL,NULL,NULL,NULL),(1557,NULL,1557,1933,NULL,NULL,NULL,NULL),(1558,NULL,1558,1934,NULL,NULL,NULL,NULL),(1559,NULL,1559,1935,NULL,NULL,NULL,NULL),(1560,NULL,1560,1936,NULL,NULL,NULL,NULL),(1561,NULL,1561,1937,NULL,NULL,NULL,NULL),(1562,NULL,1562,1938,NULL,NULL,NULL,NULL),(1563,NULL,1563,1939,NULL,NULL,NULL,NULL),(1564,NULL,1564,1940,NULL,NULL,NULL,NULL),(1565,NULL,1565,1941,NULL,NULL,NULL,NULL),(1566,NULL,1566,1942,NULL,NULL,NULL,NULL),(1567,NULL,1567,1943,NULL,NULL,NULL,NULL),(1568,NULL,1568,1944,NULL,NULL,NULL,NULL),(1569,NULL,1569,1945,NULL,NULL,NULL,NULL),(1570,NULL,1570,1946,NULL,NULL,NULL,NULL),(1571,NULL,1571,1947,NULL,NULL,NULL,NULL),(1572,NULL,1572,1948,NULL,NULL,NULL,NULL),(1573,NULL,1573,1949,NULL,NULL,NULL,NULL),(1574,NULL,1574,1950,NULL,NULL,NULL,NULL),(1575,NULL,1575,1951,NULL,NULL,NULL,NULL),(1576,NULL,1576,1952,NULL,NULL,NULL,NULL),(1577,NULL,1577,1953,NULL,NULL,NULL,NULL),(1578,NULL,1578,1954,NULL,NULL,NULL,NULL),(1579,NULL,1579,1955,NULL,NULL,NULL,NULL),(1580,NULL,1580,1956,NULL,NULL,NULL,NULL),(1581,NULL,1581,1957,NULL,NULL,NULL,NULL),(1582,NULL,1582,1958,NULL,NULL,NULL,NULL),(1583,NULL,1583,1959,NULL,NULL,NULL,NULL),(1584,NULL,1584,1960,NULL,NULL,NULL,NULL),(1585,NULL,1585,1961,NULL,NULL,NULL,NULL),(1586,NULL,1586,1962,NULL,NULL,NULL,NULL),(1587,NULL,1587,1963,NULL,NULL,NULL,NULL),(1588,NULL,1588,1964,NULL,NULL,NULL,NULL),(1589,NULL,1589,1965,NULL,NULL,NULL,NULL),(1590,NULL,1590,1966,NULL,NULL,NULL,NULL),(1591,NULL,1591,1967,NULL,NULL,NULL,NULL),(1592,NULL,1592,1968,NULL,NULL,NULL,NULL),(1593,NULL,1593,1969,NULL,NULL,NULL,NULL),(1594,NULL,1594,1970,NULL,NULL,NULL,NULL),(1595,NULL,1595,1971,NULL,NULL,NULL,NULL),(1596,NULL,1596,1972,NULL,NULL,NULL,NULL),(1597,NULL,1597,1973,NULL,NULL,NULL,NULL),(1598,NULL,1598,1974,NULL,NULL,NULL,NULL),(1599,NULL,1599,1975,NULL,NULL,NULL,NULL),(1600,NULL,1600,1976,NULL,NULL,NULL,NULL),(1601,NULL,1601,1977,NULL,NULL,NULL,NULL),(1602,NULL,1602,1978,NULL,NULL,NULL,NULL),(1603,NULL,1603,1979,NULL,NULL,NULL,NULL),(1604,NULL,1604,1980,NULL,NULL,NULL,NULL),(1605,NULL,1605,1981,NULL,NULL,NULL,NULL),(1616,NULL,1616,1992,NULL,NULL,NULL,NULL),(1617,NULL,1617,1993,NULL,NULL,NULL,NULL),(1618,NULL,1618,1994,NULL,NULL,NULL,NULL),(1619,NULL,1619,1995,NULL,NULL,NULL,NULL),(1620,NULL,1620,1996,NULL,NULL,NULL,NULL),(1621,NULL,1621,1997,NULL,NULL,NULL,NULL),(1622,NULL,1622,1998,NULL,NULL,NULL,NULL),(1623,NULL,1623,1999,NULL,NULL,NULL,NULL),(1624,NULL,1624,2000,NULL,NULL,NULL,NULL),(1625,NULL,1625,2001,NULL,NULL,NULL,NULL),(1626,NULL,1626,2002,NULL,NULL,NULL,NULL),(1627,NULL,1627,2003,NULL,NULL,NULL,NULL),(1628,NULL,1628,2004,NULL,NULL,NULL,NULL),(1629,NULL,1629,2005,NULL,NULL,NULL,NULL),(1630,NULL,1630,2006,NULL,NULL,NULL,NULL),(1631,NULL,1631,2007,NULL,NULL,NULL,NULL),(1632,NULL,1632,2008,NULL,NULL,NULL,NULL),(1633,NULL,1633,2009,NULL,NULL,NULL,NULL),(1634,NULL,1634,2010,NULL,NULL,NULL,NULL),(1635,NULL,1635,2011,NULL,NULL,NULL,NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (1636,NULL,1636,2012,NULL,NULL,NULL,NULL),(1637,NULL,1637,2013,NULL,NULL,NULL,NULL),(1638,NULL,1638,2014,NULL,NULL,NULL,NULL),(1639,NULL,1639,2015,NULL,NULL,NULL,NULL),(1640,NULL,1640,2016,NULL,NULL,NULL,NULL),(1641,NULL,1641,2017,NULL,NULL,NULL,NULL),(1642,NULL,1642,2018,NULL,NULL,NULL,NULL),(1643,NULL,1643,2019,NULL,NULL,NULL,NULL),(1644,NULL,1644,2020,NULL,NULL,NULL,NULL),(1645,NULL,1645,2021,NULL,NULL,NULL,NULL),(1646,NULL,1646,2022,NULL,NULL,NULL,NULL),(1647,NULL,1647,2023,NULL,NULL,NULL,NULL),(1648,NULL,1648,2024,NULL,NULL,NULL,NULL),(1649,NULL,1649,2025,NULL,NULL,NULL,NULL),(1650,NULL,1650,2026,NULL,NULL,NULL,NULL),(1651,NULL,1651,2027,NULL,NULL,NULL,NULL),(1652,NULL,1652,2028,NULL,NULL,NULL,NULL),(1653,NULL,1653,2029,NULL,NULL,NULL,NULL),(1654,NULL,1654,2030,NULL,NULL,NULL,NULL),(1655,NULL,1655,2031,NULL,NULL,NULL,NULL),(1656,NULL,1656,2032,NULL,NULL,NULL,NULL),(1657,NULL,1657,2033,NULL,NULL,NULL,NULL),(1658,NULL,1658,2034,NULL,NULL,NULL,NULL),(1659,NULL,1659,2035,NULL,NULL,NULL,NULL),(1660,NULL,1660,2036,NULL,NULL,NULL,NULL),(1661,NULL,1661,2037,NULL,NULL,NULL,NULL),(1662,NULL,1662,2038,NULL,NULL,NULL,NULL),(1663,NULL,1663,2039,NULL,NULL,NULL,NULL),(1664,NULL,1664,2040,NULL,NULL,NULL,NULL),(1665,NULL,1665,2041,NULL,NULL,NULL,NULL),(1666,NULL,1666,2042,NULL,NULL,NULL,NULL),(1667,NULL,1667,2043,NULL,NULL,NULL,NULL),(1668,NULL,1668,2044,NULL,NULL,NULL,NULL),(1669,NULL,1669,2045,NULL,NULL,NULL,NULL),(1670,NULL,1670,2046,NULL,NULL,NULL,NULL),(1671,NULL,1671,2047,NULL,NULL,NULL,NULL),(1672,NULL,1672,2048,NULL,NULL,NULL,NULL),(1673,NULL,1673,2049,NULL,NULL,NULL,NULL),(1674,NULL,1674,2050,NULL,NULL,NULL,NULL),(1675,NULL,1675,2051,NULL,NULL,NULL,NULL),(1676,NULL,1676,2052,NULL,NULL,NULL,NULL),(1677,NULL,1677,2053,NULL,NULL,NULL,NULL),(1678,NULL,1678,2054,NULL,NULL,NULL,NULL),(1679,NULL,1679,2055,NULL,NULL,NULL,NULL),(1680,NULL,1680,2056,NULL,NULL,NULL,NULL),(1681,NULL,1681,2057,NULL,NULL,NULL,NULL),(1682,NULL,1682,2058,NULL,NULL,NULL,NULL),(1683,NULL,1683,2059,NULL,NULL,NULL,NULL),(1684,NULL,1684,2060,NULL,NULL,NULL,NULL),(1685,NULL,1685,2061,NULL,NULL,NULL,NULL),(1686,NULL,1686,2062,NULL,NULL,NULL,NULL),(1687,NULL,1687,2063,NULL,NULL,NULL,NULL),(1688,NULL,1688,2064,NULL,NULL,NULL,NULL),(1689,NULL,1689,2065,NULL,NULL,NULL,NULL),(1690,NULL,1690,2066,NULL,NULL,NULL,NULL),(1691,NULL,1691,2067,NULL,NULL,NULL,NULL),(1692,NULL,1692,2068,NULL,NULL,NULL,NULL),(1693,NULL,1693,2069,NULL,NULL,NULL,NULL),(1694,NULL,1694,2070,NULL,NULL,NULL,NULL),(1695,NULL,1695,2071,NULL,NULL,NULL,NULL),(1696,NULL,1696,2072,NULL,NULL,NULL,NULL),(1697,NULL,1697,2073,NULL,NULL,NULL,NULL),(1698,NULL,1698,2074,NULL,NULL,NULL,NULL),(1699,NULL,1699,2075,NULL,NULL,NULL,NULL),(1700,NULL,1700,2076,NULL,NULL,NULL,NULL),(1701,NULL,1701,2077,NULL,NULL,NULL,NULL),(1702,NULL,1702,2078,NULL,NULL,NULL,NULL),(1703,NULL,1703,2079,NULL,NULL,NULL,NULL),(1704,NULL,1704,2080,NULL,NULL,NULL,NULL),(1705,NULL,1705,2081,NULL,NULL,NULL,NULL),(1706,NULL,1706,2082,NULL,NULL,NULL,NULL),(1707,NULL,1707,2083,NULL,NULL,NULL,NULL),(1708,NULL,1708,2084,NULL,NULL,NULL,NULL),(1709,NULL,1709,2085,NULL,NULL,NULL,NULL),(1710,NULL,1710,2086,NULL,NULL,NULL,NULL),(1711,NULL,1711,2087,NULL,NULL,NULL,NULL),(1712,NULL,1712,2088,NULL,NULL,NULL,NULL),(1713,NULL,1713,2089,NULL,NULL,NULL,NULL),(1714,NULL,1714,2090,NULL,NULL,NULL,NULL),(1715,NULL,1715,2091,NULL,NULL,NULL,NULL),(1716,NULL,1716,2092,NULL,NULL,NULL,NULL),(1717,NULL,1717,2093,NULL,NULL,NULL,NULL),(1718,NULL,1718,2094,NULL,NULL,NULL,NULL),(1719,NULL,1719,2095,NULL,NULL,NULL,NULL),(1720,NULL,1720,2096,NULL,NULL,NULL,NULL),(1721,NULL,1721,2097,NULL,NULL,NULL,NULL),(1722,NULL,1722,2098,NULL,NULL,NULL,NULL),(1723,NULL,1723,2099,NULL,NULL,NULL,NULL),(1724,NULL,1724,2100,NULL,NULL,NULL,NULL),(1725,NULL,1725,2101,NULL,NULL,NULL,NULL),(1726,NULL,1726,2102,NULL,NULL,NULL,NULL),(1727,NULL,1727,2103,NULL,NULL,NULL,NULL),(1728,NULL,1728,2104,NULL,NULL,NULL,NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (1729,NULL,1729,2105,NULL,NULL,NULL,NULL),(1730,NULL,1730,2106,NULL,NULL,NULL,NULL),(1731,NULL,1731,2107,NULL,NULL,NULL,NULL),(1732,NULL,1732,2108,NULL,NULL,NULL,NULL),(1733,NULL,1733,2109,NULL,NULL,NULL,NULL),(1734,NULL,1734,2110,NULL,NULL,NULL,NULL),(1735,NULL,1735,2111,NULL,NULL,NULL,NULL),(1736,NULL,1736,2112,NULL,NULL,NULL,NULL),(1737,NULL,1737,2113,NULL,NULL,NULL,NULL),(1738,NULL,1738,2114,NULL,NULL,NULL,NULL),(1739,NULL,1739,2115,NULL,NULL,NULL,NULL),(1740,NULL,1740,2116,NULL,NULL,NULL,NULL),(1741,NULL,1741,2117,NULL,NULL,NULL,NULL),(1742,NULL,1742,2118,NULL,NULL,NULL,NULL),(1743,NULL,1743,2119,NULL,NULL,NULL,NULL),(1744,NULL,1744,2120,NULL,NULL,NULL,NULL),(1745,NULL,1745,2121,NULL,NULL,NULL,NULL),(1746,NULL,1746,2122,NULL,NULL,NULL,NULL),(1747,NULL,1747,2123,NULL,NULL,NULL,NULL),(1748,NULL,1748,2124,NULL,NULL,NULL,NULL),(1749,NULL,1749,2125,NULL,NULL,NULL,NULL),(1750,NULL,1750,2126,NULL,NULL,NULL,NULL),(1751,NULL,1751,2127,NULL,NULL,NULL,NULL),(1752,NULL,1752,2128,NULL,NULL,NULL,NULL),(1753,NULL,1753,2129,NULL,NULL,NULL,NULL),(1754,NULL,1754,2130,NULL,NULL,NULL,NULL),(1755,NULL,1755,2131,NULL,NULL,NULL,NULL),(1756,NULL,1756,2132,NULL,NULL,NULL,NULL),(1757,NULL,1757,2133,NULL,NULL,NULL,NULL),(1758,NULL,1758,2134,NULL,NULL,NULL,NULL),(1759,NULL,1759,2135,NULL,NULL,NULL,NULL),(1760,NULL,1760,2136,NULL,NULL,NULL,NULL),(1761,NULL,1761,2137,NULL,NULL,NULL,NULL),(1762,NULL,1762,2138,NULL,NULL,NULL,NULL),(1763,NULL,1763,2139,NULL,NULL,NULL,NULL),(1764,NULL,1764,2140,NULL,NULL,NULL,NULL),(1765,NULL,1765,2141,NULL,NULL,NULL,NULL),(1766,NULL,1766,2142,NULL,NULL,NULL,NULL),(1767,NULL,1767,2143,NULL,NULL,NULL,NULL),(1768,NULL,1768,2144,NULL,NULL,NULL,NULL),(1769,NULL,1769,2145,NULL,NULL,NULL,NULL),(1770,NULL,1770,2146,NULL,NULL,NULL,NULL),(1822,NULL,1822,1236,NULL,NULL,NULL,NULL),(1986,NULL,1986,2361,NULL,NULL,NULL,NULL),(1987,NULL,1987,2362,NULL,NULL,NULL,NULL),(1988,NULL,1988,2363,NULL,NULL,NULL,NULL),(1989,NULL,1989,2364,NULL,NULL,NULL,NULL),(1990,NULL,1990,2365,NULL,NULL,NULL,NULL),(1991,NULL,1991,2366,NULL,NULL,NULL,NULL),(1992,NULL,1992,2367,NULL,NULL,NULL,NULL),(1993,NULL,1993,2368,NULL,NULL,NULL,NULL),(1994,NULL,1994,2369,NULL,NULL,NULL,NULL),(1995,NULL,1995,2370,NULL,NULL,NULL,NULL),(1996,NULL,1996,2371,NULL,NULL,NULL,NULL),(1997,NULL,1997,2372,NULL,NULL,NULL,NULL),(1998,NULL,1998,2373,NULL,NULL,NULL,NULL),(1999,NULL,1999,2374,NULL,NULL,NULL,NULL),(2000,NULL,2000,2375,NULL,NULL,NULL,NULL),(2001,NULL,2001,2376,NULL,NULL,NULL,NULL),(2002,NULL,2002,2377,NULL,NULL,NULL,NULL),(2003,NULL,2003,2378,NULL,NULL,NULL,NULL),(2004,NULL,2004,2379,NULL,NULL,NULL,NULL),(2005,NULL,2005,2380,NULL,NULL,NULL,NULL),(2006,NULL,2006,2381,NULL,NULL,NULL,NULL),(2007,NULL,2007,2382,NULL,NULL,NULL,NULL),(2008,NULL,2008,2383,NULL,NULL,NULL,NULL),(2009,NULL,2009,2384,NULL,NULL,NULL,NULL),(2010,NULL,2010,2385,NULL,NULL,NULL,NULL),(2011,NULL,2011,2386,NULL,NULL,NULL,NULL),(2012,NULL,2012,2387,NULL,NULL,NULL,NULL),(2013,NULL,2013,2388,NULL,NULL,NULL,NULL),(2014,NULL,2014,2389,NULL,NULL,NULL,NULL),(2015,NULL,2015,2390,NULL,NULL,NULL,NULL),(2016,NULL,2016,2391,NULL,NULL,NULL,NULL),(2017,NULL,2017,2392,NULL,NULL,NULL,NULL),(2018,NULL,2018,2393,NULL,NULL,NULL,NULL),(2019,NULL,2019,2394,NULL,NULL,NULL,NULL),(2020,NULL,2020,2395,NULL,NULL,NULL,NULL),(2021,NULL,2021,2396,NULL,NULL,NULL,NULL),(2022,NULL,2022,2397,NULL,NULL,NULL,NULL),(2023,NULL,2023,2398,NULL,NULL,NULL,NULL),(2024,NULL,2024,2399,NULL,NULL,NULL,NULL),(2025,NULL,2025,2400,NULL,NULL,NULL,NULL),(2026,NULL,2026,2401,NULL,NULL,NULL,NULL),(2027,NULL,2027,2402,NULL,NULL,NULL,NULL),(2028,NULL,2028,2403,NULL,NULL,NULL,NULL),(2029,NULL,2029,2404,NULL,NULL,NULL,NULL),(2030,NULL,2030,2405,NULL,NULL,NULL,NULL),(2031,NULL,2031,2406,NULL,NULL,NULL,NULL),(2032,NULL,2032,2407,NULL,NULL,NULL,NULL),(2033,NULL,2033,2408,NULL,NULL,NULL,NULL),(2034,NULL,2034,2409,NULL,NULL,NULL,NULL),(2035,NULL,2035,2410,NULL,NULL,NULL,NULL);
INSERT INTO `cta_cte_cliente_pivot_receipt` VALUES (2036,NULL,2036,2411,NULL,NULL,NULL,NULL),(2037,NULL,2037,2412,NULL,NULL,NULL,NULL),(2038,NULL,2038,2413,NULL,NULL,NULL,NULL),(2039,NULL,2039,2414,NULL,NULL,NULL,NULL),(2040,NULL,2040,2415,NULL,NULL,NULL,NULL),(2041,NULL,2041,2416,NULL,NULL,NULL,NULL),(2042,NULL,2042,2417,NULL,NULL,NULL,NULL),(2043,NULL,2043,2418,NULL,NULL,NULL,NULL),(2044,NULL,2044,2419,NULL,NULL,NULL,NULL),(2045,NULL,2045,2420,NULL,NULL,NULL,NULL),(2046,NULL,2046,2421,NULL,NULL,NULL,NULL),(2047,NULL,2047,2422,NULL,NULL,NULL,NULL);

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

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

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


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

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

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

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

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

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

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


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

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

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

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

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

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

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


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

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

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


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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

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

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

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


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

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

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


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

CREATE TABLE `data_types` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `description` varchar(180) COLLATE utf8mb4_unicode_ci NOT NULL,
  `class` int(10) unsigned NOT NULL,
  `class_description` varchar(180) COLLATE utf8mb4_unicode_ci NOT NULL,
  `data_type` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `path` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `data_types_description_unique` (`description`)
) ENGINE=InnoDB AUTO_INCREMENT=10 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:49'),(8,'Mis Comprobantes',1,'Importacion','','data/imports/receipts/mis_comprobantes',NULL,NULL),(9,'Consulta AFIP',3,'AFIP','','data/afip/index','2019-12-06 14:50:07','2019-12-06 14:50:07');

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

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

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

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

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

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

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


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

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

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


--
-- Table structure for table `dc_ordenes_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(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_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`),
  CONSTRAINT `dc_ordenes_facturada_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_ordenes_facturada_fact_elec_receipt_id_foreign` FOREIGN KEY (`fact_elec_receipt_id`) REFERENCES `fact_elec_receipts` (`id`),
  CONSTRAINT `dc_ordenes_facturada_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_facturada`
--


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

CREATE TABLE `dc_ordenes_tipos` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `descripcion` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 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',1,NULL,'2022-09-09 16:52:41',NULL),(2,NULL,'ORDEN DE VENTAS',1,NULL,'2022-09-09 16:52:41',NULL),(3,NULL,'PRESUPUESTO',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 21:10:43','2020-05-28 21:10:43',NULL),(2,NULL,'Separado de Hecho',1,'2020-05-28 21:10:43','2020-05-28 21:10:43',NULL),(3,NULL,'Divorciado',1,'2020-05-28 21:10:43','2020-05-28 21:10:43',NULL),(4,NULL,'Convivencia',1,'2020-05-28 21:10:43','2020-05-28 21:10:43',NULL),(5,NULL,'Soltero',1,'2020-05-28 21:10:43','2020-05-28 21:10:43',NULL),(6,NULL,'Casado',1,'2020-05-28 21:10:43','2020-05-28 21:10:43',NULL),(7,NULL,'Viudo',1,'2020-05-28 21:10:43','2020-05-28 21:10:43',NULL);

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

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

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


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

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

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


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

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

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


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

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

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

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

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

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

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

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

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

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

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

INSERT INTO `fact_elec_conceptos_afip` VALUES (1,1,'Producto','2019-05-10 12:56:13','2019-05-10 12:56:13'),(2,2,'Servicios','2019-05-10 12:56:13','2019-05-10 12:56:13'),(3,3,'Productos y Servicios','2019-05-10 12:56:13','2019-05-10 12:56:13');

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

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

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

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

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

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

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


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

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

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


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

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

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


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

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

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


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

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

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

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

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

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

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

INSERT INTO `failed_jobs` VALUES (1,NULL,'database','default','{\"displayName\":\"App\\\\Mail\\\\LandingEmail\",\"job\":\"Illuminate\\\\Queue\\\\CallQueuedHandler@call\",\"maxTries\":null,\"delay\":null,\"timeout\":null,\"timeoutAt\":null,\"data\":{\"commandName\":\"Illuminate\\\\Mail\\\\SendQueuedMailable\",\"command\":\"O:34:\\\"Illuminate\\\\Mail\\\\SendQueuedMailable\\\":3:{s:8:\\\"mailable\\\";O:21:\\\"App\\\\Mail\\\\LandingEmail\\\":23:{s:7:\\\"request\\\";a:0:{}s:6:\\\"locale\\\";N;s:4:\\\"from\\\";a:0:{}s:2:\\\"to\\\";a:1:{i:0;a:2:{s:4:\\\"name\\\";N;s:7:\\\"address\\\";s:19:\\\"hernan@taxes.com.ar\\\";}}s:2:\\\"cc\\\";a:0:{}s:3:\\\"bcc\\\";a:0:{}s:7:\\\"replyTo\\\";a:0:{}s:7:\\\"subject\\\";N;s:11:\\\"\\u0000*\\u0000markdown\\\";N;s:7:\\\"\\u0000*\\u0000html\\\";N;s:4:\\\"view\\\";N;s:8:\\\"textView\\\";N;s:8:\\\"viewData\\\";a:0:{}s:11:\\\"attachments\\\";a:0:{}s:14:\\\"rawAttachments\\\";a:0:{}s:15:\\\"diskAttachments\\\";a:0:{}s:9:\\\"callbacks\\\";a:0:{}s:10:\\\"connection\\\";N;s:5:\\\"queue\\\";N;s:15:\\\"chainConnection\\\";N;s:10:\\\"chainQueue\\\";N;s:5:\\\"delay\\\";N;s:7:\\\"chained\\\";a:0:{}}s:5:\\\"tries\\\";N;s:7:\\\"timeout\\\";N;}\"}}','Illuminate\\Queue\\MaxAttemptsExceededException: App\\Mail\\LandingEmail has been attempted too many times or run too long. The job may have previously timed out. in /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Queue/Worker.php:405\nStack trace:\n#0 /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(321): Illuminate\\Queue\\Worker->markJobAsFailedIfAlreadyExceedsMaxAttempts(\'database\', Object(App\\Queue\\DatabaseJob), 3)\n#1 /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(277): Illuminate\\Queue\\Worker->process(\'database\', Object(App\\Queue\\DatabaseJob), Object(Illuminate\\Queue\\WorkerOptions))\n#2 /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(118): Illuminate\\Queue\\Worker->runJob(Object(App\\Queue\\DatabaseJob), \'database\', Object(Illuminate\\Queue\\WorkerOptions))\n#3 /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(102): Illuminate\\Queue\\Worker->daemon(\'database\', \'default\', Object(Illuminate\\Queue\\WorkerOptions))\n#4 /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(86): Illuminate\\Queue\\Console\\WorkCommand->runWorker(\'database\', \'default\')\n#5 [internal function]: Illuminate\\Queue\\Console\\WorkCommand->handle()\n#6 /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(32): call_user_func_array(Array, Array)\n#7 /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(90): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#8 /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(34): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#9 /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Container/Container.php(576): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#10 /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Console/Command.php(183): Illuminate\\Container\\Container->call(Array)\n#11 /home/forge/taxes.com.ar/vendor/symfony/console/Command/Command.php(255): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#12 /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Console/Command.php(170): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#13 /home/forge/taxes.com.ar/vendor/symfony/console/Application.php(921): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#14 /home/forge/taxes.com.ar/vendor/symfony/console/Application.php(273): Symfony\\Component\\Console\\Application->doRunCommand(Object(Illuminate\\Queue\\Console\\WorkCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#15 /home/forge/taxes.com.ar/vendor/symfony/console/Application.php(149): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#16 /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Console/Application.php(90): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#17 /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(133): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#18 /home/forge/taxes.com.ar/artisan(35): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#19 {main}','2020-05-19 08:39:25',NULL);
INSERT INTO `failed_jobs` VALUES (2,NULL,'database','default','{\"displayName\":\"App\\\\Mail\\\\emailPruebaGratis\",\"job\":\"Illuminate\\\\Queue\\\\CallQueuedHandler@call\",\"maxTries\":null,\"delay\":null,\"timeout\":null,\"timeoutAt\":null,\"data\":{\"commandName\":\"Illuminate\\\\Mail\\\\SendQueuedMailable\",\"command\":\"O:34:\\\"Illuminate\\\\Mail\\\\SendQueuedMailable\\\":3:{s:8:\\\"mailable\\\";O:26:\\\"App\\\\Mail\\\\emailPruebaGratis\\\":23:{s:4:\\\"data\\\";a:0:{}s:6:\\\"locale\\\";N;s:4:\\\"from\\\";a:0:{}s:2:\\\"to\\\";a:1:{i:0;a:2:{s:4:\\\"name\\\";N;s:7:\\\"address\\\";s:19:\\\"hernan@taxes.com.ar\\\";}}s:2:\\\"cc\\\";a:0:{}s:3:\\\"bcc\\\";a:0:{}s:7:\\\"replyTo\\\";a:0:{}s:7:\\\"subject\\\";N;s:11:\\\"\\u0000*\\u0000markdown\\\";N;s:7:\\\"\\u0000*\\u0000html\\\";N;s:4:\\\"view\\\";N;s:8:\\\"textView\\\";N;s:8:\\\"viewData\\\";a:0:{}s:11:\\\"attachments\\\";a:0:{}s:14:\\\"rawAttachments\\\";a:0:{}s:15:\\\"diskAttachments\\\";a:0:{}s:9:\\\"callbacks\\\";a:0:{}s:10:\\\"connection\\\";N;s:5:\\\"queue\\\";N;s:15:\\\"chainConnection\\\";N;s:10:\\\"chainQueue\\\";N;s:5:\\\"delay\\\";N;s:7:\\\"chained\\\";a:0:{}}s:5:\\\"tries\\\";N;s:7:\\\"timeout\\\";N;}\"}}','Illuminate\\Queue\\MaxAttemptsExceededException: App\\Mail\\emailPruebaGratis has been attempted too many times or run too long. The job may have previously timed out. in /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Queue/Worker.php:405\nStack trace:\n#0 /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(321): Illuminate\\Queue\\Worker->markJobAsFailedIfAlreadyExceedsMaxAttempts(\'database\', Object(App\\Queue\\DatabaseJob), 3)\n#1 /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(277): Illuminate\\Queue\\Worker->process(\'database\', Object(App\\Queue\\DatabaseJob), Object(Illuminate\\Queue\\WorkerOptions))\n#2 /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(118): Illuminate\\Queue\\Worker->runJob(Object(App\\Queue\\DatabaseJob), \'database\', Object(Illuminate\\Queue\\WorkerOptions))\n#3 /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(102): Illuminate\\Queue\\Worker->daemon(\'database\', \'default\', Object(Illuminate\\Queue\\WorkerOptions))\n#4 /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(86): Illuminate\\Queue\\Console\\WorkCommand->runWorker(\'database\', \'default\')\n#5 [internal function]: Illuminate\\Queue\\Console\\WorkCommand->handle()\n#6 /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(32): call_user_func_array(Array, Array)\n#7 /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(90): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#8 /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(34): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#9 /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Container/Container.php(576): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#10 /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Console/Command.php(183): Illuminate\\Container\\Container->call(Array)\n#11 /home/forge/taxes.com.ar/vendor/symfony/console/Command/Command.php(255): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#12 /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Console/Command.php(170): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#13 /home/forge/taxes.com.ar/vendor/symfony/console/Application.php(921): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#14 /home/forge/taxes.com.ar/vendor/symfony/console/Application.php(273): Symfony\\Component\\Console\\Application->doRunCommand(Object(Illuminate\\Queue\\Console\\WorkCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#15 /home/forge/taxes.com.ar/vendor/symfony/console/Application.php(149): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#16 /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Console/Application.php(90): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#17 /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(133): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#18 /home/forge/taxes.com.ar/artisan(35): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#19 {main}','2020-05-24 07:12:45',NULL);
INSERT INTO `failed_jobs` VALUES (3,NULL,'database','default','{\"displayName\":\"App\\\\Mail\\\\LandingEmail\",\"job\":\"Illuminate\\\\Queue\\\\CallQueuedHandler@call\",\"maxTries\":null,\"delay\":null,\"timeout\":null,\"timeoutAt\":null,\"data\":{\"commandName\":\"Illuminate\\\\Mail\\\\SendQueuedMailable\",\"command\":\"O:34:\\\"Illuminate\\\\Mail\\\\SendQueuedMailable\\\":3:{s:8:\\\"mailable\\\";O:21:\\\"App\\\\Mail\\\\LandingEmail\\\":23:{s:7:\\\"request\\\";a:0:{}s:6:\\\"locale\\\";N;s:4:\\\"from\\\";a:0:{}s:2:\\\"to\\\";a:1:{i:0;a:2:{s:4:\\\"name\\\";N;s:7:\\\"address\\\";s:19:\\\"hernan@taxes.com.ar\\\";}}s:2:\\\"cc\\\";a:0:{}s:3:\\\"bcc\\\";a:0:{}s:7:\\\"replyTo\\\";a:0:{}s:7:\\\"subject\\\";N;s:11:\\\"\\u0000*\\u0000markdown\\\";N;s:7:\\\"\\u0000*\\u0000html\\\";N;s:4:\\\"view\\\";N;s:8:\\\"textView\\\";N;s:8:\\\"viewData\\\";a:0:{}s:11:\\\"attachments\\\";a:0:{}s:14:\\\"rawAttachments\\\";a:0:{}s:15:\\\"diskAttachments\\\";a:0:{}s:9:\\\"callbacks\\\";a:0:{}s:10:\\\"connection\\\";N;s:5:\\\"queue\\\";N;s:15:\\\"chainConnection\\\";N;s:10:\\\"chainQueue\\\";N;s:5:\\\"delay\\\";N;s:7:\\\"chained\\\";a:0:{}}s:5:\\\"tries\\\";N;s:7:\\\"timeout\\\";N;}\"}}','Illuminate\\Queue\\MaxAttemptsExceededException: App\\Mail\\LandingEmail has been attempted too many times or run too long. The job may have previously timed out. in /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Queue/Worker.php:405\nStack trace:\n#0 /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(321): Illuminate\\Queue\\Worker->markJobAsFailedIfAlreadyExceedsMaxAttempts(\'database\', Object(App\\Queue\\DatabaseJob), 3)\n#1 /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(277): Illuminate\\Queue\\Worker->process(\'database\', Object(App\\Queue\\DatabaseJob), Object(Illuminate\\Queue\\WorkerOptions))\n#2 /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(118): Illuminate\\Queue\\Worker->runJob(Object(App\\Queue\\DatabaseJob), \'database\', Object(Illuminate\\Queue\\WorkerOptions))\n#3 /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(102): Illuminate\\Queue\\Worker->daemon(\'database\', \'default\', Object(Illuminate\\Queue\\WorkerOptions))\n#4 /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(86): Illuminate\\Queue\\Console\\WorkCommand->runWorker(\'database\', \'default\')\n#5 [internal function]: Illuminate\\Queue\\Console\\WorkCommand->handle()\n#6 /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(32): call_user_func_array(Array, Array)\n#7 /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(90): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#8 /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(34): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#9 /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Container/Container.php(576): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#10 /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Console/Command.php(183): Illuminate\\Container\\Container->call(Array)\n#11 /home/forge/taxes.com.ar/vendor/symfony/console/Command/Command.php(255): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#12 /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Console/Command.php(170): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#13 /home/forge/taxes.com.ar/vendor/symfony/console/Application.php(921): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#14 /home/forge/taxes.com.ar/vendor/symfony/console/Application.php(273): Symfony\\Component\\Console\\Application->doRunCommand(Object(Illuminate\\Queue\\Console\\WorkCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#15 /home/forge/taxes.com.ar/vendor/symfony/console/Application.php(149): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#16 /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Console/Application.php(90): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#17 /home/forge/taxes.com.ar/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(133): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#18 /home/forge/taxes.com.ar/artisan(35): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#19 {main}','2020-05-26 15:45:55',NULL);

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

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

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


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

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

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


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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

INSERT INTO `ganan_ddjj_detail_anticipos` VALUES (1,146,1,40719,1,0.00,'2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(2,146,1,40719,2,0.00,'2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(3,146,1,40719,3,0.00,'2021-07-22 17:43:39','2021-07-22 17:43:39',NULL);

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

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

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

INSERT INTO `ganan_ddjj_detail_deducciones` VALUES (1,146,1,40719,86,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(2,146,1,40719,87,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(3,146,1,40719,88,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(4,146,1,40719,89,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(5,146,1,40719,90,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(6,146,1,40719,91,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(7,146,1,40719,92,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(8,146,1,40719,93,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(9,146,1,40719,94,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(10,146,1,40719,95,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(11,146,1,40719,96,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(12,146,1,40719,97,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(13,146,1,40719,98,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(14,146,1,40719,99,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(15,146,1,40719,100,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(16,146,1,40719,101,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(17,146,1,40719,102,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(18,146,1,40719,103,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(19,146,1,40719,104,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(20,146,1,40719,105,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(21,146,1,40719,106,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(22,146,1,40719,107,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(23,146,1,40719,108,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(24,146,1,40719,109,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL);

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

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

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

INSERT INTO `ganan_ddjj_detail_ing_egr` VALUES (1,146,1,40719,2,1,1,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(2,146,1,40719,2,2,1,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(3,146,1,40719,2,3,1,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(4,146,1,40719,2,4,1,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(5,146,1,40719,2,1,2,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(6,146,1,40719,2,2,2,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(7,146,1,40719,2,3,2,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(8,146,1,40719,2,4,2,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(9,146,1,40719,3,1,1,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(10,146,1,40719,3,2,1,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(11,146,1,40719,3,3,1,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(12,146,1,40719,3,4,1,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(13,146,1,40719,3,1,2,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(14,146,1,40719,3,2,2,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(15,146,1,40719,3,3,2,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL),(16,146,1,40719,3,4,2,0.00,'','2021-07-22 17:43:39','2021-07-22 17:43:39',NULL);

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

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

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

INSERT INTO `ganan_ddjjs` VALUES (1,146,2020,40719,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,NULL,'2021-07-22 17:43:39','2021-07-22 17:43:39',NULL);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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


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

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

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


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

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

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

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

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

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

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


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

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

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


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

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

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


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

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

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


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

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

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


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

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

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


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

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

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


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

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

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


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

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

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


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

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

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


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

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

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


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

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

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


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

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

--
