-- Dumping data for table `dc_ordenes_facturada`
--


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

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

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


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

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

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

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

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

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

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


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

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

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


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

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

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

INSERT INTO `dc_ordenes_tipos` VALUES (1,NULL,'ORDEN DE COMPRAS',NULL,1,NULL,'2023-02-16 08:53:03',NULL),(2,NULL,'ORDEN DE VENTAS',NULL,1,NULL,'2023-02-16 08:53:03',NULL),(3,NULL,'PRESUPUESTO',NULL,1,NULL,NULL,NULL),(4,NULL,'REQUERIMIENTO',NULL,1,NULL,NULL,NULL),(5,NULL,'REMITO DE INGRESO',NULL,1,NULL,'2023-06-12 23:30:41',NULL),(6,NULL,'REMITO DE EGRESO',NULL,1,NULL,NULL,NULL),(7,NULL,'REMITO INTERNO',NULL,1,NULL,NULL,NULL),(8,NULL,'REMITO DE INGRESO','Es lo mismo que un remito de ingreso, \n        pero los productosa ingresar provienen de una Orden de Compra',1,NULL,NULL,NULL),(9,NULL,'REMITO DE SERVICIO','Es un remito de Ingreso de un servicio que se\n        asigna directo a una OT',1,NULL,NULL,NULL),(10,NULL,'ORDEN DE PAGO',NULL,1,'2023-09-28 16:32:51','2023-09-28 16:32:51',NULL),(11,NULL,'ANULACION REQUERIMIENTOS',NULL,1,'2024-04-02 23:14:35','2024-04-02 23:14:35',NULL),(12,NULL,'ANULACION COMPRAS PRODUCTOS',NULL,1,'2024-04-02 23:14:35','2024-04-02 23:14:35',NULL),(13,NULL,'ANULACION COMPRAS SERVICIOS',NULL,1,'2024-04-02 23:14:35','2024-04-02 23:14:35',NULL),(14,NULL,'REMITO DE GASTO',NULL,1,'2024-05-07 20:21:25','2024-05-07 20:21:25',NULL),(15,NULL,'COTIZACIONES',NULL,1,'2024-06-26 08:15:45','2024-06-26 08:15:45',NULL);

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

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

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


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

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

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


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

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

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

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

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

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

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


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

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

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


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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

INSERT INTO `fact_elec_puntos_venta` VALUES (1,8522,'Lisandro de la Torre 277 5°B','2023-02-28 13:56:45','2023-02-28 14:01:39',40718,'1','1408',22,'img//20111111112/logo_punto_venta_0001.png',1,NULL),(3,9042,'Suarez 1698 9 A','2023-05-29 23:38:32','2023-07-05 22:41:51',40815,'00004','1288',22,'img//27283828110/logo_punto_venta_00004.png',1,NULL),(6,9042,'SUAREZ 1698 9 A','2023-08-05 13:50:27','2023-08-05 13:51:04',40890,'00002','1288',22,NULL,1,NULL),(7,9042,'2 BIS 76 - MAR DEL PLATA','2023-09-05 17:07:45','2023-09-05 17:10:02',40879,'00002','7600',23,NULL,1,NULL),(8,9042,'Direccion','2023-09-06 00:53:59','2023-09-06 00:53:59',40889,NULL,NULL,22,NULL,1,NULL);

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

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

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

