-- Table structure for table `person_activities`
--

CREATE TABLE `person_activities` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `activity_id` int(10) unsigned NOT NULL,
  `is_principal` 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 `person_activities_person_id_foreign` (`person_id`),
  KEY `person_activities_activity_id_foreign` (`activity_id`),
  CONSTRAINT `person_activities_activity_id_foreign` FOREIGN KEY (`activity_id`) REFERENCES `activities` (`id`),
  CONSTRAINT `person_activities_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=77 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_activities`
--

INSERT INTO `person_activities` VALUES (2,1,40719,1,0,'2022-08-05 09:30:32','2022-08-05 09:30:32',NULL),(24,7503,40722,804,1,'2023-01-03 11:42:51','2023-01-03 11:42:51',NULL),(27,7503,40721,843,1,'2023-02-01 16:08:53','2023-02-01 16:08:53',NULL),(65,7503,40720,843,1,'2023-06-02 10:08:42','2023-06-02 10:08:42',NULL),(69,7503,40787,578,1,'2025-07-07 11:21:09','2025-07-07 11:21:09',NULL),(70,7503,40723,605,1,'2025-07-07 11:21:24','2025-07-07 11:21:24',NULL),(71,7503,40723,789,0,'2025-07-07 11:21:24','2025-07-07 11:21:24',NULL),(76,7503,40788,710,1,'2025-11-20 20:02:53','2025-11-20 20:02:53',NULL);

--
-- Table structure for table `person_cobrador`
--

CREATE TABLE `person_cobrador` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_relationed` int(10) unsigned DEFAULT NULL,
  `cobrador_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 `person_cobrador_person_id_foreign` (`person_id`),
  KEY `person_cobrador_cobrador_id_foreign` (`cobrador_id`),
  KEY `person_cobrador_person_id_relationed_foreign` (`person_id_relationed`),
  CONSTRAINT `person_cobrador_cobrador_id_foreign` FOREIGN KEY (`cobrador_id`) REFERENCES `cobradores` (`id`),
  CONSTRAINT `person_cobrador_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `person_cobrador_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_cobrador`
--


--
-- Table structure for table `person_cobrador_history`
--

CREATE TABLE `person_cobrador_history` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_relationed` int(10) unsigned NOT NULL,
  `cobrador_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 `person_cobrador_history_person_id_foreign` (`person_id`),
  KEY `person_cobrador_history_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `person_cobrador_history_cobrador_id_foreign` (`cobrador_id`),
  CONSTRAINT `person_cobrador_history_cobrador_id_foreign` FOREIGN KEY (`cobrador_id`) REFERENCES `cobradores` (`id`),
  CONSTRAINT `person_cobrador_history_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `person_cobrador_history_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_cobrador_history`
--


--
-- Table structure for table `person_configurations`
--

CREATE TABLE `person_configurations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `period_id` int(10) unsigned DEFAULT NULL,
  `zone_id` int(10) unsigned DEFAULT NULL,
  `settle_calc_by_coef` int(11) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `active` int(10) unsigned DEFAULT NULL,
  `enviarMail` int(11) DEFAULT '1',
  `honorario` decimal(16,2) DEFAULT '0.00',
  `cta_cte_tesoreria_cuenta_id` int(10) unsigned DEFAULT NULL,
  `month_close` int(10) unsigned DEFAULT NULL,
  `iva_condition_id` int(10) unsigned DEFAULT NULL,
  `obligation_sell` int(10) unsigned DEFAULT NULL,
  `obligation_buy` int(10) unsigned DEFAULT NULL,
  `obligation_iva` int(10) unsigned DEFAULT NULL,
  `obligation_electronic_receipt` int(10) unsigned DEFAULT NULL,
  `obligation_iibb` int(10) unsigned DEFAULT NULL,
  `obligation_other_taxes` int(10) unsigned DEFAULT NULL,
  `liquidation_start_period` varchar(7) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `obligation_salaries` int(10) unsigned DEFAULT NULL,
  `empleada_domestica` tinyint(1) NOT NULL DEFAULT '0',
  `prorratear_iva` tinyint(1) NOT NULL DEFAULT '0',
  `is_itc` tinyint(1) NOT NULL DEFAULT '0',
  `priority_order` int(10) unsigned DEFAULT NULL,
  `person_id_administrador` int(11) DEFAULT NULL,
  `person_id_titular` int(11) DEFAULT NULL,
  `logo_path` varchar(180) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `certificado_afip_path` varchar(180) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `llave_afip_path` varchar(180) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `access_electronic_receipt` int(10) unsigned DEFAULT '0',
  `ruta_logo_fa` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `inicio_actividades` date DEFAULT NULL,
  `fecha_de_mono_to_ri` date DEFAULT NULL,
  `iibb` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `fe_leyenda` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `atencion_iva` tinyint(1) NOT NULL DEFAULT '0',
  `atencion_iva_comentario` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `atencion_iibb` tinyint(1) NOT NULL DEFAULT '0',
  `atencion_iibb_comentario` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `usar_multimoneda` tinyint(1) NOT NULL DEFAULT '0',
  `is_ag_per_ret` tinyint(1) NOT NULL DEFAULT '0',
  `deleted_at` timestamp NULL DEFAULT NULL,
  `barcode_columns` tinyint(3) unsigned NOT NULL DEFAULT '3' COMMENT 'Cantidad de columnas en la hoja de etiquetas',
  `barcode_rows` tinyint(3) unsigned NOT NULL DEFAULT '10' COMMENT 'Cantidad de filas en la hoja de etiquetas',
  `barcode_width_cm` decimal(4,2) NOT NULL DEFAULT '6.50' COMMENT 'Ancho de cada etiqueta en cm',
  `barcode_height_cm` decimal(4,2) NOT NULL DEFAULT '2.50' COMMENT 'Alto de cada etiqueta en cm',
  `barcode_page_size` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'A4' COMMENT 'Tamaño de página (A4, Letter, etc)',
  PRIMARY KEY (`id`),
  KEY `person_configurations_person_id_foreign` (`person_id`),
  KEY `person_configurations_period_id_foreign` (`period_id`),
  KEY `person_configurations_zone_id_foreign` (`zone_id`),
  KEY `person_configurations_iva_condition_id_foreign` (`iva_condition_id`),
  KEY `person_configurations_cta_cte_tesoreria_cuenta_id_foreign` (`cta_cte_tesoreria_cuenta_id`),
  CONSTRAINT `person_configurations_cta_cte_tesoreria_cuenta_id_foreign` FOREIGN KEY (`cta_cte_tesoreria_cuenta_id`) REFERENCES `cta_cte_tesoreria_cuentas` (`id`),
  CONSTRAINT `person_configurations_iva_condition_id_foreign` FOREIGN KEY (`iva_condition_id`) REFERENCES `iva_conditions` (`id`),
  CONSTRAINT `person_configurations_period_id_foreign` FOREIGN KEY (`period_id`) REFERENCES `periods` (`id`),
  CONSTRAINT `person_configurations_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `person_configurations_zone_id_foreign` FOREIGN KEY (`zone_id`) REFERENCES `zones` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_configurations`
--

INSERT INTO `person_configurations` VALUES (2,1,40719,NULL,NULL,0,'2022-08-05 09:30:32','2022-08-05 09:30:32',2,1,0.00,NULL,12,1,NULL,NULL,NULL,NULL,1,NULL,'2022-1',NULL,0,0,0,2,40719,40719,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,0,NULL,0,NULL,0,0,NULL,3,10,6.50,2.50,'A4'),(3,7503,40720,NULL,NULL,0,'2022-10-25 11:34:02','2023-06-02 10:08:42',2,1,0.00,NULL,12,2,1,1,1,1,4,NULL,'2022-08',1,0,0,0,1,40720,40720,NULL,NULL,NULL,0,NULL,'2003-11-01','0000-00-00','33708559399',NULL,0,NULL,0,NULL,0,0,NULL,3,10,6.50,2.50,'A4'),(4,7503,40721,NULL,NULL,0,'2022-10-25 11:41:53','2023-02-01 16:08:53',2,1,0.00,NULL,10,2,1,1,1,1,4,NULL,'2022-08',1,1,0,0,1,40721,40721,NULL,NULL,NULL,0,NULL,'2022-10-25',NULL,'30712187057',NULL,1,NULL,1,NULL,0,0,NULL,3,10,6.50,2.50,'A4'),(5,7503,40722,NULL,NULL,0,'2022-12-07 09:59:53','2023-01-03 11:42:51',2,1,0.00,NULL,12,2,1,1,1,1,4,NULL,'2022-11',1,0,0,0,1,40722,40722,NULL,NULL,NULL,0,NULL,'2015-04-01',NULL,'203444726737',NULL,0,NULL,0,NULL,0,0,NULL,3,10,6.50,2.50,'A4'),(6,7503,40723,NULL,NULL,0,'2023-02-06 10:09:59','2025-07-07 11:21:24',1,1,0.00,NULL,12,2,1,1,1,0,2,NULL,'2022-12',0,0,0,0,NULL,40723,40723,NULL,NULL,NULL,0,NULL,'2013-11-01','0000-00-00','20113213761',NULL,0,NULL,0,NULL,0,0,NULL,3,10,6.50,2.50,'A4'),(7,7503,40787,NULL,NULL,0,'2023-07-03 10:53:16','2025-07-07 11:21:09',1,1,0.00,NULL,12,2,1,1,1,0,3,NULL,'2023-06',1,0,0,0,NULL,40787,40787,NULL,NULL,NULL,0,NULL,'2025-07-07','0000-00-00',NULL,NULL,0,NULL,0,NULL,0,0,NULL,3,10,6.50,2.50,'A4'),(8,7503,40788,NULL,NULL,0,'2025-10-31 14:01:36','2025-11-20 20:02:53',2,1,0.00,NULL,12,2,0,0,0,0,3,NULL,'2024-01',0,0,0,0,NULL,40788,40788,NULL,NULL,NULL,0,NULL,'2025-11-01','0000-00-00',NULL,NULL,0,NULL,0,NULL,0,0,NULL,3,10,6.50,2.50,'A4');

--
-- Table structure for table `person_liquidators`
--

CREATE TABLE `person_liquidators` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `liquidator_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 `person_liquidators_person_id_foreign` (`person_id`),
  KEY `person_liquidators_liquidator_id_foreign` (`liquidator_id`),
  CONSTRAINT `person_liquidators_liquidator_id_foreign` FOREIGN KEY (`liquidator_id`) REFERENCES `liquidators` (`id`),
  CONSTRAINT `person_liquidators_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_liquidators`
--


--
-- Table structure for table `person_pagos_lugares`
--

CREATE TABLE `person_pagos_lugares` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_relationed` int(10) unsigned NOT NULL,
  `descripcion` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `contacto` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `direccion` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `localidad_id` int(10) unsigned DEFAULT NULL,
  `telefono` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `mail` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `horario_de_llamada` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `horario_de_pago` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `cobradores_metodo_id` bigint(20) unsigned DEFAULT NULL,
  `comentario` 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 `person_pagos_lugares_person_id_foreign` (`person_id`),
  KEY `person_pagos_lugares_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `person_pagos_lugares_localidad_id_foreign` (`localidad_id`),
  KEY `person_pagos_lugares_cobradores_metodo_id_foreign` (`cobradores_metodo_id`),
  CONSTRAINT `person_pagos_lugares_cobradores_metodo_id_foreign` FOREIGN KEY (`cobradores_metodo_id`) REFERENCES `cobradores_metodos` (`id`),
  CONSTRAINT `person_pagos_lugares_localidad_id_foreign` FOREIGN KEY (`localidad_id`) REFERENCES `localidad` (`id`),
  CONSTRAINT `person_pagos_lugares_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `person_pagos_lugares_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_pagos_lugares`
--


--
-- Table structure for table `person_pagos_promesas`
--

CREATE TABLE `person_pagos_promesas` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_relationed` int(10) unsigned NOT NULL,
  `person_pago_lugar_id` bigint(20) unsigned DEFAULT NULL,
  `fecha` datetime 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 `person_pagos_promesas_person_id_foreign` (`person_id`),
  KEY `person_pagos_promesas_person_id_relationed_foreign` (`person_id_relationed`),
  CONSTRAINT `person_pagos_promesas_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `person_pagos_promesas_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_pagos_promesas`
--


--
-- Table structure for table `person_pay_methods`
--

CREATE TABLE `person_pay_methods` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `pay_method_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 `person_pay_methods_person_id_foreign` (`person_id`),
  KEY `person_pay_methods_pay_method_id_foreign` (`pay_method_id`),
  CONSTRAINT `person_pay_methods_pay_method_id_foreign` FOREIGN KEY (`pay_method_id`) REFERENCES `pay_methods` (`id`),
  CONSTRAINT `person_pay_methods_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 `person_pay_methods`
--

INSERT INTO `person_pay_methods` VALUES (21,7503,40721,3,'2023-02-01 16:08:53','2023-02-01 16:08:53',NULL),(28,7503,40720,3,'2023-06-02 10:08:42','2023-06-02 10:08:42',NULL),(30,7503,40723,2,'2025-07-07 11:21:24','2025-07-07 11:21:24',NULL);

--
-- Table structure for table `person_relationeds`
--

