
--
-- 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 `forma_de_entrega`
--

CREATE TABLE `forma_de_entrega` (
  `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,
  `detalle` longtext COLLATE utf8mb4_unicode_ci,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `forma_de_entrega_person_id_foreign` (`person_id`),
  CONSTRAINT `forma_de_entrega_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `forma_de_entrega`
--


--
-- 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=91 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:27','2019-11-15 13:24:27',NULL),(2,2017,20000.00,40000.00,1000.00,0.09,20000.00,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(3,2017,40000.00,60000.00,2800.00,0.12,40000.00,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(4,2017,60000.00,80000.00,5200.00,0.15,60000.00,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(5,2017,80000.00,120000.00,8200.00,0.19,80000.00,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(6,2017,120000.00,160000.00,15800.00,0.23,120000.00,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(7,2017,160000.00,240000.00,25000.00,0.27,160000.00,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(8,2017,240000.00,320000.00,46600.00,0.31,240000.00,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(9,2017,320000.00,999999999.99,71400.00,0.35,320000.00,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(10,2018,0.00,25754.00,0.00,0.05,0.00,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(11,2018,25754.00,51508.00,1287.70,0.09,25754.00,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(12,2018,51508.00,77262.00,3605.56,0.12,51508.00,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(13,2018,77262.00,103016.00,6696.04,0.15,77262.00,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(14,2018,103016.00,154524.00,10559.14,0.19,103016.00,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(15,2018,154524.00,206032.00,20345.66,0.23,154524.00,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(16,2018,206032.00,309048.00,32192.50,0.27,206032.00,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(17,2018,309048.00,412064.00,60006.82,0.31,309048.00,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(18,2018,412064.00,999999999.99,91941.78,0.35,412064.00,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(19,2019,0.00,33039.81,0.00,0.05,0.00,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(20,2019,33039.81,66079.61,1651.99,0.09,33039.81,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(21,2019,66079.61,99119.42,4625.57,0.12,66079.61,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(22,2019,99119.42,132159.23,8590.35,0.15,99119.42,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(23,2019,132159.23,198238.84,13546.32,0.19,132159.23,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(24,2019,198238.84,264318.45,26101.45,0.23,198238.84,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(25,2019,264318.45,396477.68,41299.76,0.27,264318.45,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(26,2019,396477.68,528636.91,76982.75,0.31,396477.68,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(27,2019,528636.91,999999999.99,117952.11,0.35,528636.91,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(28,2016,0.00,10000.00,0.00,0.09,0.00,'2020-01-28 13:48:34','2020-02-27 02:59:44',NULL),(29,2016,10000.00,20000.00,900.00,0.14,10000.00,'2020-01-28 13:48:34','2020-02-27 02:59:44',NULL),(30,2016,20000.00,30000.00,2300.00,0.19,20000.00,'2020-01-28 13:48:34','2020-02-27 02:59:44',NULL),(31,2016,30000.00,60000.00,4200.00,0.23,30000.00,'2020-01-28 13:48:34','2020-02-27 02:59:44',NULL),(32,2016,60000.00,90000.00,11100.00,0.27,60000.00,'2020-01-28 13:48:34','2020-02-27 02:59:44',NULL),(33,2016,90000.00,120000.00,19200.00,0.31,90000.00,'2020-01-28 13:48:34','2020-02-27 02:59:44',NULL),(34,2016,120000.00,999999999.00,28500.00,0.35,120000.00,'2020-01-28 13:48:34','2020-02-27 02:59:44',NULL),(37,2020,0.00,47669.16,0.00,0.05,0.00,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(38,2020,47669.16,95338.32,2383.46,0.09,47669.16,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(39,2020,95338.32,143007.48,6673.68,0.12,95338.32,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(40,2020,143007.48,190676.65,12393.98,0.15,143007.48,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(41,2020,190676.65,286014.96,19544.36,0.19,190676.65,'2020-01-28 14:17:39','2022-07-28 13:01:18',NULL),(42,2020,286014.96,381353.28,37658.64,0.23,286014.96,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL);
INSERT INTO `ganan_art_90` VALUES (43,2020,381353.28,572029.92,59586.45,0.27,381353.28,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(44,2020,572029.92,762706.57,111069.14,0.31,572029.92,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(45,2020,762706.57,999999999.99,170178.90,0.35,762706.57,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(46,2021,0.00,64532.64,0.00,0.05,0.00,'2022-07-28 13:01:19','2022-07-28 13:01:19',NULL),(47,2021,64532.64,129065.29,3226.63,0.09,64532.64,'2022-07-28 13:01:19','2022-07-28 13:01:19',NULL),(48,2021,129065.29,193597.93,9034.57,0.12,129065.29,'2022-07-28 13:01:19','2022-07-28 13:01:19',NULL),(49,2021,193597.93,258130.58,16778.49,0.15,193597.93,'2022-07-28 13:01:19','2022-07-28 13:01:19',NULL),(50,2021,258130.58,387195.86,26458.39,0.19,258130.58,'2022-07-28 13:01:19','2022-07-28 13:01:19',NULL),(51,2021,387195.86,516261.14,50980.79,0.23,387195.86,'2022-07-28 13:01:19','2022-07-28 13:01:26',NULL),(52,2021,516261.14,774391.71,80665.80,0.27,516261.14,'2022-07-28 13:01:19','2022-07-28 13:01:19',NULL),(53,2021,774391.71,1032522.30,150361.06,0.31,774391.71,'2022-07-28 13:01:19','2022-07-28 13:01:19',NULL),(54,2021,1032522.30,999999999.99,230381.54,0.35,1032522.30,'2022-07-28 13:01:19','2022-07-28 13:01:19',NULL),(55,2022,0.00,97201.99,0.00,0.05,0.00,'2022-07-28 13:01:22','2022-07-28 13:01:23',NULL),(56,2022,97201.99,194404.01,4860.10,0.09,97201.99,'2022-07-28 13:01:22','2022-07-28 13:01:22',NULL),(57,2022,194404.01,291606.01,13608.29,0.12,194404.01,'2022-07-28 13:01:22','2022-07-28 13:01:22',NULL),(58,2022,291606.01,388808.02,25272.52,0.15,291606.01,'2022-07-28 13:01:22','2022-07-28 13:01:22',NULL),(59,2022,388808.02,583212.02,39852.82,0.19,388808.02,'2022-07-28 13:01:22','2022-07-28 13:01:22',NULL),(60,2022,583212.02,777616.02,76789.59,0.23,583212.02,'2022-07-28 13:01:22','2022-07-28 13:01:22',NULL),(61,2022,777616.02,1166424.03,121502.49,0.27,777616.02,'2022-07-28 13:01:22','2022-07-28 13:01:22',NULL),(62,2022,1166424.03,1555232.07,226480.67,0.31,1166424.03,'2022-07-28 13:01:22','2022-07-28 13:01:22',NULL),(63,2022,1555232.07,999999999.99,347011.15,0.35,1555232.07,'2022-07-28 13:01:22','2023-06-27 10:58:59',NULL),(64,2023,0.00,1400000.00,0.00,0.00,0.00,'2022-12-28 17:54:51','2023-09-25 22:13:06',NULL),(65,2023,1400000.00,1526000.00,0.00,0.09,1400000.00,'2022-12-28 17:54:51','2023-09-25 22:13:06',NULL),(66,2023,1526000.00,1648080.00,11340.00,0.12,1526000.00,'2022-12-28 17:54:51','2023-09-25 22:13:06',NULL),(67,2023,1648080.00,1763445.60,25989.60,0.15,1648080.00,'2022-12-28 17:54:51','2023-09-25 22:13:06',NULL),(68,2023,1763445.60,1869252.34,43294.44,0.19,1763445.60,'2022-12-28 17:54:51','2023-09-25 22:13:06',NULL),(69,2023,1869252.34,1962714.95,63397.72,0.23,1869252.34,'2022-12-28 17:54:51','2023-09-25 22:13:06',NULL),(70,2023,1962714.95,2041223.55,84894.12,0.27,1962714.95,'2022-12-28 17:54:51','2023-09-25 22:13:06',NULL),(71,2023,2041223.55,2102460.26,106091.44,0.31,2041223.55,'2022-12-28 17:54:51','2023-09-25 22:13:06',NULL),(72,2023,2102460.26,999999999.00,125074.82,0.35,2102460.26,'2022-12-28 17:54:51','2023-09-25 22:13:06',NULL),(73,2024,0.00,1360200.00,0.00,0.05,0.00,NULL,NULL,NULL),(74,2024,1360200.00,2720400.00,68010.00,0.09,1360200.00,NULL,NULL,NULL),(75,2024,2720400.00,4080600.00,190428.00,0.12,2720400.00,NULL,NULL,NULL),(76,2024,4080600.00,6120900.00,353652.00,0.15,4080600.00,NULL,NULL,NULL),(77,2024,6120900.00,12241800.00,659697.00,0.19,6120900.00,NULL,NULL,NULL),(78,2024,12241800.00,18362700.00,1822668.00,0.23,12241800.00,NULL,NULL,NULL),(79,2024,18362700.00,27544050.00,3230475.00,0.27,18362700.00,NULL,NULL,NULL),(80,2024,27544050.00,41316075.00,5709439.50,0.31,27544050.00,NULL,NULL,NULL),(81,2024,41316075.00,9999999999.00,9978767.25,0.35,41316075.00,NULL,NULL,NULL),(82,2025,0.00,1520371.67,0.00,0.05,0.00,NULL,NULL,NULL),(83,2025,1520371.67,3040743.34,76018.58,0.09,1520371.67,NULL,NULL,NULL),(84,2025,3040743.34,4561115.01,212852.03,0.12,3040743.34,NULL,NULL,NULL);
INSERT INTO `ganan_art_90` VALUES (85,2025,4561115.01,6841672.52,395296.63,0.15,4561115.01,NULL,NULL,NULL),(86,2025,6841672.52,13683345.04,737380.26,0.19,6841672.52,NULL,NULL,NULL),(87,2025,13683345.04,20525017.56,2037298.04,0.23,13683345.04,NULL,NULL,NULL),(88,2025,20525017.56,30787526.34,3610882.72,0.27,20525017.56,NULL,NULL,NULL),(89,2025,30787526.34,46181289.52,6381760.09,0.31,30787526.34,NULL,NULL,NULL),(90,2025,46181289.52,999999999999.00,11153826.67,0.35,46181289.52,NULL,NULL,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:28','2019-11-15 13:24:28',NULL),(2,'Segunda',1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(3,'Tercera',1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(4,'Cuarta',1,'2019-11-15 13:24:28','2019-11-15 13:24:28',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:27','2019-11-15 13:24:27',NULL),(2,NULL,'Retenciones y Percepciones',1,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(3,NULL,'Saldo a Favor Anterior',1,'2019-11-15 13:24:27','2019-11-15 13:24:27',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=91 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `ganan_ddjj_detail_anticipos` VALUES (4,7468,2,40747,1,0.00,'2023-06-23 09:13:51','2023-06-23 09:13:51',NULL),(5,7468,2,40747,2,149374.60,'2023-06-23 09:13:51','2023-06-23 09:13:51',NULL),(6,7468,2,40747,3,17000.00,'2023-06-23 09:13:51','2023-06-23 09:13:51',NULL),(7,7468,3,40752,1,0.00,'2023-06-23 05:54:04','2023-06-23 05:54:04',NULL),(8,7468,3,40752,2,6979.33,'2023-06-23 05:54:04','2023-06-23 05:54:04',NULL),(9,7468,3,40752,3,0.00,'2023-06-23 05:54:04','2023-06-23 05:54:04',NULL),(10,7468,4,40729,1,0.00,'2023-06-27 05:04:20','2023-06-27 05:04:20',NULL),(11,7468,4,40729,2,0.00,'2023-06-27 05:04:20','2023-06-27 05:04:20',NULL),(12,7468,4,40729,3,0.00,'2023-06-27 05:04:20','2023-06-27 05:04:20',NULL),(13,7468,5,40762,1,0.00,'2023-07-15 01:17:40','2023-07-15 01:17:40',NULL),(14,7468,5,40762,2,0.00,'2023-07-15 01:17:40','2023-07-15 01:17:40',NULL),(15,7468,5,40762,3,0.00,'2023-07-15 01:17:40','2023-07-15 01:17:40',NULL),(16,7468,6,42568,1,0.00,'2023-07-26 00:40:07','2023-07-26 00:40:07',NULL),(17,7468,6,42568,2,60460.91,'2023-07-26 00:40:07','2023-07-26 00:40:07',NULL),(18,7468,6,42568,3,0.00,'2023-07-26 00:40:07','2023-07-26 00:40:07',NULL),(19,7468,7,42666,1,0.00,'2023-07-31 15:40:51','2023-07-31 15:40:51',NULL),(20,7468,7,42666,2,0.00,'2023-07-31 15:40:51','2023-07-31 15:40:51',NULL),(21,7468,7,42666,3,0.00,'2023-07-31 15:40:51','2023-07-31 15:40:51',NULL),(22,7468,8,41530,1,0.00,'2023-08-24 20:02:07','2023-08-24 20:02:07',NULL),(23,7468,8,41530,2,0.00,'2023-08-24 20:02:07','2023-08-24 20:02:07',NULL),(24,7468,8,41530,3,0.00,'2023-08-24 20:02:07','2023-08-24 20:02:07',NULL),(25,7468,9,40729,1,0.00,'2024-04-04 09:45:43','2024-04-04 09:45:43',NULL),(26,7468,9,40729,2,1501.00,'2024-04-04 09:45:43','2024-04-04 09:45:43',NULL),(27,7468,9,40729,3,0.00,'2024-04-04 09:45:43','2024-04-04 09:45:43',NULL),(28,7468,10,40987,1,0.00,'2024-09-17 04:41:24','2024-09-17 04:41:24',NULL),(29,7468,10,40987,2,0.00,'2024-09-17 04:41:24','2024-09-17 04:41:24',NULL),(30,7468,10,40987,3,0.00,'2024-09-17 04:41:24','2024-09-17 04:41:24',NULL),(31,7468,11,41544,1,0.00,'2024-09-17 13:40:39','2024-09-17 13:40:39',NULL),(32,7468,11,41544,2,122000.00,'2024-09-17 13:40:39','2024-09-17 13:40:39',NULL),(33,7468,11,41544,3,0.00,'2024-09-17 13:40:39','2024-09-17 13:40:39',NULL),(34,7468,12,40762,1,0.00,'2024-09-18 10:28:55','2024-09-18 10:28:55',NULL),(35,7468,12,40762,2,227441.11,'2024-09-18 10:28:55','2024-09-18 10:28:55',NULL),(36,7468,12,40762,3,0.00,'2024-09-18 10:28:55','2024-09-18 10:28:55',NULL),(37,7468,13,40760,1,0.00,'2024-09-18 05:43:48','2024-09-18 05:43:48',NULL),(38,7468,13,40760,2,0.00,'2024-09-18 05:43:48','2024-09-18 05:43:48',NULL),(39,7468,13,40760,3,0.00,'2024-09-18 05:43:48','2024-09-18 05:43:48',NULL),(40,7468,14,40752,1,0.00,'2024-09-19 01:45:38','2024-09-19 01:45:38',NULL),(41,7468,14,40752,2,0.00,'2024-09-19 01:45:38','2024-09-19 01:45:38',NULL),(42,7468,14,40752,3,0.00,'2024-09-19 01:45:38','2024-09-19 01:45:38',NULL),(43,7468,15,42666,1,0.00,'2024-09-21 17:28:56','2024-09-21 17:28:56',NULL),(44,7468,15,42666,2,0.00,'2024-09-21 17:28:56','2024-09-21 17:28:56',NULL),(45,7468,15,42666,3,0.00,'2024-09-21 17:28:56','2024-09-21 17:28:56',NULL),(46,7468,16,42568,1,0.00,'2024-09-23 19:25:51','2024-09-23 19:25:51',NULL),(47,7468,16,42568,2,0.00,'2024-09-23 19:25:51','2024-09-23 19:25:51',NULL),(48,7468,16,42568,3,0.00,'2024-09-23 19:25:51','2024-09-23 19:25:51',NULL),(49,7468,17,40747,1,0.00,'2024-09-28 00:09:14','2024-09-28 00:09:14',NULL),(50,7468,17,40747,2,80349.34,'2024-09-28 00:09:14','2024-09-28 00:09:14',NULL),(51,7468,17,40747,3,0.00,'2024-09-28 00:09:14','2024-09-28 00:09:14',NULL),(52,7468,18,41530,1,0.00,'2024-10-11 01:28:10','2024-10-11 01:28:10',NULL),(53,7468,18,41530,2,0.00,'2024-10-11 01:28:10','2024-10-11 01:28:10',NULL),(54,7468,18,41530,3,0.00,'2024-10-11 01:28:10','2024-10-11 01:28:10',NULL),(55,7468,19,40747,1,0.00,'2025-06-20 19:39:51','2025-06-20 19:39:51',NULL),(56,7468,19,40747,2,1038368.98,'2025-06-20 19:39:51','2025-06-20 19:39:51',NULL);
INSERT INTO `ganan_ddjj_detail_anticipos` VALUES (57,7468,19,40747,3,0.00,'2025-06-20 19:39:51','2025-06-20 19:39:51',NULL),(58,7468,20,41530,1,0.00,'2025-06-20 19:51:29','2025-06-20 19:51:29',NULL),(59,7468,20,41530,2,851261.00,'2025-06-20 19:51:29','2025-06-20 19:51:29',NULL),(60,7468,20,41530,3,0.00,'2025-06-20 19:51:29','2025-06-20 19:51:29',NULL),(61,7468,21,42568,1,0.00,'2025-06-21 23:00:42','2025-06-21 23:00:42',NULL),(62,7468,21,42568,2,735140.07,'2025-06-21 23:00:42','2025-06-21 23:00:42',NULL),(63,7468,21,42568,3,0.00,'2025-06-21 23:00:42','2025-06-21 23:00:42',NULL),(64,7468,22,41544,1,0.00,'2025-06-21 06:45:40','2025-06-21 06:45:40',NULL),(65,7468,22,41544,2,630441.38,'2025-06-21 06:45:40','2025-06-21 06:45:40',NULL),(66,7468,22,41544,3,0.00,'2025-06-21 06:45:40','2025-06-21 06:45:40',NULL),(67,7468,23,42666,1,0.00,'2025-06-21 08:12:16','2025-06-21 08:12:16',NULL),(68,7468,23,42666,2,0.00,'2025-06-21 08:12:16','2025-06-21 08:12:16',NULL),(69,7468,23,42666,3,0.00,'2025-06-21 08:12:16','2025-06-21 08:12:16',NULL),(70,7468,24,42879,1,0.00,'2025-06-21 11:30:38','2025-06-21 11:30:38',NULL),(71,7468,24,42879,2,668551.53,'2025-06-21 11:30:38','2025-06-21 11:30:38',NULL),(72,7468,24,42879,3,0.00,'2025-06-21 11:30:38','2025-06-21 11:30:38',NULL),(73,7468,25,40762,1,0.00,'2025-06-22 04:47:04','2025-06-22 04:47:04',NULL),(74,7468,25,40762,2,0.00,'2025-06-22 04:47:04','2025-06-22 04:47:04',NULL),(75,7468,25,40762,3,0.00,'2025-06-22 04:47:04','2025-06-22 04:47:04',NULL),(76,7468,26,44147,1,0.00,'2025-06-25 21:36:09','2025-06-25 21:36:09',NULL),(77,7468,26,44147,2,0.00,'2025-06-25 21:36:09','2025-06-25 21:36:09',NULL),(78,7468,26,44147,3,0.00,'2025-06-25 21:36:09','2025-06-25 21:36:09',NULL),(79,7468,27,40987,1,0.00,'2025-06-26 06:17:20','2025-06-26 06:17:20',NULL),(80,7468,27,40987,2,0.00,'2025-06-26 06:17:20','2025-06-26 06:17:20',NULL),(81,7468,27,40987,3,0.00,'2025-06-26 06:17:20','2025-06-26 06:17:20',NULL),(82,7468,28,40752,1,160352.46,'2025-06-26 11:22:59','2025-06-26 11:22:59',NULL),(83,7468,28,40752,2,0.00,'2025-06-26 11:22:59','2025-06-26 11:22:59',NULL),(84,7468,28,40752,3,0.00,'2025-06-26 11:22:59','2025-06-26 11:22:59',NULL),(85,7468,29,40729,1,0.00,'2025-06-27 01:11:34','2025-06-27 01:11:34',NULL),(86,7468,29,40729,2,2784.63,'2025-06-27 01:11:34','2025-06-27 01:11:34',NULL),(87,7468,29,40729,3,0.00,'2025-06-27 01:11:34','2025-06-27 01:11:34',NULL),(88,7468,30,41544,1,4417946.35,'2025-11-02 03:30:33','2025-11-02 03:30:33',NULL),(89,7468,30,41544,2,515166.17,'2025-11-02 03:30:33','2025-11-02 03:30:33',NULL),(90,7468,30,41544,3,0.00,'2025-11-02 03:30:33','2025-11-02 03:30:33',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=709 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

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

INSERT INTO `ganan_ddjj_detail_ing_egr` VALUES (17,7468,2,40747,2,1,1,0.00,NULL,'2023-06-23 09:13:51','2023-06-23 09:13:51',NULL),(18,7468,2,40747,2,2,1,0.00,NULL,'2023-06-23 09:13:51','2023-06-23 09:13:51',NULL),(19,7468,2,40747,2,3,1,21000000.00,'ventas','2023-06-23 09:13:51','2023-06-23 09:13:51',NULL),(20,7468,2,40747,2,4,1,0.00,NULL,'2023-06-23 09:13:51','2023-06-23 09:13:51',NULL),(21,7468,2,40747,2,1,2,0.00,NULL,'2023-06-23 09:13:51','2023-06-23 09:13:51',NULL),(22,7468,2,40747,2,2,2,0.00,NULL,'2023-06-23 09:13:51','2023-06-23 09:13:51',NULL),(23,7468,2,40747,2,3,2,0.00,NULL,'2023-06-23 09:13:51','2023-06-23 09:13:51',NULL),(24,7468,2,40747,2,4,2,0.00,NULL,'2023-06-23 09:13:51','2023-06-23 09:13:51',NULL),(25,7468,2,40747,3,1,1,0.00,NULL,'2023-06-23 09:13:51','2023-06-23 09:13:51',NULL),(26,7468,2,40747,3,2,1,0.00,NULL,'2023-06-23 09:13:51','2023-06-23 09:13:51',NULL),(27,7468,2,40747,3,3,1,11991124.80,NULL,'2023-06-23 09:13:51','2023-06-23 09:13:51',NULL),(28,7468,2,40747,3,4,1,0.00,NULL,'2023-06-23 09:13:51','2023-06-23 09:13:51',NULL),(29,7468,2,40747,3,1,2,0.00,NULL,'2023-06-23 09:13:51','2023-06-23 09:13:51',NULL),(30,7468,2,40747,3,2,2,0.00,NULL,'2023-06-23 09:13:51','2023-06-23 09:13:51',NULL),(31,7468,2,40747,3,3,2,0.00,NULL,'2023-06-23 09:13:51','2023-06-23 09:13:51',NULL),(32,7468,2,40747,3,4,2,0.00,NULL,'2023-06-23 09:13:51','2023-06-23 09:13:51',NULL),(33,7468,3,40752,2,1,1,0.00,NULL,'2023-06-23 05:54:04','2023-06-23 05:54:04',NULL),(34,7468,3,40752,2,2,1,0.00,NULL,'2023-06-23 05:54:04','2023-06-23 05:54:04',NULL),(35,7468,3,40752,2,3,1,5357737.30,NULL,'2023-06-23 05:54:04','2023-06-23 05:54:04',NULL),(36,7468,3,40752,2,4,1,0.00,NULL,'2023-06-23 05:54:04','2023-06-23 05:54:04',NULL),(37,7468,3,40752,2,1,2,0.00,NULL,'2023-06-23 05:54:04','2023-06-23 05:54:04',NULL),(38,7468,3,40752,2,2,2,0.00,NULL,'2023-06-23 05:54:04','2023-06-23 05:54:04',NULL),(39,7468,3,40752,2,3,2,0.00,NULL,'2023-06-23 05:54:04','2023-06-23 05:54:04',NULL),(40,7468,3,40752,2,4,2,0.00,NULL,'2023-06-23 05:54:04','2023-06-23 05:54:04',NULL),(41,7468,3,40752,3,1,1,0.00,NULL,'2023-06-23 05:54:04','2023-06-23 05:54:04',NULL),(42,7468,3,40752,3,2,1,0.00,NULL,'2023-06-23 05:54:04','2023-06-23 05:54:04',NULL),(43,7468,3,40752,3,3,1,3124276.99,NULL,'2023-06-23 05:54:04','2023-06-23 05:54:04',NULL),(44,7468,3,40752,3,4,1,0.00,NULL,'2023-06-23 05:54:04','2023-06-23 05:54:04',NULL),(45,7468,3,40752,3,1,2,0.00,NULL,'2023-06-23 05:54:04','2023-06-23 05:54:04',NULL),(46,7468,3,40752,3,2,2,0.00,NULL,'2023-06-23 05:54:04','2023-06-23 05:54:04',NULL),(47,7468,3,40752,3,3,2,0.00,NULL,'2023-06-23 05:54:04','2023-06-23 05:54:04',NULL),(48,7468,3,40752,3,4,2,0.00,NULL,'2023-06-23 05:54:04','2023-06-23 05:54:04',NULL),(49,7468,4,40729,2,1,1,0.00,NULL,'2023-06-27 05:04:20','2023-06-27 05:04:20',NULL),(50,7468,4,40729,2,2,1,0.00,NULL,'2023-06-27 05:04:20','2023-06-27 05:04:20',NULL),(51,7468,4,40729,2,3,1,4579275.42,NULL,'2023-06-27 05:04:20','2023-06-27 05:04:20',NULL),(52,7468,4,40729,2,4,1,0.00,NULL,'2023-06-27 05:04:20','2023-06-27 05:04:20',NULL),(53,7468,4,40729,2,1,2,0.00,NULL,'2023-06-27 05:04:20','2023-06-27 05:04:20',NULL),(54,7468,4,40729,2,2,2,0.00,NULL,'2023-06-27 05:04:20','2023-06-27 05:04:20',NULL),(55,7468,4,40729,2,3,2,0.00,NULL,'2023-06-27 05:04:20','2023-06-27 05:04:20',NULL),(56,7468,4,40729,2,4,2,0.00,NULL,'2023-06-27 05:04:20','2023-06-27 05:04:20',NULL),(57,7468,4,40729,3,1,1,0.00,NULL,'2023-06-27 05:04:20','2023-06-27 05:04:20',NULL),(58,7468,4,40729,3,2,1,0.00,NULL,'2023-06-27 05:04:20','2023-06-27 05:04:20',NULL),(59,7468,4,40729,3,3,1,3894955.40,NULL,'2023-06-27 05:04:20','2023-06-27 05:04:20',NULL),(60,7468,4,40729,3,4,1,0.00,NULL,'2023-06-27 05:04:20','2023-06-27 05:04:20',NULL),(61,7468,4,40729,3,1,2,0.00,NULL,'2023-06-27 05:04:20','2023-06-27 05:04:20',NULL),(62,7468,4,40729,3,2,2,0.00,NULL,'2023-06-27 05:04:20','2023-06-27 05:04:20',NULL),(63,7468,4,40729,3,3,2,0.00,NULL,'2023-06-27 05:04:20','2023-06-27 05:04:20',NULL);
INSERT INTO `ganan_ddjj_detail_ing_egr` VALUES (64,7468,4,40729,3,4,2,0.00,NULL,'2023-06-27 05:04:20','2023-06-27 05:04:20',NULL),(65,7468,5,40762,2,1,1,0.00,NULL,'2023-07-15 01:17:40','2023-07-15 01:17:40',NULL),(66,7468,5,40762,2,2,1,0.00,NULL,'2023-07-15 01:17:40','2023-07-15 01:17:40',NULL),(67,7468,5,40762,2,3,1,36570130.52,NULL,'2023-07-15 01:17:40','2023-07-15 01:17:40',NULL),(68,7468,5,40762,2,4,1,0.00,NULL,'2023-07-15 01:17:40','2023-07-15 01:17:40',NULL),(69,7468,5,40762,2,1,2,0.00,NULL,'2023-07-15 01:17:40','2023-07-15 01:17:40',NULL),(70,7468,5,40762,2,2,2,0.00,NULL,'2023-07-15 01:17:40','2023-07-15 01:17:40',NULL),(71,7468,5,40762,2,3,2,0.00,NULL,'2023-07-15 01:17:40','2023-07-15 01:17:40',NULL),(72,7468,5,40762,2,4,2,0.00,NULL,'2023-07-15 01:17:40','2023-07-15 01:17:40',NULL),(73,7468,5,40762,3,1,1,0.00,NULL,'2023-07-15 01:17:40','2023-07-15 01:17:40',NULL),(74,7468,5,40762,3,2,1,0.00,NULL,'2023-07-15 01:17:40','2023-07-15 01:17:40',NULL),(75,7468,5,40762,3,3,1,16447722.73,NULL,'2023-07-15 01:17:40','2023-07-15 01:17:40',NULL),(76,7468,5,40762,3,4,1,0.00,NULL,'2023-07-15 01:17:40','2023-07-15 01:17:40',NULL),(77,7468,5,40762,3,1,2,0.00,NULL,'2023-07-15 01:17:40','2023-07-15 01:17:40',NULL),(78,7468,5,40762,3,2,2,0.00,NULL,'2023-07-15 01:17:40','2023-07-15 01:17:40',NULL),(79,7468,5,40762,3,3,2,0.00,NULL,'2023-07-15 01:17:40','2023-07-15 01:17:40',NULL),(80,7468,5,40762,3,4,2,0.00,NULL,'2023-07-15 01:17:40','2023-07-15 01:17:40',NULL),(81,7468,6,42568,2,1,1,0.00,NULL,'2023-07-26 00:40:07','2023-07-26 00:40:07',NULL),(82,7468,6,42568,2,2,1,0.00,NULL,'2023-07-26 00:40:07','2023-07-26 00:40:07',NULL),(83,7468,6,42568,2,3,1,8544585.43,NULL,'2023-07-26 00:40:07','2023-07-26 00:40:07',NULL),(84,7468,6,42568,2,4,1,0.00,NULL,'2023-07-26 00:40:07','2023-07-26 00:40:07',NULL),(85,7468,6,42568,2,1,2,0.00,NULL,'2023-07-26 00:40:07','2023-07-26 00:40:07',NULL),(86,7468,6,42568,2,2,2,0.00,NULL,'2023-07-26 00:40:07','2023-07-26 00:40:07',NULL),(87,7468,6,42568,2,3,2,0.00,NULL,'2023-07-26 00:40:07','2023-07-26 00:40:07',NULL),(88,7468,6,42568,2,4,2,0.00,NULL,'2023-07-26 00:40:07','2023-07-26 00:40:07',NULL),(89,7468,6,42568,3,1,1,0.00,NULL,'2023-07-26 00:40:07','2023-07-26 00:40:07',NULL),(90,7468,6,42568,3,2,1,0.00,NULL,'2023-07-26 00:40:07','2023-07-26 00:40:07',NULL),(91,7468,6,42568,3,3,1,342236.97,NULL,'2023-07-26 00:40:07','2023-07-26 00:40:07',NULL),(92,7468,6,42568,3,4,1,0.00,NULL,'2023-07-26 00:40:07','2023-07-26 00:40:07',NULL),(93,7468,6,42568,3,1,2,0.00,NULL,'2023-07-26 00:40:07','2023-07-26 00:40:07',NULL),(94,7468,6,42568,3,2,2,0.00,NULL,'2023-07-26 00:40:07','2023-07-26 00:40:07',NULL),(95,7468,6,42568,3,3,2,0.00,NULL,'2023-07-26 00:40:07','2023-07-26 00:40:07',NULL),(96,7468,6,42568,3,4,2,0.00,NULL,'2023-07-26 00:40:07','2023-07-26 00:40:07',NULL),(97,7468,7,42666,2,1,1,0.00,'','2023-07-31 15:40:51','2023-07-31 15:40:51',NULL),(98,7468,7,42666,2,2,1,0.00,'','2023-07-31 15:40:51','2023-07-31 15:40:51',NULL),(99,7468,7,42666,2,3,1,0.00,'','2023-07-31 15:40:51','2023-07-31 15:40:51',NULL),(100,7468,7,42666,2,4,1,0.00,'','2023-07-31 15:40:51','2023-07-31 15:40:51',NULL),(101,7468,7,42666,2,1,2,0.00,'','2023-07-31 15:40:51','2023-07-31 15:40:51',NULL),(102,7468,7,42666,2,2,2,0.00,'','2023-07-31 15:40:51','2023-07-31 15:40:51',NULL),(103,7468,7,42666,2,3,2,0.00,'','2023-07-31 15:40:51','2023-07-31 15:40:51',NULL),(104,7468,7,42666,2,4,2,0.00,'','2023-07-31 15:40:51','2023-07-31 15:40:51',NULL),(105,7468,7,42666,3,1,1,0.00,'','2023-07-31 15:40:51','2023-07-31 15:40:51',NULL),(106,7468,7,42666,3,2,1,0.00,'','2023-07-31 15:40:51','2023-07-31 15:40:51',NULL),(107,7468,7,42666,3,3,1,0.00,'','2023-07-31 15:40:51','2023-07-31 15:40:51',NULL),(108,7468,7,42666,3,4,1,0.00,'','2023-07-31 15:40:51','2023-07-31 15:40:51',NULL),(109,7468,7,42666,3,1,2,0.00,'','2023-07-31 15:40:51','2023-07-31 15:40:51',NULL),(110,7468,7,42666,3,2,2,0.00,'','2023-07-31 15:40:51','2023-07-31 15:40:51',NULL),(111,7468,7,42666,3,3,2,0.00,'','2023-07-31 15:40:51','2023-07-31 15:40:51',NULL);
INSERT INTO `ganan_ddjj_detail_ing_egr` VALUES (112,7468,7,42666,3,4,2,0.00,'','2023-07-31 15:40:51','2023-07-31 15:40:51',NULL),(113,7468,8,41530,2,1,1,0.00,NULL,'2023-08-24 20:02:07','2023-08-24 20:02:07',NULL),(114,7468,8,41530,2,2,1,0.00,NULL,'2023-08-24 20:02:07','2023-08-24 20:02:07',NULL),(115,7468,8,41530,2,3,1,35725162.39,NULL,'2023-08-24 20:02:07','2023-08-24 20:02:07',NULL),(116,7468,8,41530,2,4,1,0.00,NULL,'2023-08-24 20:02:07','2023-08-24 20:02:07',NULL),(117,7468,8,41530,2,1,2,0.00,NULL,'2023-08-24 20:02:07','2023-08-24 20:02:07',NULL),(118,7468,8,41530,2,2,2,0.00,NULL,'2023-08-24 20:02:07','2023-08-24 20:02:07',NULL),(119,7468,8,41530,2,3,2,0.00,NULL,'2023-08-24 20:02:07','2023-08-24 20:02:07',NULL),(120,7468,8,41530,2,4,2,0.00,NULL,'2023-08-24 20:02:07','2023-08-24 20:02:07',NULL),(121,7468,8,41530,3,1,1,0.00,NULL,'2023-08-24 20:02:07','2023-08-24 20:02:07',NULL),(122,7468,8,41530,3,2,1,0.00,NULL,'2023-08-24 20:02:07','2023-08-24 20:02:07',NULL),(123,7468,8,41530,3,3,1,18114053.86,NULL,'2023-08-24 20:02:07','2023-08-24 20:02:07',NULL),(124,7468,8,41530,3,4,1,0.00,NULL,'2023-08-24 20:02:07','2023-08-24 20:02:07',NULL),(125,7468,8,41530,3,1,2,0.00,NULL,'2023-08-24 20:02:07','2023-08-24 20:02:07',NULL),(126,7468,8,41530,3,2,2,0.00,NULL,'2023-08-24 20:02:07','2023-08-24 20:02:07',NULL),(127,7468,8,41530,3,3,2,0.00,NULL,'2023-08-24 20:02:07','2023-08-24 20:02:07',NULL),(128,7468,8,41530,3,4,2,0.00,NULL,'2023-08-24 20:02:07','2023-08-24 20:02:07',NULL),(129,7468,9,40729,2,1,1,0.00,NULL,'2024-04-04 09:45:43','2024-04-04 09:45:43',NULL),(130,7468,9,40729,2,2,1,0.00,NULL,'2024-04-04 09:45:43','2024-04-04 09:45:43',NULL),(131,7468,9,40729,2,3,1,14554886.85,NULL,'2024-04-04 09:45:43','2024-04-04 09:45:43',NULL),(132,7468,9,40729,2,4,1,0.00,NULL,'2024-04-04 09:45:43','2024-04-04 09:45:43',NULL),(133,7468,9,40729,2,1,2,0.00,NULL,'2024-04-04 09:45:43','2024-04-04 09:45:43',NULL),(134,7468,9,40729,2,2,2,0.00,NULL,'2024-04-04 09:45:43','2024-04-04 09:45:43',NULL),(135,7468,9,40729,2,3,2,0.00,NULL,'2024-04-04 09:45:43','2024-04-04 09:45:43',NULL),(136,7468,9,40729,2,4,2,0.00,NULL,'2024-04-04 09:45:43','2024-04-04 09:45:43',NULL),(137,7468,9,40729,3,1,1,0.00,NULL,'2024-04-04 09:45:43','2024-04-04 09:45:43',NULL),(138,7468,9,40729,3,2,1,0.00,NULL,'2024-04-04 09:45:43','2024-04-04 09:45:43',NULL),(139,7468,9,40729,3,3,1,9612640.54,NULL,'2024-04-04 09:45:43','2024-04-04 09:45:43',NULL),(140,7468,9,40729,3,4,1,0.00,NULL,'2024-04-04 09:45:43','2024-04-04 09:45:43',NULL),(141,7468,9,40729,3,1,2,0.00,NULL,'2024-04-04 09:45:43','2024-04-04 09:45:43',NULL),(142,7468,9,40729,3,2,2,0.00,NULL,'2024-04-04 09:45:43','2024-04-04 09:45:43',NULL),(143,7468,9,40729,3,3,2,0.00,NULL,'2024-04-04 09:45:43','2024-04-04 09:45:43',NULL),(144,7468,9,40729,3,4,2,0.00,NULL,'2024-04-04 09:45:43','2024-04-04 09:45:43',NULL),(145,7468,10,40987,2,1,1,0.00,NULL,'2024-09-17 04:41:24','2024-09-17 04:41:24',NULL),(146,7468,10,40987,2,2,1,0.00,NULL,'2024-09-17 04:41:24','2024-09-17 04:41:24',NULL),(147,7468,10,40987,2,3,1,2991616.11,NULL,'2024-09-17 04:41:24','2024-09-17 04:41:24',NULL),(148,7468,10,40987,2,4,1,0.00,NULL,'2024-09-17 04:41:24','2024-09-17 04:41:24',NULL),(149,7468,10,40987,2,1,2,0.00,NULL,'2024-09-17 04:41:24','2024-09-17 04:41:24',NULL),(150,7468,10,40987,2,2,2,0.00,NULL,'2024-09-17 04:41:24','2024-09-17 04:41:24',NULL),(151,7468,10,40987,2,3,2,645073.02,NULL,'2024-09-17 04:41:24','2024-09-17 04:41:24',NULL),(152,7468,10,40987,2,4,2,0.00,NULL,'2024-09-17 04:41:24','2024-09-17 04:41:24',NULL),(153,7468,10,40987,3,1,1,0.00,NULL,'2024-09-17 04:41:24','2024-09-17 04:41:24',NULL),(154,7468,10,40987,3,2,1,0.00,NULL,'2024-09-17 04:41:24','2024-09-17 04:41:24',NULL),(155,7468,10,40987,3,3,1,30402747.02,NULL,'2024-09-17 04:41:24','2024-09-17 04:41:24',NULL),(156,7468,10,40987,3,4,1,0.00,NULL,'2024-09-17 04:41:24','2024-09-17 04:41:24',NULL),(157,7468,10,40987,3,1,2,0.00,NULL,'2024-09-17 04:41:24','2024-09-17 04:41:24',NULL);
INSERT INTO `ganan_ddjj_detail_ing_egr` VALUES (158,7468,10,40987,3,2,2,0.00,NULL,'2024-09-17 04:41:24','2024-09-17 04:41:24',NULL),(159,7468,10,40987,3,3,2,0.00,NULL,'2024-09-17 04:41:24','2024-09-17 04:41:24',NULL),(160,7468,10,40987,3,4,2,0.00,NULL,'2024-09-17 04:41:24','2024-09-17 04:41:24',NULL),(161,7468,11,41544,2,1,1,0.00,NULL,'2024-09-17 13:40:39','2024-09-17 13:40:39',NULL),(162,7468,11,41544,2,2,1,0.00,NULL,'2024-09-17 13:40:39','2024-09-17 13:40:39',NULL),(163,7468,11,41544,2,3,1,29016993.79,NULL,'2024-09-17 13:40:39','2024-09-17 13:40:39',NULL),(164,7468,11,41544,2,4,1,0.00,NULL,'2024-09-17 13:40:39','2024-09-17 13:40:39',NULL),(165,7468,11,41544,2,1,2,0.00,NULL,'2024-09-17 13:40:39','2024-09-17 13:40:39',NULL),(166,7468,11,41544,2,2,2,0.00,NULL,'2024-09-17 13:40:39','2024-09-17 13:40:39',NULL),(167,7468,11,41544,2,3,2,0.00,NULL,'2024-09-17 13:40:39','2024-09-17 13:40:39',NULL),(168,7468,11,41544,2,4,2,0.00,NULL,'2024-09-17 13:40:39','2024-09-17 13:40:39',NULL),(169,7468,11,41544,3,1,1,0.00,NULL,'2024-09-17 13:40:39','2024-09-17 13:40:39',NULL),(170,7468,11,41544,3,2,1,0.00,NULL,'2024-09-17 13:40:39','2024-09-17 13:40:39',NULL),(171,7468,11,41544,3,3,1,14891697.89,NULL,'2024-09-17 13:40:39','2024-09-17 13:40:39',NULL),(172,7468,11,41544,3,4,1,0.00,NULL,'2024-09-17 13:40:39','2024-09-17 13:40:39',NULL),(173,7468,11,41544,3,1,2,0.00,NULL,'2024-09-17 13:40:39','2024-09-17 13:40:39',NULL),(174,7468,11,41544,3,2,2,0.00,NULL,'2024-09-17 13:40:39','2024-09-17 13:40:39',NULL),(175,7468,11,41544,3,3,2,0.00,NULL,'2024-09-17 13:40:39','2024-09-17 13:40:39',NULL),(176,7468,11,41544,3,4,2,0.00,NULL,'2024-09-17 13:40:39','2024-09-17 13:40:39',NULL),(177,7468,12,40762,2,1,1,0.00,NULL,'2024-09-18 10:28:55','2024-09-18 10:28:55',NULL),(178,7468,12,40762,2,2,1,0.00,NULL,'2024-09-18 10:28:55','2024-09-18 10:28:55',NULL),(179,7468,12,40762,2,3,1,25103112.05,NULL,'2024-09-18 10:28:55','2024-09-18 10:28:55',NULL),(180,7468,12,40762,2,4,1,0.00,NULL,'2024-09-18 10:28:55','2024-09-18 10:28:55',NULL),(181,7468,12,40762,2,1,2,0.00,NULL,'2024-09-18 10:28:55','2024-09-18 10:28:55',NULL),(182,7468,12,40762,2,2,2,0.00,NULL,'2024-09-18 10:28:55','2024-09-18 10:28:55',NULL),(183,7468,12,40762,2,3,2,0.00,NULL,'2024-09-18 10:28:55','2024-09-18 10:28:55',NULL),(184,7468,12,40762,2,4,2,0.00,NULL,'2024-09-18 10:28:55','2024-09-18 10:28:55',NULL),(185,7468,12,40762,3,1,1,0.00,NULL,'2024-09-18 10:28:55','2024-09-18 10:28:55',NULL),(186,7468,12,40762,3,2,1,0.00,NULL,'2024-09-18 10:28:55','2024-09-18 10:28:55',NULL),(187,7468,12,40762,3,3,1,19856306.81,NULL,'2024-09-18 10:28:55','2024-09-18 10:28:55',NULL),(188,7468,12,40762,3,4,1,0.00,NULL,'2024-09-18 10:28:55','2024-09-18 10:28:55',NULL),(189,7468,12,40762,3,1,2,0.00,NULL,'2024-09-18 10:28:55','2024-09-18 10:28:55',NULL),(190,7468,12,40762,3,2,2,0.00,NULL,'2024-09-18 10:28:55','2024-09-18 10:28:55',NULL),(191,7468,12,40762,3,3,2,0.00,NULL,'2024-09-18 10:28:55','2024-09-18 10:28:55',NULL),(192,7468,12,40762,3,4,2,0.00,NULL,'2024-09-18 10:28:55','2024-09-18 10:28:55',NULL),(193,7468,13,40760,2,1,1,0.00,NULL,'2024-09-18 05:43:47','2024-09-18 05:43:47',NULL),(194,7468,13,40760,2,2,1,0.00,NULL,'2024-09-18 05:43:47','2024-09-18 05:43:47',NULL),(195,7468,13,40760,2,3,1,0.00,NULL,'2024-09-18 05:43:47','2024-09-18 05:43:47',NULL),(196,7468,13,40760,2,4,1,1329867.80,NULL,'2024-09-18 05:43:47','2024-09-18 05:43:47',NULL),(197,7468,13,40760,2,1,2,0.00,NULL,'2024-09-18 05:43:47','2024-09-18 05:43:47',NULL),(198,7468,13,40760,2,2,2,0.00,NULL,'2024-09-18 05:43:47','2024-09-18 05:43:47',NULL),(199,7468,13,40760,2,3,2,0.00,NULL,'2024-09-18 05:43:47','2024-09-18 05:43:47',NULL),(200,7468,13,40760,2,4,2,6191386.03,NULL,'2024-09-18 05:43:47','2024-09-18 05:43:47',NULL),(201,7468,13,40760,3,1,1,0.00,NULL,'2024-09-18 05:43:47','2024-09-18 05:43:47',NULL),(202,7468,13,40760,3,2,1,0.00,NULL,'2024-09-18 05:43:48','2024-09-18 05:43:48',NULL),(203,7468,13,40760,3,3,1,918129.22,NULL,'2024-09-18 05:43:48','2024-09-18 05:43:48',NULL);
INSERT INTO `ganan_ddjj_detail_ing_egr` VALUES (204,7468,13,40760,3,4,1,0.00,NULL,'2024-09-18 05:43:48','2024-09-18 05:43:48',NULL),(205,7468,13,40760,3,1,2,0.00,NULL,'2024-09-18 05:43:48','2024-09-18 05:43:48',NULL),(206,7468,13,40760,3,2,2,0.00,NULL,'2024-09-18 05:43:48','2024-09-18 05:43:48',NULL),(207,7468,13,40760,3,3,2,0.00,NULL,'2024-09-18 05:43:48','2024-09-18 05:43:48',NULL),(208,7468,13,40760,3,4,2,0.00,NULL,'2024-09-18 05:43:48','2024-09-18 05:43:48',NULL),(209,7468,14,40752,2,1,1,0.00,NULL,'2024-09-19 01:45:38','2024-09-19 01:45:38',NULL),(210,7468,14,40752,2,2,1,0.00,NULL,'2024-09-19 01:45:38','2024-09-19 01:45:38',NULL),(211,7468,14,40752,2,3,1,9012929.93,NULL,'2024-09-19 01:45:38','2024-09-19 01:45:38',NULL),(212,7468,14,40752,2,4,1,0.00,NULL,'2024-09-19 01:45:38','2024-09-19 01:45:38',NULL),(213,7468,14,40752,2,1,2,0.00,NULL,'2024-09-19 01:45:38','2024-09-19 01:45:38',NULL),(214,7468,14,40752,2,2,2,0.00,NULL,'2024-09-19 01:45:38','2024-09-19 01:45:38',NULL),(215,7468,14,40752,2,3,2,1571360.16,NULL,'2024-09-19 01:45:38','2024-09-19 01:45:38',NULL),(216,7468,14,40752,2,4,2,0.00,NULL,'2024-09-19 01:45:38','2024-09-19 01:45:38',NULL),(217,7468,14,40752,3,1,1,0.00,NULL,'2024-09-19 01:45:38','2024-09-19 01:45:38',NULL),(218,7468,14,40752,3,2,1,0.00,NULL,'2024-09-19 01:45:38','2024-09-19 01:45:38',NULL),(219,7468,14,40752,3,3,1,4768346.67,NULL,'2024-09-19 01:45:38','2024-09-19 01:45:38',NULL),(220,7468,14,40752,3,4,1,0.00,NULL,'2024-09-19 01:45:38','2024-09-19 01:45:38',NULL),(221,7468,14,40752,3,1,2,0.00,NULL,'2024-09-19 01:45:38','2024-09-19 01:45:38',NULL),(222,7468,14,40752,3,2,2,0.00,NULL,'2024-09-19 01:45:38','2024-09-19 01:45:38',NULL),(223,7468,14,40752,3,3,2,0.00,NULL,'2024-09-19 01:45:38','2024-09-19 01:45:38',NULL),(224,7468,14,40752,3,4,2,0.00,NULL,'2024-09-19 01:45:38','2024-09-19 01:45:38',NULL),(225,7468,15,42666,2,1,1,0.00,NULL,'2024-09-21 17:28:56','2024-09-21 17:28:56',NULL),(226,7468,15,42666,2,2,1,0.00,NULL,'2024-09-21 17:28:56','2024-09-21 17:28:56',NULL),(227,7468,15,42666,2,3,1,33349822.39,NULL,'2024-09-21 17:28:56','2024-09-21 17:28:56',NULL),(228,7468,15,42666,2,4,1,0.00,NULL,'2024-09-21 17:28:56','2024-09-21 17:28:56',NULL),(229,7468,15,42666,2,1,2,0.00,NULL,'2024-09-21 17:28:56','2024-09-21 17:28:56',NULL),(230,7468,15,42666,2,2,2,0.00,NULL,'2024-09-21 17:28:56','2024-09-21 17:28:56',NULL),(231,7468,15,42666,2,3,2,0.00,NULL,'2024-09-21 17:28:56','2024-09-21 17:28:56',NULL),(232,7468,15,42666,2,4,2,0.00,NULL,'2024-09-21 17:28:56','2024-09-21 17:28:56',NULL),(233,7468,15,42666,3,1,1,0.00,NULL,'2024-09-21 17:28:56','2024-09-21 17:28:56',NULL),(234,7468,15,42666,3,2,1,0.00,NULL,'2024-09-21 17:28:56','2024-09-21 17:28:56',NULL),(235,7468,15,42666,3,3,1,17877284.25,NULL,'2024-09-21 17:28:56','2024-09-21 17:28:56',NULL),(236,7468,15,42666,3,4,1,0.00,NULL,'2024-09-21 17:28:56','2024-09-21 17:28:56',NULL),(237,7468,15,42666,3,1,2,0.00,NULL,'2024-09-21 17:28:56','2024-09-21 17:28:56',NULL),(238,7468,15,42666,3,2,2,0.00,NULL,'2024-09-21 17:28:56','2024-09-21 17:28:56',NULL),(239,7468,15,42666,3,3,2,0.00,NULL,'2024-09-21 17:28:56','2024-09-21 17:28:56',NULL),(240,7468,15,42666,3,4,2,0.00,NULL,'2024-09-21 17:28:56','2024-09-21 17:28:56',NULL),(241,7468,16,42568,2,1,1,0.00,'','2024-09-23 19:25:51','2024-09-23 19:25:51',NULL),(242,7468,16,42568,2,2,1,0.00,'','2024-09-23 19:25:51','2024-09-23 19:25:51',NULL),(243,7468,16,42568,2,3,1,0.00,'','2024-09-23 19:25:51','2024-09-23 19:25:51',NULL),(244,7468,16,42568,2,4,1,0.00,'','2024-09-23 19:25:51','2024-09-23 19:25:51',NULL),(245,7468,16,42568,2,1,2,0.00,'','2024-09-23 19:25:51','2024-09-23 19:25:51',NULL),(246,7468,16,42568,2,2,2,0.00,'','2024-09-23 19:25:51','2024-09-23 19:25:51',NULL),(247,7468,16,42568,2,3,2,0.00,'','2024-09-23 19:25:51','2024-09-23 19:25:51',NULL),(248,7468,16,42568,2,4,2,0.00,'','2024-09-23 19:25:51','2024-09-23 19:25:51',NULL),(249,7468,16,42568,3,1,1,0.00,'','2024-09-23 19:25:51','2024-09-23 19:25:51',NULL);
INSERT INTO `ganan_ddjj_detail_ing_egr` VALUES (250,7468,16,42568,3,2,1,0.00,'','2024-09-23 19:25:51','2024-09-23 19:25:51',NULL),(251,7468,16,42568,3,3,1,0.00,'','2024-09-23 19:25:51','2024-09-23 19:25:51',NULL),(252,7468,16,42568,3,4,1,0.00,'','2024-09-23 19:25:51','2024-09-23 19:25:51',NULL),(253,7468,16,42568,3,1,2,0.00,'','2024-09-23 19:25:51','2024-09-23 19:25:51',NULL),(254,7468,16,42568,3,2,2,0.00,'','2024-09-23 19:25:51','2024-09-23 19:25:51',NULL),(255,7468,16,42568,3,3,2,0.00,'','2024-09-23 19:25:51','2024-09-23 19:25:51',NULL),(256,7468,16,42568,3,4,2,0.00,'','2024-09-23 19:25:51','2024-09-23 19:25:51',NULL),(257,7468,17,40747,2,1,1,0.00,NULL,'2024-09-28 00:09:14','2024-09-28 00:09:14',NULL),(258,7468,17,40747,2,2,1,0.00,NULL,'2024-09-28 00:09:14','2024-09-28 00:09:14',NULL),(259,7468,17,40747,2,3,1,81929162.85,NULL,'2024-09-28 00:09:14','2024-09-28 00:09:14',NULL),(260,7468,17,40747,2,4,1,0.00,NULL,'2024-09-28 00:09:14','2024-09-28 00:09:14',NULL),(261,7468,17,40747,2,1,2,0.00,NULL,'2024-09-28 00:09:14','2024-09-28 00:09:14',NULL),(262,7468,17,40747,2,2,2,0.00,NULL,'2024-09-28 00:09:14','2024-09-28 00:09:14',NULL),(263,7468,17,40747,2,3,2,0.00,NULL,'2024-09-28 00:09:14','2024-09-28 00:09:14',NULL),(264,7468,17,40747,2,4,2,0.00,NULL,'2024-09-28 00:09:14','2024-09-28 00:09:14',NULL),(265,7468,17,40747,3,1,1,0.00,NULL,'2024-09-28 00:09:14','2024-09-28 00:09:14',NULL),(266,7468,17,40747,3,2,1,0.00,NULL,'2024-09-28 00:09:14','2024-09-28 00:09:14',NULL),(267,7468,17,40747,3,3,1,44073310.58,NULL,'2024-09-28 00:09:14','2024-09-28 00:09:14',NULL),(268,7468,17,40747,3,4,1,0.00,NULL,'2024-09-28 00:09:14','2024-09-28 00:09:14',NULL),(269,7468,17,40747,3,1,2,0.00,NULL,'2024-09-28 00:09:14','2024-09-28 00:09:14',NULL),(270,7468,17,40747,3,2,2,0.00,NULL,'2024-09-28 00:09:14','2024-09-28 00:09:14',NULL),(271,7468,17,40747,3,3,2,0.00,NULL,'2024-09-28 00:09:14','2024-09-28 00:09:14',NULL),(272,7468,17,40747,3,4,2,0.00,NULL,'2024-09-28 00:09:14','2024-09-28 00:09:14',NULL),(273,7468,18,41530,2,1,1,0.00,NULL,'2024-10-11 01:28:10','2024-10-11 01:28:10',NULL),(274,7468,18,41530,2,2,1,0.00,NULL,'2024-10-11 01:28:10','2024-10-11 01:28:10',NULL),(275,7468,18,41530,2,3,1,16454566.50,NULL,'2024-10-11 01:28:10','2024-10-11 01:28:10',NULL),(276,7468,18,41530,2,4,1,0.00,NULL,'2024-10-11 01:28:10','2024-10-11 01:28:10',NULL),(277,7468,18,41530,2,1,2,0.00,NULL,'2024-10-11 01:28:10','2024-10-11 01:28:10',NULL),(278,7468,18,41530,2,2,2,0.00,NULL,'2024-10-11 01:28:10','2024-10-11 01:28:10',NULL),(279,7468,18,41530,2,3,2,0.00,NULL,'2024-10-11 01:28:10','2024-10-11 01:28:10',NULL),(280,7468,18,41530,2,4,2,0.00,NULL,'2024-10-11 01:28:10','2024-10-11 01:28:10',NULL),(281,7468,18,41530,3,1,1,0.00,NULL,'2024-10-11 01:28:10','2024-10-11 01:28:10',NULL),(282,7468,18,41530,3,2,1,0.00,NULL,'2024-10-11 01:28:10','2024-10-11 01:28:10',NULL),(283,7468,18,41530,3,3,1,81566079.53,NULL,'2024-10-11 01:28:10','2024-10-11 01:28:10',NULL),(284,7468,18,41530,3,4,1,0.00,NULL,'2024-10-11 01:28:10','2024-10-11 01:28:10',NULL),(285,7468,18,41530,3,1,2,0.00,NULL,'2024-10-11 01:28:10','2024-10-11 01:28:10',NULL),(286,7468,18,41530,3,2,2,0.00,NULL,'2024-10-11 01:28:10','2024-10-11 01:28:10',NULL),(287,7468,18,41530,3,3,2,0.00,NULL,'2024-10-11 01:28:10','2024-10-11 01:28:10',NULL),(288,7468,18,41530,3,4,2,0.00,NULL,'2024-10-11 01:28:10','2024-10-11 01:28:10',NULL),(289,7468,19,40747,2,1,1,0.00,NULL,'2025-06-20 19:39:50','2025-06-20 19:39:50',NULL),(290,7468,19,40747,2,2,1,0.00,NULL,'2025-06-20 19:39:50','2025-06-20 19:39:50',NULL),(291,7468,19,40747,2,3,1,216585328.19,NULL,'2025-06-20 19:39:50','2025-06-20 19:39:50',NULL),(292,7468,19,40747,2,4,1,0.00,NULL,'2025-06-20 19:39:50','2025-06-20 19:39:50',NULL),(293,7468,19,40747,2,1,2,0.00,NULL,'2025-06-20 19:39:50','2025-06-20 19:39:50',NULL),(294,7468,19,40747,2,2,2,0.00,NULL,'2025-06-20 19:39:50','2025-06-20 19:39:50',NULL),(295,7468,19,40747,2,3,2,0.00,NULL,'2025-06-20 19:39:50','2025-06-20 19:39:50',NULL);
INSERT INTO `ganan_ddjj_detail_ing_egr` VALUES (296,7468,19,40747,2,4,2,0.00,NULL,'2025-06-20 19:39:50','2025-06-20 19:39:50',NULL),(297,7468,19,40747,3,1,1,0.00,NULL,'2025-06-20 19:39:50','2025-06-20 19:39:50',NULL),(298,7468,19,40747,3,2,1,0.00,NULL,'2025-06-20 19:39:50','2025-06-20 19:39:50',NULL),(299,7468,19,40747,3,3,1,70434422.65,NULL,'2025-06-20 19:39:50','2025-06-20 19:39:50',NULL),(300,7468,19,40747,3,4,1,0.00,NULL,'2025-06-20 19:39:50','2025-06-20 19:39:50',NULL),(301,7468,19,40747,3,1,2,0.00,NULL,'2025-06-20 19:39:50','2025-06-20 19:39:50',NULL),(302,7468,19,40747,3,2,2,0.00,NULL,'2025-06-20 19:39:50','2025-06-20 19:39:50',NULL),(303,7468,19,40747,3,3,2,0.00,NULL,'2025-06-20 19:39:50','2025-06-20 19:39:50',NULL),(304,7468,19,40747,3,4,2,0.00,NULL,'2025-06-20 19:39:50','2025-06-20 19:39:50',NULL),(305,7468,20,41530,2,1,1,0.00,NULL,'2025-06-20 19:51:29','2025-06-20 19:51:29',NULL),(306,7468,20,41530,2,2,1,0.00,NULL,'2025-06-20 19:51:29','2025-06-20 19:51:29',NULL),(307,7468,20,41530,2,3,1,524767985.31,NULL,'2025-06-20 19:51:29','2025-06-20 19:51:29',NULL),(308,7468,20,41530,2,4,1,0.00,NULL,'2025-06-20 19:51:29','2025-06-20 19:51:29',NULL),(309,7468,20,41530,2,1,2,0.00,NULL,'2025-06-20 19:51:29','2025-06-20 19:51:29',NULL),(310,7468,20,41530,2,2,2,0.00,NULL,'2025-06-20 19:51:29','2025-06-20 19:51:29',NULL),(311,7468,20,41530,2,3,2,0.00,NULL,'2025-06-20 19:51:29','2025-06-20 19:51:29',NULL),(312,7468,20,41530,2,4,2,0.00,NULL,'2025-06-20 19:51:29','2025-06-20 19:51:29',NULL),(313,7468,20,41530,3,1,1,0.00,NULL,'2025-06-20 19:51:29','2025-06-20 19:51:29',NULL),(314,7468,20,41530,3,2,1,0.00,NULL,'2025-06-20 19:51:29','2025-06-20 19:51:29',NULL),(315,7468,20,41530,3,3,1,148415597.60,NULL,'2025-06-20 19:51:29','2025-06-20 19:51:29',NULL),(316,7468,20,41530,3,4,1,0.00,NULL,'2025-06-20 19:51:29','2025-06-20 19:51:29',NULL),(317,7468,20,41530,3,1,2,0.00,NULL,'2025-06-20 19:51:29','2025-06-20 19:51:29',NULL),(318,7468,20,41530,3,2,2,0.00,NULL,'2025-06-20 19:51:29','2025-06-20 19:51:29',NULL),(319,7468,20,41530,3,3,2,0.00,NULL,'2025-06-20 19:51:29','2025-06-20 19:51:29',NULL),(320,7468,20,41530,3,4,2,0.00,NULL,'2025-06-20 19:51:29','2025-06-20 19:51:29',NULL),(321,7468,21,42568,2,1,1,0.00,NULL,'2025-06-21 23:00:42','2025-06-21 23:00:42',NULL),(322,7468,21,42568,2,2,1,0.00,NULL,'2025-06-21 23:00:42','2025-06-21 23:00:42',NULL),(323,7468,21,42568,2,3,1,213524970.68,NULL,'2025-06-21 23:00:42','2025-06-21 23:00:42',NULL),(324,7468,21,42568,2,4,1,6132797.40,NULL,'2025-06-21 23:00:42','2025-06-21 23:00:42',NULL),(325,7468,21,42568,2,1,2,0.00,NULL,'2025-06-21 23:00:42','2025-06-21 23:00:42',NULL),(326,7468,21,42568,2,2,2,0.00,NULL,'2025-06-21 23:00:42','2025-06-21 23:00:42',NULL),(327,7468,21,42568,2,3,2,0.00,NULL,'2025-06-21 23:00:42','2025-06-21 23:00:42',NULL),(328,7468,21,42568,2,4,2,0.00,NULL,'2025-06-21 23:00:42','2025-06-21 23:00:42',NULL),(329,7468,21,42568,3,1,1,0.00,NULL,'2025-06-21 23:00:42','2025-06-21 23:00:42',NULL),(330,7468,21,42568,3,2,1,0.00,NULL,'2025-06-21 23:00:42','2025-06-21 23:00:42',NULL),(331,7468,21,42568,3,3,1,112944131.44,NULL,'2025-06-21 23:00:42','2025-06-21 23:00:42',NULL),(332,7468,21,42568,3,4,1,0.00,NULL,'2025-06-21 23:00:42','2025-06-21 23:00:42',NULL),(333,7468,21,42568,3,1,2,0.00,NULL,'2025-06-21 23:00:42','2025-06-21 23:00:42',NULL),(334,7468,21,42568,3,2,2,0.00,NULL,'2025-06-21 23:00:42','2025-06-21 23:00:42',NULL),(335,7468,21,42568,3,3,2,0.00,NULL,'2025-06-21 23:00:42','2025-06-21 23:00:42',NULL),(336,7468,21,42568,3,4,2,0.00,NULL,'2025-06-21 23:00:42','2025-06-21 23:00:42',NULL),(337,7468,22,41544,2,1,1,0.00,NULL,'2025-06-21 06:45:40','2025-06-21 06:45:40',NULL),(338,7468,22,41544,2,2,1,0.00,NULL,'2025-06-21 06:45:40','2025-06-21 06:45:40',NULL),(339,7468,22,41544,2,3,1,95822758.99,NULL,'2025-06-21 06:45:40','2025-06-21 06:45:40',NULL),(340,7468,22,41544,2,4,1,0.00,NULL,'2025-06-21 06:45:40','2025-06-21 06:45:40',NULL),(341,7468,22,41544,2,1,2,0.00,NULL,'2025-06-21 06:45:40','2025-06-21 06:45:40',NULL);
INSERT INTO `ganan_ddjj_detail_ing_egr` VALUES (342,7468,22,41544,2,2,2,0.00,NULL,'2025-06-21 06:45:40','2025-06-21 06:45:40',NULL),(343,7468,22,41544,2,3,2,0.00,NULL,'2025-06-21 06:45:40','2025-06-21 06:45:40',NULL),(344,7468,22,41544,2,4,2,0.00,NULL,'2025-06-21 06:45:40','2025-06-21 06:45:40',NULL),(345,7468,22,41544,3,1,1,0.00,NULL,'2025-06-21 06:45:40','2025-06-21 06:45:40',NULL),(346,7468,22,41544,3,2,1,0.00,NULL,'2025-06-21 06:45:40','2025-06-21 06:45:40',NULL),(347,7468,22,41544,3,3,1,17782892.71,NULL,'2025-06-21 06:45:40','2025-06-21 06:45:40',NULL),(348,7468,22,41544,3,4,1,0.00,NULL,'2025-06-21 06:45:40','2025-06-21 06:45:40',NULL),(349,7468,22,41544,3,1,2,0.00,NULL,'2025-06-21 06:45:40','2025-06-21 06:45:40',NULL),(350,7468,22,41544,3,2,2,0.00,NULL,'2025-06-21 06:45:40','2025-06-21 06:45:40',NULL),(351,7468,22,41544,3,3,2,0.00,NULL,'2025-06-21 06:45:40','2025-06-21 06:45:40',NULL),(352,7468,22,41544,3,4,2,0.00,NULL,'2025-06-21 06:45:40','2025-06-21 06:45:40',NULL),(353,7468,23,42666,2,1,1,0.00,NULL,'2025-06-21 08:12:16','2025-06-21 08:12:16',NULL),(354,7468,23,42666,2,2,1,0.00,NULL,'2025-06-21 08:12:16','2025-06-21 08:12:16',NULL),(355,7468,23,42666,2,3,1,54105562.00,NULL,'2025-06-21 08:12:16','2025-06-21 08:12:16',NULL),(356,7468,23,42666,2,4,1,0.00,NULL,'2025-06-21 08:12:16','2025-06-21 08:12:16',NULL),(357,7468,23,42666,2,1,2,0.00,NULL,'2025-06-21 08:12:16','2025-06-21 08:12:16',NULL),(358,7468,23,42666,2,2,2,0.00,NULL,'2025-06-21 08:12:16','2025-06-21 08:12:16',NULL),(359,7468,23,42666,2,3,2,0.00,NULL,'2025-06-21 08:12:16','2025-06-21 08:12:16',NULL),(360,7468,23,42666,2,4,2,0.00,NULL,'2025-06-21 08:12:16','2025-06-21 08:12:16',NULL),(361,7468,23,42666,3,1,1,0.00,NULL,'2025-06-21 08:12:16','2025-06-21 08:12:16',NULL),(362,7468,23,42666,3,2,1,0.00,NULL,'2025-06-21 08:12:16','2025-06-21 08:12:16',NULL),(363,7468,23,42666,3,3,1,28541895.98,NULL,'2025-06-21 08:12:16','2025-06-21 08:12:16',NULL),(364,7468,23,42666,3,4,1,0.00,NULL,'2025-06-21 08:12:16','2025-06-21 08:12:16',NULL),(365,7468,23,42666,3,1,2,0.00,NULL,'2025-06-21 08:12:16','2025-06-21 08:12:16',NULL),(366,7468,23,42666,3,2,2,0.00,NULL,'2025-06-21 08:12:16','2025-06-21 08:12:16',NULL),(367,7468,23,42666,3,3,2,0.00,NULL,'2025-06-21 08:12:16','2025-06-21 08:12:16',NULL),(368,7468,23,42666,3,4,2,0.00,NULL,'2025-06-21 08:12:16','2025-06-21 08:12:16',NULL),(369,7468,24,42879,2,1,1,0.00,NULL,'2025-06-21 11:30:38','2025-06-21 11:30:38',NULL),(370,7468,24,42879,2,2,1,0.00,NULL,'2025-06-21 11:30:38','2025-06-21 11:30:38',NULL),(371,7468,24,42879,2,3,1,25418604.29,NULL,'2025-06-21 11:30:38','2025-06-21 11:30:38',NULL),(372,7468,24,42879,2,4,1,0.00,NULL,'2025-06-21 11:30:38','2025-06-21 11:30:38',NULL),(373,7468,24,42879,2,1,2,0.00,NULL,'2025-06-21 11:30:38','2025-06-21 11:30:38',NULL),(374,7468,24,42879,2,2,2,0.00,NULL,'2025-06-21 11:30:38','2025-06-21 11:30:38',NULL),(375,7468,24,42879,2,3,2,0.00,NULL,'2025-06-21 11:30:38','2025-06-21 11:30:38',NULL),(376,7468,24,42879,2,4,2,0.00,NULL,'2025-06-21 11:30:38','2025-06-21 11:30:38',NULL),(377,7468,24,42879,3,1,1,0.00,NULL,'2025-06-21 11:30:38','2025-06-21 11:30:38',NULL),(378,7468,24,42879,3,2,1,0.00,NULL,'2025-06-21 11:30:38','2025-06-21 11:30:38',NULL),(379,7468,24,42879,3,3,1,6696690.17,NULL,'2025-06-21 11:30:38','2025-06-21 11:30:38',NULL),(380,7468,24,42879,3,4,1,0.00,NULL,'2025-06-21 11:30:38','2025-06-21 11:30:38',NULL),(381,7468,24,42879,3,1,2,0.00,NULL,'2025-06-21 11:30:38','2025-06-21 11:30:38',NULL),(382,7468,24,42879,3,2,2,0.00,NULL,'2025-06-21 11:30:38','2025-06-21 11:30:38',NULL),(383,7468,24,42879,3,3,2,0.00,NULL,'2025-06-21 11:30:38','2025-06-21 11:30:38',NULL),(384,7468,24,42879,3,4,2,0.00,NULL,'2025-06-21 11:30:38','2025-06-21 11:30:38',NULL),(385,7468,25,40762,2,1,1,0.00,NULL,'2025-06-22 04:47:04','2025-06-22 04:47:04',NULL),(386,7468,25,40762,2,2,1,0.00,NULL,'2025-06-22 04:47:04','2025-06-22 04:47:04',NULL),(387,7468,25,40762,2,3,1,26283368.57,NULL,'2025-06-22 04:47:04','2025-06-22 04:47:04',NULL);
INSERT INTO `ganan_ddjj_detail_ing_egr` VALUES (388,7468,25,40762,2,4,1,0.00,NULL,'2025-06-22 04:47:04','2025-06-22 04:47:04',NULL),(389,7468,25,40762,2,1,2,0.00,NULL,'2025-06-22 04:47:04','2025-06-22 04:47:04',NULL),(390,7468,25,40762,2,2,2,0.00,NULL,'2025-06-22 04:47:04','2025-06-22 04:47:04',NULL),(391,7468,25,40762,2,3,2,0.00,NULL,'2025-06-22 04:47:04','2025-06-22 04:47:04',NULL),(392,7468,25,40762,2,4,2,0.00,NULL,'2025-06-22 04:47:04','2025-06-22 04:47:04',NULL),(393,7468,25,40762,3,1,1,0.00,NULL,'2025-06-22 04:47:04','2025-06-22 04:47:04',NULL),(394,7468,25,40762,3,2,1,0.00,NULL,'2025-06-22 04:47:04','2025-06-22 04:47:04',NULL),(395,7468,25,40762,3,3,1,31247856.50,NULL,'2025-06-22 04:47:04','2025-06-22 04:47:04',NULL),(396,7468,25,40762,3,4,1,0.00,NULL,'2025-06-22 04:47:04','2025-06-22 04:47:04',NULL),(397,7468,25,40762,3,1,2,0.00,NULL,'2025-06-22 04:47:04','2025-06-22 04:47:04',NULL),(398,7468,25,40762,3,2,2,0.00,NULL,'2025-06-22 04:47:04','2025-06-22 04:47:04',NULL),(399,7468,25,40762,3,3,2,0.00,NULL,'2025-06-22 04:47:04','2025-06-22 04:47:04',NULL),(400,7468,25,40762,3,4,2,0.00,NULL,'2025-06-22 04:47:04','2025-06-22 04:47:04',NULL),(401,7468,26,44147,2,1,1,0.00,NULL,'2025-06-25 21:36:09','2025-06-25 21:36:09',NULL),(402,7468,26,44147,2,2,1,0.00,NULL,'2025-06-25 21:36:09','2025-06-25 21:36:09',NULL),(403,7468,26,44147,2,3,1,13916614.09,NULL,'2025-06-25 21:36:09','2025-06-25 21:36:09',NULL),(404,7468,26,44147,2,4,1,0.00,NULL,'2025-06-25 21:36:09','2025-06-25 21:36:09',NULL),(405,7468,26,44147,2,1,2,0.00,NULL,'2025-06-25 21:36:09','2025-06-25 21:36:09',NULL),(406,7468,26,44147,2,2,2,0.00,NULL,'2025-06-25 21:36:09','2025-06-25 21:36:09',NULL),(407,7468,26,44147,2,3,2,0.00,NULL,'2025-06-25 21:36:09','2025-06-25 21:36:09',NULL),(408,7468,26,44147,2,4,2,0.00,NULL,'2025-06-25 21:36:09','2025-06-25 21:36:09',NULL),(409,7468,26,44147,3,1,1,0.00,NULL,'2025-06-25 21:36:09','2025-06-25 21:36:09',NULL),(410,7468,26,44147,3,2,1,0.00,NULL,'2025-06-25 21:36:09','2025-06-25 21:36:09',NULL),(411,7468,26,44147,3,3,1,28724433.49,NULL,'2025-06-25 21:36:09','2025-06-25 21:36:09',NULL),(412,7468,26,44147,3,4,1,0.00,NULL,'2025-06-25 21:36:09','2025-06-25 21:36:09',NULL),(413,7468,26,44147,3,1,2,0.00,NULL,'2025-06-25 21:36:09','2025-06-25 21:36:09',NULL),(414,7468,26,44147,3,2,2,0.00,NULL,'2025-06-25 21:36:09','2025-06-25 21:36:09',NULL),(415,7468,26,44147,3,3,2,0.00,NULL,'2025-06-25 21:36:09','2025-06-25 21:36:09',NULL),(416,7468,26,44147,3,4,2,0.00,NULL,'2025-06-25 21:36:09','2025-06-25 21:36:09',NULL),(417,7468,27,40987,2,1,1,0.00,NULL,'2025-06-26 06:17:20','2025-06-26 06:17:20',NULL),(418,7468,27,40987,2,2,1,0.00,NULL,'2025-06-26 06:17:20','2025-06-26 06:17:20',NULL),(419,7468,27,40987,2,3,1,44074733.08,NULL,'2025-06-26 06:17:20','2025-06-26 06:17:20',NULL),(420,7468,27,40987,2,4,1,0.00,NULL,'2025-06-26 06:17:20','2025-06-26 06:17:20',NULL),(421,7468,27,40987,2,1,2,0.00,NULL,'2025-06-26 06:17:20','2025-06-26 06:17:20',NULL),(422,7468,27,40987,2,2,2,0.00,NULL,'2025-06-26 06:17:20','2025-06-26 06:17:20',NULL),(423,7468,27,40987,2,3,2,0.00,NULL,'2025-06-26 06:17:20','2025-06-26 06:17:20',NULL),(424,7468,27,40987,2,4,2,0.00,NULL,'2025-06-26 06:17:20','2025-06-26 06:17:20',NULL),(425,7468,27,40987,3,1,1,0.00,NULL,'2025-06-26 06:17:20','2025-06-26 06:17:20',NULL),(426,7468,27,40987,3,2,1,0.00,NULL,'2025-06-26 06:17:20','2025-06-26 06:17:20',NULL),(427,7468,27,40987,3,3,1,37417700.04,NULL,'2025-06-26 06:17:20','2025-06-26 06:17:20',NULL),(428,7468,27,40987,3,4,1,0.00,NULL,'2025-06-26 06:17:20','2025-06-26 06:17:20',NULL),(429,7468,27,40987,3,1,2,0.00,NULL,'2025-06-26 06:17:20','2025-06-26 06:17:20',NULL),(430,7468,27,40987,3,2,2,0.00,NULL,'2025-06-26 06:17:20','2025-06-26 06:17:20',NULL),(431,7468,27,40987,3,3,2,0.00,NULL,'2025-06-26 06:17:20','2025-06-26 06:17:20',NULL),(432,7468,27,40987,3,4,2,0.00,NULL,'2025-06-26 06:17:20','2025-06-26 06:17:20',NULL),(433,7468,28,40752,2,1,1,0.00,NULL,'2025-06-26 11:22:59','2025-06-26 11:22:59',NULL);
INSERT INTO `ganan_ddjj_detail_ing_egr` VALUES (434,7468,28,40752,2,2,1,0.00,NULL,'2025-06-26 11:22:59','2025-06-26 11:22:59',NULL),(435,7468,28,40752,2,3,1,50088961.28,NULL,'2025-06-26 11:22:59','2025-06-26 11:22:59',NULL),(436,7468,28,40752,2,4,1,0.00,NULL,'2025-06-26 11:22:59','2025-06-26 11:22:59',NULL),(437,7468,28,40752,2,1,2,0.00,NULL,'2025-06-26 11:22:59','2025-06-26 11:22:59',NULL),(438,7468,28,40752,2,2,2,0.00,NULL,'2025-06-26 11:22:59','2025-06-26 11:22:59',NULL),(439,7468,28,40752,2,3,2,0.00,NULL,'2025-06-26 11:22:59','2025-06-26 11:22:59',NULL),(440,7468,28,40752,2,4,2,0.00,NULL,'2025-06-26 11:22:59','2025-06-26 11:22:59',NULL),(441,7468,28,40752,3,1,1,0.00,NULL,'2025-06-26 11:22:59','2025-06-26 11:22:59',NULL),(442,7468,28,40752,3,2,1,0.00,NULL,'2025-06-26 11:22:59','2025-06-26 11:22:59',NULL),(443,7468,28,40752,3,3,1,13392747.77,NULL,'2025-06-26 11:22:59','2025-06-26 11:22:59',NULL),(444,7468,28,40752,3,4,1,0.00,NULL,'2025-06-26 11:22:59','2025-06-26 11:22:59',NULL),(445,7468,28,40752,3,1,2,0.00,NULL,'2025-06-26 11:22:59','2025-06-26 11:22:59',NULL),(446,7468,28,40752,3,2,2,0.00,NULL,'2025-06-26 11:22:59','2025-06-26 11:22:59',NULL),(447,7468,28,40752,3,3,2,0.00,NULL,'2025-06-26 11:22:59','2025-06-26 11:22:59',NULL),(448,7468,28,40752,3,4,2,0.00,NULL,'2025-06-26 11:22:59','2025-06-26 11:22:59',NULL),(449,7468,29,40729,2,1,1,0.00,NULL,'2025-06-27 01:11:34','2025-06-27 01:11:34',NULL),(450,7468,29,40729,2,2,1,0.00,NULL,'2025-06-27 01:11:34','2025-06-27 01:11:34',NULL),(451,7468,29,40729,2,3,1,32849304.31,NULL,'2025-06-27 01:11:34','2025-06-27 01:11:34',NULL),(452,7468,29,40729,2,4,1,0.00,NULL,'2025-06-27 01:11:34','2025-06-27 01:11:34',NULL),(453,7468,29,40729,2,1,2,0.00,NULL,'2025-06-27 01:11:34','2025-06-27 01:11:34',NULL),(454,7468,29,40729,2,2,2,0.00,NULL,'2025-06-27 01:11:34','2025-06-27 01:11:34',NULL),(455,7468,29,40729,2,3,2,0.00,NULL,'2025-06-27 01:11:34','2025-06-27 01:11:34',NULL),(456,7468,29,40729,2,4,2,0.00,NULL,'2025-06-27 01:11:34','2025-06-27 01:11:34',NULL),(457,7468,29,40729,3,1,1,0.00,NULL,'2025-06-27 01:11:34','2025-06-27 01:11:34',NULL),(458,7468,29,40729,3,2,1,0.00,NULL,'2025-06-27 01:11:34','2025-06-27 01:11:34',NULL),(459,7468,29,40729,3,3,1,25737386.20,NULL,'2025-06-27 01:11:34','2025-06-27 01:11:34',NULL),(460,7468,29,40729,3,4,1,0.00,NULL,'2025-06-27 01:11:34','2025-06-27 01:11:34',NULL),(461,7468,29,40729,3,1,2,0.00,NULL,'2025-06-27 01:11:34','2025-06-27 01:11:34',NULL),(462,7468,29,40729,3,2,2,0.00,NULL,'2025-06-27 01:11:34','2025-06-27 01:11:34',NULL),(463,7468,29,40729,3,3,2,0.00,NULL,'2025-06-27 01:11:34','2025-06-27 01:11:34',NULL),(464,7468,29,40729,3,4,2,0.00,NULL,'2025-06-27 01:11:34','2025-06-27 01:11:34',NULL),(465,7468,30,41544,2,1,1,0.00,NULL,'2025-11-02 03:30:33','2025-11-02 03:30:33',NULL),(466,7468,30,41544,2,2,1,0.00,NULL,'2025-11-02 03:30:33','2025-11-02 03:30:33',NULL),(467,7468,30,41544,2,3,1,127535874.00,NULL,'2025-11-02 03:30:33','2025-11-02 03:30:33',NULL),(468,7468,30,41544,2,4,1,0.00,NULL,'2025-11-02 03:30:33','2025-11-02 03:30:33',NULL),(469,7468,30,41544,2,1,2,0.00,NULL,'2025-11-02 03:30:33','2025-11-02 03:30:33',NULL),(470,7468,30,41544,2,2,2,0.00,NULL,'2025-11-02 03:30:33','2025-11-02 03:30:33',NULL),(471,7468,30,41544,2,3,2,0.00,NULL,'2025-11-02 03:30:33','2025-11-02 03:30:33',NULL),(472,7468,30,41544,2,4,2,0.00,NULL,'2025-11-02 03:30:33','2025-11-02 03:30:33',NULL),(473,7468,30,41544,3,1,1,0.00,NULL,'2025-11-02 03:30:33','2025-11-02 03:30:33',NULL),(474,7468,30,41544,3,2,1,0.00,NULL,'2025-11-02 03:30:33','2025-11-02 03:30:33',NULL),(475,7468,30,41544,3,3,1,45000000.00,NULL,'2025-11-02 03:30:33','2025-11-02 03:30:33',NULL),(476,7468,30,41544,3,4,1,0.00,NULL,'2025-11-02 03:30:33','2025-11-02 03:30:33',NULL),(477,7468,30,41544,3,1,2,0.00,NULL,'2025-11-02 03:30:33','2025-11-02 03:30:33',NULL),(478,7468,30,41544,3,2,2,0.00,NULL,'2025-11-02 03:30:33','2025-11-02 03:30:33',NULL),(479,7468,30,41544,3,3,2,0.00,NULL,'2025-11-02 03:30:33','2025-11-02 03:30:33',NULL);
INSERT INTO `ganan_ddjj_detail_ing_egr` VALUES (480,7468,30,41544,3,4,2,0.00,NULL,'2025-11-02 03:30:33','2025-11-02 03:30:33',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=31 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `ganan_ddjjs` VALUES (2,7468,2022,40747,21000000.00,0.00,11991124.80,0.00,1111334.08,7897541.12,2566819.32,2400444.72,0.00,NULL,'2023-06-23 09:13:51','2023-06-23 09:13:51',NULL),(3,7468,2022,40752,5357737.30,0.00,3124276.99,0.00,488022.09,1745438.22,413583.30,406603.97,0.00,NULL,'2023-06-23 05:54:04','2023-06-23 05:54:04',NULL),(4,7468,2022,40729,4579275.42,0.00,3894955.40,0.00,216862.19,467457.83,54796.28,54796.28,0.00,NULL,'2023-06-27 05:04:20','2023-06-27 05:04:20',NULL),(5,7468,2022,40762,36570130.52,0.00,16447722.73,0.00,962989.97,19159417.82,6508476.16,6508476.16,0.00,NULL,'2023-07-15 01:17:40','2023-07-15 01:17:40',NULL),(6,7468,2022,42568,8544585.43,0.00,342236.97,0.00,79614.00,8122734.46,2645636.99,2585176.08,0.00,NULL,'2023-07-26 00:40:07','2023-07-26 00:40:07',NULL),(7,7468,2022,42666,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,NULL,'2023-07-31 15:40:51','2023-07-31 15:40:51',NULL),(8,7468,2022,41530,35725162.39,0.00,18114053.86,0.00,1230635.71,16380472.82,5535845.41,5535845.41,0.00,NULL,'2023-08-24 20:02:07','2023-08-24 20:02:07',NULL),(9,7468,2023,40729,14554886.85,0.00,9612640.54,0.00,2837162.29,2105084.02,125993.14,184384.51,0.00,NULL,'2024-04-04 09:45:43','2024-04-04 09:45:43',NULL),(10,7468,2023,40987,2991616.11,645073.02,30402747.02,0.00,231093.68,0.00,0.00,0.00,0.00,NULL,'2024-09-17 04:41:24','2024-09-17 04:41:24',NULL),(11,7468,2023,41544,29016993.79,0.00,14891697.89,0.00,653257.50,13472038.40,4104427.17,3982427.17,0.00,NULL,'2024-09-17 13:40:39','2024-09-17 13:40:39',NULL),(12,7468,2023,40762,25103112.05,0.00,19856306.81,0.00,1088760.96,4158044.28,844529.23,617088.12,0.00,NULL,'2024-09-18 10:28:55','2024-09-18 10:28:55',NULL),(13,7468,2023,40760,1329867.80,6191386.03,918129.22,0.00,0.00,411738.58,0.00,0.00,0.00,NULL,'2024-09-18 05:43:47','2024-09-18 05:43:47',NULL),(14,7468,2023,40752,9012929.93,1571360.16,4768346.67,0.00,451686.96,3792896.30,716727.43,716727.43,0.00,NULL,'2024-09-19 01:45:38','2024-09-19 01:45:38',NULL),(15,7468,2023,42666,33349822.39,0.00,17877284.25,0.00,0.00,15472538.14,4804602.08,0.00,0.00,NULL,'2024-09-21 17:28:56','2024-09-21 17:28:56',NULL),(16,7468,2023,42568,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,NULL,'2024-09-23 19:25:51','2024-09-23 19:25:51',NULL),(17,7468,2023,40747,81929162.85,0.00,44073310.58,0.00,876403.24,36979449.03,12332020.89,12251671.55,0.00,NULL,'2024-09-28 00:09:14','2024-09-28 00:09:14',NULL),(18,7468,2023,41530,16454566.50,0.00,81566079.53,0.00,395146.04,0.00,0.00,0.00,0.00,NULL,'2024-10-11 01:28:10','2024-10-11 01:28:10',NULL),(19,7468,2024,40747,216585328.19,0.00,70434422.65,0.00,10131633.33,136019272.21,43124886.27,42086517.29,0.00,NULL,'2025-06-20 19:39:50','2025-06-20 19:39:50',NULL),(20,7468,2024,41530,524767985.31,0.00,148415597.60,0.00,10131633.69,366220754.02,123695404.91,122844143.91,0.00,NULL,'2025-06-20 19:51:29','2025-06-20 19:51:29',NULL),(21,7468,2024,42568,219657768.08,0.00,112944131.44,0.00,19985922.29,86727714.35,25872841.02,25137700.95,0.00,NULL,'2025-06-21 23:00:42','2025-06-24 18:43:34',NULL),(22,7468,2024,41544,95822758.99,0.00,17782892.71,0.00,16493193.21,61546673.07,17059476.57,16429035.19,0.00,NULL,'2025-06-21 06:45:40','2025-06-21 06:45:40',NULL),(23,7468,2024,42666,54105562.00,0.00,28541895.98,0.00,3503688.17,22059977.85,4228740.02,4228740.02,0.00,NULL,'2025-06-21 08:12:16','2025-06-21 08:12:16',NULL),(24,7468,2024,42879,25418604.29,0.00,6696690.17,0.00,21218634.23,0.00,0.00,0.00,-668551.53,NULL,'2025-06-21 11:30:38','2025-06-21 11:30:38',NULL),(25,7468,2024,40762,26283368.57,0.00,31247856.50,0.00,8495948.63,0.00,0.00,0.00,0.00,NULL,'2025-06-22 04:47:04','2025-06-22 04:47:04',NULL),(26,7468,2024,44147,13916614.09,0.00,28724433.49,0.00,0.00,0.00,0.00,0.00,0.00,NULL,'2025-06-25 21:36:09','2025-06-25 21:36:09',NULL),(27,7468,2024,40987,44074733.08,0.00,37417700.04,0.00,9250928.11,0.00,0.00,0.00,0.00,NULL,'2025-06-26 06:17:20','2025-06-26 06:17:20',NULL);
INSERT INTO `ganan_ddjjs` VALUES (28,7468,2024,40752,50088961.28,0.00,13392747.77,0.00,3503688.17,33192525.34,7460466.86,7300114.40,0.00,NULL,'2025-06-26 11:22:59','2025-06-26 11:22:59',NULL),(29,7468,2024,40729,32849304.31,0.00,25737386.20,0.00,9387094.51,0.00,0.00,0.00,-2784.63,NULL,'2025-06-27 01:11:34','2025-06-27 01:11:34',NULL),(30,7468,2025,41544,127535874.00,0.00,45000000.00,0.00,18607866.12,63928007.88,17365178.10,12432065.58,0.00,NULL,'2025-11-02 03:30:33','2025-11-02 03:30:33',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=225 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:27','2019-11-15 13:24:27',NULL),(2,NULL,2017,1,0,'Gastos de Sepelio',999.00,1,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(3,NULL,2017,1,0,'Aportes a Obras Sociales',0.00,1,'2019-11-15 13:24:27','2019-11-15 13:24:27',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:27','2019-11-15 13:24:27',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:27','2019-11-15 13:24:27',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:27','2019-11-15 13:24:27',NULL),(7,NULL,2017,1,0,'Pagos Régimen Nacional de Trabajadores Autónomos',0.00,1,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(8,NULL,2017,1,0,'Aportes a Cajas Complementarias de Previsión',0.00,1,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(9,NULL,2017,1,0,'Aportes a Fondos Compensadores de Previsión',0.00,1,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(10,NULL,2017,1,0,'Intereses Crédito Hipotecario',20000.00,1,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(11,NULL,2017,1,0,'Servicio Doméstico',51967.00,1,'2019-11-15 13:24:27','2019-11-15 13:24:27',NULL),(12,NULL,2017,1,0,'Donaciones',0.00,1,'2019-11-15 13:24:27','2019-11-15 13:24:27',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:27','2019-11-15 13:24:27',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:28','2019-11-15 13:24:28',NULL),(15,NULL,2017,0,1,'Conyuge',48447.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(16,NULL,2017,0,1,'Hijo Incapacitado',24432.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(17,NULL,2017,0,1,'Hijo Menor 18 años',24432.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(18,NULL,2017,0,1,'Hijastro Incapacitado',24432.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(19,NULL,2017,0,1,'Hijastro Menor 18 Años',24432.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(20,NULL,2017,0,1,'Ganancia No Imponible',51967.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(21,NULL,2017,0,1,'Deduccion Especial',51967.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(22,NULL,2018,1,0,'Primas de seguro para el caso de muerte',12000.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(23,NULL,2018,1,0,'Gastos de Sepelio',999.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(24,NULL,2018,1,0,'Aportes a Obras Sociales',0.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',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:28','2019-11-15 13:24:28',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:28','2019-11-15 13:24:28',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:28','2019-11-15 13:24:28',NULL),(28,NULL,2018,1,0,'Pagos Régimen Nacional de Trabajadores Autónomos',0.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(29,NULL,2018,1,0,'Aportes a Cajas Complementarias de Previsión',0.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(30,NULL,2018,1,0,'Aportes a Fondos Compensadores de Previsión',0.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL);
INSERT INTO `ganan_deducciones` VALUES (31,NULL,2018,1,0,'Intereses Crédito Hipotecario',20000.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(32,NULL,2018,1,0,'Servicio Doméstico',66917.91,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(33,NULL,2018,1,0,'Donaciones',0.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',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:28','2019-11-15 13:24:28',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:28','2019-11-15 13:24:28',NULL),(36,NULL,2018,0,1,'Conyuge',66917.91,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(37,NULL,2018,0,1,'Hijo Incapacitado',31461.09,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(38,NULL,2018,0,1,'Hijo Menor 18 años',31461.09,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(39,NULL,2018,0,1,'Hijastro Incapacitado',31461.09,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(40,NULL,2018,0,1,'Hijastro Menor 18 Años',31461.09,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(41,NULL,2018,0,1,'Ganancia No Imponible',66917.91,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(42,NULL,2018,0,1,'Deduccion Especial',66917.91,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(43,NULL,2019,1,0,'Primas de seguro para el caso de muerte',18000.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(44,NULL,2019,1,0,'Gastos de Sepelio',999.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(45,NULL,2019,1,0,'Aportes a Obras Sociales',0.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',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:28','2019-11-15 13:24:28',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:28','2019-11-15 13:24:28',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:28','2019-11-15 13:24:28',NULL),(49,NULL,2019,1,0,'Pagos Régimen Nacional de Trabajadores Autónomos',0.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(50,NULL,2019,1,0,'Aportes a Cajas Complementarias de Previsión',0.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(51,NULL,2019,1,0,'Aportes a Fondos Compensadores de Previsión',0.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(52,NULL,2019,1,0,'Intereses Crédito Hipotecario',20000.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(53,NULL,2019,1,0,'Servicio Doméstico',103018.79,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(54,NULL,2019,1,0,'Donaciones',0.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',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:28','2019-11-15 13:24:28',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:28','2019-11-15 13:24:28',NULL),(57,NULL,2019,0,1,'Conyuge',80033.97,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(58,NULL,2019,0,1,'Hijo Incapacitado',40361.43,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(59,NULL,2019,0,1,'Hijo Menor 18 años',206037.56,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(60,NULL,2019,0,1,'Hijastro Incapacitado',206037.56,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(61,NULL,2019,0,1,'Hijastro Menor 18 Años',0.00,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(62,NULL,2019,0,1,'Ganancia No Imponible',103018.79,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL),(63,NULL,2019,0,1,'Deduccion Especial',103018.79,1,'2019-11-15 13:24:28','2019-11-15 13:24:28',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:34','2020-01-28 13:48:34',NULL),(65,NULL,2016,1,0,'Gastos de Sepelio',999.00,1,'2020-01-28 13:48:34','2020-01-28 13:48:34',NULL),(66,NULL,2016,1,0,'Aportes a Obras Sociales',0.00,1,'2020-01-28 13:48:34','2020-01-28 13:48:34',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:34','2020-01-28 13:48:34',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:34','2020-01-28 13:48:34',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:34','2020-01-28 13:48:34',NULL),(70,NULL,2016,1,0,'Pagos Régimen Nacional de Trabajadores Autónomos',0.00,1,'2020-01-28 13:48:34','2020-01-28 13:48:34',NULL),(71,NULL,2016,1,0,'Aportes a Cajas Complementarias de Previsión',0.00,1,'2020-01-28 13:48:34','2020-01-28 13:48:34',NULL),(72,NULL,2016,1,0,'Aportes a Fondos Compensadores de Previsión',0.00,1,'2020-01-28 13:48:34','2020-01-28 13:48:34',NULL),(73,NULL,2016,1,0,'Intereses Crédito Hipotecario',20000.00,1,'2020-01-28 13:48:34','2020-01-28 13:48:34',NULL),(74,NULL,2016,1,0,'Servicio Doméstico',42318.00,1,'2020-01-28 13:48:34','2020-01-28 13:48:34',NULL),(75,NULL,2016,1,0,'Donaciones',0.00,1,'2020-01-28 13:48:34','2020-01-28 13:48:34',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:34','2020-01-28 13:48:34',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:34','2020-01-28 13:48:34',NULL),(78,NULL,2016,0,1,'Conyuge',39778.00,1,'2020-01-28 13:48:34','2020-01-28 13:48:34',NULL),(79,NULL,2016,0,1,'Hijo Incapacitado',19889.00,1,'2020-01-28 13:48:34','2020-01-28 13:48:34',NULL),(80,NULL,2016,0,1,'Hijo Menor 18 años',19889.00,1,'2020-01-28 13:48:34','2020-01-28 13:48:34',NULL),(81,NULL,2016,0,1,'Hijastro Incapacitado',19889.00,1,'2020-01-28 13:48:34','2020-01-28 13:48:34',NULL),(82,NULL,2016,0,1,'Hijastro Menor 18 Años',19889.00,1,'2020-01-28 13:48:34','2020-01-28 13:48:34',NULL),(83,NULL,2016,0,1,'Ganancia No Imponible',42318.00,1,'2020-01-28 13:48:34','2020-01-28 13:48:34',NULL),(84,NULL,2016,0,1,'Deduccion Especial',42318.00,1,'2020-01-28 13:48:34','2020-01-28 13:48:34',NULL),(85,NULL,2019,1,0,'Alquileres',103018.97,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(86,NULL,2020,1,0,'Alquileres',123861.17,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(87,NULL,2020,1,0,'Primas de seguro para el caso de muerte',18000.00,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(88,NULL,2020,1,0,'Gastos de Sepelio',999.00,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(89,NULL,2020,1,0,'Aportes a Obras Sociales',0.00,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',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:39','2020-01-28 14:17:39',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:39','2020-01-28 14:17:39',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:39','2020-01-28 14:17:39',NULL),(93,NULL,2020,1,0,'Pagos Régimen Nacional de Trabajadores Autónomos',0.00,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',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:39','2020-01-28 14:17:39',NULL),(95,NULL,2020,1,0,'Aportes a Fondos Compensadores de Previsión',0.00,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(96,NULL,2020,1,0,'Intereses Crédito Hipotecario',20000.00,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(97,NULL,2020,1,0,'Servicio Doméstico',123861.17,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(98,NULL,2020,1,0,'Donaciones',0.00,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',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:39','2020-01-28 14:17:39',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:39','2020-01-28 14:17:39',NULL),(101,NULL,2020,0,1,'Conyuge',115471.38,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(102,NULL,2020,0,1,'Hijo Incapacitado',58232.65,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(103,NULL,2020,0,1,'Hijo Menor 18 años',58232.65,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(104,NULL,2020,0,1,'Hijastro Incapacitado',58232.65,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(105,NULL,2020,0,1,'Hijastro Menor 18 Años',0.00,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(106,NULL,2020,0,1,'Ganancia No Imponible',123861.17,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(107,NULL,2020,0,1,'Deduccion Especial Art 30 Apartado 1',103018.79,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(108,NULL,2020,0,1,'Deduccion Especial Art 30 Apartado 1 \"Nuevos Profesionales / Emprendedores',309652.93,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(109,NULL,2020,0,1,'Deduccion Especial Art 30 Apartado 2',594533.62,1,'2020-01-28 14:17:39','2020-01-28 14:17:39',NULL),(110,NULL,2021,1,0,'Primas de seguro para el caso de muerte',24000.00,1,'2022-07-28 13:01:19','2022-07-28 13:01:19',NULL),(111,NULL,2021,1,0,'Gastos de Sepelio',996.23,1,'2022-07-28 13:01:19','2022-07-28 13:01:19',NULL),(112,NULL,2021,1,0,'Aportes a Obras Sociales',0.00,1,'2022-07-28 13:01:19','2022-07-28 13:01:19',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,'2022-07-28 13:01:19','2022-07-28 13:01:19',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,'2022-07-28 13:01:19','2022-07-28 13:01:19',NULL),(115,NULL,2021,1,0,'Aportes a Cajas Provinciales o Municipales o de Previsión para Profesionales',0.00,1,'2022-07-28 13:01:19','2022-07-28 13:01:19',NULL),(116,NULL,2021,1,0,'Pagos Régimen Nacional de Trabajadores Autónomos',0.00,1,'2022-07-28 13:01:19','2022-07-28 13:01:19',NULL),(117,NULL,2021,1,0,'Aportes a Cajas Complementarias de Previsión',0.00,1,'2022-07-28 13:01:19','2022-07-28 13:01:19',NULL),(118,NULL,2021,1,0,'Aportes a Fondos Compensadores de Previsión',0.00,1,'2022-07-28 13:01:19','2022-07-28 13:01:19',NULL),(119,NULL,2021,1,0,'Intereses Crédito Hipotecario',20000.00,1,'2022-07-28 13:01:19','2022-07-28 13:01:19',NULL),(120,NULL,2021,1,0,'Servicio Doméstico',167678.40,1,'2022-07-28 13:01:19','2022-07-28 13:01:19',NULL),(121,NULL,2021,1,0,'Donaciones',0.00,1,'2022-07-28 13:01:19','2022-07-28 13:01:19',NULL),(122,NULL,2021,1,0,'Cuota médico asistencial abonado por usted y por sus familiares a cargo',0.00,1,'2022-07-28 13:01:19','2022-07-28 13:01:19',NULL),(123,NULL,2021,1,0,'Honorarios Correspondientes a los Servicios de asistencia Sanitaria, Médica y Paramédica',0.00,1,'2022-07-28 13:01:19','2022-07-28 13:01:19',NULL),(124,NULL,2021,0,1,'Conyuge',156320.63,1,'2022-07-28 13:01:19','2022-07-28 13:01:19',NULL),(125,NULL,2021,0,1,'Hijo Menor 18 años',78833.08,1,'2022-07-28 13:01:19','2022-07-28 13:01:19',NULL);
INSERT INTO `ganan_deducciones` VALUES (126,NULL,2021,0,1,'Ganancia No Imponible',167678.40,1,'2022-07-28 13:01:19','2022-07-28 13:01:19',NULL),(127,NULL,2021,0,1,'Deduccion Especial',804856.34,1,'2022-07-28 13:01:19','2022-07-28 13:01:19',NULL),(128,NULL,2022,1,0,'Primas de seguro para el caso de muerte',24000.00,1,'2022-07-28 13:01:22','2022-07-28 13:01:22',NULL),(129,NULL,2022,1,0,'Gastos de Sepelio',996.23,1,'2022-07-28 13:01:22','2022-07-28 13:01:22',NULL),(130,NULL,2022,1,0,'Aportes a Obras Sociales',0.00,1,'2022-07-28 13:01:22','2022-07-28 13:01:22',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-07-28 13:01:22','2022-07-28 13:01:22',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-07-28 13:01:22','2022-07-28 13:01:22',NULL),(133,NULL,2022,1,0,'Aportes a Cajas Provinciales o Municipales o de Previsión para Profesionales',0.00,1,'2022-07-28 13:01:22','2022-07-28 13:01:22',NULL),(134,NULL,2022,1,0,'Pagos Régimen Nacional de Trabajadores Autónomos',0.00,1,'2022-07-28 13:01:22','2022-07-28 13:01:22',NULL),(135,NULL,2022,1,0,'Aportes a Cajas Complementarias de Previsión',0.00,1,'2022-07-28 13:01:22','2022-07-28 13:01:22',NULL),(136,NULL,2022,1,0,'Aportes a Fondos Compensadores de Previsión',0.00,1,'2022-07-28 13:01:22','2022-07-28 13:01:22',NULL),(137,NULL,2022,1,0,'Intereses Crédito Hipotecario',20000.00,1,'2022-07-28 13:01:22','2022-07-28 13:01:22',NULL),(138,NULL,2022,1,0,'Servicio Doméstico',252564.84,1,'2022-07-28 13:01:22','2022-07-28 13:01:22',NULL),(139,NULL,2022,1,0,'Donaciones',0.00,1,'2022-07-28 13:01:22','2022-07-28 13:01:22',NULL),(140,NULL,2022,1,0,'Cuota médico asistencial abonado por usted y por sus familiares a cargo',0.00,1,'2022-07-28 13:01:22','2022-07-28 13:01:22',NULL),(141,NULL,2022,1,0,'Honorarios Correspondientes a los Servicios de asistencia Sanitaria, Médica y Paramédica',0.00,1,'2022-07-28 13:01:22','2022-07-28 13:01:22',NULL),(142,NULL,2022,1,0,'Alquileres',252564.84,1,'2022-07-28 13:01:22','2022-07-28 13:01:22',NULL),(143,NULL,2022,0,1,'Conyuge',235457.25,1,'2022-07-28 13:01:22','2022-07-28 13:01:22',NULL),(144,NULL,2022,0,1,'Hijo Menor 18 años',118741.97,1,'2022-07-28 13:01:22','2022-07-28 13:01:22',NULL),(145,NULL,2022,0,1,'Ganancia No Imponible',252564.84,1,'2022-07-28 13:01:22','2022-07-28 13:01:22',NULL),(146,NULL,2022,0,1,'Deducción Especial [Artículo 30, inciso c), Apartado 2]',1212311.24,1,'2022-07-28 13:01:22','2022-07-28 13:01:22',NULL),(147,NULL,2022,0,1,'Deducción Especial [Artículo 30, inciso c), Apartado 1]',505129.68,1,'2022-07-28 13:01:22','2022-07-28 13:01:22',NULL),(148,NULL,2022,0,1,'Deducción Especial [Artículo 30, inciso c), Apartado 1 “nuevos profesionales/emprendedores”]',631412.10,1,'2022-07-28 13:01:22','2022-07-28 13:01:22',NULL),(149,NULL,2022,0,1,'Hijo Incapacitado',237483.94,1,'2022-07-28 13:01:22','2022-07-28 13:01:22',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:54:51','2022-12-28 17:54:51',NULL),(152,NULL,2023,1,0,'Aportes a Obras Sociales',0.00,1,'2022-12-28 17:54:51','2022-12-28 17:54:51',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:54:51','2022-12-28 17:54:51',NULL),(154,NULL,2023,1,0,'Gastos de Sepelio',996.23,1,'2022-12-28 17:54:51','2022-12-28 17:54:51',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:54:51','2022-12-28 17:54:51',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:54:51','2022-12-28 17:54:51',NULL),(157,NULL,2023,1,0,'Pagos Régimen Nacional de Trabajadores Autónomos',0.00,1,'2022-12-28 17:54:51','2022-12-28 17:54:51',NULL),(158,NULL,2023,1,0,'Aportes a Cajas Complementarias de Previsión',0.00,1,'2022-12-28 17:54:51','2022-12-28 17:54:51',NULL),(159,NULL,2023,1,0,'Aportes a Fondos Compensadores de Previsión',0.00,1,'2022-12-28 17:54:51','2022-12-28 17:54:51',NULL),(160,NULL,2023,1,0,'Intereses Crédito Hipotecario',20000.00,1,'2022-12-28 17:54:51','2022-12-28 17:54:51',NULL),(161,NULL,2023,1,0,'Servicio Doméstico',451686.96,1,'2022-12-28 17:54:51','2022-12-28 17:54:51',NULL),(162,NULL,2023,1,0,'Donaciones',0.00,1,'2022-12-28 17:54:51','2022-12-28 17:54:51',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:54:51','2022-12-28 17:54:51',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:54:51','2022-12-28 17:54:51',NULL),(165,NULL,2023,1,0,'Alquileres',451686.96,1,'2022-12-28 17:54:51','2022-12-28 17:54:51',NULL),(166,NULL,2023,0,1,'Ganancia No Imponible',451686.96,1,'2022-12-28 17:54:51','2022-12-28 17:54:51',NULL),(167,NULL,2023,0,1,'Conyuge',421091.75,1,'2022-12-28 17:54:51','2022-12-28 17:54:51',NULL),(168,NULL,2023,0,1,'Hijo Menor 18 años',212358.14,1,'2022-12-28 17:54:51','2022-12-28 17:54:51',NULL),(169,NULL,2023,0,1,'Hijo Incapacitado',424716.28,1,'2022-12-28 17:54:51','2022-12-28 17:54:51',NULL),(170,NULL,2023,0,1,'Deducción Especial [Artículo 30, inciso c), Apartado 1]',1580904.36,1,'2022-12-28 17:54:51','2022-12-28 17:54:51',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:54:51','2022-12-28 17:54:51',NULL),(172,NULL,2023,0,1,'Deducción Especial [Artículo 30, inciso c), Apartado 2]',2168097.42,1,'2022-12-28 17:54:51','2022-12-28 17:54:51',NULL),(173,NULL,2024,1,0,'Primas de seguro para el caso de muerte',195845.39,1,NULL,NULL,NULL),(174,NULL,2024,1,0,'Aportes a Obras Sociales',0.00,1,NULL,NULL,NULL),(175,NULL,2024,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,NULL,NULL,NULL),(176,NULL,2024,1,0,'Gastos de Sepelio',996.23,1,NULL,NULL,NULL),(177,NULL,2024,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,NULL,NULL,NULL),(178,NULL,2024,1,0,'Aportes a Cajas Provinciales o Municipales o de Previsión para Profesionales',0.00,1,NULL,NULL,NULL),(179,NULL,2024,1,0,'Pagos Régimen Nacional de Trabajadores Autónomos',0.00,1,NULL,NULL,NULL),(180,NULL,2024,1,0,'Aportes a Cajas Complementarias de Previsión',0.00,1,NULL,NULL,NULL),(181,NULL,2024,1,0,'Aportes a Fondos Compensadores de Previsión',0.00,1,NULL,NULL,NULL),(182,NULL,2024,1,0,'Intereses Crédito Hipotecario',20000.00,1,NULL,NULL,NULL),(183,NULL,2024,1,0,'Servicio Doméstico',3503688.17,1,NULL,NULL,NULL),(184,NULL,2024,1,0,'Donaciones',0.00,1,NULL,NULL,NULL),(185,NULL,2024,1,0,'Cuota médico asistencial abonado por usted y por sus familiares a cargo',0.00,1,NULL,NULL,NULL),(186,NULL,2024,1,0,'Honorarios Correspondientes a los Servicios de asistencia Sanitaria, Médica y Paramédica',0.00,1,NULL,NULL,NULL),(187,NULL,2024,1,0,'Alquileres',3503688.17,1,NULL,NULL,NULL),(188,NULL,2024,1,0,'Servicios o Herramientas con Fines Educativos',1401475.27,1,NULL,NULL,NULL),(189,NULL,2024,1,0,'Primas Riesgo de Muertes y Ahorros',195845.39,1,NULL,NULL,NULL),(190,NULL,2024,1,0,'Aportes Planes Seguro Retiro Privado',195845.39,1,NULL,NULL,NULL),(191,NULL,2024,1,0,'Aportes a Sociedades de Garantias Reciprocas',0.00,1,NULL,NULL,NULL);
INSERT INTO `ganan_deducciones` VALUES (192,NULL,2024,0,1,'Ganancia No Imponible',3503688.17,1,NULL,NULL,NULL),(193,NULL,2024,0,1,'Conyuge',3299771.52,1,NULL,NULL,NULL),(194,NULL,2024,0,1,'Hijo Menor 18 años',1664086.82,1,NULL,NULL,NULL),(195,NULL,2024,0,1,'Hijo Incapacitado',3328173.63,1,NULL,NULL,NULL),(196,NULL,2024,0,1,'Deducción Especial [Artículo 30, inciso c), Apartado 1]',12262908.60,1,NULL,NULL,NULL),(197,NULL,2024,0,1,'Deducción Especial [Artículo 30, inciso c), Apartado 1 “nuevos profesionales/emprendedores”]',14014752.69,1,NULL,NULL,NULL),(198,NULL,2024,0,1,'Deducción Especial [Artículo 30, inciso c), Apartado 2]',16817703.23,1,NULL,NULL,NULL),(199,NULL,2025,1,0,'Primas de seguro para el caso de muerte',195845.39,1,NULL,NULL,NULL),(200,NULL,2025,1,0,'Aportes a Obras Sociales',0.00,1,NULL,NULL,NULL),(201,NULL,2025,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,NULL,NULL,NULL),(202,NULL,2025,1,0,'Gastos de Sepelio',996.23,1,NULL,NULL,NULL),(203,NULL,2025,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,NULL,NULL,NULL),(204,NULL,2025,1,0,'Aportes a Cajas Provinciales o Municipales o de Previsión para Profesionales',0.00,1,NULL,NULL,NULL),(205,NULL,2025,1,0,'Pagos Régimen Nacional de Trabajadores Autónomos',0.00,1,NULL,NULL,NULL),(206,NULL,2025,1,0,'Aportes a Cajas Complementarias de Previsión',0.00,1,NULL,NULL,NULL),(207,NULL,2025,1,0,'Aportes a Fondos Compensadores de Previsión',0.00,1,NULL,NULL,NULL),(208,NULL,2025,1,0,'Intereses Crédito Hipotecario',20000.00,1,NULL,NULL,NULL),(209,NULL,2025,1,0,'Servicio Doméstico',3916268.37,1,NULL,NULL,NULL),(210,NULL,2025,1,0,'Donaciones',0.00,1,NULL,NULL,NULL),(211,NULL,2025,1,0,'Cuota médico asistencial abonado por usted y por sus familiares a cargo',0.00,1,NULL,NULL,NULL),(212,NULL,2025,1,0,'Honorarios Correspondientes a los Servicios de asistencia Sanitaria, Médica y Paramédica',0.00,1,NULL,NULL,NULL),(213,NULL,2025,1,0,'Alquileres',3916268.37,1,NULL,NULL,NULL),(214,NULL,2025,1,0,'Servicios o Herramientas con Fines Educativos',1566507.35,1,NULL,NULL,NULL),(215,NULL,2025,1,0,'Primas Riesgo de Muertes y Ahorros',195845.39,1,NULL,NULL,NULL),(216,NULL,2025,1,0,'Aportes Planes Seguro Retiro Privado',195845.39,1,NULL,NULL,NULL),(217,NULL,2025,1,0,'Aportes a Sociedades de Garantias Reciprocas',0.00,1,NULL,NULL,NULL),(218,NULL,2025,0,1,'Ganancia No Imponible',3916268.37,1,NULL,NULL,NULL),(219,NULL,2025,0,1,'Conyuge',3688339.32,1,NULL,NULL,NULL),(220,NULL,2025,0,1,'Hijo Menor 18 años',1860042.98,1,NULL,NULL,NULL),(221,NULL,2025,0,1,'Hijo Incapacitado',3720085.95,1,NULL,NULL,NULL),(222,NULL,2025,0,1,'Deducción Especial [Artículo 30, inciso c), Apartado 1]',13706939.31,1,NULL,NULL,NULL),(223,NULL,2025,0,1,'Deducción Especial [Artículo 30, inciso c), Apartado 1 “nuevos profesionales/emprendedores”]',15665073.50,1,NULL,NULL,NULL),(224,NULL,2025,0,1,'Deducción Especial [Artículo 30, inciso c), Apartado 2]',18798088.20,1,NULL,NULL,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:28','2019-11-15 13:24:28',NULL),(2,NULL,'Exento',1,'2019-11-15 13:24:28','2019-11-15 13:24:28',NULL);

--
-- Table structure for table `horas_calculadas`
--

CREATE TABLE `horas_calculadas` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `syj_empleado_id` int(10) unsigned NOT NULL,
  `fecha` date NOT NULL,
  `horas_fichaje` decimal(8,2) NOT NULL DEFAULT '0.00',
  `horas_normales` decimal(8,2) NOT NULL DEFAULT '0.00',
  `horas_50` decimal(8,2) NOT NULL DEFAULT '0.00',
  `horas_100` decimal(8,2) NOT NULL DEFAULT '0.00',
  `horas_prod` decimal(8,2) NOT NULL DEFAULT '0.00',
  `horas_improd` decimal(8,2) NOT NULL DEFAULT '0.00',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `horas_calculadas_syj_empleado_id_foreign` (`syj_empleado_id`),
  CONSTRAINT `horas_calculadas_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 `horas_calculadas`
--


--
-- Table structure for table `horas_calculadas_details`
--

CREATE TABLE `horas_calculadas_details` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `horas_calculada_id` bigint(20) unsigned NOT NULL,
  `inv_orden_trabajo_hora_id` bigint(20) unsigned DEFAULT NULL,
  `horas_productiva_id` bigint(20) unsigned NOT NULL,
  `horas_prod` 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 `horas_calculadas_details_horas_calculada_id_foreign` (`horas_calculada_id`),
  KEY `horas_calculadas_details_horas_productiva_id_foreign` (`horas_productiva_id`),
  KEY `horas_calculadas_details_inv_orden_trabajo_hora_id_foreign` (`inv_orden_trabajo_hora_id`),
  CONSTRAINT `horas_calculadas_details_horas_calculada_id_foreign` FOREIGN KEY (`horas_calculada_id`) REFERENCES `horas_calculadas` (`id`),
  CONSTRAINT `horas_calculadas_details_horas_productiva_id_foreign` FOREIGN KEY (`horas_productiva_id`) REFERENCES `horas_productivas` (`id`),
  CONSTRAINT `horas_calculadas_details_inv_orden_trabajo_hora_id_foreign` FOREIGN KEY (`inv_orden_trabajo_hora_id`) REFERENCES `inv_orden_trabajo_horas` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `horas_calculadas_details`
--


--
-- Table structure for table `horas_definicion`
--

CREATE TABLE `horas_definicion` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `fecha` date NOT NULL,
  `horas_normales_inicio` time DEFAULT NULL,
  `horas_normales_fin` time DEFAULT NULL,
  `horas_50_inicio` time DEFAULT NULL,
  `horas_50_fin` time DEFAULT NULL,
  `horas_100_inicio` time DEFAULT NULL,
  `horas_100_fin` time DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `horas_definicion_person_id_foreign` (`person_id`),
  CONSTRAINT `horas_definicion_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `horas_definicion`
--


--
-- Table structure for table `horas_fichajes`
--

CREATE TABLE `horas_fichajes` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `syj_empleado_id` int(10) unsigned NOT NULL,
  `fecha` date NOT NULL,
  `fecha_y_hora` datetime DEFAULT NULL,
  `terminal` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
  `codigo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `estado` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `jornada` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `retraso` time DEFAULT NULL,
  `hs_50` time DEFAULT NULL,
  `hs_100` time DEFAULT NULL,
  `feriados` time DEFAULT NULL,
  `comentario` text COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `horas_fichajes_person_id_foreign` (`person_id`),
  KEY `horas_fichajes_syj_empleado_id_foreign` (`syj_empleado_id`),
  CONSTRAINT `horas_fichajes_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `horas_fichajes_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 `horas_fichajes`
--


--
-- Table structure for table `horas_productivas`
--

CREATE TABLE `horas_productivas` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `ot_id` bigint(20) unsigned NOT NULL,
  `syj_empleado_id` int(10) unsigned NOT NULL,
  `fecha_y_hora` datetime NOT NULL,
  `fecha_hora_start` datetime NOT NULL,
  `fecha_hora_end` datetime DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `horas_productivas_syj_empleado_id_foreign` (`syj_empleado_id`),
  KEY `horas_productivas_ot_id_foreign` (`ot_id`),
  CONSTRAINT `horas_productivas_ot_id_foreign` FOREIGN KEY (`ot_id`) REFERENCES `inv_orden_trabajos` (`id`),
  CONSTRAINT `horas_productivas_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 `horas_productivas`
--


--
-- 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,
  `inv_deposito_id` bigint(20) unsigned DEFAULT 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`),
  KEY `inv_control_stock_detail_inv_deposito_id_foreign` (`inv_deposito_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_deposito_id_foreign` FOREIGN KEY (`inv_deposito_id`) REFERENCES `inv_depositos` (`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_depositos`
--

CREATE TABLE `inv_depositos` (
  `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',
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_depositos_person_id_foreign` (`person_id`),
  CONSTRAINT `inv_depositos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_depositos`
--


--
-- Table structure for table `inv_descarga_details`
--

CREATE TABLE `inv_descarga_details` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `inv_descarga_id` bigint(20) unsigned DEFAULT NULL,
  `inv_producto_id` bigint(20) unsigned DEFAULT NULL,
  `inv_deposito_id` bigint(20) unsigned DEFAULT NULL,
  `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_descarga_details_person_id_foreign` (`person_id`),
  KEY `inv_descarga_details_inv_producto_id_foreign` (`inv_producto_id`),
  KEY `inv_descarga_details_inv_descarga_id_foreign` (`inv_descarga_id`),
  KEY `inv_descarga_details_inv_deposito_id_foreign` (`inv_deposito_id`),
  CONSTRAINT `inv_descarga_details_inv_deposito_id_foreign` FOREIGN KEY (`inv_deposito_id`) REFERENCES `inv_depositos` (`id`),
  CONSTRAINT `inv_descarga_details_inv_descarga_id_foreign` FOREIGN KEY (`inv_descarga_id`) REFERENCES `inv_descargas` (`id`),
  CONSTRAINT `inv_descarga_details_inv_producto_id_foreign` FOREIGN KEY (`inv_producto_id`) REFERENCES `inv_productos` (`id`),
  CONSTRAINT `inv_descarga_details_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_descarga_details`
--


--
-- Table structure for table `inv_descargas`
--

CREATE TABLE `inv_descargas` (
  `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_gastos_tipo_id` bigint(20) unsigned DEFAULT NULL,
  `syj_empleado_id` int(10) unsigned DEFAULT NULL,
  `comentario` text COLLATE utf8mb4_unicode_ci,
  `fecha` datetime NOT NULL DEFAULT '2023-03-15 23:51:57',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_descargas_person_id_foreign` (`person_id`),
  KEY `inv_descargas_inv_orden_trabajo_gastos_tipo_id_foreign` (`inv_orden_trabajo_gastos_tipo_id`),
  KEY `inv_descargas_syj_empleado_id_foreign` (`syj_empleado_id`),
  CONSTRAINT `inv_descargas_inv_orden_trabajo_gastos_tipo_id_foreign` FOREIGN KEY (`inv_orden_trabajo_gastos_tipo_id`) REFERENCES `inv_orden_trabajo_gastos_tipos` (`id`),
  CONSTRAINT `inv_descargas_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `inv_descargas_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_descargas`
--


--
-- 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-07-28 13:01:26',NULL),(2,NULL,'Impuestos Asociados','impuestos_asociados','card_info',6,1,NULL,'2022-07-28 13:01:26',NULL),(3,NULL,'Informacion de Liquidacion','informacion_de_liquidacion','card_info',7,1,NULL,'2022-07-28 13:01:26',NULL),(4,NULL,'Cantidad Ventas del Mes','cantidad_ventas_del_mes','card',1,1,NULL,'2022-07-28 13:01:26',NULL),(5,NULL,'Total Facturado En El Mes','total_facturado_en_el_mes','card',2,1,NULL,'2022-07-28 13:01:26',NULL),(6,NULL,'Total Facturado En El Dia','total_facturado_en_el_dia','card',3,1,NULL,'2022-07-28 13:01:26',NULL),(7,NULL,'Total Facturado En El Año','total_facturado_en_el_anio','card',4,1,NULL,'2022-07-28 13:01:26',NULL),(8,NULL,'Facturacion Mensual','facturacion_mensual','grafico',8,1,NULL,'2022-07-28 13:01:26',NULL),(9,NULL,'Proyeccion de Ganancias','proyeccion_de_ganancias','tabla',9,1,NULL,'2022-07-28 13:01:26',NULL),(10,NULL,'Posicion IVA','posicion_de_iva','tabla',10,1,NULL,'2022-07-28 13:01:26',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 AUTO_INCREMENT=60 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `inv_indicadores_persons` VALUES (1,NULL,40719,9,0.00,NULL,'2022-08-29 10:17:38','2022-08-29 10:17:38'),(2,NULL,40719,1,0.00,NULL,'2022-08-29 10:17:47','2022-08-29 10:17:47'),(3,NULL,40719,9,0.00,NULL,'2022-08-29 10:17:47','2022-08-29 10:17:47'),(4,NULL,40719,9,0.00,NULL,'2022-09-01 11:02:33','2022-09-01 11:02:33'),(5,NULL,40719,1,0.00,NULL,'2023-12-27 12:03:25','2023-12-27 12:03:25'),(6,NULL,40729,4,0.00,NULL,'2022-09-02 20:39:32','2022-09-02 20:39:32'),(7,NULL,40729,3,0.00,NULL,'2022-09-02 20:40:10','2022-09-02 20:40:10'),(8,NULL,40729,3,0.00,NULL,'2022-09-02 20:40:16','2022-09-02 20:40:16'),(9,NULL,40729,9,0.00,NULL,'2022-09-02 20:40:16','2022-09-02 20:40:16'),(10,NULL,40729,3,0.00,NULL,'2022-09-07 13:22:08','2022-09-07 13:22:08'),(11,NULL,40729,9,0.00,NULL,'2022-09-07 13:22:08','2022-09-07 13:22:08'),(12,NULL,40729,10,0.00,NULL,'2022-09-07 13:22:08','2022-09-07 13:22:08'),(13,NULL,40729,1,0.00,NULL,NULL,NULL),(14,NULL,40729,3,0.00,NULL,NULL,NULL),(15,NULL,40729,9,0.00,NULL,NULL,NULL),(16,NULL,40729,10,0.00,NULL,NULL,NULL),(17,NULL,40760,4,0.00,NULL,'2022-11-18 11:19:07','2022-11-18 11:19:07'),(18,NULL,40760,2,0.00,NULL,'2023-07-13 11:38:14','2023-07-13 11:38:14'),(19,NULL,40760,4,0.00,NULL,'2023-07-13 11:38:14','2023-07-13 11:38:14'),(20,NULL,40762,5,0.00,NULL,'2022-11-18 14:26:22','2022-11-18 14:26:22'),(21,NULL,40762,2,0.00,NULL,'2022-11-18 14:26:41','2022-11-18 14:26:41'),(22,NULL,40762,5,0.00,NULL,'2022-11-18 14:26:41','2022-11-18 14:26:41'),(23,NULL,40762,2,0.00,NULL,NULL,NULL),(24,NULL,40762,5,0.00,NULL,NULL,NULL),(25,NULL,40762,10,0.00,NULL,NULL,NULL),(26,NULL,40760,2,0.00,NULL,'2023-07-13 11:38:20','2023-07-13 11:38:20'),(27,NULL,40760,4,0.00,NULL,'2023-07-13 11:38:20','2023-07-13 11:38:20'),(28,NULL,40760,8,0.00,NULL,'2023-07-13 11:38:20','2023-07-13 11:38:20'),(29,NULL,40760,2,0.00,NULL,NULL,NULL),(30,NULL,40760,4,0.00,NULL,NULL,NULL),(31,NULL,40760,8,0.00,NULL,NULL,NULL),(32,NULL,40760,10,0.00,NULL,NULL,NULL),(33,NULL,43043,4,0.00,NULL,'2023-11-21 20:44:22','2023-11-21 20:44:22'),(34,NULL,43043,4,0.00,NULL,'2023-11-21 20:44:54','2023-11-21 20:44:54'),(35,NULL,43043,8,0.00,NULL,'2023-11-21 20:44:54','2023-11-21 20:44:54'),(36,NULL,43043,4,0.00,NULL,'2023-11-21 20:45:35','2023-11-21 20:45:35'),(37,NULL,43043,5,0.00,NULL,'2023-11-21 20:45:35','2023-11-21 20:45:35'),(38,NULL,43043,8,0.00,NULL,'2023-11-21 20:45:35','2023-11-21 20:45:35'),(39,NULL,43043,4,0.00,NULL,'2023-11-21 20:45:50','2023-11-21 20:45:50'),(40,NULL,43043,5,0.00,NULL,'2023-11-21 20:45:50','2023-11-21 20:45:50'),(41,NULL,43043,4,0.00,NULL,'2023-11-21 20:46:20','2023-11-21 20:46:20'),(42,NULL,43043,5,0.00,NULL,'2023-11-21 20:46:20','2023-11-21 20:46:20'),(43,NULL,43043,7,0.00,NULL,'2023-11-21 20:46:20','2023-11-21 20:46:20'),(44,NULL,43043,5,0.00,NULL,'2023-11-21 20:48:19','2023-11-21 20:48:19'),(45,NULL,43043,7,0.00,NULL,'2023-11-21 20:48:19','2023-11-21 20:48:19'),(46,NULL,43043,5,0.00,NULL,'2023-11-21 20:48:33','2023-11-21 20:48:33'),(47,NULL,43043,7,0.00,NULL,'2023-11-21 20:48:33','2023-11-21 20:48:33'),(48,NULL,43043,8,0.00,NULL,'2023-11-21 20:48:33','2023-11-21 20:48:33'),(49,NULL,43043,7,0.00,NULL,'2023-11-21 20:48:38','2023-11-21 20:48:38'),(50,NULL,43043,8,0.00,NULL,'2023-11-21 20:48:38','2023-11-21 20:48:38'),(51,NULL,43043,7,0.00,NULL,'2023-11-21 20:48:45','2023-11-21 20:48:45'),(52,NULL,43043,5,0.00,NULL,NULL,NULL),(53,NULL,43043,7,0.00,NULL,NULL,NULL),(54,NULL,40719,1,0.00,NULL,'2023-12-27 12:03:28','2023-12-27 12:03:28'),(55,NULL,40719,5,0.00,NULL,'2023-12-27 12:03:28','2023-12-27 12:03:28'),(56,NULL,40719,1,0.00,NULL,'2023-12-27 12:03:31','2023-12-27 12:03:31'),(57,NULL,40719,4,0.00,NULL,'2023-12-27 12:03:46','2023-12-27 12:03:46'),(58,NULL,40719,4,0.00,NULL,NULL,NULL),(59,NULL,40719,5,0.00,NULL,NULL,NULL);

--
-- 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,
  `prod_variant_id` bigint(20) unsigned DEFAULT NULL,
  `inv_deposito_id` bigint(20) unsigned DEFAULT 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`),
  KEY `inv_ing_egr_stock_detail_inv_deposito_id_foreign` (`inv_deposito_id`),
  KEY `inv_ing_egr_stock_detail_prod_variant_id_foreign` (`prod_variant_id`),
  CONSTRAINT `inv_ing_egr_stock_detail_inv_deposito_id_foreign` FOREIGN KEY (`inv_deposito_id`) REFERENCES `inv_depositos` (`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`),
  CONSTRAINT `inv_ing_egr_stock_detail_prod_variant_id_foreign` FOREIGN KEY (`prod_variant_id`) REFERENCES `prod_variants` (`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,
  `cliente_id` int(10) unsigned DEFAULT NULL COMMENT 'Cliente específico al que aplica la lista (opcional)',
  `descuento_general` decimal(10,2) DEFAULT NULL COMMENT 'Porcentaje de descuento general para todos los productos',
  `incremento_general` decimal(10,2) DEFAULT NULL COMMENT 'Porcentaje de incremento general para todos los productos',
  `aplicar_redondeo` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Si se debe aplicar redondeo al precio calculado',
  `redondeo_a` decimal(10,2) DEFAULT NULL COMMENT 'Múltiplo al cual redondear el precio (ej: 10, 50, 100)',
  `fecha_desde` date DEFAULT NULL COMMENT 'Fecha de inicio de vigencia',
  `fecha_hasta` date DEFAULT NULL COMMENT 'Fecha de fin de vigencia',
  `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`),
  KEY `inv_lista_de_precios_cliente_id_index` (`cliente_id`),
  KEY `inv_lista_de_precios_fecha_desde_index` (`fecha_desde`),
  KEY `inv_lista_de_precios_fecha_hasta_index` (`fecha_hasta`),
  CONSTRAINT `inv_lista_de_precios_cliente_id_foreign` FOREIGN KEY (`cliente_id`) REFERENCES `persons` (`id`) ON DELETE CASCADE,
  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_lista_de_precios_productos`
--

CREATE TABLE `inv_lista_de_precios_productos` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `inv_lista_de_precio_id` bigint(20) unsigned NOT NULL,
  `inv_producto_id` bigint(20) unsigned NOT NULL,
  `precio_sin_iva` decimal(15,2) DEFAULT NULL COMMENT 'Override del precio sin IVA (si es null, se calcula desde precio base)',
  `precio_final` decimal(15,2) DEFAULT NULL COMMENT 'Override del precio final (si es null, se calcula desde precio base)',
  `descuento_porcentaje` decimal(10,2) DEFAULT NULL COMMENT 'Porcentaje de descuento sobre precio base del producto',
  `incremento_porcentaje` decimal(10,2) DEFAULT NULL COMMENT 'Porcentaje de incremento sobre precio base del producto',
  `margen` decimal(10,2) DEFAULT NULL COMMENT 'Override del margen para recalcular precio',
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `unique_lista_producto` (`inv_lista_de_precio_id`,`inv_producto_id`),
  KEY `inv_lista_de_precios_productos_habilitado_index` (`habilitado`),
  KEY `inv_lista_de_precios_productos_inv_producto_id_habilitado_index` (`inv_producto_id`,`habilitado`),
  CONSTRAINT `inv_lista_de_precios_productos_inv_lista_de_precio_id_foreign` FOREIGN KEY (`inv_lista_de_precio_id`) REFERENCES `inv_lista_de_precios` (`id`) ON DELETE CASCADE,
  CONSTRAINT `inv_lista_de_precios_productos_inv_producto_id_foreign` FOREIGN KEY (`inv_producto_id`) REFERENCES `inv_productos` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_lista_de_precios_productos`
--


--
-- Table structure for table `inv_orden_trabajo_clasificacion`
--

CREATE TABLE `inv_orden_trabajo_clasificacion` (
  `id` int(10) 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_clasificacion_person_id_foreign` (`person_id`),
  CONSTRAINT `inv_orden_trabajo_clasificacion_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_clasificacion`
--


--
-- 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_files`
--

CREATE TABLE `inv_orden_trabajo_files` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `inv_orden_trabajo_id` bigint(20) unsigned DEFAULT NULL,
  `path` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `original_name` text 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_orden_trabajo_files_inv_orden_trabajo_id_foreign` (`inv_orden_trabajo_id`),
  CONSTRAINT `inv_orden_trabajo_files_inv_orden_trabajo_id_foreign` FOREIGN KEY (`inv_orden_trabajo_id`) REFERENCES `inv_orden_trabajos` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_orden_trabajo_files`
--


--
-- 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-07-28 13:01:24',
  `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,
  `fecha` datetime NOT NULL DEFAULT '2023-08-15 23:44:27',
  `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,
  `inv_ot_hora_disponible_id` bigint(20) unsigned NOT NULL,
  `cantidad` decimal(16,2) NOT NULL DEFAULT '0.00',
  `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_inv_ot_hora_disponible_id_foreign` (`inv_ot_hora_disponible_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_inv_ot_hora_disponible_id_foreign` FOREIGN KEY (`inv_ot_hora_disponible_id`) REFERENCES `inv_orden_trabajo_horas_disponibles` (`id`),
  CONSTRAINT `inv_orden_trabajo_horas_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`
--


--
-- Table structure for table `inv_orden_trabajo_horas_dispo`
--

CREATE TABLE `inv_orden_trabajo_horas_dispo` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `cargar_asignar` int(10) unsigned NOT NULL DEFAULT '1',
  `person_id` int(10) unsigned NOT NULL,
  `fecha` datetime NOT NULL DEFAULT '2023-08-22 21:55:25',
  `dc_estado_id` bigint(20) unsigned NOT NULL,
  `dc_firma_id` bigint(20) unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_orden_trabajo_horas_dispo_person_id_foreign` (`person_id`),
  KEY `inv_orden_trabajo_horas_dispo_dc_estado_id_foreign` (`dc_estado_id`),
  KEY `inv_orden_trabajo_horas_dispo_dc_firma_id_foreign` (`dc_firma_id`),
  CONSTRAINT `inv_orden_trabajo_horas_dispo_dc_estado_id_foreign` FOREIGN KEY (`dc_estado_id`) REFERENCES `dc_estados` (`id`),
  CONSTRAINT `inv_orden_trabajo_horas_dispo_dc_firma_id_foreign` FOREIGN KEY (`dc_firma_id`) REFERENCES `dc_firmas` (`id`),
  CONSTRAINT `inv_orden_trabajo_horas_dispo_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_dispo`
--


--
-- Table structure for table `inv_orden_trabajo_horas_disponibles`
--

CREATE TABLE `inv_orden_trabajo_horas_disponibles` (
  `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_horas_dispo_id` bigint(20) unsigned NOT NULL,
  `inv_orden_trabajo_id` bigint(20) unsigned DEFAULT NULL,
  `fecha` datetime NOT NULL DEFAULT '2023-08-15 23:44:27',
  `inv_orden_trabajo_horas_tipo_id` bigint(20) unsigned DEFAULT NULL,
  `cantidad` 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_disponibles_person_id_foreign` (`person_id`),
  KEY `inv_orden_trabajo_horas_disponibles_inv_orden_trabajo_id_foreign` (`inv_orden_trabajo_id`),
  KEY `inv_ot_hs_tipo_dis` (`inv_orden_trabajo_horas_tipo_id`),
  KEY `inv_ot_horas_dispo_id` (`inv_orden_trabajo_horas_dispo_id`),
  CONSTRAINT `inv_orden_trabajo_horas_disponibles_inv_orden_trabajo_id_foreign` FOREIGN KEY (`inv_orden_trabajo_id`) REFERENCES `inv_orden_trabajos` (`id`),
  CONSTRAINT `inv_orden_trabajo_horas_disponibles_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `inv_ot_horas_dispo_id` FOREIGN KEY (`inv_orden_trabajo_horas_dispo_id`) REFERENCES `inv_orden_trabajo_horas_dispo` (`id`),
  CONSTRAINT `inv_ot_hs_tipo_dis` FOREIGN KEY (`inv_orden_trabajo_horas_tipo_id`) REFERENCES `inv_orden_trabajo_horas_tipos` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_orden_trabajo_horas_disponibles`
--


--
-- 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,
  `syj_centros_costo_id` int(10) unsigned NOT NULL,
  `valor` decimal(16,2) NOT NULL DEFAULT '1.00',
  `cantidad_disponible` decimal(16,2) NOT NULL DEFAULT '0.00',
  `importe_disponible` decimal(16,2) NOT NULL DEFAULT '0.00',
  `show_para_produccion` tinyint(1) NOT NULL DEFAULT '1',
  `show_para_horas` 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`),
  KEY `inv_orden_trabajo_horas_tipos_syj_centros_costo_id_foreign` (`syj_centros_costo_id`),
  CONSTRAINT `inv_orden_trabajo_horas_tipos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `inv_orden_trabajo_horas_tipos_syj_centros_costo_id_foreign` FOREIGN KEY (`syj_centros_costo_id`) REFERENCES `syj_centros_costos` (`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,
  `moneda_id` int(10) unsigned NOT NULL DEFAULT '1',
  `cotizacion` decimal(16,2) NOT NULL DEFAULT '0.00',
  `dc_orden_id` bigint(20) unsigned DEFAULT NULL,
  `fecha` datetime NOT NULL DEFAULT '2022-07-28 13:01:24',
  `cantidades` decimal(16,2) NOT NULL DEFAULT '0.00',
  `importe` decimal(16,2) NOT NULL DEFAULT '1.00',
  `total` decimal(16,2) NOT NULL DEFAULT '1.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`),
  KEY `inv_orden_trabajo_productos_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `inv_orden_trabajo_productos_moneda_id_foreign` (`moneda_id`),
  CONSTRAINT `inv_orden_trabajo_productos_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`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_moneda_id_foreign` FOREIGN KEY (`moneda_id`) REFERENCES `monedas` (`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_trabajo_servicios`
--

CREATE TABLE `inv_orden_trabajo_servicios` (
  `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,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `dc_orden_detail_id` bigint(20) unsigned NOT NULL,
  `fecha` datetime NOT NULL DEFAULT '2023-08-14 22:34:57',
  `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_servicios_person_id_foreign` (`person_id`),
  KEY `inv_orden_trabajo_servicios_inv_orden_trabajo_id_foreign` (`inv_orden_trabajo_id`),
  KEY `inv_orden_trabajo_servicios_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `inv_orden_trabajo_servicios_dc_orden_detail_id_foreign` (`dc_orden_detail_id`),
  CONSTRAINT `inv_orden_trabajo_servicios_dc_orden_detail_id_foreign` FOREIGN KEY (`dc_orden_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `inv_orden_trabajo_servicios_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `inv_orden_trabajo_servicios_inv_orden_trabajo_id_foreign` FOREIGN KEY (`inv_orden_trabajo_id`) REFERENCES `inv_orden_trabajos` (`id`),
  CONSTRAINT `inv_orden_trabajo_servicios_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_servicios`
--


--
-- Table structure for table `inv_orden_trabajo_tareas`
--

CREATE TABLE `inv_orden_trabajo_tareas` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `fecha` datetime NOT NULL DEFAULT '2023-09-14 22:00:38',
  `person_id` int(10) unsigned NOT NULL,
  `inv_orden_trabajo_id` bigint(20) unsigned NOT NULL,
  `syj_centro_costo_id` int(10) unsigned NOT NULL,
  `syj_empleado_id` int(10) unsigned NOT NULL,
  `descripcion` longtext COLLATE utf8mb4_unicode_ci,
  `horas_estimadas` decimal(16,2) DEFAULT NULL,
  `is_terminada` 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_trabajo_tareas_person_id_foreign` (`person_id`),
  KEY `inv_orden_trabajo_tareas_inv_orden_trabajo_id_foreign` (`inv_orden_trabajo_id`),
  KEY `inv_orden_trabajo_tareas_syj_centro_costo_id_foreign` (`syj_centro_costo_id`),
  KEY `inv_orden_trabajo_tareas_syj_empleado_id_foreign` (`syj_empleado_id`),
  CONSTRAINT `inv_orden_trabajo_tareas_inv_orden_trabajo_id_foreign` FOREIGN KEY (`inv_orden_trabajo_id`) REFERENCES `inv_orden_trabajos` (`id`),
  CONSTRAINT `inv_orden_trabajo_tareas_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `inv_orden_trabajo_tareas_syj_centro_costo_id_foreign` FOREIGN KEY (`syj_centro_costo_id`) REFERENCES `syj_centros_costos` (`id`),
  CONSTRAINT `inv_orden_trabajo_tareas_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_tareas`
--


--
-- 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,
  `inv_ot_clasificacion_id` int(10) unsigned DEFAULT NULL,
  `direccion` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `latitud` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `longitud` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `patente` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `rodado_id` bigint(20) unsigned DEFAULT NULL,
  `fecha` datetime NOT NULL DEFAULT '2022-07-28 13:01:24',
  `fecha_estimada` datetime DEFAULT NULL,
  `fecha_cierre` datetime DEFAULT NULL,
  `numero` int(10) unsigned NOT NULL,
  `responsable` text COLLATE utf8mb4_unicode_ci,
  `syj_empleado_id` int(10) unsigned DEFAULT NULL,
  `responsable_emp_id` int(10) unsigned DEFAULT 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`),
  KEY `inv_orden_trabajos_inv_ot_clasificacion_id_foreign` (`inv_ot_clasificacion_id`),
  KEY `inv_orden_trabajos_rodado_id_foreign` (`rodado_id`),
  KEY `inv_orden_trabajos_syj_empleado_id_foreign` (`syj_empleado_id`),
  KEY `inv_orden_trabajos_responsable_emp_id_foreign` (`responsable_emp_id`),
  CONSTRAINT `inv_orden_trabajos_inv_ot_clasificacion_id_foreign` FOREIGN KEY (`inv_ot_clasificacion_id`) REFERENCES `inv_orden_trabajo_clasificacion` (`id`),
  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`),
  CONSTRAINT `inv_orden_trabajos_responsable_emp_id_foreign` FOREIGN KEY (`responsable_emp_id`) REFERENCES `syj_empleados` (`id`),
  CONSTRAINT `inv_orden_trabajos_rodado_id_foreign` FOREIGN KEY (`rodado_id`) REFERENCES `rodados` (`id`),
  CONSTRAINT `inv_orden_trabajos_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_trabajos`
--


--
-- Table structure for table `inv_ot_devoluciones`
--

CREATE TABLE `inv_ot_devoluciones` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `inv_ot_id` bigint(20) unsigned NOT NULL,
  `fecha` datetime NOT NULL DEFAULT '2025-03-17 01:09:51',
  `descripcion` longtext COLLATE utf8mb4_unicode_ci,
  `estado` tinyint(1) NOT NULL DEFAULT '0',
  `firma` 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_ot_devoluciones_person_id_foreign` (`person_id`),
  KEY `inv_ot_devoluciones_inv_ot_id_foreign` (`inv_ot_id`),
  CONSTRAINT `inv_ot_devoluciones_inv_ot_id_foreign` FOREIGN KEY (`inv_ot_id`) REFERENCES `inv_orden_trabajos` (`id`),
  CONSTRAINT `inv_ot_devoluciones_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_ot_devoluciones`
--


--
-- Table structure for table `inv_ot_horas_importe_dispo`
--

CREATE TABLE `inv_ot_horas_importe_dispo` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `fecha` datetime NOT NULL DEFAULT '2023-09-12 22:31:22',
  `dc_estado_id` bigint(20) unsigned NOT NULL,
  `dc_firma_id` bigint(20) unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_ot_horas_importe_dispo_person_id_foreign` (`person_id`),
  KEY `inv_ot_horas_importe_dispo_dc_estado_id_foreign` (`dc_estado_id`),
  KEY `inv_ot_horas_importe_dispo_dc_firma_id_foreign` (`dc_firma_id`),
  CONSTRAINT `inv_ot_horas_importe_dispo_dc_estado_id_foreign` FOREIGN KEY (`dc_estado_id`) REFERENCES `dc_estados` (`id`),
  CONSTRAINT `inv_ot_horas_importe_dispo_dc_firma_id_foreign` FOREIGN KEY (`dc_firma_id`) REFERENCES `dc_firmas` (`id`),
  CONSTRAINT `inv_ot_horas_importe_dispo_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_ot_horas_importe_dispo`
--


--
-- Table structure for table `inv_ot_horas_importe_disponible`
--

CREATE TABLE `inv_ot_horas_importe_disponible` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `inv_ot_horas_importe_dispo_id` bigint(20) unsigned NOT NULL,
  `inv_orden_trabajo_horas_tipo_id` bigint(20) unsigned NOT NULL,
  `transactionable_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `transactionable_id` int(10) unsigned 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 `inv_ot_h_imp_dispo_id` (`inv_ot_horas_importe_dispo_id`),
  KEY `inv_ot_h_tipo_id` (`inv_orden_trabajo_horas_tipo_id`),
  CONSTRAINT `inv_ot_h_imp_dispo_id` FOREIGN KEY (`inv_ot_horas_importe_dispo_id`) REFERENCES `inv_ot_horas_importe_dispo` (`id`),
  CONSTRAINT `inv_ot_h_tipo_id` FOREIGN KEY (`inv_orden_trabajo_horas_tipo_id`) REFERENCES `inv_orden_trabajo_horas_tipos` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_ot_horas_importe_disponible`
--


--
-- Table structure for table `inv_ot_link`
--

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

--
-- Dumping data for table `inv_ot_link`
--


--
-- Table structure for table `inv_ot_link_facts`
--

CREATE TABLE `inv_ot_link_facts` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `inv_ot_link_id` bigint(20) unsigned NOT 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_ot_link_facts_inv_ot_link_id_foreign` (`inv_ot_link_id`),
  KEY `inv_ot_link_facts_fact_elec_receipt_id_foreign` (`fact_elec_receipt_id`),
  CONSTRAINT `inv_ot_link_facts_fact_elec_receipt_id_foreign` FOREIGN KEY (`fact_elec_receipt_id`) REFERENCES `fact_elec_receipts` (`id`),
  CONSTRAINT `inv_ot_link_facts_inv_ot_link_id_foreign` FOREIGN KEY (`inv_ot_link_id`) REFERENCES `inv_ot_link` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_ot_link_facts`
--


--
-- Table structure for table `inv_ot_link_ots`
--

CREATE TABLE `inv_ot_link_ots` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `inv_ot_link_id` bigint(20) unsigned NOT NULL,
  `inv_ot_id` bigint(20) unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_ot_link_ots_inv_ot_link_id_foreign` (`inv_ot_link_id`),
  KEY `inv_ot_link_ots_inv_ot_id_foreign` (`inv_ot_id`),
  CONSTRAINT `inv_ot_link_ots_inv_ot_id_foreign` FOREIGN KEY (`inv_ot_id`) REFERENCES `inv_orden_trabajos` (`id`),
  CONSTRAINT `inv_ot_link_ots_inv_ot_link_id_foreign` FOREIGN KEY (`inv_ot_link_id`) REFERENCES `inv_ot_link` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_ot_link_ots`
--


--
-- Table structure for table `inv_ots_facturadas`
--

CREATE TABLE `inv_ots_facturadas` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `inv_ot_id` bigint(20) unsigned NOT NULL,
  `fact_elec_receipt_id` int(11) DEFAULT NULL,
  `receipt_id` int(10) unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_ots_facturadas_inv_ot_id_foreign` (`inv_ot_id`),
  KEY `inv_ots_facturadas_fact_elec_receipt_id_foreign` (`fact_elec_receipt_id`),
  KEY `inv_ots_facturadas_receipt_id_foreign` (`receipt_id`),
  CONSTRAINT `inv_ots_facturadas_inv_ot_id_foreign` FOREIGN KEY (`inv_ot_id`) REFERENCES `inv_orden_trabajos` (`id`),
  CONSTRAINT `inv_ots_facturadas_receipt_id_foreign` FOREIGN KEY (`receipt_id`) REFERENCES `receipts` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_ots_facturadas`
--


--
-- Table structure for table `inv_ots_presupuestos`
--

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

--
-- Dumping data for table `inv_ots_presupuestos`
--


--
-- 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,
  `prod_variant_id` bigint(20) unsigned DEFAULT NULL,
  `inv_deposito_id` bigint(20) unsigned DEFAULT 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`),
  KEY `inv_product_receipt_inv_deposito_id_foreign` (`inv_deposito_id`),
  KEY `inv_product_receipt_prod_variant_id_foreign` (`prod_variant_id`),
  CONSTRAINT `inv_product_receipt_inv_deposito_id_foreign` FOREIGN KEY (`inv_deposito_id`) REFERENCES `inv_depositos` (`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_prod_variant_id_foreign` FOREIGN KEY (`prod_variant_id`) REFERENCES `prod_variants` (`id`) ON DELETE CASCADE,
  CONSTRAINT `inv_product_receipt_type_id_foreign` FOREIGN KEY (`type_id`) REFERENCES `types` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_product_receipt`
--


--
-- Table structure for table `inv_producto_fotos`
--

CREATE TABLE `inv_producto_fotos` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `inv_producto_id` bigint(20) unsigned NOT NULL,
  `foto` text 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_producto_fotos_inv_producto_id_foreign` (`inv_producto_id`),
  CONSTRAINT `inv_producto_fotos_inv_producto_id_foreign` FOREIGN KEY (`inv_producto_id`) REFERENCES `inv_productos` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_producto_fotos`
--


--
-- Table structure for table `inv_producto_prioridad`
--

CREATE TABLE `inv_producto_prioridad` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `descripcion` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `deleted_at` timestamp NULL DEFAULT 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 `inv_producto_prioridad`
--

INSERT INTO `inv_producto_prioridad` VALUES (1,'Alta',1,NULL,NULL,NULL),(2,'Media',1,NULL,NULL,NULL),(3,'Baja',1,NULL,NULL,NULL);

--
-- Table structure for table `inv_productos`
--

CREATE TABLE `inv_productos` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT NULL,
  `is_old` tinyint(1) NOT NULL DEFAULT '0',
  `inv_producto_tipo_id` bigint(20) unsigned NOT NULL DEFAULT '1',
  `person_id` int(10) unsigned NOT NULL,
  `person_prov_id` int(10) unsigned DEFAULT NULL,
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `codigo_externo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `codigo_interno` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `fac_ele_unidad_medida_id` int(10) unsigned NOT NULL DEFAULT '8',
  `inv_rubro_sub_id` bigint(20) unsigned NOT NULL,
  `moneda_id` int(10) unsigned NOT NULL DEFAULT '1',
  `costo` decimal(16,2) NOT NULL DEFAULT '0.00',
  `margen` decimal(16,2) NOT NULL DEFAULT '0.00',
  `precio_sin_iva` decimal(16,2) NOT NULL DEFAULT '0.00',
  `system_tax_id` int(10) unsigned DEFAULT NULL,
  `iva` decimal(16,2) NOT NULL DEFAULT '0.00',
  `precio_final` decimal(16,2) NOT NULL DEFAULT '0.00',
  `inv_lista_de_precio_id` bigint(20) unsigned DEFAULT NULL,
  `inv_prioridad_id` bigint(20) unsigned NOT NULL DEFAULT '3',
  `foto` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `stock` decimal(16,2) NOT NULL DEFAULT '0.00',
  `stock_minimo` decimal(16,2) NOT NULL DEFAULT '0.00',
  `fecha_vto` datetime DEFAULT NULL,
  `sku` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `texto_corto` text COLLATE utf8mb4_unicode_ci,
  `texto_largo` text COLLATE utf8mb4_unicode_ci,
  `show_in_catalogo` tinyint(1) NOT NULL DEFAULT '0',
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_productos_person_id_foreign` (`person_id`),
  KEY `inv_productos_person_prov_id_foreign` (`person_prov_id`),
  KEY `inv_productos_fac_ele_unidad_medida_id_foreign` (`fac_ele_unidad_medida_id`),
  KEY `inv_productos_inv_rubro_sub_id_foreign` (`inv_rubro_sub_id`),
  KEY `inv_productos_system_tax_id_foreign` (`system_tax_id`),
  KEY `inv_productos_inv_lista_de_precio_id_foreign` (`inv_lista_de_precio_id`),
  KEY `inv_productos_inv_producto_tipo_id_foreign` (`inv_producto_tipo_id`),
  KEY `inv_productos_moneda_id_foreign` (`moneda_id`),
  KEY `inv_productos_inv_prioridad_id_foreign` (`inv_prioridad_id`),
  CONSTRAINT `inv_productos_fac_ele_unidad_medida_id_foreign` FOREIGN KEY (`fac_ele_unidad_medida_id`) REFERENCES `fac_elec_unidad_medidas` (`id`),
  CONSTRAINT `inv_productos_inv_lista_de_precio_id_foreign` FOREIGN KEY (`inv_lista_de_precio_id`) REFERENCES `inv_lista_de_precios` (`id`),
  CONSTRAINT `inv_productos_inv_prioridad_id_foreign` FOREIGN KEY (`inv_prioridad_id`) REFERENCES `inv_producto_prioridad` (`id`),
  CONSTRAINT `inv_productos_inv_producto_tipo_id_foreign` FOREIGN KEY (`inv_producto_tipo_id`) REFERENCES `inv_productos_tipos` (`id`),
  CONSTRAINT `inv_productos_inv_rubro_sub_id_foreign` FOREIGN KEY (`inv_rubro_sub_id`) REFERENCES `inv_rubros_sub` (`id`),
  CONSTRAINT `inv_productos_moneda_id_foreign` FOREIGN KEY (`moneda_id`) REFERENCES `monedas` (`id`),
  CONSTRAINT `inv_productos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `inv_productos_person_prov_id_foreign` FOREIGN KEY (`person_prov_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `inv_productos_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 `inv_productos`
--


--
-- Table structure for table `inv_productos_tipos`
--

CREATE TABLE `inv_productos_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=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_productos_tipos`
--

INSERT INTO `inv_productos_tipos` VALUES (1,NULL,'Unitario',1,NULL,NULL,NULL),(2,NULL,'Combo',1,NULL,NULL,NULL);

--
-- Table structure for table `inv_productos_ubicaciones`
--

CREATE TABLE `inv_productos_ubicaciones` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned DEFAULT NULL,
  `inv_product_id` bigint(20) unsigned NOT NULL,
  `inv_ubicacion_id` bigint(20) unsigned NOT NULL,
  `comentario` longtext COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_productos_ubicaciones_inv_product_id_foreign` (`inv_product_id`),
  KEY `inv_productos_ubicaciones_inv_ubicacion_id_foreign` (`inv_ubicacion_id`),
  KEY `inv_productos_ubicaciones_person_id_foreign` (`person_id`),
  CONSTRAINT `inv_productos_ubicaciones_inv_product_id_foreign` FOREIGN KEY (`inv_product_id`) REFERENCES `inv_productos` (`id`),
  CONSTRAINT `inv_productos_ubicaciones_inv_ubicacion_id_foreign` FOREIGN KEY (`inv_ubicacion_id`) REFERENCES `inv_ubicaciones` (`id`),
  CONSTRAINT `inv_productos_ubicaciones_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_productos_ubicaciones`
--


--
-- Table structure for table `inv_rubros`
--

CREATE TABLE `inv_rubros` (
  `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,
  `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_rubros_person_id_foreign` (`person_id`),
  CONSTRAINT `inv_rubros_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_rubros`
--


--
-- Table structure for table `inv_rubros_sub`
--

CREATE TABLE `inv_rubros_sub` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `inv_rubro_id` bigint(20) unsigned NOT NULL,
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_rubros_sub_person_id_foreign` (`person_id`),
  KEY `inv_rubros_sub_inv_rubro_id_foreign` (`inv_rubro_id`),
  CONSTRAINT `inv_rubros_sub_inv_rubro_id_foreign` FOREIGN KEY (`inv_rubro_id`) REFERENCES `inv_rubros` (`id`),
  CONSTRAINT `inv_rubros_sub_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_rubros_sub`
--


--
-- Table structure for table `inv_stock_movimientos`
--

CREATE TABLE `inv_stock_movimientos` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT NULL,
  `fecha` date DEFAULT '2025-03-18',
  `person_id` int(10) unsigned NOT NULL,
  `inv_product_id` bigint(20) unsigned NOT NULL,
  `prod_variant_id` bigint(20) unsigned DEFAULT NULL,
  `moneda_id` int(10) unsigned NOT NULL DEFAULT '1',
  `inv_deposito_id` bigint(20) unsigned DEFAULT NULL,
  `movimiento` decimal(16,2) NOT NULL DEFAULT '0.00',
  `stock` decimal(16,2) NOT NULL DEFAULT '0.00',
  `costo` decimal(16,2) NOT NULL DEFAULT '0.00',
  `precio_sin_iva` decimal(16,2) NOT NULL DEFAULT '0.00',
  `precio_final` decimal(16,2) NOT NULL DEFAULT '0.00',
  `transactionable_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `transactionable_id` bigint(20) unsigned NOT NULL,
  `detalle` 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 `account_transactions_morph` (`transactionable_type`,`transactionable_id`),
  KEY `inv_stock_movimientos_person_id_foreign` (`person_id`),
  KEY `inv_stock_movimientos_inv_product_id_foreign` (`inv_product_id`),
  KEY `inv_stock_movimientos_inv_deposito_id_foreign` (`inv_deposito_id`),
  KEY `inv_stock_movimientos_moneda_id_foreign` (`moneda_id`),
  KEY `inv_stock_movimientos_prod_variant_id_foreign` (`prod_variant_id`),
  CONSTRAINT `inv_stock_movimientos_inv_deposito_id_foreign` FOREIGN KEY (`inv_deposito_id`) REFERENCES `inv_depositos` (`id`),
  CONSTRAINT `inv_stock_movimientos_inv_product_id_foreign` FOREIGN KEY (`inv_product_id`) REFERENCES `inv_productos` (`id`),
  CONSTRAINT `inv_stock_movimientos_moneda_id_foreign` FOREIGN KEY (`moneda_id`) REFERENCES `monedas` (`id`),
  CONSTRAINT `inv_stock_movimientos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `inv_stock_movimientos_prod_variant_id_foreign` FOREIGN KEY (`prod_variant_id`) REFERENCES `prod_variants` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_stock_movimientos`
--


--
-- Table structure for table `inv_ubicaciones`
--

CREATE TABLE `inv_ubicaciones` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `inv_deposito_id` bigint(20) unsigned NOT NULL DEFAULT '1',
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_ubicaciones_person_id_foreign` (`person_id`),
  KEY `inv_ubicaciones_inv_deposito_id_foreign` (`inv_deposito_id`),
  CONSTRAINT `inv_ubicaciones_inv_deposito_id_foreign` FOREIGN KEY (`inv_deposito_id`) REFERENCES `inv_depositos` (`id`),
  CONSTRAINT `inv_ubicaciones_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_ubicaciones`
--


--
-- Table structure for table `iva_agrupacion`
--

CREATE TABLE `iva_agrupacion` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `type` int(11) NOT NULL,
  `ordr` int(11) NOT NULL,
  `total` decimal(16,2) NOT NULL DEFAULT '0.00',
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `iva_agrupacion`
--

INSERT INTO `iva_agrupacion` VALUES (1,1,1,0.00,'Operaciones con Responsables Inscriptos',1,NULL,NULL,NULL),(2,1,2,0.00,'Operaciones con Consumidores finales, Exentos y No alcanzados',1,NULL,NULL,NULL),(3,1,3,0.00,'Operaciones no gravadas y exentas',1,NULL,NULL,NULL),(4,1,4,0.00,'Credito fiscal a restituir',1,NULL,NULL,NULL),(5,2,5,0.00,'Debito fiscal a restituir',1,NULL,NULL,NULL),(6,2,6,0.00,'Total Credito Fiscal',1,NULL,NULL,NULL),(7,2,7,0.00,'Total Operaciones que no Generan Credito Fiscal',1,NULL,NULL,NULL),(8,1,8,0.00,'Operaciones con Monotributistas - Regimen Simmplificado',1,'2022-07-28 13:01:23','2022-07-28 13:01:23',NULL);

--
-- Table structure for table `iva_conditions`
--

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

--
-- Dumping data for table `iva_conditions`
--

INSERT INTO `iva_conditions` VALUES (1,'Monotributo',NULL,NULL),(2,'Responsable Inscripto',NULL,NULL),(3,'Otro',NULL,NULL);

--
-- Table structure for table `iva_creditos_tipos`
--

CREATE TABLE `iva_creditos_tipos` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `total` 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`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `iva_creditos_tipos`
--

INSERT INTO `iva_creditos_tipos` VALUES (1,0,'Compras de bienes (excepto bienes de uso)',0.00,1,NULL,NULL,NULL),(2,0,'Locaciones',0.00,1,NULL,NULL,NULL),(3,0,'Prestaciones de servicios',0.00,1,NULL,NULL,NULL),(4,0,'Inversiones de Bienes de Uso',0.00,1,NULL,NULL,NULL),(5,0,'Compras de bienes usados a consumidores finales',0.00,1,NULL,NULL,NULL),(6,0,'Tur IVA',0.00,1,NULL,NULL,NULL),(7,0,'Contribuciones de la Seguridad Social',0.00,1,NULL,NULL,NULL),(8,0,'Contribuciones de la Seguridad Social - Artículo 91 Ley 27.467',0.00,1,NULL,NULL,NULL),(9,0,'Otros Conceptos',0.00,1,NULL,NULL,NULL),(10,0,'Compras de Bienes en el Exterior',0.00,1,NULL,NULL,NULL),(11,0,'Compras de Servicios en el exterior - Impuesto ingresado a través de entidades Financieras',0.00,1,NULL,NULL,NULL),(12,0,'Compras de Servicios en el exterior - Impuesto ingresado por el responsable',0.00,1,NULL,NULL,NULL),(13,0,'Locaciones o prestaciones gravadas en el país realizadas por sujetos del exterior - Impuesto ingresado a través de entidades Financieras',0.00,1,NULL,NULL,NULL),(14,0,'Régimen especial de compensación para la estabilización de precios - Emergencia alimentaria - Ley 27.519',0.00,1,NULL,NULL,NULL);

--
-- Table structure for table `iva_per_regimenes`
--

CREATE TABLE `iva_per_regimenes` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `cod_regimen` int(11) NOT NULL,
  `descripcion` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `iva_per_regimenes`
--

INSERT INTO `iva_per_regimenes` VALUES (1,NULL,493,'Régimen de Percepción de IVA - Comercialización de Bienes y Servicios en el Mercado Interno',NULL,NULL,NULL);

--
-- Table structure for table `iva_ret_regimenes`
--

CREATE TABLE `iva_ret_regimenes` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `cod_regimen` int(11) NOT NULL,
  `descripcion` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `iva_ret_regimenes`
--

INSERT INTO `iva_ret_regimenes` VALUES (1,NULL,15,'USUARIOS DE SISTEMAS DE PAGO ELECTRONICO - INSCRIPTOS EN IVA - PAGOS EFECTUADOS POR CUALQUIER MEDIO EXCEPTO TARJETAS DE CREDITO',NULL,NULL,NULL),(2,NULL,16,'USUARIOS DE SISTEMAS DE PAGO ELECTRONICO - INSCRIPTOS EN IVA - PAGOS EFECTUADOS CON TARJETAS DE CREDITO ? SUJETOS ANEXO I RG N? 2854 Y ESTACIONES DE SERVICIO',NULL,NULL,NULL),(3,NULL,17,'USUARIOS DE SISTEMAS DE PAGO ELECTRONICO - INSCRIPTOS EN IVA - PAGOS EFECTUADOS CON TARJETAS DE CREDITO ? SUJETOS NO COMPRENDIDOS EN ANEXO I RG N? 2854',NULL,NULL,NULL),(4,NULL,18,'USUARIOS DE SISTEMAS DE PAGO ELECTRONICO - NO ACREDITEN CONDICION FRENTE AL IVA',NULL,NULL,NULL),(5,NULL,208,'INGRESOS OBTENIDOS POR LA PRODUCCION, REALIZACION Y DISTRIBUCION DE PROGRAMAS, PELICULAS Y/O GRABACIONES - ART. 8 INC. B) Y ART. 28 INC. F) DE INGRESOS OBTENIDOS POR LA PRODUCCION, REALIZACION Y DISTRIBUCION DE PROGRAMAS',NULL,NULL,NULL),(6,NULL,209,'INGRESOS OBTENIDOS POR LA COMERCIALIZACION DE ESPACIOS PUBLICITARIOS - ART. 8, INC. B) Y ART. 28 INC. G) DE LA LEY DE IVA.',NULL,NULL,NULL),(7,NULL,210,'SERVICIOS DE TRANSPORTE DE PASAJEROS, TERRESTRES, ACUATICOS O AEREOS - ART. 8 INC.B) Y ART. 28 INC. H) DE LA LEY DE IVA.',NULL,NULL,NULL),(8,NULL,211,'SERVICIOS DE ASISTENCIA SANITARIA MEDICA Y PARAMEDICA - ART. 8 INC. B) Y ART 28 INC. I) DE LA LEY DE IVA.',NULL,NULL,NULL),(9,NULL,212,'LOCACIONES O PRESTACIONES DE SERVICIOS, NO COMPRENDIDAS EN EL ART. 8, INC. B).',NULL,NULL,NULL),(10,NULL,214,'COMPRAVENTA DE COSAS MUEBLES Y LOCACIONES COMPRENDIDAS EN EL INCISO C) DEL ARTICULO 3? DE LA LEY DE IVA - ART. 8>, INC. A)',NULL,NULL,NULL),(11,NULL,215,'LOCACIONES VINCULADAS A LA OBTENCION DE CARNES Y DESPOJOS COMESTIBLES DE BOVINOS Y FRUTAS - ART. 8, INC. B) Y ART. 28, INC A) DE LA LEY DE IVA.',NULL,NULL,NULL),(12,NULL,216,'OBRAS, LOCACIONES Y PRESTACIONES OBTENCION DE ANIMALES VIVOS, FRUTAS, LEGUMBRES Y HORTALIZAS ART.8> INC.B Y ART.28> INC.B DE LA LEY DE IVA.',NULL,NULL,NULL),(13,NULL,217,'TRABAJOS SOBRE INMUEBLE AJENO - ART. 8 INC. B) Y ART. 28 INC. C) DE LA LEY DE IVA',NULL,NULL,NULL),(14,NULL,218,'INTERESES Y COMISIONES DE PRESTAMOS - ART. 8 INC. B) Y 28 INC. D) DE LA LEY DE IVA.',NULL,NULL,NULL),(15,NULL,219,'INGRESOS OBTENIDOS POR LAS EMPRESAS DE SERVICIOS COMPLEMENTARIOS (LEY 22.285) ART. 8 INC. B) Y ART 28 INC. E) DE LA LEY DE IVA',NULL,NULL,NULL),(16,NULL,225,'LOCACIONES VINCULADAS A LA OBTENCION DE CARNES Y DESPOJOS COMESTIBLES DE BOVINOS Y FRUTAS- ART. 8C)',NULL,NULL,NULL),(17,NULL,234,'IVA-RETENCION-OPERACIONES DE COMPRA-VENTA DE CHEQUES DE PAGO DIFERIDO Y CERTIFICADOS DE AVAL',NULL,NULL,NULL),(18,NULL,280,'PAGO DE HONORARIOS PROFESIONALES',NULL,NULL,NULL),(19,NULL,499,'FACTURA M-IVA-EMISION DE COMPROBANTES CON DISCRIMINACION DEL GRAVAMEN',NULL,NULL,NULL),(20,NULL,689,'VALES DE ALMUERZO',NULL,NULL,NULL),(21,NULL,690,'VALES DE ALMUERZO Y ALIMENTOS',NULL,NULL,NULL),(22,NULL,777,'IVA -Regimen de Retencion a Sujetos adheridos al Regimen Simplificado para Peque?os Contribuyentes.',NULL,NULL,NULL),(23,NULL,831,'Locacion de obras, locaciones y prestaciones de servicios realizados por empresas de limpieza de edificios, investigacion y seguridad, y recoleccion de residuos domiciliarios.',NULL,NULL,NULL),(24,NULL,966,'FACTURA A CON LEYENDA OPERACION SUJETA A RETENCION - IVA - EMISION DE COMPROBANTES CON DISCRIMINACION DEL GRAVAMEN',NULL,NULL,NULL);

--