INSERT INTO `fact_elec_receipt_details` VALUES (1,9042,1,'Servicios profesionales',1.00,'8',20700.00,20700.00,0.00,0.00,0.00,7,0.00,20700.00,'2023-06-03 23:15:37','2023-06-03 23:15:37','1',NULL),(2,9042,2,'Servicios profesionales abril 2023',1.00,'8',20700.00,20700.00,0.00,0.00,0.00,7,0.00,20700.00,'2023-06-03 23:24:56','2023-06-03 23:24:56','1',NULL),(3,9042,2,'Servicios profesionales certificacion de ingresos BCRA',1.00,'8',10000.00,10000.00,0.00,0.00,0.00,7,0.00,10000.00,'2023-06-03 23:24:56','2023-06-03 23:24:56','2',NULL),(4,9042,2,'Servicios profesionales Priucs ',1.00,'8',23000.00,23000.00,0.00,0.00,0.00,7,0.00,23000.00,'2023-06-03 23:24:56','2023-06-03 23:24:56','3',NULL),(5,9042,3,'Servicios profesionales por certificacion de ingresos 12-22 a 05-23',1.00,'8',10000.00,10000.00,0.00,0.00,0.00,7,0.00,10000.00,'2023-06-09 12:55:12','2023-06-09 12:55:12','1',NULL),(6,9042,3,'Gastos de certificacion ',1.00,'8',3600.00,3600.00,0.00,0.00,0.00,7,0.00,3600.00,'2023-06-09 12:55:12','2023-06-09 12:55:12','2',NULL),(7,9042,4,'Servicios profesionales plan monotributo mayo 2023',1.00,'8',5850.00,5850.00,0.00,0.00,0.00,7,0.00,5850.00,'2023-06-09 13:04:36','2023-06-09 13:04:36','1',NULL),(8,9042,5,'Servicios profesionales plan monotributo mayo 2023',1.00,'8',7475.00,7475.00,0.00,0.00,0.00,7,0.00,7475.00,'2023-06-12 17:31:38','2023-06-12 17:31:38','1',NULL),(9,9042,6,'Servicios profesionales plan monotributo Mayo 2023',1.00,'7',13000.00,13000.00,0.00,0.00,0.00,7,0.00,13000.00,'2023-06-14 21:06:25','2023-06-14 21:06:25','1',NULL),(10,9042,7,'Servicios profesionales mes de mayo 2023',1.00,'8',56000.00,56000.00,0.00,0.00,0.00,7,0.00,56000.00,'2023-06-16 01:15:17','2023-06-16 01:15:17','1',NULL),(11,9042,8,'Servicios profesionales plan monotributo Mayo 2023',1.00,'8',12675.00,12675.00,0.00,0.00,0.00,7,0.00,12675.00,'2023-06-18 00:04:54','2023-06-18 00:04:54','1',NULL),(12,9042,9,'Servicios profesionales Mayo 2023',1.00,'8',12675.00,12675.00,0.00,0.00,0.00,7,0.00,12675.00,'2023-06-18 00:09:18','2023-06-18 00:09:18','1',NULL),(13,9042,10,'Servicios profesionales plan monotributo Mayo 2023',1.00,'8',15380.00,15380.00,0.00,0.00,0.00,7,0.00,15380.00,'2023-06-20 16:20:04','2023-06-20 16:20:04','1',NULL),(14,9042,11,'Servicios profesionales plan monotributo 05 2023',1.00,'8',15400.00,15400.00,0.00,0.00,0.00,7,0.00,15400.00,'2023-06-20 16:44:51','2023-06-20 16:44:51','1',NULL),(15,9042,12,'Servicios profesionales plan monotributo mayo 2023',1.00,'8',12285.00,12285.00,0.00,0.00,0.00,7,0.00,12285.00,'2023-06-20 17:02:22','2023-06-20 17:02:22','1',NULL),(16,9042,13,'Servicios profesionales DDJJ anual de Ingresos brutos 2022',1.00,'8',9000.00,9000.00,0.00,0.00,0.00,7,0.00,9000.00,'2023-06-21 01:02:12','2023-06-21 01:02:12','1',NULL),(17,9042,14,'Servicios profesionales plan monotriibuto 05 2023',1.00,'8',14700.00,14700.00,0.00,0.00,0.00,7,0.00,14700.00,'2023-06-21 01:24:49','2023-06-21 01:24:49','1',NULL),(18,9042,15,'Servicios profesionales DDJJ de convenio multilateral 2022',1.00,'8',15000.00,15000.00,0.00,0.00,0.00,7,0.00,15000.00,'2023-06-22 00:36:37','2023-06-22 00:36:37','1',NULL),(19,9042,15,'Servicios profesionales Mayo 2023',1.00,'8',18100.00,18100.00,0.00,0.00,0.00,7,0.00,18100.00,'2023-06-22 00:36:37','2023-06-22 00:36:37','2',NULL),(20,9042,16,'Servicios profesionales plan monotributo mayo 2023',1.00,'8',7150.00,7150.00,0.00,0.00,0.00,7,0.00,7150.00,'2023-06-22 02:16:38','2023-06-22 02:16:38','1',NULL),(21,9042,16,'Servicios profesionales DDJJ Anual Convenio Multilateral 2022',1.00,'8',10000.00,10000.00,0.00,0.00,0.00,7,0.00,10000.00,'2023-06-22 02:16:38','2023-06-22 02:16:38','2',NULL),(22,9042,17,'Servicios profesionales Mayo 2023',1.00,'8',23310.00,23310.00,0.00,0.00,0.00,7,0.00,23310.00,'2023-06-23 00:28:54','2023-06-23 00:28:54','1',NULL),(23,9042,17,'Servicios profesionales DDJJ Anual 2022 Convenio multilateral',1.00,'8',15000.00,15000.00,0.00,0.00,0.00,7,0.00,15000.00,'2023-06-23 00:28:54','2023-06-23 00:28:54','2',NULL);
INSERT INTO `fact_elec_receipt_details` VALUES (24,9042,18,'Anulacion factura 0004-0000809',1.00,'8',12675.00,12675.00,0.00,0.00,0.00,7,0.00,12675.00,'2023-06-23 16:27:43','2023-06-23 16:27:43','1',NULL),(25,9042,19,'Servicios profesionales mayo 2023',1.00,'8',16100.00,16100.00,0.00,0.00,0.00,7,0.00,16100.00,'2023-06-23 16:29:28','2023-06-23 16:29:28','1',NULL),(26,9042,20,'Servicios profesionales mayo 2023',1.00,'8',34100.00,34100.00,0.00,0.00,0.00,7,0.00,34100.00,'2023-06-23 16:31:49','2023-06-23 16:31:49','1',NULL),(27,9042,21,'Servicios profesionales Mayo 2023',1.00,'8',25900.00,25900.00,0.00,0.00,0.00,7,0.00,25900.00,'2023-06-23 17:02:59','2023-06-23 17:02:59','1',NULL),(28,9042,22,'Servicios profesionales DDJJ Convenio multilateral 2022',1.00,'8',10000.00,10000.00,0.00,0.00,0.00,7,0.00,10000.00,'2023-06-23 17:04:45','2023-06-23 17:04:45','1',NULL),(29,9042,23,'Servicios profesionales mayo 2023',1.00,'8',12600.00,12600.00,0.00,0.00,0.00,7,0.00,12600.00,'2023-06-28 00:48:13','2023-06-28 00:48:13','1',NULL),(32,9042,25,'Servicios profesionales Abril 2023',1.00,'8',36627.50,36627.50,0.00,0.00,0.00,7,0.00,36627.50,'2023-06-28 18:28:04','2023-06-28 18:28:04','1',NULL),(33,9042,25,'Servicios profesionales Mayo 2023',1.00,'8',36627.50,36627.50,0.00,0.00,0.00,7,0.00,36627.50,'2023-06-28 18:28:04','2023-06-28 18:28:04','1',NULL),(34,9042,26,'Servicios profesionales DDJJ Ganancias 2022',1.00,'8',40000.00,40000.00,0.00,0.00,0.00,7,0.00,40000.00,'2023-07-04 14:20:04','2023-07-04 14:20:04','1',NULL),(35,9042,26,'Servicios profesionales DDJJ Ingresos brutos 2022',1.00,'8',15000.00,15000.00,0.00,0.00,0.00,7,0.00,15000.00,'2023-07-04 14:20:04','2023-07-04 14:20:04','2',NULL),(36,9042,27,'Servicios profesionales DDJJ Impuesto a las ganancias 2022',1.00,'8',30000.00,30000.00,0.00,0.00,0.00,7,0.00,30000.00,'2023-07-04 14:22:47','2023-07-04 14:22:47','1',NULL),(37,9042,28,'Servicios profesionales DDJJ Anual convenio multilateral 2022',1.00,'8',14000.00,14000.00,0.00,0.00,0.00,7,0.00,14000.00,'2023-07-05 10:48:51','2023-07-05 10:48:51','1',NULL),(38,9042,28,'Servicios profesioanles plan monotributo Mayo 2022',1.00,'8',20215.00,20215.00,0.00,0.00,0.00,7,0.00,20215.00,'2023-07-05 10:48:51','2023-07-05 10:48:51','2',NULL),(39,9042,29,'Servicios profesionales DDJJ Convenio multilateral anual 2022',1.00,'8',14000.00,14000.00,0.00,0.00,0.00,7,0.00,14000.00,'2023-07-05 10:50:42','2023-07-05 10:50:42','1',NULL),(40,9042,30,'Servicios profesionales DDJJ Impuesto a las ganancias 2022',1.00,'8',30000.00,30000.00,0.00,0.00,0.00,7,0.00,30000.00,'2023-07-05 22:45:36','2023-07-05 22:45:36','1',NULL),(41,9042,31,'Servicios profesionales declaracion juarada anual Ganancias, Bienes personale e ingresos brutos 2022',1.00,'8',36000.00,36000.00,0.00,0.00,0.00,7,0.00,36000.00,'2023-07-05 22:47:25','2023-07-05 22:47:25','1',NULL),(42,9042,32,'Servicios profesionales DDJJ Anual 2022 Ganancias, Bienes personales e ingresos brutos',1.00,'8',36000.00,36000.00,0.00,0.00,0.00,7,0.00,36000.00,'2023-07-05 22:48:37','2023-07-05 22:48:37','1',NULL),(43,9042,33,'Servicios profesionales DDJJ Convenio multilateral 2022',1.00,'8',10000.00,10000.00,0.00,0.00,0.00,7,0.00,10000.00,'2023-07-05 22:51:54','2023-07-05 22:51:54','1',NULL),(44,9042,33,'Servicios profesioanles DDJJ Ganancias 2022',1.00,'8',24000.00,24000.00,0.00,0.00,0.00,7,0.00,24000.00,'2023-07-05 22:51:54','2023-07-05 22:51:54','1',NULL),(45,9042,33,'Servicios profesioanles DDJJ Ganancias 2021',1.00,'8',24000.00,24000.00,0.00,0.00,0.00,7,0.00,24000.00,'2023-07-05 22:51:54','2023-07-05 22:51:54','3',NULL),(46,9042,34,'Servicios profesionales junio 2023',1.00,'8',56000.00,56000.00,0.00,0.00,0.00,7,0.00,56000.00,'2023-07-10 16:15:51','2023-07-10 16:15:51','1',NULL),(47,9042,35,'Servicios profesionales plan monotributo junio 2023',1.00,'8',8450.00,8450.00,0.00,0.00,0.00,7,0.00,8450.00,'2023-07-10 20:41:17','2023-07-10 20:41:17','1',NULL);
INSERT INTO `fact_elec_receipt_details` VALUES (48,9042,36,'Servicios profesionales plan monotributo 06 2023',1.00,'8',7475.00,7475.00,0.00,0.00,0.00,7,0.00,7475.00,'2023-07-11 13:31:49','2023-07-11 13:31:49','1',NULL),(49,9042,37,'Servicios profesionales Plan monotributo Junio 2023',1.00,'8',12740.00,12740.00,0.00,0.00,0.00,7,0.00,12740.00,'2023-07-11 23:37:24','2023-07-11 23:37:24','1',NULL),(50,9042,38,'Servicios profesionales Mayo 2023',1.00,'8',37200.00,37200.00,0.00,0.00,0.00,7,0.00,37200.00,'2023-07-12 19:04:53','2023-07-12 19:04:53','1',NULL),(51,9042,39,'Servicios profesioanles DDJJ Convenio multilateral 2022',1.00,'8',15000.00,15000.00,0.00,0.00,0.00,7,0.00,15000.00,'2023-07-12 19:07:48','2023-07-12 19:07:48','1',NULL),(52,9042,39,'Servicios profesionales DDJJ Impuesto a las Ganancias 2022',1.00,'8',30000.00,30000.00,0.00,0.00,0.00,7,0.00,30000.00,'2023-07-12 19:07:48','2023-07-12 19:07:48','2',NULL),(53,9042,40,'Servicios profesionales DDJJ convenio multilateral 2022 Balma ',1.00,'8',15000.00,15000.00,0.00,0.00,0.00,7,0.00,15000.00,'2023-07-14 18:35:51','2023-07-14 18:35:51','1',NULL),(54,9042,41,'Servicios profesionales plan monotributo mayo 2023',1.00,'8',21500.00,21500.00,0.00,0.00,0.00,7,0.00,21500.00,'2023-07-14 18:40:53','2023-07-14 18:40:53','1',NULL),(55,9042,42,'Servicios profesionales Plan monotributo 06 2023',1.00,'8',15400.00,15400.00,0.00,0.00,0.00,7,0.00,15400.00,'2023-07-16 13:21:37','2023-07-16 13:21:37','1',NULL),(56,9042,43,'Servicios profesionales plan monotributo 06 2023',1.00,'8',15400.00,15400.00,0.00,0.00,0.00,7,0.00,15400.00,'2023-07-16 13:55:20','2023-07-16 13:55:20','1',NULL),(57,9042,44,'Servicios profesionales plan monotributo 06 2023',1.00,'8',14700.00,14700.00,0.00,0.00,0.00,7,0.00,14700.00,'2023-07-17 15:14:43','2023-07-17 15:14:43','1',NULL),(58,9042,44,'Servicios profesionales facturacion mayo 2023',1.00,'8',6000.00,6000.00,0.00,0.00,0.00,7,0.00,6000.00,'2023-07-17 15:14:43','2023-07-17 15:14:43','1',NULL),(59,9042,45,'Servicios profesionales recategorizacion monotributo 06 2023',1.00,'8',7500.00,7500.00,0.00,0.00,0.00,7,0.00,7500.00,'2023-07-18 13:41:25','2023-07-18 13:41:25','1',NULL),(60,9042,46,'Servicios profesionales recategorizacion monotributo 06 2023',1.00,'8',9000.00,9000.00,0.00,0.00,0.00,7,0.00,9000.00,'2023-07-18 15:02:21','2023-07-18 15:02:21','1',NULL),(61,9042,47,'Servicios profesionales recategorizacion monotributo 06 2023',1.00,'8',9000.00,9000.00,0.00,0.00,0.00,7,0.00,9000.00,'2023-07-18 15:19:11','2023-07-18 15:19:11','1',NULL),(62,9042,48,'Servicios profesionales plan monotributo 06 2023',1.00,'8',7150.00,7150.00,0.00,0.00,0.00,7,0.00,7150.00,'2023-07-20 00:39:37','2023-07-20 00:39:37','1',NULL),(63,9042,49,'Servicios profesionales Junio 2023',1.00,'8',23310.00,23310.00,0.00,0.00,0.00,7,0.00,23310.00,'2023-07-24 13:17:54','2023-07-24 13:17:54','1',NULL),(64,9042,50,'Servicios profesionales Junio 2023',1.00,'8',12600.00,12600.00,0.00,0.00,0.00,7,0.00,12600.00,'2023-07-25 02:18:16','2023-07-25 02:18:16','1',NULL),(65,9042,51,'Anulacion FC 00004- 00000848',1.00,'8',12600.00,12600.00,0.00,0.00,0.00,7,0.00,12600.00,'2023-07-25 02:32:19','2023-07-25 02:32:19','1',NULL),(66,9042,52,'Servicios profesionales Junio 2023',1.00,'8',16800.00,16800.00,0.00,0.00,0.00,7,0.00,16800.00,'2023-07-25 02:37:22','2023-07-25 02:37:22','1',NULL),(67,9042,52,'Servicios profesionales declaracion jurarada de ganancias e ingresos brutos 2022',1.00,'8',21000.00,21000.00,0.00,0.00,0.00,7,0.00,21000.00,'2023-07-25 02:37:22','2023-07-25 02:37:22','1',NULL),(68,9042,53,'Servicios profesionales junio  2023',1.00,'8',36627.50,36627.50,0.00,0.00,0.00,7,0.00,36627.50,'2023-07-25 16:30:57','2023-07-25 16:30:57','1',NULL),(69,9042,54,'Servicios profesionales plan monotributo 06 2023',1.00,'8',5850.00,5850.00,0.00,0.00,0.00,7,0.00,5850.00,'2023-07-25 22:43:07','2023-07-25 22:43:07','1',NULL),(70,9042,55,'Servicios profesionales plan monotributo 06 2023',1.00,'8',12285.00,12285.00,0.00,0.00,0.00,7,0.00,12285.00,'2023-07-25 23:28:18','2023-07-25 23:28:18','1',NULL);
INSERT INTO `fact_elec_receipt_details` VALUES (71,9042,56,'Servicios profesionales Junio 2023',1.00,'8',16100.00,16100.00,0.00,0.00,0.00,7,0.00,16100.00,'2023-07-26 21:36:04','2023-07-26 21:36:04','1',NULL),(72,9042,57,'Servicios profesionales Junio 2023',1.00,'8',34100.00,34100.00,0.00,0.00,0.00,7,0.00,34100.00,'2023-07-26 21:37:52','2023-07-26 21:37:52','1',NULL),(73,9042,58,'Servicios profesionales certificacion origen de fondos adquisicion de rodado',1.00,'8',10000.00,10000.00,0.00,0.00,0.00,7,0.00,10000.00,'2023-08-01 20:45:23','2023-08-01 20:45:23','1',NULL),(74,9042,58,'Aranceles Consejo de ciencias economicas CABA',1.00,'8',4600.00,4600.00,0.00,0.00,0.00,7,0.00,4600.00,'2023-08-01 20:45:23','2023-08-01 20:45:23','2',NULL),(76,9042,60,'Servicios profesionales alta de monotributo y seguimiento Mayo 2023',1.00,'8',40000.00,40000.00,0.00,0.00,0.00,7,0.00,40000.00,'2023-08-02 02:44:10','2023-08-02 02:44:10','1',NULL),(77,9042,61,'Servicios profesionales plan monotributo Junio 2023',1.00,'8',20000.00,20000.00,0.00,0.00,0.00,7,0.00,20000.00,'2023-08-02 02:46:10','2023-08-02 02:46:10','1',NULL),(78,9042,61,'Servicios profesionales plan monotributo julio 2023',1.00,'8',20000.00,20000.00,0.00,0.00,0.00,7,0.00,20000.00,'2023-08-02 02:46:10','2023-08-02 02:46:10','1',NULL),(79,9042,62,'Servicios profesionales plan monotributo junio 2023',1.00,'8',19000.00,19000.00,0.00,0.00,0.00,7,0.00,19000.00,'2023-08-02 04:50:15','2023-08-02 04:50:15','1',NULL),(80,9042,62,'Servicios profesionales plan monotributo julio 2023',1.00,'8',19000.00,19000.00,0.00,0.00,0.00,7,0.00,19000.00,'2023-08-02 04:50:15','2023-08-02 04:50:15','2',NULL),(81,9042,63,'Servicios profesionales Julio 2023',1.00,'8',36627.50,36627.50,0.00,0.00,0.00,7,0.00,36627.50,'2023-08-03 16:04:27','2023-08-03 16:04:27','1',NULL),(82,9042,64,'Servicios profesionales Junio 2023',1.00,'8',18100.00,18100.00,0.00,0.00,0.00,7,0.00,18100.00,'2023-08-08 22:28:41','2023-08-08 22:28:41','1',NULL),(85,9042,67,'Servicios profesionales Junio 2023',1.00,'8',25900.00,25900.00,0.00,0.00,0.00,7,0.00,25900.00,'2023-08-08 22:41:43','2023-08-08 22:41:43','1',NULL),(86,9042,68,'Servicios profesionales plan monotributo julio 2023',1.00,'8',14770.00,14770.00,0.00,0.00,0.00,7,0.00,14770.00,'2023-08-08 23:49:28','2023-08-08 23:49:28','1',NULL),(87,9042,69,'Servicios profesionales plan monotributo Julio 2023',1.00,'8',8450.00,8450.00,0.00,0.00,0.00,7,0.00,8450.00,'2023-08-11 13:30:31','2023-08-11 13:30:31','1',NULL),(88,9042,70,'Servicios profesionales Alta monotributo, facturacion y planificacion situacion fiscal. Julio 2023',1.00,'8',12000.00,12000.00,0.00,0.00,0.00,7,0.00,12000.00,'2023-08-11 13:33:19','2023-08-11 13:33:19','1',NULL),(89,9042,71,'Servicios profesionales julio 2023',1.00,'8',10395.00,10395.00,0.00,0.00,0.00,7,0.00,10395.00,'2023-08-15 22:36:09','2023-08-15 22:36:09','1',NULL),(90,9042,72,'Servicios profesionales plan monotributo Julio 2023',1.00,'8',12740.00,12740.00,0.00,0.00,0.00,7,0.00,12740.00,'2023-08-15 22:57:32','2023-08-15 22:57:32','1',NULL),(91,9042,73,'Servicios profesionales plan monotributo julio 2023',1.00,'8',7475.00,7475.00,0.00,0.00,0.00,7,0.00,7475.00,'2023-08-15 23:44:13','2023-08-15 23:44:13','1',NULL),(92,9042,74,'Servicios profesionales Julio 2023',1.00,'8',25000.00,25000.00,0.00,0.00,0.00,7,0.00,25000.00,'2023-08-16 22:17:11','2023-08-16 22:17:11','1',NULL),(93,9042,75,'Servicios profesionales Julio 2023',1.00,'8',7774.00,7774.00,0.00,0.00,0.00,7,0.00,7774.00,'2023-08-16 22:52:34','2023-08-16 22:52:34','1',NULL),(94,9042,75,'Servicios profesionales Declaracion jurada anual de Convenio multilateral 2022',1.00,'8',7500.00,7500.00,0.00,0.00,0.00,7,0.00,7500.00,'2023-08-16 22:52:34','2023-08-16 22:52:34','1',NULL),(95,9042,76,'Servicio profesional plan monotributo Julio 2023',1.00,'8',20215.00,20215.00,0.00,0.00,0.00,7,0.00,20215.00,'2023-08-17 01:18:19','2023-08-17 01:18:19','1',NULL);
INSERT INTO `fact_elec_receipt_details` VALUES (96,9042,77,'Servicios profesionales plan monotributo Julio 2023',1.00,'8',7150.00,7150.00,0.00,0.00,0.00,7,0.00,7150.00,'2023-08-17 20:02:17','2023-08-17 20:02:17','1',NULL),(97,9042,77,'Servicios profesionales emision COTI julio 2023',1.00,'8',5000.00,5000.00,0.00,0.00,0.00,7,0.00,5000.00,'2023-08-17 20:02:17','2023-08-17 20:02:17','1',NULL),(98,9042,78,'Servicios profesionales julio 2023',1.00,'8',56000.00,56000.00,0.00,0.00,0.00,7,0.00,56000.00,'2023-08-17 22:42:55','2023-08-17 22:42:55','1',NULL),(99,9042,79,'Servicios profesionales plan monotributo julio 2023',1.00,'8',12285.00,12285.00,0.00,0.00,0.00,7,0.00,12285.00,'2023-08-18 00:02:33','2023-08-18 00:02:33','1',NULL),(100,9042,80,'Servicios profesionales Julio 2023',1.00,'8',16100.00,16100.00,0.00,0.00,0.00,7,0.00,16100.00,'2023-08-23 22:36:14','2023-08-23 22:36:14','1',NULL),(101,9042,81,'Servicios profesionales plan monotributo julio 2023',1.00,'8',12675.00,12675.00,0.00,0.00,0.00,7,0.00,12675.00,'2023-08-23 23:00:24','2023-08-23 23:00:24','1',NULL),(102,9042,82,'Servicios profesionales rectificativas Cargas sociales de marzo 2023 a Julio 2023',5.00,'8',10000.00,50000.00,0.00,0.00,0.00,7,0.00,50000.00,'2023-08-23 23:26:39','2023-08-23 23:26:39','1',NULL),(105,9042,84,'Servicios profesionales plan monotributo julio 2023',1.00,'8',15000.00,15000.00,0.00,0.00,0.00,7,0.00,15000.00,'2023-08-24 02:38:36','2023-08-24 02:38:36','1',NULL),(106,9042,84,'Servicios profesionales gestion Julio 2023',1.00,'8',7500.00,7500.00,0.00,0.00,0.00,7,0.00,7500.00,'2023-08-24 02:38:36','2023-08-24 02:38:36','2',NULL),(107,9042,85,'Servicios profesionales certificacion de ingresos prestamo ANR',1.00,'8',14000.00,14000.00,0.00,0.00,0.00,7,0.00,14000.00,'2023-08-24 03:18:45','2023-08-24 03:18:45','1',NULL),(108,9042,86,'Servicios profesionales julio 2023',1.00,'8',18100.00,18100.00,0.00,0.00,0.00,7,0.00,18100.00,'2023-08-24 20:48:05','2023-08-24 20:48:05','1',NULL),(109,9042,87,'Servicios profesionales Julio 2023',1.00,'8',23310.00,23310.00,0.00,0.00,0.00,7,0.00,23310.00,'2023-08-30 15:35:02','2023-08-30 15:35:02','1',NULL),(110,9042,88,'Servicios profesionales plan monotributo agosto 2023',1.00,'8',7475.00,7475.00,0.00,0.00,0.00,7,0.00,7475.00,'2023-09-17 13:52:29','2023-09-17 13:52:29','1',NULL),(111,9042,89,'Servicios profesionales agosto 2023',1.00,'8',12740.00,12740.00,0.00,0.00,0.00,7,0.00,12740.00,'2023-09-17 20:41:01','2023-09-17 20:41:01','1',NULL),(112,9042,90,'Servicios profesionales agosto 2023',1.00,'8',13500.00,13500.00,0.00,0.00,0.00,7,0.00,13500.00,'2023-09-23 03:21:11','2023-09-23 03:21:11','1',NULL),(113,9042,91,'Servicios profesionales agosto 2023',1.00,'8',31250.00,31250.00,0.00,0.00,0.00,7,0.00,31250.00,'2023-09-23 03:24:01','2023-09-23 03:24:01','1',NULL),(114,9042,92,'Servcios profesionales Agosto 2023',1.00,'8',20000.00,20000.00,0.00,0.00,0.00,7,0.00,20000.00,'2023-09-23 03:45:08','2023-09-23 03:45:08','1',NULL),(115,9042,93,'Servicios profesionales agosto 2023',1.00,'8',23530.00,23530.00,0.00,0.00,0.00,7,0.00,23530.00,'2023-09-23 03:48:21','2023-09-23 03:48:21','1',NULL),(116,9042,94,'Servicios profesionales agosto 2023',1.00,'8',40850.00,40850.00,0.00,0.00,0.00,7,0.00,40850.00,'2023-09-23 03:50:30','2023-09-23 03:50:30','1',NULL),(117,9042,95,'Servicios profesionales Agosto 2023',1.00,'8',67200.00,67200.00,0.00,0.00,0.00,7,0.00,67200.00,'2023-09-23 03:52:28','2023-09-23 03:52:28','1',NULL),(118,9042,96,'Servicios profesionales agosto 2023',1.00,'8',44600.00,44600.00,0.00,0.00,0.00,7,0.00,44600.00,'2023-09-23 03:55:11','2023-09-23 03:55:11','1',NULL),(119,9042,97,'Servicios profesionales agosto 2023',1.00,'8',30300.00,30300.00,0.00,0.00,0.00,7,0.00,30300.00,'2023-09-23 04:02:20','2023-09-23 04:02:20','1',NULL),(120,9042,97,'Certificacion contable Banco Galicia',1.00,'8',17000.00,17000.00,0.00,0.00,0.00,7,0.00,17000.00,'2023-09-23 04:02:20','2023-09-23 04:02:20','1',NULL);
INSERT INTO `fact_elec_receipt_details` VALUES (121,9042,97,'Arancel oblea Consejo de ciencias economicas para certificacion Banco Galicia',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-09-23 04:02:20','2023-09-23 04:02:20','1',NULL),(122,9042,98,'Servicios profesionales Agosto 2023',1.00,'8',20000.00,20000.00,0.00,0.00,0.00,7,0.00,20000.00,'2023-09-23 04:04:05','2023-09-23 04:04:05','1',NULL),(123,9042,99,'Servicios profesionales agosto 2023',1.00,'8',36627.50,36627.50,0.00,0.00,0.00,7,0.00,36627.50,'2023-09-23 04:05:59','2023-09-23 04:05:59','1',NULL),(126,9042,101,'Servicios profesionales presentacion Ganancias 2022',1.00,'8',20000.00,20000.00,0.00,0.00,0.00,7,0.00,20000.00,'2023-09-25 19:22:38','2023-09-25 19:22:38','1',NULL),(127,9042,101,'Servicios profesionales Junlio y agosto 2023',2.00,'8',16500.00,33000.00,0.00,0.00,0.00,7,0.00,33000.00,'2023-09-25 19:22:38','2023-09-25 19:22:38','2',NULL),(128,9042,102,'Servicios profesionales plan monotributo julio y agosto 2023',2.00,'8',7500.00,15000.00,0.00,0.00,0.00,7,0.00,15000.00,'2023-09-25 19:57:04','2023-09-25 19:57:04','1',NULL),(129,9042,103,'Servicios profesionales plan monotributo julio y agosto 2023',2.00,'8',7500.00,15000.00,0.00,0.00,0.00,7,0.00,15000.00,'2023-09-25 19:59:47','2023-09-25 19:59:47','1',NULL),(130,9042,104,'Servicios profesionales rectificativas SUSS de marzo a julio 2023',5.00,'8',12500.00,62500.00,0.00,0.00,0.00,7,0.00,62500.00,'2023-09-25 20:34:21','2023-09-25 20:34:21','1',NULL),(131,9042,105,'Servicios profesionales baja de personal domestico septiembre 2023',1.00,'8',6500.00,6500.00,0.00,0.00,0.00,7,0.00,6500.00,'2023-09-25 22:20:26','2023-09-25 22:20:26','1',NULL),(132,9042,105,'Servicios profesioanales consulta septiembre  1/09/2023',1.00,'8',7500.00,7500.00,0.00,0.00,0.00,7,0.00,7500.00,'2023-09-25 22:20:26','2023-09-25 22:20:26','1',NULL),(135,9042,108,'Servicios profesionales plan monotributo agosto 2023',1.00,'8',20215.00,20215.00,0.00,0.00,0.00,7,0.00,20215.00,'2023-09-29 13:10:22','2023-09-29 13:10:22','1',NULL),(137,9042,110,'Servicios profesioanles plan monotributo agosto 2023',1.00,'8',18500.00,18500.00,0.00,0.00,0.00,7,0.00,18500.00,'2023-09-30 00:58:09','2023-09-30 00:58:09','1',NULL),(138,9042,111,'Servicios profesionales plan monotributo agosto 2023',1.00,'8',18500.00,18500.00,0.00,0.00,0.00,7,0.00,18500.00,'2023-09-30 01:16:07','2023-09-30 01:16:07','1',NULL),(139,9042,112,'Servicios profesionales plan monotrbuto agosto 2023',1.00,'8',21500.00,21500.00,0.00,0.00,0.00,7,0.00,21500.00,'2023-09-30 22:32:20','2023-09-30 22:32:20','1',NULL),(140,9042,113,'Servicios profesionales plan monotributo Agosto 2023',1.00,'8',12500.00,12500.00,0.00,0.00,0.00,7,0.00,12500.00,'2023-09-30 22:35:07','2023-09-30 22:35:07','1',NULL),(141,9042,114,'Servicios profesionales gestion ',1.00,'8',7500.00,7500.00,0.00,0.00,0.00,7,0.00,7500.00,'2023-10-12 00:35:17','2023-10-12 00:35:17','1',NULL),(142,9042,115,'Servicios profesionales plan monotributo Septiembre 2023',1.00,'8',15400.00,15400.00,0.00,0.00,0.00,7,0.00,15400.00,'2023-10-15 01:34:33','2023-10-15 01:34:33','1',NULL),(143,9042,116,'Servicios profesionales plan monotributo septiembre 2023',1.00,'8',7475.00,7475.00,0.00,0.00,0.00,7,0.00,7475.00,'2023-10-19 23:38:50','2023-10-19 23:38:50','1',NULL),(144,9042,117,'Servicios profesionales septiembre 2023',1.00,'8',30300.00,30300.00,0.00,0.00,0.00,7,0.00,30300.00,'2023-10-20 21:16:01','2023-10-20 21:16:01','1',NULL),(145,9042,118,'Servicios profesionales septiembre 2023',1.00,'8',12740.00,12740.00,0.00,0.00,0.00,7,0.00,12740.00,'2023-10-22 20:02:01','2023-10-22 20:02:01','1',NULL),(146,9042,119,'Servicios profesionales septiembre 2023',1.00,'8',31250.00,31250.00,0.00,0.00,0.00,7,0.00,31250.00,'2023-10-22 21:08:46','2023-10-22 21:08:46','1',NULL),(147,9042,120,'Servicios profesionales septiembre 2023',1.00,'8',23530.00,23530.00,0.00,0.00,0.00,7,0.00,23530.00,'2023-10-23 13:21:32','2023-10-23 13:21:32','1',NULL);
INSERT INTO `fact_elec_receipt_details` VALUES (148,9042,121,'Servicios plan monotributo septiembre 2023',1.00,'8',21500.00,21500.00,0.00,0.00,0.00,7,0.00,21500.00,'2023-10-23 18:56:20','2023-10-23 18:56:20','1',NULL),(149,9042,122,'Servicios profesionales plan monotributo septiembre 2023',1.00,'8',14770.00,14770.00,0.00,0.00,0.00,7,0.00,14770.00,'2023-10-23 19:03:35','2023-10-23 19:03:35','1',NULL),(150,9042,123,'Servicios profesionales septiembre 2023',1.00,'8',67200.00,67200.00,0.00,0.00,0.00,7,0.00,67200.00,'2023-10-23 19:11:10','2023-10-23 19:11:10','1',NULL),(151,9042,124,'Servicos profesionales septiembre 2023',1.00,'8',16500.00,16500.00,0.00,0.00,0.00,7,0.00,16500.00,'2023-10-23 22:21:44','2023-10-23 22:21:44','1',NULL),(152,9042,125,'Servicios profesionales agosto y septiembre 2023',2.00,'8',12675.00,25350.00,0.00,0.00,0.00,7,0.00,25350.00,'2023-10-23 23:47:18','2023-10-23 23:47:18','1',NULL),(153,9042,126,'Servicios profesionales Septiembre 2023',1.00,'8',20000.00,20000.00,0.00,0.00,0.00,7,0.00,20000.00,'2023-10-24 20:32:44','2023-10-24 20:32:44','1',NULL),(154,9042,127,'Servicios profesionales septiembre 2023',1.00,'8',36627.50,36627.50,0.00,0.00,0.00,7,0.00,36627.50,'2023-10-24 21:09:50','2023-10-24 21:09:50','1',NULL),(155,9042,128,'Servicios profesionales plan monotributo agosto y septiembre 2023',2.00,'8',14700.00,29400.00,0.00,0.00,0.00,7,0.00,29400.00,'2023-10-29 20:55:58','2023-10-29 20:55:58','1',NULL),(157,9042,130,'Servicios profesionales plan monotributo Septiembre 2023',1.00,'8',25000.00,25000.00,0.00,0.00,0.00,7,0.00,25000.00,'2023-10-31 17:34:58','2023-10-31 17:34:58','1',NULL),(158,9042,131,'Servicios profesionales plan monotributo septiembre 2023',1.00,'8',25000.00,25000.00,0.00,0.00,0.00,7,0.00,25000.00,'2023-10-31 17:36:28','2023-10-31 17:36:28','1',NULL),(159,9042,132,'Servicios profesionales plan monotributo y gestion emprendimiento septiembre 2023',1.00,'8',40000.00,40000.00,0.00,0.00,0.00,7,0.00,40000.00,'2023-11-01 19:57:13','2023-11-01 19:57:13','1',NULL),(160,9042,133,'Servicios profesionales plan monotributo septiembre 2023',1.00,'8',20215.00,20215.00,0.00,0.00,0.00,7,0.00,20215.00,'2023-11-01 21:20:36','2023-11-01 21:20:36','1',NULL),(161,9042,134,'Servicios profesionales alta como responsable inscripto noviembre 2023',1.00,'8',24000.00,24000.00,0.00,0.00,0.00,7,0.00,24000.00,'2023-11-02 20:12:27','2023-11-02 20:12:27','1',NULL),(163,9042,136,'Servicios profesionales septiembre 2023',1.00,'8',20000.00,20000.00,0.00,0.00,0.00,7,0.00,20000.00,'2023-11-03 17:57:11','2023-11-03 17:57:11','1',NULL),(164,9042,137,'Servicios profesionales septiembre 2023',1.00,'8',40850.00,40850.00,0.00,0.00,0.00,7,0.00,40850.00,'2023-11-03 17:59:07','2023-11-03 17:59:07','1',NULL),(165,9042,138,'Servicios profesionales octubre 2023',1.00,'8',21500.00,21500.00,0.00,0.00,0.00,7,0.00,21500.00,'2023-11-16 19:38:47','2023-11-16 19:38:47','1',NULL),(167,9042,140,'Servicios profesionales plan monotributo octubre 2023',1.00,'8',12500.00,12500.00,0.00,0.00,0.00,7,0.00,12500.00,'2023-11-24 12:21:24','2023-11-24 12:21:24','1',NULL),(168,9042,141,'Servicios profesionales octubre 2023',1.00,'8',30300.00,30300.00,0.00,0.00,0.00,7,0.00,30300.00,'2023-11-27 16:34:44','2023-11-27 16:34:44','1',NULL),(171,9042,144,'Servicios profesionales octibre 2023',1.00,'8',20000.00,20000.00,0.00,0.00,0.00,7,0.00,20000.00,'2023-11-27 21:56:00','2023-11-27 21:56:00','1',NULL),(172,9042,145,'Servicios profesionales octubre 2023',1.00,'8',16500.00,16500.00,0.00,0.00,0.00,7,0.00,16500.00,'2023-11-27 22:09:09','2023-11-27 22:09:09','1',NULL),(173,9042,146,'Servicios profesionales octubre 2023',1.00,'8',23530.00,23530.00,0.00,0.00,0.00,7,0.00,23530.00,'2023-11-28 13:41:18','2023-11-28 13:41:18','1',NULL),(174,9042,146,'Gestion agosto - septiembre y octubre 2023',3.00,'8',6000.00,18000.00,0.00,0.00,0.00,7,0.00,18000.00,'2023-11-28 13:41:18','2023-11-28 13:41:18','2',NULL);
INSERT INTO `fact_elec_receipt_details` VALUES (177,9042,149,'Servicios profesionales octubre 2023',1.00,'8',31250.00,31250.00,0.00,0.00,0.00,7,0.00,31250.00,'2023-11-28 15:33:17','2023-11-28 15:33:17','1',NULL),(178,9042,150,'Servicios profesional octubre 2023',1.00,'8',20000.00,20000.00,0.00,0.00,0.00,7,0.00,20000.00,'2023-11-28 16:29:15','2023-11-28 16:29:15','1',NULL),(181,9042,153,'Servicios profesionales Octubre 2023',1.00,'8',40850.00,40850.00,0.00,0.00,0.00,7,0.00,40850.00,'2023-12-05 13:16:03','2023-12-05 13:16:03','1',NULL),(182,9042,153,'Servicios profesionales Noviembre 2023',1.00,'8',40850.00,40850.00,0.00,0.00,0.00,7,0.00,40850.00,'2023-12-05 13:16:03','2023-12-05 13:16:03','2',NULL),(183,9042,154,'Servicios profesionales Noviembre 2023',1.00,'8',20000.00,20000.00,0.00,0.00,0.00,7,0.00,20000.00,'2023-12-05 13:17:49','2023-12-05 13:17:49','1',NULL),(188,9042,157,'Servicios profesionales Octubre 2023',1.00,'8',25000.00,25000.00,0.00,0.00,0.00,7,0.00,25000.00,'2023-12-06 02:24:24','2023-12-06 02:24:24','1',NULL),(189,9042,157,'Servicios profesionales Noviembre 2023',1.00,'8',25000.00,25000.00,0.00,0.00,0.00,7,0.00,25000.00,'2023-12-06 02:24:24','2023-12-06 02:24:24','2',NULL),(190,9042,158,'Servicos profesionales Octubre 2023',1.00,'8',25000.00,25000.00,0.00,0.00,0.00,7,0.00,25000.00,'2023-12-06 02:26:06','2023-12-06 02:26:06','1',NULL),(191,9042,158,'Servicios profesionales Noviembre 2023',1.00,'8',25000.00,25000.00,0.00,0.00,0.00,7,0.00,25000.00,'2023-12-06 02:26:06','2023-12-06 02:26:06','2',NULL),(192,9042,159,'Servicios profesionales gestion ',1.00,'8',8500.00,8500.00,0.00,0.00,0.00,7,0.00,8500.00,'2023-12-19 14:37:47','2023-12-19 14:37:47','1',NULL),(193,9042,160,'Servicios profesionales plan monotributo octubre y noviembre 2023',2.00,'8',7475.00,14950.00,0.00,0.00,0.00,7,0.00,14950.00,'2023-12-19 21:50:23','2023-12-19 21:50:23','1',NULL),(194,9042,160,'Alta monotributo ',1.00,'8',8500.00,8500.00,0.00,0.00,0.00,7,0.00,8500.00,'2023-12-19 21:50:23','2023-12-19 21:50:23','2',NULL),(195,9042,161,'Servicios profesionales plan monotributo noviembre 2023',1.00,'8',18480.00,18480.00,0.00,0.00,0.00,7,0.00,18480.00,'2023-12-20 20:43:37','2023-12-20 20:43:37','1',NULL),(196,9042,162,'Servicios profesionales Noviembre 2023',1.00,'8',20000.00,20000.00,0.00,0.00,0.00,7,0.00,20000.00,'2023-12-20 22:23:19','2023-12-20 22:23:19','1',NULL),(197,9042,163,'Servicios profesionales noviembre 2023',1.00,'8',18500.00,18500.00,0.00,0.00,0.00,7,0.00,18500.00,'2023-12-21 22:21:02','2023-12-21 22:21:02','1',NULL),(199,9042,165,'Servicos profesionales Noviembre 2023',1.00,'8',13500.00,13500.00,0.00,0.00,0.00,7,0.00,13500.00,'2023-12-26 12:44:41','2023-12-26 12:44:41','1',NULL),(200,9042,166,'Servicios profesionales noviembre 2023',1.00,'8',31000.00,31000.00,0.00,0.00,0.00,7,0.00,31000.00,'2023-12-27 14:33:28','2023-12-27 14:33:28','1',NULL),(201,9042,166,'Gestion Noviembre 2023',1.00,'8',10000.00,10000.00,0.00,0.00,0.00,7,0.00,10000.00,'2023-12-27 14:33:28','2023-12-27 14:33:28','2',NULL),(202,9042,167,'Servicios profesionales diciembre 2023',1.00,'8',87630.00,87630.00,0.00,0.00,0.00,7,0.00,87630.00,'2024-01-08 18:27:28','2024-01-08 18:27:28','1',NULL),(203,9042,168,'Servicios profesioanles noviembre 2023',1.00,'8',16500.00,16500.00,0.00,0.00,0.00,7,0.00,16500.00,'2024-01-08 18:46:31','2024-01-08 18:46:31','1',NULL),(204,9042,168,'Servicios profesioanles diciembre 2023',1.00,'8',16500.00,16500.00,0.00,0.00,0.00,7,0.00,16500.00,'2024-01-08 18:46:31','2024-01-08 18:46:31','1',NULL),(205,9042,169,'Servicios profesionales diciembre 2023',1.00,'8',87630.00,87630.00,0.00,0.00,0.00,7,0.00,87630.00,'2024-01-08 18:48:39','2024-01-08 18:48:39','1',NULL);

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

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

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

INSERT INTO `fact_elec_receipts` VALUES (1,9042,'2023-06-03','2023-06-03','2023-06-03','2023-06-03',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"06-03-2023\",\"anula_comp_rechazado\":\"N\"}','2023-06-03 23:15:37','2023-06-03 23:15:44','73220340941205','2023-06-13','801','2023-06-13',40815,40816,4,1,NULL,NULL,NULL,NULL,0.00,20700.00,1,242.00,NULL),(2,9042,'2023-06-03','2023-06-03','2023-06-03','2023-06-03',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"06-03-2023\",\"anula_comp_rechazado\":\"N\"}','2023-06-03 23:24:56','2023-06-03 23:25:24','73220341208430','2023-06-13','802','2023-06-13',40815,40817,4,1,NULL,NULL,NULL,NULL,0.00,53700.00,1,242.00,NULL),(3,9042,'2023-06-09','2023-06-09','2023-06-09','2023-06-09',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"06-09-2023\",\"anula_comp_rechazado\":\"N\"}','2023-06-09 12:55:12','2023-06-09 12:55:16','73230910948487','2023-06-19','803','2023-06-19',40815,40860,4,6,NULL,NULL,NULL,NULL,0.00,13600.00,1,246.00,NULL),(4,9042,'2023-06-09','2023-05-01','2023-05-31','2023-06-09',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"06-09-2023\",\"anula_comp_rechazado\":\"N\"}','2023-06-09 13:04:36','2023-06-09 13:04:38','73230912238660','2023-06-19','804','2023-06-19',40815,40861,4,1,NULL,NULL,NULL,NULL,0.00,5850.00,1,246.00,NULL),(5,9042,'2023-06-12','2023-06-12','2023-06-12','2023-06-12',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"06-12-2023\",\"anula_comp_rechazado\":\"N\"}','2023-06-12 17:31:38','2023-06-12 17:31:41','73240206743803','2023-06-22','805','2023-06-22',40815,40862,4,6,NULL,NULL,NULL,NULL,0.00,7475.00,1,247.00,NULL),(6,9042,'2023-06-14','2023-06-14','2023-06-14','2023-06-14',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"06-14-2023\",\"anula_comp_rechazado\":\"N\"}','2023-06-14 21:06:25','2023-06-14 21:06:28','73240459621838','2023-06-24','806','2023-06-24',40815,40860,4,6,NULL,NULL,NULL,NULL,0.00,13000.00,1,249.00,NULL),(7,9042,'2023-06-16','2023-05-01','2023-05-31','2023-06-16',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"06-16-2023\",\"anula_comp_rechazado\":\"N\"}','2023-06-16 01:15:17','2023-06-16 01:15:20','73240580316897','2023-06-26','807','2023-06-26',40815,40863,4,1,NULL,NULL,NULL,NULL,0.00,56000.00,1,251.00,NULL),(8,9042,'2023-06-16','2023-05-01','2023-05-31','2023-06-18',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"06-18-2023\",\"anula_comp_rechazado\":\"N\"}','2023-06-18 00:04:54','2023-06-18 00:04:57','73250799352298','2023-06-26','808','2023-06-26',40815,40864,4,6,NULL,NULL,NULL,NULL,0.00,12675.00,1,252.00,NULL),(9,9042,'2023-06-16','2023-05-01','2023-05-31','2023-06-18',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"06-18-2023\",\"anula_comp_rechazado\":\"N\"}','2023-06-18 00:09:18','2023-06-18 00:09:27','73250799460644','2023-06-26','809','2023-06-26',40815,40865,4,1,NULL,NULL,NULL,NULL,0.00,12675.00,1,252.00,NULL),(10,9042,'2023-06-16','2023-05-01','2023-05-31','2023-06-20',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"06-20-2023\",\"anula_comp_rechazado\":\"N\"}','2023-06-20 16:20:04','2023-06-20 16:20:07','73250955181071','2023-06-26','810','2023-06-26',40815,40866,4,6,NULL,NULL,NULL,NULL,0.00,15380.00,1,252.00,NULL),(11,9042,'2023-06-16','2023-05-01','2023-05-31','2023-06-20',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"06-20-2023\",\"anula_comp_rechazado\":\"N\"}','2023-06-20 16:44:51','2023-06-20 16:44:53','73250956903393','2023-06-26','811','2023-06-26',40815,40867,4,6,NULL,NULL,NULL,NULL,0.00,15400.00,1,252.00,NULL),(12,9042,'2023-06-16','2023-05-01','2023-05-31','2023-06-20',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"06-20-2023\",\"anula_comp_rechazado\":\"N\"}','2023-06-20 17:02:22','2023-06-20 17:02:24','73250958115344','2023-06-26','812','2023-06-26',40815,40868,4,6,NULL,NULL,NULL,NULL,0.00,12285.00,1,252.00,NULL);
INSERT INTO `fact_elec_receipts` VALUES (13,9042,'2023-06-16','2023-05-01','2023-05-31','2023-06-21',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"06-21-2023\",\"anula_comp_rechazado\":\"N\"}','2023-06-21 01:02:12','2023-06-21 01:02:14','73250983934426','2023-06-26','813','2023-06-26',40815,40868,4,6,NULL,NULL,NULL,NULL,0.00,9000.00,1,252.00,NULL),(14,9042,'2023-06-16','2023-05-01','2023-05-31','2023-06-21',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"06-21-2023\",\"anula_comp_rechazado\":\"N\"}','2023-06-21 01:24:49','2023-06-21 01:24:51','73250984536308','2023-06-26','814','2023-06-26',40815,40869,4,6,NULL,NULL,NULL,NULL,0.00,14700.00,1,252.00,NULL),(15,9042,'2023-06-16','2023-06-22','2023-06-22','2023-06-22',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"06-22-2023\",\"anula_comp_rechazado\":\"N\"}','2023-06-22 00:36:37','2023-06-22 00:36:41','73250097769851','2023-06-26','815','2023-06-26',40815,40870,4,1,NULL,NULL,NULL,NULL,0.00,33100.00,1,254.00,NULL),(16,9042,'2023-06-16','2023-05-01','2023-05-31','2023-06-22',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"06-22-2023\",\"anula_comp_rechazado\":\"N\"}','2023-06-22 02:16:38','2023-06-22 02:16:42','73250098950896','2023-06-26','816','2023-06-26',40815,40871,4,6,NULL,NULL,NULL,NULL,0.00,17150.00,1,254.00,NULL),(17,9042,'2023-06-22','2023-05-01','2023-05-31','2023-06-23',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"06-23-2023\",\"anula_comp_rechazado\":\"N\"}','2023-06-23 00:28:54','2023-06-23 00:28:57','73250217086382','2023-07-02','817','2023-07-02',40815,40872,4,1,NULL,NULL,NULL,NULL,0.00,38310.00,1,255.00,NULL),(18,9042,'2023-06-21','2023-05-01','2023-05-31','2023-06-23',3,3,9,'','{\"Tipo\":{\"id\":7,\"user_id\":null,\"created_at\":null,\"updated_at\":\"2019-07-30T01:19:32.000000Z\",\"name\":\"Factura C\",\"code\":\"11\",\"credit\":0,\"agroup_iva_module\":0,\"sell_no_taxabled\":1,\"buy_no_taxabled\":1,\"iva_condition_id\":1,\"is_fce_pyme\":0,\"afip_comprobante_id\":11,\"tipo\":\"Factura\",\"letra\":\"C\",\"facta_electronica\":1,\"is_stock_lpg\":0,\"show_from_total\":0,\"deleted_at\":null},\"PtoVta\":\"00004\",\"Nro\":\"809\",\"CbteFch\":\"06-16-2023\",\"anula_comp_rechazado\":\"N\"}','2023-06-23 16:27:43','2023-06-23 16:27:47','73250288453871','2023-07-01','19','2023-07-01',40815,40865,4,1,NULL,NULL,NULL,NULL,0.00,12675.00,1,255.00,NULL),(19,9042,'2023-06-23','2023-05-01','2023-05-31','2023-06-23',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"06-23-2023\",\"anula_comp_rechazado\":\"N\"}','2023-06-23 16:29:28','2023-06-23 16:29:30','73250288691053','2023-07-03','818','2023-07-03',40815,40865,4,1,NULL,NULL,NULL,NULL,0.00,16100.00,1,255.00,NULL),(20,9042,'2023-06-23','2023-05-01','2023-05-31','2023-06-23',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"06-23-2023\",\"anula_comp_rechazado\":\"N\"}','2023-06-23 16:31:49','2023-06-23 16:31:51','73250289034578','2023-07-03','819','2023-07-03',40815,40873,4,1,NULL,NULL,NULL,NULL,0.00,34100.00,1,255.00,NULL),(21,9042,'2023-06-23','2023-05-01','2023-05-31','2023-06-23',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"06-23-2023\",\"anula_comp_rechazado\":\"N\"}','2023-06-23 17:02:59','2023-06-23 17:03:02','73250293605110','2023-07-03','820','2023-07-03',40815,40874,4,1,NULL,NULL,NULL,NULL,0.00,25900.00,1,255.00,NULL),(22,9042,'2023-06-23','2023-06-23','2023-06-23','2023-06-23',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"06-23-2023\",\"anula_comp_rechazado\":\"N\"}','2023-06-23 17:04:45','2023-06-23 17:04:48','73250293878566','2023-07-03','821','2023-07-03',40815,40874,4,1,NULL,NULL,NULL,NULL,0.00,10000.00,1,255.00,NULL);
INSERT INTO `fact_elec_receipts` VALUES (23,9042,'2023-06-26','2023-05-01','2023-05-31','2023-06-28',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"06-28-2023\",\"anula_comp_rechazado\":\"N\"}','2023-06-28 00:48:13','2023-06-28 00:48:17','73260712657570','2023-07-06','822','2023-07-06',40815,40875,4,1,NULL,NULL,NULL,NULL,0.00,12600.00,1,258.00,NULL),(24,9042,'2023-06-23','2023-05-01','2023-05-31','2023-06-28',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"06-28-2023\",\"anula_comp_rechazado\":\"N\"}','2023-06-28 18:25:56','2023-06-28 18:25:59',NULL,NULL,NULL,NULL,40815,40876,4,1,NULL,NULL,NULL,NULL,0.00,73255.00,1,258.00,'2023-06-28 18:25:59'),(25,9042,'2023-06-26','2023-04-01','2023-05-31','2023-06-28',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"06-28-2023\",\"anula_comp_rechazado\":\"N\"}','2023-06-28 18:28:04','2023-06-28 18:28:06','73260795935160','2023-07-06','823','2023-07-06',40815,40876,4,1,NULL,NULL,NULL,NULL,0.00,73255.00,1,258.00,NULL),(26,9042,'2023-07-04','2023-07-04','2023-07-04','2023-07-04',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"07-04-2023\",\"anula_comp_rechazado\":\"N\"}','2023-07-04 14:20:04','2023-07-04 14:20:06','73270452557537','2023-07-14','824','2023-07-14',40815,40863,4,1,NULL,NULL,NULL,NULL,0.00,55000.00,1,262.00,NULL),(27,9042,'2023-07-04','2023-07-04','2023-07-04','2023-07-04',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"07-04-2023\",\"anula_comp_rechazado\":\"N\"}','2023-07-04 14:22:47','2023-07-04 14:22:49','73270452898057','2023-07-14','825','2023-07-14',40815,40870,4,1,NULL,NULL,NULL,NULL,0.00,30000.00,1,262.00,NULL),(28,9042,'2023-07-05','2023-07-05','2023-07-05','2023-07-05',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"07-05-2023\",\"anula_comp_rechazado\":\"N\"}','2023-07-05 10:48:51','2023-07-05 10:48:54','73270542542813','2023-07-15','826','2023-07-15',40815,40878,4,6,NULL,NULL,NULL,NULL,0.00,34215.00,1,262.00,NULL),(29,9042,'2023-07-05','2023-07-05','2023-07-05','2023-07-05',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"07-05-2023\",\"anula_comp_rechazado\":\"N\"}','2023-07-05 10:50:42','2023-07-05 10:50:45','73270542848072','2023-07-15','827','2023-07-15',40815,40879,4,6,NULL,NULL,NULL,NULL,0.00,14000.00,1,262.00,NULL),(30,9042,'2023-07-05','2023-07-05','2023-07-05','2023-07-05',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"07-05-2023\",\"anula_comp_rechazado\":\"N\"}','2023-07-05 22:45:36','2023-07-05 22:45:40','73270640559438','2023-07-15','828','2023-07-15',40815,40872,4,1,NULL,NULL,NULL,NULL,0.00,30000.00,1,262.00,NULL),(31,9042,'2023-07-05','2023-07-05','2023-07-05','2023-07-05',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"07-05-2023\",\"anula_comp_rechazado\":\"N\"}','2023-07-05 22:47:25','2023-07-05 22:47:28','73270640630383','2023-07-15','829','2023-07-15',40815,40873,4,1,NULL,NULL,NULL,NULL,0.00,36000.00,1,262.00,NULL),(32,9042,'2023-07-05','2023-07-05','2023-07-05','2023-07-05',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"07-05-2023\",\"anula_comp_rechazado\":\"N\"}','2023-07-05 22:48:37','2023-07-05 22:48:40','73270640695640','2023-07-15','830','2023-07-15',40815,40865,4,1,NULL,NULL,NULL,NULL,0.00,36000.00,1,262.00,NULL),(33,9042,'2023-07-05','2023-07-05','2023-07-05','2023-07-05',3,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"07-05-2023\",\"anula_comp_rechazado\":\"N\"}','2023-07-05 22:51:54','2023-07-05 22:51:59','73270640848854','2023-07-15','831','2023-07-15',40815,40877,4,1,NULL,NULL,NULL,NULL,0.00,58000.00,1,262.00,NULL),(34,9042,'2023-07-10','2023-07-10','2023-07-10','2023-07-10',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"07-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-07-10 16:15:51','2023-07-10 16:15:53','73280111315864','2023-07-20','832','2023-07-20',40815,40863,4,1,NULL,NULL,NULL,NULL,0.00,56000.00,1,264.00,NULL);
INSERT INTO `fact_elec_receipts` VALUES (35,9042,'2023-07-10','2023-07-10','2023-07-10','2023-07-10',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"07-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-07-10 20:41:17','2023-07-10 20:41:19','73280148494890','2023-07-20','833','2023-07-20',40815,40880,4,1,NULL,NULL,NULL,NULL,0.00,8450.00,1,264.00,NULL),(36,9042,'2023-07-11','2023-07-11','2023-07-11','2023-07-11',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"07-11-2023\",\"anula_comp_rechazado\":\"N\"}','2023-07-11 13:31:49','2023-07-11 13:31:52','73280204556415','2023-07-21','834','2023-07-21',40815,40862,4,6,NULL,NULL,NULL,NULL,0.00,7475.00,1,264.00,NULL),(37,9042,'2023-07-11','2023-07-11','2023-07-11','2023-07-11',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"07-11-2023\",\"anula_comp_rechazado\":\"N\"}','2023-07-11 23:37:24','2023-07-11 23:37:26','73280267669084','2023-07-21','835','2023-07-21',40815,40860,4,6,NULL,NULL,NULL,NULL,0.00,12740.00,1,264.00,NULL),(38,9042,'2023-07-12','2023-07-12','2023-07-12','2023-07-12',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"07-12-2023\",\"anula_comp_rechazado\":\"N\"}','2023-07-12 19:04:53','2023-07-12 19:04:55','73280351419716','2023-07-22','836','2023-07-22',40815,40881,4,1,NULL,NULL,NULL,NULL,0.00,37200.00,1,267.00,NULL),(39,9042,'2023-07-12','2023-07-12','2023-07-12','2023-07-12',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"07-12-2023\",\"anula_comp_rechazado\":\"N\"}','2023-07-12 19:07:48','2023-07-12 19:07:50','73280351773277','2023-07-22','837','2023-07-22',40815,40881,4,1,NULL,NULL,NULL,NULL,0.00,45000.00,1,267.00,NULL),(40,9042,'2023-07-13','2023-07-14','2023-07-14','2023-07-14',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"07-14-2023\",\"anula_comp_rechazado\":\"N\"}','2023-07-14 18:35:51','2023-07-14 18:35:53','73280571763104','2023-07-23','838','2023-07-23',40815,40882,4,6,NULL,NULL,NULL,NULL,0.00,15000.00,1,268.00,NULL),(41,9042,'2023-07-13','2023-07-14','2023-07-14','2023-07-14',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"07-14-2023\",\"anula_comp_rechazado\":\"N\"}','2023-07-14 18:40:53','2023-07-14 18:40:54','73280572487332','2023-07-23','839','2023-07-23',40815,40882,4,6,NULL,NULL,NULL,NULL,0.00,21500.00,1,268.00,NULL),(42,9042,'2023-07-13','2023-07-16','2023-07-16','2023-07-16',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"07-16-2023\",\"anula_comp_rechazado\":\"N\"}','2023-07-16 13:21:37','2023-07-16 13:21:40','73290714679278','2023-07-23','840','2023-07-23',40815,40866,4,6,NULL,NULL,NULL,NULL,0.00,15400.00,1,268.00,NULL),(43,9042,'2023-07-14','2023-07-16','2023-07-16','2023-07-16',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"07-16-2023\",\"anula_comp_rechazado\":\"N\"}','2023-07-16 13:55:20','2023-07-16 13:55:22','73290716958389','2023-07-24','841','2023-07-24',40815,40867,4,1,NULL,NULL,NULL,NULL,0.00,15400.00,1,268.00,NULL),(44,9042,'2023-07-14','2023-07-17','2023-07-17','2023-07-17',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"07-17-2023\",\"anula_comp_rechazado\":\"N\"}','2023-07-17 15:14:43','2023-07-17 15:14:46','73290806583729','2023-07-24','842','2023-07-24',40815,40869,4,6,NULL,NULL,NULL,NULL,0.00,20700.00,1,268.00,NULL),(45,9042,'2023-07-14','2023-07-18','2023-07-18','2023-07-18',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"07-18-2023\",\"anula_comp_rechazado\":\"N\"}','2023-07-18 13:41:25','2023-07-18 13:41:28','73290902812281','2023-07-24','843','2023-07-24',40815,40883,4,6,NULL,NULL,NULL,NULL,0.00,7500.00,1,270.00,NULL),(46,9042,'2023-07-17','2023-07-18','2023-07-18','2023-07-18',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"07-18-2023\",\"anula_comp_rechazado\":\"N\"}','2023-07-18 15:02:21','2023-07-18 15:02:23','73290911826648','2023-07-27','844','2023-07-27',40815,40884,4,6,NULL,NULL,NULL,NULL,0.00,9000.00,1,270.00,NULL);
INSERT INTO `fact_elec_receipts` VALUES (47,9042,'2023-07-17','2023-07-18','2023-07-18','2023-07-18',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"07-18-2023\",\"anula_comp_rechazado\":\"N\"}','2023-07-18 15:19:11','2023-07-18 15:19:13','73290913806013','2023-07-27','845','2023-07-27',40815,40885,4,6,NULL,NULL,NULL,NULL,0.00,9000.00,1,270.00,NULL),(48,9042,'2023-07-17','2023-07-20','2023-07-20','2023-07-20',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"07-20-2023\",\"anula_comp_rechazado\":\"N\"}','2023-07-20 00:39:37','2023-07-20 00:39:40','73290086546040','2023-07-27','846','2023-07-27',40815,40871,4,6,NULL,NULL,NULL,NULL,0.00,7150.00,1,271.00,NULL),(49,9042,'2023-07-21','2023-06-01','2023-06-30','2023-07-24',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"07-24-2023\",\"anula_comp_rechazado\":\"N\"}','2023-07-24 13:17:54','2023-07-24 13:17:56','73300539001855','2023-07-31','847','2023-07-31',40815,40872,4,1,NULL,NULL,NULL,NULL,0.00,23310.00,1,273.00,NULL),(50,9042,'2023-07-21','2023-06-01','2023-06-30','2023-07-25',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"07-25-2023\",\"anula_comp_rechazado\":\"N\"}','2023-07-25 02:18:16','2023-07-25 02:18:19','73300610697402','2023-07-31','848','2023-07-31',40815,40875,4,1,NULL,NULL,NULL,NULL,0.00,12600.00,1,274.00,NULL),(51,9042,'2023-07-21','2023-06-01','2023-06-30','2023-07-25',2,3,9,'','{\"Tipo\":{\"id\":7,\"user_id\":null,\"created_at\":null,\"updated_at\":\"2019-07-30T01:19:32.000000Z\",\"name\":\"Factura C\",\"code\":\"11\",\"credit\":0,\"agroup_iva_module\":0,\"sell_no_taxabled\":1,\"buy_no_taxabled\":1,\"iva_condition_id\":1,\"is_fce_pyme\":0,\"afip_comprobante_id\":11,\"tipo\":\"Factura\",\"letra\":\"C\",\"facta_electronica\":1,\"is_stock_lpg\":0,\"show_from_total\":0,\"deleted_at\":null},\"PtoVta\":\"00004\",\"Nro\":\"00000848\",\"CbteFch\":\"07-21-2023\",\"anula_comp_rechazado\":\"N\"}','2023-07-25 02:32:19','2023-07-25 02:32:21','73300610786099','2023-07-31','20','2023-07-31',40815,40875,4,1,NULL,NULL,NULL,NULL,0.00,12600.00,1,274.00,NULL),(52,9042,'2023-07-21','2023-06-01','2023-06-30','2023-07-25',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"07-25-2023\",\"anula_comp_rechazado\":\"N\"}','2023-07-25 02:37:22','2023-07-25 02:37:24','73300610814103','2023-07-31','849','2023-07-31',40815,40875,4,1,NULL,NULL,NULL,NULL,0.00,37800.00,1,274.00,NULL),(53,9042,'2023-07-21','2023-06-01','2023-06-30','2023-07-25',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"07-25-2023\",\"anula_comp_rechazado\":\"N\"}','2023-07-25 16:30:57','2023-07-25 16:30:59','73300676729401','2023-07-31','850','2023-07-31',40815,40876,4,1,NULL,NULL,NULL,NULL,0.00,36627.50,1,274.00,NULL),(54,9042,'2023-07-21','2023-06-01','2023-06-30','2023-07-25',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"07-25-2023\",\"anula_comp_rechazado\":\"N\"}','2023-07-25 22:43:07','2023-07-25 22:43:09','73300716034865','2023-07-31','851','2023-07-31',40815,40861,4,6,NULL,NULL,NULL,NULL,0.00,5850.00,1,274.00,NULL),(55,9042,'2023-07-21','2023-06-01','2023-06-30','2023-07-25',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"07-25-2023\",\"anula_comp_rechazado\":\"N\"}','2023-07-25 23:28:18','2023-07-25 23:28:20','73300717477259','2023-07-31','852','2023-07-31',40815,40868,4,6,NULL,NULL,NULL,NULL,0.00,12285.00,1,274.00,NULL),(56,9042,'2023-07-21','2023-06-01','2023-06-30','2023-07-26',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"07-26-2023\",\"anula_comp_rechazado\":\"N\"}','2023-07-26 21:36:04','2023-07-26 21:36:07','73300821769786','2023-07-31','853','2023-07-31',40815,40865,4,1,NULL,NULL,NULL,NULL,0.00,16100.00,1,275.00,NULL);
INSERT INTO `fact_elec_receipts` VALUES (57,9042,'2023-07-21','2023-06-01','2023-06-30','2023-07-26',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"07-26-2023\",\"anula_comp_rechazado\":\"N\"}','2023-07-26 21:37:52','2023-07-26 21:37:54','73300821869050','2023-07-31','854','2023-07-31',40815,40873,4,1,NULL,NULL,NULL,NULL,0.00,34100.00,1,275.00,NULL),(58,9042,'2023-08-01','2023-08-01','2023-08-01','2023-08-01',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"08-01-2023\",\"anula_comp_rechazado\":\"N\"}','2023-08-01 20:45:23','2023-08-01 20:45:26','73310512295411','2023-08-11','855','2023-08-11',40815,40881,4,1,NULL,NULL,NULL,NULL,0.00,14600.00,1,278.00,NULL),(59,9042,'2023-07-24','2023-05-01','2023-05-31','2023-08-02',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"08-02-2023\",\"anula_comp_rechazado\":\"N\"}','2023-08-02 02:42:35','2023-08-02 02:42:37',NULL,NULL,NULL,NULL,40815,40886,4,6,NULL,NULL,NULL,NULL,0.00,40000.00,1,279.00,'2023-08-02 02:42:37'),(60,9042,'2023-08-01','2023-05-01','2023-05-31','2023-08-02',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"08-02-2023\",\"anula_comp_rechazado\":\"N\"}','2023-08-02 02:44:10','2023-08-02 02:44:12','73310526244024','2023-08-11','856','2023-08-11',40815,40886,4,6,NULL,NULL,NULL,NULL,0.00,40000.00,1,279.00,NULL),(61,9042,'2023-08-01','2023-06-01','2023-07-31','2023-08-02',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"08-02-2023\",\"anula_comp_rechazado\":\"N\"}','2023-08-02 02:46:10','2023-08-02 02:46:11','73310526272788','2023-08-11','857','2023-08-11',40815,40887,4,6,NULL,NULL,NULL,NULL,0.00,40000.00,1,279.00,NULL),(62,9042,'2023-08-01','2023-06-01','2023-07-31','2023-08-02',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"08-02-2023\",\"anula_comp_rechazado\":\"N\"}','2023-08-02 04:50:15','2023-08-02 04:50:17','73310527684724','2023-08-11','858','2023-08-11',40815,40888,4,6,NULL,NULL,NULL,NULL,0.00,38000.00,1,279.00,NULL),(63,9042,'2023-08-03','2023-07-01','2023-07-31','2023-08-03',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"08-03-2023\",\"anula_comp_rechazado\":\"N\"}','2023-08-03 16:04:27','2023-08-03 16:04:29','73310729955808','2023-08-13','859','2023-08-13',40815,40876,4,1,NULL,NULL,NULL,NULL,0.00,36627.50,1,280.00,NULL),(64,9042,'2023-08-08','2023-08-08','2023-08-08','2023-08-08',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"08-08-2023\",\"anula_comp_rechazado\":\"N\"}','2023-08-08 22:28:41','2023-08-08 22:28:44','73320306464260','2023-08-18','860','2023-08-18',40815,40870,4,1,NULL,NULL,NULL,NULL,0.00,18100.00,1,285.00,NULL),(65,9042,'2023-08-04','2023-06-01','2023-06-30','2023-08-08',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"08-08-2023\",\"anula_comp_rechazado\":\"N\"}','2023-08-08 22:40:47','2023-08-08 22:40:48',NULL,NULL,NULL,NULL,40815,40874,4,1,NULL,NULL,NULL,NULL,0.00,25900.00,1,285.00,'2023-08-08 22:40:48'),(66,9042,'2023-08-07','2023-06-01','2023-06-30','2023-08-08',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"08-08-2023\",\"anula_comp_rechazado\":\"N\"}','2023-08-08 22:41:15','2023-08-08 22:41:17',NULL,NULL,NULL,NULL,40815,40874,4,1,NULL,NULL,NULL,NULL,0.00,25900.00,1,285.00,'2023-08-08 22:41:17'),(67,9042,'2023-08-08','2023-06-01','2023-06-30','2023-08-08',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"08-08-2023\",\"anula_comp_rechazado\":\"N\"}','2023-08-08 22:41:43','2023-08-08 22:41:45','73320306997246','2023-08-18','861','2023-08-18',40815,40874,4,1,NULL,NULL,NULL,NULL,0.00,25900.00,1,285.00,NULL),(68,9042,'2023-08-08','2023-07-01','2023-07-31','2023-08-08',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"08-08-2023\",\"anula_comp_rechazado\":\"N\"}','2023-08-08 23:49:28','2023-08-08 23:49:30','73320309099905','2023-08-18','862','2023-08-18',40815,40892,4,1,NULL,NULL,NULL,NULL,0.00,14770.00,1,285.00,NULL);
INSERT INTO `fact_elec_receipts` VALUES (69,9042,'2023-08-11','2023-07-01','2023-07-31','2023-08-11',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"08-11-2023\",\"anula_comp_rechazado\":\"N\"}','2023-08-11 13:30:31','2023-08-11 13:30:34','73320592535983','2023-08-21','863','2023-08-21',40815,40880,1,6,NULL,NULL,NULL,NULL,0.00,8450.00,1,289.00,NULL),(70,9042,'2023-08-11','2023-07-01','2023-08-31','2023-08-11',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"08-11-2023\",\"anula_comp_rechazado\":\"N\"}','2023-08-11 13:33:19','2023-08-11 13:33:21','73320592886223','2023-08-21','864','2023-08-21',40815,40893,1,6,NULL,NULL,NULL,NULL,0.00,12000.00,1,289.00,NULL),(71,9042,'2023-08-14','2023-07-01','2023-07-31','2023-08-15',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"08-15-2023\",\"anula_comp_rechazado\":\"N\"}','2023-08-15 22:36:09','2023-08-15 22:36:12','73330030480034','2023-08-24','865','2023-08-24',40815,40894,4,1,NULL,NULL,NULL,NULL,0.00,10395.00,1,356.00,NULL),(72,9042,'2023-08-14','2023-07-01','2023-07-31','2023-08-15',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"08-15-2023\",\"anula_comp_rechazado\":\"N\"}','2023-08-15 22:57:32','2023-08-15 22:57:34','73330031221495','2023-08-24','866','2023-08-24',40815,40860,4,6,NULL,NULL,NULL,NULL,0.00,12740.00,1,356.00,NULL),(73,9042,'2023-08-14','2023-07-01','2023-07-31','2023-08-15',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"08-15-2023\",\"anula_comp_rechazado\":\"N\"}','2023-08-15 23:44:13','2023-08-15 23:44:16','73330032626347','2023-08-24','867','2023-08-24',40815,40862,4,6,NULL,NULL,NULL,NULL,0.00,7475.00,1,356.00,NULL),(74,9042,'2023-08-14','2023-07-01','2023-07-31','2023-08-16',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"08-16-2023\",\"anula_comp_rechazado\":\"N\"}','2023-08-16 22:17:11','2023-08-16 22:17:14','73330140987917','2023-08-24','868','2023-08-24',40815,40874,4,1,NULL,NULL,NULL,NULL,0.00,25000.00,1,357.00,NULL),(75,9042,'2023-08-14','2023-07-01','2023-07-31','2023-08-16',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"08-16-2023\",\"anula_comp_rechazado\":\"N\"}','2023-08-16 22:52:34','2023-08-16 22:52:36','73330142300178','2023-08-24','869','2023-08-24',40815,40895,4,6,NULL,NULL,NULL,NULL,0.00,15274.00,1,357.00,NULL),(76,9042,'2023-08-14','2023-07-01','2023-07-31','2023-08-17',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"08-17-2023\",\"anula_comp_rechazado\":\"N\"}','2023-08-17 01:18:19','2023-08-17 01:18:21','73330145178338','2023-08-24','870','2023-08-24',40815,40878,4,6,NULL,NULL,NULL,NULL,0.00,20215.00,1,357.00,NULL),(77,9042,'2023-08-14','2023-07-01','2023-07-31','2023-08-17',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"08-17-2023\",\"anula_comp_rechazado\":\"N\"}','2023-08-17 20:02:17','2023-08-17 20:02:20','73330231381867','2023-08-24','871','2023-08-24',40815,40871,4,6,NULL,NULL,NULL,NULL,0.00,12150.00,1,357.00,NULL),(78,9042,'2023-08-14','2023-07-01','2023-07-31','2023-08-17',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"08-17-2023\",\"anula_comp_rechazado\":\"N\"}','2023-08-17 22:42:55','2023-08-17 22:42:57','73330242896764','2023-08-24','872','2023-08-24',40815,40863,4,1,NULL,NULL,NULL,NULL,0.00,56000.00,1,357.00,NULL),(79,9042,'2023-08-14','2023-07-01','2023-07-31','2023-08-17',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"08-17-2023\",\"anula_comp_rechazado\":\"N\"}','2023-08-18 00:02:33','2023-08-18 00:02:35','73330245248628','2023-08-24','873','2023-08-24',40815,40868,4,6,NULL,NULL,NULL,NULL,0.00,12285.00,1,357.00,NULL),(80,9042,'2023-08-14','2023-07-01','2023-07-31','2023-08-23',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"08-23-2023\",\"anula_comp_rechazado\":\"N\"}','2023-08-23 22:36:14','2023-08-23 22:36:17','73340838959443','2023-08-24','874','2023-08-24',40815,40865,4,1,NULL,NULL,NULL,NULL,0.00,16100.00,1,357.00,NULL);
INSERT INTO `fact_elec_receipts` VALUES (81,9042,'2023-08-14','2023-07-01','2023-07-31','2023-08-23',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"08-23-2023\",\"anula_comp_rechazado\":\"N\"}','2023-08-23 23:00:24','2023-08-23 23:00:27','73340839774373','2023-08-24','875','2023-08-24',40815,40864,4,6,NULL,NULL,NULL,NULL,0.00,12675.00,1,357.00,NULL),(82,9042,'2023-08-23','2023-08-23','2023-08-23','2023-08-23',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"08-23-2023\",\"anula_comp_rechazado\":\"N\"}','2023-08-23 23:26:39','2023-08-23 23:26:41','73340840572674','2023-09-02','876','2023-09-02',40815,40863,4,1,NULL,NULL,NULL,NULL,0.00,50000.00,1,357.00,NULL),(83,9042,'2023-08-18','2023-07-01','2023-07-31','2023-08-24',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"08-24-2023\",\"anula_comp_rechazado\":\"N\"}','2023-08-24 02:37:48','2023-08-24 02:37:50',NULL,NULL,NULL,NULL,40815,40896,4,6,NULL,NULL,NULL,NULL,0.00,22500.00,1,357.00,'2023-08-24 02:37:50'),(84,9042,'2023-08-23','2023-07-01','2023-07-31','2023-08-24',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"08-24-2023\",\"anula_comp_rechazado\":\"N\"}','2023-08-24 02:38:35','2023-08-24 02:38:37','73340843507980','2023-09-02','877','2023-09-02',40815,40896,4,6,NULL,NULL,NULL,NULL,0.00,22500.00,1,357.00,NULL),(85,9042,'2023-08-23','2023-08-24','2023-08-24','2023-08-24',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"08-24-2023\",\"anula_comp_rechazado\":\"N\"}','2023-08-24 03:18:45','2023-08-24 03:18:47','73340843905677','2023-09-02','878','2023-09-02',40815,40874,4,1,NULL,NULL,NULL,NULL,0.00,14000.00,1,357.00,NULL),(86,9042,'2023-08-24','2023-07-01','2023-07-31','2023-08-24',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"08-24-2023\",\"anula_comp_rechazado\":\"N\"}','2023-08-24 20:48:05','2023-08-24 20:48:08','73340947280586','2023-09-03','879','2023-09-03',40815,40870,4,1,NULL,NULL,NULL,NULL,0.00,18100.00,1,357.00,NULL),(87,9042,'2023-08-24','2023-07-01','2023-07-31','2023-08-30',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"08-30-2023\",\"anula_comp_rechazado\":\"N\"}','2023-08-30 15:35:02','2023-08-30 15:35:06','73350521561282','2023-09-03','880','2023-09-03',40815,40872,4,1,NULL,NULL,NULL,NULL,0.00,23310.00,1,357.00,NULL),(88,9042,'2023-09-08','2023-08-01','2023-08-31','2023-09-17',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"09-17-2023\",\"anula_comp_rechazado\":\"N\"}','2023-09-17 13:52:29','2023-09-17 13:52:32','73380485077374','2023-09-18','881','2023-09-18',40815,40862,4,6,NULL,NULL,NULL,NULL,0.00,7475.00,1,347.00,NULL),(89,9042,'2023-09-08','2023-08-01','2023-08-31','2023-09-17',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"09-17-2023\",\"anula_comp_rechazado\":\"N\"}','2023-09-17 20:41:01','2023-09-17 20:41:05','73380514740464','2023-09-18','882','2023-09-18',40815,40860,4,6,NULL,NULL,NULL,NULL,0.00,12740.00,1,347.00,NULL),(90,9042,'2023-09-13','2023-08-01','2023-08-31','2023-09-23',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"09-23-2023\",\"anula_comp_rechazado\":\"N\"}','2023-09-23 03:21:11','2023-09-23 03:21:14','73380141213516','2023-09-23','883','2023-09-23',40815,40894,4,1,NULL,NULL,NULL,NULL,0.00,13500.00,1,347.00,NULL),(91,9042,'2023-09-13','2023-08-01','2023-08-31','2023-09-23',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"09-23-2023\",\"anula_comp_rechazado\":\"N\"}','2023-09-23 03:24:01','2023-09-23 03:24:03','73380141240119','2023-09-23','884','2023-09-23',40815,40874,4,1,NULL,NULL,NULL,NULL,0.00,31250.00,1,347.00,NULL),(92,9042,'2023-09-13','2023-08-01','2023-08-31','2023-09-23',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"09-23-2023\",\"anula_comp_rechazado\":\"N\"}','2023-09-23 03:45:08','2023-09-23 03:45:10','73380141398512','2023-09-23','885','2023-09-23',40815,40865,4,1,NULL,NULL,NULL,NULL,0.00,20000.00,1,347.00,NULL);
INSERT INTO `fact_elec_receipts` VALUES (93,9042,'2023-09-13','2023-08-01','2023-08-31','2023-09-23',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"09-23-2023\",\"anula_comp_rechazado\":\"N\"}','2023-09-23 03:48:21','2023-09-23 03:48:23','73380141441130','2023-09-23','886','2023-09-23',40815,40870,4,1,NULL,NULL,NULL,NULL,0.00,23530.00,1,347.00,NULL),(94,9042,'2023-09-13','2023-08-01','2023-08-31','2023-09-23',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"09-23-2023\",\"anula_comp_rechazado\":\"N\"}','2023-09-23 03:50:30','2023-09-23 03:50:32','73380141454835','2023-09-23','887','2023-09-23',40815,40873,4,1,NULL,NULL,NULL,NULL,0.00,40850.00,1,347.00,NULL),(95,9042,'2023-09-13','2023-08-01','2023-08-31','2023-09-23',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"09-23-2023\",\"anula_comp_rechazado\":\"N\"}','2023-09-23 03:52:28','2023-09-23 03:52:29','73380141466806','2023-09-23','888','2023-09-23',40815,40863,4,1,NULL,NULL,NULL,NULL,0.00,67200.00,1,347.00,NULL),(96,9042,'2023-09-13','2023-08-01','2023-08-31','2023-09-23',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"09-23-2023\",\"anula_comp_rechazado\":\"N\"}','2023-09-23 03:55:11','2023-09-23 03:55:13','73380141485181','2023-09-23','889','2023-09-23',40815,40881,4,1,NULL,NULL,NULL,NULL,0.00,44600.00,1,347.00,NULL),(97,9042,'2023-09-13','2023-08-01','2023-08-31','2023-09-23',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"09-23-2023\",\"anula_comp_rechazado\":\"N\"}','2023-09-23 04:02:20','2023-09-23 04:02:22','73380141529744','2023-09-23','890','2023-09-23',40815,40872,4,1,NULL,NULL,NULL,NULL,0.00,52100.00,1,347.00,NULL),(98,9042,'2023-09-13','2023-08-01','2023-08-31','2023-09-23',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"09-23-2023\",\"anula_comp_rechazado\":\"N\"}','2023-09-23 04:04:05','2023-09-23 04:04:07','73380141541946','2023-09-23','891','2023-09-23',40815,40875,4,1,NULL,NULL,NULL,NULL,0.00,20000.00,1,347.00,NULL),(99,9042,'2023-09-13','2023-08-01','2023-08-31','2023-09-23',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"09-23-2023\",\"anula_comp_rechazado\":\"N\"}','2023-09-23 04:05:59','2023-09-23 04:06:01','73380141556070','2023-09-23','892','2023-09-23',40815,40876,4,1,NULL,NULL,NULL,NULL,0.00,36627.50,1,347.00,NULL),(100,9042,'2023-07-01','2023-08-31','2023-09-15','2023-09-25',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"09-25-2023\",\"anula_comp_rechazado\":\"N\"}','2023-09-25 19:21:54','2023-09-25 19:21:56',NULL,NULL,NULL,NULL,40815,40897,4,1,NULL,NULL,NULL,NULL,0.00,53000.00,1,347.00,'2023-09-25 19:21:56'),(101,9042,'2023-09-15','2023-07-01','2023-08-31','2023-09-25',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"09-25-2023\",\"anula_comp_rechazado\":\"N\"}','2023-09-25 19:22:38','2023-09-25 19:22:40','73390369331935','2023-09-25','893','2023-09-25',40815,40897,4,1,NULL,NULL,NULL,NULL,0.00,53000.00,1,347.00,NULL),(102,9042,'2023-09-15','2023-07-01','2023-08-31','2023-09-25',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"09-25-2023\",\"anula_comp_rechazado\":\"N\"}','2023-09-25 19:57:04','2023-09-25 19:57:06','73390371832616','2023-09-25','894','2023-09-25',40815,40898,4,6,NULL,NULL,NULL,NULL,0.00,15000.00,1,347.00,NULL),(103,9042,'2023-09-15','2023-07-01','2023-08-31','2023-09-25',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"09-25-2023\",\"anula_comp_rechazado\":\"N\"}','2023-09-25 19:59:47','2023-09-25 19:59:49','73390372037962','2023-09-25','895','2023-09-25',40815,40899,4,6,NULL,NULL,NULL,NULL,0.00,15000.00,1,347.00,NULL),(104,9042,'2023-09-15','2023-09-25','2023-09-25','2023-09-25',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"09-25-2023\",\"anula_comp_rechazado\":\"N\"}','2023-09-25 20:34:21','2023-09-25 20:34:23','73390374175563','2023-09-25','896','2023-09-25',40815,40863,4,1,NULL,NULL,NULL,NULL,0.00,62500.00,1,347.00,NULL);
INSERT INTO `fact_elec_receipts` VALUES (105,9042,'2023-09-25','2023-09-25','2023-09-25','2023-09-25',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"09-25-2023\",\"anula_comp_rechazado\":\"N\"}','2023-09-25 22:20:26','2023-09-25 22:20:28','73390378971132','2023-10-05','897','2023-10-05',40815,40900,4,5,NULL,NULL,NULL,NULL,0.00,14000.00,1,347.00,NULL),(106,9042,'2023-09-19','2023-08-01','2023-08-31','2023-09-29',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"09-29-2023\",\"anula_comp_rechazado\":\"N\"}','2023-09-29 13:09:35','2023-09-29 13:09:39',NULL,NULL,NULL,NULL,40815,40878,4,6,NULL,NULL,NULL,NULL,0.00,20215.00,1,347.00,'2023-09-29 13:09:39'),(107,9042,'2023-09-21','2023-08-01','2023-08-31','2023-09-29',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"09-29-2023\",\"anula_comp_rechazado\":\"N\"}','2023-09-29 13:09:58','2023-09-29 13:10:00',NULL,NULL,NULL,NULL,40815,40878,4,6,NULL,NULL,NULL,NULL,0.00,20215.00,1,347.00,'2023-09-29 13:10:00'),(108,9042,'2023-09-28','2023-08-01','2023-08-31','2023-09-29',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"09-29-2023\",\"anula_comp_rechazado\":\"N\"}','2023-09-29 13:10:22','2023-09-29 13:10:23','73390804651021','2023-10-08','898','2023-10-08',40815,40878,4,6,NULL,NULL,NULL,NULL,0.00,20215.00,1,347.00,NULL),(109,9042,'2023-09-25','2023-08-01','2023-08-31','2023-09-30',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"09-30-2023\",\"anula_comp_rechazado\":\"N\"}','2023-09-30 00:57:45','2023-09-30 00:57:47',NULL,NULL,NULL,NULL,40815,40866,4,6,NULL,NULL,NULL,NULL,0.00,18500.00,1,347.00,'2023-09-30 00:57:47'),(110,9042,'2023-09-28','2023-08-01','2023-08-31','2023-09-30',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"09-30-2023\",\"anula_comp_rechazado\":\"N\"}','2023-09-30 00:58:09','2023-09-30 00:58:10','73390890831164','2023-10-08','899','2023-10-08',40815,40866,4,6,NULL,NULL,NULL,NULL,0.00,18500.00,1,347.00,NULL),(111,9042,'2023-09-28','2023-08-01','2023-08-31','2023-09-30',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"09-30-2023\",\"anula_comp_rechazado\":\"N\"}','2023-09-30 01:16:07','2023-09-30 01:16:10','73390891241124','2023-10-08','900','2023-10-08',40815,40867,4,6,NULL,NULL,NULL,NULL,0.00,18500.00,1,347.00,NULL),(112,9042,'2023-09-28','2023-08-01','2023-08-31','2023-09-30',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"09-30-2023\",\"anula_comp_rechazado\":\"N\"}','2023-09-30 22:32:20','2023-09-30 22:32:22','73390994150888','2023-10-08','901','2023-10-08',40815,40882,4,6,NULL,NULL,NULL,NULL,0.00,21500.00,1,347.00,NULL),(113,9042,'2023-09-28','2023-08-01','2023-08-31','2023-09-30',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"09-30-2023\",\"anula_comp_rechazado\":\"N\"}','2023-09-30 22:35:07','2023-09-30 22:35:09','73390994334199','2023-10-08','902','2023-10-08',40815,40871,4,6,NULL,NULL,NULL,NULL,0.00,12500.00,1,347.00,NULL),(114,9042,'2023-10-06','2023-10-12','2023-10-12','2023-10-12',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"10-12-2023\",\"anula_comp_rechazado\":\"N\"}','2023-10-12 00:35:17','2023-10-12 00:35:20','73410327768697','2023-10-16','903','2023-10-16',40815,40896,4,6,NULL,NULL,NULL,NULL,0.00,7500.00,1,347.00,NULL),(115,9042,'2023-10-10','2023-09-01','2023-09-30','2023-10-15',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"10-15-2023\",\"anula_comp_rechazado\":\"N\"}','2023-10-15 01:34:33','2023-10-15 01:34:36','73420669864074','2023-10-20','904','2023-10-20',40815,40866,4,6,NULL,NULL,NULL,NULL,0.00,15400.00,1,347.00,NULL),(116,9042,'2023-10-13','2023-09-01','2023-09-30','2023-10-19',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"10-19-2023\",\"anula_comp_rechazado\":\"N\"}','2023-10-19 23:38:50','2023-10-19 23:38:53','73420175392996','2023-10-23','905','2023-10-23',40815,40862,4,6,NULL,NULL,NULL,NULL,0.00,7475.00,1,348.00,NULL);
INSERT INTO `fact_elec_receipts` VALUES (117,9042,'2023-10-16','2023-09-01','2023-09-30','2023-10-20',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"10-20-2023\",\"anula_comp_rechazado\":\"N\"}','2023-10-20 21:16:01','2023-10-20 21:16:05','73420297539908','2023-10-26','906','2023-10-26',40815,40872,4,1,NULL,NULL,NULL,NULL,0.00,30300.00,1,347.00,NULL),(118,9042,'2023-10-16','2023-09-01','2023-09-30','2023-10-22',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"10-22-2023\",\"anula_comp_rechazado\":\"N\"}','2023-10-22 20:02:01','2023-10-22 20:02:04','73430472246173','2023-10-26','907','2023-10-26',40815,40860,4,6,NULL,NULL,NULL,NULL,0.00,12740.00,1,348.00,NULL),(119,9042,'2023-10-18','2023-09-01','2023-09-30','2023-10-22',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"10-22-2023\",\"anula_comp_rechazado\":\"N\"}','2023-10-22 21:08:46','2023-10-22 21:08:48','73430476456475','2023-10-28','908','2023-10-28',40815,40874,4,1,NULL,NULL,NULL,NULL,0.00,31250.00,1,348.00,NULL),(120,9042,'2023-10-18','2023-09-01','2023-09-30','2023-10-23',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"10-23-2023\",\"anula_comp_rechazado\":\"N\"}','2023-10-23 13:21:32','2023-10-23 13:21:35','73430526664330','2023-10-28','909','2023-10-28',40815,40870,4,1,NULL,NULL,NULL,NULL,0.00,23530.00,1,348.00,NULL),(121,9042,'2023-10-18','2023-09-01','2023-09-30','2023-10-23',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"10-23-2023\",\"anula_comp_rechazado\":\"N\"}','2023-10-23 18:56:20','2023-10-23 18:56:22','73430567033017','2023-10-28','910','2023-10-28',40815,40882,4,6,NULL,NULL,NULL,NULL,0.00,21500.00,1,348.00,NULL),(122,9042,'2023-10-18','2023-09-01','2023-09-30','2023-10-23',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"10-23-2023\",\"anula_comp_rechazado\":\"N\"}','2023-10-23 19:03:35','2023-10-23 19:03:37','73430568013839','2023-10-28','911','2023-10-28',40815,40892,4,6,NULL,NULL,NULL,NULL,0.00,14770.00,1,348.00,NULL),(123,9042,'2023-10-18','2023-09-01','2023-09-30','2023-10-23',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"10-23-2023\",\"anula_comp_rechazado\":\"N\"}','2023-10-23 19:11:10','2023-10-23 19:11:12','73430569006843','2023-10-28','912','2023-10-28',40815,40863,4,1,NULL,NULL,NULL,NULL,0.00,67200.00,1,348.00,NULL),(124,9042,'2023-10-18','2023-09-01','2023-09-30','2023-10-23',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"10-23-2023\",\"anula_comp_rechazado\":\"N\"}','2023-10-23 22:21:44','2023-10-23 22:21:47','73430586340928','2023-10-28','913','2023-10-28',40815,40897,4,1,NULL,NULL,NULL,NULL,0.00,16500.00,1,348.00,NULL),(125,9042,'2023-10-18','2023-08-01','2023-09-30','2023-10-23',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"10-23-2023\",\"anula_comp_rechazado\":\"N\"}','2023-10-23 23:47:18','2023-10-23 23:47:20','73430589172122','2023-10-28','914','2023-10-28',40815,40864,4,6,NULL,NULL,NULL,NULL,0.00,25350.00,1,348.00,NULL),(126,9042,'2023-10-18','2023-09-01','2023-09-30','2023-10-24',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"10-24-2023\",\"anula_comp_rechazado\":\"N\"}','2023-10-24 20:32:44','2023-10-24 20:32:47','73430694072239','2023-10-28','915','2023-10-28',40815,40875,4,1,NULL,NULL,NULL,NULL,0.00,20000.00,1,348.00,NULL),(127,9042,'2023-10-18','2023-09-01','2023-09-30','2023-10-24',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"10-24-2023\",\"anula_comp_rechazado\":\"N\"}','2023-10-24 21:09:50','2023-10-24 21:09:53','73430697531179','2023-10-28','916','2023-10-28',40815,40876,4,1,NULL,NULL,NULL,NULL,0.00,36627.50,1,348.00,NULL),(128,9042,'2023-10-20','2023-08-01','2023-09-30','2023-10-29',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"10-29-2023\",\"anula_comp_rechazado\":\"N\"}','2023-10-29 20:55:58','2023-10-29 20:56:01','73440215292635','2023-10-30','917','2023-10-30',40815,40869,4,6,NULL,NULL,NULL,NULL,0.00,29400.00,1,348.00,NULL);
INSERT INTO `fact_elec_receipts` VALUES (129,9042,'2023-10-20','2023-09-01','2023-09-30','2023-10-31',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"10-31-2023\",\"anula_comp_rechazado\":\"N\"}','2023-10-31 17:34:31','2023-10-31 17:34:34',NULL,NULL,NULL,NULL,40815,40898,4,6,NULL,NULL,NULL,NULL,0.00,25000.00,1,348.00,'2023-10-31 17:34:34'),(130,9042,'2023-10-23','2023-09-01','2023-09-30','2023-10-31',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"10-31-2023\",\"anula_comp_rechazado\":\"N\"}','2023-10-31 17:34:58','2023-10-31 17:35:00','73440436892500','2023-11-02','918','2023-11-02',40815,40898,4,6,NULL,NULL,NULL,NULL,0.00,25000.00,1,348.00,NULL),(131,9042,'2023-10-23','2023-09-01','2023-09-30','2023-10-31',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"10-31-2023\",\"anula_comp_rechazado\":\"N\"}','2023-10-31 17:36:28','2023-10-31 17:36:30','73440437163677','2023-11-02','919','2023-11-02',40815,40899,4,6,NULL,NULL,NULL,NULL,0.00,25000.00,1,348.00,NULL),(132,9042,'2023-10-24','2023-09-01','2023-09-30','2023-11-01',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"11-01-2023\",\"anula_comp_rechazado\":\"N\"}','2023-11-01 19:57:13','2023-11-01 19:57:15','73440608158306','2023-11-03','920','2023-11-03',40815,41617,4,6,NULL,NULL,NULL,NULL,0.00,40000.00,1,348.00,NULL),(133,9042,'2023-10-24','2023-09-01','2023-09-30','2023-11-01',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"11-01-2023\",\"anula_comp_rechazado\":\"N\"}','2023-11-01 21:20:36','2023-11-01 21:20:38','73440617808231','2023-11-03','921','2023-11-03',40815,40878,4,6,NULL,NULL,NULL,NULL,0.00,20215.00,1,348.00,NULL),(134,9042,'2023-10-27','2023-11-02','2023-11-02','2023-11-02',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"11-02-2023\",\"anula_comp_rechazado\":\"N\"}','2023-11-02 20:12:27','2023-11-02 20:12:30','73440731170741','2023-11-06','922','2023-11-06',40815,40885,4,1,NULL,NULL,NULL,NULL,0.00,24000.00,1,348.00,NULL),(135,9042,'2023-10-26','2023-09-01','2023-09-30','2023-11-03',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"11-03-2023\",\"anula_comp_rechazado\":\"N\"}','2023-11-03 17:56:24','2023-11-03 17:56:27',NULL,NULL,NULL,NULL,40815,40865,4,1,NULL,NULL,NULL,NULL,0.00,20000.00,1,348.00,'2023-11-03 17:56:27'),(136,9042,'2023-10-30','2023-09-01','2023-09-30','2023-11-03',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"11-03-2023\",\"anula_comp_rechazado\":\"N\"}','2023-11-03 17:57:11','2023-11-03 17:57:13','73440842431131','2023-11-09','923','2023-11-09',40815,40865,4,1,NULL,NULL,NULL,NULL,0.00,20000.00,1,348.00,NULL),(137,9042,'2023-10-30','2023-09-01','2023-09-30','2023-11-03',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"11-03-2023\",\"anula_comp_rechazado\":\"N\"}','2023-11-03 17:59:07','2023-11-03 17:59:09','73440842722928','2023-11-09','924','2023-11-09',40815,40873,4,1,NULL,NULL,NULL,NULL,0.00,40850.00,1,348.00,NULL),(138,9042,'2023-11-09','2023-10-01','2023-10-31','2023-11-16',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"11-16-2023\",\"anula_comp_rechazado\":\"N\"}','2023-11-16 19:38:47','2023-11-16 19:38:50','73460329516902','2023-11-19','925','2023-11-19',40815,40882,4,6,NULL,NULL,NULL,NULL,0.00,21500.00,1,351.00,NULL),(139,9042,'2023-10-01','2023-10-31','2023-11-14','2023-11-24',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"11-24-2023\",\"anula_comp_rechazado\":\"N\"}','2023-11-24 11:48:14','2023-11-24 11:48:16',NULL,NULL,NULL,NULL,40815,40871,4,6,NULL,NULL,NULL,NULL,0.00,12500.00,1,355.00,'2023-11-24 11:48:16'),(140,9042,'2023-11-15','2023-10-01','2023-10-31','2023-11-24',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"11-24-2023\",\"anula_comp_rechazado\":\"N\"}','2023-11-24 12:21:24','2023-11-24 12:21:26','73470130800840','2023-11-25','926','2023-11-25',40815,40871,4,6,NULL,NULL,NULL,NULL,0.00,12500.00,1,355.00,NULL);
INSERT INTO `fact_elec_receipts` VALUES (141,9042,'2023-11-18','2023-10-01','2023-10-31','2023-11-27',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"11-27-2023\",\"anula_comp_rechazado\":\"N\"}','2023-11-27 16:34:44','2023-11-27 16:34:47','73480464470512','2023-11-28','927','2023-11-28',40815,40872,4,1,NULL,NULL,NULL,NULL,0.00,30300.00,1,355.00,NULL),(142,9042,'2023-11-17','2023-10-01','2023-10-31','2023-11-27',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"11-27-2023\",\"anula_comp_rechazado\":\"N\"}','2023-11-27 21:47:05','2023-11-27 21:47:07',NULL,NULL,NULL,NULL,40815,40875,4,1,NULL,NULL,NULL,NULL,0.00,20000.00,1,355.00,'2023-11-27 21:47:07'),(143,9042,'2023-11-17','2023-10-01','2023-10-31','2023-11-27',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"11-27-2023\",\"anula_comp_rechazado\":\"N\"}','2023-11-27 21:55:29','2023-11-27 21:55:30',NULL,NULL,NULL,NULL,40815,40875,4,1,NULL,NULL,NULL,NULL,0.00,20000.00,1,355.00,'2023-11-27 21:55:30'),(144,9042,'2023-11-20','2023-10-01','2023-10-31','2023-11-27',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"11-27-2023\",\"anula_comp_rechazado\":\"N\"}','2023-11-27 21:56:00','2023-11-27 21:56:01','73480503055053','2023-11-30','928','2023-11-30',40815,40875,4,1,NULL,NULL,NULL,NULL,0.00,20000.00,1,355.00,NULL),(145,9042,'2023-11-20','2023-10-01','2023-10-31','2023-11-27',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"11-27-2023\",\"anula_comp_rechazado\":\"N\"}','2023-11-27 22:09:09','2023-11-27 22:09:11','73480503847257','2023-11-30','929','2023-11-30',40815,40897,4,1,NULL,NULL,NULL,NULL,0.00,16500.00,1,355.00,NULL),(146,9042,'2023-11-28','2023-10-01','2023-10-31','2023-11-28',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"11-28-2023\",\"anula_comp_rechazado\":\"N\"}','2023-11-28 13:41:18','2023-11-28 13:41:21','73480565547389','2023-12-08','930','2023-12-08',40815,40870,4,1,NULL,NULL,NULL,NULL,0.00,41530.00,1,357.00,NULL),(147,9042,'2023-11-20','2023-10-01','2023-10-31','2023-11-28',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"11-28-2023\",\"anula_comp_rechazado\":\"N\"}','2023-11-28 15:29:58','2023-11-28 15:30:00',NULL,NULL,NULL,NULL,40815,40874,4,1,NULL,NULL,NULL,NULL,0.00,31250.00,1,357.00,'2023-11-28 15:30:00'),(148,9042,'2023-11-21','2023-10-01','2023-10-31','2023-11-28',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"11-28-2023\",\"anula_comp_rechazado\":\"N\"}','2023-11-28 15:30:36','2023-11-28 15:30:38',NULL,NULL,NULL,NULL,40815,40874,4,1,NULL,NULL,NULL,NULL,0.00,31250.00,1,357.00,'2023-11-28 15:30:38'),(149,9042,'2023-11-28','2023-10-01','2023-10-31','2023-11-28',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"11-28-2023\",\"anula_comp_rechazado\":\"N\"}','2023-11-28 15:33:17','2023-11-28 15:33:19','73480579779320','2023-12-08','931','2023-12-08',40815,40874,4,1,NULL,NULL,NULL,NULL,0.00,31250.00,1,357.00,NULL),(150,9042,'2023-11-28','2023-10-01','2023-10-31','2023-11-28',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"11-28-2023\",\"anula_comp_rechazado\":\"N\"}','2023-11-28 16:29:15','2023-11-28 16:29:17','73480586847386','2023-12-08','932','2023-12-08',40815,40865,4,1,NULL,NULL,NULL,NULL,0.00,20000.00,1,357.00,NULL),(151,9042,'2023-11-29','2023-10-01','2023-10-31','2023-12-05',1,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"12-05-2023\",\"anula_comp_rechazado\":\"N\"}','2023-12-05 13:13:42','2023-12-05 13:13:45',NULL,NULL,NULL,NULL,40815,40873,4,3,NULL,NULL,NULL,NULL,0.00,40850.00,1,360.00,'2023-12-05 13:13:45'),(152,9042,'2023-11-29','2023-10-01','2023-10-31','2023-12-05',1,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"12-05-2023\",\"anula_comp_rechazado\":\"N\"}','2023-12-05 13:14:06','2023-12-05 13:14:07',NULL,NULL,NULL,NULL,40815,40873,4,3,NULL,NULL,NULL,NULL,0.00,40850.00,1,360.00,'2023-12-05 13:14:07');
INSERT INTO `fact_elec_receipts` VALUES (153,9042,'2023-12-05','2023-10-01','2023-11-30','2023-12-05',1,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"12-05-2023\",\"anula_comp_rechazado\":\"N\"}','2023-12-05 13:16:03','2023-12-05 13:16:05','73490439315057','2023-12-15','933','2023-12-15',40815,40873,4,1,NULL,NULL,NULL,NULL,0.00,81700.00,1,360.00,NULL),(154,9042,'2023-12-05','2023-11-01','2023-11-30','2023-12-05',1,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"12-05-2023\",\"anula_comp_rechazado\":\"N\"}','2023-12-05 13:17:49','2023-12-05 13:17:50','73490439611423','2023-12-15','934','2023-12-15',40815,40865,4,1,NULL,NULL,NULL,NULL,0.00,20000.00,1,360.00,NULL),(155,9042,'2023-12-01','2023-10-01','2023-11-30','2023-12-06',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"12-06-2023\",\"anula_comp_rechazado\":\"N\"}','2023-12-06 02:23:37','2023-12-06 02:23:40',NULL,NULL,NULL,NULL,40815,40898,4,6,NULL,NULL,NULL,NULL,0.00,50000.00,1,361.00,'2023-12-06 02:23:40'),(156,9042,'2023-12-04','2023-10-01','2023-11-30','2023-12-06',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"12-06-2023\",\"anula_comp_rechazado\":\"N\"}','2023-12-06 02:23:58','2023-12-06 02:24:00',NULL,NULL,NULL,NULL,40815,40898,4,6,NULL,NULL,NULL,NULL,0.00,50000.00,1,361.00,'2023-12-06 02:24:00'),(157,9042,'2023-12-05','2023-10-01','2023-11-30','2023-12-06',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"12-06-2023\",\"anula_comp_rechazado\":\"N\"}','2023-12-06 02:24:24','2023-12-06 02:24:25','73490520277686','2023-12-15','935','2023-12-15',40815,40898,4,6,NULL,NULL,NULL,NULL,0.00,50000.00,1,361.00,NULL),(158,9042,'2023-12-05','2023-10-01','2023-11-30','2023-12-06',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"12-06-2023\",\"anula_comp_rechazado\":\"N\"}','2023-12-06 02:26:06','2023-12-06 02:26:08','73490520302962','2023-12-15','936','2023-12-15',40815,40899,4,6,NULL,NULL,NULL,NULL,0.00,50000.00,1,361.00,NULL),(159,9042,'2023-12-12','2023-11-01','2023-11-30','2023-12-19',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"12-19-2023\",\"anula_comp_rechazado\":\"N\"}','2023-12-19 14:37:47','2023-12-19 14:37:52','73510051296290','2023-12-22','937','2023-12-22',40815,40872,4,1,NULL,NULL,NULL,NULL,0.00,8500.00,1,785.00,NULL),(160,9042,'2023-12-12','2023-10-01','2023-11-30','2023-12-19',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"12-19-2023\",\"anula_comp_rechazado\":\"N\"}','2023-12-19 21:50:23','2023-12-19 21:50:25','73510108524163','2023-12-22','938','2023-12-22',40815,40862,4,6,NULL,NULL,NULL,NULL,0.00,23450.00,1,785.00,NULL),(161,9042,'2023-12-12','2023-11-01','2023-11-30','2023-12-20',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"12-20-2023\",\"anula_comp_rechazado\":\"N\"}','2023-12-20 20:43:37','2023-12-20 20:43:40','73510238512222','2023-12-22','939','2023-12-22',40815,40867,4,6,NULL,NULL,NULL,NULL,0.00,18480.00,1,785.00,NULL),(162,9042,'2023-12-13','2023-11-01','2023-11-30','2023-12-20',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"12-20-2023\",\"anula_comp_rechazado\":\"N\"}','2023-12-20 22:23:19','2023-12-20 22:23:21','73510248124601','2023-12-23','940','2023-12-23',40815,40865,4,6,NULL,NULL,NULL,NULL,0.00,20000.00,1,785.00,NULL),(163,9042,'2023-12-14','2023-11-01','2023-11-30','2023-12-21',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"12-21-2023\",\"anula_comp_rechazado\":\"N\"}','2023-12-21 22:21:02','2023-12-21 22:21:05','73510388324785','2023-12-24','941','2023-12-24',40815,40885,4,1,NULL,NULL,NULL,NULL,0.00,18500.00,1,785.00,NULL),(164,9042,'2023-12-15','2023-11-01','2023-11-30','2023-12-26',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"12-26-2023\",\"anula_comp_rechazado\":\"N\"}','2023-12-26 12:44:08','2023-12-26 12:44:11',NULL,NULL,NULL,NULL,40815,40894,4,1,NULL,NULL,NULL,NULL,0.00,13500.00,1,786.00,'2023-12-26 12:44:11');
INSERT INTO `fact_elec_receipts` VALUES (165,9042,'2023-12-18','2023-11-01','2023-11-30','2023-12-26',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"12-26-2023\",\"anula_comp_rechazado\":\"N\"}','2023-12-26 12:44:41','2023-12-26 12:44:43','73520820699216','2023-12-28','942','2023-12-28',40815,40894,4,1,NULL,NULL,NULL,NULL,0.00,13500.00,1,786.00,NULL),(166,9042,'2023-12-18','2023-11-01','2023-11-30','2023-12-27',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"12-27-2023\",\"anula_comp_rechazado\":\"N\"}','2023-12-27 14:33:28','2023-12-27 14:33:31','73520974960115','2023-12-28','943','2023-12-28',40815,40870,4,1,NULL,NULL,NULL,NULL,0.00,41000.00,1,787.00,NULL),(167,9042,'2023-12-29','2023-11-01','2023-12-31','2024-01-08',3,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"01-08-2024\",\"anula_comp_rechazado\":\"N\"}','2024-01-08 18:27:28','2024-01-08 18:27:32','74020327546175','2024-01-08','944','2024-01-08',40815,40863,4,1,NULL,NULL,NULL,NULL,0.00,87630.00,1,795.00,NULL),(168,9042,'2024-01-08','2023-11-01','2023-12-31','2024-01-08',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"01-08-2024\",\"anula_comp_rechazado\":\"N\"}','2024-01-08 18:46:31','2024-01-08 18:46:33','74020330686839','2024-01-18','945','2024-01-18',40815,40897,4,1,NULL,NULL,NULL,NULL,0.00,33000.00,1,795.00,NULL),(169,9042,'2024-01-08','2023-12-01','2023-12-31','2024-01-08',2,3,7,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"01-08-2024\",\"anula_comp_rechazado\":\"N\"}','2024-01-08 18:48:39','2024-01-08 18:48:40','74020331045194','2024-01-18','946','2024-01-18',40815,40863,4,1,NULL,NULL,NULL,NULL,0.00,87630.00,1,795.00,NULL);

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

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

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

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

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

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

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


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

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

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


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

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

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


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

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

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


--
-- Table structure for table `forma_de_entrega`
--

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

INSERT INTO `ganan_ddjj_detail_anticipos` VALUES (1,8522,1,40718,1,0.00,'2023-03-01 22:21:44','2023-03-01 22:21:44',NULL),(2,8522,1,40718,2,0.00,'2023-03-01 22:21:44','2023-03-01 22:21:44',NULL),(3,8522,1,40718,3,0.00,'2023-03-01 22:21:44','2023-03-01 22:21:44',NULL),(4,9042,2,40816,1,0.00,'2023-10-12 10:52:23','2023-10-12 10:52:23',NULL),(5,9042,2,40816,2,0.00,'2023-10-12 10:52:23','2023-10-12 10:52:23',NULL),(6,9042,2,40816,3,0.00,'2023-10-12 10:52:23','2023-10-12 10:52:23',NULL);

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

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

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

INSERT INTO `ganan_ddjj_detail_deducciones` VALUES (1,8522,1,40718,110,323232.32,NULL,'2023-03-01 22:21:44','2023-03-01 22:21:44',NULL),(2,8522,1,40718,111,0.00,NULL,'2023-03-01 22:21:44','2023-03-01 22:21:44',NULL),(3,8522,1,40718,112,0.00,NULL,'2023-03-01 22:21:44','2023-03-01 22:21:44',NULL),(4,8522,1,40718,113,0.00,NULL,'2023-03-01 22:21:44','2023-03-01 22:21:44',NULL),(5,8522,1,40718,114,0.00,NULL,'2023-03-01 22:21:44','2023-03-01 22:21:44',NULL),(6,8522,1,40718,115,0.00,NULL,'2023-03-01 22:21:44','2023-03-01 22:21:44',NULL),(7,8522,1,40718,116,0.00,NULL,'2023-03-01 22:21:44','2023-03-01 22:21:44',NULL),(8,8522,1,40718,117,0.00,NULL,'2023-03-01 22:21:44','2023-03-01 22:21:44',NULL),(9,8522,1,40718,118,0.00,NULL,'2023-03-01 22:21:44','2023-03-01 22:21:44',NULL),(10,8522,1,40718,119,0.00,NULL,'2023-03-01 22:21:44','2023-03-01 22:21:44',NULL),(11,8522,1,40718,120,0.00,NULL,'2023-03-01 22:21:44','2023-03-01 22:21:44',NULL),(12,8522,1,40718,121,0.00,NULL,'2023-03-01 22:21:44','2023-03-01 22:21:44',NULL),(13,8522,1,40718,122,0.00,NULL,'2023-03-01 22:21:44','2023-03-01 22:21:44',NULL),(14,8522,1,40718,123,0.00,NULL,'2023-03-01 22:21:44','2023-03-01 22:21:44',NULL),(15,8522,1,40718,124,0.00,NULL,'2023-03-01 22:21:44','2023-03-01 22:21:44',NULL),(16,8522,1,40718,125,0.00,NULL,'2023-03-01 22:21:44','2023-03-01 22:21:44',NULL),(17,8522,1,40718,126,0.00,NULL,'2023-03-01 22:21:44','2023-03-01 22:21:44',NULL),(18,8522,1,40718,127,0.00,NULL,'2023-03-01 22:21:44','2023-03-01 22:21:44',NULL),(19,8522,1,40718,150,0.00,NULL,'2023-03-01 22:21:44','2023-03-01 22:21:44',NULL),(20,9042,2,40816,151,0.00,'','2023-10-12 10:52:22','2023-10-12 10:52:22',NULL),(21,9042,2,40816,152,0.00,'','2023-10-12 10:52:22','2023-10-12 10:52:22',NULL),(22,9042,2,40816,153,0.00,'','2023-10-12 10:52:22','2023-10-12 10:52:22',NULL),(23,9042,2,40816,154,0.00,'','2023-10-12 10:52:22','2023-10-12 10:52:22',NULL),(24,9042,2,40816,155,0.00,'','2023-10-12 10:52:22','2023-10-12 10:52:22',NULL),(25,9042,2,40816,156,0.00,'','2023-10-12 10:52:22','2023-10-12 10:52:22',NULL),(26,9042,2,40816,157,0.00,'','2023-10-12 10:52:22','2023-10-12 10:52:22',NULL),(27,9042,2,40816,158,0.00,'','2023-10-12 10:52:22','2023-10-12 10:52:22',NULL),(28,9042,2,40816,159,0.00,'','2023-10-12 10:52:22','2023-10-12 10:52:22',NULL),(29,9042,2,40816,160,0.00,'','2023-10-12 10:52:22','2023-10-12 10:52:22',NULL),(30,9042,2,40816,161,0.00,'','2023-10-12 10:52:22','2023-10-12 10:52:22',NULL),(31,9042,2,40816,162,0.00,'','2023-10-12 10:52:22','2023-10-12 10:52:22',NULL),(32,9042,2,40816,163,0.00,'','2023-10-12 10:52:22','2023-10-12 10:52:22',NULL),(33,9042,2,40816,164,0.00,'','2023-10-12 10:52:22','2023-10-12 10:52:22',NULL),(34,9042,2,40816,165,0.00,'','2023-10-12 10:52:22','2023-10-12 10:52:22',NULL),(35,9042,2,40816,166,0.00,'','2023-10-12 10:52:22','2023-10-12 10:52:22',NULL),(36,9042,2,40816,167,0.00,'','2023-10-12 10:52:22','2023-10-12 10:52:22',NULL),(37,9042,2,40816,168,0.00,'','2023-10-12 10:52:22','2023-10-12 10:52:22',NULL),(38,9042,2,40816,169,0.00,'','2023-10-12 10:52:23','2023-10-12 10:52:23',NULL),(39,9042,2,40816,170,0.00,'','2023-10-12 10:52:23','2023-10-12 10:52:23',NULL),(40,9042,2,40816,171,0.00,'','2023-10-12 10:52:23','2023-10-12 10:52:23',NULL),(41,9042,2,40816,172,0.00,'','2023-10-12 10:52:23','2023-10-12 10:52:23',NULL);

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

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

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

INSERT INTO `ganan_ddjj_detail_ing_egr` VALUES (1,8522,1,40718,2,1,1,11111111.11,NULL,'2023-03-01 22:21:44','2023-03-01 22:21:44',NULL),(2,8522,1,40718,2,2,1,0.00,NULL,'2023-03-01 22:21:44','2023-03-01 22:21:44',NULL),(3,8522,1,40718,2,3,1,0.00,NULL,'2023-03-01 22:21:44','2023-03-01 22:21:44',NULL),(4,8522,1,40718,2,4,1,0.00,NULL,'2023-03-01 22:21:44','2023-03-01 22:21:44',NULL),(5,8522,1,40718,2,1,2,0.00,NULL,'2023-03-01 22:21:44','2023-03-01 22:21:44',NULL),(6,8522,1,40718,2,2,2,0.00,NULL,'2023-03-01 22:21:44','2023-03-01 22:21:44',NULL),(7,8522,1,40718,2,3,2,0.00,NULL,'2023-03-01 22:21:44','2023-03-01 22:21:44',NULL),(8,8522,1,40718,2,4,2,0.00,NULL,'2023-03-01 22:21:44','2023-03-01 22:21:44',NULL),(9,8522,1,40718,3,1,1,0.00,NULL,'2023-03-01 22:21:44','2023-03-01 22:21:44',NULL),(10,8522,1,40718,3,2,1,0.00,NULL,'2023-03-01 22:21:44','2023-03-01 22:21:44',NULL),(11,8522,1,40718,3,3,1,0.00,NULL,'2023-03-01 22:21:44','2023-03-01 22:21:44',NULL),(12,8522,1,40718,3,4,1,0.00,NULL,'2023-03-01 22:21:44','2023-03-01 22:21:44',NULL),(13,8522,1,40718,3,1,2,0.00,NULL,'2023-03-01 22:21:44','2023-03-01 22:21:44',NULL),(14,8522,1,40718,3,2,2,0.00,NULL,'2023-03-01 22:21:44','2023-03-01 22:21:44',NULL),(15,8522,1,40718,3,3,2,0.00,NULL,'2023-03-01 22:21:44','2023-03-01 22:21:44',NULL),(16,8522,1,40718,3,4,2,0.00,NULL,'2023-03-01 22:21:44','2023-03-01 22:21:44',NULL),(17,9042,2,40816,2,1,1,0.00,'','2023-10-12 10:52:22','2023-10-12 10:52:22',NULL),(18,9042,2,40816,2,2,1,0.00,'','2023-10-12 10:52:22','2023-10-12 10:52:22',NULL),(19,9042,2,40816,2,3,1,0.00,'','2023-10-12 10:52:22','2023-10-12 10:52:22',NULL),(20,9042,2,40816,2,4,1,0.00,'','2023-10-12 10:52:22','2023-10-12 10:52:22',NULL),(21,9042,2,40816,2,1,2,0.00,'','2023-10-12 10:52:22','2023-10-12 10:52:22',NULL),(22,9042,2,40816,2,2,2,0.00,'','2023-10-12 10:52:22','2023-10-12 10:52:22',NULL),(23,9042,2,40816,2,3,2,0.00,'','2023-10-12 10:52:22','2023-10-12 10:52:22',NULL),(24,9042,2,40816,2,4,2,0.00,'','2023-10-12 10:52:22','2023-10-12 10:52:22',NULL),(25,9042,2,40816,3,1,1,0.00,'','2023-10-12 10:52:22','2023-10-12 10:52:22',NULL),(26,9042,2,40816,3,2,1,0.00,'','2023-10-12 10:52:22','2023-10-12 10:52:22',NULL),(27,9042,2,40816,3,3,1,0.00,'','2023-10-12 10:52:22','2023-10-12 10:52:22',NULL),(28,9042,2,40816,3,4,1,0.00,'','2023-10-12 10:52:22','2023-10-12 10:52:22',NULL),(29,9042,2,40816,3,1,2,0.00,'','2023-10-12 10:52:22','2023-10-12 10:52:22',NULL),(30,9042,2,40816,3,2,2,0.00,'','2023-10-12 10:52:22','2023-10-12 10:52:22',NULL),(31,9042,2,40816,3,3,2,0.00,'','2023-10-12 10:52:22','2023-10-12 10:52:22',NULL),(32,9042,2,40816,3,4,2,0.00,'','2023-10-12 10:52:22','2023-10-12 10:52:22',NULL);

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

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

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

INSERT INTO `ganan_ddjjs` VALUES (1,8522,2021,40718,11111111.11,0.00,0.00,0.00,323232.32,10787878.79,3644756.31,3644756.31,0.00,NULL,'2023-03-01 22:21:44','2023-03-01 22:21:44',NULL),(2,9042,2023,40816,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,NULL,'2023-10-12 10:52:22','2023-10-12 10:52:22',NULL);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

INSERT INTO `inv_combos` VALUES (1,3,1,1,'25','Producto #1',NULL,NULL,NULL),(2,3,2,1,'101','Producto #2',NULL,NULL,NULL);

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

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

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

INSERT INTO `inv_control_stock` VALUES (1,8522,40718,'2023-03-01 11:49:38','2023-03-01 11:49:38',NULL);

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

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

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

INSERT INTO `inv_control_stock_detail` VALUES (1,8522,40718,1,2,325.00,295.00,-30.00,5000.00,-150000.00,'2023-03-01 11:49:38','2023-03-01 11:49:38',NULL);

--
-- Table structure for table `inv_depositos`
--

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

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

INSERT INTO `inv_depositos` VALUES (1,NULL,40718,'Deposito 1',1,NULL,NULL,NULL);

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

CREATE TABLE `inv_descarga_details` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `inv_descarga_id` bigint(20) unsigned DEFAULT NULL,
  `inv_producto_id` bigint(20) unsigned DEFAULT NULL,
  `cantidades` decimal(16,2) NOT NULL DEFAULT '0.00',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_descarga_details_person_id_foreign` (`person_id`),
  KEY `inv_descarga_details_inv_producto_id_foreign` (`inv_producto_id`),
  KEY `inv_descarga_details_inv_descarga_id_foreign` (`inv_descarga_id`),
  CONSTRAINT `inv_descarga_details_inv_descarga_id_foreign` FOREIGN KEY (`inv_descarga_id`) REFERENCES `inv_descargas` (`id`),
  CONSTRAINT `inv_descarga_details_inv_producto_id_foreign` FOREIGN KEY (`inv_producto_id`) REFERENCES `inv_productos` (`id`),
  CONSTRAINT `inv_descarga_details_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


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

CREATE TABLE `inv_descargas` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `inv_orden_trabajo_gastos_tipo_id` bigint(20) unsigned DEFAULT NULL,
  `syj_empleado_id` int(10) unsigned DEFAULT NULL,
  `comentario` text COLLATE utf8mb4_unicode_ci,
  `fecha` datetime NOT NULL DEFAULT '2023-05-25 13:19:21',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_descargas_person_id_foreign` (`person_id`),
  KEY `inv_descargas_inv_orden_trabajo_gastos_tipo_id_foreign` (`inv_orden_trabajo_gastos_tipo_id`),
  KEY `inv_descargas_syj_empleado_id_foreign` (`syj_empleado_id`),
  CONSTRAINT `inv_descargas_inv_orden_trabajo_gastos_tipo_id_foreign` FOREIGN KEY (`inv_orden_trabajo_gastos_tipo_id`) REFERENCES `inv_orden_trabajo_gastos_tipos` (`id`),
  CONSTRAINT `inv_descargas_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `inv_descargas_syj_empleado_id_foreign` FOREIGN KEY (`syj_empleado_id`) REFERENCES `syj_empleados` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_descargas`
--


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

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

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

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

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

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

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

INSERT INTO `inv_indicadores_persons` VALUES (1,NULL,40719,1,0.00,NULL,NULL,NULL),(2,NULL,40718,1,0.00,NULL,'2023-03-01 16:20:46','2023-03-01 16:20:46'),(3,NULL,40718,1,0.00,NULL,'2023-03-01 16:20:49','2023-03-01 16:20:49'),(4,NULL,40718,2,0.00,NULL,'2023-03-01 16:20:49','2023-03-01 16:20:49'),(5,NULL,40718,1,0.00,NULL,NULL,NULL),(6,NULL,40718,2,0.00,NULL,NULL,NULL),(7,NULL,40718,3,0.00,NULL,NULL,NULL),(8,NULL,40815,1,0.00,NULL,'2023-05-29 23:41:19','2023-05-29 23:41:19'),(9,NULL,40815,1,0.00,NULL,'2023-05-29 23:41:23','2023-05-29 23:41:23'),(10,NULL,40815,2,0.00,NULL,'2023-05-29 23:41:23','2023-05-29 23:41:23'),(11,NULL,40815,1,0.00,NULL,'2023-05-29 23:41:34','2023-05-29 23:41:34'),(12,NULL,40815,1,0.00,NULL,NULL,NULL),(13,NULL,40815,5,0.00,NULL,NULL,NULL);

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

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

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


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

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

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


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

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

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

INSERT INTO `inv_lista_de_precios` VALUES (1,8522,40718,'Lista General',0.00,1,'2023-03-01 11:43:01','2023-03-01 11:43:01',NULL);

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

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

--
-- Dumping data for table `inv_orden_trabajo_clasificacion`
--


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

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

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


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

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

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


--
-- Table structure for table `inv_orden_trabajo_files`
--

CREATE TABLE `inv_orden_trabajo_files` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `inv_orden_trabajo_id` bigint(20) unsigned DEFAULT NULL,
  `path` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `original_name` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_orden_trabajo_files_inv_orden_trabajo_id_foreign` (`inv_orden_trabajo_id`),
  CONSTRAINT `inv_orden_trabajo_files_inv_orden_trabajo_id_foreign` FOREIGN KEY (`inv_orden_trabajo_id`) REFERENCES `inv_orden_trabajos` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


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

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

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


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

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

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


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

CREATE TABLE `inv_orden_trabajo_horas` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `fecha` datetime NOT NULL DEFAULT '2023-08-15 23:37:31',
  `person_id` int(10) unsigned NOT NULL,
  `inv_orden_trabajo_id` bigint(20) unsigned DEFAULT NULL,
  `inv_orden_trabajo_horas_tipo_id` bigint(20) unsigned DEFAULT NULL,
  `inv_ot_hora_disponible_id` bigint(20) unsigned NOT NULL,
  `cantidad` decimal(16,2) NOT NULL DEFAULT '0.00',
  `importe` decimal(16,2) NOT NULL DEFAULT '0.00',
  `total` decimal(16,2) NOT NULL DEFAULT '0.00',
  `comentario` text COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_orden_trabajo_horas_person_id_foreign` (`person_id`),
  KEY `inv_orden_trabajo_horas_inv_orden_trabajo_horas_tipo_id_foreign` (`inv_orden_trabajo_horas_tipo_id`),
  KEY `inv_orden_trabajo_horas_inv_orden_trabajo_id_foreign` (`inv_orden_trabajo_id`),
  KEY `inv_orden_trabajo_horas_inv_ot_hora_disponible_id_foreign` (`inv_ot_hora_disponible_id`),
  CONSTRAINT `inv_orden_trabajo_horas_inv_orden_trabajo_horas_tipo_id_foreign` FOREIGN KEY (`inv_orden_trabajo_horas_tipo_id`) REFERENCES `inv_orden_trabajo_horas_tipos` (`id`),
  CONSTRAINT `inv_orden_trabajo_horas_inv_orden_trabajo_id_foreign` FOREIGN KEY (`inv_orden_trabajo_id`) REFERENCES `inv_orden_trabajos` (`id`),
  CONSTRAINT `inv_orden_trabajo_horas_inv_ot_hora_disponible_id_foreign` FOREIGN KEY (`inv_ot_hora_disponible_id`) REFERENCES `inv_orden_trabajo_horas_disponibles` (`id`),
  CONSTRAINT `inv_orden_trabajo_horas_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


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

CREATE TABLE `inv_orden_trabajo_horas_dispo` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `cargar_asignar` int(10) unsigned NOT NULL DEFAULT '1',
  `person_id` int(10) unsigned NOT NULL,
  `fecha` datetime NOT NULL DEFAULT '2023-08-22 21:47:56',
  `dc_estado_id` bigint(20) unsigned NOT NULL,
  `dc_firma_id` bigint(20) unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_orden_trabajo_horas_dispo_person_id_foreign` (`person_id`),
  KEY `inv_orden_trabajo_horas_dispo_dc_estado_id_foreign` (`dc_estado_id`),
  KEY `inv_orden_trabajo_horas_dispo_dc_firma_id_foreign` (`dc_firma_id`),
  CONSTRAINT `inv_orden_trabajo_horas_dispo_dc_estado_id_foreign` FOREIGN KEY (`dc_estado_id`) REFERENCES `dc_estados` (`id`),
  CONSTRAINT `inv_orden_trabajo_horas_dispo_dc_firma_id_foreign` FOREIGN KEY (`dc_firma_id`) REFERENCES `dc_firmas` (`id`),
  CONSTRAINT `inv_orden_trabajo_horas_dispo_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_orden_trabajo_horas_dispo`
--


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

CREATE TABLE `inv_orden_trabajo_horas_disponibles` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `inv_orden_trabajo_horas_dispo_id` bigint(20) unsigned NOT NULL,
  `inv_orden_trabajo_id` bigint(20) unsigned DEFAULT NULL,
  `fecha` datetime NOT NULL DEFAULT '2023-08-15 23:37:31',
  `inv_orden_trabajo_horas_tipo_id` bigint(20) unsigned DEFAULT NULL,
  `cantidad` decimal(16,2) NOT NULL DEFAULT '0.00',
  `comentario` text COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_orden_trabajo_horas_disponibles_person_id_foreign` (`person_id`),
  KEY `inv_orden_trabajo_horas_disponibles_inv_orden_trabajo_id_foreign` (`inv_orden_trabajo_id`),
  KEY `inv_ot_hs_tipo_dis` (`inv_orden_trabajo_horas_tipo_id`),
  KEY `inv_ot_horas_dispo_id` (`inv_orden_trabajo_horas_dispo_id`),
  CONSTRAINT `inv_orden_trabajo_horas_disponibles_inv_orden_trabajo_id_foreign` FOREIGN KEY (`inv_orden_trabajo_id`) REFERENCES `inv_orden_trabajos` (`id`),
  CONSTRAINT `inv_orden_trabajo_horas_disponibles_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `inv_ot_horas_dispo_id` FOREIGN KEY (`inv_orden_trabajo_horas_dispo_id`) REFERENCES `inv_orden_trabajo_horas_dispo` (`id`),
  CONSTRAINT `inv_ot_hs_tipo_dis` FOREIGN KEY (`inv_orden_trabajo_horas_tipo_id`) REFERENCES `inv_orden_trabajo_horas_tipos` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


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

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

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


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

CREATE TABLE `inv_orden_trabajo_productos` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `inv_orden_trabajo_id` bigint(20) unsigned DEFAULT NULL,
  `inv_producto_id` bigint(20) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned DEFAULT NULL,
  `fecha` datetime NOT NULL DEFAULT '2023-02-16 08:53:00',
  `cantidades` decimal(16,2) NOT NULL DEFAULT '0.00',
  `importe` decimal(16,2) NOT NULL DEFAULT '1.00',
  `total` decimal(16,2) NOT NULL DEFAULT '1.00',
  `comentario` text COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_orden_trabajo_productos_person_id_foreign` (`person_id`),
  KEY `inv_orden_trabajo_productos_inv_orden_trabajo_id_foreign` (`inv_orden_trabajo_id`),
  KEY `inv_orden_trabajo_productos_inv_producto_id_foreign` (`inv_producto_id`),
  KEY `inv_orden_trabajo_productos_dc_orden_id_foreign` (`dc_orden_id`),
  CONSTRAINT `inv_orden_trabajo_productos_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `inv_orden_trabajo_productos_inv_orden_trabajo_id_foreign` FOREIGN KEY (`inv_orden_trabajo_id`) REFERENCES `inv_orden_trabajos` (`id`),
  CONSTRAINT `inv_orden_trabajo_productos_inv_producto_id_foreign` FOREIGN KEY (`inv_producto_id`) REFERENCES `inv_productos` (`id`),
  CONSTRAINT `inv_orden_trabajo_productos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


--
-- Table structure for table `inv_orden_trabajo_servicios`
--

CREATE TABLE `inv_orden_trabajo_servicios` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `inv_orden_trabajo_id` bigint(20) unsigned DEFAULT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `dc_orden_detail_id` bigint(20) unsigned NOT NULL,
  `fecha` datetime NOT NULL DEFAULT '2023-08-14 22:28:22',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_orden_trabajo_servicios_person_id_foreign` (`person_id`),
  KEY `inv_orden_trabajo_servicios_inv_orden_trabajo_id_foreign` (`inv_orden_trabajo_id`),
  KEY `inv_orden_trabajo_servicios_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `inv_orden_trabajo_servicios_dc_orden_detail_id_foreign` (`dc_orden_detail_id`),
  CONSTRAINT `inv_orden_trabajo_servicios_dc_orden_detail_id_foreign` FOREIGN KEY (`dc_orden_detail_id`) REFERENCES `dc_ordenes_details` (`id`),
  CONSTRAINT `inv_orden_trabajo_servicios_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `inv_orden_trabajo_servicios_inv_orden_trabajo_id_foreign` FOREIGN KEY (`inv_orden_trabajo_id`) REFERENCES `inv_orden_trabajos` (`id`),
  CONSTRAINT `inv_orden_trabajo_servicios_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_orden_trabajo_servicios`
--


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

CREATE TABLE `inv_orden_trabajo_tareas` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `fecha` datetime NOT NULL DEFAULT '2023-09-14 21:52:35',
  `person_id` int(10) unsigned NOT NULL,
  `inv_orden_trabajo_id` bigint(20) unsigned NOT NULL,
  `syj_centro_costo_id` int(10) unsigned NOT NULL,
  `syj_empleado_id` int(10) unsigned NOT NULL,
  `descripcion` longtext COLLATE utf8mb4_unicode_ci,
  `is_terminada` tinyint(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_orden_trabajo_tareas_person_id_foreign` (`person_id`),
  KEY `inv_orden_trabajo_tareas_inv_orden_trabajo_id_foreign` (`inv_orden_trabajo_id`),
  KEY `inv_orden_trabajo_tareas_syj_centro_costo_id_foreign` (`syj_centro_costo_id`),
  KEY `inv_orden_trabajo_tareas_syj_empleado_id_foreign` (`syj_empleado_id`),
  CONSTRAINT `inv_orden_trabajo_tareas_inv_orden_trabajo_id_foreign` FOREIGN KEY (`inv_orden_trabajo_id`) REFERENCES `inv_orden_trabajos` (`id`),
  CONSTRAINT `inv_orden_trabajo_tareas_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `inv_orden_trabajo_tareas_syj_centro_costo_id_foreign` FOREIGN KEY (`syj_centro_costo_id`) REFERENCES `syj_centros_costos` (`id`),
  CONSTRAINT `inv_orden_trabajo_tareas_syj_empleado_id_foreign` FOREIGN KEY (`syj_empleado_id`) REFERENCES `syj_empleados` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_orden_trabajo_tareas`
--


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

CREATE TABLE `inv_orden_trabajos` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_relationed` int(10) unsigned DEFAULT NULL,
  `inv_ot_clasificacion_id` int(10) unsigned DEFAULT NULL,
  `patente` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `rodado_id` bigint(20) unsigned DEFAULT NULL,
  `fecha` datetime NOT NULL DEFAULT '2023-02-16 08:52:59',
  `fecha_cierre` datetime DEFAULT NULL,
  `numero` int(10) unsigned NOT NULL,
  `responsable` text COLLATE utf8mb4_unicode_ci,
  `syj_empleado_id` int(10) unsigned DEFAULT NULL,
  `importe` decimal(16,2) NOT NULL DEFAULT '0.00',
  `titulo` text COLLATE utf8mb4_unicode_ci,
  `descripcion` longtext COLLATE utf8mb4_unicode_ci,
  `cerrada` tinyint(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_orden_trabajos_person_id_foreign` (`person_id`),
  KEY `inv_orden_trabajos_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `inv_orden_trabajos_inv_ot_clasificacion_id_foreign` (`inv_ot_clasificacion_id`),
  KEY `inv_orden_trabajos_rodado_id_foreign` (`rodado_id`),
  KEY `inv_orden_trabajos_syj_empleado_id_foreign` (`syj_empleado_id`),
  CONSTRAINT `inv_orden_trabajos_inv_ot_clasificacion_id_foreign` FOREIGN KEY (`inv_ot_clasificacion_id`) REFERENCES `inv_orden_trabajo_clasificacion` (`id`),
  CONSTRAINT `inv_orden_trabajos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `inv_orden_trabajos_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`),
  CONSTRAINT `inv_orden_trabajos_rodado_id_foreign` FOREIGN KEY (`rodado_id`) REFERENCES `rodados` (`id`),
  CONSTRAINT `inv_orden_trabajos_syj_empleado_id_foreign` FOREIGN KEY (`syj_empleado_id`) REFERENCES `syj_empleados` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


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

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

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


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

CREATE TABLE `inv_ot_horas_importe_disponible` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `inv_ot_horas_importe_dispo_id` bigint(20) unsigned NOT NULL,
  `inv_orden_trabajo_horas_tipo_id` bigint(20) unsigned NOT NULL,
  `transactionable_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `transactionable_id` int(10) unsigned DEFAULT NULL,
  `importe` decimal(16,2) NOT NULL DEFAULT '0.00',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_ot_h_imp_dispo_id` (`inv_ot_horas_importe_dispo_id`),
  KEY `inv_ot_h_tipo_id` (`inv_orden_trabajo_horas_tipo_id`),
  CONSTRAINT `inv_ot_h_imp_dispo_id` FOREIGN KEY (`inv_ot_horas_importe_dispo_id`) REFERENCES `inv_ot_horas_importe_dispo` (`id`),
  CONSTRAINT `inv_ot_h_tipo_id` FOREIGN KEY (`inv_orden_trabajo_horas_tipo_id`) REFERENCES `inv_orden_trabajo_horas_tipos` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


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

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

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


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

CREATE TABLE `inv_ot_link_facts` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `inv_ot_link_id` bigint(20) unsigned NOT NULL,
  `fact_elec_receipt_id` int(10) unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_ot_link_facts_inv_ot_link_id_foreign` (`inv_ot_link_id`),
  KEY `inv_ot_link_facts_fact_elec_receipt_id_foreign` (`fact_elec_receipt_id`),
  CONSTRAINT `inv_ot_link_facts_fact_elec_receipt_id_foreign` FOREIGN KEY (`fact_elec_receipt_id`) REFERENCES `fact_elec_receipts` (`id`),
  CONSTRAINT `inv_ot_link_facts_inv_ot_link_id_foreign` FOREIGN KEY (`inv_ot_link_id`) REFERENCES `inv_ot_link` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


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

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

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


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

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

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


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

CREATE TABLE `inv_producto_fotos` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `inv_producto_id` bigint(20) unsigned NOT NULL,
  `foto` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_producto_fotos_inv_producto_id_foreign` (`inv_producto_id`),
  CONSTRAINT `inv_producto_fotos_inv_producto_id_foreign` FOREIGN KEY (`inv_producto_id`) REFERENCES `inv_productos` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


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

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

--
-- Dumping data for table `inv_producto_prioridad`
--

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

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

CREATE TABLE `inv_productos` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT NULL,
  `inv_producto_tipo_id` bigint(20) unsigned NOT NULL DEFAULT '1',
  `inv_deposito_id` bigint(20) unsigned NOT NULL DEFAULT '1',
  `person_id` int(10) unsigned NOT NULL,
  `person_prov_id` int(10) unsigned DEFAULT NULL,
  `descripcion` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `codigo_externo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `codigo_interno` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `fac_ele_unidad_medida_id` int(10) unsigned NOT NULL DEFAULT '8',
  `inv_rubro_sub_id` bigint(20) unsigned NOT NULL,
  `inv_ubicacion_id` bigint(20) unsigned DEFAULT NULL,
  `moneda_id` int(10) unsigned NOT NULL DEFAULT '1',
  `costo` decimal(16,2) NOT NULL DEFAULT '0.00',
  `margen` decimal(16,2) NOT NULL DEFAULT '0.00',
  `precio_sin_iva` decimal(16,2) NOT NULL DEFAULT '0.00',
  `system_tax_id` int(10) unsigned DEFAULT NULL,
  `iva` decimal(16,2) NOT NULL DEFAULT '0.00',
  `precio_final` decimal(16,2) NOT NULL DEFAULT '0.00',
  `inv_lista_de_precio_id` bigint(20) unsigned DEFAULT NULL,
  `inv_prioridad_id` bigint(20) unsigned NOT NULL DEFAULT '3',
  `foto` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `stock` decimal(16,2) NOT NULL DEFAULT '0.00',
  `stock_minimo` decimal(16,2) NOT NULL DEFAULT '0.00',
  `fecha_vto` datetime DEFAULT NULL,
  `sku` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `texto_corto` text COLLATE utf8mb4_unicode_ci,
  `texto_largo` text COLLATE utf8mb4_unicode_ci,
  `show_in_catalogo` tinyint(1) NOT NULL DEFAULT '0',
  `habilitado` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `inv_productos_person_id_foreign` (`person_id`),
  KEY `inv_productos_person_prov_id_foreign` (`person_prov_id`),
  KEY `inv_productos_fac_ele_unidad_medida_id_foreign` (`fac_ele_unidad_medida_id`),
  KEY `inv_productos_inv_rubro_sub_id_foreign` (`inv_rubro_sub_id`),
  KEY `inv_productos_inv_ubicacion_id_foreign` (`inv_ubicacion_id`),
  KEY `inv_productos_system_tax_id_foreign` (`system_tax_id`),
  KEY `inv_productos_inv_lista_de_precio_id_foreign` (`inv_lista_de_precio_id`),
  KEY `inv_productos_inv_producto_tipo_id_foreign` (`inv_producto_tipo_id`),
  KEY `inv_productos_moneda_id_foreign` (`moneda_id`),
  KEY `inv_productos_inv_deposito_id_foreign` (`inv_deposito_id`),
  KEY `inv_productos_inv_prioridad_id_foreign` (`inv_prioridad_id`),
  CONSTRAINT `inv_productos_fac_ele_unidad_medida_id_foreign` FOREIGN KEY (`fac_ele_unidad_medida_id`) REFERENCES `fac_elec_unidad_medidas` (`id`),
  CONSTRAINT `inv_productos_inv_deposito_id_foreign` FOREIGN KEY (`inv_deposito_id`) REFERENCES `inv_depositos` (`id`),
  CONSTRAINT `inv_productos_inv_lista_de_precio_id_foreign` FOREIGN KEY (`inv_lista_de_precio_id`) REFERENCES `inv_lista_de_precios` (`id`),
  CONSTRAINT `inv_productos_inv_prioridad_id_foreign` FOREIGN KEY (`inv_prioridad_id`) REFERENCES `inv_producto_prioridad` (`id`),
  CONSTRAINT `inv_productos_inv_producto_tipo_id_foreign` FOREIGN KEY (`inv_producto_tipo_id`) REFERENCES `inv_productos_tipos` (`id`),
  CONSTRAINT `inv_productos_inv_rubro_sub_id_foreign` FOREIGN KEY (`inv_rubro_sub_id`) REFERENCES `inv_rubros_sub` (`id`),
  CONSTRAINT `inv_productos_inv_ubicacion_id_foreign` FOREIGN KEY (`inv_ubicacion_id`) REFERENCES `inv_ubicaciones` (`id`),
  CONSTRAINT `inv_productos_moneda_id_foreign` FOREIGN KEY (`moneda_id`) REFERENCES `monedas` (`id`),
  CONSTRAINT `inv_productos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `inv_productos_person_prov_id_foreign` FOREIGN KEY (`person_prov_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `inv_productos_system_tax_id_foreign` FOREIGN KEY (`system_tax_id`) REFERENCES `system_taxes` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `inv_productos`
--

INSERT INTO `inv_productos` VALUES (1,8522,1,1,40718,40814,'Producto #1',NULL,'25',8,1,1,1,1500.00,10.50,1657.50,2,348.08,2005.58,1,3,NULL,1000.00,250.00,NULL,NULL,NULL,NULL,0,1,'2023-03-01 11:44:58','2023-05-25 13:19:26',NULL),(2,8522,1,1,40718,40814,'Producto #2',NULL,'101',8,1,1,1,5000.00,5.00,5250.00,2,1102.50,6352.50,1,3,NULL,295.00,85.00,NULL,NULL,NULL,NULL,0,1,'2023-03-01 11:46:39','2023-05-25 13:19:26',NULL),(3,8522,2,1,40718,40814,'Combo Producto',NULL,'500',8,1,1,1,6000.00,5.00,6300.00,2,1323.00,7623.00,1,3,NULL,100.00,0.00,NULL,NULL,NULL,NULL,0,1,'2023-03-01 11:48:51','2023-05-25 13:19:26',NULL);

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

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

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

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

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

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

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

INSERT INTO `inv_rubros` VALUES (1,8522,40718,'General',1,'2023-03-01 11:43:29','2023-03-01 11:43:29',NULL);

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

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

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

INSERT INTO `inv_rubros_sub` VALUES (1,8522,40718,1,'#1',1,'2023-03-01 11:43:40','2023-03-01 11:43:40',NULL);

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

CREATE TABLE `inv_stock_movimientos` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `inv_product_id` bigint(20) unsigned NOT NULL,
  `movimiento` decimal(16,2) NOT NULL DEFAULT '0.00',
  `stock` decimal(16,2) NOT NULL DEFAULT '0.00',
  `costo` decimal(16,2) NOT NULL DEFAULT '0.00',
  `precio_sin_iva` decimal(16,2) NOT NULL DEFAULT '0.00',
  `precio_final` decimal(16,2) NOT NULL DEFAULT '0.00',
  `transactionable_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `transactionable_id` bigint(20) unsigned NOT NULL,
  `detalle` text COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `account_transactions_morph` (`transactionable_type`,`transactionable_id`),
  KEY `inv_stock_movimientos_person_id_foreign` (`person_id`),
  KEY `inv_stock_movimientos_inv_product_id_foreign` (`inv_product_id`),
  CONSTRAINT `inv_stock_movimientos_inv_product_id_foreign` FOREIGN KEY (`inv_product_id`) REFERENCES `inv_productos` (`id`),
  CONSTRAINT `inv_stock_movimientos_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `inv_stock_movimientos` VALUES (1,8522,40718,1,1000.00,1000.00,1500.00,1657.50,2005.58,'App\\Models\\Inventario\\InvProducto',1,NULL,'2023-03-01 11:44:58','2023-03-01 11:44:58',NULL),(2,8522,40718,2,325.00,325.00,5000.00,5250.00,6352.50,'App\\Models\\Inventario\\InvProducto',2,NULL,'2023-03-01 11:46:39','2023-03-01 11:46:39',NULL),(3,8522,40718,3,100.00,100.00,6000.00,6300.00,7623.00,'App\\Models\\Inventario\\InvProducto',3,NULL,'2023-03-01 11:48:51','2023-03-01 11:48:51',NULL),(4,8522,40718,2,-30.00,295.00,5000.00,5250.00,6352.50,'App\\Models\\Inventario\\InvControlStockDetail',1,NULL,'2023-03-01 11:49:38','2023-03-01 11:49:38',NULL);

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

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

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

INSERT INTO `inv_ubicaciones` VALUES (1,8522,40718,1,'Local Comercial',1,'2023-03-01 11:43:14','2023-05-25 13:19:26',NULL);

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

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

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

INSERT INTO `iva_agrupacion` VALUES (1,1,1,0.00,'Operaciones con Responsables Inscriptos',1,NULL,NULL,NULL),(2,1,2,0.00,'Operaciones con Consumidores finales, Exentos y No alcanzados',1,NULL,NULL,NULL),(3,1,3,0.00,'Operaciones no gravadas y exentas',1,NULL,NULL,NULL),(4,1,4,0.00,'Credito fiscal a restituir',1,NULL,NULL,NULL),(5,2,5,0.00,'Debito fiscal a restituir',1,NULL,NULL,NULL),(6,2,6,0.00,'Total Credito Fiscal',1,NULL,NULL,NULL),(7,2,7,0.00,'Total Operaciones que no Generan Credito Fiscal',1,NULL,NULL,NULL),(8,1,8,0.00,'Operaciones con Monotributistas - Regimen Simmplificado',1,'2023-02-16 08:52:59','2023-02-16 08:52:59',NULL);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

--