CREATE TABLE `person_relationeds` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `client_id` int(10) unsigned NOT NULL,
  `cliente_relationed_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 `person_relationeds_person_id_foreign` (`person_id`),
  KEY `person_relationeds_client_id_foreign` (`client_id`),
  KEY `person_relationeds_cliente_relationed_id_foreign` (`cliente_relationed_id`),
  CONSTRAINT `person_relationeds_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `person_relationeds_cliente_relationed_id_foreign` FOREIGN KEY (`cliente_relationed_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `person_relationeds_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_relationeds`
--


--
-- Table structure for table `person_types`
--

CREATE TABLE `person_types` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `description` varchar(180) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `person_types_description_unique` (`description`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_types`
--

INSERT INTO `person_types` VALUES (1,NULL,'Persona Humana',NULL,NULL,NULL),(2,NULL,'Persona Juridica',NULL,NULL,NULL);

--
-- Table structure for table `person_zone_actividad`
--

CREATE TABLE `person_zone_actividad` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `zone_id` int(10) unsigned NOT NULL,
  `actividad_id` int(10) unsigned NOT NULL,
  `calculo_iibb` int(11) NOT NULL,
  `coef` decimal(16,5) NOT NULL DEFAULT '0.00000',
  `alicuota` decimal(16,5) NOT NULL DEFAULT '0.00000',
  `cm_articulo_regimen_id` int(10) unsigned 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 `person_zone_actividad_person_id_foreign` (`person_id`),
  KEY `person_zone_actividad_zone_id_foreign` (`zone_id`),
  KEY `person_zone_actividad_actividad_id_foreign` (`actividad_id`),
  KEY `person_zone_actividad_cm_articulo_regimen_id_foreign` (`cm_articulo_regimen_id`),
  CONSTRAINT `person_zone_actividad_actividad_id_foreign` FOREIGN KEY (`actividad_id`) REFERENCES `activities` (`id`),
  CONSTRAINT `person_zone_actividad_cm_articulo_regimen_id_foreign` FOREIGN KEY (`cm_articulo_regimen_id`) REFERENCES `cm_articulos_regimenes` (`id`),
  CONSTRAINT `person_zone_actividad_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `person_zone_actividad_zone_id_foreign` FOREIGN KEY (`zone_id`) REFERENCES `zones` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=101 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_zone_actividad`
--

INSERT INTO `person_zone_actividad` VALUES (43,7503,40722,22,804,1,0.00000,0.00000,1,1,'2023-01-03 11:42:51','2023-01-03 11:42:51',NULL),(44,7503,40722,23,804,1,0.00000,0.00000,1,1,'2023-01-03 11:42:51','2023-01-03 11:42:51',NULL),(49,7503,40721,23,843,1,0.00000,0.00000,1,1,'2023-02-01 16:08:53','2023-02-01 16:08:53',NULL),(50,7503,40721,22,843,1,0.00000,0.00000,1,1,'2023-02-01 16:08:53','2023-02-01 16:08:53',NULL),(88,7503,40720,23,843,1,0.00000,0.00000,1,1,'2023-06-02 10:08:42','2023-06-02 10:08:42',NULL),(89,7503,40720,22,843,1,0.00000,0.00000,1,1,'2023-06-02 10:08:42','2023-06-02 10:08:42',NULL),(93,7503,40787,23,578,1,0.00000,0.00000,1,1,'2025-07-07 11:21:09','2025-07-07 11:21:09',NULL),(94,7503,40723,22,605,2,1.00000,3.00000,1,1,'2025-07-07 11:21:24','2025-07-07 11:21:24',NULL),(95,7503,40723,22,789,2,1.00000,1.50000,1,1,'2025-07-07 11:21:24','2025-07-07 11:21:24',NULL),(100,7503,40788,23,710,1,0.00000,0.00000,1,1,'2025-11-20 20:02:53','2025-11-20 20:02:53',NULL);

--
-- Table structure for table `person_zones`
--

CREATE TABLE `person_zones` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `sifere_coef` decimal(8,4) NOT NULL DEFAULT '0.0000',
  `iibb_aliquot` decimal(8,4) NOT NULL DEFAULT '0.0000',
  `zone_id` int(10) unsigned NOT NULL,
  `is_principal` tinyint(1) NOT NULL DEFAULT '0',
  `iibb_perception_id` int(10) unsigned DEFAULT NULL,
  `retention_id` int(10) unsigned DEFAULT NULL,
  `activity_id` int(10) unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `person_zones_zone_id_foreign` (`zone_id`),
  KEY `person_zones_person_id_foreign` (`person_id`),
  CONSTRAINT `person_zones_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `person_zones_zone_id_foreign` FOREIGN KEY (`zone_id`) REFERENCES `zones` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=82 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `person_zones`
--

INSERT INTO `person_zones` VALUES (1,1,0.0000,0.0000,22,0,NULL,NULL,NULL,'2022-08-05 09:30:32','2022-08-05 09:30:32',40719,NULL),(44,7503,0.0000,0.0000,22,1,NULL,NULL,NULL,'2023-01-03 11:42:51','2023-01-03 11:42:51',40722,NULL),(45,7503,0.0000,0.0000,23,0,NULL,NULL,NULL,'2023-01-03 11:42:51','2023-01-03 11:42:51',40722,NULL),(50,7503,0.0000,0.0000,23,1,NULL,NULL,NULL,'2023-02-01 16:08:53','2023-02-01 16:08:53',40721,NULL),(51,7503,0.0000,0.0000,22,0,NULL,NULL,NULL,'2023-02-01 16:08:53','2023-02-01 16:08:53',40721,NULL),(71,7503,0.0000,0.0000,23,1,NULL,NULL,NULL,'2023-06-02 10:08:42','2023-06-02 10:08:42',40720,NULL),(72,7503,0.0000,0.0000,22,0,NULL,NULL,NULL,'2023-06-02 10:08:42','2023-06-02 10:08:42',40720,NULL),(75,7503,0.0000,0.0000,23,1,NULL,NULL,NULL,'2025-07-07 11:21:09','2025-07-07 11:21:09',40787,NULL),(76,7503,0.0000,0.0000,22,1,NULL,NULL,NULL,'2025-07-07 11:21:24','2025-07-07 11:21:24',40723,NULL),(81,7503,0.0000,0.0000,23,1,NULL,NULL,NULL,'2025-11-20 20:02:53','2025-11-20 20:02:53',40788,NULL);

--
-- Table structure for table `persons`
--

CREATE TABLE `persons` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `field_name1` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `fantasy_name` text COLLATE utf8mb4_unicode_ci,
  `codigo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `field_name2` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `document_type` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
  `document` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL,
  `cond_frente_al_iva_id` int(10) unsigned DEFAULT NULL,
  `country_id` int(10) unsigned DEFAULT NULL,
  `state_id` int(10) unsigned DEFAULT NULL,
  `zone_id` int(10) unsigned DEFAULT NULL,
  `plan_cuenta_id` int(10) unsigned DEFAULT NULL,
  `iva_creditos_tipo_id` int(10) unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `activity_id` int(10) unsigned DEFAULT NULL,
  `address` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `latitud` decimal(10,7) DEFAULT NULL,
  `longitud` decimal(10,7) DEFAULT NULL,
  `localidad_id` int(10) unsigned DEFAULT NULL,
  `person_type_id` int(10) unsigned DEFAULT NULL,
  `fa_iva_condition_id` int(10) unsigned DEFAULT NULL,
  `fa_codigo_postal` varchar(180) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `comentario` longtext COLLATE utf8mb4_unicode_ci,
  `email` varchar(180) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `iva_per_regimen_id` bigint(20) unsigned DEFAULT NULL,
  `iva_ret_regimen_id` bigint(20) unsigned DEFAULT NULL,
  `obligation_iibb` bigint(20) unsigned DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `document_UNIQUE` (`document`),
  KEY `persons_zone_id_foreign` (`zone_id`),
  KEY `persons_person_type_id_foreign` (`person_type_id`),
  KEY `persons_plan_cuenta_id_foreign` (`plan_cuenta_id`),
  KEY `persons_iva_creditos_tipo_id_foreign` (`iva_creditos_tipo_id`),
  KEY `persons_cond_frente_al_iva_id_foreign` (`cond_frente_al_iva_id`),
  KEY `persons_localidad_id_foreign` (`localidad_id`),
  KEY `persons_iva_ret_regimen_id_foreign` (`iva_ret_regimen_id`),
  KEY `persons_iva_per_regimen_id_foreign` (`iva_per_regimen_id`),
  CONSTRAINT `persons_cond_frente_al_iva_id_foreign` FOREIGN KEY (`cond_frente_al_iva_id`) REFERENCES `condicion_frente_al_iva` (`id`),
  CONSTRAINT `persons_iva_creditos_tipo_id_foreign` FOREIGN KEY (`iva_creditos_tipo_id`) REFERENCES `iva_creditos_tipos` (`id`),
  CONSTRAINT `persons_iva_per_regimen_id_foreign` FOREIGN KEY (`iva_per_regimen_id`) REFERENCES `iva_per_regimenes` (`id`),
  CONSTRAINT `persons_iva_ret_regimen_id_foreign` FOREIGN KEY (`iva_ret_regimen_id`) REFERENCES `iva_ret_regimenes` (`id`),
  CONSTRAINT `persons_localidad_id_foreign` FOREIGN KEY (`localidad_id`) REFERENCES `localidad` (`id`),
  CONSTRAINT `persons_person_type_id_foreign` FOREIGN KEY (`person_type_id`) REFERENCES `person_types` (`id`),
  CONSTRAINT `persons_plan_cuenta_id_foreign` FOREIGN KEY (`plan_cuenta_id`) REFERENCES `conta_plan_cuenta` (`id`),
  CONSTRAINT `persons_zone_id_foreign` FOREIGN KEY (`zone_id`) REFERENCES `zones` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=40789 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `persons`
--

INSERT INTO `persons` VALUES (3,NULL,'Larzabal Hernan',NULL,'3',NULL,'cuit','20-28468190-9',NULL,NULL,22,22,NULL,NULL,'2018-05-12 20:55:07','2018-05-14 01:54:15',1,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40717,NULL,'Taxes Software',NULL,'40717',NULL,'cuit','30-71625124-8',NULL,NULL,22,22,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40718,NULL,'Consumidor Final',NULL,'40718',NULL,'cuit','20-11111111-2',NULL,NULL,22,22,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40719,NULL,'PRUEBA',NULL,'40719',NULL,'cuit','27-27789193-5',6,NULL,NULL,NULL,NULL,NULL,'2021-07-08 17:20:57','2025-07-04 15:00:47',1,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40720,NULL,'UNITORCO SRL',NULL,'40720',NULL,'cuit','33-70855939-9',1,NULL,NULL,NULL,NULL,NULL,'2022-10-25 11:34:02','2025-07-04 15:00:47',NULL,'Estanislao Lopez 2649 Km 57 Panamericana Complejo Verdi 57 Local 6  - Pilar',NULL,NULL,NULL,2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40721,NULL,'PROTECCION UNITORCO SRL',NULL,'40721',NULL,'cuit','30-71218705-7',1,NULL,NULL,NULL,NULL,NULL,'2022-10-25 11:41:53','2025-07-04 15:00:47',NULL,'Estanislao López 2649 Km 57 Panamericana Local 6 Complejo Verdi 57 - Pilar',NULL,NULL,NULL,2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40722,NULL,'SORGETTI MARCELO',NULL,'40722',NULL,'cuit','20-34472673-7',1,NULL,NULL,NULL,NULL,NULL,'2022-12-07 09:59:53','2025-07-04 15:00:47',NULL,'Diagonal 86 N 3350 PISO 14 - Villa Ballester',NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40723,7503,'JOSE MARIA RUS',NULL,'40723',NULL,'cuit','20-11321376-1',1,NULL,NULL,NULL,NULL,NULL,'2023-02-06 10:09:59','2025-07-07 11:21:24',NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40724,7503,'DEAN LAURA GRACIELA',NULL,'40724',NULL,'cuit','27-28979242-8',NULL,NULL,NULL,NULL,NULL,NULL,'2023-02-06 10:22:33','2023-02-06 10:22:33',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40725,7503,'PLANK LUCIANA',NULL,'40725',NULL,'cuit','27-27910141-9',NULL,NULL,NULL,NULL,NULL,NULL,'2023-02-06 10:22:33','2023-02-06 10:22:33',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40726,7503,'CONSORCIO PROP TORRE 2 ROOSEVELT 5621',NULL,'40726',NULL,'cuit','30-68067991-2',NULL,NULL,NULL,NULL,NULL,NULL,'2023-02-06 10:24:44','2023-02-06 10:24:44',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40727,7503,'AUTOPISTAS URBANAS S A',NULL,'40727',NULL,'cuit','30-57487647-4',NULL,NULL,NULL,NULL,NULL,NULL,'2023-02-06 10:26:05','2023-02-06 10:26:05',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40728,7503,'NEOPEL  SRL',NULL,'40728',NULL,'cuit','30-64555559-3',NULL,NULL,NULL,NULL,NULL,NULL,'2023-02-06 10:26:06','2023-02-06 10:26:06',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40729,7503,'INC  SOCIEDAD ANONIMA',NULL,'40729',NULL,'cuit','30-68731043-4',NULL,NULL,NULL,NULL,NULL,NULL,'2023-02-06 10:26:06','2023-02-06 10:26:06',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40730,7503,'COTO CENTRO INTEGRAL DE COMERCIALIZACION SOCIEDAD ANONIMA',NULL,'40730',NULL,'cuit','30-54808315-6',NULL,NULL,NULL,NULL,NULL,NULL,'2023-02-06 10:26:06','2023-02-06 10:26:06',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40731,7503,'GRUPO CONCESIONARIO DEL OESTE SA',NULL,'40731',NULL,'cuit','30-66349851-3',NULL,NULL,NULL,NULL,NULL,NULL,'2023-02-06 10:26:06','2023-02-06 10:26:06',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40732,7503,'WORLDPLAS SA',NULL,'40732',NULL,'cuit','30-70996231-7',NULL,NULL,NULL,NULL,NULL,NULL,'2023-02-06 10:26:06','2023-02-06 10:26:06',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
INSERT INTO `persons` VALUES (40733,7503,'AUTOPISTAS DE BUENOS AIRES (AUBASA) SA',NULL,'40733',NULL,'cuit','30-71411283-6',NULL,NULL,NULL,NULL,NULL,NULL,'2023-02-06 10:31:45','2023-02-06 10:31:45',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40734,7503,'V T V NORTE SA',NULL,'40734',NULL,'cuit','30-68520007-0',NULL,NULL,NULL,NULL,NULL,NULL,'2023-02-06 10:31:45','2023-02-06 10:31:45',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40735,7503,'AMX ARGENTINA SOCIEDAD ANONIMA',NULL,'40735',NULL,'cuit','30-66328849-7',NULL,NULL,NULL,NULL,NULL,NULL,'2023-02-06 10:31:45','2023-02-06 10:31:45',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40736,7503,'OPERADORA DE ESTACIONES DE SERVICIOS SA',NULL,'40736',NULL,'cuit','30-67877449-5',NULL,NULL,NULL,NULL,NULL,NULL,'2023-02-06 10:31:45','2023-02-06 10:31:45',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40737,7503,'GEA WESTFALIA SEPARATOR ARGENTINA SOCIEDAD ANONIMA',NULL,'40737',NULL,'cuit','33-70923964-9',NULL,NULL,NULL,NULL,NULL,NULL,'2023-03-21 10:02:48','2023-03-21 10:02:48',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40738,7503,'NOVAGRAF S A',NULL,'40738',NULL,'cuit','30-69617669-4',NULL,NULL,NULL,NULL,NULL,NULL,'2023-03-21 10:02:48','2023-03-21 10:02:48',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40739,7503,'99-99999999-9',NULL,'40739',NULL,'cuit','99-99999999-9',NULL,NULL,NULL,NULL,NULL,NULL,'2023-03-21 10:02:49','2023-03-21 10:02:49',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40740,7503,'ADT SECURITY SERVICES S.A.',NULL,'40740',NULL,'cuit','30-65663161-5',NULL,NULL,NULL,NULL,NULL,NULL,'2023-03-21 10:06:12','2023-03-21 10:06:12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40741,7503,'CORPORACION ASISTENCIAL SOCIEDAD ANONIMA',NULL,'40741',NULL,'cuit','30-59727930-9',NULL,NULL,NULL,NULL,NULL,NULL,'2023-03-21 10:06:12','2023-03-21 10:06:12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40742,7503,'VERISURE ARGENTINA MONITOREO DE ALARMAS SA',NULL,'40742',NULL,'cuit','33-71630774-9',NULL,NULL,NULL,NULL,NULL,NULL,'2023-03-21 10:06:12','2023-03-21 10:06:12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40743,7503,'F 458 S.A.',NULL,'40743',NULL,'cuit','30-71210931-5',NULL,NULL,NULL,NULL,NULL,NULL,'2023-03-21 10:06:12','2023-03-21 10:06:12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40744,7503,'MARMIRAN S.A.',NULL,'40744',NULL,'cuit','30-71255791-1',NULL,NULL,NULL,NULL,NULL,NULL,'2023-03-21 10:06:12','2023-03-21 10:06:12',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40745,7503,'PALMA BITTI SA',NULL,'40745',NULL,'cuit','30-71635864-6',NULL,NULL,NULL,NULL,NULL,NULL,'2023-03-21 10:06:13','2023-03-21 10:06:13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40746,7503,'RIVEROS CABRERA LUIS MAURICIO',NULL,'40746',NULL,'cuit','20-92652822-0',NULL,NULL,NULL,NULL,NULL,NULL,'2023-03-21 10:06:13','2023-03-21 10:06:13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40747,7503,'OBRAS ACUSTICAS SRL',NULL,'40747',NULL,'cuit','30-71216268-2',NULL,NULL,NULL,NULL,NULL,NULL,'2023-03-21 10:06:13','2023-03-21 10:06:13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40748,7503,'EL MUNDO DEL JUGUETE SA',NULL,'40748',NULL,'cuit','30-58528558-3',NULL,NULL,NULL,NULL,NULL,NULL,'2023-03-21 10:06:13','2023-03-21 10:06:13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40749,7503,'GNC MUÑIZ SA',NULL,'40749',NULL,'cuit','30-65329126-0',NULL,NULL,23,23,NULL,NULL,'2023-03-21 10:16:20','2023-03-21 10:16:20',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
INSERT INTO `persons` VALUES (40750,7503,'LA HOLANDO SUDAMERICANA COMPAÑIA DE SEGUROS S A',NULL,'40750',NULL,'cuit','33-50003806-9',NULL,NULL,NULL,NULL,NULL,NULL,'2023-03-21 10:34:34','2023-03-21 10:34:34',NULL,NULL,NULL,NULL,NULL,2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40751,7503,'FEDERACION PATRONAL',NULL,'40751',NULL,'cuit','33-70736658-9',NULL,NULL,NULL,NULL,NULL,NULL,'2023-03-21 10:37:23','2023-03-21 10:37:23',NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40752,7503,'BOCCHICCHIO CHRISTIAN ANDRES',NULL,'40752',NULL,'cuit','23-24178383-9',NULL,NULL,NULL,NULL,NULL,NULL,'2023-03-21 12:40:38','2023-03-21 12:40:38',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40753,7503,'HOTEL LOS NARANJOS S.A.',NULL,'40753',NULL,'cuit','30-71688294-9',NULL,NULL,NULL,NULL,NULL,NULL,'2023-03-21 12:41:00','2023-03-21 12:41:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40754,7503,'BALAGUER HERNAN',NULL,'40754',NULL,'cuit','20-21537856-0',NULL,NULL,NULL,NULL,NULL,NULL,'2023-03-21 12:41:00','2023-03-21 12:41:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40755,7503,'ELECTROCITY ARGENTINA S A',NULL,'40755',NULL,'cuit','30-65592164-4',NULL,NULL,NULL,NULL,NULL,NULL,'2023-03-21 12:41:00','2023-03-21 12:41:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40756,7503,'IMPEXPRO S.A.',NULL,'40756',NULL,'cuit','30-71185598-6',NULL,NULL,NULL,NULL,NULL,NULL,'2023-03-21 12:41:00','2023-03-21 12:41:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40757,7503,'NEW BIP S.R.L.',NULL,'40757',NULL,'cuit','30-71551615-9',NULL,NULL,NULL,NULL,NULL,NULL,'2023-03-21 12:41:00','2023-03-21 12:41:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40758,7503,'GRUPO ALR',NULL,'40758',NULL,'cuit','30-71565090-4',NULL,NULL,NULL,NULL,NULL,NULL,'2023-03-21 12:41:00','2023-03-21 12:41:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40759,7503,'CORREDORES VIALES SOCIEDAD ANONIMA',NULL,'40759',NULL,'cuit','30-71580481-2',NULL,NULL,NULL,NULL,NULL,NULL,'2023-03-21 12:41:00','2023-03-21 12:41:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40760,7503,'MR SHOPS S.R.L.',NULL,'40760',NULL,'cuit','30-71743856-2',NULL,NULL,NULL,NULL,NULL,NULL,'2023-03-21 12:41:00','2023-03-21 12:41:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40761,7503,'ELECTRICIDAD ARTIGAS SA',NULL,'40761',NULL,'cuit','30-70891976-0',NULL,NULL,NULL,NULL,NULL,NULL,'2023-03-21 12:41:01','2023-03-21 12:41:01',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40762,7503,'ESTACION LINA SA',NULL,'40762',NULL,'cuit','30-69126808-6',NULL,NULL,NULL,NULL,NULL,NULL,'2023-03-21 12:45:04','2023-03-21 12:45:04',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40763,7503,'QUERINO SA',NULL,'40763',NULL,'cuit','30-52324053-2',NULL,NULL,NULL,NULL,NULL,NULL,'2023-03-21 12:47:50','2023-03-21 12:47:50',NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40764,7503,'SACOMA',NULL,'40764',NULL,'cuit','30-60234656-7',NULL,NULL,NULL,NULL,NULL,NULL,'2023-03-21 12:48:48','2023-03-21 12:48:48',NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40765,7503,'ELECTRICIDAD LYNCH S.R.L.',NULL,'40765',NULL,'cuit','30-71229302-7',NULL,NULL,NULL,NULL,NULL,NULL,'2023-05-18 08:57:13','2023-05-18 08:57:13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40766,7503,'UNIDAD EJECUTORA AUTOPISTA AP 01',NULL,'40766',NULL,'cuit','30-71681956-2',NULL,NULL,NULL,NULL,NULL,NULL,'2023-05-18 08:57:13','2023-05-18 08:57:13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40767,7503,'AUTOPISTAS DEL SOL S A',NULL,'40767',NULL,'cuit','30-67723711-9',NULL,NULL,NULL,NULL,NULL,NULL,'2023-05-18 08:57:13','2023-05-18 08:57:13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
INSERT INTO `persons` VALUES (40768,7503,'DEBATTISTA MAXIMILIANO RUBEN',NULL,'40768',NULL,'cuit','20-23154759-3',NULL,NULL,NULL,NULL,NULL,NULL,'2023-05-18 08:57:13','2023-05-18 08:57:13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40769,7503,'PANATEL SOCIEDAD ANONIMA',NULL,'40769',NULL,'cuit','30-58719721-5',NULL,NULL,NULL,NULL,NULL,NULL,'2023-05-18 08:57:13','2023-05-18 08:57:13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40770,7503,'AUTCON S.R.L.',NULL,'40770',NULL,'cuit','30-71547785-4',NULL,NULL,NULL,NULL,NULL,NULL,'2023-05-18 08:57:13','2023-05-18 08:57:13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40771,7503,'CAMARA  DE GRABADORES DE AUTOPARTES DE VEHICULOS AUTOMOTORES Y MOTOVEHICULOS',NULL,'40771',NULL,'cuit','30-71057330-8',NULL,NULL,NULL,NULL,NULL,NULL,'2023-05-18 08:57:13','2023-05-18 08:57:13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40772,7503,'SCANDINAVIAN OUTDOORS S.A.',NULL,'40772',NULL,'cuit','30-64084332-9',NULL,NULL,NULL,NULL,NULL,NULL,'2023-05-18 08:57:13','2023-05-18 08:57:13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40773,7503,'PENENTI SOCIEDAD ANONIMA',NULL,'40773',NULL,'cuit','30-71088959-3',NULL,NULL,NULL,NULL,NULL,NULL,'2023-05-18 08:57:13','2023-05-18 08:57:13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40774,7503,'PIVA MARIA FLORENCIA',NULL,'40774',NULL,'cuit','27-31108367-3',NULL,NULL,NULL,NULL,NULL,NULL,'2023-05-18 08:57:14','2023-05-18 08:57:14',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40775,7503,'DEHEZA SOCIEDAD ANONIMA INDUSTRIAL COMERCIAL FINANCIERA INMOBILIARIA',NULL,'40775',NULL,'cuit','30-51618667-0',NULL,NULL,NULL,NULL,NULL,NULL,'2023-05-18 08:57:14','2023-05-18 08:57:14',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40776,7503,'FIDEICOMISO AIRES DE SANTIAGO',NULL,'40776',NULL,'cuit','30-71094216-8',NULL,NULL,NULL,NULL,NULL,NULL,'2023-05-18 08:57:14','2023-05-18 08:57:14',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40777,7503,'COORDINACION ECOLOGICA AREA METROPOLITANA SOCIEDAD DEL ESTADO',NULL,'40777',NULL,'cuit','30-57720719-0',NULL,NULL,NULL,NULL,NULL,NULL,'2023-05-18 08:57:14','2023-05-18 08:57:14',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40778,7503,'PALINI MARIA  LAURA',NULL,'40778',NULL,'cuit','27-27311037-8',NULL,NULL,NULL,NULL,NULL,NULL,'2023-05-18 08:57:14','2023-05-18 08:57:14',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40779,7503,'GESTION DE EMPRENDIMIENTOS DEPORTIVOS SA',NULL,'40779',NULL,'cuit','30-71028354-7',NULL,NULL,NULL,NULL,NULL,NULL,'2023-05-18 08:57:14','2023-05-18 08:57:14',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40780,7503,'SOCIEDAD HOTELERA VILLA MARIA S.A.',NULL,'40780',NULL,'cuit','30-71050283-4',NULL,NULL,NULL,NULL,NULL,NULL,'2023-05-18 08:57:14','2023-05-18 08:57:14',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40781,7503,'MASTER RENTAL SOCIEDAD ANONIMA',NULL,'40781',NULL,'cuit','30-70905848-3',NULL,NULL,NULL,NULL,NULL,NULL,'2023-05-18 08:57:14','2023-05-18 08:57:14',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40782,7503,'CORPORACION MEDICA DE GRAL SAN MARTIN S A',NULL,'40782',NULL,'cuit','30-54584075-4',NULL,NULL,NULL,NULL,NULL,NULL,'2023-05-18 08:57:14','2023-05-18 08:57:14',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40783,7503,'VILTE JOSE GABRIEL',NULL,'40783',NULL,'cuit','20-24153064-8',NULL,NULL,NULL,NULL,NULL,NULL,'2023-05-18 08:57:14','2023-05-18 08:57:14',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40784,7503,'SP LA CALLE SRL',NULL,'40784',NULL,'cuit','33-71599123-9',NULL,NULL,NULL,NULL,NULL,NULL,'2023-05-18 08:57:14','2023-05-18 08:57:14',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
INSERT INTO `persons` VALUES (40785,7503,'AEROLINEAS ARGENTINAS SOCIEDAD ANONIMA',NULL,'40785',NULL,'cuit','30-64140555-4',1,NULL,22,22,NULL,NULL,'2023-05-18 09:15:58','2023-05-18 09:15:58',NULL,'OBLIGADO RAFAEL  (AV. COSTANERA) 0 Piso:5   T:T4',NULL,NULL,NULL,2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40786,7503,'LENOVO ARGENTINA SRL',NULL,'40786',NULL,'cuit','30-71473138-2',1,NULL,22,22,NULL,NULL,'2023-05-18 09:22:20','2023-05-18 09:22:20',NULL,'LIBERTADOR DEL AV. 7208 Piso:6',NULL,NULL,NULL,2,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40787,7503,'LOPEZ NADIA ESTELA',NULL,'40787',NULL,'cuit','27-38259670-1',1,NULL,NULL,NULL,NULL,NULL,'2023-07-03 10:53:15','2025-07-07 11:21:09',NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(40788,7503,'LUNA FERNANDO',NULL,NULL,NULL,'cuit','20-20976121-2',NULL,NULL,NULL,NULL,NULL,NULL,'2025-10-31 14:01:36','2025-11-13 18:55:39',NULL,'Av de Mayo 1144, Villa Adelina Bs As',NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);

--
-- Table structure for table `persons_custom_form`
--

CREATE TABLE `persons_custom_form` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `p_c_servicio_id` bigint(20) unsigned NOT NULL,
  `configuracion` json NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `persons_custom_form_person_id_foreign` (`person_id`),
  KEY `persons_custom_form_p_c_servicio_id_foreign` (`p_c_servicio_id`),
  CONSTRAINT `persons_custom_form_p_c_servicio_id_foreign` FOREIGN KEY (`p_c_servicio_id`) REFERENCES `persons_custom_servicios` (`id`),
  CONSTRAINT `persons_custom_form_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `persons_custom_form`
--


--
-- Table structure for table `persons_custom_servicios`
--

CREATE TABLE `persons_custom_servicios` (
  `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,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `persons_custom_servicios`
--

INSERT INTO `persons_custom_servicios` VALUES (1,NULL,'Ordenes de Trabajo',0,NULL,NULL,NULL),(2,NULL,'Formularios Ordenes',0,'2025-07-06 23:43:52','2025-07-06 23:43:52',NULL),(3,NULL,'Formulario Receipts',0,'2025-07-09 15:29:21','2025-07-09 15:29:21',NULL);

--
-- Table structure for table `persons_datos`
--

CREATE TABLE `persons_datos` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `dato_1` longtext COLLATE utf8mb4_unicode_ci,
  `dato_2` longtext COLLATE utf8mb4_unicode_ci,
  `dato_3` longtext COLLATE utf8mb4_unicode_ci,
  `dato_4` longtext COLLATE utf8mb4_unicode_ci,
  `dato_5` 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 `persons_datos_person_id_foreign` (`person_id`),
  CONSTRAINT `persons_datos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `persons_datos`
--


--
-- Table structure for table `persons_files`
--

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

--
-- Dumping data for table `persons_files`
--


--
-- Table structure for table `persons_sicore`
--

CREATE TABLE `persons_sicore` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `person_id` int(10) unsigned NOT NULL,
  `is_inscripto` tinyint(1) NOT NULL,
  `sicore_regimen_id` bigint(20) unsigned NOT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `persons_sicore_person_id_foreign` (`person_id`),
  KEY `persons_sicore_sicore_regimen_id_foreign` (`sicore_regimen_id`),
  CONSTRAINT `persons_sicore_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `persons_sicore_sicore_regimen_id_foreign` FOREIGN KEY (`sicore_regimen_id`) REFERENCES `sicore_regimenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `persons_sicore`
--


--
-- Table structure for table `plazo_de_pago`
--

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

--
-- Dumping data for table `plazo_de_pago`
--

INSERT INTO `plazo_de_pago` VALUES (1,NULL,'0 dias FF',1,NULL,NULL,NULL),(2,NULL,'7 dias FF',1,NULL,NULL,NULL),(3,NULL,'15 dias FF',1,NULL,NULL,NULL),(4,NULL,'30 dias FF',1,NULL,NULL,NULL),(5,NULL,'45 dias FF',1,NULL,NULL,NULL),(6,NULL,'60 dias FF',1,NULL,NULL,NULL);

--
-- Table structure for table `ppc_comunicaciones`
--

CREATE TABLE `ppc_comunicaciones` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `ppc_comunicaciones_type_id` bigint(20) unsigned NOT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `is_propio` tinyint(1) NOT NULL DEFAULT '0',
  `person_id_relationed` int(10) unsigned DEFAULT NULL,
  `ppc_type_id` bigint(20) unsigned NOT NULL,
  `ppc_user_id` bigint(20) unsigned DEFAULT NULL,
  `fecha` datetime NOT NULL,
  `titulo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `descripcion` 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 `ppc_comunicaciones_ppc_comunicaciones_type_id_foreign` (`ppc_comunicaciones_type_id`),
  KEY `ppc_comunicaciones_person_id_foreign` (`person_id`),
  KEY `ppc_comunicaciones_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `ppc_comunicaciones_ppc_type_id_foreign` (`ppc_type_id`),
  KEY `ppc_comunicaciones_ppc_user_id_foreign` (`ppc_user_id`),
  CONSTRAINT `ppc_comunicaciones_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `ppc_comunicaciones_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`),
  CONSTRAINT `ppc_comunicaciones_ppc_comunicaciones_type_id_foreign` FOREIGN KEY (`ppc_comunicaciones_type_id`) REFERENCES `ppc_comunicaciones_types` (`id`),
  CONSTRAINT `ppc_comunicaciones_ppc_type_id_foreign` FOREIGN KEY (`ppc_type_id`) REFERENCES `ppc_types` (`id`),
  CONSTRAINT `ppc_comunicaciones_ppc_user_id_foreign` FOREIGN KEY (`ppc_user_id`) REFERENCES `ppc_users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ppc_comunicaciones`
--


--
-- Table structure for table `ppc_comunicaciones_files`
--

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

--
-- Dumping data for table `ppc_comunicaciones_files`
--


--
-- Table structure for table `ppc_comunicaciones_types`
--

CREATE TABLE `ppc_comunicaciones_types` (
  `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 `ppc_comunicaciones_types`
--

INSERT INTO `ppc_comunicaciones_types` VALUES (1,NULL,'Legajos',1,NULL,NULL,NULL),(2,NULL,'Notificaciones',1,NULL,NULL,NULL);

--
-- Table structure for table `ppc_receipts`
--

CREATE TABLE `ppc_receipts` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `type_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_relationed` int(10) unsigned NOT NULL,
  `ppc_user_id` bigint(20) unsigned NOT NULL,
  `ppc_type_id` bigint(20) unsigned NOT NULL,
  `was_leida` tinyint(1) NOT NULL DEFAULT '0',
  `fecha` datetime NOT NULL,
  `titulo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `descripcion` longtext COLLATE utf8mb4_unicode_ci,
  `file` text COLLATE utf8mb4_unicode_ci,
  `type_receipt_id` int(10) unsigned DEFAULT NULL,
  `sucursal` int(11) DEFAULT NULL,
  `numero` int(11) DEFAULT NULL,
  `fecha_emision` date NOT NULL,
  `fecha_vto` date DEFAULT NULL,
  `moneda_id` int(10) unsigned NOT NULL DEFAULT '1',
  `cotizacion` decimal(16,2) NOT NULL DEFAULT '0.00',
  `subtotal` decimal(16,2) NOT NULL DEFAULT '0.00',
  `impuestos` decimal(16,2) NOT NULL DEFAULT '0.00',
  `total` decimal(16,2) NOT NULL DEFAULT '0.00',
  `forma_de_entrega_id` bigint(20) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned DEFAULT NULL,
  `documento_asoc` text COLLATE utf8mb4_unicode_ci,
  `ppc_receipt_estado_id` bigint(20) unsigned NOT NULL DEFAULT '1',
  `comentario_recepcion` 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 `ppc_receipts_type_id_foreign` (`type_id`),
  KEY `ppc_receipts_person_id_foreign` (`person_id`),
  KEY `ppc_receipts_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `ppc_receipts_ppc_type_id_foreign` (`ppc_type_id`),
  KEY `ppc_receipts_ppc_user_id_foreign` (`ppc_user_id`),
  KEY `ppc_receipts_type_receipt_id_foreign` (`type_receipt_id`),
  KEY `ppc_receipts_moneda_id_foreign` (`moneda_id`),
  KEY `ppc_receipts_forma_de_entrega_id_foreign` (`forma_de_entrega_id`),
  KEY `ppc_receipts_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `ppc_receipts_ppc_receipt_estado_id_foreign` (`ppc_receipt_estado_id`),
  CONSTRAINT `ppc_receipts_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `ppc_receipts_forma_de_entrega_id_foreign` FOREIGN KEY (`forma_de_entrega_id`) REFERENCES `forma_de_entrega` (`id`),
  CONSTRAINT `ppc_receipts_moneda_id_foreign` FOREIGN KEY (`moneda_id`) REFERENCES `monedas` (`id`),
  CONSTRAINT `ppc_receipts_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `ppc_receipts_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`),
  CONSTRAINT `ppc_receipts_ppc_receipt_estado_id_foreign` FOREIGN KEY (`ppc_receipt_estado_id`) REFERENCES `ppc_receipts_estados` (`id`),
  CONSTRAINT `ppc_receipts_ppc_type_id_foreign` FOREIGN KEY (`ppc_type_id`) REFERENCES `ppc_types` (`id`),
  CONSTRAINT `ppc_receipts_ppc_user_id_foreign` FOREIGN KEY (`ppc_user_id`) REFERENCES `ppc_users` (`id`),
  CONSTRAINT `ppc_receipts_type_id_foreign` FOREIGN KEY (`type_id`) REFERENCES `types` (`id`),
  CONSTRAINT `ppc_receipts_type_receipt_id_foreign` FOREIGN KEY (`type_receipt_id`) REFERENCES `receipt_types` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ppc_receipts`
--


--
-- Table structure for table `ppc_receipts_estados`
--

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

--
-- Dumping data for table `ppc_receipts_estados`
--

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

--
-- Table structure for table `ppc_receipts_files`
--

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

--
-- Dumping data for table `ppc_receipts_files`
--


--
-- Table structure for table `ppc_types`
--

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

--
-- Dumping data for table `ppc_types`
--

INSERT INTO `ppc_types` VALUES (1,NULL,'Proveedor',1,NULL,NULL,NULL),(2,NULL,'Cliente',1,NULL,NULL,NULL),(3,NULL,'Ambos',1,NULL,NULL,NULL);

--
-- Table structure for table `ppc_users`
--

CREATE TABLE `ppc_users` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_relationed` int(10) unsigned NOT NULL,
  `person_id_ppc_user` int(10) unsigned NOT NULL,
  `ppc_type_id` bigint(20) unsigned NOT NULL,
  `login_user` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `password` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `is_principal` 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 `ppc_users_person_id_foreign` (`person_id`),
  KEY `ppc_users_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `ppc_users_person_id_ppc_user_foreign` (`person_id_ppc_user`),
  KEY `ppc_users_ppc_type_id_foreign` (`ppc_type_id`),
  CONSTRAINT `ppc_users_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `ppc_users_person_id_ppc_user_foreign` FOREIGN KEY (`person_id_ppc_user`) REFERENCES `persons` (`id`),
  CONSTRAINT `ppc_users_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`),
  CONSTRAINT `ppc_users_ppc_type_id_foreign` FOREIGN KEY (`ppc_type_id`) REFERENCES `ppc_types` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ppc_users`
--


--
-- Table structure for table `pre_facturas`
--

CREATE TABLE `pre_facturas` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `fact_elec_receipt_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_relationed` int(10) unsigned NOT NULL,
  `fecha` date NOT NULL,
  `fecha_facturado` date DEFAULT NULL,
  `neto` decimal(16,2) NOT NULL DEFAULT '0.00',
  `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 `pre_facturas_person_id_foreign` (`person_id`),
  KEY `pre_facturas_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `pre_facturas_fact_elec_receipt_id_foreign` (`fact_elec_receipt_id`),
  CONSTRAINT `pre_facturas_fact_elec_receipt_id_foreign` FOREIGN KEY (`fact_elec_receipt_id`) REFERENCES `fact_elec_receipts` (`id`),
  CONSTRAINT `pre_facturas_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `pre_facturas_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `pre_facturas`
--


--
-- Table structure for table `pre_facturas_files`
--

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

--
-- Dumping data for table `pre_facturas_files`
--


--
-- Table structure for table `pre_facturas_ots`
--

CREATE TABLE `pre_facturas_ots` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `pre_factura_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 `pre_facturas_ots_pre_factura_id_foreign` (`pre_factura_id`),
  KEY `pre_facturas_ots_inv_ot_id_foreign` (`inv_ot_id`),
  CONSTRAINT `pre_facturas_ots_inv_ot_id_foreign` FOREIGN KEY (`inv_ot_id`) REFERENCES `inv_orden_trabajos` (`id`),
  CONSTRAINT `pre_facturas_ots_pre_factura_id_foreign` FOREIGN KEY (`pre_factura_id`) REFERENCES `pre_facturas` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `pre_facturas_ots`
--


--
-- Table structure for table `presupuesto_config`
--

CREATE TABLE `presupuesto_config` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `num_inicial` int(10) unsigned 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 `presupuesto_config_person_id_foreign` (`person_id`),
  CONSTRAINT `presupuesto_config_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `presupuesto_config`
--


--
-- Table structure for table `presupuestos`
--

CREATE TABLE `presupuestos` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `fecha` date NOT NULL DEFAULT '2019-12-23',
  `punto_venta_id` int(10) unsigned NOT NULL,
  `system_tax_id` int(10) unsigned NOT NULL DEFAULT '7',
  `numero` int(10) unsigned NOT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_receptor` int(10) unsigned NOT NULL DEFAULT '3',
  `texto` longtext COLLATE utf8mb4_unicode_ci,
  `iva_si_no` tinyint(1) NOT NULL DEFAULT '0',
  `neto` decimal(16,2) NOT NULL DEFAULT '0.00',
  `iva` decimal(16,2) NOT NULL DEFAULT '0.00',
  `total` 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 `presupuestos_punto_venta_id_foreign` (`punto_venta_id`),
  KEY `presupuestos_person_id_foreign` (`person_id`),
  KEY `presupuestos_person_id_receptor_foreign` (`person_id_receptor`),
  KEY `presupuestos_system_tax_id_foreign` (`system_tax_id`),
  CONSTRAINT `presupuestos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `presupuestos_person_id_receptor_foreign` FOREIGN KEY (`person_id_receptor`) REFERENCES `persons` (`id`),
  CONSTRAINT `presupuestos_punto_venta_id_foreign` FOREIGN KEY (`punto_venta_id`) REFERENCES `fact_elec_puntos_venta` (`id`),
  CONSTRAINT `presupuestos_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 `presupuestos`
--


--
-- Table structure for table `prod_variant_types`
--

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

--
-- Dumping data for table `prod_variant_types`
--


--
-- Table structure for table `prod_variant_values`
--

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

--
-- Dumping data for table `prod_variant_values`
--


--
-- Table structure for table `prod_variants`
--

CREATE TABLE `prod_variants` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `inv_product_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 `prod_variants_person_id_foreign` (`person_id`),
  KEY `prod_variants_inv_product_id_foreign` (`inv_product_id`),
  CONSTRAINT `prod_variants_inv_product_id_foreign` FOREIGN KEY (`inv_product_id`) REFERENCES `inv_productos` (`id`),
  CONSTRAINT `prod_variants_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `prod_variants`
--


--
-- Table structure for table `prod_variants_detail`
--

CREATE TABLE `prod_variants_detail` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `prod_variant_id` bigint(20) unsigned NOT NULL,
  `prod_variant_value_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 `prod_variants_detail_prod_variant_id_foreign` (`prod_variant_id`),
  KEY `prod_variants_detail_prod_variant_value_id_foreign` (`prod_variant_value_id`),
  CONSTRAINT `prod_variants_detail_prod_variant_id_foreign` FOREIGN KEY (`prod_variant_id`) REFERENCES `prod_variants` (`id`),
  CONSTRAINT `prod_variants_detail_prod_variant_value_id_foreign` FOREIGN KEY (`prod_variant_value_id`) REFERENCES `prod_variant_values` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `prod_variants_detail`
--


--
-- Table structure for table `querys`
--

CREATE TABLE `querys` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT 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`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `querys`
--

INSERT INTO `querys` VALUES (1,NULL,'Factura Electronica Masiva Productos',1,'2022-08-05 09:30:23','2022-08-05 09:30:23',NULL);

--
-- Table structure for table `querys_details`
--

CREATE TABLE `querys_details` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned DEFAULT NULL,
  `query_id` bigint(20) unsigned NOT NULL,
  `descripcion` longtext COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `querys_details_query_id_foreign` (`query_id`),
  KEY `querys_details_person_id_foreign` (`person_id`),
  CONSTRAINT `querys_details_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `querys_details_query_id_foreign` FOREIGN KEY (`query_id`) REFERENCES `querys` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `querys_details`
--


--
-- Table structure for table `queue_proceso_resultado`
--

CREATE TABLE `queue_proceso_resultado` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `queue_proceso_id` int(10) unsigned DEFAULT NULL,
  `resultado` 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 `queue_proceso_resultado_queue_proceso_id_foreign` (`queue_proceso_id`),
  CONSTRAINT `queue_proceso_resultado_queue_proceso_id_foreign` FOREIGN KEY (`queue_proceso_id`) REFERENCES `queue_procesos` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `queue_proceso_resultado`
--


--
-- Table structure for table `queue_procesos`
--

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

--
-- Dumping data for table `queue_procesos`
--

INSERT INTO `queue_procesos` VALUES (1,NULL,'Importar - Excel',NULL,NULL,NULL),(2,NULL,'Importar - Mis Comprobantes',NULL,NULL,NULL),(3,NULL,'Importar - Portal IVA','2022-08-05 09:30:25','2022-08-05 09:30:25',NULL),(4,NULL,'Importar - Archivos PEM F8011','2022-08-05 09:30:32','2022-08-05 09:30:32',NULL);

--
-- Table structure for table `receipt_dc_ordenes`
--

CREATE TABLE `receipt_dc_ordenes` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `receipt_id` int(10) unsigned NOT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `dc_orden_id_oc` bigint(20) 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 `receipt_dc_ordenes_receipt_id_foreign` (`receipt_id`),
  KEY `receipt_dc_ordenes_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `receipt_dc_ordenes_dc_orden_id_oc_foreign` (`dc_orden_id_oc`),
  CONSTRAINT `receipt_dc_ordenes_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `receipt_dc_ordenes_dc_orden_id_oc_foreign` FOREIGN KEY (`dc_orden_id_oc`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `receipt_dc_ordenes_receipt_id_foreign` FOREIGN KEY (`receipt_id`) REFERENCES `receipts` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `receipt_dc_ordenes`
--


--
-- Table structure for table `receipt_taxes`
--

CREATE TABLE `receipt_taxes` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `receipt_id` int(10) unsigned NOT NULL,
  `tax_id` int(10) unsigned DEFAULT NULL,
  `amount` decimal(16,2) NOT NULL,
  `tax_amount` decimal(16,2) NOT NULL DEFAULT '0.00',
  `taxable_iibb` int(11) NOT NULL DEFAULT '0',
  `iva_iibb` int(11) 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 `receipt_taxes_receipt_id_foreign` (`receipt_id`),
  CONSTRAINT `receipt_taxes_receipt_id_foreign` FOREIGN KEY (`receipt_id`) REFERENCES `receipts` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=274 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `receipt_taxes`
--

INSERT INTO `receipt_taxes` VALUES (116,7503,65,2,27024.79,5675.21,2,1,'2023-02-10 15:45:44','2023-02-10 15:45:44',NULL),(117,7503,66,2,8780.00,1843.80,2,1,'2023-02-10 15:45:44','2023-02-10 15:45:44',NULL),(122,7503,67,2,6695.39,1406.03,2,1,'2023-02-10 15:47:46','2023-02-10 15:47:46',NULL),(123,7503,67,1006,200.86,0.00,2,2,'2023-02-10 15:47:46','2023-02-10 15:47:46',NULL),(124,7503,68,2,5441.34,1142.68,2,1,'2023-02-10 16:01:41','2023-02-10 16:01:41',NULL),(125,7503,68,7,917.07,0.00,2,1,'2023-02-10 16:01:41','2023-02-10 16:01:41',NULL),(126,7503,68,1006,190.75,0.00,2,2,'2023-02-10 16:01:41','2023-02-10 16:01:41',NULL),(127,7503,69,2,291135.89,61137.92,2,1,'2023-03-21 10:02:48','2023-03-21 10:02:48',NULL),(128,7503,69,7,-0.01,0.00,2,1,'2023-03-21 10:02:48','2023-03-21 10:02:48',NULL),(129,7503,70,2,526014.00,110462.94,2,1,'2023-03-21 10:02:48','2023-03-21 10:02:48',NULL),(130,7503,71,2,273452.01,57424.92,2,1,'2023-03-21 10:02:48','2023-03-21 10:02:48',NULL),(131,7503,72,2,537686.01,112914.07,2,1,'2023-03-21 10:02:48','2023-03-21 10:02:48',NULL),(132,7503,73,2,373355.47,78404.65,2,1,'2023-03-21 10:02:48','2023-03-21 10:02:48',NULL),(133,7503,74,2,84480.71,17740.95,2,1,'2023-03-21 10:02:49','2023-03-21 10:02:49',NULL),(134,7503,75,2,95847.24,20127.92,2,1,'2023-03-21 10:02:49','2023-03-21 10:02:49',NULL),(141,7503,80,2,17238.52,3620.09,2,1,'2023-03-21 10:06:12','2023-03-21 10:06:12',NULL),(142,7503,80,7,1292.89,0.00,2,1,'2023-03-21 10:06:12','2023-03-21 10:06:12',NULL),(143,7503,81,2,41016.53,8613.47,2,1,'2023-03-21 10:06:12','2023-03-21 10:06:12',NULL),(144,7503,82,2,28975.20,6084.80,2,1,'2023-03-21 10:06:13','2023-03-21 10:06:13',NULL),(147,7503,84,2,16487.60,3462.40,2,1,'2023-03-21 10:06:13','2023-03-21 10:06:13',NULL),(152,7503,87,2,6016.84,1263.54,2,1,'2023-03-21 10:09:02','2023-03-21 10:09:02',NULL),(153,7503,87,1001,820.61,0.00,2,3,'2023-03-21 10:09:02','2023-03-21 10:09:02',NULL),(154,7503,86,2,7429.75,1560.25,2,1,'2023-03-21 10:09:28','2023-03-21 10:09:28',NULL),(155,7503,85,2,58505.90,12286.24,2,1,'2023-03-21 10:09:46','2023-03-21 10:09:46',NULL),(156,7503,83,2,7010.84,1472.28,2,1,'2023-03-21 10:11:04','2023-03-21 10:11:04',NULL),(157,7503,83,1001,1116.29,0.00,2,3,'2023-03-21 10:11:04','2023-03-21 10:11:04',NULL),(158,7503,83,1005,406.46,0.00,2,2,'2023-03-21 10:11:04','2023-03-21 10:11:04',NULL),(159,7503,79,2,4799.00,1007.79,2,1,'2023-03-21 10:11:38','2023-03-21 10:11:38',NULL),(160,7503,79,1005,239.95,0.00,2,2,'2023-03-21 10:11:38','2023-03-21 10:11:38',NULL),(161,7503,78,1,10099.55,1060.45,2,1,'2023-03-21 10:12:02','2023-03-21 10:12:02',NULL),(162,7503,77,2,4115.21,864.19,2,1,'2023-03-21 10:12:35','2023-03-21 10:12:35',NULL),(163,7503,77,1005,205.76,0.00,2,2,'2023-03-21 10:12:35','2023-03-21 10:12:35',NULL),(164,7503,77,1006,102.88,0.00,2,2,'2023-03-21 10:12:35','2023-03-21 10:12:35',NULL),(165,7503,88,2,6319.33,1327.06,2,1,'2023-03-21 10:16:27','2023-03-21 10:16:27',NULL),(166,7503,88,1001,958.14,0.00,2,3,'2023-03-21 10:16:27','2023-03-21 10:16:27',NULL),(167,7503,88,1005,363.87,0.00,2,2,'2023-03-21 10:16:27','2023-03-21 10:16:27',NULL),(168,7503,91,2,1000.00,210.00,2,1,'2023-03-21 12:40:38','2023-03-21 12:40:38',NULL),(169,7503,92,2,254395.70,53423.10,2,1,'2023-03-21 12:40:38','2023-03-21 12:40:38',NULL),(170,7503,93,2,14710.74,3089.26,2,1,'2023-03-21 12:41:00','2023-03-21 12:41:00',NULL),(171,7503,94,2,9917.36,2082.64,2,1,'2023-03-21 12:41:00','2023-03-21 12:41:00',NULL),(172,7503,95,2,8909.09,1870.91,2,1,'2023-03-21 12:41:00','2023-03-21 12:41:00',NULL),(174,7503,97,2,6991.74,1468.27,2,1,'2023-03-21 12:41:00','2023-03-21 12:41:00',NULL),(177,7503,99,2,58141.47,12209.71,2,1,'2023-03-21 12:41:00','2023-03-21 12:41:00',NULL),(178,7503,100,2,7404.96,1555.04,2,1,'2023-03-21 12:41:00','2023-03-21 12:41:00',NULL),(181,7503,102,2,1729.74,363.25,2,1,'2023-03-21 12:41:00','2023-03-21 12:41:00',NULL),(182,7503,103,2,2834.19,595.18,2,1,'2023-03-21 12:41:01','2023-03-21 12:41:01',NULL),(185,7503,104,2,7882.67,1655.36,2,1,'2023-03-21 12:43:12','2023-03-21 12:43:12',NULL);
INSERT INTO `receipt_taxes` VALUES (186,7503,104,1001,1130.57,0.00,2,3,'2023-03-21 12:43:12','2023-03-21 12:43:12',NULL),(187,7503,104,1005,450.66,0.00,2,2,'2023-03-21 12:43:12','2023-03-21 12:43:12',NULL),(188,7503,101,2,413.22,86.78,2,1,'2023-03-21 12:43:41','2023-03-21 12:43:41',NULL),(189,7503,101,1001,18.59,0.00,2,3,'2023-03-21 12:43:41','2023-03-21 12:43:41',NULL),(190,7503,98,2,6957.22,1461.02,2,1,'2023-03-21 12:44:07','2023-03-21 12:44:07',NULL),(191,7503,98,1001,1082.46,0.00,2,3,'2023-03-21 12:44:07','2023-03-21 12:44:07',NULL),(192,7503,98,1005,401.98,0.00,2,2,'2023-03-21 12:44:07','2023-03-21 12:44:07',NULL),(193,7503,96,1,27854.30,2924.70,2,1,'2023-03-21 12:44:24','2023-03-21 12:44:24',NULL),(194,7503,105,2,2923.28,613.89,2,1,'2023-03-21 12:46:27','2023-03-21 12:46:27',NULL),(195,7503,105,1001,462.75,0.00,2,3,'2023-03-21 12:46:27','2023-03-21 12:46:27',NULL),(196,7503,106,2,5779.72,1213.74,2,1,'2023-03-21 12:48:27','2023-03-21 12:48:27',NULL),(197,7503,106,1001,907.14,0.00,2,3,'2023-03-21 12:48:27','2023-03-21 12:48:27',NULL),(198,7503,107,2,1473.11,309.35,2,1,'2023-03-21 12:49:18','2023-03-21 12:49:18',NULL),(199,7503,107,1001,217.64,0.00,2,3,'2023-03-21 12:49:18','2023-03-21 12:49:18',NULL),(200,7503,108,2,1928387.24,404961.87,2,1,'2023-05-18 08:56:41','2023-05-18 08:56:41',NULL),(201,7503,109,2,695043.47,145959.13,2,1,'2023-05-18 08:56:41','2023-05-18 08:56:41',NULL),(202,7503,110,2,85991.52,18058.22,2,1,'2023-05-18 08:56:41','2023-05-18 08:56:41',NULL),(203,7503,111,2,924220.62,194086.33,2,1,'2023-05-18 08:56:41','2023-05-18 08:56:41',NULL),(204,7503,112,2,134743.28,28296.09,2,1,'2023-05-18 08:56:41','2023-05-18 08:56:41',NULL),(205,7503,113,2,1000.00,210.00,2,1,'2023-05-18 08:56:41','2023-05-18 08:56:41',NULL),(206,7503,114,2,2206310.90,463325.29,2,1,'2023-05-18 08:56:41','2023-05-18 08:56:41',NULL),(226,7503,130,2,4005.26,841.10,2,1,'2023-05-18 08:57:13','2023-05-18 08:57:13',NULL),(228,7503,132,2,33471.06,7028.92,2,1,'2023-05-18 08:57:14','2023-05-18 08:57:14',NULL),(240,7503,142,2,11983.47,2516.53,2,1,'2023-05-18 08:57:14','2023-05-18 08:57:14',NULL),(241,7503,143,2,13221.60,2776.54,2,1,'2023-05-18 08:57:14','2023-05-18 08:57:14',NULL),(243,7503,145,2,75413.22,15836.78,2,1,'2023-05-18 08:57:14','2023-05-18 08:57:14',NULL),(245,7503,138,2,56768.19,11921.32,2,1,'2023-05-18 09:04:22','2023-05-18 09:04:22',NULL),(246,7503,135,2,3429.60,720.22,2,1,'2023-05-18 09:05:44','2023-05-18 09:05:44',NULL),(247,7503,135,1000,102.89,0.00,2,1,'2023-05-18 09:05:44','2023-05-18 09:05:44',NULL),(248,7503,135,1001,665.18,0.00,2,3,'2023-05-18 09:05:44','2023-05-18 09:05:44',NULL),(249,7503,135,1005,204.74,0.00,2,2,'2023-05-18 09:05:44','2023-05-18 09:05:44',NULL),(250,7503,135,1006,102.37,0.00,2,2,'2023-05-18 09:05:44','2023-05-18 09:05:44',NULL),(251,7503,134,2,5998.61,1259.71,2,1,'2023-05-18 09:06:29','2023-05-18 09:06:29',NULL),(252,7503,134,1005,299.93,0.00,2,2,'2023-05-18 09:06:29','2023-05-18 09:06:29',NULL),(253,7503,134,1006,149.97,0.00,2,2,'2023-05-18 09:06:29','2023-05-18 09:06:29',NULL),(254,7503,133,2,33471.06,7028.92,2,1,'2023-05-18 09:07:21','2023-05-18 09:07:21',NULL),(255,7503,128,2,35992.04,7558.33,2,1,'2023-05-18 09:10:45','2023-05-18 09:10:45',NULL),(256,7503,128,1005,1799.60,0.00,2,2,'2023-05-18 09:10:45','2023-05-18 09:10:45',NULL),(257,7503,128,1006,899.80,0.00,2,2,'2023-05-18 09:10:45','2023-05-18 09:10:45',NULL),(258,7503,124,2,1806460.00,379356.60,2,1,'2023-05-18 09:11:33','2023-05-18 09:11:33',NULL),(259,7503,123,2,4799.00,1007.79,2,1,'2023-05-18 09:12:08','2023-05-18 09:12:08',NULL),(260,7503,123,1005,239.95,0.00,2,2,'2023-05-18 09:12:08','2023-05-18 09:12:08',NULL),(261,7503,122,2,106347.60,22333.00,2,1,'2023-05-18 09:12:32','2023-05-18 09:12:32',NULL),(262,7503,121,2,5689.26,1194.74,2,1,'2023-05-18 09:12:54','2023-05-18 09:12:54',NULL),(263,7503,117,1,11765.61,1235.39,2,1,'2023-05-18 09:13:12','2023-05-18 09:13:12',NULL),(265,7503,148,1,52647.10,5527.95,2,1,'2023-05-18 09:18:50','2023-05-18 09:18:50',NULL);
INSERT INTO `receipt_taxes` VALUES (266,7503,148,1001,3266.72,0.00,2,3,'2023-05-18 09:18:50','2023-05-18 09:18:50',NULL),(267,7503,149,1,10928.49,1147.49,2,1,'2023-05-18 09:21:26','2023-05-18 09:21:26',NULL),(268,7503,149,1001,0.02,0.00,2,3,'2023-05-18 09:21:26','2023-05-18 09:21:26',NULL),(269,7503,150,2,5246.07,1101.67,2,1,'2023-05-18 09:23:11','2023-05-18 09:23:11',NULL),(270,7503,150,1005,262.30,0.00,2,2,'2023-05-18 09:23:11','2023-05-18 09:23:11',NULL),(271,7503,150,1006,131.15,0.00,2,2,'2023-05-18 09:23:11','2023-05-18 09:23:11',NULL),(272,7503,147,1,53894.80,5658.95,2,1,'2023-05-18 09:23:55','2023-05-18 09:23:55',NULL),(273,7503,147,1001,3222.05,0.00,2,3,'2023-05-18 09:23:55','2023-05-18 09:23:55',NULL);

--
-- Table structure for table `receipt_types`
--

CREATE TABLE `receipt_types` (
  `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 DEFAULT NULL,
  `credit` int(11) DEFAULT '0',
  `agroup_iva_module` int(10) unsigned DEFAULT NULL,
  `sell_no_taxabled` int(11) DEFAULT '0',
  `buy_no_taxabled` int(11) DEFAULT '0',
  `iva_condition_id` int(11) DEFAULT NULL,
  `is_fce_pyme` tinyint(1) NOT NULL DEFAULT '0',
  `afip_comprobante_id` int(11) DEFAULT NULL,
  `tipo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `letra` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `facta_electronica` int(10) unsigned NOT NULL DEFAULT '0',
  `is_stock_lpg` tinyint(1) NOT NULL DEFAULT '0',
  `show_from_total` tinyint(1) NOT NULL DEFAULT '0',
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=78 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `receipt_types`
--

INSERT INTO `receipt_types` VALUES (1,NULL,NULL,'2019-07-29 22:19:32','Factura A','1',0,1,0,0,2,0,1,'Factura','A',1,0,0,NULL),(2,NULL,NULL,'2019-07-29 22:19:32','Nota de débito A','2',0,1,0,0,2,0,2,'Nota de Débito','A',1,0,0,NULL),(3,NULL,NULL,'2019-07-29 22:19:32','Nota de crédito A','3',1,NULL,0,0,2,0,3,'Nota de Crédito','A',1,0,0,NULL),(4,NULL,NULL,'2025-05-08 09:33:49','Factura B','6',0,2,0,1,2,0,6,'Factura','B',1,0,1,NULL),(5,NULL,NULL,'2025-05-08 09:33:49','Nota de débito B','7',0,2,0,1,2,0,7,'Nota de Débito','B',1,0,1,NULL),(6,NULL,NULL,'2025-05-08 09:33:49','Nota de crédito B','8',1,NULL,0,1,2,0,8,'Nota de Crédito','B',1,0,1,NULL),(7,NULL,NULL,'2019-07-29 22:19:32','Factura C','11',0,0,1,1,1,0,11,'Factura','C',1,0,0,NULL),(8,NULL,NULL,'2019-07-29 22:19:32','Nota de débito C','12',0,0,1,1,1,0,12,'Nota de Débito','C',1,0,0,NULL),(9,NULL,NULL,'2019-07-29 22:19:32','Nota de crédito C','13',1,NULL,1,1,1,0,13,'Nota de Crédito','C',1,0,0,NULL),(10,NULL,NULL,NULL,'RECIBO A','4',0,1,0,0,2,0,4,'RECIBO','A',0,0,0,NULL),(11,NULL,NULL,'2025-05-08 09:33:49','RECIBO B','9',0,2,0,1,2,0,9,'RECIBO','B',0,0,1,NULL),(12,NULL,NULL,NULL,'RECIBO C','15',0,0,1,1,1,0,15,'RECIBO','C',0,0,0,NULL),(13,NULL,NULL,'2020-02-27 02:46:40','Factura E','19',0,0,1,0,2,0,19,'Factura','E',0,0,0,NULL),(14,NULL,NULL,'2020-02-27 02:46:40','Nota de débito E','20',0,0,1,0,2,0,20,'Nota de Débito','E',0,0,0,NULL),(15,NULL,NULL,'2020-02-27 02:46:40','Nota de Crédito E','21',1,NULL,1,0,2,0,21,'Nota de Crédito','E',0,0,0,NULL),(16,NULL,NULL,'2022-08-05 09:30:20','Factura M','51',0,1,0,0,2,0,51,'Factura','M',1,0,0,NULL),(17,NULL,NULL,'2020-02-27 02:46:40','Despacho de Importacion','66',0,NULL,0,0,0,0,66,NULL,NULL,0,0,0,NULL),(18,NULL,NULL,'2022-08-05 09:30:20','Nota de Credito M','53',1,NULL,0,0,2,0,53,'Nota de Crédito','M',1,0,0,NULL),(19,NULL,NULL,'2022-08-05 09:30:20','Nota de Debito M','52',1,1,0,0,2,0,52,'Nota de Débito','M',1,0,0,NULL),(20,NULL,NULL,NULL,'Recibo M','54',0,1,0,0,2,0,54,'RECIBO','M',0,0,0,NULL),(21,NULL,NULL,NULL,'Recibo E',NULL,1,0,1,0,2,0,NULL,'RECIBO','E',0,0,0,NULL),(22,NULL,'2019-05-14 21:22:16','2022-08-05 09:30:05','Liquidacion Primaria de Granos','33',0,1,0,0,2,0,33,'Liquidacion Primaria de Granos','A',0,1,0,NULL),(23,NULL,'2019-11-05 19:00:05','2019-11-05 19:00:05','FACTURA DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE) A','201',0,1,0,0,2,1,201,'FACTURA DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE)','A',1,0,0,NULL),(24,NULL,'2019-11-05 19:00:05','2019-11-05 19:00:05','NOTA DE DEBITO ELECTRÓNICA MiPyMEs (FCE) A','202',0,1,0,0,2,1,202,'NOTA DEBITO DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE)','A',1,0,0,NULL),(25,NULL,'2019-11-05 19:00:05','2019-11-05 19:00:05','NOTA DE CREDITO ELECTRÓNICA MiPyMEs (FCE) A','203',1,NULL,0,0,2,1,203,'NOTA CREDITO DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE)','A',1,0,0,NULL),(26,NULL,'2019-11-05 19:00:05','2025-05-08 09:33:49','FACTURA DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE) B','206',0,2,0,1,2,1,206,'FACTURA DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE)','B',1,0,1,NULL),(27,NULL,'2019-11-05 19:00:05','2025-05-08 09:33:49','NOTA DE DEBITO ELECTRÓNICA MiPyMEs (FCE) B','207',0,2,0,1,2,1,207,'NOTA DEBITO DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE)','B',1,0,1,NULL),(28,NULL,'2019-11-05 19:00:05','2025-05-08 09:33:49','NOTA DE CREDITO ELECTRÓNICA MiPyMEs (FCE) B','208',1,NULL,0,1,2,1,208,'NOTA CREDITO DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE)','B',1,0,1,NULL),(29,NULL,'2019-11-05 19:00:05','2019-11-05 19:00:05','FACTURA DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE) C','211',0,0,1,1,1,1,211,'FACTURA DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE)','C',1,0,0,NULL),(30,NULL,'2019-11-05 19:00:05','2019-11-05 19:00:05','NOTA DE DEBITO ELECTRÓNICA MiPyMEs (FCE) C','212',0,0,1,1,1,1,212,'NOTA DEBITO DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE)','C',1,0,0,NULL),(31,NULL,'2019-11-05 19:00:05','2019-11-05 19:00:05','NOTA DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE) C','213',1,NULL,1,1,1,1,213,'NOTA CREDITO DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE)','C',1,0,0,NULL);
INSERT INTO `receipt_types` VALUES (32,NULL,'2020-01-28 01:59:55','2022-08-05 09:30:06','Tique (Informe Diario Z)','83',0,2,0,0,2,0,83,'Cierre Diario Informe Z','Z',0,0,1,NULL),(33,NULL,'2020-02-19 04:48:11','2020-02-19 04:48:11','Comprobantes de Compra de Bienes No Registrables a Consumidores Finales','49',0,1,0,0,2,0,49,'Comprobantes de Compra de Bienes No Registrables','a Consumidores Finales',0,0,0,NULL),(34,NULL,'2022-08-05 09:29:59','2022-08-17 11:21:30','Cuenta de Venta y Líquido Producto A','60',0,1,0,0,2,1,60,'Cuentas de Venta y Liquido Producto A','A',1,0,0,NULL),(35,NULL,'2022-08-05 09:29:59','2025-05-08 09:33:49','Cuenta de Venta y Líquido Producto B','61',0,2,0,1,2,1,61,'Cuentas de Venta y Liquido Producto B','B',1,0,1,NULL),(36,NULL,'2022-08-05 09:29:59','2022-08-05 09:30:06','Liquidaciones A','63',0,1,0,0,2,1,63,'Liquidaciones A','A',1,0,0,NULL),(37,NULL,'2022-08-05 09:29:59','2025-05-08 09:33:49','Liquidaciones B','64',0,2,0,1,2,1,64,'Liquidaciones B','B',1,0,1,NULL),(38,NULL,'2022-08-05 09:30:06','2022-08-05 09:30:10','Tique Factura A','81',0,1,0,0,2,1,81,'Tique Factura','A',0,0,0,NULL),(39,NULL,'2022-08-05 09:30:06','2025-05-08 09:33:49','Tique Factura B','82',0,2,0,1,2,1,82,'Tique Factura','B',0,0,1,NULL),(40,NULL,'2022-08-05 09:30:06','2022-08-05 09:30:16','OTROS COMPROBANTES QUE NO CUMPLEN O ESTÁN EXCEPTUADOS DE LA R.G. 1415 Y SUS MODIF','99',0,1,1,1,1,1,99,'OTROS COMPROBANTES QUE NO CUMPLEN O ESTÁN EXCEPTUADOS DE LA R.G. 1415 Y SUS MODIF ','OTROS',0,0,0,NULL),(41,NULL,'2022-08-05 09:30:06','2022-08-05 09:30:06','Liquidacion de Compra A - Sector Pecuario','183',0,1,0,0,2,0,183,'Liquidacion de Compra','A',0,0,0,NULL),(42,NULL,'2022-08-05 09:30:06','2025-05-08 09:33:49','Liquidacion de Compra B - Sector Pecuario','185',0,2,0,1,2,0,185,'Liquidacion de Compra','B',0,0,1,NULL),(43,NULL,'2022-08-05 09:30:08','2022-08-05 09:30:10','Liquidacion de Venta Directa A - Sector Pecuario','190',0,1,0,0,2,1,190,'Liquidacion de Venta Directa','A',0,0,0,NULL),(44,NULL,'2022-08-05 09:30:08','2025-05-08 09:33:49','Liquidacion de Venta Directa B - Sector Pecuario','191',0,2,0,1,2,1,191,'Liquidacion de Venta Directa','B',0,0,0,NULL),(45,NULL,'2022-08-05 09:30:10','2022-08-05 09:30:10','Liquidacion Secundaria de Granos','331',0,1,0,0,2,1,331,'Liquidacion Secundaria de Granos','LSG',0,0,0,NULL),(46,NULL,'2022-08-05 09:30:10','2022-08-05 09:30:10','Certificado de Deposito','332',0,1,0,0,2,1,332,'Certificado de Deposito','CD',0,0,0,NULL),(47,NULL,'2022-08-05 09:30:10','2022-08-05 09:30:10','Liquidacion de Servicios Publicos Clase A','17',0,1,0,0,2,1,17,'Liquidacion de Servicios Publicos Clase A','LSPCA',0,0,0,NULL),(48,NULL,'2022-08-05 09:30:16','2022-08-05 09:30:16','Liquidacion de Servicios Publicos Clase B','18',0,2,0,1,2,1,18,'Liquidacion de Servicios Publicos Clase B','LSPCA',1,0,0,NULL),(49,NULL,NULL,NULL,'Factura Clase T','195',0,1,0,0,2,0,195,'Factura Clase T','T',0,0,0,NULL),(50,NULL,NULL,NULL,'Nota de Debito Clase T','196',0,1,0,0,2,0,196,'Factura Clase T','T',0,0,0,NULL),(51,NULL,NULL,NULL,'Nota de Credito Clase T','197',1,NULL,0,0,2,0,197,'Factura Clase T','T',0,0,0,NULL),(52,NULL,NULL,'2022-08-17 11:21:30','Cuenta de Venta y Líquido Producto A - Sector Pecuario','180',0,1,0,0,2,0,180,'Cuenta de Venta y Líquido Producto A','A',0,0,0,NULL),(53,NULL,NULL,'2025-05-08 09:33:49','Cuenta de Venta y Líquido Producto B - Sector Pecuario','182',0,2,0,1,2,0,182,'Cuenta de Venta y Líquido Producto B','B',0,0,0,NULL),(54,NULL,NULL,NULL,'Liquidación de Compra A','183',0,1,0,0,2,0,183,'Liquidación de Compra A ','A',0,0,0,NULL),(55,NULL,NULL,'2025-05-08 09:33:49','Liquidación de Compra B','185',0,2,0,1,2,0,185,'Liquidación de Compra B ','B',0,0,0,NULL),(56,NULL,NULL,NULL,'Liquidación de Compra Directa A','186',0,1,0,0,2,0,186,'Liquidación de Compra Directa A','A',0,0,0,NULL),(57,NULL,NULL,'2025-05-08 09:33:49','Liquidación de Compra Directa B','188',0,2,0,1,2,0,188,'Liquidación de Compra Directa B ','B',0,0,0,NULL);
INSERT INTO `receipt_types` VALUES (58,NULL,NULL,NULL,'Liquidación de Compra Directa C','189',0,0,1,1,1,0,189,'Liquidación de Compra Directa C ','C',0,0,0,NULL),(59,NULL,NULL,NULL,'Liquidación de Venta Directa A','190',0,1,0,0,2,0,190,'Liquidación de Venta Directa A','A',0,0,0,NULL),(60,NULL,NULL,'2025-05-08 09:33:49','Liquidación de Venta Directa B','191',0,2,0,1,2,0,191,'Liquidación de Venta Directa B ','B',0,0,0,NULL),(61,NULL,NULL,NULL,'Tique Factura C','109',0,0,0,1,1,0,109,NULL,'C',1,0,0,NULL),(62,NULL,NULL,NULL,'Tique Nota de Débito A','115',0,1,0,0,2,0,115,'Tique Nota de Débito A','A',1,0,0,NULL),(63,NULL,NULL,NULL,'Tique Nota de Crédito C','114',1,0,1,1,1,0,114,'Tique Nota de Crédito C','C',1,0,0,NULL),(64,NULL,NULL,NULL,'Otro Comprobante A que cumple con la RG 1415','39',0,1,0,0,2,0,39,'Otro Comprobante A que cumple con la RG 1415','A',0,0,0,NULL),(65,NULL,NULL,NULL,'Tique Nota de Crédito A','112',1,0,0,0,2,0,112,'Tique Nota de Crédito A','A',0,0,0,NULL),(66,NULL,NULL,'2025-05-08 09:33:49','Tique Nota de Crédito B','113',1,NULL,0,1,2,0,113,'Tique Nota de Crédito B','B',0,0,0,NULL),(67,NULL,NULL,'2025-05-08 09:33:49','Tique Nota de Debito B','116',0,2,0,1,2,0,116,'Tique Nota de Debito B','B',0,0,0,NULL),(68,NULL,NULL,NULL,'Tique Nota de Debito C','117',0,0,1,1,1,0,117,'Tique Nota de Debito C','C',0,0,0,NULL),(69,NULL,NULL,NULL,'Tique Factura M','118',0,1,0,0,2,0,118,'Tique Factura M','M',0,0,0,NULL),(70,NULL,NULL,NULL,'Tique Nota de Credito M','119',1,NULL,0,0,2,0,119,'Tique Nota de Credito M','M',0,0,0,NULL),(71,NULL,NULL,NULL,'Tique Nota de Debito M','120',0,1,0,0,2,0,120,'Tique Nota de Debito M','M',0,0,0,NULL),(72,NULL,NULL,NULL,'Nota Credito Despacho Importacion','6',1,NULL,0,0,2,0,66,NULL,NULL,0,0,0,NULL),(73,NULL,NULL,NULL,'NOTAS DE VENTA AL CONTADO A','5',0,1,0,0,2,0,5,'NOTAS DE VENTA AL CONTADO A','A',0,0,0,NULL),(74,NULL,NULL,NULL,'NOTAS DE VENTA AL CONTADO B','10',0,2,0,0,2,0,10,'NOTAS DE VENTA AL CONTADO B','B',0,0,0,NULL),(75,NULL,NULL,NULL,'NOTAS DE VENTA AL CONTADO C','16',0,0,1,1,1,0,16,'NOTAS DE VENTA AL CONTADO C','C',0,0,0,NULL),(76,NULL,NULL,NULL,'NOTAS DE VENTA AL CONTADO M','55',0,1,0,0,2,0,55,'NOTAS DE VENTA AL CONTADO M','M',0,0,0,NULL),(77,NULL,NULL,NULL,'CUENTAS DE VENTA Y LIQUIDO PRODUCTO M','58',0,1,0,0,2,0,58,'CUENTAS DE VENTA Y LIQUIDO PRODUCTO M','M',0,0,0,NULL);

--
-- Table structure for table `receipts`
--

CREATE TABLE `receipts` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `is_no_fiscal` tinyint(1) DEFAULT '0',
  `type_id` int(10) unsigned NOT NULL,
  `type_receipt_id` int(10) unsigned DEFAULT NULL,
  `comprobanteAfip` int(11) DEFAULT NULL,
  `ppc_receipt_id` bigint(20) unsigned DEFAULT NULL,
  `fact_elec_receipt_id` int(10) unsigned DEFAULT NULL,
  `cta_cte_tesoreria_id` int(10) unsigned DEFAULT NULL,
  `period_id` int(10) unsigned NOT NULL,
  `zone_id` int(10) unsigned DEFAULT NULL,
  `plan_cuenta_id` int(10) unsigned DEFAULT NULL,
  `conta_centro_costo_id` bigint(20) unsigned DEFAULT NULL,
  `activity_id` int(10) unsigned DEFAULT NULL,
  `iva_creditos_tipo_id` int(10) unsigned NOT NULL DEFAULT '1',
  `retention_type_id` int(10) unsigned DEFAULT NULL,
  `person_id_owner` int(10) unsigned NOT NULL,
  `person_id_relationed` int(10) unsigned DEFAULT NULL,
  `number` int(8) unsigned zerofill DEFAULT NULL,
  `hasta` int(8) unsigned zerofill DEFAULT NULL,
  `reference` int(11) DEFAULT NULL,
  `receipt_date` date DEFAULT NULL,
  `expiration_date` date DEFAULT NULL,
  `code_ticket` int(4) unsigned zerofill DEFAULT NULL,
  `status_id` int(10) unsigned DEFAULT NULL,
  `tax_account_id` int(10) unsigned DEFAULT NULL,
  `amount` decimal(16,2) NOT NULL,
  `pendiente` decimal(16,2) NOT NULL DEFAULT '0.00',
  `moneda_id` int(10) unsigned NOT NULL DEFAULT '1',
  `cotizacion` decimal(9,2) NOT NULL DEFAULT '1.00',
  `dc_firma_id` bigint(20) unsigned NOT NULL DEFAULT '3',
  `condicion_venta_id` int(10) unsigned DEFAULT NULL,
  `is_pago_adelantado` tinyint(1) DEFAULT NULL,
  `is_garantia` tinyint(1) NOT NULL DEFAULT '0',
  `plazo_de_pago_id` int(10) unsigned DEFAULT NULL,
  `file` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT 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 `receipts_type_id_foreign` (`type_id`),
  KEY `receipts_type_receipt_id_foreign` (`type_receipt_id`),
  KEY `receipts_tax_account_id_foreign` (`tax_account_id`),
  KEY `receipts_zone_id_foreign` (`zone_id`),
  KEY `receipts_activity_id_foreign` (`activity_id`),
  KEY `receipts_retention_type_id_foreign` (`retention_type_id`),
  KEY `receipts_status_id_foreign` (`status_id`),
  KEY `receipts_person_id_owner_foreign` (`person_id_owner`),
  KEY `receipts_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `receipts_period_id_foreign` (`period_id`),
  KEY `receipts_plan_cuenta_id_foreign` (`plan_cuenta_id`),
  KEY `receipts_fact_elec_receipt_id_foreign` (`fact_elec_receipt_id`),
  KEY `receipts_iva_creditos_tipo_id_foreign` (`iva_creditos_tipo_id`),
  KEY `receipts_conta_centro_costo_id_foreign` (`conta_centro_costo_id`),
  KEY `receipts_moneda_id_foreign` (`moneda_id`),
  KEY `receipts_dc_firma_id_foreign` (`dc_firma_id`),
  KEY `receipts_ppc_receipt_id_foreign` (`ppc_receipt_id`),
  KEY `receipts_cta_cte_tesoreria_id_foreign` (`cta_cte_tesoreria_id`),
  CONSTRAINT `receipts_activity_id_foreign` FOREIGN KEY (`activity_id`) REFERENCES `activities` (`id`),
  CONSTRAINT `receipts_conta_centro_costo_id_foreign` FOREIGN KEY (`conta_centro_costo_id`) REFERENCES `conta_centro_costos` (`id`),
  CONSTRAINT `receipts_cta_cte_tesoreria_id_foreign` FOREIGN KEY (`cta_cte_tesoreria_id`) REFERENCES `cta_cte_tesoreria` (`id`),
  CONSTRAINT `receipts_dc_firma_id_foreign` FOREIGN KEY (`dc_firma_id`) REFERENCES `dc_firmas` (`id`),
  CONSTRAINT `receipts_fact_elec_receipt_id_foreign` FOREIGN KEY (`fact_elec_receipt_id`) REFERENCES `fact_elec_receipts` (`id`),
  CONSTRAINT `receipts_iva_creditos_tipo_id_foreign` FOREIGN KEY (`iva_creditos_tipo_id`) REFERENCES `iva_creditos_tipos` (`id`),
  CONSTRAINT `receipts_moneda_id_foreign` FOREIGN KEY (`moneda_id`) REFERENCES `monedas` (`id`),
  CONSTRAINT `receipts_period_id_foreign` FOREIGN KEY (`period_id`) REFERENCES `periods` (`id`),
  CONSTRAINT `receipts_person_id_owner_foreign` FOREIGN KEY (`person_id_owner`) REFERENCES `persons` (`id`),
  CONSTRAINT `receipts_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`),
  CONSTRAINT `receipts_plan_cuenta_id_foreign` FOREIGN KEY (`plan_cuenta_id`) REFERENCES `conta_plan_cuenta` (`id`),
  CONSTRAINT `receipts_ppc_receipt_id_foreign` FOREIGN KEY (`ppc_receipt_id`) REFERENCES `ppc_receipts` (`id`),
  CONSTRAINT `receipts_retention_type_id_foreign` FOREIGN KEY (`retention_type_id`) REFERENCES `retention_types` (`id`),
  CONSTRAINT `receipts_status_id_foreign` FOREIGN KEY (`status_id`) REFERENCES `status` (`id`),
  CONSTRAINT `receipts_tax_account_id_foreign` FOREIGN KEY (`tax_account_id`) REFERENCES `tax_accounts` (`id`),
  CONSTRAINT `receipts_type_id_foreign` FOREIGN KEY (`type_id`) REFERENCES `types` (`id`),
  CONSTRAINT `receipts_type_receipt_id_foreign` FOREIGN KEY (`type_receipt_id`) REFERENCES `receipt_types` (`id`),
  CONSTRAINT `receipts_zone_id_foreign` FOREIGN KEY (`zone_id`) REFERENCES `zones` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=151 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `receipts`
--

INSERT INTO `receipts` VALUES (1,7503,0,1,1,NULL,NULL,NULL,NULL,6282,22,NULL,NULL,605,1,NULL,40723,40724,00001229,NULL,NULL,'2022-12-05','2022-12-05',0003,1,NULL,11554.29,11554.29,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-06 10:22:33','2023-02-09 15:24:58','2023-02-09 15:24:58'),(2,7503,0,1,1,NULL,NULL,NULL,NULL,6282,22,NULL,NULL,789,1,NULL,40723,40725,00001230,00001230,NULL,'2022-12-29','2022-12-29',0003,1,NULL,33880.00,33880.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-06 10:22:33','2023-02-09 15:25:05','2023-02-09 15:25:05'),(3,7503,0,1,4,NULL,NULL,NULL,NULL,6283,22,NULL,NULL,605,1,NULL,40723,40726,00000458,NULL,NULL,'2023-01-02','2023-01-02',0003,1,NULL,32700.00,32700.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-06 10:24:44','2023-02-09 15:25:10','2023-02-09 15:25:10'),(4,7503,0,1,1,NULL,NULL,NULL,NULL,6283,22,NULL,NULL,605,1,NULL,40723,40724,00001231,NULL,NULL,'2023-01-17','2023-01-17',0003,1,NULL,10623.80,10623.80,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-06 10:24:44','2023-02-09 15:25:14','2023-02-09 15:25:14'),(5,7503,0,2,4,NULL,NULL,NULL,NULL,6283,22,217,NULL,789,1,NULL,40723,40727,03284338,NULL,NULL,'2022-12-05','2022-12-05',5015,1,NULL,513.39,513.39,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-06 10:26:05','2023-02-06 10:30:07','2023-02-06 10:30:07'),(6,7503,0,2,1,NULL,NULL,NULL,NULL,6283,22,217,NULL,789,1,NULL,40723,40728,00055488,NULL,NULL,'2022-12-05','2022-12-05',0008,1,NULL,18530.75,18530.75,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-06 10:26:06','2023-02-06 10:29:59','2023-02-06 10:29:59'),(7,7503,0,2,6,NULL,NULL,NULL,NULL,6283,22,217,NULL,789,1,NULL,40723,40729,00024152,NULL,NULL,'2022-12-06','2022-12-06',15451,1,NULL,7999.00,7999.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-06 10:26:06','2023-02-06 10:29:52','2023-02-06 10:29:52'),(8,7503,0,2,4,NULL,NULL,NULL,NULL,6283,22,217,NULL,789,1,NULL,40723,40730,02979348,NULL,NULL,'2022-12-16','2022-12-16',2188,1,NULL,5578.90,5578.90,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-06 10:26:06','2023-02-06 10:29:45','2023-02-06 10:29:45'),(9,7503,0,2,4,NULL,NULL,NULL,NULL,6283,22,217,NULL,789,1,NULL,40723,40731,25011178,NULL,NULL,'2022-12-17','2022-12-17',0629,1,NULL,299.00,299.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-06 10:26:06','2023-02-06 10:29:38','2023-02-06 10:29:38'),(10,7503,0,2,4,NULL,NULL,NULL,NULL,6283,22,217,NULL,789,1,NULL,40723,40727,03356494,NULL,NULL,'2022-12-19','2022-12-19',5015,1,NULL,279.65,279.65,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-06 10:26:06','2023-02-06 10:29:22','2023-02-06 10:29:22'),(11,7503,0,2,1,NULL,NULL,NULL,NULL,6283,22,217,NULL,789,1,NULL,40723,40732,00024153,NULL,NULL,'2022-12-30','2022-12-30',0003,1,NULL,25619.40,25619.40,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-06 10:26:06','2023-02-06 10:29:14','2023-02-06 10:29:14'),(12,7503,0,2,4,NULL,NULL,NULL,NULL,6282,22,217,NULL,605,1,NULL,40723,40727,03284338,NULL,NULL,'2022-12-05','2022-12-05',5015,1,NULL,513.39,513.39,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-06 10:31:07','2023-02-09 15:26:35','2023-02-09 15:26:35'),(13,7503,0,2,1,NULL,NULL,NULL,NULL,6282,22,217,NULL,605,1,NULL,40723,40728,00055488,00055488,NULL,'2022-12-05','2022-12-05',0008,1,NULL,18530.75,18530.75,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-06 10:31:07','2023-02-09 15:26:30','2023-02-09 15:26:30'),(14,7503,0,2,6,NULL,NULL,NULL,NULL,6282,22,217,NULL,605,1,NULL,40723,40729,00024152,NULL,NULL,'2022-12-06','2022-12-06',15451,1,NULL,7999.00,7999.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-06 10:31:08','2023-02-09 15:26:27','2023-02-09 15:26:27'),(15,7503,0,2,4,NULL,NULL,NULL,NULL,6282,22,217,NULL,605,1,NULL,40723,40730,02979348,NULL,NULL,'2022-12-16','2022-12-16',2188,1,NULL,5578.90,5578.90,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-06 10:31:08','2023-02-09 15:25:36','2023-02-09 15:25:36'),(16,7503,0,2,4,NULL,NULL,NULL,NULL,6282,22,217,NULL,605,1,NULL,40723,40731,25011178,NULL,NULL,'2022-12-17','2022-12-17',0629,1,NULL,299.00,299.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-06 10:31:08','2023-02-09 15:26:23','2023-02-09 15:26:23');
INSERT INTO `receipts` VALUES (17,7503,0,2,4,NULL,NULL,NULL,NULL,6282,22,217,NULL,605,1,NULL,40723,40727,03356494,NULL,NULL,'2022-12-19','2022-12-19',5015,1,NULL,279.65,279.65,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-06 10:31:08','2023-02-09 15:26:16','2023-02-09 15:26:16'),(18,7503,0,2,1,NULL,NULL,NULL,NULL,6282,22,217,NULL,605,1,NULL,40723,40732,00024153,00024153,NULL,'2022-12-30','2022-12-30',0003,1,NULL,25619.40,25619.40,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-06 10:31:08','2023-02-09 15:25:40','2023-02-09 15:25:40'),(19,7503,0,2,4,NULL,NULL,NULL,NULL,6283,22,217,NULL,605,1,NULL,40723,40731,25429251,NULL,NULL,'2023-01-03','2023-01-03',0629,1,NULL,204.00,204.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-06 10:31:45','2023-02-09 15:26:12','2023-02-09 15:26:12'),(20,7503,0,2,4,NULL,NULL,NULL,NULL,6283,22,217,NULL,605,1,NULL,40723,40733,18401620,NULL,NULL,'2023-01-03','2023-01-03',0050,1,NULL,1815.00,1815.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-06 10:31:45','2023-02-09 15:26:09','2023-02-09 15:26:09'),(21,7503,0,2,4,NULL,NULL,NULL,NULL,6283,22,217,NULL,605,1,NULL,40723,40730,00004480,NULL,NULL,'2023-01-06','2023-01-06',2963,1,NULL,12766.97,12766.97,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-06 10:31:45','2023-02-09 15:25:54','2023-02-09 15:25:54'),(22,7503,0,2,4,NULL,NULL,NULL,NULL,6283,22,217,NULL,605,1,NULL,40723,40734,00061531,NULL,NULL,'2023-01-14','2023-01-14',0033,1,NULL,3150.18,3150.18,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-06 10:31:45','2023-02-09 15:26:01','2023-02-09 15:26:01'),(23,7503,0,2,1,NULL,NULL,NULL,NULL,6283,22,217,NULL,605,1,NULL,40723,40728,00056492,NULL,NULL,'2023-01-16','2023-01-16',0008,1,NULL,8302.28,8302.28,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-06 10:31:45','2023-02-09 15:25:49','2023-02-09 15:25:49'),(24,7503,0,2,4,NULL,NULL,NULL,NULL,6283,22,217,NULL,605,1,NULL,40723,40731,25741343,NULL,NULL,'2023-01-17','2023-01-17',0629,1,NULL,68.00,68.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-06 10:31:45','2023-02-09 15:25:57','2023-02-09 15:25:57'),(25,7503,0,2,4,NULL,NULL,NULL,NULL,6283,22,217,NULL,605,1,NULL,40723,40735,00514235,NULL,NULL,'2023-01-18','2023-01-18',1309,1,NULL,100.00,100.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-06 10:31:45','2023-02-09 15:25:32','2023-02-09 15:25:32'),(26,7503,0,2,1,NULL,NULL,NULL,NULL,6283,22,217,NULL,605,1,NULL,40723,40736,00010577,NULL,NULL,'2023-01-28','2023-01-28',7850,1,NULL,7691.84,7691.84,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-06 10:31:45','2023-02-09 15:25:24','2023-02-09 15:25:24'),(29,7503,0,3,1,NULL,NULL,NULL,NULL,6282,22,NULL,NULL,1,1,5,40723,40728,00221103,NULL,8221103,'0000-00-00',NULL,0008,1,NULL,72.00,0.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-07 14:46:03','2023-02-09 15:26:48','2023-02-09 15:26:48'),(30,7503,0,3,1,NULL,NULL,NULL,NULL,6282,22,NULL,NULL,1,1,5,40723,40735,00221112,NULL,23221112,'1621-12-23',NULL,0023,1,NULL,7.00,0.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-07 14:46:03','2023-02-09 15:26:43','2023-02-09 15:26:43'),(31,7503,0,2,4,NULL,NULL,NULL,NULL,6282,22,217,NULL,605,1,NULL,40723,40727,03284338,NULL,NULL,'2022-12-05','2022-12-05',5015,1,NULL,513.39,513.39,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-09 15:31:05','2023-02-09 15:56:51','2023-02-09 15:56:51'),(32,7503,0,2,1,NULL,NULL,NULL,NULL,6282,22,217,NULL,605,1,NULL,40723,40728,00055488,00055488,NULL,'2022-12-05','2022-12-05',0008,1,NULL,18530.75,18530.75,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-09 15:31:05','2023-02-09 15:56:47','2023-02-09 15:56:47'),(33,7503,0,2,6,NULL,NULL,NULL,NULL,6282,22,217,NULL,605,1,NULL,40723,40729,00024152,NULL,NULL,'2022-12-06','2022-12-06',15451,1,NULL,7999.00,7999.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-09 15:31:05','2023-02-09 15:50:23','2023-02-09 15:50:23'),(34,7503,0,2,4,NULL,NULL,NULL,NULL,6282,22,217,NULL,605,1,NULL,40723,40730,02979348,NULL,NULL,'2022-12-16','2022-12-16',2188,1,NULL,5578.90,5578.90,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-09 15:31:05','2023-02-09 15:56:44','2023-02-09 15:56:44');
INSERT INTO `receipts` VALUES (35,7503,0,2,4,NULL,NULL,NULL,NULL,6282,22,217,NULL,605,1,NULL,40723,40731,25011178,NULL,NULL,'2022-12-17','2022-12-17',0629,1,NULL,299.00,299.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-09 15:31:06','2023-02-09 15:56:40','2023-02-09 15:56:40'),(36,7503,0,2,4,NULL,NULL,NULL,NULL,6282,22,217,NULL,605,1,NULL,40723,40727,03356494,NULL,NULL,'2022-12-19','2022-12-19',5015,1,NULL,279.65,279.65,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-09 15:31:06','2023-02-09 15:56:36','2023-02-09 15:56:36'),(37,7503,0,2,1,NULL,NULL,NULL,NULL,6282,22,217,NULL,605,1,NULL,40723,40732,00024153,00024153,NULL,'2022-12-30','2022-12-30',0003,1,NULL,25619.40,25619.40,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-09 15:31:06','2023-02-09 15:56:31','2023-02-09 15:56:31'),(38,7503,0,1,1,NULL,NULL,NULL,NULL,6282,22,NULL,NULL,605,1,NULL,40723,40724,00001229,NULL,NULL,'2022-12-05','2022-12-05',0003,1,NULL,11554.29,11554.29,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-09 15:43:51','2023-02-09 16:44:55','2023-02-09 16:44:55'),(39,7503,0,1,1,NULL,NULL,NULL,NULL,6282,22,NULL,NULL,789,1,NULL,40723,40725,00001230,00001230,NULL,'2022-12-29','2022-12-29',0003,1,NULL,33880.00,33880.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-09 15:43:51','2023-02-09 16:44:51','2023-02-09 16:44:51'),(40,7503,0,2,4,NULL,NULL,NULL,NULL,6282,22,217,NULL,605,1,NULL,40723,40727,03284338,NULL,NULL,'2022-12-05','2022-12-05',5015,1,NULL,513.39,513.39,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-09 16:16:04','2023-02-09 16:16:50','2023-02-09 16:16:50'),(41,7503,0,2,1,NULL,NULL,NULL,NULL,6282,22,217,NULL,605,1,NULL,40723,40728,00055488,00055488,NULL,'2022-12-05','2022-12-05',0008,1,NULL,18530.75,18530.75,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-09 16:16:04','2023-02-09 16:45:07','2023-02-09 16:45:07'),(42,7503,0,2,6,NULL,NULL,NULL,NULL,6282,22,217,NULL,605,1,NULL,40723,40729,00024152,NULL,NULL,'2022-12-06','2022-12-06',15451,1,NULL,7999.00,7999.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-09 16:16:04','2023-02-09 16:16:45','2023-02-09 16:16:45'),(43,7503,0,2,4,NULL,NULL,NULL,NULL,6282,22,217,NULL,605,1,NULL,40723,40730,02979348,NULL,NULL,'2022-12-16','2022-12-16',2188,1,NULL,5578.90,5578.90,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-09 16:16:05','2023-02-09 16:16:33','2023-02-09 16:16:33'),(44,7503,0,2,4,NULL,NULL,NULL,NULL,6282,22,217,NULL,605,1,NULL,40723,40731,25011178,NULL,NULL,'2022-12-17','2022-12-17',0629,1,NULL,299.00,299.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-09 16:16:05','2023-02-09 16:16:23','2023-02-09 16:16:23'),(45,7503,0,2,4,NULL,NULL,NULL,NULL,6282,22,217,NULL,605,1,NULL,40723,40727,03356494,NULL,NULL,'2022-12-19','2022-12-19',5015,1,NULL,279.65,279.65,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-09 16:16:05','2023-02-09 16:16:38','2023-02-09 16:16:38'),(46,7503,0,2,1,NULL,NULL,NULL,NULL,6282,22,217,NULL,605,1,NULL,40723,40732,00024153,00024153,NULL,'2022-12-30','2022-12-30',0003,1,NULL,25619.40,25619.40,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-09 16:16:05','2023-02-09 16:45:03','2023-02-09 16:45:03'),(47,7503,0,1,4,NULL,NULL,NULL,NULL,6283,22,NULL,NULL,605,1,NULL,40723,40726,00000458,NULL,NULL,'2023-01-02','2023-01-02',0003,1,NULL,32700.00,32700.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-09 16:48:36','2023-02-10 15:41:05','2023-02-10 15:41:05'),(48,7503,0,1,1,NULL,NULL,NULL,NULL,6283,22,NULL,NULL,605,1,NULL,40723,40724,00001231,NULL,NULL,'2023-01-17','2023-01-17',0003,1,NULL,10623.80,10623.80,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-09 16:48:36','2023-02-10 15:40:55','2023-02-10 15:40:55'),(49,7503,0,2,1,NULL,NULL,NULL,NULL,6283,22,217,NULL,605,1,NULL,40723,40728,00056492,00056492,NULL,'2023-01-16','2023-01-16',0008,1,NULL,8302.28,8302.28,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-09 16:51:04','2023-02-09 17:42:06','2023-02-09 17:42:06'),(50,7503,0,2,1,NULL,NULL,NULL,NULL,6283,22,217,NULL,605,1,NULL,40723,40736,00010577,00010577,NULL,'2023-01-28','2023-01-28',7850,1,NULL,7691.84,7691.84,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-09 16:51:04','2023-02-09 17:42:02','2023-02-09 17:42:02');
INSERT INTO `receipts` VALUES (51,7503,0,2,4,NULL,NULL,NULL,NULL,6283,22,217,NULL,605,1,NULL,40723,40731,25429251,NULL,NULL,'2023-01-03','2023-01-03',0629,1,NULL,204.00,204.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-09 17:26:29','2023-02-09 17:41:59','2023-02-09 17:41:59'),(52,7503,0,2,4,NULL,NULL,NULL,NULL,6283,22,217,NULL,605,1,NULL,40723,40733,18401620,NULL,NULL,'2023-01-03','2023-01-03',0050,1,NULL,1815.00,1815.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-09 17:26:29','2023-02-09 17:41:54','2023-02-09 17:41:54'),(53,7503,0,2,4,NULL,NULL,NULL,NULL,6283,22,217,NULL,605,1,NULL,40723,40730,00004480,NULL,NULL,'2023-01-06','2023-01-06',2963,1,NULL,12766.97,12766.97,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-09 17:26:29','2023-02-09 17:41:49','2023-02-09 17:41:49'),(54,7503,0,2,4,NULL,NULL,NULL,NULL,6283,22,217,NULL,605,1,NULL,40723,40734,00061531,NULL,NULL,'2023-01-14','2023-01-14',0033,1,NULL,3150.18,3150.18,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-09 17:26:29','2023-02-09 17:41:39','2023-02-09 17:41:39'),(55,7503,0,2,4,NULL,NULL,NULL,NULL,6283,22,217,NULL,605,1,NULL,40723,40731,25741343,NULL,NULL,'2023-01-17','2023-01-17',0629,1,NULL,68.00,68.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-09 17:26:29','2023-02-09 17:41:22','2023-02-09 17:41:22'),(56,7503,0,2,4,NULL,NULL,NULL,NULL,6283,22,217,NULL,605,1,NULL,40723,40735,00514235,NULL,NULL,'2023-01-18','2023-01-18',1309,1,NULL,100.00,100.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-09 17:26:29','2023-02-09 17:41:16','2023-02-09 17:41:16'),(57,7503,0,2,4,NULL,NULL,NULL,NULL,6283,22,217,NULL,605,1,NULL,40723,40731,25429251,NULL,NULL,'2023-01-03','2023-01-03',0629,1,NULL,204.00,204.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-09 17:42:44','2023-02-10 15:42:14','2023-02-10 15:42:14'),(58,7503,0,2,4,NULL,NULL,NULL,NULL,6283,22,217,NULL,605,1,NULL,40723,40733,18401620,NULL,NULL,'2023-01-03','2023-01-03',0050,1,NULL,1815.00,1815.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-09 17:42:44','2023-02-10 15:42:07','2023-02-10 15:42:07'),(59,7503,0,2,4,NULL,NULL,NULL,NULL,6283,22,217,NULL,605,1,NULL,40723,40730,00004480,NULL,NULL,'2023-01-06','2023-01-06',2963,1,NULL,12766.97,12766.97,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-09 17:42:44','2023-02-10 15:42:00','2023-02-10 15:42:00'),(60,7503,0,2,4,NULL,NULL,NULL,NULL,6283,22,217,NULL,605,1,NULL,40723,40734,00061531,NULL,NULL,'2023-01-14','2023-01-14',0033,1,NULL,3150.18,3150.18,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-09 17:42:44','2023-02-10 15:41:53','2023-02-10 15:41:53'),(61,7503,0,2,1,NULL,NULL,NULL,NULL,6283,22,217,NULL,605,1,NULL,40723,40728,00056492,00056492,NULL,'2023-01-16','2023-01-16',0008,1,NULL,8302.28,8302.28,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-09 17:42:44','2023-02-10 15:41:45','2023-02-10 15:41:45'),(62,7503,0,2,4,NULL,NULL,NULL,NULL,6283,22,217,NULL,605,1,NULL,40723,40731,25741343,NULL,NULL,'2023-01-17','2023-01-17',0629,1,NULL,68.00,68.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-09 17:42:44','2023-02-10 15:41:35','2023-02-10 15:41:35'),(63,7503,0,2,4,NULL,NULL,NULL,NULL,6283,22,217,NULL,605,1,NULL,40723,40735,00514235,NULL,NULL,'2023-01-18','2023-01-18',1309,1,NULL,100.00,100.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-09 17:42:44','2023-02-10 15:41:27','2023-02-10 15:41:27'),(64,7503,0,2,1,NULL,NULL,NULL,NULL,6283,22,217,NULL,605,1,NULL,40723,40736,00010577,00010577,NULL,'2023-01-28','2023-01-28',7850,1,NULL,7691.84,7691.84,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-09 17:42:44','2023-02-10 15:41:19','2023-02-10 15:41:19'),(65,7503,0,1,4,NULL,NULL,NULL,NULL,6283,22,NULL,NULL,605,1,NULL,40723,40726,00000458,NULL,NULL,'2023-01-02','2023-01-02',0003,1,NULL,32700.00,32700.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-10 15:45:44','2023-02-10 15:45:44',NULL),(66,7503,0,1,1,NULL,NULL,NULL,NULL,6283,22,NULL,NULL,605,1,NULL,40723,40724,00001231,NULL,NULL,'2023-01-17','2023-01-17',0003,1,NULL,10623.80,10623.80,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-10 15:45:44','2023-02-10 15:45:44',NULL);
INSERT INTO `receipts` VALUES (67,7503,0,2,1,NULL,NULL,NULL,NULL,6283,22,217,NULL,605,1,NULL,40723,40728,00056492,00056492,NULL,'2023-01-16','2023-01-16',0008,1,NULL,8302.28,8302.28,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-10 15:46:31','2023-02-10 15:47:46',NULL),(68,7503,0,2,1,NULL,NULL,NULL,NULL,6283,22,217,NULL,605,1,NULL,40723,40736,00010577,00010577,NULL,'2023-01-28','2023-01-28',7850,1,NULL,7691.84,7691.84,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-02-10 15:46:31','2023-02-10 16:01:41',NULL),(69,7503,0,1,1,NULL,NULL,NULL,NULL,4529,22,NULL,NULL,804,1,NULL,40722,40737,00000194,NULL,NULL,'2023-01-02','2023-01-02',0003,1,NULL,352273.80,352273.80,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-03-21 10:02:48','2023-03-21 10:02:48',NULL),(70,7503,0,1,1,NULL,NULL,NULL,NULL,4529,22,NULL,NULL,804,1,NULL,40722,40738,00000195,NULL,NULL,'2023-01-16','2023-01-16',0003,1,NULL,636476.94,636476.94,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-03-21 10:02:48','2023-03-21 10:02:48',NULL),(71,7503,0,1,1,NULL,NULL,NULL,NULL,4529,22,NULL,NULL,804,1,NULL,40722,40737,00000196,NULL,NULL,'2023-01-17','2023-01-17',0003,1,NULL,330876.93,330876.93,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-03-21 10:02:48','2023-03-21 10:02:48',NULL),(72,7503,0,1,1,NULL,NULL,NULL,NULL,4529,22,NULL,NULL,804,1,NULL,40722,40737,00000197,NULL,NULL,'2023-01-18','2023-01-18',0003,1,NULL,650600.08,650600.08,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-03-21 10:02:48','2023-03-21 10:02:48',NULL),(73,7503,0,1,1,NULL,NULL,NULL,NULL,4529,22,NULL,NULL,804,1,NULL,40722,40737,00000198,NULL,NULL,'2023-01-18','2023-01-18',0003,1,NULL,451760.12,451760.12,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-03-21 10:02:48','2023-03-21 10:02:48',NULL),(74,7503,0,1,1,NULL,NULL,NULL,NULL,4529,22,NULL,NULL,804,1,NULL,40722,40737,00000199,NULL,NULL,'2023-01-23','2023-01-23',0003,1,NULL,102221.66,102221.66,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-03-21 10:02:49','2023-03-21 10:02:49',NULL),(75,7503,0,1,1,NULL,NULL,NULL,NULL,4529,22,NULL,NULL,804,1,NULL,40722,40737,00000200,NULL,NULL,'2023-01-27','2023-01-27',0003,1,NULL,115975.16,115975.16,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-03-21 10:02:49','2023-03-21 10:02:49',NULL),(76,7503,0,1,21,NULL,NULL,NULL,NULL,4529,22,NULL,NULL,804,1,NULL,40722,40739,00000000,NULL,NULL,'1969-12-31','1969-12-31',0000,1,NULL,0.00,0.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-03-21 10:02:49','2023-03-21 10:07:52','2023-03-21 10:07:52'),(77,7503,0,2,1,NULL,NULL,NULL,NULL,4529,22,217,NULL,804,1,NULL,40722,40740,03545677,03545677,NULL,'2023-01-01','2023-01-01',1007,1,NULL,5288.04,5288.04,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-03-21 10:06:12','2023-03-21 10:12:35',NULL),(78,7503,0,2,1,NULL,NULL,NULL,NULL,4529,22,217,NULL,804,1,NULL,40722,40741,00090006,00090006,NULL,'2023-01-01','2023-01-01',0016,1,NULL,11160.00,11160.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-03-21 10:06:12','2023-03-21 10:12:02',NULL),(79,7503,0,2,1,NULL,NULL,NULL,NULL,4529,22,217,NULL,804,1,NULL,40722,40742,00156507,00156507,NULL,'2023-01-03','2023-01-03',0001,1,NULL,6046.74,6046.74,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-03-21 10:06:12','2023-03-21 10:11:38',NULL),(80,7503,0,2,1,NULL,NULL,NULL,NULL,4529,22,217,NULL,804,1,NULL,40722,40743,00001806,NULL,NULL,'2023-01-05','2023-01-05',0072,1,NULL,22151.50,22151.50,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-03-21 10:06:12','2023-03-21 10:06:12',NULL),(81,7503,0,2,1,NULL,NULL,NULL,NULL,4529,22,217,NULL,804,1,NULL,40722,40744,00001335,NULL,NULL,'2023-01-07','2023-01-07',0006,1,NULL,49630.00,49630.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-03-21 10:06:12','2023-03-21 10:06:12',NULL),(82,7503,0,2,1,NULL,NULL,NULL,NULL,4529,22,217,NULL,804,1,NULL,40722,40745,00001002,NULL,NULL,'2023-01-16','2023-01-16',0001,1,NULL,35060.00,35060.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-03-21 10:06:13','2023-03-21 10:06:13',NULL),(83,7503,0,2,1,NULL,NULL,NULL,NULL,4529,22,217,NULL,804,1,NULL,40722,40736,00015155,00015155,NULL,'2023-01-17','2023-01-17',8460,1,NULL,10005.87,10005.87,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-03-21 10:06:13','2023-03-21 10:11:04',NULL);
INSERT INTO `receipts` VALUES (84,7503,0,2,1,NULL,NULL,NULL,NULL,4529,22,217,NULL,804,1,NULL,40722,40746,00001414,NULL,NULL,'2023-01-18','2023-01-18',0006,1,NULL,19950.00,19950.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-03-21 10:06:13','2023-03-21 10:06:13',NULL),(85,7503,0,2,1,NULL,NULL,NULL,NULL,4529,22,217,NULL,804,1,NULL,40722,40747,00014708,00014708,NULL,'2023-01-27','2023-01-27',0004,1,NULL,70792.14,70792.14,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-03-21 10:06:13','2023-03-21 10:09:46',NULL),(86,7503,0,2,1,NULL,NULL,NULL,NULL,4529,22,217,NULL,804,1,NULL,40722,40748,00011744,00011744,NULL,'2023-01-28','2023-01-28',0343,1,NULL,8990.00,8990.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-03-21 10:06:13','2023-03-21 10:09:28',NULL),(87,7503,0,2,1,NULL,NULL,NULL,NULL,4529,22,217,NULL,804,1,NULL,40722,40736,00003504,00003504,NULL,'2023-01-30','2023-01-30',8752,1,NULL,8100.99,8100.99,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-03-21 10:06:13','2023-03-21 10:09:02',NULL),(88,7503,0,2,38,NULL,NULL,NULL,NULL,4529,22,217,NULL,804,1,NULL,40722,40749,00004024,00004024,NULL,'2023-01-30','2023-01-30',0012,1,NULL,8968.40,8968.40,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-03-21 10:16:27','2023-03-21 10:16:27',NULL),(89,7503,0,3,1,NULL,NULL,NULL,NULL,4529,NULL,NULL,NULL,NULL,1,3,40722,40750,00009025,00009025,1,'2023-01-17',NULL,0001,1,NULL,701.65,0.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-03-21 10:36:09','2023-03-21 10:36:09',NULL),(90,7503,0,3,1,NULL,NULL,NULL,NULL,4529,NULL,NULL,NULL,NULL,1,3,40722,40751,00046472,00046472,1,'2023-01-13',NULL,0001,1,NULL,85.25,0.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-03-21 10:37:56','2023-03-21 10:37:56',NULL),(91,7503,0,1,1,NULL,NULL,NULL,NULL,4530,22,NULL,NULL,804,1,NULL,40722,40752,00000201,NULL,NULL,'2023-02-28','2023-02-28',0003,1,NULL,1210.00,1210.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-03-21 12:40:38','2023-03-21 12:40:38',NULL),(92,7503,0,1,1,NULL,NULL,NULL,NULL,4530,22,NULL,NULL,804,1,NULL,40722,40737,00000202,NULL,NULL,'2023-02-28','2023-02-28',0003,1,NULL,307818.80,307818.80,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-03-21 12:40:38','2023-03-21 12:40:38',NULL),(93,7503,0,2,1,NULL,NULL,NULL,NULL,4530,22,217,NULL,804,1,NULL,40722,40753,00002041,NULL,NULL,'2023-02-01','2023-02-01',0001,1,NULL,17800.00,17800.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-03-21 12:41:00','2023-03-21 12:41:00',NULL),(94,7503,0,2,1,NULL,NULL,NULL,NULL,4530,22,217,NULL,804,1,NULL,40722,40754,00000461,NULL,NULL,'2023-02-02','2023-02-02',0004,1,NULL,12000.00,12000.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-03-21 12:41:00','2023-03-21 12:41:00',NULL),(95,7503,0,2,1,NULL,NULL,NULL,NULL,4530,22,217,NULL,804,1,NULL,40722,40755,00043248,NULL,NULL,'2023-02-07','2023-02-07',0008,1,NULL,10780.00,10780.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-03-21 12:41:00','2023-03-21 12:41:00',NULL),(96,7503,0,2,1,NULL,NULL,NULL,NULL,4530,22,217,NULL,804,1,NULL,40722,40756,00000602,00000602,NULL,'2023-02-07','2023-02-07',0030,1,NULL,30779.00,30779.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-03-21 12:41:00','2023-03-21 12:44:24',NULL),(97,7503,0,2,1,NULL,NULL,NULL,NULL,4530,22,217,NULL,804,1,NULL,40722,40757,00016496,NULL,NULL,'2023-02-09','2023-02-09',0011,1,NULL,8460.01,8460.01,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-03-21 12:41:00','2023-03-21 12:41:00',NULL),(98,7503,0,2,1,NULL,NULL,NULL,NULL,4530,22,217,NULL,804,1,NULL,40722,40736,00009160,00009160,NULL,'2023-02-10','2023-02-10',7788,1,NULL,9902.68,9902.68,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-03-21 12:41:00','2023-03-21 12:44:07',NULL),(99,7503,0,2,1,NULL,NULL,NULL,NULL,4530,22,217,NULL,804,1,NULL,40722,40758,00009934,NULL,NULL,'2023-02-17','2023-02-17',0002,1,NULL,70351.18,70351.18,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-03-21 12:41:00','2023-03-21 12:41:00',NULL),(100,7503,0,2,1,NULL,NULL,NULL,NULL,4530,22,217,NULL,804,1,NULL,40722,40757,00016702,NULL,NULL,'2023-02-17','2023-02-17',0011,1,NULL,8960.00,8960.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-03-21 12:41:00','2023-03-21 12:41:00',NULL);
INSERT INTO `receipts` VALUES (101,7503,0,2,1,NULL,NULL,NULL,NULL,4530,22,217,NULL,804,1,NULL,40722,40759,03031652,03031652,NULL,'2023-02-20','2023-02-20',0104,1,NULL,518.59,518.59,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-03-21 12:41:00','2023-03-21 12:43:41',NULL),(102,7503,0,2,1,NULL,NULL,NULL,NULL,4530,22,217,NULL,804,1,NULL,40722,40760,00002043,NULL,NULL,'2023-02-22','2023-02-22',0002,1,NULL,2092.99,2092.99,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-03-21 12:41:00','2023-03-21 12:41:00',NULL),(103,7503,0,2,1,NULL,NULL,NULL,NULL,4530,22,217,NULL,804,1,NULL,40722,40761,00002080,NULL,NULL,'2023-02-23','2023-02-23',0006,1,NULL,3429.37,3429.37,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-03-21 12:41:01','2023-03-21 12:41:01',NULL),(104,7503,0,2,1,NULL,NULL,NULL,NULL,4530,22,217,NULL,804,1,NULL,40722,40736,00011517,00011517,NULL,'2023-02-24','2023-02-24',8456,1,NULL,11119.26,11119.26,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-03-21 12:41:01','2023-03-21 12:43:12',NULL),(105,7503,0,2,38,NULL,NULL,NULL,NULL,4530,22,217,NULL,804,1,NULL,40722,40762,00006698,00006698,NULL,'2023-02-08','2023-02-08',0011,1,NULL,3999.92,3999.92,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-03-21 12:46:27','2023-03-21 12:46:27',NULL),(106,7503,0,2,38,NULL,NULL,NULL,NULL,4530,22,217,NULL,804,1,NULL,40722,40763,00012097,00012097,NULL,'2023-02-08','2023-02-08',0011,1,NULL,7900.60,7900.60,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-03-21 12:48:27','2023-03-21 12:48:27',NULL),(107,7503,0,2,38,NULL,NULL,NULL,NULL,4530,22,217,NULL,804,1,NULL,40722,40764,00014916,00014916,NULL,'2023-02-23','2023-02-23',0013,1,NULL,2000.10,2000.10,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-03-21 12:49:18','2023-03-21 12:49:18',NULL),(108,7503,0,1,1,NULL,NULL,NULL,NULL,4531,22,NULL,NULL,804,1,NULL,40722,40737,00000203,NULL,NULL,'2023-03-01','2023-03-01',0003,1,NULL,2333349.11,2333349.11,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 08:56:41','2023-05-18 08:56:41',NULL),(109,7503,0,1,1,NULL,NULL,NULL,NULL,4531,22,NULL,NULL,804,1,NULL,40722,40737,00000204,NULL,NULL,'2023-03-01','2023-03-01',0003,1,NULL,841002.60,841002.60,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 08:56:41','2023-05-18 08:56:41',NULL),(110,7503,0,1,1,NULL,NULL,NULL,NULL,4531,22,NULL,NULL,804,1,NULL,40722,40737,00000205,NULL,NULL,'2023-03-02','2023-03-02',0003,1,NULL,104049.74,104049.74,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 08:56:41','2023-05-18 08:56:41',NULL),(111,7503,0,1,1,NULL,NULL,NULL,NULL,4531,22,NULL,NULL,804,1,NULL,40722,40737,00000206,NULL,NULL,'2023-03-15','2023-03-15',0003,1,NULL,1118306.95,1118306.95,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 08:56:41','2023-05-18 08:56:41',NULL),(112,7503,0,1,1,NULL,NULL,NULL,NULL,4531,22,NULL,NULL,804,1,NULL,40722,40737,00000207,NULL,NULL,'2023-03-22','2023-03-22',0003,1,NULL,163039.37,163039.37,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 08:56:41','2023-05-18 08:56:41',NULL),(113,7503,0,1,1,NULL,NULL,NULL,NULL,4531,22,NULL,NULL,804,1,NULL,40722,40752,00000208,NULL,NULL,'2023-03-23','2023-03-23',0003,1,NULL,1210.00,1210.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 08:56:41','2023-05-18 08:56:41',NULL),(114,7503,0,1,1,NULL,NULL,NULL,NULL,4531,22,NULL,NULL,804,1,NULL,40722,40737,00000209,NULL,NULL,'2023-03-23','2023-03-23',0003,1,NULL,2669636.19,2669636.19,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 08:56:41','2023-05-18 08:56:41',NULL),(115,7503,0,2,1,NULL,NULL,NULL,NULL,4531,22,250,NULL,804,1,NULL,40722,40740,03582009,NULL,NULL,'2023-03-01','2023-03-01',1007,1,NULL,0.00,0.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 08:57:13','2023-05-18 09:14:17','2023-05-18 09:14:17'),(116,7503,0,2,1,NULL,NULL,NULL,NULL,4531,22,217,NULL,804,1,NULL,40722,40765,00051306,NULL,NULL,'2023-03-01','2023-03-01',0014,1,NULL,287925.86,287925.86,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 08:57:13','2023-05-18 09:13:53','2023-05-18 09:13:53');
INSERT INTO `receipts` VALUES (117,7503,0,2,1,NULL,NULL,NULL,NULL,4531,22,217,NULL,804,1,NULL,40722,40741,00092289,00092289,NULL,'2023-03-01','2023-03-01',0016,1,NULL,13001.00,13001.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 08:57:13','2023-05-18 09:13:12',NULL),(118,7503,0,2,7,NULL,NULL,NULL,NULL,4531,22,250,NULL,804,1,NULL,40722,40766,00800125,NULL,NULL,'2023-03-02','2023-03-02',0061,1,NULL,119.00,119.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 08:57:13','2023-05-18 09:02:27','2023-05-18 09:02:27'),(119,7503,0,2,4,NULL,NULL,NULL,NULL,4531,22,217,NULL,804,1,NULL,40722,40731,26861171,NULL,NULL,'2023-03-02','2023-03-02',0629,1,NULL,163.00,163.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 08:57:13','2023-05-18 09:02:17','2023-05-18 09:02:17'),(120,7503,0,2,4,NULL,NULL,NULL,NULL,4531,22,217,NULL,804,1,NULL,40722,40767,30960047,NULL,NULL,'2023-03-02','2023-03-02',0711,1,NULL,163.00,163.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 08:57:13','2023-05-18 09:02:07','2023-05-18 09:02:07'),(121,7503,0,2,1,NULL,NULL,NULL,NULL,4531,22,217,NULL,804,1,NULL,40722,40768,00001072,00001072,NULL,'2023-03-02','2023-03-02',0006,1,NULL,6884.00,6884.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 08:57:13','2023-05-18 09:12:54',NULL),(122,7503,0,2,1,NULL,NULL,NULL,NULL,4531,22,217,NULL,804,1,NULL,40722,40769,00002528,00002528,NULL,'2023-03-02','2023-03-02',0125,1,NULL,128680.60,128680.60,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 08:57:13','2023-05-18 09:12:32',NULL),(123,7503,0,2,1,NULL,NULL,NULL,NULL,4531,22,217,NULL,804,1,NULL,40722,40742,00190502,00190502,NULL,'2023-03-02','2023-03-02',0001,1,NULL,6046.74,6046.74,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 08:57:13','2023-05-18 09:12:08',NULL),(124,7503,0,2,1,NULL,NULL,NULL,NULL,4531,22,217,NULL,804,1,NULL,40722,40770,00000300,00000300,NULL,'2023-03-03','2023-03-03',0006,1,NULL,2185816.60,2185816.60,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 08:57:13','2023-05-18 09:11:33',NULL),(125,7503,0,2,12,NULL,NULL,NULL,NULL,4531,22,250,NULL,804,1,NULL,40722,40719,00000714,NULL,NULL,'2023-03-04','2023-03-04',0002,1,NULL,5000.00,5000.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 08:57:13','2023-05-18 09:01:47','2023-05-18 09:01:47'),(126,7503,0,2,12,NULL,NULL,NULL,NULL,4531,22,250,NULL,804,1,NULL,40722,40719,00000703,NULL,NULL,'2023-03-04','2023-03-04',0002,1,NULL,5000.00,5000.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 08:57:13','2023-05-18 09:01:33','2023-05-18 09:01:33'),(127,7503,0,2,7,NULL,NULL,NULL,NULL,4531,22,250,NULL,804,1,NULL,40722,40771,06025145,NULL,NULL,'2023-03-08','2023-03-08',0400,1,NULL,6476.00,6476.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 08:57:13','2023-05-18 09:01:13','2023-05-18 09:01:13'),(128,7503,0,2,1,NULL,NULL,NULL,NULL,4531,22,217,NULL,804,1,NULL,40722,40743,00001121,00001121,NULL,'2023-03-09','2023-03-09',0127,1,NULL,46249.77,46249.77,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 08:57:13','2023-05-18 09:10:45',NULL),(129,7503,0,2,1,NULL,NULL,NULL,NULL,4531,22,217,NULL,804,1,NULL,40722,40772,00000080,NULL,NULL,'2023-03-10','2023-03-10',0426,1,NULL,24276.94,24276.94,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 08:57:13','2023-05-18 09:09:49','2023-05-18 09:09:49'),(130,7503,0,2,1,NULL,NULL,NULL,NULL,4531,22,217,NULL,804,1,NULL,40722,40773,00011293,NULL,NULL,'2023-03-13','2023-03-13',0005,1,NULL,4846.36,4846.36,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 08:57:13','2023-05-18 08:57:13',NULL),(131,7503,0,2,12,NULL,NULL,NULL,NULL,4531,22,250,NULL,804,1,NULL,40722,40719,00000729,NULL,NULL,'2023-03-14','2023-03-14',0002,1,NULL,5500.00,5500.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 08:57:13','2023-05-18 09:00:54','2023-05-18 09:00:54'),(132,7503,0,2,1,NULL,NULL,NULL,NULL,4531,22,217,NULL,804,1,NULL,40722,40774,00003108,NULL,NULL,'2023-03-15','2023-03-15',0013,1,NULL,40499.98,40499.98,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 08:57:14','2023-05-18 08:57:14',NULL);
INSERT INTO `receipts` VALUES (133,7503,0,2,1,NULL,NULL,NULL,NULL,4531,22,217,NULL,804,1,NULL,40722,40774,00003107,00003107,NULL,'2023-03-15','2023-03-15',0013,1,NULL,40499.98,40499.98,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 08:57:14','2023-05-18 09:07:21',NULL),(134,7503,0,2,1,NULL,NULL,NULL,NULL,4531,22,217,NULL,804,1,NULL,40722,40743,00001142,00001142,NULL,'2023-03-16','2023-03-16',0127,1,NULL,7708.22,7708.22,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 08:57:14','2023-05-18 09:06:29',NULL),(135,7503,0,2,1,NULL,NULL,NULL,NULL,4531,22,217,NULL,804,1,NULL,40722,40775,00052304,00052304,NULL,'2023-03-16','2023-03-16',2002,1,NULL,5225.00,5225.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 08:57:14','2023-05-18 09:05:44',NULL),(136,7503,0,2,4,NULL,NULL,NULL,NULL,4531,22,217,NULL,804,1,NULL,40722,40731,27147531,NULL,NULL,'2023-03-17','2023-03-17',0629,1,NULL,95.00,95.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 08:57:14','2023-05-18 09:00:07','2023-05-18 09:00:07'),(137,7503,0,2,4,NULL,NULL,NULL,NULL,4531,22,217,NULL,804,1,NULL,40722,40767,31395461,NULL,NULL,'2023-03-17','2023-03-17',0711,1,NULL,239.00,239.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 08:57:14','2023-05-18 09:00:17','2023-05-18 09:00:17'),(138,7503,0,2,1,NULL,NULL,NULL,NULL,4531,22,217,NULL,804,1,NULL,40722,40776,00007124,00007124,NULL,'2023-03-17','2023-03-17',0001,1,NULL,68689.51,68689.51,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 08:57:14','2023-05-18 09:04:22',NULL),(139,7503,0,2,4,NULL,NULL,NULL,NULL,4531,22,217,NULL,804,1,NULL,40722,40777,13303030,NULL,NULL,'2023-03-20','2023-03-20',0113,1,NULL,1662.00,1662.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 08:57:14','2023-05-18 08:59:56','2023-05-18 08:59:56'),(140,7503,0,2,4,NULL,NULL,NULL,NULL,4531,22,217,NULL,804,1,NULL,40722,40778,00000902,NULL,NULL,'2023-03-21','2023-03-21',0009,1,NULL,30330.83,30330.83,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 08:57:14','2023-05-18 08:59:47','2023-05-18 08:59:47'),(141,7503,0,2,4,NULL,NULL,NULL,NULL,4531,22,217,NULL,804,1,NULL,40722,40779,00205688,NULL,NULL,'2023-03-22','2023-03-22',0060,1,NULL,1500.00,1500.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 08:57:14','2023-05-18 09:00:36','2023-05-18 09:00:36'),(142,7503,0,2,1,NULL,NULL,NULL,NULL,4531,22,217,NULL,804,1,NULL,40722,40780,00006889,NULL,NULL,'2023-03-22','2023-03-22',0004,1,NULL,14500.00,14500.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 08:57:14','2023-05-18 08:57:14',NULL),(143,7503,0,2,1,NULL,NULL,NULL,NULL,4531,22,217,NULL,804,1,NULL,40722,40781,00003439,NULL,NULL,'2023-03-24','2023-03-24',0082,1,NULL,15998.14,15998.14,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 08:57:14','2023-05-18 08:57:14',NULL),(144,7503,0,2,4,NULL,NULL,NULL,NULL,4531,22,217,NULL,804,1,NULL,40722,40782,00018537,NULL,NULL,'2023-03-26','2023-03-26',0062,1,NULL,762.00,762.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 08:57:14','2023-05-18 08:59:39','2023-05-18 08:59:39'),(145,7503,0,2,1,NULL,NULL,NULL,NULL,4531,22,217,NULL,804,1,NULL,40722,40783,00001372,NULL,NULL,'2023-03-27','2023-03-27',0011,1,NULL,91250.00,91250.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 08:57:14','2023-05-18 08:57:14',NULL),(146,7503,0,2,4,NULL,NULL,NULL,NULL,4531,22,217,NULL,804,1,NULL,40722,40784,00012140,NULL,NULL,'2023-03-28','2023-03-28',0007,1,NULL,10500.00,10500.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 08:57:14','2023-05-18 08:59:29','2023-05-18 08:59:29'),(147,7503,0,2,1,NULL,NULL,NULL,NULL,4531,22,217,NULL,804,1,NULL,40722,40785,00885319,00885319,NULL,'2023-03-04','2023-05-18',0001,1,NULL,62775.80,652.12,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 09:16:47','2023-05-18 09:23:55',NULL),(148,7503,0,2,1,NULL,NULL,NULL,NULL,4531,22,217,NULL,804,1,NULL,40722,40785,00891806,00891806,NULL,'2023-03-24','2023-05-18',0001,1,NULL,61441.77,61441.77,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 09:18:50','2023-05-18 09:18:50',NULL);
INSERT INTO `receipts` VALUES (149,7503,0,2,1,NULL,NULL,NULL,NULL,4531,22,217,NULL,804,1,NULL,40722,40741,00091147,00091147,NULL,'2023-02-01','2023-05-18',0016,1,NULL,12076.00,12076.00,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 09:21:26','2023-05-18 09:21:26',NULL),(150,7503,0,2,1,NULL,NULL,NULL,NULL,4531,22,217,NULL,804,1,NULL,40722,40786,00022014,00022014,NULL,'2023-02-02','2023-05-18',0007,1,NULL,6741.19,6741.19,1,1.00,3,NULL,NULL,0,NULL,NULL,'','2023-05-18 09:23:11','2023-05-18 09:23:11',NULL);

--
-- Table structure for table `recibo_config`
--

CREATE TABLE `recibo_config` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `num_inicial` int(10) unsigned 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 `recibo_config_person_id_foreign` (`person_id`),
  CONSTRAINT `recibo_config_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `recibo_config`
--


--
-- Table structure for table `recibos`
--

CREATE TABLE `recibos` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `fecha` date NOT NULL DEFAULT '2019-12-13',
  `punto_venta_id` int(10) unsigned NOT NULL,
  `numero` int(10) unsigned NOT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_receptor` int(10) unsigned NOT NULL DEFAULT '3',
  `condicion_venta_id` int(10) unsigned NOT NULL DEFAULT '1',
  `cond_frente_iva_id` int(10) unsigned NOT NULL DEFAULT '1',
  `importe` decimal(16,2) NOT NULL DEFAULT '0.00',
  `en_concepto_de` longtext COLLATE utf8mb4_unicode_ci,
  `ret_ganancias` decimal(16,2) NOT NULL DEFAULT '0.00',
  `ret_iva` decimal(16,2) NOT NULL DEFAULT '0.00',
  `ret_iibb` decimal(16,2) NOT NULL DEFAULT '0.00',
  `imp_internos` decimal(16,2) NOT NULL DEFAULT '0.00',
  `imp_municipales` decimal(16,2) NOT NULL DEFAULT '0.00',
  `total_otros_tributos` decimal(16,2) NOT NULL DEFAULT '0.00',
  `total` 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 `recibos_punto_venta_id_foreign` (`punto_venta_id`),
  KEY `recibos_person_id_foreign` (`person_id`),
  KEY `recibos_person_id_receptor_foreign` (`person_id_receptor`),
  KEY `recibos_condicion_venta_id_foreign` (`condicion_venta_id`),
  KEY `recibos_cond_frente_iva_id_foreign` (`cond_frente_iva_id`),
  CONSTRAINT `recibos_cond_frente_iva_id_foreign` FOREIGN KEY (`cond_frente_iva_id`) REFERENCES `fac_elec_cond_frente_iva` (`id`),
  CONSTRAINT `recibos_condicion_venta_id_foreign` FOREIGN KEY (`condicion_venta_id`) REFERENCES `condiciones_venta` (`id`),
  CONSTRAINT `recibos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `recibos_person_id_receptor_foreign` FOREIGN KEY (`person_id_receptor`) REFERENCES `persons` (`id`),
  CONSTRAINT `recibos_punto_venta_id_foreign` FOREIGN KEY (`punto_venta_id`) REFERENCES `fact_elec_puntos_venta` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `recibos`
--


--
-- Table structure for table `remito_config`
--

CREATE TABLE `remito_config` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `num_inicial` int(10) unsigned 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 `remito_config_person_id_foreign` (`person_id`),
  CONSTRAINT `remito_config_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `remito_config`
--


--
-- Table structure for table `remitos`
--

CREATE TABLE `remitos` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `fecha` date NOT NULL DEFAULT '2020-05-25',
  `punto_venta_id` int(10) unsigned NOT NULL,
  `numero` int(10) unsigned NOT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_receptor` int(10) unsigned NOT NULL DEFAULT '3',
  `condicion_venta_id` int(10) unsigned NOT NULL DEFAULT '1',
  `cond_frente_iva_id` int(10) unsigned NOT NULL DEFAULT '1',
  `en_concepto_de` longtext COLLATE utf8mb4_unicode_ci,
  `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 `remitos_punto_venta_id_foreign` (`punto_venta_id`),
  KEY `remitos_person_id_foreign` (`person_id`),
  KEY `remitos_person_id_receptor_foreign` (`person_id_receptor`),
  KEY `remitos_condicion_venta_id_foreign` (`condicion_venta_id`),
  KEY `remitos_cond_frente_iva_id_foreign` (`cond_frente_iva_id`),
  CONSTRAINT `remitos_cond_frente_iva_id_foreign` FOREIGN KEY (`cond_frente_iva_id`) REFERENCES `fac_elec_cond_frente_iva` (`id`),
  CONSTRAINT `remitos_condicion_venta_id_foreign` FOREIGN KEY (`condicion_venta_id`) REFERENCES `condiciones_venta` (`id`),
  CONSTRAINT `remitos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `remitos_person_id_receptor_foreign` FOREIGN KEY (`person_id_receptor`) REFERENCES `persons` (`id`),
  CONSTRAINT `remitos_punto_venta_id_foreign` FOREIGN KEY (`punto_venta_id`) REFERENCES `fact_elec_puntos_venta` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `remitos`
--


--
-- Table structure for table `reportes`
--

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

--
-- Dumping data for table `reportes`
--

INSERT INTO `reportes` VALUES (1,'Comprobantes',1,'informes','','reportes/informes/comprobantes/comprobantes',NULL,NULL),(3,'Liquidaciones IIBB',1,'informes','','reportes/informes/iibb/iibb',NULL,NULL),(4,'Tablero de Control',3,'tablero','','reportes/tableroControl/index',NULL,NULL),(5,'Liquidaciones IVA',1,'informes','','reportes/informes/iva/iva',NULL,NULL),(6,'Obligaciones Anuales',1,'informes','','reportes/informes/obligaciones_anuales/index','2019-11-29 18:37:49','2019-11-29 18:37:49'),(7,'Estado CUITs',1,'informes','','reportes/informes/control_cuits/index','2019-12-09 00:50:43','2019-12-09 00:50:43');

--
-- Table structure for table `retention_types`
--

CREATE TABLE `retention_types` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `apply_to` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'iibb',
  `code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `zone_id` int(11) DEFAULT NULL,
  `plan_cuenta_id` int(10) unsigned NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `retention_types_plan_cuenta_id_foreign` (`plan_cuenta_id`),
  CONSTRAINT `retention_types_plan_cuenta_id_foreign` FOREIGN KEY (`plan_cuenta_id`) REFERENCES `conta_plan_cuenta` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `retention_types`
--

INSERT INTO `retention_types` VALUES (1,NULL,NULL,'Retenciones de Ganancias','ganancias','GAN',NULL,23),(2,NULL,NULL,'Retenciones de SUSS','sus','SUSS',NULL,162),(3,NULL,NULL,'Retenciones de IVA','iva','Ret IVA',NULL,25),(4,NULL,'2022-08-05 09:30:08','Retencion IIBB de Buenos Aires','iibb',NULL,23,251),(5,NULL,'2022-08-05 09:30:08','Retencion IIBB de Capital Federal','iibb',NULL,22,252),(6,NULL,'2022-08-05 09:30:08','Retencion IIBB de Catamarca','iibb',NULL,24,253),(7,NULL,'2022-08-05 09:30:08','Retencion IIBB de Chaco','iibb',NULL,3,254),(8,NULL,'2022-08-05 09:30:08','Retencion IIBB de Chubut','iibb',NULL,4,255),(9,NULL,'2022-08-05 09:30:08','Retencion IIBB de Córdoba','iibb',NULL,1,256),(10,NULL,'2022-08-05 09:30:08','Retencion IIBB de Corrientes','iibb',NULL,2,257),(11,NULL,'2022-08-05 09:30:08','Retencion IIBB de Entre Ríos','iibb',NULL,5,258),(12,NULL,'2022-08-05 09:30:08','Retencion IIBB de Formosa','iibb',NULL,6,259),(13,NULL,'2022-08-05 09:30:08','Retencion IIBB de Jujuy','iibb',NULL,7,260),(14,NULL,'2022-08-05 09:30:08','Retencion IIBB de La Pampa','iibb',NULL,8,261),(15,NULL,'2022-08-05 09:30:08','Retencion IIBB de La Rioja','iibb',NULL,9,262),(16,NULL,'2022-08-05 09:30:08','Retencion IIBB de Mendoza','iibb',NULL,10,263),(17,NULL,'2022-08-05 09:30:08','Retencion IIBB de Misiones','iibb',NULL,11,264),(18,NULL,'2022-08-05 09:30:08','Retencion IIBB de Neuquén','iibb',NULL,12,265),(19,NULL,'2022-08-05 09:30:08','Retencion IIBB de Pascua Lama','iibb',NULL,25,266),(20,NULL,'2022-08-05 09:30:08','Retencion IIBB de Río Negro','iibb',NULL,13,267),(21,NULL,'2022-08-05 09:30:08','Retencion IIBB de Salta','iibb',NULL,14,268),(22,NULL,'2022-08-05 09:30:08','Retencion IIBB de San Juan','iibb',NULL,15,269),(23,NULL,'2022-08-05 09:30:08','Retencion IIBB de San Luis','iibb',NULL,16,270),(24,NULL,'2022-08-05 09:30:08','Retencion IIBB de Santa Cruz','iibb',NULL,17,271),(25,NULL,'2022-08-05 09:30:08','Retencion IIBB de Santa Fe','iibb',NULL,18,272),(26,NULL,'2022-08-05 09:30:08','Retencion IIBB de Santiago del Estero','iibb',NULL,19,273),(27,NULL,'2022-08-05 09:30:08','Retencion IIBB de Tierra del Fuego','iibb',NULL,20,274),(28,NULL,'2022-08-05 09:30:08','Retencion IIBB de Tucuman','iibb',NULL,21,275);

--
-- Table structure for table `retentions`
--

CREATE TABLE `retentions` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `period_id` int(10) unsigned NOT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `cta_cte_cliente_id` int(10) unsigned DEFAULT NULL,
  `cta_cte_cliente_detail_id` int(10) unsigned DEFAULT NULL,
  `person_id_relationed` int(10) unsigned NOT NULL,
  `retention_type_id` int(10) unsigned NOT NULL,
  `sicore_regimen_id` bigint(20) unsigned DEFAULT NULL,
  `fecha` date NOT NULL DEFAULT '2023-05-30',
  `anio` int(10) unsigned NOT NULL,
  `numero` int(10) unsigned NOT NULL,
  `is_inscripto` tinyint(1) NOT NULL DEFAULT '1',
  `neto_gravado_total` decimal(16,2) NOT NULL DEFAULT '0.00',
  `ret_acum_mes` decimal(16,2) NOT NULL DEFAULT '0.00',
  `monto_no_sujeto_ret` decimal(16,2) NOT NULL DEFAULT '0.00',
  `tasa_aplicable` decimal(16,2) NOT NULL DEFAULT '0.00',
  `neto_sujeto_a_ret` decimal(16,2) NOT NULL DEFAULT '0.00',
  `retencion` 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 `retentions_person_id_foreign` (`person_id`),
  KEY `retentions_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `retentions_period_id_foreign` (`period_id`),
  KEY `retentions_cta_cte_cliente_id_foreign` (`cta_cte_cliente_id`),
  KEY `retentions_retention_type_id_foreign` (`retention_type_id`),
  KEY `retentions_sicore_regimen_id_foreign` (`sicore_regimen_id`),
  KEY `retentions_cta_cte_cliente_detail_id_foreign` (`cta_cte_cliente_detail_id`),
  CONSTRAINT `retentions_cta_cte_cliente_detail_id_foreign` FOREIGN KEY (`cta_cte_cliente_detail_id`) REFERENCES `cta_cte_cliente_details` (`id`),
  CONSTRAINT `retentions_cta_cte_cliente_id_foreign` FOREIGN KEY (`cta_cte_cliente_id`) REFERENCES `cta_cte_cliente` (`id`),
  CONSTRAINT `retentions_period_id_foreign` FOREIGN KEY (`period_id`) REFERENCES `periods` (`id`),
  CONSTRAINT `retentions_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `retentions_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`),
  CONSTRAINT `retentions_retention_type_id_foreign` FOREIGN KEY (`retention_type_id`) REFERENCES `retention_types` (`id`),
  CONSTRAINT `retentions_sicore_regimen_id_foreign` FOREIGN KEY (`sicore_regimen_id`) REFERENCES `sicore_regimenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `retentions`
--


--
-- Table structure for table `retentions_details`
--

CREATE TABLE `retentions_details` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `retention_id` bigint(20) unsigned NOT NULL,
  `receipt_id` int(10) unsigned NOT NULL,
  `neto_sujeto_a_ret` 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 `retentions_details_retention_id_foreign` (`retention_id`),
  KEY `retentions_details_receipt_id_foreign` (`receipt_id`),
  CONSTRAINT `retentions_details_receipt_id_foreign` FOREIGN KEY (`receipt_id`) REFERENCES `receipts` (`id`),
  CONSTRAINT `retentions_details_retention_id_foreign` FOREIGN KEY (`retention_id`) REFERENCES `retentions` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `retentions_details`
--


--
-- Table structure for table `rodados`
--

CREATE TABLE `rodados` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `rodados_marcas_modelo_id` bigint(20) unsigned NOT NULL,
  `rodados_equipo_id` bigint(20) unsigned NOT NULL,
  `rodados_estado_id` bigint(20) unsigned NOT NULL,
  `interno` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `patente` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `chasis` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `motor` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_limitado` tinyint(1) NOT NULL DEFAULT '0',
  `fecha_limitado` date DEFAULT NULL,
  `fecha_vto_vtv` date DEFAULT NULL,
  `fecha_vto_ruta` date DEFAULT NULL,
  `fecha_vto_seguro` date DEFAULT NULL,
  `rodados_seguros_compania_id` bigint(20) unsigned DEFAULT NULL,
  `num_poliza` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `rodados_seguros_cobertura_id` bigint(20) unsigned DEFAULT NULL,
  `num_tag` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_lojack` tinyint(1) NOT NULL DEFAULT '0',
  `rodados_lojack_tecnologia_id` bigint(20) unsigned DEFAULT NULL,
  `is_ypf_gps_instalado` tinyint(1) NOT NULL DEFAULT '0',
  `rodados_ypf_gps_estado_id` bigint(20) unsigned DEFAULT NULL,
  `ypf_ruta_num_tarjeta` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `shell_tag` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_opds_habilitado` tinyint(1) NOT NULL DEFAULT '0',
  `is_ceamse_habilitado` tinyint(1) NOT NULL DEFAULT '0',
  `is_estado_unidad` tinyint(1) NOT NULL DEFAULT '0',
  `comentario` longtext COLLATE utf8mb4_unicode_ci,
  `is_parametrizado` tinyint(1) NOT NULL DEFAULT '0',
  `fecha_parametrizado` date DEFAULT NULL,
  `anio` int(11) DEFAULT NULL,
  `fecha_alta` date DEFAULT NULL,
  `fecha_baja` date 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 `rodados_person_id_foreign` (`person_id`),
  KEY `rodados_rodados_marcas_modelo_id_foreign` (`rodados_marcas_modelo_id`),
  KEY `rodados_rodados_equipo_id_foreign` (`rodados_equipo_id`),
  KEY `rodados_rodados_estado_id_foreign` (`rodados_estado_id`),
  KEY `rodados_rodados_seguros_compania_id_foreign` (`rodados_seguros_compania_id`),
  KEY `rodados_rodados_seguros_cobertura_id_foreign` (`rodados_seguros_cobertura_id`),
  KEY `rodados_rodados_lojack_tecnologia_id_foreign` (`rodados_lojack_tecnologia_id`),
  KEY `rodados_rodados_ypf_gps_estado_id_foreign` (`rodados_ypf_gps_estado_id`),
  CONSTRAINT `rodados_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `rodados_rodados_equipo_id_foreign` FOREIGN KEY (`rodados_equipo_id`) REFERENCES `rodados_equipos` (`id`),
  CONSTRAINT `rodados_rodados_estado_id_foreign` FOREIGN KEY (`rodados_estado_id`) REFERENCES `rodados_estados` (`id`),
  CONSTRAINT `rodados_rodados_lojack_tecnologia_id_foreign` FOREIGN KEY (`rodados_lojack_tecnologia_id`) REFERENCES `rodados_lojack_tecnologias` (`id`),
  CONSTRAINT `rodados_rodados_marcas_modelo_id_foreign` FOREIGN KEY (`rodados_marcas_modelo_id`) REFERENCES `rodados_marcas_modelos` (`id`),
  CONSTRAINT `rodados_rodados_seguros_cobertura_id_foreign` FOREIGN KEY (`rodados_seguros_cobertura_id`) REFERENCES `rodados_seguros_coberturas` (`id`),
  CONSTRAINT `rodados_rodados_seguros_compania_id_foreign` FOREIGN KEY (`rodados_seguros_compania_id`) REFERENCES `rodados_seguros_companias` (`id`),
  CONSTRAINT `rodados_rodados_ypf_gps_estado_id_foreign` FOREIGN KEY (`rodados_ypf_gps_estado_id`) REFERENCES `rodados_ypf_gps_estados` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rodados`
--


--
-- Table structure for table `rodados_cargas`
--

CREATE TABLE `rodados_cargas` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `rodados_cargas_marca_id` bigint(20) unsigned NOT NULL,
  `rodado_id` bigint(20) unsigned NOT NULL,
  `fecha` datetime NOT NULL,
  `tarjeta` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `ubicacion` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `combustible` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `litros` decimal(16,4) NOT NULL DEFAULT '0.0000',
  `precio_x_litro` decimal(16,4) NOT NULL DEFAULT '0.0000',
  `neto` decimal(16,4) NOT NULL DEFAULT '0.0000',
  `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 `rodados_cargas_person_id_foreign` (`person_id`),
  KEY `rodados_cargas_rodado_id_foreign` (`rodado_id`),
  KEY `rodados_cargas_rodados_cargas_marca_id_foreign` (`rodados_cargas_marca_id`),
  CONSTRAINT `rodados_cargas_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `rodados_cargas_rodado_id_foreign` FOREIGN KEY (`rodado_id`) REFERENCES `rodados` (`id`),
  CONSTRAINT `rodados_cargas_rodados_cargas_marca_id_foreign` FOREIGN KEY (`rodados_cargas_marca_id`) REFERENCES `rodados_cargas_marcas` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rodados_cargas`
--


--
-- Table structure for table `rodados_cargas_control`
--

CREATE TABLE `rodados_cargas_control` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `rodado_id` bigint(20) unsigned NOT NULL,
  `carga_control_tope_id` bigint(20) unsigned NOT NULL,
  `acumulado` int(11) NOT NULL DEFAULT '0',
  `ultima_carga` int(11) 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 `rodados_cargas_control_rodado_id_foreign` (`rodado_id`),
  KEY `rodados_cargas_control_carga_control_tope_id_foreign` (`carga_control_tope_id`),
  CONSTRAINT `rodados_cargas_control_carga_control_tope_id_foreign` FOREIGN KEY (`carga_control_tope_id`) REFERENCES `rodados_cargas_control_topes` (`id`),
  CONSTRAINT `rodados_cargas_control_rodado_id_foreign` FOREIGN KEY (`rodado_id`) REFERENCES `rodados` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rodados_cargas_control`
--


--
-- Table structure for table `rodados_cargas_control_history`
--

CREATE TABLE `rodados_cargas_control_history` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `rodado_id` bigint(20) unsigned NOT NULL,
  `fecha` date NOT NULL,
  `control` int(11) NOT NULL,
  `acumulado` int(11) 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 `rodados_cargas_control_history_rodado_id_foreign` (`rodado_id`),
  CONSTRAINT `rodados_cargas_control_history_rodado_id_foreign` FOREIGN KEY (`rodado_id`) REFERENCES `rodados` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rodados_cargas_control_history`
--


--
-- Table structure for table `rodados_cargas_control_topes`
--

CREATE TABLE `rodados_cargas_control_topes` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `control` int(11) 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 `rodados_cargas_control_topes_person_id_foreign` (`person_id`),
  CONSTRAINT `rodados_cargas_control_topes_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rodados_cargas_control_topes`
--


--
-- Table structure for table `rodados_cargas_marcas`
--

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

--
-- Dumping data for table `rodados_cargas_marcas`
--


--
-- Table structure for table `rodados_equipos`
--

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

--
-- Dumping data for table `rodados_equipos`
--


--
-- Table structure for table `rodados_estados`
--

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

--
-- Dumping data for table `rodados_estados`
--


--
-- Table structure for table `rodados_files`
--

CREATE TABLE `rodados_files` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `rodado_id` bigint(20) unsigned NOT NULL,
  `descripcion` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `path` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `name_original` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `rodados_files_person_id_foreign` (`person_id`),
  KEY `rodados_files_rodado_id_foreign` (`rodado_id`),
  CONSTRAINT `rodados_files_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `rodados_files_rodado_id_foreign` FOREIGN KEY (`rodado_id`) REFERENCES `rodados` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rodados_files`
--


--
-- Table structure for table `rodados_kms`
--

CREATE TABLE `rodados_kms` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `rodado_id` bigint(20) unsigned NOT NULL,
  `fecha_desde` date NOT NULL,
  `fecha_hasta` date NOT NULL,
  `imei` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `dispositivo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `patente` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `tiempo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `numero_viaje` int(11) DEFAULT NULL,
  `kms` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT 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 `rodados_kms_person_id_foreign` (`person_id`),
  KEY `rodados_kms_rodado_id_foreign` (`rodado_id`),
  CONSTRAINT `rodados_kms_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `rodados_kms_rodado_id_foreign` FOREIGN KEY (`rodado_id`) REFERENCES `rodados` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rodados_kms`
--


--
-- Table structure for table `rodados_lojack_tecnologias`
--

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

--
-- Dumping data for table `rodados_lojack_tecnologias`
--


--
-- Table structure for table `rodados_marcas`
--

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

--
-- Dumping data for table `rodados_marcas`
--


--
-- Table structure for table `rodados_marcas_modelos`
--

CREATE TABLE `rodados_marcas_modelos` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `rodados_marca_id` bigint(20) unsigned NOT NULL,
  `descripcion` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `rodados_marcas_modelos_descripcion_unique` (`descripcion`),
  KEY `rodados_marcas_modelos_person_id_foreign` (`person_id`),
  KEY `rodados_marcas_modelos_rodados_marca_id_foreign` (`rodados_marca_id`),
  CONSTRAINT `rodados_marcas_modelos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `rodados_marcas_modelos_rodados_marca_id_foreign` FOREIGN KEY (`rodados_marca_id`) REFERENCES `rodados_marcas` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rodados_marcas_modelos`
--


--
-- Table structure for table `rodados_seguros_coberturas`
--

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

--
-- Dumping data for table `rodados_seguros_coberturas`
--


--
-- Table structure for table `rodados_seguros_companias`
--

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

--
-- Dumping data for table `rodados_seguros_companias`
--


--
-- Table structure for table `rodados_ypf_gps_estados`
--

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

--
-- Dumping data for table `rodados_ypf_gps_estados`
--


--
-- Table structure for table `sexo`
--

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

--
-- Dumping data for table `sexo`
--

INSERT INTO `sexo` VALUES (1,NULL,'Masculino',1,'2020-05-28 20:55:23','2020-05-28 20:55:23',NULL),(2,NULL,'Femenino',1,'2020-05-28 20:55:23','2020-05-28 20:55:23',NULL);

--
-- Table structure for table `sicore_alicuotas`
--

CREATE TABLE `sicore_alicuotas` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `anio` int(11) DEFAULT NULL,
  `desde` int(10) unsigned NOT NULL,
  `hasta` int(10) unsigned NOT NULL,
  `impuesto` int(10) unsigned NOT NULL,
  `mas_porcentaje` decimal(8,2) unsigned NOT NULL,
  `excedente` int(11) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sicore_alicuotas`
--

INSERT INTO `sicore_alicuotas` VALUES (1,NULL,2022,0,8000,0,0.00,0,NULL,NULL,NULL),(2,NULL,2022,8000,16000,400,9.00,8000,NULL,NULL,NULL),(3,NULL,2022,16000,24000,1120,12.00,16000,NULL,NULL,NULL),(4,NULL,2022,24000,32000,2080,15.00,24000,NULL,NULL,NULL),(5,NULL,2022,32000,48000,3280,19.00,32000,NULL,NULL,NULL),(6,NULL,2022,48000,64000,6320,23.00,48000,NULL,NULL,NULL),(7,NULL,2022,64000,96000,10000,27.00,64000,NULL,NULL,NULL),(8,NULL,2022,96000,999999,18640,31.00,96000,NULL,NULL,NULL);

--
-- Table structure for table `sicore_comprobantes`
--

CREATE TABLE `sicore_comprobantes` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `codigo` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=97 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sicore_comprobantes`
--

INSERT INTO `sicore_comprobantes` VALUES (1,'1','FACTURAS A',1,NULL,NULL,NULL),(2,'2','NOTAS DE DEBITO A',1,NULL,NULL,NULL),(3,'3','NOTAS DE CREDITO A',1,NULL,NULL,NULL),(4,'4','RECIBOS A',1,NULL,NULL,NULL),(5,'5','NOTAS DE VENTA AL CONTADO A',1,NULL,NULL,NULL),(6,'6','FACTURAS B',1,NULL,NULL,NULL),(7,'7','NOTAS DE DEBITO B',1,NULL,NULL,NULL),(8,'8','NOTAS DE CREDITO B',1,NULL,NULL,NULL),(9,'9','RECIBOS B',1,NULL,NULL,NULL),(10,'10','NOTAS DE VENTA AL CONTADO B',1,NULL,NULL,NULL),(11,'11','FACTURAS C',1,NULL,NULL,NULL),(12,'12','NOTAS DE DEBITO C',1,NULL,NULL,NULL),(13,'13','NOTAS DE CREDITO C',1,NULL,NULL,NULL),(14,'15','RECIBOS C',1,NULL,NULL,NULL),(15,'16','NOTAS DE VENTA AL CONTADO C',1,NULL,NULL,NULL),(16,'17','LIQUIDACION DE SERVICIOS PUBLICOS CLASE A',1,NULL,NULL,NULL),(17,'18','LIQUIDACION DE SERVICIOS PUBLICOS CLASE B',1,NULL,NULL,NULL),(18,'19','FACTURAS DE EXPORTACION',1,NULL,NULL,NULL),(19,'20','NOTAS DE DEBITO POR OPERACIONES CON EL EXTERIOR',1,NULL,NULL,NULL),(20,'21','NOTAS DE CREDITO POR OPERACIONES CON EL EXTERIOR',1,NULL,NULL,NULL),(21,'22','FACTURAS - PERMISO EXPORTACION SIMPLIFICADO - DTO. 855/97',1,NULL,NULL,NULL),(22,'23','COMPROBANTES “A” DE COMPRA PRIMARIA PARA EL SECTOR PESQUERO MARITIMO',1,NULL,NULL,NULL),(23,'24','COMPROBANTES “A” DE CONSIGNACION PRIMARIA PARA EL SECTOR PESQUERO MARITIMO',1,NULL,NULL,NULL),(24,'25','COMPROBANTES “B” DE COMPRA PRIMARIA PARA EL SECTOR PESQUERO MARITIMO',1,NULL,NULL,NULL),(25,'26','COMPROBANTES “B” DE CONSIGNACION PRIMARIA PARA EL SECTOR PESQUERO MARITIMO',1,NULL,NULL,NULL),(26,'27','LIQUIDACION UNICA COMERCIAL IMPOSITIVA CLASE A',1,NULL,NULL,NULL),(27,'28','LIQUIDACION UNICA COMERCIAL IMPOSITIVA CLASE B',1,NULL,NULL,NULL),(28,'29','LIQUIDACION UNICA COMERCIAL IMPOSITIVA CLASE C',1,NULL,NULL,NULL),(29,'30','COMPROBANTES DE COMPRA DE BIENES USADOS',1,NULL,NULL,NULL),(30,'31','MANDATO - CONSIGNACION',1,NULL,NULL,NULL),(31,'32','COMPROBANTES PARA RECICLAR MATERIALES',1,NULL,NULL,NULL),(32,'33','LIQUIDACION PRIMARIA DE GRANOS',1,NULL,NULL,NULL),(33,'34','COMPROBANTES A DEL APARTADO A  INCISO F)  R.G. N°  1415',1,NULL,NULL,NULL),(34,'35','COMPROBANTES B DEL ANEXO I, APARTADO A, INC. F), R.G. N° 1415',1,NULL,NULL,NULL),(35,'36','COMPROBANTES C DEL Anexo I, Apartado A, INC.F), R.G. N° 1415',1,NULL,NULL,NULL),(36,'37','NOTAS DE DEBITO O DOCUMENTO EQUIVALENTE QUE CUMPLAN CON LA R.G. N° 1415',1,NULL,NULL,NULL),(37,'38','NOTAS DE CREDITO O DOCUMENTO EQUIVALENTE QUE CUMPLAN CON LA R.G. N° 1415',1,NULL,NULL,NULL),(38,'39','OTROS COMPROBANTES A QUE CUMPLEN CON LA R G  1415',1,NULL,NULL,NULL),(39,'40','OTROS COMPROBANTES B QUE CUMPLAN CON LA R.G. N° 1415',1,NULL,NULL,NULL),(40,'41','OTROS COMPROBANTES C QUE CUMPLAN CON LA R.G. N° 1415',1,NULL,NULL,NULL),(41,'43','NOTA DE CREDITO LIQUIDACION UNICA COMERCIAL IMPOSITIVA CLASE B',1,NULL,NULL,NULL),(42,'44','NOTA DE CREDITO LIQUIDACION UNICA COMERCIAL IMPOSITIVA CLASE C',1,NULL,NULL,NULL),(43,'45','NOTA DE DEBITO LIQUIDACION UNICA COMERCIAL IMPOSITIVA CLASE A',1,NULL,NULL,NULL),(44,'46','NOTA DE DEBITO LIQUIDACION UNICA COMERCIAL IMPOSITIVA CLASE B',1,NULL,NULL,NULL),(45,'47','NOTA DE DEBITO LIQUIDACION UNICA COMERCIAL IMPOSITIVA CLASE C',1,NULL,NULL,NULL),(46,'48','NOTA DE CREDITO LIQUIDACION UNICA COMERCIAL IMPOSITIVA CLASE A',1,NULL,NULL,NULL),(47,'49','COMPROBANTES DE COMPRA DE BIENES NO REGISTRABLES A CONSUMIDORES FINALES',1,NULL,NULL,NULL),(48,'50','RECIBO FACTURA A  REGIMEN DE FACTURA DE CREDITO ',1,NULL,NULL,NULL),(49,'51','FACTURAS M',1,NULL,NULL,NULL),(50,'52','NOTAS DE DEBITO M',1,NULL,NULL,NULL),(51,'53','NOTAS DE CREDITO M',1,NULL,NULL,NULL),(52,'54','RECIBOS M',1,NULL,NULL,NULL),(53,'55','NOTAS DE VENTA AL CONTADO M',1,NULL,NULL,NULL),(54,'56','COMPROBANTES M DEL ANEXO I  APARTADO A  INC F) R.G. N° 1415',1,NULL,NULL,NULL),(55,'57','OTROS COMPROBANTES M QUE CUMPLAN CON LA R.G. N° 1415',1,NULL,NULL,NULL),(56,'58','CUENTAS DE VENTA Y LIQUIDO PRODUCTO M',1,NULL,NULL,NULL),(57,'59','LIQUIDACIONES M',1,NULL,NULL,NULL);
INSERT INTO `sicore_comprobantes` VALUES (58,'60','CUENTAS DE VENTA Y LIQUIDO PRODUCTO A',1,NULL,NULL,NULL),(59,'61','CUENTAS DE VENTA Y LIQUIDO PRODUCTO B',1,NULL,NULL,NULL),(60,'63','LIQUIDACIONES A',1,NULL,NULL,NULL),(61,'64','LIQUIDACIONES B',1,NULL,NULL,NULL),(62,'66','DESPACHO DE IMPORTACION',1,NULL,NULL,NULL),(63,'68','LIQUIDACION C',1,NULL,NULL,NULL),(64,'70','RECIBOS FACTURA DE CREDITO',1,NULL,NULL,NULL),(65,'80','INFORME DIARIO DE CIERRE (ZETA) - CONTROLADORES FISCALES',1,NULL,NULL,NULL),(66,'81','TIQUE FACTURA A   ',1,NULL,NULL,NULL),(67,'82','TIQUE FACTURA B',1,NULL,NULL,NULL),(68,'83','TIQUE',1,NULL,NULL,NULL),(69,'88','REMITO ELECTRONICO',1,NULL,NULL,NULL),(70,'89','RESUMEN DE DATOS',1,NULL,NULL,NULL),(71,'90','OTROS COMPROBANTES - DOCUMENTOS EXCEPTUADOS - NOTAS DE CREDITO',1,NULL,NULL,NULL),(72,'91','REMITOS R',1,NULL,NULL,NULL),(73,'99','OTROS COMPROBANTES QUE NO CUMPLEN O ESTÁN EXCEPTUADOS DE LA R.G. 1415 Y SUS MODIF',1,NULL,NULL,NULL),(74,'110','TIQUE NOTA DE CREDITO ',1,NULL,NULL,NULL),(75,'111','TIQUE FACTURA C',1,NULL,NULL,NULL),(76,'112','TIQUE NOTA DE CREDITO A',1,NULL,NULL,NULL),(77,'113','TIQUE NOTA DE CREDITO B',1,NULL,NULL,NULL),(78,'114','TIQUE NOTA DE CREDITO C',1,NULL,NULL,NULL),(79,'115','TIQUE NOTA DE DEBITO A',1,NULL,NULL,NULL),(80,'116','TIQUE NOTA DE DEBITO B',1,NULL,NULL,NULL),(81,'117','TIQUE NOTA DE DEBITO C',1,NULL,NULL,NULL),(82,'118','TIQUE FACTURA M',1,NULL,NULL,NULL),(83,'119','TIQUE NOTA DE CREDITO M',1,NULL,NULL,NULL),(84,'120','TIQUE NOTA DE DEBITO M',1,NULL,NULL,NULL),(85,'201','FACTURA DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE) A',1,NULL,NULL,NULL),(86,'202','NOTA DE DEBITO ELECTRÓNICA MiPyMEs (FCE) A',1,NULL,NULL,NULL),(87,'203','NOTA DE CREDITO ELECTRÓNICA MiPyMEs (FCE) A',1,NULL,NULL,NULL),(88,'206','FACTURA DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE) B',1,NULL,NULL,NULL),(89,'207','NOTA DE DEBITO ELECTRÓNICA MiPyMEs (FCE) B',1,NULL,NULL,NULL),(90,'208','NOTA DE CREDITO ELECTRÓNICA MiPyMEs (FCE) B',1,NULL,NULL,NULL),(91,'211','FACTURA DE CRÉDITO ELECTRÓNICA MiPyMEs (FCE) C',1,NULL,NULL,NULL),(92,'212','NOTA DE DEBITO ELECTRÓNICA MiPyMEs (FCE) C',1,NULL,NULL,NULL),(93,'213','NOTA DE CREDITO ELECTRÓNICA MiPyMEs (FCE) C',1,NULL,NULL,NULL),(94,'331','LIQUIDACION SECUNDARIA DE GRANOS',1,NULL,NULL,NULL),(95,'332','CERTIFICACION ELECTRONICA (GRANOS)',1,NULL,NULL,NULL),(96,'995','REMITO ELECTRÓNICO CÁRNICO ',1,NULL,NULL,NULL);

--
-- Table structure for table `sicore_details`
--

CREATE TABLE `sicore_details` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `period_id` int(10) unsigned NOT NULL,
  `fecha` date NOT NULL DEFAULT '2022-08-05',
  `cta_cte_cliente_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_relationed` int(10) unsigned NOT NULL,
  `is_inscripto` tinyint(1) NOT NULL DEFAULT '1',
  `sicore_regimen_id` bigint(20) unsigned NOT NULL,
  `sicore_comprobantes` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `sicore_comprobante_id` bigint(20) unsigned NOT NULL,
  `comprobante_numero` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `neto_gravado_total` decimal(16,2) NOT NULL DEFAULT '0.00',
  `ret_acum_mes` decimal(16,2) NOT NULL DEFAULT '0.00',
  `monto_no_sujeto_ret` decimal(16,2) NOT NULL DEFAULT '0.00',
  `tasa_aplicable` decimal(16,2) NOT NULL DEFAULT '0.00',
  `neto_sujeto_a_ret` decimal(16,2) NOT NULL DEFAULT '0.00',
  `retencion` 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 `sicore_details_person_id_foreign` (`person_id`),
  KEY `sicore_details_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `sicore_details_period_id_foreign` (`period_id`),
  KEY `sicore_details_sicore_regimen_id_foreign` (`sicore_regimen_id`),
  KEY `sicore_details_sicore_comprobante_id_foreign` (`sicore_comprobante_id`),
  CONSTRAINT `sicore_details_period_id_foreign` FOREIGN KEY (`period_id`) REFERENCES `periods` (`id`),
  CONSTRAINT `sicore_details_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `sicore_details_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`),
  CONSTRAINT `sicore_details_sicore_comprobante_id_foreign` FOREIGN KEY (`sicore_comprobante_id`) REFERENCES `sicore_comprobantes` (`id`),
  CONSTRAINT `sicore_details_sicore_regimen_id_foreign` FOREIGN KEY (`sicore_regimen_id`) REFERENCES `sicore_regimenes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sicore_details`
--


--
-- Table structure for table `sicore_regimenes`
--

CREATE TABLE `sicore_regimenes` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `cod_regimen` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `is_escala` tinyint(1) NOT NULL DEFAULT '0',
  `anexo` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `ret_min_ins` int(11) NOT NULL,
  `porcent_ins` decimal(8,2) NOT NULL,
  `porcent_no_ins` decimal(8,2) NOT NULL,
  `monto_no_sujeto_ret` int(11) 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=26 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sicore_regimenes`
--

INSERT INTO `sicore_regimenes` VALUES (1,NULL,'19',0,'Anexo II,  inc. a) pto. 1)','Intereses  por operaciones realizadas en entidades financieras. Ley N° 21.526 y sus modificaciones o agentes de bolsa o mercado abierto.',0,3.00,10.00,0,1,NULL,NULL,NULL),(2,NULL,'21',0,'Anexo II , inc. a) pto. 2)','Intereses originados en operaciones no comprendidas en el punto 1.',0,6.00,28.00,7870,1,NULL,NULL,NULL),(3,NULL,'30',0,'Anexo II, inc. b) pto. 1)','Alquileres o arrendamientos de bienes muebles.',0,6.00,28.00,11200,1,NULL,NULL,NULL),(4,NULL,'31',0,'Anexo II, inc. b) pto. 2)','Bienes Inmuebles Urbanos, incluidos los efectuados bajo la modalidad de leasing –incluye suburbanos.',0,6.00,28.00,11200,1,NULL,NULL,NULL),(5,NULL,'32',0,'Anexo II, inc. b) pto. 3)','Bienes Inmuebles Rurales, incluidos los efectuados bajo la modalidad de leasing –incluye subrurales-.',0,6.00,28.00,11200,1,NULL,NULL,NULL),(6,NULL,'35',0,'Anexo II, inc. c)','Regalías.',0,6.00,28.00,7870,1,NULL,NULL,NULL),(7,NULL,'43',0,'Anexo II, inc. d)','Interés accionario,  excedentes y retornos distribuidos entre asociados, cooperativas -excepto consumo-.',0,6.00,28.00,7870,1,NULL,NULL,NULL),(8,NULL,'51',0,'Anexo II, inc. e)','Obligaciones de no hacer, o por abandono o no ejercicio de una actividad.',0,6.00,28.00,7870,1,NULL,NULL,NULL),(9,NULL,'78',0,'Anexo II, inc. f)','Enajenación de bienes muebles y bienes de cambio.',0,2.00,10.00,224000,1,NULL,NULL,NULL),(10,NULL,'86',0,'Anexo II, inc. g)','Transferencia  temporaria o definitiva de derechos de llave, marcas, patentes de invención, regalías, concesiones y similares.',0,2.00,10.00,224000,1,NULL,NULL,NULL),(11,NULL,'94',0,'Anexo II, inc. i)','Locaciones de obra y/o servicios no ejecutados en relación de dependencia no mencionados expresamente en otros incisos.',0,2.00,28.00,67170,1,NULL,NULL,NULL),(12,NULL,'95',0,'Anexo ll, inc. l)','Operaciones de transporte de carga  nacional e internacional.',0,0.25,28.00,67170,1,NULL,NULL,NULL),(13,NULL,'53',0,'Anexo ll, inc. m)','Operaciones realizadas  por intermedio  de mercados de  cereales a término que se resuelvan en el  curso del término (arbitrajes) y de mercados de futuros y opciones.',0,0.50,2.00,0,1,NULL,NULL,NULL),(14,NULL,'55',0,'Anexo ll, inc. n)','Distribución de películas. Transmisión de programación. Televisión vía satelital.',0,0.50,2.00,0,1,NULL,NULL,NULL),(15,NULL,'111',0,'Anexo ll, inc. ñ)','Cualquier  otra cesión  o locación de derechos, excepto las que correspondan a operaciones realizadas por intermedio de  mercados  de cereales  a término que se resuelvan en el curso del térm',0,0.50,2.00,0,1,NULL,NULL,NULL),(16,NULL,'112',0,'Anexo ll, inc. o)','Beneficios provenientes del cumplimiento de los requisitos de los planes de seguro de retiro privados administrados por entidades sujetas al control de la Superintendencia de Seguros de la Na',0,3.00,3.00,16830,1,NULL,NULL,NULL),(17,NULL,'113',0,'Anexo ll, inc. p)','Rescates -totales o parciales- por desistimiento de los planes de seguro de retiro a que se refiere el inciso o), excepto que sea de aplicación lo normado en el artículo 101 de la Ley de Impu',0,3.00,3.00,16830,1,NULL,NULL,NULL),(18,NULL,'779',0,'Anexo ll, inc. q)','Subsidios abonados por los Estados Nacional, provinciales, municipales o el Gobierno de la Ciudad Autónoma de Buenos Ares, en concepto de enajenación de bienes muebles y bienes de cambio, en ',0,2.00,10.00,76140,1,NULL,NULL,NULL),(19,NULL,'780',0,'Anexo ll, inc. r)','Subsidios abonados por los Estados Nacional, provinciales, municipales o el Gobierno de la Ciudad Autónoma de Buenos Aires, en concepto de locaciones de obra y/o servicios, no ejecutados en r',0,2.00,28.00,31460,1,NULL,NULL,NULL),(20,NULL,'110',1,'Anexo II, inc. h)','Explotación de derechos de autor (Ley N° 11.723).',0,0.00,28.00,10000,0,NULL,'2024-08-01 11:55:52',NULL);
INSERT INTO `sicore_regimenes` VALUES (21,NULL,'25',1,'Anexo II, inc. j)','Comisiones u otras retribuciones derivadas de la actividad de comisionista, rematador, consignatario y demás auxiliares de comercio a que se refiere el inciso c) del artículo 49 de la Ley de ',0,0.00,28.00,16830,0,NULL,'2024-08-01 11:55:52',NULL),(22,NULL,'116',1,'Anexo ll, inc. k)','Honorarios de director de sociedades anónimas, síndico, fiduciario, consejero de sociedades cooperativas, integrante de consejos de vigilancia y socios administradores de las sociedades de re',0,0.00,28.00,67170,0,NULL,'2024-08-01 11:55:52',NULL),(23,NULL,'119',1,'Anexo ll, inc. k)','Profesionales liberales, oficios, albacea, mandatario, gestor de negocio.',0,0.00,28.00,16830,0,NULL,'2024-08-01 11:55:52',NULL),(24,NULL,'124',1,'Anexo ll, inc. k)','Corredor, viajante de comercio y despachante de aduana.',0,0.00,28.00,16830,0,NULL,'2024-08-01 11:55:52',NULL),(25,NULL,'53',0,'Anexo ll, inc. m)','Operaciones Realizadas a Través del mercado de Cereales a Término',0,0.50,2.00,0,1,NULL,NULL,NULL);

--
-- Table structure for table `sicore_rg830_escalas`
--

CREATE TABLE `sicore_rg830_escalas` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `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=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sicore_rg830_escalas`
--

INSERT INTO `sicore_rg830_escalas` VALUES (1,0.00,8000.00,0.00,5.00,0.00,NULL,NULL,NULL),(2,8000.00,16000.00,400.00,9.00,8000.00,NULL,NULL,NULL),(3,16000.00,24000.00,1120.00,12.00,16000.00,NULL,NULL,NULL),(4,24000.00,32000.00,2080.00,15.00,24000.00,NULL,NULL,NULL),(5,32000.00,48000.00,3280.00,19.00,32000.00,NULL,NULL,NULL),(6,48000.00,64000.00,6320.00,23.00,48000.00,NULL,NULL,NULL),(7,64000.00,96000.00,10000.00,27.00,64000.00,NULL,NULL,NULL),(8,96000.00,999999999.00,18640.00,31.00,96000.00,NULL,NULL,NULL);

--
-- Table structure for table `sicore_rg830_reg_119`
--

CREATE TABLE `sicore_rg830_reg_119` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `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=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sicore_rg830_reg_119`
--

INSERT INTO `sicore_rg830_reg_119` VALUES (1,0.00,8000.00,0.00,5.00,0.00,NULL,NULL,NULL),(2,71000.00,142000.00,3550.00,9.00,71000.00,NULL,NULL,NULL),(3,142000.00,213000.00,9940.00,12.00,142000.00,NULL,NULL,NULL),(4,213000.00,284000.00,18460.00,15.00,213000.00,NULL,NULL,NULL),(5,284000.00,426000.00,29110.00,19.00,284000.00,NULL,NULL,NULL),(6,426000.00,568000.00,56090.00,23.00,426000.00,NULL,NULL,NULL),(7,568000.00,852000.00,88750.00,27.00,568000.00,NULL,NULL,NULL),(8,852000.00,999999999.00,165430.00,31.00,852000.00,NULL,NULL,NULL);

--
-- Table structure for table `sim_gcias_remuneraciones`
--

CREATE TABLE `sim_gcias_remuneraciones` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `syj_liq_empleado_id` int(10) unsigned DEFAULT NULL,
  `empleado_id` int(10) unsigned NOT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `period_id` int(10) unsigned NOT NULL,
  `fecha_liquidacion` datetime DEFAULT NULL,
  `fecha_pago` datetime DEFAULT NULL,
  `remunerativos` decimal(13,2) NOT NULL DEFAULT '0.00',
  `no_remunerativos` decimal(13,2) NOT NULL DEFAULT '0.00',
  `jubilacion` decimal(13,2) NOT NULL DEFAULT '0.00',
  `inssjp` decimal(13,2) NOT NULL DEFAULT '0.00',
  `obra_social` decimal(13,2) NOT NULL DEFAULT '0.00',
  `sindicatos` decimal(13,2) NOT NULL DEFAULT '0.00',
  `otros_descuentos` decimal(13,2) NOT NULL DEFAULT '0.00',
  `retencion_ganancias` decimal(13,2) NOT NULL DEFAULT '0.00',
  `neto` decimal(13,2) NOT NULL DEFAULT '0.00',
  `is_liquidado` 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 `sim_gcias_remuneraciones_empleado_id_foreign` (`empleado_id`),
  KEY `sim_gcias_remuneraciones_person_id_foreign` (`person_id`),
  KEY `sim_gcias_remuneraciones_period_id_foreign` (`period_id`),
  KEY `sim_gcias_remuneraciones_syj_liq_empleado_id_foreign` (`syj_liq_empleado_id`),
  CONSTRAINT `sim_gcias_remuneraciones_empleado_id_foreign` FOREIGN KEY (`empleado_id`) REFERENCES `syj_empleados` (`id`),
  CONSTRAINT `sim_gcias_remuneraciones_period_id_foreign` FOREIGN KEY (`period_id`) REFERENCES `periods` (`id`),
  CONSTRAINT `sim_gcias_remuneraciones_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `sim_gcias_remuneraciones_syj_liq_empleado_id_foreign` FOREIGN KEY (`syj_liq_empleado_id`) REFERENCES `syj_liq_empleado` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sim_gcias_remuneraciones`
--


--
-- Table structure for table `solicitantes_certificado`
--

CREATE TABLE `solicitantes_certificado` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `curso_id` int(10) unsigned NOT NULL,
  `nombre` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `mail` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `cuit` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `solicitantes_certificado_curso_id_foreign` (`curso_id`),
  CONSTRAINT `solicitantes_certificado_curso_id_foreign` FOREIGN KEY (`curso_id`) REFERENCES `cursos` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `solicitantes_certificado`
--


--
-- Table structure for table `status`
--

CREATE TABLE `status` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `receipt_type_id` int(10) unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `status_receipt_type_id_foreign` (`receipt_type_id`),
  CONSTRAINT `status_receipt_type_id_foreign` FOREIGN KEY (`receipt_type_id`) REFERENCES `receipt_types` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `status`
--

INSERT INTO `status` VALUES (1,'Activo',NULL,NULL,NULL),(2,'Anulado',NULL,NULL,NULL),(3,'Liquidado',NULL,NULL,NULL);

--
-- Table structure for table `suscrip_modulos`
--

CREATE TABLE `suscrip_modulos` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_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`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `suscrip_modulos`
--

INSERT INTO `suscrip_modulos` VALUES (1,0,'Administración',1,NULL,NULL,NULL),(2,0,'Sueldos',1,NULL,NULL,NULL),(3,0,'Impuestos',1,NULL,NULL,NULL),(4,0,'Contabilidad',1,NULL,NULL,NULL),(5,0,'Factura Electrónica',1,NULL,NULL,NULL),(6,0,'Tesorería',1,NULL,NULL,NULL),(7,0,'Del Contador',1,NULL,NULL,NULL);

--
-- Table structure for table `suscrip_planes`
--

CREATE TABLE `suscrip_planes` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `importe` decimal(16,2) DEFAULT NULL,
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `suscrip_planes`
--

INSERT INTO `suscrip_planes` VALUES (1,0,'GRATIS',0.00,1,NULL,NULL,NULL),(2,0,'BASICO',1000.00,1,NULL,NULL,NULL),(3,0,'MEDIO',2500.00,1,NULL,NULL,NULL),(4,0,'FULL',4000.00,1,NULL,NULL,NULL);

--
-- Table structure for table `suscrip_planes_detail`
--

CREATE TABLE `suscrip_planes_detail` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `suscrip_plan_id` int(10) unsigned NOT NULL,
  `suscrip_modulo_id` int(10) unsigned NOT NULL,
  `permitido` tinyint(1) NOT NULL DEFAULT '1',
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `icono` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `numero` 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 `suscrip_planes_detail_suscrip_plan_id_foreign` (`suscrip_plan_id`),
  KEY `suscrip_planes_detail_suscrip_modulo_id_foreign` (`suscrip_modulo_id`),
  CONSTRAINT `suscrip_planes_detail_suscrip_modulo_id_foreign` FOREIGN KEY (`suscrip_modulo_id`) REFERENCES `suscrip_modulos` (`id`),
  CONSTRAINT `suscrip_planes_detail_suscrip_plan_id_foreign` FOREIGN KEY (`suscrip_plan_id`) REFERENCES `suscrip_planes` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=85 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `suscrip_planes_detail`
--

INSERT INTO `suscrip_planes_detail` VALUES (1,0,1,1,1,'CUITs para operar','','1',1,NULL,NULL,NULL),(2,0,1,1,0,'Usuarios para tus clientes','fa fa-times-circle','',1,NULL,NULL,NULL),(3,0,1,1,1,'Reporte de Control Total de las liquidaciones','fa fa-check-circle','',1,NULL,NULL,NULL),(4,0,1,1,0,'Enviar estado de deudas impositivas','fa fa-times-circle','',1,NULL,NULL,NULL),(5,0,1,1,0,'Enviar vencimientos y honorarios de tus clientes','fa fa-times-circle','',1,NULL,NULL,NULL),(6,0,2,1,1,'CUITs para operar','','30',1,NULL,NULL,NULL),(7,0,2,1,1,'Usuarios para tus clientes','fa fa-check-circle','5',1,NULL,NULL,NULL),(8,0,2,1,1,'Reporte de Control Total de las liquidaciones','fa fa-check-circle','',1,NULL,NULL,NULL),(9,0,2,1,0,'Enviar estado de deudas impositivas','fa fa-times-circle','',1,NULL,NULL,NULL),(10,0,2,1,0,'Enviar vencimientos y honorarios de tus clientes','fa fa-times-circle','',1,NULL,NULL,NULL),(11,0,3,1,1,'CUITs para operar','','100',1,NULL,NULL,NULL),(12,0,3,1,1,'Usuarios para tus clientes','fa fa-check-circle','15',1,NULL,NULL,NULL),(13,0,3,1,1,'Reporte de Control Total de las liquidaciones','fa fa-check-circle','',1,NULL,NULL,NULL),(14,0,3,1,1,'Enviar estado de deudas impositivas','fa fa-check-circle','',1,NULL,NULL,NULL),(15,0,3,1,1,'Enviar vencimientos y honorarios de tus clientes','fa fa-check-circle','',1,NULL,NULL,NULL),(16,0,4,1,1,'CUITs para operar','','200',1,NULL,NULL,NULL),(17,0,4,1,1,'Usuarios para tus clientes','fa fa-check-circle','30',1,NULL,NULL,NULL),(18,0,4,1,1,'Reporte de Control Total de las liquidaciones','fa fa-check-circle','',1,NULL,NULL,NULL),(19,0,4,1,1,'Enviar estado de deudas impositivas','fa fa-check-circle','',1,NULL,NULL,NULL),(20,0,4,1,1,'Enviar vencimientos y honorarios de tus clientes','fa fa-check-circle','',1,NULL,NULL,NULL),(21,0,1,2,1,'Total de Legajos','','10',1,NULL,NULL,NULL),(22,0,1,2,0,'Creacion de convenios colectivos de trabajo','fa fa-times-circle','',1,NULL,NULL,NULL),(23,0,1,2,1,'TXT para SICOSS','fa fa-check-circle','',1,NULL,NULL,NULL),(24,0,1,2,1,'Reportes de sueldos','fa fa-check-circle','',1,NULL,NULL,NULL),(25,0,2,2,1,'Total de Legajos','','50',1,NULL,NULL,NULL),(26,0,2,2,1,'Creacion de convenios colectivos de trabajo','fa fa-check-circle','',1,NULL,NULL,NULL),(27,0,2,2,1,'TXT para SICOSS','fa fa-check-circle','',1,NULL,NULL,NULL),(28,0,2,2,1,'Reportes de sueldos','fa fa-check-circle','',1,NULL,NULL,NULL),(29,0,3,2,1,'Total de Legajos','','200',1,NULL,NULL,NULL),(30,0,3,2,1,'Creacion de convenios colectivos de trabajo','fa fa-check-circle','',1,NULL,NULL,NULL),(31,0,3,2,1,'TXT para SICOSS','fa fa-check-circle','',1,NULL,NULL,NULL),(32,0,3,2,1,'Reportes de sueldos','fa fa-check-circle','',1,NULL,NULL,NULL),(33,0,4,2,1,'Total de Legajos','','200',1,NULL,NULL,NULL),(34,0,4,2,1,'Creacion de convenios colectivos de trabajo','fa fa-check-circle','',1,NULL,NULL,NULL),(35,0,4,2,1,'TXT para SICOSS','fa fa-check-circle','',1,NULL,NULL,NULL),(36,0,4,2,1,'Reportes de sueldos','fa fa-check-circle','',1,NULL,NULL,NULL),(37,0,1,3,1,'Cant. Comprobantes','','100',1,NULL,NULL,NULL),(38,0,1,3,1,'TXT Citi Ventas - Libro IVA Digital','fa fa-check-circle','',1,NULL,NULL,NULL),(39,0,1,3,1,'Importacion de Ventas y Compras desde AFIP','fa fa-check-circle','',1,NULL,NULL,NULL),(40,0,1,3,0,'Ventanilla Electronica','fa fa-times-circle','',1,NULL,NULL,NULL),(41,0,2,3,1,'Cant. Comprobantes','','Ilimitado',1,NULL,NULL,NULL),(42,0,2,3,1,'TXT Citi Ventas - Libro IVA Digital','fa fa-check-circle','',1,NULL,NULL,NULL),(43,0,2,3,1,'Importacion de Ventas y Compras desde AFIP','fa fa-check-circle','',1,NULL,NULL,NULL),(44,0,2,3,1,'Ventanilla Electronica','fa fa-check-circle','',1,NULL,NULL,NULL),(45,0,3,3,1,'Cant. Comprobantes','','Ilimitado',1,NULL,NULL,NULL),(46,0,3,3,1,'TXT Citi Ventas - Libro IVA Digital','fa fa-check-circle','',1,NULL,NULL,NULL),(47,0,3,3,1,'Importacion de Ventas y Compras desde AFIP','fa fa-check-circle','',1,NULL,NULL,NULL),(48,0,3,3,1,'Ventanilla Electronica','fa fa-check-circle','',1,NULL,NULL,NULL);
INSERT INTO `suscrip_planes_detail` VALUES (49,0,4,3,1,'Cant. Comprobantes','','Ilimitado',1,NULL,NULL,NULL),(50,0,4,3,1,'TXT Citi Ventas - Libro IVA Digital','fa fa-check-circle','',1,NULL,NULL,NULL),(51,0,4,3,1,'Importacion de Ventas y Compras desde AFIP','fa fa-check-circle','',1,NULL,NULL,NULL),(52,0,4,3,1,'Ventanilla Electronica','fa fa-check-circle','',1,NULL,NULL,NULL),(53,0,1,4,1,'Ajuste por Inflacion','fa fa-check-circle','',1,NULL,NULL,NULL),(54,0,1,4,1,'Registracion de Actas Societarias','fa fa-check-circle','',1,NULL,NULL,NULL),(55,0,1,4,1,'Libros Contables','fa fa-check-circle','',1,NULL,NULL,NULL),(56,0,1,4,1,'Reportes','fa fa-check-circle','',1,NULL,NULL,NULL),(57,0,2,4,1,'Ajuste por Inflacion','fa fa-check-circle','',1,NULL,NULL,NULL),(58,0,2,4,1,'Registracion de Actas Societarias','fa fa-check-circle','',1,NULL,NULL,NULL),(59,0,2,4,1,'Libros Contables','fa fa-check-circle','',1,NULL,NULL,NULL),(60,0,2,4,1,'Reportes','fa fa-check-circle','',1,NULL,NULL,NULL),(61,0,3,4,1,'Ajuste por Inflacion','fa fa-check-circle','',1,NULL,NULL,NULL),(62,0,3,4,1,'Registracion de Actas Societarias','fa fa-check-circle','',1,NULL,NULL,NULL),(63,0,3,4,1,'Libros Contables','fa fa-check-circle','',1,NULL,NULL,NULL),(64,0,3,4,1,'Reportes','fa fa-check-circle','',1,NULL,NULL,NULL),(65,0,4,4,1,'Ajuste por Inflacion','fa fa-check-circle','',1,NULL,NULL,NULL),(66,0,4,4,1,'Registracion de Actas Societarias','fa fa-check-circle','',1,NULL,NULL,NULL),(67,0,4,4,1,'Libros Contables','fa fa-check-circle','',1,NULL,NULL,NULL),(68,0,4,4,1,'Reportes','fa fa-check-circle','',1,NULL,NULL,NULL),(69,0,1,5,0,'Facturacion Electronica','fa fa-times-circle','',1,NULL,NULL,NULL),(70,0,1,5,1,'Facturacion Masiva y envio de facturas via email','fa fa-check-circle','',1,NULL,NULL,NULL),(71,0,1,5,1,'Remitos-Recibos-Presupuestos','fa fa-check-circle','',1,NULL,NULL,NULL),(72,0,1,5,1,'Reportes','fa fa-check-circle','',1,NULL,NULL,NULL),(73,0,2,5,1,'Facturacion Electronica','fa fa-check-circle','',1,NULL,NULL,NULL),(74,0,2,5,1,'Facturacion Masiva y envio de facturas via email','fa fa-check-circle','',1,NULL,NULL,NULL),(75,0,2,5,1,'Remitos-Recibos-Presupuestos','fa fa-check-circle','',1,NULL,NULL,NULL),(76,0,2,5,1,'Reportes','fa fa-check-circle','',1,NULL,NULL,NULL),(77,0,3,5,1,'Facturacion Electronica','fa fa-check-circle','',1,NULL,NULL,NULL),(78,0,3,5,1,'Facturacion Masiva y envio de facturas via email','fa fa-check-circle','',1,NULL,NULL,NULL),(79,0,3,5,1,'Remitos-Recibos-Presupuestos','fa fa-check-circle','',1,NULL,NULL,NULL),(80,0,3,5,1,'Reportes','fa fa-check-circle','',1,NULL,NULL,NULL),(81,0,4,5,1,'Facturacion Electronica','fa fa-check-circle','',1,NULL,NULL,NULL),(82,0,4,5,1,'Facturacion Masiva y envio de facturas via email','fa fa-check-circle','',1,NULL,NULL,NULL),(83,0,4,5,1,'Remitos-Recibos-Presupuestos','fa fa-check-circle','',1,NULL,NULL,NULL),(84,0,4,5,1,'Reportes','fa fa-check-circle','',1,NULL,NULL,NULL);

--
-- Table structure for table `syj_actividad`
--

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

--
-- Dumping data for table `syj_actividad`
--

INSERT INTO `syj_actividad` VALUES (1,NULL,0,'Zona de Desastre. Decreto 1386/01',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(2,NULL,1,'Produccion Primaria excepto actividad agropec',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(3,NULL,2,'Produccion de bienes sin comercializacion',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(4,NULL,3,'Construccion de inmuebles',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(5,NULL,4,'Turismo',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(6,NULL,5,'Investigacion Cientifica y Tecnologica',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(7,NULL,6,'Administracion Publica CON OBRA SOCIAL 23660',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(8,NULL,7,'Enseñanza Privada L.13047 no comp.en D 137/05',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(9,NULL,8,'Servicio Domestico',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(10,NULL,9,'Servicios energeticos Res.MTESS 268 y 824/09',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(11,NULL,10,'UNIVERSIDADES PRIVADAS.Personal No Doc. D112',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(12,NULL,11,'Personal Permanente Disc.Emp.de Ss.Eventuales',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(13,NULL,12,'PIT-Programas Intensivos de Trabajo',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(14,NULL,13,'Personal embarcado',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(15,NULL,14,'Personal embarcado Dec 1255 S/ res SSS 18/99',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(16,NULL,15,'LRT- Direct. SA,municipios,org cent y desc,Em',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(17,NULL,16,'No oblig con el SIJP(colegios,reciproc prev y',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(18,NULL,17,'Oblig.al SIJP-sin Obra Social Nac(Adm Pub y',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(19,NULL,18,'Prov incorp al SIJP sin obra social con ART',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(20,NULL,19,'Provincia incorp al SIJP sin obra social sin',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(21,NULL,20,'Ley Nº 24.331 Zona Franca',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(22,NULL,21,'D Nº1024/93 Empr del Est,Org y Entes Pub c/OS',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(23,NULL,22,'D Nº1024/93 Empr del Est,Org y Entes Pub s/OS',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(24,NULL,23,'ILT para actividad 21',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(25,NULL,24,'ILPPP o ILPPD para actividad 21',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(26,NULL,25,'ILPTP para actividad 21',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(27,NULL,26,'ILT para actividad 22',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(28,NULL,27,'Servicio exterior Ley Nº22731',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(29,NULL,28,'ILPTP para actividad 22',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(30,NULL,29,'Pers embarc Dec 1255 S/res SSS 18/99 c/OS',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(31,NULL,30,'AFA Dec Nº1212/03 Aportante Autonomo',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(32,NULL,31,'Trabajador Rural de la Armada Argentina Ley 2',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(33,NULL,32,'CSJN Corte Supr de Justicia, Magist Prov, Rev',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(34,NULL,33,'Representante Gremial en uso de licencia',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(35,NULL,34,'Docentes est nacionales CON OBRA SOCIAL 23660',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(36,NULL,35,'Docentes est nacionales SIN OBRA SOCIAL 23660',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(37,NULL,36,'Inv cientif tecnolog docente univ est nac c/O',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(38,NULL,37,'Inv cientif tecnolog docente univ est nac s/O',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL);
INSERT INTO `syj_actividad` VALUES (39,NULL,38,'Docentes privados Res 71/99 SSS Dec 137/05',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(40,NULL,39,'No Docentes Privados Res 71/99 SSS',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(41,NULL,40,'Industria del software Ley Nº 25922',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(42,NULL,41,'Trabajador de la Const Ley 25345 art 36',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(43,NULL,42,'Asignaciones Familiares y FNE con OS Nacional',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(44,NULL,43,'Asignaciones Familiares y FNE sin OS Nacional',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(45,NULL,44,'Ley Nº 24061 Dto 249/92',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(46,NULL,45,'Prov incorp al SIJP c/OS Nac con ART',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(47,NULL,46,'Prov incorp al SIJP con OS Nacional sin ART',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(48,NULL,47,'Ley Nº 15223 con Obra Social',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(49,NULL,48,'Regimen nacional sin Obra Social nacional',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(50,NULL,49,'Actividades no clasificadas',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(51,NULL,50,'POLICIA DE LA RIOJA',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(52,NULL,51,'POLICIA DE JUJUY',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(53,NULL,52,'POLICIA DE TUCUMAN',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(54,NULL,53,'POLICIA DE CATAMARCA',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(55,NULL,54,'POLICIA DE RIO NEGRO',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(56,NULL,55,'POLICIA DE MENDOZA',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(57,NULL,56,'POLICIA DE SANTIAGO DEL ESTERO',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(58,NULL,57,'POLICIA DE SALTA',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(59,NULL,58,'POLICIA DE SAN JUAN',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(60,NULL,59,'POLICIA DE SAN LUIS',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(61,NULL,60,'SERVICIO PENITENCIARIO DE SAN LUIS',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(62,NULL,61,'POLICIA METROPOLITANA DEL GOB DE LA CABA',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(63,NULL,62,'Personal sin estado policial POLICIA METROP',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(64,NULL,63,'SERVICIO PENITENCIARIO DE LA RIOJA',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(65,NULL,64,'SERVICIO PENITENCIARIO DE JUJUY',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(66,NULL,65,'SERVICIO PENITENCIARIO DE TUCUMAN',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(67,NULL,66,'SERVICIO PENITENCIARIO DE CATAMARCA',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(68,NULL,67,'SERVICIO PENITENCIARIO DE RIO NEGRO',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(69,NULL,68,'SERVICO PENITENCIARIO DE MENDOZA',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(70,NULL,69,'Legisladores Nacionales(diputados y senadores',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(71,NULL,70,'SERVICIO PENITENCIARIO DE SANTIAGO DEL ESTERO',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(72,NULL,71,'SERVICIO PENITENCIARIO DE SALTA',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(73,NULL,72,'SERVICIO PENITENCIARIO DE SAN JUAN',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(74,NULL,73,'ILT p/actividad 91',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(75,NULL,74,'ILPPP o ILPPD p/actividad 91',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(76,NULL,75,'Docente de Prov incorp SIJP s/OS Nac c/ART',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(77,NULL,76,'Docente de Prov incorp SIJP s/OS Nac s/ART',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(78,NULL,77,'Docente de Prov incorp SIJP c/OS Nac c/ART',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL);
INSERT INTO `syj_actividad` VALUES (79,NULL,78,'Invest cient tecnolog docente univ Prov inc S',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(80,NULL,79,'Invest cientif tecnolog Prov incorp al SIJP c',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(81,NULL,80,'ILPTP p/activ 01 02 03 04 05 11 13 49 91',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(82,NULL,81,'Funcionarios del PJ y otros Ley Nº24018',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(83,NULL,82,'Funcionarios del PE y otros Ley Nº 24018',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(84,NULL,83,'Presidente de la Nacion y Vicep de la Nacion',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(85,NULL,84,'Docentes Privados Res 71/99 SSS D 137/05 s/OS',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(86,NULL,85,'Magistrados Prov,Revisores de Cta-docentes',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(87,NULL,86,'Decreto 1474/2007 actividad minera',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(88,NULL,87,'Ley 26508 docentes univ c/OS Nacional',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(89,NULL,88,'Ley 26508 docentes univ s/OS Nacional',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(90,NULL,89,'ILPTP p/actividad 97',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(91,NULL,90,'ILT o ILPPP o ILPTP p/actividad 15',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(92,NULL,91,'Regimen previsional propio. OS L.23660 y 2471',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(93,NULL,92,'Res 71/99 SSS y otros',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(94,NULL,93,'UNIV PRIVADAS Personal Docente D 1123/99',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(95,NULL,94,'Decreto 953/99',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(96,NULL,95,'Ley Nº 15223 sin Obra Social',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(97,NULL,96,'Pers Perm Disc Serv Event Alcanz p/Dto96/99',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(98,NULL,97,'Trabajador Agrario Ley 25191',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(99,NULL,98,'Zona de Desastre Dec Nº1386/01 Act Agropecuar',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(100,NULL,99,'Trabajador Agrario (excluido Ley 26727)',1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(101,NULL,100,'CSJN Corte Supr de Justicia, Magistrados provinciales, Revisores de Cta sin ART',1,NULL,NULL,NULL),(102,NULL,101,'Magistrados provinciales, Revisores de Cta -docentes sin ART',1,NULL,NULL,NULL),(103,NULL,102,'Zona de Desastre Decreto N° 1386/01. Actividad Agropecuaria Ley N° 25191',1,NULL,NULL,NULL),(104,NULL,103,'Trabajador Agrario Ley 23808 y otros regímenes',1,NULL,NULL,NULL),(105,NULL,104,'Zona de Desastre Decreto N° 1386/01. Actividad Agropecuaria Ley N° 23808 y otros regímenes',1,NULL,NULL,NULL),(106,NULL,105,'Dto. 637/13. Personal civil de las Fuerzas Armadas y de Seguridad excepto personal civil docente perteneciente a otra OS',1,NULL,NULL,NULL),(107,NULL,106,'Administración Pública CON OBRA SOCIAL 23660 (con PAMI) Tipo de empleador especial',1,NULL,NULL,NULL),(108,NULL,107,'Serv. energéticos Res. MTESS 268 y 824/09 Empr del Estado, Org. y Entes Públicos (Dto. 1024/93) s/OS, c/FNE s/ As. Fs.',1,NULL,NULL,NULL),(109,NULL,108,'Serv. energéticos Res. MTESS 268 y 824/09 Emp. del estado y Org. y Entes públicos ( Dto. 1024/93) con OS y FNE sin As. Fs.',1,NULL,NULL,NULL),(110,NULL,109,'Servicios energéticos Res.MTESS 268 y 824/09 - Provincias (sin PAMI y sin OS)',1,NULL,NULL,NULL),(111,NULL,110,'Servicios energéticos Res.MTESS 268 y 824/09 - Provincias con OS',1,NULL,NULL,NULL),(112,NULL,111,'Servicios energéticos Res.MTESS 268 y 824/09 - Provincias (sin PAMI y sin OS) sin ART',1,NULL,NULL,NULL),(113,NULL,112,'Servicios energéticos Res.MTESS 268 y 824/09 - Provincias con OS sin ART',1,NULL,NULL,NULL),(114,NULL,113,'Policía Federal del Gobierno de la Ciudad de Buenos Aires',1,NULL,NULL,NULL);
INSERT INTO `syj_actividad` VALUES (115,NULL,117,'Obligados al SIJP -sin Obra Social Nacional (Adm Pub y otros) y SIN PAMI - Tipo de empleador especial',1,NULL,NULL,NULL),(116,NULL,119,'Detracción especial - Ley Nº 27430 - Textiles',1,NULL,NULL,NULL),(117,NULL,120,'Detracción Ampliada - Dcto. 128/2019',1,NULL,NULL,NULL),(118,NULL,122,'Trabajador Agrario. Ley 26727 - Detracción Ampliada Dcto. 128/2019',1,NULL,NULL,NULL),(119,NULL,123,'Trabajador Agrario Ley 25191 - Detracción Ampliada Dcto. 128/2019',1,NULL,NULL,NULL),(120,NULL,124,'Trabajador Agrario Ley 23808 y otros regímenes - Detracción Ampliada Dcto. 128/2019',1,NULL,NULL,NULL),(121,NULL,125,'Actividades no clasificadas-Detracción Ampliada - Dcto. 688/2019 - Dcto. 34/2021 - Dcto 242/2021',1,NULL,NULL,NULL),(122,NULL,126,'Ley Nº 15223 con obra social-Detracción Ampliada - Dcto. 688/2019  -  Dcto. 34/2021 -  Dcto 242/2021',1,NULL,NULL,NULL),(123,NULL,127,'Actividades no clasificadas - Sector Salud Dcto. 34/2021  -  Dcto 242/2021',1,NULL,NULL,NULL),(124,NULL,128,'Ley Nº 15223 con obra social - Sector Salud Dcto. 34/2021  -  Dcto 242/2021',1,NULL,NULL,NULL),(125,NULL,129,'Actividades no clasificadas-Detracción Ampliada - Dcto. 688/2019',1,NULL,NULL,NULL),(126,NULL,130,'Ley Nº 15223 con obra social-Detracción Ampliada - Dcto. 688/2019.',1,NULL,NULL,NULL),(127,NULL,131,'Regimen previsional propio.  Obra Social L.23660 Y FNE',1,NULL,NULL,NULL),(128,NULL,132,'Economía del conocimiento - Ley 27.506. Art. 8',1,NULL,NULL,NULL),(129,NULL,133,'Economía del conocimiento - Ley 27.506. Art. 9',1,NULL,NULL,NULL),(130,NULL,901,'Poder judicial (sin ART)',1,NULL,NULL,NULL),(131,NULL,902,'Poder judicial (con ART)',1,NULL,NULL,NULL),(132,NULL,903,'Poder Legislativo (sin ART)',1,NULL,NULL,NULL),(133,NULL,904,'Poder Legislativo (con ART)',1,NULL,NULL,NULL),(134,NULL,905,'Empleo público en Gral. (sin ART)',1,NULL,NULL,NULL),(135,NULL,906,'Empleo público en Gral. (con ART)',1,NULL,NULL,NULL),(136,NULL,907,'Docente (sin ART)',1,NULL,NULL,NULL),(137,NULL,908,'Docente (con ART)',1,NULL,NULL,NULL),(138,NULL,909,'Fuerza de seguridad (sin ART)',1,NULL,NULL,NULL),(139,NULL,910,'Fuerza de seguridad (con ART)',1,NULL,NULL,NULL),(140,NULL,911,'No clasificados (sin ART)',1,NULL,NULL,NULL),(141,NULL,912,'No clasificados (con ART)',1,NULL,NULL,NULL),(142,NULL,913,'Prestadores de servicios (monotributo y/o autónomos)',1,NULL,NULL,NULL),(143,NULL,920,'No obligados al SIPA - informativo (sin ART)',1,NULL,NULL,NULL),(144,NULL,921,'No obligados al SIPA - informativo (con ART)',1,NULL,NULL,NULL);

--
-- Table structure for table `syj_alicuota_aporte_contribucion`
--

CREATE TABLE `syj_alicuota_aporte_contribucion` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `codigo_afip` int(10) unsigned NOT NULL,
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `apsijp` decimal(20,6) NOT NULL DEFAULT '0.000000',
  `apinssjp` decimal(20,6) NOT NULL DEFAULT '0.000000',
  `aposoc` decimal(20,6) NOT NULL DEFAULT '0.000000',
  `apadosoc` decimal(20,6) NOT NULL DEFAULT '0.000000',
  `alicvales` decimal(20,6) NOT NULL DEFAULT '0.000000',
  `cosijp` decimal(20,6) NOT NULL DEFAULT '0.000000',
  `coasigfam` decimal(20,6) NOT NULL DEFAULT '0.000000',
  `cofne` decimal(20,6) NOT NULL DEFAULT '0.000000',
  `coinssjp` decimal(20,6) NOT NULL DEFAULT '0.000000',
  `coosoc` decimal(20,6) NOT NULL DEFAULT '0.000000',
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `syj_alicuota_aporte_contribucion_codigo_afip_unique` (`codigo_afip`),
  UNIQUE KEY `syj_alicuota_aporte_contribucion_descripcion_unique` (`descripcion`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `syj_alicuota_aporte_contribucion`
--

INSERT INTO `syj_alicuota_aporte_contribucion` VALUES (1,NULL,0,'Administracion Publica',11.000000,3.000000,3.000000,1.500000,0.000000,16.000000,7.500000,1.500000,2.000000,6.000000,1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(2,NULL,1,'Decreto 814/01, art 2, inc. B',11.000000,3.000000,3.000000,1.500000,0.000000,10.170000,4.440000,0.890000,1.500000,6.000000,1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(3,NULL,2,'Servicios Eventuales art. 2, inc. B',11.000000,3.000000,3.000000,1.500000,0.000000,10.170000,4.440000,0.890000,1.500000,6.000000,1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(4,NULL,3,'Provincias u otros',11.000000,3.000000,3.000000,1.500000,0.000000,16.000000,7.500000,1.500000,2.000000,6.000000,1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(5,NULL,4,'Decreto 814/01 art 2, inc. A',11.000000,3.000000,3.000000,1.500000,0.000000,12.710000,5.560000,1.110000,1.620000,6.000000,1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(6,NULL,5,'Servicios Eventuales art 2, inc. A',11.000000,3.000000,3.000000,1.500000,0.000000,12.710000,5.560000,1.110000,1.620000,6.000000,1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(7,NULL,7,'Enseñanza Privada',11.000000,3.000000,3.000000,1.500000,0.000000,16.000000,7.500000,1.500000,0.000000,6.000000,1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL),(8,NULL,8,'Decreto Nº 1212/03 AFA CLUBES',11.000000,3.000000,3.000000,1.500000,0.000000,10.170000,4.440000,0.890000,1.500000,6.000000,1,'2020-05-28 20:55:21','2020-05-28 20:55:21',NULL);

--
-- Table structure for table `syj_cargos`
--

CREATE TABLE `syj_cargos` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned 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 `syj_cargos_person_id_foreign` (`person_id`),
  CONSTRAINT `syj_cargos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `syj_cargos`
--

INSERT INTO `syj_cargos` VALUES (1,7503,40719,'VIGILADOR GENERAL',1,'2022-10-25 13:03:42','2022-10-25 13:03:42',NULL),(2,7503,40720,'VIGILADOR GENERAL',1,'2022-10-26 10:56:00','2022-10-26 10:56:00',NULL),(3,7503,40721,'CONTROLADOR',1,'2022-11-17 10:14:40','2022-11-17 10:14:40',NULL),(4,7503,40722,'TECNICO DE 1',1,'2023-01-03 12:02:48','2023-01-03 12:02:48',NULL),(5,7503,40722,'Excluido convenio',1,'2023-01-03 13:51:16','2023-01-03 13:51:16',NULL),(6,7503,40787,'MINUTERO',1,'2023-07-03 15:28:23','2023-07-03 15:28:23',NULL),(7,7503,40787,'PENDIENTE DE MOSTRADOR',1,'2023-07-03 15:28:43','2023-07-03 15:28:43',NULL),(8,7503,40787,'OFICIAL MAESTRO',1,'2023-07-03 15:29:32','2023-07-03 15:29:32',NULL),(9,7503,40787,'AYUDANTE',1,'2023-07-03 15:29:45','2023-07-03 15:29:45',NULL),(10,7503,40788,'MEDIO EMPANADERO',1,'2025-10-31 14:35:31','2025-10-31 14:35:31',NULL);

--
-- Table structure for table `syj_centros_costos`
--

CREATE TABLE `syj_centros_costos` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned 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 `syj_centros_costos_person_id_foreign` (`person_id`),
  CONSTRAINT `syj_centros_costos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `syj_centros_costos`
--

INSERT INTO `syj_centros_costos` VALUES (1,7503,40719,'VIGILADOR GENERAL',1,'2022-10-25 13:03:26','2022-10-25 13:03:26',NULL),(2,7503,40720,'VIGILADOR GENERAL',1,'2022-10-26 10:55:48','2022-10-26 10:55:48',NULL),(3,7503,40721,'CONTROLADOR',1,'2022-11-17 10:14:21','2022-11-17 10:14:21',NULL),(4,7503,40722,'TECNICO DE 1',1,'2023-01-03 12:02:21','2023-01-03 12:02:21',NULL),(5,7503,40722,'Excluido convenio',1,'2023-01-03 13:51:05','2023-01-03 13:51:05',NULL),(6,7503,40787,'MINUTERO',1,'2023-07-03 15:25:55','2023-07-03 15:25:55',NULL),(7,7503,40787,'PENDIENTE DE MOSTRADOR',1,'2023-07-03 15:26:05','2023-07-03 15:26:05',NULL),(8,7503,40787,'OFICIAL MAESTRO',1,'2023-07-03 15:26:19','2023-07-03 15:27:36',NULL),(9,7503,40787,'AYUDANTE',1,'2023-07-03 15:28:06','2023-07-03 15:28:06',NULL),(10,7503,40788,'MEDIO EMPANADERO',1,'2025-10-31 14:36:04','2025-10-31 14:36:04',NULL);

--
-- Table structure for table `syj_clase_tipo_liquidacion`
--

CREATE TABLE `syj_clase_tipo_liquidacion` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT 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`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `syj_clase_tipo_liquidacion`
--

INSERT INTO `syj_clase_tipo_liquidacion` VALUES (1,NULL,'Mensual',1,NULL,NULL,NULL),(2,NULL,'Quincenal',1,NULL,NULL,NULL),(3,NULL,'Vacaciones',1,NULL,NULL,NULL),(4,NULL,'Aguinaldo',1,NULL,NULL,NULL),(5,NULL,'Final',1,NULL,NULL,NULL);

--
-- Table structure for table `syj_concepto_alcance`
--

CREATE TABLE `syj_concepto_alcance` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT 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`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `syj_concepto_alcance`
--

INSERT INTO `syj_concepto_alcance` VALUES (1,NULL,'General',1,'2020-05-28 20:55:25','2020-05-28 20:55:25',NULL),(2,NULL,'Por empleado',1,'2020-05-28 20:55:25','2020-05-28 20:55:25',NULL);

--
-- Table structure for table `syj_concepto_asoc_cant`
--

CREATE TABLE `syj_concepto_asoc_cant` (
  `user_id` int(10) unsigned DEFAULT NULL,
  `syj_concepto_id` int(10) unsigned DEFAULT NULL,
  `syj_concepto_asociado_id` int(10) unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  KEY `syj_concepto_asoc_cant_syj_concepto_id_foreign` (`syj_concepto_id`),
  KEY `syj_concepto_asoc_cant_syj_concepto_asociado_id_foreign` (`syj_concepto_asociado_id`),
  CONSTRAINT `syj_concepto_asoc_cant_syj_concepto_asociado_id_foreign` FOREIGN KEY (`syj_concepto_asociado_id`) REFERENCES `syj_conceptos` (`id`),
  CONSTRAINT `syj_concepto_asoc_cant_syj_concepto_id_foreign` FOREIGN KEY (`syj_concepto_id`) REFERENCES `syj_conceptos` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `syj_concepto_asoc_cant`
--

INSERT INTO `syj_concepto_asoc_cant` VALUES (1,316,315,'2020-05-06 12:12:32','2020-05-06 12:12:32'),(1,325,350,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(1,325,351,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(1,325,352,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(1,325,289,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(1,325,301,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(1,325,354,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(1,325,305,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(1,329,321,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(1,329,320,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(1,329,323,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(1,328,301,'2020-05-06 12:51:31','2020-05-06 12:51:31'),(88,326,1468,'2020-05-08 10:15:05','2020-05-08 10:15:05'),(88,327,1468,'2020-05-08 10:15:45','2020-05-08 10:15:45'),(1,1646,315,'2020-05-06 12:12:32','2020-05-06 12:12:32'),(1,1652,350,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(1,1652,351,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(1,1652,352,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(1,1652,289,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(1,1652,301,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(1,1652,354,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(1,1652,305,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(1,1653,1468,'2020-05-08 10:15:05','2020-05-08 10:15:05'),(1,1654,1468,'2020-05-08 10:15:45','2020-05-08 10:15:45'),(1,1655,301,'2020-05-06 12:51:31','2020-05-06 12:51:31'),(1,1656,321,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(1,1656,320,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(1,1656,323,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(1,1720,315,'2020-05-06 12:12:32','2020-05-06 12:12:32'),(1,1726,350,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(1,1726,351,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(1,1726,352,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(1,1726,289,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(1,1726,301,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(1,1726,354,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(1,1726,305,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(1,1727,1468,'2020-05-08 10:15:05','2020-05-08 10:15:05'),(1,1728,1468,'2020-05-08 10:15:45','2020-05-08 10:15:45'),(1,1729,301,'2020-05-06 12:51:31','2020-05-06 12:51:31'),(1,1730,321,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(1,1730,320,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(1,1730,323,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(88,1874,315,'2020-05-06 12:12:32','2020-05-06 12:12:32'),(88,1880,350,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,1880,351,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,1880,352,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,1880,289,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,1880,301,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,1880,354,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,1880,305,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,1881,1468,'2020-05-08 10:15:05','2020-05-08 10:15:05'),(88,1882,1468,'2020-05-08 10:15:45','2020-05-08 10:15:45'),(88,1883,301,'2020-05-06 12:51:31','2020-05-06 12:51:31'),(88,1884,321,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(88,1884,320,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(88,1884,323,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(88,1955,315,'2020-05-06 12:12:32','2020-05-06 12:12:32'),(88,1961,350,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,1961,351,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,1961,352,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,1961,289,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,1961,301,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,1961,354,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,1961,305,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,1962,1468,'2020-05-08 10:15:05','2020-05-08 10:15:05'),(88,1963,1468,'2020-05-08 10:15:45','2020-05-08 10:15:45'),(88,1964,301,'2020-05-06 12:51:31','2020-05-06 12:51:31'),(88,1965,321,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(88,1965,320,'2020-05-06 12:35:45','2020-05-06 12:35:45');
INSERT INTO `syj_concepto_asoc_cant` VALUES (88,1965,323,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(88,2031,315,'2020-05-06 12:12:32','2020-05-06 12:12:32'),(88,2037,350,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2037,351,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2037,352,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2037,289,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2037,301,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2037,354,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2037,305,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2038,1468,'2020-05-08 10:15:05','2020-05-08 10:15:05'),(88,2039,1468,'2020-05-08 10:15:45','2020-05-08 10:15:45'),(88,2040,301,'2020-05-06 12:51:31','2020-05-06 12:51:31'),(88,2041,321,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(88,2041,320,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(88,2041,323,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(88,2108,315,'2020-05-06 12:12:32','2020-05-06 12:12:32'),(88,2114,350,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2114,351,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2114,352,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2114,289,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2114,301,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2114,354,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2114,305,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2115,1468,'2020-05-08 10:15:05','2020-05-08 10:15:05'),(88,2116,1468,'2020-05-08 10:15:45','2020-05-08 10:15:45'),(88,2117,301,'2020-05-06 12:51:31','2020-05-06 12:51:31'),(88,2118,321,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(88,2118,320,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(88,2118,323,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(88,2189,315,'2020-05-06 12:12:32','2020-05-06 12:12:32'),(88,2195,350,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2195,351,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2195,352,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2195,289,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2195,301,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2195,354,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2195,305,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2196,1468,'2020-05-08 10:15:05','2020-05-08 10:15:05'),(88,2197,1468,'2020-05-08 10:15:45','2020-05-08 10:15:45'),(88,2198,301,'2020-05-06 12:51:31','2020-05-06 12:51:31'),(88,2199,321,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(88,2199,320,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(88,2199,323,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(88,2264,315,'2020-05-06 12:12:32','2020-05-06 12:12:32'),(88,2270,350,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2270,351,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2270,352,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2270,289,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2270,301,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2270,354,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2270,305,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2271,1468,'2020-05-08 10:15:05','2020-05-08 10:15:05'),(88,2272,1468,'2020-05-08 10:15:45','2020-05-08 10:15:45'),(88,2273,301,'2020-05-06 12:51:31','2020-05-06 12:51:31'),(88,2274,321,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(88,2274,320,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(88,2274,323,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(88,2345,315,'2020-05-06 12:12:32','2020-05-06 12:12:32'),(88,2351,350,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2351,351,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2351,352,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2351,289,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2351,301,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2351,354,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2351,305,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2352,1468,'2020-05-08 10:15:05','2020-05-08 10:15:05'),(88,2353,1468,'2020-05-08 10:15:45','2020-05-08 10:15:45'),(88,2354,301,'2020-05-06 12:51:31','2020-05-06 12:51:31');
INSERT INTO `syj_concepto_asoc_cant` VALUES (88,2355,321,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(88,2355,320,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(88,2355,323,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(88,2429,315,'2020-05-06 12:12:32','2020-05-06 12:12:32'),(88,2435,350,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2435,351,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2435,352,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2435,289,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2435,301,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2435,354,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2435,305,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2436,1468,'2020-05-08 10:15:05','2020-05-08 10:15:05'),(88,2437,1468,'2020-05-08 10:15:45','2020-05-08 10:15:45'),(88,2438,301,'2020-05-06 12:51:31','2020-05-06 12:51:31'),(88,2439,321,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(88,2439,320,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(88,2439,323,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(88,2508,315,'2020-05-06 12:12:32','2020-05-06 12:12:32'),(88,2514,350,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2514,351,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2514,352,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2514,289,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2514,301,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2514,354,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2514,305,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2515,1468,'2020-05-08 10:15:05','2020-05-08 10:15:05'),(88,2516,1468,'2020-05-08 10:15:45','2020-05-08 10:15:45'),(88,2517,301,'2020-05-06 12:51:31','2020-05-06 12:51:31'),(88,2518,321,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(88,2518,320,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(88,2518,323,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(88,2583,315,'2020-05-06 12:12:32','2020-05-06 12:12:32'),(88,2589,350,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2589,351,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2589,352,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2589,289,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2589,301,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2589,354,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2589,305,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2590,1468,'2020-05-08 10:15:05','2020-05-08 10:15:05'),(88,2591,1468,'2020-05-08 10:15:45','2020-05-08 10:15:45'),(88,2592,301,'2020-05-06 12:51:31','2020-05-06 12:51:31'),(88,2593,321,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(88,2593,320,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(88,2593,323,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(88,2738,315,'2020-05-06 12:12:32','2020-05-06 12:12:32'),(88,2744,350,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2744,351,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2744,352,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2744,289,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2744,301,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2744,354,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2744,305,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(88,2745,1468,'2020-05-08 10:15:05','2020-05-08 10:15:05'),(88,2746,1468,'2020-05-08 10:15:45','2020-05-08 10:15:45'),(88,2747,301,'2020-05-06 12:51:31','2020-05-06 12:51:31'),(88,2748,321,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(88,2748,320,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(88,2748,323,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(1,3374,315,'2020-05-06 12:12:32','2020-05-06 12:12:32'),(1,3380,350,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(1,3380,351,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(1,3380,352,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(1,3380,289,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(1,3380,301,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(1,3380,354,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(1,3380,305,'2020-05-06 12:32:28','2020-05-06 12:32:28'),(1,3381,1468,'2020-05-08 10:15:05','2020-05-08 10:15:05');
INSERT INTO `syj_concepto_asoc_cant` VALUES (1,3382,1468,'2020-05-08 10:15:45','2020-05-08 10:15:45'),(1,3383,301,'2020-05-06 12:51:31','2020-05-06 12:51:31'),(1,3384,321,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(1,3384,320,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(1,3384,323,'2020-05-06 12:35:45','2020-05-06 12:35:45'),(7503,3471,3457,'2022-11-17 10:17:07','2022-11-17 10:17:07'),(7503,3477,3499,'2022-11-17 10:17:07','2022-11-17 10:17:07'),(7503,3477,3500,'2022-11-17 10:17:07','2022-11-17 10:17:07'),(7503,3477,3501,'2022-11-17 10:17:07','2022-11-17 10:17:07'),(7503,3477,3451,'2022-11-17 10:17:07','2022-11-17 10:17:07'),(7503,3477,3458,'2022-11-17 10:17:07','2022-11-17 10:17:07'),(7503,3477,3503,'2022-11-17 10:17:07','2022-11-17 10:17:07'),(7503,3477,3462,'2022-11-17 10:17:07','2022-11-17 10:17:07'),(7503,3478,3513,'2022-11-17 10:17:07','2022-11-17 10:17:07'),(7503,3479,3513,'2022-11-17 10:17:07','2022-11-17 10:17:07'),(7503,3480,3458,'2022-11-17 10:17:07','2022-11-17 10:17:07'),(7503,3481,3473,'2022-11-17 10:17:07','2022-11-17 10:17:07'),(7503,3481,3472,'2022-11-17 10:17:07','2022-11-17 10:17:07'),(7503,3481,3475,'2022-11-17 10:17:07','2022-11-17 10:17:07'),(7503,1703,1768,'2023-01-05 10:30:28','2023-01-05 10:30:28'),(7503,3567,3553,'2023-07-03 12:09:06','2023-07-03 12:09:06'),(7503,3573,3595,'2023-07-03 12:09:06','2023-07-03 12:09:06'),(7503,3573,3596,'2023-07-03 12:09:06','2023-07-03 12:09:06'),(7503,3573,3597,'2023-07-03 12:09:06','2023-07-03 12:09:06'),(7503,3573,3547,'2023-07-03 12:09:06','2023-07-03 12:09:06'),(7503,3573,3546,'2023-07-03 12:09:06','2023-07-03 12:09:06'),(7503,3573,3599,'2023-07-03 12:09:06','2023-07-03 12:09:06'),(7503,3573,3558,'2023-07-03 12:09:06','2023-07-03 12:09:06'),(7503,3574,3608,'2023-07-03 12:09:06','2023-07-03 12:09:06'),(7503,3575,3608,'2023-07-03 12:09:06','2023-07-03 12:09:06'),(7503,3577,3569,'2023-07-03 12:09:06','2023-07-03 12:09:06'),(7503,3577,3568,'2023-07-03 12:09:06','2023-07-03 12:09:06'),(7503,3577,3571,'2023-07-03 12:09:06','2023-07-03 12:09:06'),(7503,3644,3630,'2023-07-03 15:06:55','2023-07-03 15:06:55'),(7503,3650,3672,'2023-07-03 15:06:55','2023-07-03 15:06:55'),(7503,3650,3673,'2023-07-03 15:06:55','2023-07-03 15:06:55'),(7503,3650,3674,'2023-07-03 15:06:55','2023-07-03 15:06:55'),(7503,3650,3624,'2023-07-03 15:06:55','2023-07-03 15:06:55'),(7503,3650,3623,'2023-07-03 15:06:55','2023-07-03 15:06:55'),(7503,3650,3676,'2023-07-03 15:06:55','2023-07-03 15:06:55'),(7503,3650,3635,'2023-07-03 15:06:55','2023-07-03 15:06:55'),(7503,3651,3685,'2023-07-03 15:06:55','2023-07-03 15:06:55'),(7503,3652,3685,'2023-07-03 15:06:55','2023-07-03 15:06:55'),(7503,3654,3646,'2023-07-03 15:06:55','2023-07-03 15:06:55'),(7503,3654,3645,'2023-07-03 15:06:55','2023-07-03 15:06:55'),(7503,3654,3648,'2023-07-03 15:06:55','2023-07-03 15:06:55'),(7503,3653,3623,'2023-09-05 10:48:31','2023-09-05 10:48:31'),(7503,3576,3546,'2023-09-05 10:52:40','2023-09-05 10:52:40'),(7503,3729,3715,'2023-09-06 11:00:45','2023-09-06 11:00:45'),(7503,3735,3757,'2023-09-06 11:00:45','2023-09-06 11:00:45'),(7503,3735,3758,'2023-09-06 11:00:45','2023-09-06 11:00:45'),(7503,3735,3759,'2023-09-06 11:00:45','2023-09-06 11:00:45'),(7503,3735,3709,'2023-09-06 11:00:45','2023-09-06 11:00:45'),(7503,3735,3708,'2023-09-06 11:00:45','2023-09-06 11:00:45'),(7503,3735,3761,'2023-09-06 11:00:45','2023-09-06 11:00:45'),(7503,3735,3720,'2023-09-06 11:00:45','2023-09-06 11:00:45'),(7503,3736,3770,'2023-09-06 11:00:45','2023-09-06 11:00:45'),(7503,3737,3770,'2023-09-06 11:00:45','2023-09-06 11:00:45'),(7503,3738,3708,'2023-09-06 11:00:45','2023-09-06 11:00:45'),(7503,3739,3731,'2023-09-06 11:00:45','2023-09-06 11:00:45'),(7503,3739,3730,'2023-09-06 11:00:45','2023-09-06 11:00:45'),(7503,3739,3733,'2023-09-06 11:00:45','2023-09-06 11:00:45'),(7503,3550,3597,'2023-09-06 14:42:23','2023-09-06 14:42:23'),(7503,3814,3800,'2023-10-04 14:23:57','2023-10-04 14:23:57'),(7503,3820,3842,'2023-10-04 14:23:57','2023-10-04 14:23:57');
INSERT INTO `syj_concepto_asoc_cant` VALUES (7503,3820,3843,'2023-10-04 14:23:57','2023-10-04 14:23:57'),(7503,3820,3844,'2023-10-04 14:23:57','2023-10-04 14:23:57'),(7503,3820,3794,'2023-10-04 14:23:57','2023-10-04 14:23:57'),(7503,3820,3793,'2023-10-04 14:23:57','2023-10-04 14:23:57'),(7503,3820,3846,'2023-10-04 14:23:57','2023-10-04 14:23:57'),(7503,3820,3805,'2023-10-04 14:23:57','2023-10-04 14:23:57'),(7503,3821,3855,'2023-10-04 14:23:57','2023-10-04 14:23:57'),(7503,3822,3855,'2023-10-04 14:23:58','2023-10-04 14:23:58'),(7503,3823,3793,'2023-10-04 14:23:58','2023-10-04 14:23:58'),(7503,3824,3816,'2023-10-04 14:23:58','2023-10-04 14:23:58'),(7503,3824,3815,'2023-10-04 14:23:58','2023-10-04 14:23:58'),(7503,3824,3818,'2023-10-04 14:23:58','2023-10-04 14:23:58'),(7503,3899,3885,'2025-04-02 12:05:50','2025-04-02 12:05:50'),(7503,3906,3941,'2025-04-02 12:05:50','2025-04-02 12:05:50'),(7503,3907,3941,'2025-04-02 12:05:51','2025-04-02 12:05:51'),(7503,3908,3886,'2025-04-02 12:05:51','2025-04-02 12:05:51'),(7503,3909,3901,'2025-04-02 12:05:51','2025-04-02 12:05:51'),(7503,3909,3900,'2025-04-02 12:05:51','2025-04-02 12:05:51'),(7503,3909,3903,'2025-04-02 12:05:51','2025-04-02 12:05:51'),(7503,3905,3927,'2025-07-03 19:11:51','2025-07-03 19:11:51'),(7503,3905,3928,'2025-07-03 19:11:51','2025-07-03 19:11:51'),(7503,3905,3929,'2025-07-03 19:11:51','2025-07-03 19:11:51'),(7503,3905,3879,'2025-07-03 19:11:51','2025-07-03 19:11:51'),(7503,3905,3886,'2025-07-03 19:11:51','2025-07-03 19:11:51'),(7503,3905,3931,'2025-07-03 19:11:51','2025-07-03 19:11:51'),(7503,3905,3890,'2025-07-03 19:11:51','2025-07-03 19:11:51'),(7503,3984,3970,'2025-10-31 14:11:01','2025-10-31 14:11:01'),(7503,3990,4012,'2025-10-31 14:11:01','2025-10-31 14:11:01'),(7503,3990,4013,'2025-10-31 14:11:01','2025-10-31 14:11:01'),(7503,3990,4014,'2025-10-31 14:11:01','2025-10-31 14:11:01'),(7503,3990,3964,'2025-10-31 14:11:01','2025-10-31 14:11:01'),(7503,3990,3963,'2025-10-31 14:11:01','2025-10-31 14:11:01'),(7503,3990,4016,'2025-10-31 14:11:01','2025-10-31 14:11:01'),(7503,3990,3975,'2025-10-31 14:11:01','2025-10-31 14:11:01'),(7503,3991,4025,'2025-10-31 14:11:01','2025-10-31 14:11:01'),(7503,3992,4025,'2025-10-31 14:11:01','2025-10-31 14:11:01'),(7503,3993,3963,'2025-10-31 14:11:01','2025-10-31 14:11:01'),(7503,3994,3986,'2025-10-31 14:11:01','2025-10-31 14:11:01'),(7503,3994,3985,'2025-10-31 14:11:01','2025-10-31 14:11:01'),(7503,3994,3988,'2025-10-31 14:11:01','2025-10-31 14:11:01');

--
