-- Table structure for table `ctacte_bancos_datos`
--

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

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


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

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

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


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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

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

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

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


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

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

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


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

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

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

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

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

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

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

INSERT INTO `dc_estados` VALUES (1,NULL,'BORRADOR',1,NULL,'2023-08-07 00:14:33',NULL),(2,NULL,'TERMINADO',1,NULL,'2023-08-07 00:14:33',NULL),(3,NULL,'ELIMINADO',1,NULL,'2023-08-13 09:26:05',NULL),(4,NULL,'PAGADO',1,NULL,'2023-08-07 00:14:33','2023-08-07 00:14:33'),(5,NULL,'CONCILIADO',1,NULL,'2023-08-07 00:14:33','2023-08-07 00:14:33');

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

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

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

INSERT INTO `dc_firmas` VALUES (1,NULL,'NO',1,1,0,1,NULL,'2023-08-07 00:14:34',NULL),(2,NULL,'RECHAZADO',1,1,0,1,NULL,'2023-08-07 00:14:34',NULL),(3,NULL,'ACEPTADO',1,0,0,1,NULL,'2023-08-07 00:14:34',NULL),(4,NULL,'FALTAN FIRMAS',0,0,1,1,'2023-08-07 00:14:34','2023-08-07 00:14:34',NULL),(5,NULL,'EMITIDO',1,0,0,1,'2023-10-12 08:23:58','2023-10-12 08:23:58',NULL);

--
-- Table structure for table `dc_firmas_ordenes`
--

CREATE TABLE `dc_firmas_ordenes` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `user_id_que_firma` int(10) unsigned NOT NULL,
  `dc_firma_id` bigint(20) unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `dc_firmas_ordenes_person_id_foreign` (`person_id`),
  KEY `dc_firmas_ordenes_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_firmas_ordenes_dc_firma_id_foreign` (`dc_firma_id`),
  CONSTRAINT `dc_firmas_ordenes_dc_firma_id_foreign` FOREIGN KEY (`dc_firma_id`) REFERENCES `dc_firmas` (`id`),
  CONSTRAINT `dc_firmas_ordenes_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_firmas_ordenes_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_firmas_ordenes`
--


--
-- Table structure for table `dc_firmas_reglas`
--

CREATE TABLE `dc_firmas_reglas` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `dc_orden_id` bigint(20) unsigned NOT NULL,
  `importe` decimal(16,2) NOT NULL,
  `grupos_users_ids` longtext COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `dc_firmas_reglas_person_id_foreign` (`person_id`),
  KEY `dc_firmas_reglas_dc_orden_id_foreign` (`dc_orden_id`),
  CONSTRAINT `dc_firmas_reglas_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_firmas_reglas_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `dc_firmas_reglas`
--


--
-- Table structure for table `dc_orden_de_pago`
--

CREATE TABLE `dc_orden_de_pago` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `fecha` datetime NOT NULL DEFAULT '2023-09-28 16:42:42',
  `dc_orden_id` bigint(20) unsigned NOT NULL DEFAULT '10',
  `person_id` int(10) unsigned NOT NULL,
  `person_id_relationed` int(10) unsigned NOT NULL,
  `request` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `dc_estado_id` bigint(20) unsigned NOT NULL DEFAULT '1',
  `dc_firma_id` bigint(20) unsigned NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `dc_orden_de_pago_person_id_foreign` (`person_id`),
  KEY `dc_orden_de_pago_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `dc_orden_de_pago_dc_orden_id_foreign` (`dc_orden_id`),
  KEY `dc_orden_de_pago_dc_firma_id_foreign` (`dc_firma_id`),
  KEY `dc_orden_de_pago_dc_estado_id_foreign` (`dc_estado_id`),
  CONSTRAINT `dc_orden_de_pago_dc_estado_id_foreign` FOREIGN KEY (`dc_estado_id`) REFERENCES `dc_estados` (`id`),
  CONSTRAINT `dc_orden_de_pago_dc_firma_id_foreign` FOREIGN KEY (`dc_firma_id`) REFERENCES `dc_firmas` (`id`),
  CONSTRAINT `dc_orden_de_pago_dc_orden_id_foreign` FOREIGN KEY (`dc_orden_id`) REFERENCES `dc_ordenes` (`id`),
  CONSTRAINT `dc_orden_de_pago_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `dc_orden_de_pago_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


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

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

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


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

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

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


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

CREATE TABLE `dc_ordenes` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `dc_orden_tipo_id` bigint(20) unsigned NOT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `person_id_relationed` int(10) unsigned DEFAULT NULL,
  `titulo` text COLLATE utf8mb4_unicode_ci,
  `sucursal` int(11) NOT NULL DEFAULT '1',
  `numero` int(11) NOT NULL,
  `sector` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `solicitante` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `syj_empleado_id` int(10) unsigned DEFAULT NULL,
  `fecha` date NOT NULL,
  `fecha_entrega` date DEFAULT NULL,
  `fecha_asignacion` datetime DEFAULT NULL,
  `fecha_cumplido` datetime DEFAULT NULL,
  `condicion_venta_id` int(10) unsigned DEFAULT NULL,
  `is_pago_adelantado` tinyint(1) DEFAULT NULL,
  `forma_de_entrega_id` int(10) unsigned DEFAULT NULL,
  `plazo_de_pago_id` int(10) unsigned DEFAULT NULL,
  `cantidades` decimal(16,2) NOT NULL,
  `moneda_id` int(10) unsigned NOT NULL DEFAULT '1',
  `cotizacion` decimal(16,2) NOT NULL DEFAULT '1.00',
  `neto` decimal(16,2) NOT NULL,
  `iva` decimal(16,2) NOT NULL,
  `total` decimal(16,2) NOT NULL,
  `facturada` decimal(16,2) NOT NULL DEFAULT '0.00',
  `comentario` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `dc_estado_id` bigint(20) unsigned NOT NULL,
  `inv_orden_trabajo_id` bigint(20) unsigned DEFAULT NULL,
  `conta_cc_id` bigint(20) unsigned DEFAULT NULL,
  `origendestinoable_type` text COLLATE utf8mb4_unicode_ci,
  `origendestinoable_id` int(10) unsigned DEFAULT NULL,
  `is_multiples_ot` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `dc_orden_origen_destino_id` bigint(20) unsigned DEFAULT NULL,
  `is_completado` tinyint(1) NOT NULL DEFAULT '0',
  `dc_firma_id` bigint(20) unsigned NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `dc_ordenes_dc_orden_tipo_id_foreign` (`dc_orden_tipo_id`),
  KEY `dc_ordenes_person_id_foreign` (`person_id`),
  KEY `dc_ordenes_person_id_relationed_foreign` (`person_id_relationed`),
  KEY `dc_ordenes_dc_estado_id_foreign` (`dc_estado_id`),
  KEY `dc_ordenes_conta_cc_id_foreign` (`conta_cc_id`),
  KEY `dc_ordenes_inv_orden_trabajo_id_foreign` (`inv_orden_trabajo_id`),
  KEY `dc_ordenes_dc_orden_origen_destino_id_foreign` (`dc_orden_origen_destino_id`),
  KEY `dc_ordenes_moneda_id_foreign` (`moneda_id`),
  KEY `dc_ordenes_dc_firma_id_foreign` (`dc_firma_id`),
  KEY `dc_ordenes_syj_empleado_id_foreign` (`syj_empleado_id`),
  CONSTRAINT `dc_ordenes_conta_cc_id_foreign` FOREIGN KEY (`conta_cc_id`) REFERENCES `conta_centro_costos` (`id`),
  CONSTRAINT `dc_ordenes_dc_estado_id_foreign` FOREIGN KEY (`dc_estado_id`) REFERENCES `dc_estados` (`id`),
  CONSTRAINT `dc_ordenes_dc_firma_id_foreign` FOREIGN KEY (`dc_firma_id`) REFERENCES `dc_firmas` (`id`),
  CONSTRAINT `dc_ordenes_dc_orden_origen_destino_id_foreign` FOREIGN KEY (`dc_orden_origen_destino_id`) REFERENCES `dc_ordenes_origen_destino` (`id`),
  CONSTRAINT `dc_ordenes_dc_orden_tipo_id_foreign` FOREIGN KEY (`dc_orden_tipo_id`) REFERENCES `dc_ordenes_tipos` (`id`),
  CONSTRAINT `dc_ordenes_inv_orden_trabajo_id_foreign` FOREIGN KEY (`inv_orden_trabajo_id`) REFERENCES `inv_orden_trabajos` (`id`),
  CONSTRAINT `dc_ordenes_moneda_id_foreign` FOREIGN KEY (`moneda_id`) REFERENCES `monedas` (`id`),
  CONSTRAINT `dc_ordenes_person_id_foreign` FOREIGN KEY (`person_id`) REFERENCES `persons` (`id`),
  CONSTRAINT `dc_ordenes_person_id_relationed_foreign` FOREIGN KEY (`person_id_relationed`) REFERENCES `persons` (`id`),
  CONSTRAINT `dc_ordenes_syj_empleado_id_foreign` FOREIGN KEY (`syj_empleado_id`) REFERENCES `syj_empleados` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


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

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

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


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

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

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


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

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

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


--
-- Table structure for table `dc_ordenes_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:35:33',NULL),(3,NULL,'Deposito','App\\Models\\Inventario\\InvDeposito',1,1,NULL,'2024-05-07 20:17:01',NULL),(4,NULL,'Empleado','App\\Models\\SyJEmpleado',0,0,NULL,'2023-07-03 22:16:37',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=15 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-15 09:55:56',NULL),(2,NULL,'ORDEN DE VENTAS',NULL,1,NULL,'2023-02-15 09:55:56',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:35:53',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:42:42','2023-09-28 16:42:42',NULL),(11,NULL,'ANULACION REQUERIMIENTOS',NULL,1,'2024-04-02 23:45:33','2024-04-02 23:45:33',NULL),(12,NULL,'ANULACION COMPRAS PRODUCTOS',NULL,1,'2024-04-02 23:45:33','2024-04-02 23:45:33',NULL),(13,NULL,'ANULACION COMPRAS SERVICIOS',NULL,1,'2024-04-02 23:45:33','2024-04-02 23:45:33',NULL),(14,NULL,'REMITO DE GASTO',NULL,1,'2024-05-07 20:17:01','2024-05-07 20:17:01',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 AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `fa_masiva` VALUES (4,40749,8520,'2023-04-10 12:38:10','2023-04-10 12:38:10',NULL);

--
-- 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 AUTO_INCREMENT=102 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `fa_masiva_detalle` VALUES (72,8520,4,40718,7,14,918,5,7,2,2,'Cuota mensual pilates',4800.00,NULL,NULL,NULL,NULL,3,NULL,'2023-04-01','2023-04-30','2023-04-30','2023-04-10 12:38:10','2023-05-05 11:18:42',NULL),(73,8520,4,40718,7,14,918,5,7,2,2,'Cuota mensual pilates',4800.00,NULL,NULL,NULL,NULL,3,NULL,'2023-04-01','2023-04-30','2023-04-30','2023-04-10 12:38:10','2023-05-05 11:18:42',NULL),(74,8520,4,40718,7,14,918,5,7,2,2,'Cuota mensual pilates',4800.00,NULL,NULL,NULL,NULL,3,NULL,'2023-04-01','2023-04-30','2023-04-30','2023-04-10 12:38:10','2023-05-05 11:18:42',NULL),(75,8520,4,40718,7,14,918,5,7,2,2,'Cuota mensual pilates',4800.00,NULL,NULL,NULL,NULL,3,NULL,'2023-04-01','2023-04-30','2023-04-30','2023-04-10 12:38:11','2023-05-05 11:18:42',NULL),(76,8520,4,40718,7,14,918,5,7,2,2,'Cuota mensual pilates',4800.00,NULL,NULL,NULL,NULL,3,NULL,'2023-04-01','2023-04-30','2023-04-30','2023-04-10 12:38:11','2023-05-05 11:18:42',NULL),(77,8520,4,40718,7,14,918,5,7,2,2,'Cuota mensual pilates',4800.00,NULL,NULL,NULL,NULL,3,NULL,'2023-04-01','2023-04-30','2023-04-30','2023-04-10 12:38:11','2023-05-05 11:18:42',NULL),(78,8520,4,40718,7,14,918,5,7,2,2,'Cuota mensual pilates',4800.00,NULL,NULL,NULL,NULL,3,NULL,'2023-04-01','2023-04-30','2023-04-30','2023-04-10 12:38:11','2023-05-05 11:18:42',NULL),(79,8520,4,40718,7,14,918,5,7,2,2,'Cuota mensual pilates',4800.00,NULL,NULL,NULL,NULL,3,NULL,'2023-04-01','2023-04-30','2023-04-30','2023-04-10 12:38:11','2023-05-05 11:18:42',NULL),(80,8520,4,40718,7,14,918,5,7,2,2,'Cuota mensual pilates',4800.00,NULL,NULL,NULL,NULL,3,NULL,'2023-04-01','2023-04-30','2023-04-30','2023-04-10 12:38:11','2023-05-05 11:18:42',NULL),(81,8520,4,40718,7,14,918,5,7,2,2,'Cuota mensual pilates',4800.00,NULL,NULL,NULL,NULL,3,NULL,'2023-04-01','2023-04-30','2023-04-30','2023-04-10 12:38:11','2023-05-05 11:18:42',NULL),(82,8520,4,40718,7,14,918,5,7,2,2,'Cuota mensual pilates',4800.00,NULL,NULL,NULL,NULL,3,NULL,'2023-04-01','2023-04-30','2023-04-30','2023-04-10 12:38:11','2023-05-05 11:18:42',NULL),(83,8520,4,40718,7,14,918,5,7,2,2,'Cuota mensual pilates',4800.00,NULL,NULL,NULL,NULL,3,NULL,'2023-04-01','2023-04-30','2023-04-30','2023-04-10 12:38:11','2023-05-05 11:18:42',NULL),(84,8520,4,40718,7,14,918,5,7,2,2,'Cuota mensual pilates',4800.00,NULL,NULL,NULL,NULL,3,NULL,'2023-04-01','2023-04-30','2023-04-30','2023-04-10 12:38:11','2023-05-05 11:18:42',NULL),(85,8520,4,40718,7,14,918,5,7,2,2,'Cuota mensual pilates',4800.00,NULL,NULL,NULL,NULL,3,NULL,'2023-04-01','2023-04-30','2023-04-30','2023-04-10 12:38:11','2023-05-05 11:18:42',NULL),(86,8520,4,40718,7,14,918,5,7,2,2,'Cuota mensual pilates',4800.00,NULL,NULL,NULL,NULL,3,NULL,'2023-04-01','2023-04-30','2023-04-30','2023-04-10 12:38:11','2023-05-05 11:18:42',NULL),(87,8520,4,40718,7,14,918,5,7,2,2,'Cuota mensual pilates',4200.00,NULL,NULL,NULL,NULL,3,NULL,'2023-04-01','2023-04-30','2023-04-30','2023-04-10 12:38:11','2023-05-05 11:18:42',NULL),(88,8520,4,40718,7,14,918,5,7,2,2,'Cuota mensual pilates',4200.00,NULL,NULL,NULL,NULL,3,NULL,'2023-04-01','2023-04-30','2023-04-30','2023-04-10 12:38:11','2023-05-05 11:18:42',NULL),(89,8520,4,40718,7,14,918,5,7,2,2,'Cuota mensual pilates',4200.00,NULL,NULL,NULL,NULL,3,NULL,'2023-04-01','2023-04-30','2023-04-30','2023-04-10 12:38:11','2023-05-05 11:18:42',NULL),(90,8520,4,40718,7,14,918,5,7,2,2,'Cuota mensual pilates',4200.00,NULL,NULL,NULL,NULL,3,NULL,'2023-04-01','2023-04-30','2023-04-30','2023-04-10 12:38:11','2023-05-05 11:18:42',NULL),(91,8520,4,40718,7,14,918,5,7,2,2,'Cuota mensual pilates',4200.00,NULL,NULL,NULL,NULL,3,NULL,'2023-04-01','2023-04-30','2023-04-30','2023-04-10 12:38:11','2023-05-05 11:18:42',NULL),(92,8520,4,40718,7,14,918,5,7,2,2,'Cuota mensual pilates',4200.00,NULL,NULL,NULL,NULL,3,NULL,'2023-04-01','2023-04-30','2023-04-30','2023-04-10 12:38:11','2023-05-05 11:18:42',NULL),(93,8520,4,40718,7,14,918,5,7,2,2,'Cuota mensual pilates',4200.00,NULL,NULL,NULL,NULL,3,NULL,'2023-04-01','2023-04-30','2023-04-30','2023-04-10 12:38:11','2023-05-05 11:18:42',NULL);
INSERT INTO `fa_masiva_detalle` VALUES (94,8520,4,40718,7,14,918,5,7,2,2,'Cuota mensual pilates',4200.00,NULL,NULL,NULL,NULL,3,NULL,'2023-04-01','2023-04-30','2023-04-30','2023-04-10 12:38:11','2023-05-05 11:18:42',NULL),(95,8520,4,40718,7,14,918,5,7,2,2,'Cuota mensual pilates',4200.00,NULL,NULL,NULL,NULL,3,NULL,'2023-04-01','2023-04-30','2023-04-30','2023-04-10 12:38:11','2023-05-05 11:18:42',NULL),(96,8520,4,40718,7,14,918,5,7,2,2,'Cuota mensual pilates',4200.00,NULL,NULL,NULL,NULL,3,NULL,'2023-04-01','2023-04-30','2023-04-30','2023-04-10 12:38:11','2023-05-05 11:18:42',NULL),(97,8520,4,40718,7,14,918,5,7,2,2,'Cuota mensual pilates',4200.00,NULL,NULL,NULL,NULL,3,NULL,'2023-04-01','2023-04-30','2023-04-30','2023-04-10 12:38:11','2023-05-05 11:18:42',NULL),(98,8520,4,40718,7,14,918,5,7,2,2,'Cuota mensual pilates',4200.00,NULL,NULL,NULL,NULL,3,NULL,'2023-04-01','2023-04-30','2023-04-30','2023-04-10 12:38:11','2023-05-05 11:18:42',NULL),(99,8520,4,40718,7,14,918,5,7,2,2,'Cuota mensual pilates',4200.00,NULL,NULL,NULL,NULL,3,NULL,'2023-04-01','2023-04-30','2023-04-30','2023-04-10 12:38:11','2023-05-05 11:18:42',NULL),(100,8520,4,40718,7,14,918,5,7,2,2,'Cuota mensual pilates',4200.00,NULL,NULL,NULL,NULL,3,NULL,'2023-04-01','2023-04-30','2023-04-30','2023-04-10 12:38:11','2023-05-05 11:18:42',NULL),(101,8520,4,40718,7,14,918,5,7,2,2,'Cuota mensual pilates',4200.00,NULL,NULL,NULL,NULL,3,NULL,'2023-04-01','2023-04-30','2023-04-30','2023-04-10 12:38:11','2023-05-05 11:18:42',NULL);

--
-- 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=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `fact_elec_puntos_venta` VALUES (1,8520,'LAS MORERAS 42','2023-03-09 12:13:30','2023-03-09 12:14:49',40719,'2','4400',14,'img//23350482229/logo_punto_venta_0000.jpg',1,NULL),(2,8520,'Pasaje Mollinedo 341','2023-03-09 15:57:32','2023-03-09 15:58:44',40748,'4','4400',14,NULL,1,NULL),(3,8520,'Las Moreras 42','2023-03-09 16:32:40','2023-03-09 16:32:53',40749,'3','4400',14,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=221 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `fact_elec_receipt_details` VALUES (1,NULL,1,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-03-10 11:46:47','2023-03-10 11:46:47',NULL,NULL),(2,NULL,2,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-03-10 11:46:49','2023-03-10 11:46:49',NULL,NULL),(3,NULL,3,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-03-10 11:46:50','2023-03-10 11:46:50',NULL,NULL),(4,NULL,4,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-03-10 11:46:51','2023-03-10 11:46:51',NULL,NULL),(5,NULL,5,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-03-10 11:46:52','2023-03-10 11:46:52',NULL,NULL),(6,NULL,6,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-03-10 11:46:53','2023-03-10 11:46:53',NULL,NULL),(7,NULL,7,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-03-10 11:46:54','2023-03-10 11:46:54',NULL,NULL),(8,NULL,8,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-03-10 11:46:55','2023-03-10 11:46:55',NULL,NULL),(9,NULL,9,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-03-10 11:46:55','2023-03-10 11:46:55',NULL,NULL),(10,NULL,10,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-03-10 11:46:56','2023-03-10 11:46:56',NULL,NULL),(11,NULL,11,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-03-10 11:46:57','2023-03-10 11:46:57',NULL,NULL),(12,NULL,12,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-03-10 11:46:58','2023-03-10 11:46:58',NULL,NULL),(13,NULL,13,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-03-10 11:46:59','2023-03-10 11:46:59',NULL,NULL),(14,NULL,14,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-03-10 11:47:00','2023-03-10 11:47:00',NULL,NULL),(15,NULL,15,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-03-10 11:47:01','2023-03-10 11:47:01',NULL,NULL),(16,NULL,16,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-03-10 11:47:01','2023-03-10 11:47:01',NULL,NULL),(17,NULL,17,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-03-10 11:47:02','2023-03-10 11:47:02',NULL,NULL),(18,NULL,18,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-03-10 11:47:03','2023-03-10 11:47:03',NULL,NULL),(19,NULL,19,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-03-10 11:47:04','2023-03-10 11:47:04',NULL,NULL),(20,NULL,20,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-03-10 11:47:05','2023-03-10 11:47:05',NULL,NULL),(21,NULL,21,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-03-10 11:47:06','2023-03-10 11:47:06',NULL,NULL),(22,NULL,22,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-03-10 11:47:07','2023-03-10 11:47:07',NULL,NULL),(23,NULL,23,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-03-10 11:47:07','2023-03-10 11:47:07',NULL,NULL),(24,NULL,24,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-03-10 11:47:08','2023-03-10 11:47:08',NULL,NULL),(25,NULL,25,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-03-10 11:47:09','2023-03-10 11:47:09',NULL,NULL),(26,NULL,26,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-03-10 11:47:10','2023-03-10 11:47:10',NULL,NULL),(27,NULL,27,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-03-10 11:47:11','2023-03-10 11:47:11',NULL,NULL);
INSERT INTO `fact_elec_receipt_details` VALUES (28,NULL,28,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-03-10 11:47:12','2023-03-10 11:47:12',NULL,NULL),(29,NULL,29,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-03-10 11:47:13','2023-03-10 11:47:13',NULL,NULL),(30,NULL,30,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-03-10 11:47:14','2023-03-10 11:47:14',NULL,NULL),(32,8520,32,'Servicio de tratamiento de belleza',1.00,'8',70661.16,70661.16,0.00,0.00,0.00,2,14838.84,85500.00,'2023-03-10 12:16:56','2023-03-10 12:16:56','',NULL),(33,8520,33,'Servicios de tratamiento de belleza',1.00,'8',37190.08,37190.08,0.00,0.00,0.00,2,7809.92,45000.00,'2023-03-10 12:19:39','2023-03-10 12:19:39','',NULL),(34,8520,34,'Serivico de tratamiento de belleza',1.00,'8',1983.47,1983.47,0.00,0.00,0.00,2,416.53,2400.00,'2023-03-10 12:21:23','2023-03-10 12:21:23','',NULL),(35,8520,35,'Servicios de tratamiento de belleza',1.00,'8',18181.82,18181.82,0.00,0.00,0.00,2,3818.18,22000.00,'2023-03-10 12:22:59','2023-03-10 12:22:59','',NULL),(36,8520,36,'Servicios de tratamiento de belleza',1.00,'8',9917.35,9917.35,0.00,0.00,0.00,2,2082.64,11999.99,'2023-03-10 12:25:01','2023-03-10 12:25:01','',NULL),(37,8520,37,'Servicios de tratamiento de belleza',1.00,'8',7851.24,7851.24,0.00,0.00,0.00,2,1648.76,9500.00,'2023-03-10 12:26:18','2023-03-10 12:26:18','',NULL),(38,8520,38,'Servicios de tratamiento de belleza',1.00,'8',6611.57,6611.57,0.00,0.00,0.00,2,1388.43,8000.00,'2023-03-10 12:38:28','2023-03-10 12:38:28','',NULL),(39,8520,39,'Servicios de tratamiento de belleza',1.00,'8',2644.63,2644.63,0.00,0.00,0.00,2,555.37,3200.00,'2023-03-10 12:40:25','2023-03-10 12:40:25','',NULL),(40,8520,40,'Servicios de tratamiento de belleza',1.00,'8',1545.45,1545.45,0.00,0.00,0.00,2,324.54,1869.99,'2023-03-10 12:42:53','2023-03-10 12:42:53','',NULL),(41,8520,41,'Servicios de tratamiento de belleza',1.00,'8',9917.36,9917.36,0.00,0.00,0.00,2,2082.65,12000.01,'2023-03-10 16:44:04','2023-03-10 16:44:04','',NULL),(42,8520,42,'Servicios de tratamiento de belleza',1.00,'8',4636.36,4636.36,0.00,0.00,0.00,2,973.64,5610.00,'2023-03-10 16:45:45','2023-03-10 16:45:45','',NULL),(43,8520,43,'Servicios de tratamiento de belleza',1.00,'8',991.73,991.73,0.00,0.00,0.00,2,208.26,1199.99,'2023-03-10 16:47:43','2023-03-10 16:47:43','',NULL),(44,8520,44,'Servicios de tratamiento de belleza',1.00,'8',991.73,991.73,0.00,0.00,0.00,2,208.26,1199.99,'2023-03-10 16:49:20','2023-03-10 16:49:20','',NULL),(45,8520,45,'Servicios de tratamiento de belleza',1.00,'8',3388.43,3388.43,0.00,0.00,0.00,2,711.57,4100.00,'2023-03-10 16:51:07','2023-03-10 16:51:07','',NULL),(46,8520,46,'Servicios de tratamiento de belleza',1.00,'8',6508.26,6508.26,0.00,0.00,0.00,2,1366.73,7874.99,'2023-03-10 16:52:43','2023-03-10 16:52:43','',NULL),(47,8520,47,'Servicios de tratamiento de belleza',1.00,'8',2396.69,2396.69,0.00,0.00,0.00,2,503.30,2899.99,'2023-03-10 16:54:09','2023-03-10 16:54:09','',NULL),(48,8520,48,'Servicios de tratamiento de belleza',1.00,'8',6611.57,6611.57,0.00,0.00,0.00,2,1388.43,8000.00,'2023-03-10 16:55:38','2023-03-10 16:55:38','',NULL),(49,8520,49,'Servicios de tratamiento de belleza',1.00,'8',2809.92,2809.92,0.00,0.00,0.00,2,590.08,3400.00,'2023-03-10 16:56:50','2023-03-10 16:56:50','',NULL),(50,8520,50,'Servicios de tratamiento de belleza',1.00,'8',2479.34,2479.34,0.00,0.00,0.00,2,520.66,3000.00,'2023-03-10 16:58:20','2023-03-10 16:58:20','',NULL),(51,8520,51,'Servicios de tratamiento de belleza',1.00,'8',4958.68,4958.68,0.00,0.00,0.00,2,1041.32,6000.00,'2023-03-10 17:03:18','2023-03-10 17:03:18','',NULL),(52,8520,52,'Servicios de tratamiento de belleza',1.00,'8',2892.56,2892.56,0.00,0.00,0.00,2,607.44,3500.00,'2023-03-10 17:04:40','2023-03-10 17:04:40','',NULL),(53,8520,53,'Servicios de tratamiento de belleza',1.00,'8',2809.92,2809.92,0.00,0.00,0.00,2,590.08,3400.00,'2023-03-10 17:06:27','2023-03-10 17:06:27','',NULL);
INSERT INTO `fact_elec_receipt_details` VALUES (54,8520,54,'Servicios de tratamiento de belleza',1.00,'8',1983.47,1983.47,0.00,0.00,0.00,2,416.53,2400.00,'2023-03-10 17:08:00','2023-03-10 17:08:00','',NULL),(55,8520,55,'Servicios de tratamiento de belleza',1.00,'8',2561.98,2561.98,0.00,0.00,0.00,2,538.02,3100.00,'2023-03-10 17:27:26','2023-03-10 17:27:26','',NULL),(56,8520,56,'Servicios de tratamiento de belleza',1.00,'8',5785.12,5785.12,0.00,0.00,0.00,2,1214.88,7000.00,'2023-03-10 17:29:05','2023-03-10 17:29:05','',NULL),(57,8520,57,'Servicios de tratamiento de belleza',1.00,'8',991.74,991.74,0.00,0.00,0.00,2,208.27,1200.01,'2023-03-10 17:30:50','2023-03-10 17:30:50','',NULL),(58,8520,58,'Servicios de tratamiento de belleza',1.00,'8',3553.72,3553.72,0.00,0.00,0.00,2,746.28,4300.00,'2023-03-10 17:32:10','2023-03-10 17:32:10','',NULL),(59,8520,59,'Servicios de tratamiento de belleza',1.00,'8',26446.28,26446.28,0.00,0.00,0.00,2,5553.72,32000.00,'2023-03-10 17:33:45','2023-03-10 17:33:45','',NULL),(60,8520,60,'Servicios de tratamiento de belleza',1.00,'8',3553.72,3553.72,0.00,0.00,0.00,2,746.28,4300.00,'2023-03-10 17:36:13','2023-03-10 17:36:13','',NULL),(61,8520,61,'Servicios de tratamiento de belleza',1.00,'8',3553.72,3553.72,0.00,0.00,0.00,2,746.28,4300.00,'2023-03-10 17:37:24','2023-03-10 17:37:24','',NULL),(62,8520,62,'Servicios de tratamiento de belleza',1.00,'8',3553.72,3553.72,0.00,0.00,0.00,2,746.28,4300.00,'2023-03-10 17:39:05','2023-03-10 17:39:05','',NULL),(63,8520,63,'Servicios de tratamiento de belleza',1.00,'8',4545.45,4545.45,0.00,0.00,0.00,2,954.54,5499.99,'2023-03-10 17:40:33','2023-03-10 17:40:33','',NULL),(64,8520,64,'Servicios de tratamiento de belleza',1.00,'8',4958.68,4958.68,0.00,0.00,0.00,2,1041.32,6000.00,'2023-03-10 17:41:46','2023-03-10 17:41:46','',NULL),(65,8520,65,'Servicios de tratamiento de belleza',1.00,'8',2809.92,2809.92,0.00,0.00,0.00,2,590.08,3400.00,'2023-03-10 17:43:28','2023-03-10 17:43:28','',NULL),(66,8520,66,'Servicios de tratamiento de belleza',1.00,'8',9917.36,9917.36,0.00,0.00,0.00,2,2082.65,12000.01,'2023-03-10 17:44:44','2023-03-10 17:44:44','',NULL),(67,8520,67,'Servicios de tratamiento de belleza',1.00,'8',49586.78,49586.78,0.00,0.00,0.00,2,10413.22,60000.00,'2023-03-10 17:46:22','2023-03-10 17:46:22','',NULL),(68,8520,68,'Servicios de tratamiento de belleza',1.00,'8',18181.82,18181.82,0.00,0.00,0.00,2,3818.18,22000.00,'2023-03-10 17:47:34','2023-03-10 17:47:34','',NULL),(69,8520,69,'Servicios de tratamiento de belleza',1.00,'8',9338.84,9338.84,0.00,0.00,0.00,2,1961.16,11300.00,'2023-03-10 17:49:31','2023-03-10 17:49:31','',NULL),(70,8520,70,'Servicios de tratamiento de belleza',1.00,'8',24793.39,24793.39,0.00,0.00,0.00,2,5206.61,30000.00,'2023-03-10 17:51:38','2023-03-10 17:51:38','',NULL),(71,8520,71,'Servicio de tratamiento de belleza',1.00,'8',8636.36,8636.36,0.00,0.00,0.00,2,1813.64,10450.00,'2023-04-10 11:25:30','2023-04-10 11:25:30','',NULL),(72,8520,72,'Servicio de tratamiento de belleza',1.00,'8',41322.31,41322.31,0.00,0.00,0.00,2,8677.69,50000.00,'2023-04-10 11:27:32','2023-04-10 11:27:32','',NULL),(73,8520,73,'Servicio de tratamiento de belleza',1.00,'8',26446.28,26446.28,0.00,0.00,0.00,2,5553.72,32000.00,'2023-04-10 11:28:55','2023-04-10 11:28:55','',NULL),(74,8520,74,'Servicio de tratamiento de belleza',1.00,'8',2066.12,2066.12,0.00,0.00,0.00,2,433.89,2500.01,'2023-04-10 11:30:16','2023-04-10 11:30:16','',NULL),(75,8520,75,'Servicios de tratamiento de belleza',1.00,'8',14876.03,14876.03,0.00,0.00,0.00,2,3123.97,18000.00,'2023-04-10 11:32:20','2023-04-10 11:32:20','',NULL),(76,8520,76,'Servicios de tratamiento de belleza',1.00,'8',9917.36,9917.36,0.00,0.00,0.00,2,2082.65,12000.01,'2023-04-10 11:33:59','2023-04-10 11:33:59','',NULL),(77,8520,77,'Servicios de tratamiento de belleza',1.00,'8',8677.69,8677.69,0.00,0.00,0.00,2,1822.31,10500.00,'2023-04-10 11:35:21','2023-04-10 11:35:21','',NULL);
INSERT INTO `fact_elec_receipt_details` VALUES (78,8520,78,'Servicios de tratamiento de belleza',1.00,'8',13223.14,13223.14,0.00,0.00,0.00,2,2776.86,16000.00,'2023-04-10 11:36:25','2023-04-10 11:36:25','',NULL),(79,8520,79,'Servicios de tratamiento de belleza',1.00,'8',14876.03,14876.03,0.00,0.00,0.00,2,3123.97,18000.00,'2023-04-10 11:38:05','2023-04-10 11:38:05','',NULL),(80,8520,80,'Servicios de tratamiento de belleza',1.00,'8',21322.31,21322.31,0.00,0.00,0.00,2,4477.69,25800.00,'2023-04-10 11:39:05','2023-04-10 11:39:05','',NULL),(81,8520,81,'Servicios de tratamiento de belleza',1.00,'8',20661.16,20661.16,0.00,0.00,0.00,2,4338.84,25000.00,'2023-04-10 11:39:57','2023-04-10 11:39:57','',NULL),(82,8520,82,'Servicios de tratamiento de belleza',1.00,'8',26446.28,26446.28,0.00,0.00,0.00,2,5553.72,32000.00,'2023-04-10 11:40:51','2023-04-10 11:40:51','',NULL),(83,8520,83,'Servicios de tratamiento de belleza',1.00,'8',12396.69,12396.69,0.00,0.00,0.00,2,2603.30,14999.99,'2023-04-10 11:41:41','2023-04-10 11:41:41','',NULL),(84,8520,84,'Servicios de tratamiento de belleza',1.00,'8',826.45,826.45,0.00,0.00,0.00,2,173.55,1000.00,'2023-04-10 11:45:45','2023-04-10 11:45:45','',NULL),(85,8520,85,'Servicios de tratamiento de belleza',1.00,'8',2809.92,2809.92,0.00,0.00,0.00,2,590.08,3400.00,'2023-04-10 11:46:55','2023-04-10 11:46:55','',NULL),(86,8520,86,'Servicios de tratamiento de belleza',1.00,'8',3842.98,3842.98,0.00,0.00,0.00,2,807.03,4650.01,'2023-04-10 11:48:29','2023-04-10 11:48:29','',NULL),(87,8520,87,'Servicios de tratamiento de belleza',1.00,'8',3553.72,3553.72,0.00,0.00,0.00,2,746.28,4300.00,'2023-04-10 11:49:48','2023-04-10 11:49:48','',NULL),(88,8520,88,'Servicios de tratamiento de belleza',1.00,'8',2148.76,2148.76,0.00,0.00,0.00,2,451.24,2600.00,'2023-04-10 11:50:52','2023-04-10 11:50:52','',NULL),(89,8520,89,'Servicios de tratamiento de belleza',1.00,'8',2561.98,2561.98,0.00,0.00,0.00,2,538.02,3100.00,'2023-04-10 12:00:42','2023-04-10 12:00:42','',NULL),(90,8520,90,'Servicios de tratamiento de belleza',1.00,'8',14876.03,14876.03,0.00,0.00,0.00,2,3123.97,18000.00,'2023-04-10 12:04:38','2023-04-10 12:04:38','',NULL),(91,8520,91,'Servicios de tratamiento de belleza',1.00,'8',3553.72,3553.72,0.00,0.00,0.00,2,746.28,4300.00,'2023-04-10 12:06:01','2023-04-10 12:06:01','',NULL),(92,8520,92,'Servicios de tratamiento de belleza',1.00,'8',3553.72,3553.72,0.00,0.00,0.00,2,746.28,4300.00,'2023-04-10 12:07:10','2023-04-10 12:07:10','',NULL),(93,8520,93,'Servicios de tratamiento de belleza',1.00,'8',2809.92,2809.92,0.00,0.00,0.00,2,590.08,3400.00,'2023-04-10 12:08:32','2023-04-10 12:08:32','',NULL),(94,8520,94,'Servicios de tratamiento de belleza',1.00,'8',14876.03,14876.03,0.00,0.00,0.00,2,3123.97,18000.00,'2023-04-10 12:10:27','2023-04-10 12:10:27','',NULL),(95,8520,95,'Servicios de tratamiento de belleza',1.00,'8',20661.16,20661.16,0.00,0.00,0.00,2,4338.84,25000.00,'2023-04-10 12:13:49','2023-04-10 12:13:49','',NULL),(96,8520,96,'Servicios de tratamiento de belleza',1.00,'8',3553.72,3553.72,0.00,0.00,0.00,2,746.28,4300.00,'2023-04-10 12:15:41','2023-04-10 12:15:41','',NULL),(97,8520,97,'Servicios de tratamiento de belleza',1.00,'8',23140.50,23140.50,0.00,0.00,0.00,2,4859.51,28000.01,'2023-04-10 12:17:21','2023-04-10 12:17:21','',NULL),(98,8520,98,'Servicios de tratamiento de belleza',1.00,'8',2809.92,2809.92,0.00,0.00,0.00,2,590.08,3400.00,'2023-04-10 12:20:03','2023-04-10 12:20:03','',NULL),(99,8520,99,'Servicios de tratamiento de belleza',1.00,'8',3553.72,3553.72,0.00,0.00,0.00,2,746.28,4300.00,'2023-04-10 12:21:18','2023-04-10 12:21:18','',NULL),(100,8520,100,'Servicios de tratamiento de belleza',1.00,'8',3355.37,3355.37,0.00,0.00,0.00,2,704.63,4060.00,'2023-04-10 12:22:35','2023-04-10 12:22:35','',NULL),(101,8520,101,'Servicios de tratamiento de belleza',1.00,'8',14876.03,14876.03,0.00,0.00,0.00,2,3123.97,18000.00,'2023-04-10 12:24:07','2023-04-10 12:24:07','',NULL);
INSERT INTO `fact_elec_receipt_details` VALUES (102,8520,102,'Servicios de tratamiento de belleza',1.00,'8',1322.31,1322.31,0.00,0.00,0.00,2,277.69,1600.00,'2023-04-10 12:27:46','2023-04-10 12:27:46','',NULL),(103,8520,103,'Servicios de tratamiento de belleza',1.00,'8',2809.92,2809.92,0.00,0.00,0.00,2,590.08,3400.00,'2023-04-10 12:28:45','2023-04-10 12:28:45','',NULL),(104,8520,104,'Servicios de tratamiento de belleza',1.00,'8',1652.89,1652.89,0.00,0.00,0.00,2,347.11,2000.00,'2023-04-10 12:29:54','2023-04-10 12:29:54','',NULL),(105,8520,105,'Servicios de tratamiento de belleza',1.00,'8',5371.90,5371.90,0.00,0.00,0.00,2,1128.10,6500.00,'2023-04-10 12:30:59','2023-04-10 12:30:59','',NULL),(106,8520,106,'Servicios de tratamiento de belleza',1.00,'8',16132.23,16132.23,0.00,0.00,0.00,2,3387.77,19520.00,'2023-04-10 12:32:05','2023-04-10 12:32:05','',NULL),(107,NULL,107,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-04-10 12:39:56','2023-04-10 12:39:56',NULL,NULL),(108,NULL,108,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-04-10 12:39:59','2023-04-10 12:39:59',NULL,NULL),(109,NULL,109,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-04-10 12:40:01','2023-04-10 12:40:01',NULL,NULL),(110,NULL,110,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-04-10 12:40:03','2023-04-10 12:40:03',NULL,NULL),(111,NULL,111,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-04-10 12:40:07','2023-04-10 12:40:07',NULL,NULL),(112,NULL,112,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-04-10 12:40:12','2023-04-10 12:40:12',NULL,NULL),(113,NULL,113,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-04-10 12:40:14','2023-04-10 12:40:14',NULL,NULL),(114,NULL,114,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-04-10 12:40:16','2023-04-10 12:40:16',NULL,NULL),(115,NULL,115,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-04-10 12:40:17','2023-04-10 12:40:17',NULL,NULL),(116,NULL,116,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-04-10 12:40:19','2023-04-10 12:40:19',NULL,NULL),(117,NULL,117,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-04-10 12:40:22','2023-04-10 12:40:22',NULL,NULL),(118,NULL,118,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-04-10 12:40:25','2023-04-10 12:40:25',NULL,NULL),(119,NULL,119,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-04-10 12:40:29','2023-04-10 12:40:29',NULL,NULL),(120,NULL,120,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-04-10 12:40:31','2023-04-10 12:40:31',NULL,NULL),(121,NULL,121,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-04-10 12:40:34','2023-04-10 12:40:34',NULL,NULL),(122,NULL,122,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-04-10 12:40:36','2023-04-10 12:40:36',NULL,NULL),(123,NULL,123,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-04-10 12:40:38','2023-04-10 12:40:38',NULL,NULL),(124,NULL,124,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-04-10 12:40:39','2023-04-10 12:40:39',NULL,NULL),(125,NULL,125,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-04-10 12:40:41','2023-04-10 12:40:41',NULL,NULL),(126,NULL,126,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-04-10 12:40:42','2023-04-10 12:40:42',NULL,NULL),(127,NULL,127,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-04-10 12:40:43','2023-04-10 12:40:43',NULL,NULL);
INSERT INTO `fact_elec_receipt_details` VALUES (128,NULL,128,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-04-10 12:40:45','2023-04-10 12:40:45',NULL,NULL),(129,NULL,129,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-04-10 12:40:46','2023-04-10 12:40:46',NULL,NULL),(130,NULL,130,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-04-10 12:40:48','2023-04-10 12:40:48',NULL,NULL),(131,NULL,131,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-04-10 12:40:49','2023-04-10 12:40:49',NULL,NULL),(132,NULL,132,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-04-10 12:40:50','2023-04-10 12:40:50',NULL,NULL),(133,NULL,133,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-04-10 12:40:51','2023-04-10 12:40:51',NULL,NULL),(134,NULL,134,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-04-10 12:40:53','2023-04-10 12:40:53',NULL,NULL),(135,NULL,135,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-04-10 12:40:54','2023-04-10 12:40:54',NULL,NULL),(136,NULL,136,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-04-10 12:40:55','2023-04-10 12:40:55',NULL,NULL),(137,NULL,137,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-05-05 11:19:25','2023-05-05 11:19:25',NULL,NULL),(138,NULL,138,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-05-05 11:19:28','2023-05-05 11:19:28',NULL,NULL),(139,NULL,139,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-05-05 11:19:29','2023-05-05 11:19:29',NULL,NULL),(140,NULL,140,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-05-05 11:19:30','2023-05-05 11:19:30',NULL,NULL),(141,NULL,141,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-05-05 11:19:30','2023-05-05 11:19:30',NULL,NULL),(142,NULL,142,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-05-05 11:19:31','2023-05-05 11:19:31',NULL,NULL),(143,NULL,143,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-05-05 11:19:32','2023-05-05 11:19:32',NULL,NULL),(144,NULL,144,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-05-05 11:19:33','2023-05-05 11:19:33',NULL,NULL),(145,NULL,145,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-05-05 11:19:34','2023-05-05 11:19:34',NULL,NULL),(146,NULL,146,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-05-05 11:19:35','2023-05-05 11:19:35',NULL,NULL),(147,NULL,147,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-05-05 11:19:36','2023-05-05 11:19:36',NULL,NULL),(148,NULL,148,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-05-05 11:19:37','2023-05-05 11:19:37',NULL,NULL),(149,NULL,149,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-05-05 11:19:37','2023-05-05 11:19:37',NULL,NULL),(150,NULL,150,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-05-05 11:19:38','2023-05-05 11:19:38',NULL,NULL),(151,NULL,151,'Cuota mensual pilates',1.00,'8',4800.00,4800.00,0.00,0.00,0.00,7,0.00,4800.00,'2023-05-05 11:19:39','2023-05-05 11:19:39',NULL,NULL),(152,NULL,152,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-05-05 11:19:40','2023-05-05 11:19:40',NULL,NULL),(153,NULL,153,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-05-05 11:19:41','2023-05-05 11:19:41',NULL,NULL),(154,NULL,154,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-05-05 11:19:42','2023-05-05 11:19:42',NULL,NULL);
INSERT INTO `fact_elec_receipt_details` VALUES (155,NULL,155,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-05-05 11:19:42','2023-05-05 11:19:42',NULL,NULL),(156,NULL,156,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-05-05 11:19:43','2023-05-05 11:19:43',NULL,NULL),(157,NULL,157,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-05-05 11:19:44','2023-05-05 11:19:44',NULL,NULL),(158,NULL,158,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-05-05 11:19:45','2023-05-05 11:19:45',NULL,NULL),(159,NULL,159,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-05-05 11:19:46','2023-05-05 11:19:46',NULL,NULL),(160,NULL,160,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-05-05 11:19:47','2023-05-05 11:19:47',NULL,NULL),(161,NULL,161,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-05-05 11:19:48','2023-05-05 11:19:48',NULL,NULL),(162,NULL,162,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-05-05 11:19:48','2023-05-05 11:19:48',NULL,NULL),(163,NULL,163,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-05-05 11:19:49','2023-05-05 11:19:49',NULL,NULL),(164,NULL,164,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-05-05 11:19:50','2023-05-05 11:19:50',NULL,NULL),(165,NULL,165,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-05-05 11:19:51','2023-05-05 11:19:51',NULL,NULL),(166,NULL,166,'Cuota mensual pilates',1.00,'8',4200.00,4200.00,0.00,0.00,0.00,7,0.00,4200.00,'2023-05-05 11:19:52','2023-05-05 11:19:52',NULL,NULL),(167,8520,167,'Servicios de tratamiento de belleza',1.00,'8',2396.69,2396.69,0.00,0.00,0.00,2,503.30,2899.99,'2023-05-10 09:52:08','2023-05-10 09:52:08','',NULL),(168,8520,168,'Servicios de tratamiento de belleza',1.00,'8',20661.16,20661.16,0.00,0.00,0.00,2,4338.84,25000.00,'2023-05-10 09:53:47','2023-05-10 09:53:47','',NULL),(169,8520,169,'Servicios de tratamiento de belleza',1.00,'8',9037.19,9037.19,0.00,0.00,0.00,2,1897.81,10935.00,'2023-05-10 09:55:25','2023-05-10 09:55:25','',NULL),(170,8520,170,'Servicios de tratamiento de belleza',1.00,'8',4958.68,4958.68,0.00,0.00,0.00,2,1041.32,6000.00,'2023-05-10 09:58:35','2023-05-10 09:58:35','',NULL),(171,8520,171,'Servicios de tratamiento de belleza',1.00,'8',12396.69,12396.69,0.00,0.00,0.00,2,2603.30,14999.99,'2023-05-10 09:59:42','2023-05-10 09:59:42','',NULL),(172,8520,172,'Servicios de tratamiento de belleza',1.00,'8',5950.41,5950.41,0.00,0.00,0.00,2,1249.59,7200.00,'2023-05-10 10:00:49','2023-05-10 10:00:49','',NULL),(173,8520,173,'Servicios de tratamiento de belleza',1.00,'8',49586.78,49586.78,0.00,0.00,0.00,2,10413.22,60000.00,'2023-05-10 10:02:05','2023-05-10 10:02:05','',NULL),(174,8520,174,'Servicios de tratamiento de belleza',1.00,'8',2479.34,2479.34,0.00,0.00,0.00,2,520.66,3000.00,'2023-05-10 10:04:44','2023-05-10 10:04:44','',NULL),(175,8520,175,'Servicios de tratamiento de belleza',1.00,'8',2809.92,2809.92,0.00,0.00,0.00,2,590.08,3400.00,'2023-05-10 10:06:23','2023-05-10 10:06:23','',NULL),(176,8520,176,'Servicios de tratamiento de belleza',1.00,'8',5785.12,5785.12,0.00,0.00,0.00,2,1214.88,7000.00,'2023-05-10 10:07:28','2023-05-10 10:07:28','',NULL),(177,8520,177,'Servicios de tratamiento de belleza',1.00,'8',16859.50,16859.50,0.00,0.00,0.00,2,3540.49,20399.99,'2023-05-10 10:08:25','2023-05-10 10:08:25','',NULL),(178,8520,178,'Servicios de tratamiento de belleza',1.00,'8',2066.12,2066.12,0.00,0.00,0.00,2,433.89,2500.01,'2023-05-10 10:10:00','2023-05-10 10:10:00','',NULL),(179,8520,179,'Servicios de tratamiento de belleza',1.00,'8',26446.28,26446.28,0.00,0.00,0.00,2,5553.72,32000.00,'2023-05-10 10:11:24','2023-05-10 10:11:24','',NULL);
INSERT INTO `fact_elec_receipt_details` VALUES (180,8520,180,'Servicios de tratamiento de belleza',1.00,'8',2561.98,2561.98,0.00,0.00,0.00,2,538.02,3100.00,'2023-05-10 10:13:17','2023-05-10 10:13:17','',NULL),(181,8520,181,'Servicios de tratamiento de belleza',1.00,'8',3553.72,3553.72,0.00,0.00,0.00,2,746.28,4300.00,'2023-05-10 10:14:16','2023-05-10 10:14:16','',NULL),(182,8520,182,'Servicios de tratamiento de belleza',1.00,'8',1818.18,1818.18,0.00,0.00,0.00,2,381.82,2200.00,'2023-05-10 10:15:45','2023-05-10 10:15:45','',NULL),(183,8520,183,'Servicios de tratamiento de belleza',1.00,'8',26446.28,26446.28,0.00,0.00,0.00,2,5553.72,32000.00,'2023-05-10 10:16:41','2023-05-10 10:16:41','',NULL),(184,8520,184,'Servicios de tratamiento de belleza',1.00,'8',2809.92,2809.92,0.00,0.00,0.00,2,590.08,3400.00,'2023-05-10 10:18:22','2023-05-10 10:18:22','',NULL),(185,8520,185,'Servicios de tratamiento de belleza',1.00,'8',2809.92,2809.92,0.00,0.00,0.00,2,590.08,3400.00,'2023-05-10 10:22:07','2023-05-10 10:22:07','',NULL),(186,8520,186,'Servicios de tratamiento de belleza',1.00,'8',991.74,991.74,0.00,0.00,0.00,2,208.27,1200.01,'2023-05-10 10:23:28','2023-05-10 10:23:28','',NULL),(187,8520,187,'Servicios de tratamiento de belleza',1.00,'8',4462.81,4462.81,0.00,0.00,0.00,2,937.19,5400.00,'2023-05-10 10:28:25','2023-05-10 10:28:25','',NULL),(188,8520,188,'Servicios de tratamiento de belleza',1.00,'8',2561.98,2561.98,0.00,0.00,0.00,2,538.02,3100.00,'2023-05-10 10:30:57','2023-05-10 10:30:57','',NULL),(189,8520,189,'Servicios de tratamiento de belleza',1.00,'8',20661.16,20661.16,0.00,0.00,0.00,2,4338.84,25000.00,'2023-05-10 10:32:16','2023-05-10 10:32:16','',NULL),(190,8520,190,'Servicios de tratamiento de belleza',1.00,'8',4380.17,4380.17,0.00,0.00,0.00,2,919.84,5300.01,'2023-05-10 10:35:41','2023-05-10 10:35:41','',NULL),(191,8520,191,'Servicios de tratamiento de belleza',1.00,'8',2809.92,2809.92,0.00,0.00,0.00,2,590.08,3400.00,'2023-05-10 10:37:05','2023-05-10 10:37:05','',NULL),(192,8520,192,'Servicios de tratamiento de belleza',1.00,'8',2396.69,2396.69,0.00,0.00,0.00,2,503.30,2899.99,'2023-05-10 10:38:09','2023-05-10 10:38:09','',NULL),(193,8520,193,'Servicios de tratamiento de belleza',1.00,'8',3553.72,3553.72,0.00,0.00,0.00,2,746.28,4300.00,'2023-05-10 10:39:02','2023-05-10 10:39:02','',NULL),(194,8520,194,'Servicios de tratamiento de belleza',1.00,'8',3305.79,3305.79,0.00,0.00,0.00,2,694.22,4000.01,'2023-05-10 10:39:57','2023-05-10 10:39:57','',NULL),(195,8520,195,'Servicios de tratamiento de belleza',1.00,'8',2066.12,2066.12,0.00,0.00,0.00,2,433.89,2500.01,'2023-05-10 10:41:25','2023-05-10 10:41:25','',NULL),(196,8520,196,'Servicios de tratamiento de belleza',1.00,'8',3553.72,3553.72,0.00,0.00,0.00,2,746.28,4300.00,'2023-05-10 10:42:34','2023-05-10 10:42:34','',NULL),(197,8520,197,'Servicios de tratamiento de belleza',1.00,'8',6115.70,6115.70,0.00,0.00,0.00,2,1284.30,7400.00,'2023-05-10 10:43:42','2023-05-10 10:43:42','',NULL),(198,8520,198,'Servicios de tratamiento de belleza',1.00,'8',2314.05,2314.05,0.00,0.00,0.00,2,485.95,2800.00,'2023-05-10 10:46:55','2023-05-10 10:46:55','',NULL),(199,8520,199,'Servicios de tratamiento de belleza',1.00,'8',4628.10,4628.10,0.00,0.00,0.00,2,971.90,5600.00,'2023-05-10 10:47:51','2023-05-10 10:47:51','',NULL),(200,8520,200,'Servicios de tratamiento de belleza',1.00,'8',1570.25,1570.25,0.00,0.00,0.00,2,329.75,1900.00,'2023-05-10 10:49:22','2023-05-10 10:49:22','',NULL),(201,8520,201,'Servicios de tratamiento de belleza',1.00,'8',2066.12,2066.12,0.00,0.00,0.00,2,433.89,2500.01,'2023-05-10 10:50:21','2023-05-10 10:50:21','',NULL),(202,8520,202,'Servicios de tratamiento de belleza',1.00,'8',5785.12,5785.12,0.00,0.00,0.00,2,1214.88,7000.00,'2023-05-10 10:51:19','2023-05-10 10:51:19','',NULL),(203,8520,203,'Servicios de tratamiento de belleza',1.00,'8',12396.69,12396.69,0.00,0.00,0.00,2,2603.30,14999.99,'2023-05-10 11:49:31','2023-05-10 11:49:31','',NULL);
INSERT INTO `fact_elec_receipt_details` VALUES (204,8520,204,'Servicios de tratamiento de belleza',1.00,'8',20661.16,20661.16,0.00,0.00,0.00,2,4338.84,25000.00,'2023-05-10 11:50:36','2023-05-10 11:50:36','',NULL),(205,8520,205,'Servicios de tratamiento de belleza',1.00,'8',16528.93,16528.93,0.00,0.00,0.00,2,3471.08,20000.01,'2023-05-10 11:52:12','2023-05-10 11:52:12','',NULL),(206,8520,206,'Servicios de tratamiento de belleza',1.00,'8',1983.47,1983.47,0.00,0.00,0.00,2,416.53,2400.00,'2023-05-10 11:53:00','2023-05-10 11:53:00','',NULL),(207,8520,207,'Servicios de tratamiento de belleza',1.00,'8',57981.95,57981.95,0.00,0.00,0.00,2,12176.21,70158.16,'2023-05-10 11:55:03','2023-05-10 11:55:03','',NULL),(208,8520,208,'Servicios de tratamiento de belleza',1.00,'8',35123.97,35123.97,0.00,0.00,0.00,2,7376.03,42500.00,'2023-05-10 11:57:22','2023-05-10 11:57:22','',NULL),(209,8520,209,'Servicios de tratamiento de belleza',1.00,'8',3719.01,3719.01,0.00,0.00,0.00,2,780.99,4500.00,'2023-05-10 11:58:34','2023-05-10 11:58:34','',NULL),(210,8520,210,'Servicios de tratamiento de belleza',1.00,'8',8264.46,8264.46,0.00,0.00,0.00,2,1735.54,10000.00,'2023-05-10 12:00:14','2023-05-10 12:00:14','',NULL),(211,8520,211,'Servicios de tratamiento de belleza',1.00,'8',13223.14,13223.14,0.00,0.00,0.00,2,2776.86,16000.00,'2023-05-10 12:01:06','2023-05-10 12:01:06','',NULL),(212,8520,212,'Servicios de tratamiento de belleza',1.00,'8',14876.03,14876.03,0.00,0.00,0.00,2,3123.97,18000.00,'2023-05-10 12:04:02','2023-05-10 12:04:02','',NULL),(213,8520,213,'Servicios de tratamiento de belleza',1.00,'8',6115.70,6115.70,0.00,0.00,0.00,2,1284.30,7400.00,'2023-05-10 12:05:11','2023-05-10 12:05:11','',NULL),(214,8520,214,'Servicios de tratamiento de belleza',1.00,'8',4132.23,4132.23,0.00,0.00,0.00,2,867.77,5000.00,'2023-05-10 12:06:21','2023-05-10 12:06:21','',NULL),(215,8520,215,'Servicios de tratamiento de belleza',1.00,'8',10082.64,10082.64,0.00,0.00,0.00,2,2117.35,12199.99,'2023-05-10 12:07:11','2023-05-10 12:07:11','',NULL),(216,8520,216,'Servicios de tratamiento de belleza',1.00,'8',9917.36,9917.36,0.00,0.00,0.00,2,2082.65,12000.01,'2023-05-10 12:08:15','2023-05-10 12:08:15','',NULL),(217,8520,217,'Servicios de tratamiento de belleza',1.00,'8',2396.69,2396.69,0.00,0.00,0.00,2,503.30,2899.99,'2023-05-10 12:09:08','2023-05-10 12:09:08','',NULL),(218,8520,218,'Servicios de tratamiento de belleza',1.00,'8',4958.68,4958.68,0.00,0.00,0.00,2,1041.32,6000.00,'2023-05-10 12:10:02','2023-05-10 12:10:02','',NULL),(219,8520,219,'Servicios de tratamiento de belleza',1.00,'8',1438.02,1438.02,0.00,0.00,0.00,2,301.98,1740.00,'2023-05-10 12:11:14','2023-05-10 12:11:14','',NULL),(220,8520,220,'Servicios de tratamiento de belleza',1.00,'8',2809.92,2809.92,0.00,0.00,0.00,2,590.08,3400.00,'2023-05-10 12:12:01','2023-05-10 12:12:01','',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=221 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `fact_elec_receipts` VALUES (1,NULL,'2023-02-28','2023-02-01','2023-02-28','2023-02-28',2,3,7,'',NULL,'2023-03-10 11:46:47','2023-03-10 11:46:49','73102871709201','2023-03-10','1','2023-03-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,1.00,NULL),(2,NULL,'2023-02-28','2023-02-01','2023-02-28','2023-02-28',2,3,7,'',NULL,'2023-03-10 11:46:49','2023-03-10 11:46:50','73102871711874','2023-03-10','2','2023-03-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,1.00,NULL),(3,NULL,'2023-02-28','2023-02-01','2023-02-28','2023-02-28',2,3,7,'',NULL,'2023-03-10 11:46:50','2023-03-10 11:46:51','73102871714542','2023-03-10','3','2023-03-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,1.00,NULL),(4,NULL,'2023-02-28','2023-02-01','2023-02-28','2023-02-28',2,3,7,'',NULL,'2023-03-10 11:46:51','2023-03-10 11:46:52','73102871716900','2023-03-10','4','2023-03-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,1.00,NULL),(5,NULL,'2023-02-28','2023-02-01','2023-02-28','2023-02-28',2,3,7,'',NULL,'2023-03-10 11:46:52','2023-03-10 11:46:53','73102871718999','2023-03-10','5','2023-03-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,1.00,NULL),(6,NULL,'2023-02-28','2023-02-01','2023-02-28','2023-02-28',2,3,7,'',NULL,'2023-03-10 11:46:53','2023-03-10 11:46:54','73102871720960','2023-03-10','6','2023-03-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,1.00,NULL),(7,NULL,'2023-02-28','2023-02-01','2023-02-28','2023-02-28',2,3,7,'',NULL,'2023-03-10 11:46:54','2023-03-10 11:46:55','73102871724139','2023-03-10','7','2023-03-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,1.00,NULL),(8,NULL,'2023-02-28','2023-02-01','2023-02-28','2023-02-28',2,3,7,'',NULL,'2023-03-10 11:46:55','2023-03-10 11:46:55','73102871726877','2023-03-10','8','2023-03-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,1.00,NULL),(9,NULL,'2023-02-28','2023-02-01','2023-02-28','2023-02-28',2,3,7,'',NULL,'2023-03-10 11:46:55','2023-03-10 11:46:56','73102871729558','2023-03-10','9','2023-03-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,1.00,NULL),(10,NULL,'2023-02-28','2023-02-01','2023-02-28','2023-02-28',2,3,7,'',NULL,'2023-03-10 11:46:56','2023-03-10 11:46:57','73102871732295','2023-03-10','10','2023-03-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,1.00,NULL),(11,NULL,'2023-02-28','2023-02-01','2023-02-28','2023-02-28',2,3,7,'',NULL,'2023-03-10 11:46:57','2023-03-10 11:46:58','73102871735272','2023-03-10','11','2023-03-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,1.00,NULL),(12,NULL,'2023-02-28','2023-02-01','2023-02-28','2023-02-28',2,3,7,'',NULL,'2023-03-10 11:46:58','2023-03-10 11:46:59','73102871737009','2023-03-10','12','2023-03-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,1.00,NULL),(13,NULL,'2023-02-28','2023-02-01','2023-02-28','2023-02-28',2,3,7,'',NULL,'2023-03-10 11:46:59','2023-03-10 11:47:00','73102871739763','2023-03-10','13','2023-03-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,1.00,NULL),(14,NULL,'2023-02-28','2023-02-01','2023-02-28','2023-02-28',2,3,7,'',NULL,'2023-03-10 11:47:00','2023-03-10 11:47:00','73102871742162','2023-03-10','14','2023-03-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,1.00,NULL),(15,NULL,'2023-02-28','2023-02-01','2023-02-28','2023-02-28',2,3,7,'',NULL,'2023-03-10 11:47:01','2023-03-10 11:47:01','73102871744517','2023-03-10','15','2023-03-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,1.00,NULL),(16,NULL,'2023-02-28','2023-02-01','2023-02-28','2023-02-28',2,3,7,'',NULL,'2023-03-10 11:47:01','2023-03-10 11:47:02','73102871747269','2023-03-10','16','2023-03-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,1.00,NULL),(17,NULL,'2023-02-28','2023-02-01','2023-02-28','2023-02-28',2,3,7,'',NULL,'2023-03-10 11:47:02','2023-03-10 11:47:03','73102871749745','2023-03-10','17','2023-03-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,1.00,NULL);
INSERT INTO `fact_elec_receipts` VALUES (18,NULL,'2023-02-28','2023-02-01','2023-02-28','2023-02-28',2,3,7,'',NULL,'2023-03-10 11:47:03','2023-03-10 11:47:04','73102871752568','2023-03-10','18','2023-03-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,1.00,NULL),(19,NULL,'2023-02-28','2023-02-01','2023-02-28','2023-02-28',2,3,7,'',NULL,'2023-03-10 11:47:04','2023-03-10 11:47:05','73102871755207','2023-03-10','19','2023-03-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,1.00,NULL),(20,NULL,'2023-02-28','2023-02-01','2023-02-28','2023-02-28',2,3,7,'',NULL,'2023-03-10 11:47:05','2023-03-10 11:47:06','73102871757445','2023-03-10','20','2023-03-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,1.00,NULL),(21,NULL,'2023-02-28','2023-02-01','2023-02-28','2023-02-28',2,3,7,'',NULL,'2023-03-10 11:47:06','2023-03-10 11:47:07','73102871760420','2023-03-10','21','2023-03-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,1.00,NULL),(22,NULL,'2023-02-28','2023-02-01','2023-02-28','2023-02-28',2,3,7,'',NULL,'2023-03-10 11:47:07','2023-03-10 11:47:07','73102871763130','2023-03-10','22','2023-03-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,1.00,NULL),(23,NULL,'2023-02-28','2023-02-01','2023-02-28','2023-02-28',2,3,7,'',NULL,'2023-03-10 11:47:07','2023-03-10 11:47:08','73102871765938','2023-03-10','23','2023-03-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,1.00,NULL),(24,NULL,'2023-02-28','2023-02-01','2023-02-28','2023-02-28',2,3,7,'',NULL,'2023-03-10 11:47:08','2023-03-10 11:47:09','73102871768517','2023-03-10','24','2023-03-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,1.00,NULL),(25,NULL,'2023-02-28','2023-02-01','2023-02-28','2023-02-28',2,3,7,'',NULL,'2023-03-10 11:47:09','2023-03-10 11:47:10','73102871771474','2023-03-10','25','2023-03-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,1.00,NULL),(26,NULL,'2023-02-28','2023-02-01','2023-02-28','2023-02-28',2,3,7,'',NULL,'2023-03-10 11:47:10','2023-03-10 11:47:11','73102871773743','2023-03-10','26','2023-03-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,1.00,NULL),(27,NULL,'2023-02-28','2023-02-01','2023-02-28','2023-02-28',2,3,7,'',NULL,'2023-03-10 11:47:11','2023-03-10 11:47:12','73102871776204','2023-03-10','27','2023-03-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,1.00,NULL),(28,NULL,'2023-02-28','2023-02-01','2023-02-28','2023-02-28',2,3,7,'',NULL,'2023-03-10 11:47:12','2023-03-10 11:47:13','73102871779367','2023-03-10','28','2023-03-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,1.00,NULL),(29,NULL,'2023-02-28','2023-02-01','2023-02-28','2023-02-28',2,3,7,'',NULL,'2023-03-10 11:47:13','2023-03-10 11:47:14','73102871782868','2023-03-10','29','2023-03-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,1.00,NULL),(30,NULL,'2023-02-28','2023-02-01','2023-02-28','2023-02-28',2,3,7,'',NULL,'2023-03-10 11:47:14','2023-03-10 11:47:15','73102871786391','2023-03-10','30','2023-03-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,1.00,NULL),(31,8520,'2023-02-28','2023-02-01','2023-02-01','2023-02-01',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 12:16:29','2023-03-10 12:16:32',NULL,NULL,NULL,NULL,40748,40718,3,5,NULL,NULL,NULL,NULL,0.00,85500.00,1,1.00,'2023-03-10 12:16:32'),(32,8520,'2023-02-28','2023-02-01','2023-02-01','2023-02-28',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 12:16:55','2023-03-10 12:16:57','73106876692489','2023-03-10','1','2023-03-10',40748,40718,3,5,NULL,NULL,NULL,NULL,0.00,85500.00,1,1.00,NULL),(33,8520,'2023-02-28','2023-02-10','2023-02-10','2023-02-28',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 12:19:39','2023-03-10 12:19:41','73106877130273','2023-03-10','2','2023-03-10',40748,40718,3,5,NULL,NULL,NULL,NULL,0.00,45000.00,1,1.00,NULL);
INSERT INTO `fact_elec_receipts` VALUES (34,8520,'2023-02-28','2023-02-14','2023-02-14','2023-02-28',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 12:21:23','2023-03-10 12:21:25','73106877393210','2023-03-10','3','2023-03-10',40748,40718,2,5,NULL,NULL,NULL,NULL,0.00,2400.00,1,1.00,NULL),(35,8520,'2023-02-28','2023-02-17','2023-02-17','2023-02-28',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 12:22:59','2023-03-10 12:23:00','73106877665793','2023-03-10','4','2023-03-10',40748,40718,2,5,NULL,NULL,NULL,NULL,0.00,22000.00,1,1.00,NULL),(36,8520,'2023-02-28','2023-02-28','2023-02-28','2023-02-28',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 12:25:01','2023-03-10 12:25:03','73106877984066','2023-03-10','5','2023-03-10',40748,40718,3,5,NULL,NULL,NULL,NULL,0.00,11999.99,1,1.00,NULL),(37,8520,'2023-02-28','2023-02-28','2023-02-28','2023-02-28',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 12:26:18','2023-03-10 12:26:20','73106878181416','2023-03-10','6','2023-03-10',40748,40718,3,5,NULL,NULL,NULL,NULL,0.00,9500.00,1,1.00,NULL),(38,8520,'2023-02-28','2023-02-01','2023-02-01','2023-02-28',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 12:38:28','2023-03-10 12:38:30','73106879918202','2023-03-10','7','2023-03-10',40748,40750,7,5,NULL,NULL,NULL,NULL,0.00,8000.00,1,1.00,NULL),(39,8520,'2023-02-28','2023-02-01','2023-02-01','2023-02-28',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 12:40:25','2023-03-10 12:40:26','73106880178747','2023-03-10','8','2023-03-10',40748,40751,7,5,NULL,NULL,NULL,NULL,0.00,3200.00,1,1.00,NULL),(40,8520,'2023-02-28','2023-02-01','2023-02-01','2023-02-28',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 12:42:53','2023-03-10 12:42:55','73106880544569','2023-03-10','9','2023-03-10',40748,40752,7,5,NULL,NULL,NULL,NULL,0.00,1869.99,1,1.00,NULL),(41,8520,'2023-02-28','2023-02-02','2023-02-02','2023-02-28',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 16:44:04','2023-03-10 16:44:06','73106909582083','2023-03-10','10','2023-03-10',40748,40753,7,5,NULL,NULL,NULL,NULL,0.00,12000.01,1,1.00,NULL),(42,8520,'2023-02-28','2023-02-02','2023-02-02','2023-02-28',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 16:45:45','2023-03-10 16:45:47','73106909816922','2023-03-10','11','2023-03-10',40748,40754,7,5,NULL,NULL,NULL,NULL,0.00,5610.00,1,1.00,NULL),(43,8520,'2023-02-28','2023-02-02','2023-02-02','2023-02-28',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 16:47:43','2023-03-10 16:47:45','73106910083844','2023-03-10','12','2023-03-10',40748,40755,7,5,NULL,NULL,NULL,NULL,0.00,1199.99,1,1.00,NULL),(44,8520,'2023-02-28','2023-02-02','2023-02-02','2023-02-28',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 16:49:20','2023-03-10 16:49:21','73106910287164','2023-03-10','13','2023-03-10',40748,40756,7,5,NULL,NULL,NULL,NULL,0.00,1199.99,1,1.00,NULL),(45,8520,'2023-02-28','2023-02-03','2023-02-03','2023-02-28',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 16:51:07','2023-03-10 16:51:09','73106910513869','2023-03-10','14','2023-03-10',40748,40757,7,5,NULL,NULL,NULL,NULL,0.00,4100.00,1,1.00,NULL);
INSERT INTO `fact_elec_receipts` VALUES (46,8520,'2023-02-28','2023-02-06','2023-02-06','2023-02-28',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 16:52:43','2023-03-10 16:52:45','73106910737567','2023-03-10','15','2023-03-10',40748,40758,7,5,NULL,NULL,NULL,NULL,0.00,7874.99,1,1.00,NULL),(47,8520,'2023-02-28','2023-02-06','2023-02-06','2023-02-28',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 16:54:09','2023-03-10 16:54:10','73106910945758','2023-03-10','16','2023-03-10',40748,40759,7,5,NULL,NULL,NULL,NULL,0.00,2899.99,1,1.00,NULL),(48,8520,'2023-02-28','2023-02-07','2023-02-07','2023-02-28',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 16:55:38','2023-03-10 16:55:39','73106911161001','2023-03-10','17','2023-03-10',40748,40760,7,5,NULL,NULL,NULL,NULL,0.00,8000.00,1,1.00,NULL),(49,8520,'2023-02-28','2023-02-07','2023-02-07','2023-02-28',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 16:56:50','2023-03-10 16:56:52','73106911340079','2023-03-10','18','2023-03-10',40748,40761,7,5,NULL,NULL,NULL,NULL,0.00,3400.00,1,1.00,NULL),(50,8520,'2023-02-28','2023-02-07','2023-02-07','2023-02-28',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 16:58:20','2023-03-10 16:58:22','73106911574220','2023-03-10','19','2023-03-10',40748,40762,7,5,NULL,NULL,NULL,NULL,0.00,3000.00,1,1.00,NULL),(51,8520,'2023-02-28','2023-02-09','2023-02-09','2023-02-28',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 17:03:18','2023-03-10 17:03:20','73106912223651','2023-03-10','20','2023-03-10',40748,40763,7,5,NULL,NULL,NULL,NULL,0.00,6000.00,1,1.00,NULL),(52,8520,'2023-02-28','2023-02-10','2023-02-10','2023-02-28',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 17:04:40','2023-03-10 17:04:43','73106912395774','2023-03-10','21','2023-03-10',40748,40764,7,5,NULL,NULL,NULL,NULL,0.00,3500.00,1,1.00,NULL),(53,8520,'2023-02-28','2023-02-22','2023-02-22','2023-02-28',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 17:06:27','2023-03-10 17:06:29','73106912621911','2023-03-10','22','2023-03-10',40748,40765,7,5,NULL,NULL,NULL,NULL,0.00,3400.00,1,1.00,NULL),(54,8520,'2023-02-28','2023-02-22','2023-02-22','2023-02-28',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 17:08:00','2023-03-10 17:08:01','73106912832927','2023-03-10','23','2023-03-10',40748,40766,7,5,NULL,NULL,NULL,NULL,0.00,2400.00,1,1.00,NULL),(55,8520,'2023-02-28','2023-02-17','2023-02-17','2023-02-28',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 17:27:26','2023-03-10 17:27:28','73106915336039','2023-03-10','24','2023-03-10',40748,40753,7,5,NULL,NULL,NULL,NULL,0.00,3100.00,1,1.00,NULL),(56,8520,'2023-02-28','2023-02-13','2023-02-13','2023-02-28',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 17:29:05','2023-03-10 17:29:08','73106915535032','2023-03-10','25','2023-03-10',40748,40767,7,5,NULL,NULL,NULL,NULL,0.00,7000.00,1,1.00,NULL),(57,8520,'2023-02-28','2023-02-10','2023-02-10','2023-02-28',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 17:30:50','2023-03-10 17:30:52','73106915738584','2023-03-10','26','2023-03-10',40748,40768,7,5,NULL,NULL,NULL,NULL,0.00,1200.01,1,1.00,NULL);
INSERT INTO `fact_elec_receipts` VALUES (58,8520,'2023-02-28','2023-02-22','2023-02-22','2023-02-28',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 17:32:10','2023-03-10 17:32:22','73106915918846','2023-03-10','27','2023-03-10',40748,40769,7,5,NULL,NULL,NULL,NULL,0.00,4300.00,1,1.00,NULL),(59,8520,'2023-02-28','2023-02-17','2023-02-17','2023-02-28',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 17:33:45','2023-03-10 17:33:47','73106916090023','2023-03-10','28','2023-03-10',40748,40770,7,5,NULL,NULL,NULL,NULL,0.00,32000.00,1,1.00,NULL),(60,8520,'2023-02-28','2023-02-16','2023-02-16','2023-02-28',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 17:36:13','2023-03-10 17:36:14','73106916381307','2023-03-10','29','2023-03-10',40748,40771,7,5,NULL,NULL,NULL,NULL,0.00,4300.00,1,1.00,NULL),(61,8520,'2023-02-28','2023-02-22','2023-02-22','2023-02-28',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 17:37:24','2023-03-10 17:37:26','73106916517856','2023-03-10','30','2023-03-10',40748,40772,7,5,NULL,NULL,NULL,NULL,0.00,4300.00,1,1.00,NULL),(62,8520,'2023-02-28','2023-02-15','2023-02-15','2023-02-28',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 17:39:05','2023-03-10 17:39:07','73106916711134','2023-03-10','31','2023-03-10',40748,40718,7,5,NULL,NULL,NULL,NULL,0.00,4300.00,1,1.00,NULL),(63,8520,'2023-02-28','2023-02-09','2023-02-09','2023-02-28',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 17:40:33','2023-03-10 17:40:35','73106916903603','2023-03-10','32','2023-03-10',40748,40718,7,5,NULL,NULL,NULL,NULL,0.00,5499.99,1,1.00,NULL),(64,8520,'2023-02-28','2023-02-10','2023-02-10','2023-02-28',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 17:41:46','2023-03-10 17:41:48','73106917080181','2023-03-10','33','2023-03-10',40748,40773,7,5,NULL,NULL,NULL,NULL,0.00,6000.00,1,1.00,NULL),(65,8520,'2023-02-28','2023-02-23','2023-02-23','2023-02-28',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 17:43:28','2023-03-10 17:43:30','73106917322322','2023-03-10','34','2023-03-10',40748,40774,7,5,NULL,NULL,NULL,NULL,0.00,3400.00,1,1.00,NULL),(66,8520,'2023-02-28','2023-02-16','2023-02-16','2023-02-28',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 17:44:44','2023-03-10 17:44:45','73106917494005','2023-03-10','35','2023-03-10',40748,40775,7,5,NULL,NULL,NULL,NULL,0.00,12000.01,1,1.00,NULL),(67,8520,'2023-02-28','2023-02-10','2023-02-10','2023-02-28',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 17:46:22','2023-03-10 17:46:24','73106917717770','2023-03-10','36','2023-03-10',40748,40776,7,5,NULL,NULL,NULL,NULL,0.00,60000.00,1,1.00,NULL),(68,8520,'2023-02-28','2023-02-17','2023-02-17','2023-02-28',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 17:47:34','2023-03-10 17:47:36','73106917879764','2023-03-10','37','2023-03-10',40748,40750,7,5,NULL,NULL,NULL,NULL,0.00,22000.00,1,1.00,NULL),(69,8520,'2023-02-28','2023-02-10','2023-02-13','2023-02-28',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 17:49:31','2023-03-10 17:49:33','73106918122015','2023-03-10','38','2023-03-10',40748,40777,7,5,NULL,NULL,NULL,NULL,0.00,11300.00,1,1.00,NULL);
INSERT INTO `fact_elec_receipts` VALUES (70,8520,'2023-02-28','2023-02-07','2023-02-07','2023-02-28',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"03-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-03-10 17:51:38','2023-03-10 17:51:39','73106918393341','2023-03-10','39','2023-03-10',40748,40778,7,5,NULL,NULL,NULL,NULL,0.00,30000.00,1,1.00,NULL),(71,8520,'2023-03-31','2023-03-09','2023-03-09','2023-03-31',2,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"04-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-04-10 11:25:30','2023-04-10 11:25:33','73156837454198','2023-04-10','40','2023-04-10',40748,40718,4,5,NULL,NULL,NULL,NULL,0.00,10450.00,1,1.00,NULL),(72,8520,'2023-03-31','2023-03-14','2023-03-14','2023-03-31',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"04-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-04-10 11:27:32','2023-04-10 11:27:34','73156837859455','2023-04-10','41','2023-04-10',40748,40718,3,5,NULL,NULL,NULL,NULL,0.00,50000.00,1,1.00,NULL),(73,8520,'2023-03-31','2023-03-14','2023-03-14','2023-03-31',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"04-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-04-10 11:28:55','2023-04-10 11:28:57','73156838116020','2023-04-10','42','2023-04-10',40748,40718,3,5,NULL,NULL,NULL,NULL,0.00,32000.00,1,1.00,NULL),(74,8520,'2023-03-31','2023-03-14','2023-03-14','2023-03-31',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"04-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-04-10 11:30:16','2023-04-10 11:30:19','73156838358060','2023-04-10','43','2023-04-10',40748,40718,3,5,NULL,NULL,NULL,NULL,0.00,2500.01,1,1.00,NULL),(75,8520,'2023-03-31','2023-03-16','2023-03-16','2023-03-31',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"04-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-04-10 11:32:20','2023-04-10 11:32:22','73156838728975','2023-04-10','44','2023-04-10',40748,40718,3,5,NULL,NULL,NULL,NULL,0.00,18000.00,1,1.00,NULL),(76,8520,'2023-03-31','2023-03-18','2023-03-18','2023-03-31',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"04-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-04-10 11:33:59','2023-04-10 11:34:01','73156839005091','2023-04-10','45','2023-04-10',40748,40718,3,5,NULL,NULL,NULL,NULL,0.00,12000.01,1,1.00,NULL),(77,8520,'2023-03-31','2023-03-18','2023-03-18','2023-03-31',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"04-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-04-10 11:35:21','2023-04-10 11:35:25','73156839246276','2023-04-10','46','2023-04-10',40748,40718,3,5,NULL,NULL,NULL,NULL,0.00,10500.00,1,1.00,NULL),(78,8520,'2023-03-31','2023-03-21','2023-03-21','2023-03-31',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"04-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-04-10 11:36:25','2023-04-10 11:36:29','73156839442276','2023-04-10','47','2023-04-10',40748,40718,3,5,NULL,NULL,NULL,NULL,0.00,16000.00,1,1.00,NULL),(79,8520,'2023-03-31','2023-03-29','2023-03-29','2023-03-31',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"04-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-04-10 11:38:05','2023-04-10 11:38:07','73156839728426','2023-04-10','48','2023-04-10',40748,40718,3,5,NULL,NULL,NULL,NULL,0.00,18000.00,1,1.00,NULL),(80,8520,'2023-03-31','2023-03-29','2023-03-29','2023-03-31',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"04-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-04-10 11:39:05','2023-04-10 11:39:07','73156839890756','2023-04-10','49','2023-04-10',40748,40718,3,5,NULL,NULL,NULL,NULL,0.00,25800.00,1,1.00,NULL),(81,8520,'2023-03-31','2023-03-29','2023-03-29','2023-03-31',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"04-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-04-10 11:39:57','2023-04-10 11:39:59','73156840049205','2023-04-10','50','2023-04-10',40748,40718,3,5,NULL,NULL,NULL,NULL,0.00,25000.00,1,1.00,NULL);
INSERT INTO `fact_elec_receipts` VALUES (82,8520,'2023-03-31','2023-03-29','2023-03-29','2023-03-31',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"04-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-04-10 11:40:51','2023-04-10 11:40:53','73156840211778','2023-04-10','51','2023-04-10',40748,40718,3,5,NULL,NULL,NULL,NULL,0.00,32000.00,1,1.00,NULL),(83,8520,'2023-03-31','2023-03-30','2023-03-30','2023-03-31',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"04-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-04-10 11:41:41','2023-04-10 11:41:44','73156840358083','2023-04-10','52','2023-04-10',40748,40718,3,5,NULL,NULL,NULL,NULL,0.00,14999.99,1,1.00,NULL),(84,8520,'2023-03-31','2023-03-13','2023-03-13','2023-03-31',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"04-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-04-10 11:45:45','2023-04-10 11:45:47','73156841096088','2023-04-10','53','2023-04-10',40748,40905,7,5,NULL,NULL,NULL,NULL,0.00,1000.00,1,1.00,NULL),(85,8520,'2023-03-31','2023-03-16','2023-03-16','2023-03-31',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"04-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-04-10 11:46:55','2023-04-10 11:46:57','73156841299307','2023-04-10','54','2023-04-10',40748,40765,7,5,NULL,NULL,NULL,NULL,0.00,3400.00,1,1.00,NULL),(86,8520,'2023-03-31','2023-03-22','2023-03-22','2023-03-31',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"04-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-04-10 11:48:29','2023-04-10 11:48:31','73156841570329','2023-04-10','55','2023-04-10',40748,40906,7,5,NULL,NULL,NULL,NULL,0.00,4650.01,1,1.00,NULL),(87,8520,'2023-03-31','2023-03-22','2023-03-22','2023-03-31',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"04-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-04-10 11:49:48','2023-04-10 11:49:51','73156841797313','2023-04-10','56','2023-04-10',40748,40907,7,5,NULL,NULL,NULL,NULL,0.00,4300.00,1,1.00,NULL),(88,8520,'2023-03-31','2023-03-23','2023-03-23','2023-03-31',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"04-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-04-10 11:50:52','2023-04-10 11:50:54','73156841977560','2023-04-10','57','2023-04-10',40748,40766,7,5,NULL,NULL,NULL,NULL,0.00,2600.00,1,1.00,NULL),(89,8520,'2023-03-31','2023-03-17','2023-03-17','2023-03-31',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"04-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-04-10 12:00:42','2023-04-10 12:00:44','73156843698877','2023-04-10','58','2023-04-10',40748,40753,7,5,NULL,NULL,NULL,NULL,0.00,3100.00,1,1.00,NULL),(90,8520,'2023-03-31','2023-03-20','2023-03-20','2023-03-31',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"04-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-04-10 12:04:38','2023-04-10 12:04:41','73156844359986','2023-04-10','59','2023-04-10',40748,40767,7,5,NULL,NULL,NULL,NULL,0.00,18000.00,1,1.00,NULL),(91,8520,'2023-03-31','2023-03-27','2023-03-27','2023-03-31',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"04-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-04-10 12:06:01','2023-04-10 12:06:03','73156844589439','2023-04-10','60','2023-04-10',40748,40769,7,5,NULL,NULL,NULL,NULL,0.00,4300.00,1,1.00,NULL),(92,8520,'2023-03-31','2023-03-17','2023-03-17','2023-03-31',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"04-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-04-10 12:07:10','2023-04-10 12:07:12','73156844785706','2023-04-10','61','2023-04-10',40748,40771,7,5,NULL,NULL,NULL,NULL,0.00,4300.00,1,1.00,NULL),(93,8520,'2023-03-31','2023-03-17','2023-03-17','2023-03-31',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"04-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-04-10 12:08:32','2023-04-10 12:08:34','73156845012275','2023-04-10','62','2023-04-10',40748,40908,7,5,NULL,NULL,NULL,NULL,0.00,3400.00,1,1.00,NULL);
INSERT INTO `fact_elec_receipts` VALUES (94,8520,'2023-03-31','2023-03-13','2023-03-13','2023-03-31',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"04-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-04-10 12:10:27','2023-04-10 12:10:34','73156845333024','2023-04-10','63','2023-04-10',40748,40758,7,5,NULL,NULL,NULL,NULL,0.00,18000.00,1,1.00,NULL),(95,8520,'2023-03-31','2023-03-31','2023-03-31','2023-03-31',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"04-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-04-10 12:13:49','2023-04-10 12:13:51','73156845850284','2023-04-10','64','2023-04-10',40748,40909,7,5,NULL,NULL,NULL,NULL,0.00,25000.00,1,1.00,NULL),(96,8520,'2023-03-31','2023-03-27','2023-03-27','2023-03-31',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"04-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-04-10 12:15:41','2023-04-10 12:15:43','73156846143731','2023-04-10','65','2023-04-10',40748,40910,7,5,NULL,NULL,NULL,NULL,0.00,4300.00,1,1.00,NULL),(97,8520,'2023-03-31','2023-03-23','2023-03-27','2023-03-31',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"04-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-04-10 12:17:21','2023-04-10 12:17:23','73156846417245','2023-04-10','66','2023-04-10',40748,40911,7,5,NULL,NULL,NULL,NULL,0.00,28000.01,1,1.00,NULL),(98,8520,'2023-03-31','2023-03-31','2023-03-31','2023-03-31',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"04-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-04-10 12:20:03','2023-04-10 12:20:05','73156846821910','2023-04-10','67','2023-04-10',40748,40774,7,5,NULL,NULL,NULL,NULL,0.00,3400.00,1,1.00,NULL),(99,8520,'2023-03-31','2023-03-31','2023-03-31','2023-03-31',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"04-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-04-10 12:21:18','2023-04-10 12:21:20','73156847013574','2023-04-10','68','2023-04-10',40748,40912,7,5,NULL,NULL,NULL,NULL,0.00,4300.00,1,1.00,NULL),(100,8520,'2023-03-31','2023-03-13','2023-03-13','2023-03-31',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"04-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-04-10 12:22:35','2023-04-10 12:22:37','73156847199291','2023-04-10','69','2023-04-10',40748,40913,7,5,NULL,NULL,NULL,NULL,0.00,4060.00,1,1.00,NULL),(101,8520,'2023-03-31','2023-03-10','2023-03-10','2023-03-31',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"04-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-04-10 12:24:07','2023-04-10 12:24:09','73156847416619','2023-04-10','70','2023-04-10',40748,40718,7,5,NULL,NULL,NULL,NULL,0.00,18000.00,1,1.00,NULL),(102,8520,'2023-03-31','2023-03-20','2023-03-20','2023-03-31',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"04-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-04-10 12:27:46','2023-04-10 12:27:47','73156847964667','2023-04-10','71','2023-04-10',40748,40718,7,5,NULL,NULL,NULL,NULL,0.00,1600.00,1,1.00,NULL),(103,8520,'2023-03-31','2023-03-23','2023-03-23','2023-03-31',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"04-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-04-10 12:28:45','2023-04-10 12:28:47','73156848110294','2023-04-10','72','2023-04-10',40748,40761,7,5,NULL,NULL,NULL,NULL,0.00,3400.00,1,1.00,NULL),(104,8520,'2023-03-31','2023-03-13','2023-03-13','2023-03-31',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"04-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-04-10 12:29:54','2023-04-10 12:29:56','73156848278742','2023-04-10','73','2023-04-10',40748,40718,7,5,NULL,NULL,NULL,NULL,0.00,2000.00,1,1.00,NULL),(105,8520,'2023-03-31','2023-03-27','2023-03-27','2023-03-31',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"04-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-04-10 12:30:59','2023-04-10 12:31:01','73156848437772','2023-04-10','74','2023-04-10',40748,40914,7,5,NULL,NULL,NULL,NULL,0.00,6500.00,1,1.00,NULL);
INSERT INTO `fact_elec_receipts` VALUES (106,8520,'2023-03-31','2023-03-15','2023-03-15','2023-03-31',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"04-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-04-10 12:32:05','2023-04-10 12:32:07','73156848599499','2023-04-10','75','2023-04-10',40748,40915,7,5,NULL,NULL,NULL,NULL,0.00,19520.00,1,1.00,NULL),(107,NULL,'2023-03-31','2023-03-01','2023-03-31','2023-03-31',2,3,7,'',NULL,'2023-04-10 12:39:56','2023-04-10 12:39:59','73152849814966','2023-04-10','31','2023-04-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,1.00,NULL),(108,NULL,'2023-03-31','2023-03-01','2023-03-31','2023-03-31',2,3,7,'',NULL,'2023-04-10 12:39:59','2023-04-10 12:40:01','73152849817896','2023-04-10','32','2023-04-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,1.00,NULL),(109,NULL,'2023-03-31','2023-03-01','2023-03-31','2023-03-31',2,3,7,'',NULL,'2023-04-10 12:40:01','2023-04-10 12:40:03','73152849823112','2023-04-10','33','2023-04-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,1.00,NULL),(110,NULL,'2023-03-31','2023-03-01','2023-03-31','2023-03-31',2,3,7,'',NULL,'2023-04-10 12:40:03','2023-04-10 12:40:07','73152849833796','2023-04-10','34','2023-04-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,1.00,NULL),(111,NULL,'2023-03-31','2023-03-01','2023-03-31','2023-03-31',2,3,7,'',NULL,'2023-04-10 12:40:07','2023-04-10 12:40:11','73152849843883','2023-04-10','35','2023-04-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,1.00,NULL),(112,NULL,'2023-03-31','2023-03-01','2023-03-31','2023-03-31',2,3,7,'',NULL,'2023-04-10 12:40:12','2023-04-10 12:40:14','73152849850037','2023-04-10','36','2023-04-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,1.00,NULL),(113,NULL,'2023-03-31','2023-03-01','2023-03-31','2023-03-31',2,3,7,'',NULL,'2023-04-10 12:40:14','2023-04-10 12:40:15','73152849853292','2023-04-10','37','2023-04-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,1.00,NULL),(114,NULL,'2023-03-31','2023-03-01','2023-03-31','2023-03-31',2,3,7,'',NULL,'2023-04-10 12:40:16','2023-04-10 12:40:17','73152849856800','2023-04-10','38','2023-04-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,1.00,NULL),(115,NULL,'2023-03-31','2023-03-01','2023-03-31','2023-03-31',2,3,7,'',NULL,'2023-04-10 12:40:17','2023-04-10 12:40:19','73152849861667','2023-04-10','39','2023-04-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,1.00,NULL),(116,NULL,'2023-03-31','2023-03-01','2023-03-31','2023-03-31',2,3,7,'',NULL,'2023-04-10 12:40:19','2023-04-10 12:40:22','73152849870371','2023-04-10','40','2023-04-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,1.00,NULL),(117,NULL,'2023-03-31','2023-03-01','2023-03-31','2023-03-31',2,3,7,'',NULL,'2023-04-10 12:40:22','2023-04-10 12:40:24','73152849875376','2023-04-10','41','2023-04-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,1.00,NULL),(118,NULL,'2023-03-31','2023-03-01','2023-03-31','2023-03-31',2,3,7,'',NULL,'2023-04-10 12:40:25','2023-04-10 12:40:29','73152849885756','2023-04-10','42','2023-04-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,1.00,NULL),(119,NULL,'2023-03-31','2023-03-01','2023-03-31','2023-03-31',2,3,7,'',NULL,'2023-04-10 12:40:29','2023-04-10 12:40:31','73152849891983','2023-04-10','43','2023-04-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,1.00,NULL),(120,NULL,'2023-03-31','2023-03-01','2023-03-31','2023-03-31',2,3,7,'',NULL,'2023-04-10 12:40:31','2023-04-10 12:40:34','73152849900110','2023-04-10','44','2023-04-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,1.00,NULL),(121,NULL,'2023-03-31','2023-03-01','2023-03-31','2023-03-31',2,3,7,'',NULL,'2023-04-10 12:40:34','2023-04-10 12:40:36','73152849904698','2023-04-10','45','2023-04-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,1.00,NULL),(122,NULL,'2023-03-31','2023-03-01','2023-03-31','2023-03-31',2,3,7,'',NULL,'2023-04-10 12:40:36','2023-04-10 12:40:38','73152849910150','2023-04-10','46','2023-04-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,1.00,NULL);
INSERT INTO `fact_elec_receipts` VALUES (123,NULL,'2023-03-31','2023-03-01','2023-03-31','2023-03-31',2,3,7,'',NULL,'2023-04-10 12:40:38','2023-04-10 12:40:39','73152849914963','2023-04-10','47','2023-04-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,1.00,NULL),(124,NULL,'2023-03-31','2023-03-01','2023-03-31','2023-03-31',2,3,7,'',NULL,'2023-04-10 12:40:39','2023-04-10 12:40:40','73152849918792','2023-04-10','48','2023-04-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,1.00,NULL),(125,NULL,'2023-03-31','2023-03-01','2023-03-31','2023-03-31',2,3,7,'',NULL,'2023-04-10 12:40:41','2023-04-10 12:40:42','73152849921691','2023-04-10','49','2023-04-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,1.00,NULL),(126,NULL,'2023-03-31','2023-03-01','2023-03-31','2023-03-31',2,3,7,'',NULL,'2023-04-10 12:40:42','2023-04-10 12:40:43','73152849925933','2023-04-10','50','2023-04-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,1.00,NULL),(127,NULL,'2023-03-31','2023-03-01','2023-03-31','2023-03-31',2,3,7,'',NULL,'2023-04-10 12:40:43','2023-04-10 12:40:44','73152849931131','2023-04-10','51','2023-04-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,1.00,NULL),(128,NULL,'2023-03-31','2023-03-01','2023-03-31','2023-03-31',2,3,7,'',NULL,'2023-04-10 12:40:45','2023-04-10 12:40:46','73152849935795','2023-04-10','52','2023-04-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,1.00,NULL),(129,NULL,'2023-03-31','2023-03-01','2023-03-31','2023-03-31',2,3,7,'',NULL,'2023-04-10 12:40:46','2023-04-10 12:40:48','73152849938476','2023-04-10','53','2023-04-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,1.00,NULL),(130,NULL,'2023-03-31','2023-03-01','2023-03-31','2023-03-31',2,3,7,'',NULL,'2023-04-10 12:40:48','2023-04-10 12:40:49','73152849941875','2023-04-10','54','2023-04-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,1.00,NULL),(131,NULL,'2023-03-31','2023-03-01','2023-03-31','2023-03-31',2,3,7,'',NULL,'2023-04-10 12:40:49','2023-04-10 12:40:50','73152849945913','2023-04-10','55','2023-04-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,1.00,NULL),(132,NULL,'2023-03-31','2023-03-01','2023-03-31','2023-03-31',2,3,7,'',NULL,'2023-04-10 12:40:50','2023-04-10 12:40:51','73152849949328','2023-04-10','56','2023-04-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,1.00,NULL),(133,NULL,'2023-03-31','2023-03-01','2023-03-31','2023-03-31',2,3,7,'',NULL,'2023-04-10 12:40:51','2023-04-10 12:40:53','73152849951946','2023-04-10','57','2023-04-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,1.00,NULL),(134,NULL,'2023-03-31','2023-03-01','2023-03-31','2023-03-31',2,3,7,'',NULL,'2023-04-10 12:40:53','2023-04-10 12:40:54','73152849955335','2023-04-10','58','2023-04-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,1.00,NULL),(135,NULL,'2023-03-31','2023-03-01','2023-03-31','2023-03-31',2,3,7,'',NULL,'2023-04-10 12:40:54','2023-04-10 12:40:55','73152849959088','2023-04-10','59','2023-04-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,1.00,NULL),(136,NULL,'2023-03-31','2023-03-01','2023-03-31','2023-03-31',2,3,7,'',NULL,'2023-04-10 12:40:55','2023-04-10 12:40:57','73152849963475','2023-04-10','60','2023-04-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,1.00,NULL),(137,NULL,'2023-04-30','2023-04-01','2023-04-30','2023-04-30',2,3,7,'',NULL,'2023-05-05 11:19:25','2023-05-05 11:19:28','73182371466652','2023-05-10','61','2023-05-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,225.00,NULL),(138,NULL,'2023-04-30','2023-04-01','2023-04-30','2023-04-30',2,3,7,'',NULL,'2023-05-05 11:19:28','2023-05-05 11:19:29','73182371469244','2023-05-10','62','2023-05-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,225.00,NULL),(139,NULL,'2023-04-30','2023-04-01','2023-04-30','2023-04-30',2,3,7,'',NULL,'2023-05-05 11:19:29','2023-05-05 11:19:29','73182371472185','2023-05-10','63','2023-05-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,225.00,NULL);
INSERT INTO `fact_elec_receipts` VALUES (140,NULL,'2023-04-30','2023-04-01','2023-04-30','2023-04-30',2,3,7,'',NULL,'2023-05-05 11:19:30','2023-05-05 11:19:30','73182371475311','2023-05-10','64','2023-05-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,225.00,NULL),(141,NULL,'2023-04-30','2023-04-01','2023-04-30','2023-04-30',2,3,7,'',NULL,'2023-05-05 11:19:30','2023-05-05 11:19:31','73182371478181','2023-05-10','65','2023-05-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,225.00,NULL),(142,NULL,'2023-04-30','2023-04-01','2023-04-30','2023-04-30',2,3,7,'',NULL,'2023-05-05 11:19:31','2023-05-05 11:19:32','73182371480521','2023-05-10','66','2023-05-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,225.00,NULL),(143,NULL,'2023-04-30','2023-04-01','2023-04-30','2023-04-30',2,3,7,'',NULL,'2023-05-05 11:19:32','2023-05-05 11:19:33','73182371483155','2023-05-10','67','2023-05-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,225.00,NULL),(144,NULL,'2023-04-30','2023-04-01','2023-04-30','2023-04-30',2,3,7,'',NULL,'2023-05-05 11:19:33','2023-05-05 11:19:34','73182371486205','2023-05-10','68','2023-05-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,225.00,NULL),(145,NULL,'2023-04-30','2023-04-01','2023-04-30','2023-04-30',2,3,7,'',NULL,'2023-05-05 11:19:34','2023-05-05 11:19:35','73182371488867','2023-05-10','69','2023-05-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,225.00,NULL),(146,NULL,'2023-04-30','2023-04-01','2023-04-30','2023-04-30',2,3,7,'',NULL,'2023-05-05 11:19:35','2023-05-05 11:19:36','73182371491211','2023-05-10','70','2023-05-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,225.00,NULL),(147,NULL,'2023-04-30','2023-04-01','2023-04-30','2023-04-30',2,3,7,'',NULL,'2023-05-05 11:19:36','2023-05-05 11:19:36','73182371493624','2023-05-10','71','2023-05-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,225.00,NULL),(148,NULL,'2023-04-30','2023-04-01','2023-04-30','2023-04-30',2,3,7,'',NULL,'2023-05-05 11:19:37','2023-05-05 11:19:37','73182371495846','2023-05-10','72','2023-05-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,225.00,NULL),(149,NULL,'2023-04-30','2023-04-01','2023-04-30','2023-04-30',2,3,7,'',NULL,'2023-05-05 11:19:37','2023-05-05 11:19:38','73182371498103','2023-05-10','73','2023-05-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,225.00,NULL),(150,NULL,'2023-04-30','2023-04-01','2023-04-30','2023-04-30',2,3,7,'',NULL,'2023-05-05 11:19:38','2023-05-05 11:19:39','73182371500171','2023-05-10','74','2023-05-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,225.00,NULL),(151,NULL,'2023-04-30','2023-04-01','2023-04-30','2023-04-30',2,3,7,'',NULL,'2023-05-05 11:19:39','2023-05-05 11:19:40','73182371502364','2023-05-10','75','2023-05-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4800.00,1,225.00,NULL),(152,NULL,'2023-04-30','2023-04-01','2023-04-30','2023-04-30',2,3,7,'',NULL,'2023-05-05 11:19:40','2023-05-05 11:19:41','73182371505370','2023-05-10','76','2023-05-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,225.00,NULL),(153,NULL,'2023-04-30','2023-04-01','2023-04-30','2023-04-30',2,3,7,'',NULL,'2023-05-05 11:19:41','2023-05-05 11:19:42','73182371508213','2023-05-10','77','2023-05-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,225.00,NULL),(154,NULL,'2023-04-30','2023-04-01','2023-04-30','2023-04-30',2,3,7,'',NULL,'2023-05-05 11:19:42','2023-05-05 11:19:42','73182371511167','2023-05-10','78','2023-05-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,225.00,NULL),(155,NULL,'2023-04-30','2023-04-01','2023-04-30','2023-04-30',2,3,7,'',NULL,'2023-05-05 11:19:42','2023-05-05 11:19:43','73182371514542','2023-05-10','79','2023-05-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,225.00,NULL),(156,NULL,'2023-04-30','2023-04-01','2023-04-30','2023-04-30',2,3,7,'',NULL,'2023-05-05 11:19:43','2023-05-05 11:19:44','73182371517647','2023-05-10','80','2023-05-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,225.00,NULL);
INSERT INTO `fact_elec_receipts` VALUES (157,NULL,'2023-04-30','2023-04-01','2023-04-30','2023-04-30',2,3,7,'',NULL,'2023-05-05 11:19:44','2023-05-05 11:19:45','73182371519929','2023-05-10','81','2023-05-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,225.00,NULL),(158,NULL,'2023-04-30','2023-04-01','2023-04-30','2023-04-30',2,3,7,'',NULL,'2023-05-05 11:19:45','2023-05-05 11:19:46','73182371521827','2023-05-10','82','2023-05-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,225.00,NULL),(159,NULL,'2023-04-30','2023-04-01','2023-04-30','2023-04-30',2,3,7,'',NULL,'2023-05-05 11:19:46','2023-05-05 11:19:47','73182371524011','2023-05-10','83','2023-05-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,225.00,NULL),(160,NULL,'2023-04-30','2023-04-01','2023-04-30','2023-04-30',2,3,7,'',NULL,'2023-05-05 11:19:47','2023-05-05 11:19:47','73182371526217','2023-05-10','84','2023-05-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,225.00,NULL),(161,NULL,'2023-04-30','2023-04-01','2023-04-30','2023-04-30',2,3,7,'',NULL,'2023-05-05 11:19:48','2023-05-05 11:19:48','73182371528104','2023-05-10','85','2023-05-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,225.00,NULL),(162,NULL,'2023-04-30','2023-04-01','2023-04-30','2023-04-30',2,3,7,'',NULL,'2023-05-05 11:19:48','2023-05-05 11:19:49','73182371530104','2023-05-10','86','2023-05-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,225.00,NULL),(163,NULL,'2023-04-30','2023-04-01','2023-04-30','2023-04-30',2,3,7,'',NULL,'2023-05-05 11:19:49','2023-05-05 11:19:50','73182371532211','2023-05-10','87','2023-05-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,225.00,NULL),(164,NULL,'2023-04-30','2023-04-01','2023-04-30','2023-04-30',2,3,7,'',NULL,'2023-05-05 11:19:50','2023-05-05 11:19:51','73182371534404','2023-05-10','88','2023-05-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,225.00,NULL),(165,NULL,'2023-04-30','2023-04-01','2023-04-30','2023-04-30',2,3,7,'',NULL,'2023-05-05 11:19:51','2023-05-05 11:19:52','73182371536862','2023-05-10','89','2023-05-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,225.00,NULL),(166,NULL,'2023-04-30','2023-04-01','2023-04-30','2023-04-30',2,3,7,'',NULL,'2023-05-05 11:19:52','2023-05-05 11:19:53','73182371539030','2023-05-10','90','2023-05-10',40749,40718,4,5,NULL,NULL,NULL,NULL,0.00,4200.00,1,225.00,NULL),(167,8520,'2023-04-30','2023-04-03','2023-04-03','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 09:52:08','2023-05-10 09:52:11','73196868956669','2023-05-10','76','2023-05-10',40748,40759,1,5,NULL,NULL,NULL,NULL,0.00,2899.99,1,230.00,NULL),(168,8520,'2023-04-30','2023-04-03','2023-04-03','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 09:53:47','2023-05-10 09:53:49','73196869175839','2023-05-10','77','2023-05-10',40748,40916,4,5,NULL,NULL,NULL,NULL,0.00,25000.00,1,230.00,NULL),(169,8520,'2023-04-30','2023-04-04','2023-04-04','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 09:55:25','2023-05-10 09:55:26','73196869388994','2023-05-10','78','2023-05-10',40748,40917,4,5,NULL,NULL,NULL,NULL,0.00,10935.00,1,230.00,NULL),(170,8520,'2023-04-30','2023-04-05','2023-04-05','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 09:58:35','2023-05-10 09:58:37','73196869825778','2023-05-10','79','2023-05-10',40748,40718,4,5,NULL,NULL,NULL,NULL,0.00,6000.00,1,230.00,NULL),(171,8520,'2023-04-30','2023-04-05','2023-04-05','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 09:59:42','2023-05-10 09:59:44','73196869983784','2023-05-10','80','2023-05-10',40748,40718,4,5,NULL,NULL,NULL,NULL,0.00,14999.99,1,230.00,NULL);
INSERT INTO `fact_elec_receipts` VALUES (172,8520,'2023-04-30','2023-04-05','2023-04-05','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 10:00:49','2023-05-10 10:00:50','73196870137518','2023-05-10','81','2023-05-10',40748,40753,4,5,NULL,NULL,NULL,NULL,0.00,7200.00,1,230.00,NULL),(173,8520,'2023-04-30','2023-04-10','2023-04-10','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 10:02:05','2023-05-10 10:02:07','73196870316206','2023-05-10','82','2023-05-10',40748,40776,4,5,NULL,NULL,NULL,NULL,0.00,60000.00,1,230.00,NULL),(174,8520,'2023-04-30','2023-04-10','2023-04-10','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 10:04:44','2023-05-10 10:04:46','73196870672638','2023-05-10','83','2023-05-10',40748,40918,4,5,NULL,NULL,NULL,NULL,0.00,3000.00,1,230.00,NULL),(175,8520,'2023-04-30','2023-04-10','2023-04-10','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 10:06:23','2023-05-10 10:06:25','73196870889991','2023-05-10','84','2023-05-10',40748,40919,4,5,NULL,NULL,NULL,NULL,0.00,3400.00,1,230.00,NULL),(176,8520,'2023-04-30','2023-04-10','2023-04-10','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 10:07:28','2023-05-10 10:07:29','73196871037782','2023-05-10','85','2023-05-10',40748,40767,4,5,NULL,NULL,NULL,NULL,0.00,7000.00,1,230.00,NULL),(177,8520,'2023-04-30','2023-04-12','2023-04-12','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 10:08:25','2023-05-10 10:08:27','73196871180326','2023-05-10','86','2023-05-10',40748,40915,4,5,NULL,NULL,NULL,NULL,0.00,20399.99,1,230.00,NULL),(178,8520,'2023-04-30','2023-04-12','2023-04-12','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 10:10:00','2023-05-10 10:10:02','73196871400661','2023-05-10','87','2023-05-10',40748,40920,4,5,NULL,NULL,NULL,NULL,0.00,2500.01,1,230.00,NULL),(179,8520,'2023-04-30','2023-04-13','2023-04-13','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 10:11:24','2023-05-10 10:11:26','73196871595136','2023-05-10','88','2023-05-10',40748,40921,4,5,NULL,NULL,NULL,NULL,0.00,32000.00,1,230.00,NULL),(180,8520,'2023-04-30','2023-04-13','2023-04-13','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 10:13:17','2023-05-10 10:13:18','73196871857797','2023-05-10','89','2023-05-10',40748,40922,4,5,NULL,NULL,NULL,NULL,0.00,3100.00,1,230.00,NULL),(181,8520,'2023-04-30','2023-04-14','2023-04-14','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 10:14:16','2023-05-10 10:14:18','73196871990480','2023-05-10','90','2023-05-10',40748,40772,4,5,NULL,NULL,NULL,NULL,0.00,4300.00,1,230.00,NULL),(182,8520,'2023-04-30','2023-04-14','2023-04-14','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 10:15:45','2023-05-10 10:15:47','73196872198828','2023-05-10','91','2023-05-10',40748,40768,4,5,NULL,NULL,NULL,NULL,0.00,2200.00,1,230.00,NULL),(183,8520,'2023-04-30','2023-04-14','2023-04-14','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 10:16:41','2023-05-10 10:16:43','73196872329152','2023-05-10','92','2023-05-10',40748,40909,4,5,NULL,NULL,NULL,NULL,0.00,32000.00,1,230.00,NULL);
INSERT INTO `fact_elec_receipts` VALUES (184,8520,'2023-04-30','2023-04-17','2023-04-17','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 10:18:22','2023-05-10 10:18:25','73196872569750','2023-05-10','93','2023-05-10',40748,40923,4,5,NULL,NULL,NULL,NULL,0.00,3400.00,1,230.00,NULL),(185,8520,'2023-04-30','2023-04-17','2023-04-17','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 10:22:07','2023-05-10 10:22:09','73196873110068','2023-05-10','94','2023-05-10',40748,40923,4,5,NULL,NULL,NULL,NULL,0.00,3400.00,1,230.00,NULL),(186,8520,'2023-04-30','2023-04-17','2023-04-17','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 10:23:28','2023-05-10 10:23:29','73196873305085','2023-05-10','95','2023-05-10',40748,40718,4,5,NULL,NULL,NULL,NULL,0.00,1200.01,1,230.00,NULL),(187,8520,'2023-04-30','2023-04-20','2023-04-20','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 10:28:25','2023-05-10 10:28:26','73196874045786','2023-05-10','96','2023-05-10',40748,40761,4,5,NULL,NULL,NULL,NULL,0.00,5400.00,1,230.00,NULL),(188,8520,'2023-04-30','2023-04-20','2023-04-20','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 10:30:57','2023-05-10 10:30:58','73196874436847','2023-05-10','97','2023-05-10',40748,40753,4,5,NULL,NULL,NULL,NULL,0.00,3100.00,1,230.00,NULL),(189,8520,'2023-04-30','2023-04-20','2023-04-20','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 10:32:16','2023-05-10 10:32:17','73196874630329','2023-05-10','98','2023-05-10',40748,40924,4,5,NULL,NULL,NULL,NULL,0.00,25000.00,1,230.00,NULL),(190,8520,'2023-04-30','2023-04-21','2023-04-21','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 10:35:41','2023-05-10 10:35:43','73196875161778','2023-05-10','99','2023-05-10',40748,40907,4,5,NULL,NULL,NULL,NULL,0.00,5300.01,1,230.00,NULL),(191,8520,'2023-04-30','2023-04-21','2023-04-21','2023-05-10',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 10:37:05','2023-05-10 10:37:07','73196875383283','2023-05-10','100','2023-05-10',40748,40925,4,5,NULL,NULL,NULL,NULL,0.00,3400.00,1,230.00,NULL),(192,8520,'2023-04-30','2023-04-21','2023-04-21','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 10:38:09','2023-05-10 10:38:10','73196875543230','2023-05-10','101','2023-05-10',40748,40913,4,5,NULL,NULL,NULL,NULL,0.00,2899.99,1,230.00,NULL),(193,8520,'2023-04-30','2023-04-24','2023-04-24','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 10:39:02','2023-05-10 10:39:04','73196875687513','2023-05-10','102','2023-05-10',40748,40769,4,5,NULL,NULL,NULL,NULL,0.00,4300.00,1,230.00,NULL),(194,8520,'2023-04-30','2023-04-27','2023-04-27','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 10:39:57','2023-05-10 10:40:01','73196875832596','2023-05-10','103','2023-05-10',40748,40761,4,5,NULL,NULL,NULL,NULL,0.00,4000.01,1,230.00,NULL),(195,8520,'2023-04-30','2023-04-27','2023-04-27','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 10:41:25','2023-05-10 10:41:27','73196876046085','2023-05-10','104','2023-05-10',40748,40718,4,5,NULL,NULL,NULL,NULL,0.00,2500.01,1,230.00,NULL);
INSERT INTO `fact_elec_receipts` VALUES (196,8520,'2023-04-30','2023-04-28','2023-04-28','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 10:42:34','2023-05-10 10:42:36','73196876228894','2023-05-10','105','2023-05-10',40748,40926,4,5,NULL,NULL,NULL,NULL,0.00,4300.00,1,230.00,NULL),(197,8520,'2023-04-30','2023-04-28','2023-04-28','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 10:43:42','2023-05-10 10:43:44','73196876406905','2023-05-10','106','2023-05-10',40748,40773,4,5,NULL,NULL,NULL,NULL,0.00,7400.00,1,230.00,NULL),(198,8520,'2023-04-30','2023-04-01','2023-04-01','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 10:46:55','2023-05-10 10:46:57','73196876909432','2023-05-10','107','2023-05-10',40748,40927,4,5,NULL,NULL,NULL,NULL,0.00,2800.00,1,230.00,NULL),(199,8520,'2023-04-30','2023-04-19','2023-04-19','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 10:47:51','2023-05-10 10:47:53','73196877053617','2023-05-10','108','2023-05-10',40748,40776,4,5,NULL,NULL,NULL,NULL,0.00,5600.00,1,230.00,NULL),(200,8520,'2023-04-30','2023-04-25','2023-04-25','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 10:49:22','2023-05-10 10:49:24','73196877297599','2023-05-10','109','2023-05-10',40748,40928,4,5,NULL,NULL,NULL,NULL,0.00,1900.00,1,230.00,NULL),(201,8520,'2023-04-30','2023-04-27','2023-04-27','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 10:50:21','2023-05-10 10:50:23','73196877450785','2023-05-10','110','2023-05-10',40748,40929,4,5,NULL,NULL,NULL,NULL,0.00,2500.01,1,230.00,NULL),(202,8520,'2023-04-30','2023-04-28','2023-04-28','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 10:51:19','2023-05-10 10:51:20','73196877599830','2023-05-10','111','2023-05-10',40748,40776,4,5,NULL,NULL,NULL,NULL,0.00,7000.00,1,230.00,NULL),(203,8520,'2023-04-30','2023-04-05','2023-04-05','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 11:49:31','2023-05-10 11:49:33','73196886586443','2023-05-10','112','2023-05-10',40748,40718,4,5,NULL,NULL,NULL,NULL,0.00,14999.99,1,230.00,NULL),(204,8520,'2023-04-30','2023-04-12','2023-04-12','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 11:50:36','2023-05-10 11:50:38','73196886750918','2023-05-10','113','2023-05-10',40748,40718,1,5,NULL,NULL,NULL,NULL,0.00,25000.00,1,230.00,NULL),(205,8520,'2023-04-30','2023-04-13','2023-04-13','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 11:52:12','2023-05-10 11:52:13','73196886996334','2023-05-10','114','2023-05-10',40748,40718,4,5,NULL,NULL,NULL,NULL,0.00,20000.01,1,230.00,NULL),(206,8520,'2023-04-30','2023-04-13','2023-04-13','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 11:53:00','2023-05-10 11:53:02','73196887120890','2023-05-10','115','2023-05-10',40748,40718,4,5,NULL,NULL,NULL,NULL,0.00,2400.00,1,230.00,NULL),(207,8520,'2023-04-30','2023-04-15','2023-04-15','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 11:55:03','2023-05-10 11:55:05','73196887424308','2023-05-10','116','2023-05-10',40748,40930,4,5,NULL,NULL,NULL,NULL,0.00,70158.16,1,230.00,NULL);
INSERT INTO `fact_elec_receipts` VALUES (208,8520,'2023-04-30','2023-04-18','2023-04-18','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 11:57:22','2023-05-10 11:57:24','73196887779715','2023-05-10','117','2023-05-10',40748,40718,4,5,NULL,NULL,NULL,NULL,0.00,42500.00,1,230.00,NULL),(209,8520,'2023-04-30','2023-04-22','2023-04-22','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 11:58:34','2023-05-10 11:58:35','73196887961195','2023-05-10','118','2023-05-10',40748,40718,4,5,NULL,NULL,NULL,NULL,0.00,4500.00,1,230.00,NULL),(210,8520,'2023-04-30','2023-04-22','2023-04-30','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 12:00:14','2023-05-10 12:00:16','73196888222497','2023-05-10','119','2023-05-10',40748,40718,4,5,NULL,NULL,NULL,NULL,0.00,10000.00,1,230.00,NULL),(211,8520,'2023-04-30','2023-04-29','2023-04-29','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 12:01:06','2023-05-10 12:01:08','73196888380241','2023-05-10','120','2023-05-10',40748,40718,4,5,NULL,NULL,NULL,NULL,0.00,16000.00,1,230.00,NULL),(212,8520,'2023-04-30','2023-04-03','2023-04-03','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 12:04:02','2023-05-10 12:04:04','73196888910190','2023-05-10','121','2023-05-10',40748,40718,4,5,NULL,NULL,NULL,NULL,0.00,18000.00,1,230.00,NULL),(213,8520,'2023-04-30','2023-04-04','2023-04-04','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 12:05:11','2023-05-10 12:05:12','73196889116950','2023-05-10','122','2023-05-10',40748,40718,4,5,NULL,NULL,NULL,NULL,0.00,7400.00,1,230.00,NULL),(214,8520,'2023-04-30','2023-04-05','2023-04-05','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 12:06:21','2023-05-10 12:06:23','73196889302101','2023-05-10','123','2023-05-10',40748,40718,4,5,NULL,NULL,NULL,NULL,0.00,5000.00,1,230.00,NULL),(215,8520,'2023-04-30','2023-04-12','2023-04-12','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 12:07:11','2023-05-10 12:07:13','73196889436457','2023-05-10','124','2023-05-10',40748,40718,4,5,NULL,NULL,NULL,NULL,0.00,12199.99,1,230.00,NULL),(216,8520,'2023-04-30','2023-04-17','2023-04-17','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 12:08:15','2023-05-10 12:08:16','73196889609049','2023-05-10','125','2023-05-10',40748,40718,4,5,NULL,NULL,NULL,NULL,0.00,12000.01,1,230.00,NULL),(217,8520,'2023-04-30','2023-04-17','2023-04-17','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 12:09:08','2023-05-10 12:09:09','73196889760176','2023-05-10','126','2023-05-10',40748,40718,4,5,NULL,NULL,NULL,NULL,0.00,2899.99,1,230.00,NULL),(218,8520,'2023-04-30','2023-04-18','2023-04-18','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 12:10:02','2023-05-10 12:10:04','73196889917004','2023-05-10','127','2023-05-10',40748,40718,4,5,NULL,NULL,NULL,NULL,0.00,6000.00,1,230.00,NULL),(219,8520,'2023-04-30','2023-04-25','2023-04-25','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 12:11:14','2023-05-10 12:11:16','73196890121807','2023-05-10','128','2023-05-10',40748,40718,4,5,NULL,NULL,NULL,NULL,0.00,1740.00,1,230.00,NULL);
INSERT INTO `fact_elec_receipts` VALUES (220,8520,'2023-04-30','2023-04-27','2023-04-27','2023-04-30',3,2,4,'','{\"Tipo\":null,\"PtoVta\":null,\"Nro\":null,\"CbteFch\":\"05-10-2023\",\"anula_comp_rechazado\":\"N\"}','2023-05-10 12:12:01','2023-05-10 12:12:03','73196890245875','2023-05-10','129','2023-05-10',40748,40718,4,5,NULL,NULL,NULL,NULL,0.00,3400.00,1,230.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-15 09:55:48',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-15 09:55:49','2023-02-15 09:55:49',NULL),(47,2021,64532.64,129065.29,3226.63,0.09,64532.64,'2023-02-15 09:55:49','2023-02-15 09:55:49',NULL),(48,2021,129065.29,193597.93,9034.57,0.12,129065.29,'2023-02-15 09:55:49','2023-02-15 09:55:49',NULL),(49,2021,193597.93,258130.58,16778.49,0.15,193597.93,'2023-02-15 09:55:49','2023-02-15 09:55:49',NULL),(50,2021,258130.58,387195.86,26458.39,0.19,258130.58,'2023-02-15 09:55:49','2023-02-15 09:55:49',NULL),(51,2021,387195.86,516261.14,50980.79,0.23,387195.86,'2023-02-15 09:55:49','2023-02-15 09:55:56',NULL),(52,2021,516261.14,774391.71,80665.80,0.27,516261.14,'2023-02-15 09:55:49','2023-02-15 09:55:49',NULL),(53,2021,774391.71,1032522.30,150361.06,0.31,774391.71,'2023-02-15 09:55:49','2023-02-15 09:55:49',NULL),(54,2021,1032522.30,999999999.99,230381.54,0.35,1032522.30,'2023-02-15 09:55:49','2023-02-15 09:55:49',NULL),(55,2022,0.00,97201.99,0.00,0.05,0.00,'2023-02-15 09:55:52','2023-02-15 09:55:52',NULL),(56,2022,97201.99,194404.01,4860.10,0.09,97201.99,'2023-02-15 09:55:52','2023-02-15 09:55:52',NULL),(57,2022,194404.01,291606.01,13608.29,0.12,194404.01,'2023-02-15 09:55:52','2023-02-15 09:55:52',NULL),(58,2022,291606.01,388808.02,25272.52,0.15,291606.01,'2023-02-15 09:55:52','2023-02-15 09:55:52',NULL),(59,2022,388808.02,583212.02,39852.82,0.19,388808.02,'2023-02-15 09:55:52','2023-02-15 09:55:52',NULL),(60,2022,583212.02,777616.02,76789.59,0.23,583212.02,'2023-02-15 09:55:52','2023-02-15 09:55:52',NULL),(61,2022,777616.02,1166424.03,121502.49,0.27,777616.02,'2023-02-15 09:55:52','2023-02-15 09:55:52',NULL),(62,2022,1166424.03,1555232.07,226480.67,0.31,1166424.03,'2023-02-15 09:55:52','2023-02-15 09:55:52',NULL),(63,2022,1555232.07,999999999.99,347011.15,0.35,1555232.07,'2023-02-15 09:55:52','2023-06-27 11:01:58',NULL),(64,2023,0.00,1400000.00,0.00,0.00,0.00,'2023-02-15 09:55:57','2023-09-25 22:18:41',NULL),(65,2023,1400000.00,1526000.00,0.00,0.09,1400000.00,'2023-02-15 09:55:57','2023-09-25 22:18:41',NULL),(66,2023,1526000.00,1648080.00,11340.00,0.12,1526000.00,'2023-02-15 09:55:57','2023-09-25 22:18:41',NULL),(67,2023,1648080.00,1763445.60,25989.60,0.15,1648080.00,'2023-02-15 09:55:57','2023-09-25 22:18:41',NULL),(68,2023,1763445.60,1869252.34,43294.44,0.19,1763445.60,'2023-02-15 09:55:57','2023-09-25 22:18:41',NULL),(69,2023,1869252.34,1962714.95,63397.72,0.23,1869252.34,'2023-02-15 09:55:57','2023-09-25 22:18:41',NULL),(70,2023,1962714.95,2041223.55,84894.12,0.27,1962714.95,'2023-02-15 09:55:57','2023-09-25 22:18:41',NULL),(71,2023,2041223.55,2102460.26,106091.44,0.31,2041223.55,'2023-02-15 09:55:57','2023-09-25 22:18:41',NULL),(72,2023,2102460.26,999999999.00,125074.82,0.35,2102460.26,'2023-02-15 09:55:57','2023-09-25 22:18:41',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,8520,1,40719,1,0.00,'2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(2,8520,1,40719,2,0.00,'2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(3,8520,1,40719,3,0.00,'2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(4,8520,2,40720,1,0.00,'2023-02-28 15:37:24','2023-02-28 15:37:24',NULL),(5,8520,2,40720,2,0.00,'2023-02-28 15:37:24','2023-02-28 15:37:24',NULL),(6,8520,2,40720,3,0.00,'2023-02-28 15:37:24','2023-02-28 15:37:24',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=45 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `ganan_ddjj_detail_deducciones` VALUES (1,8520,1,40719,151,0.00,'','2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(2,8520,1,40719,152,0.00,'','2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(3,8520,1,40719,153,0.00,'','2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(4,8520,1,40719,154,0.00,'','2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(5,8520,1,40719,155,0.00,'','2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(6,8520,1,40719,156,0.00,'','2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(7,8520,1,40719,157,0.00,'','2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(8,8520,1,40719,158,0.00,'','2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(9,8520,1,40719,159,0.00,'','2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(10,8520,1,40719,160,0.00,'','2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(11,8520,1,40719,161,0.00,'','2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(12,8520,1,40719,162,0.00,'','2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(13,8520,1,40719,163,0.00,'','2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(14,8520,1,40719,164,0.00,'','2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(15,8520,1,40719,165,0.00,'','2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(16,8520,1,40719,166,0.00,'','2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(17,8520,1,40719,167,0.00,'','2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(18,8520,1,40719,168,0.00,'','2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(19,8520,1,40719,169,0.00,'','2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(20,8520,1,40719,170,0.00,'','2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(21,8520,1,40719,171,0.00,'','2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(22,8520,1,40719,172,0.00,'','2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(23,8520,2,40720,151,0.00,NULL,'2023-02-28 15:37:24','2023-02-28 15:37:24',NULL),(24,8520,2,40720,152,0.00,NULL,'2023-02-28 15:37:24','2023-02-28 15:37:24',NULL),(25,8520,2,40720,153,0.00,NULL,'2023-02-28 15:37:24','2023-02-28 15:37:24',NULL),(26,8520,2,40720,154,0.00,NULL,'2023-02-28 15:37:24','2023-02-28 15:37:24',NULL),(27,8520,2,40720,155,0.00,NULL,'2023-02-28 15:37:24','2023-02-28 15:37:24',NULL),(28,8520,2,40720,156,0.00,NULL,'2023-02-28 15:37:24','2023-02-28 15:37:24',NULL),(29,8520,2,40720,157,0.00,NULL,'2023-02-28 15:37:24','2023-02-28 15:37:24',NULL),(30,8520,2,40720,158,0.00,NULL,'2023-02-28 15:37:24','2023-02-28 15:37:24',NULL),(31,8520,2,40720,159,0.00,NULL,'2023-02-28 15:37:24','2023-02-28 15:37:24',NULL),(32,8520,2,40720,160,0.00,NULL,'2023-02-28 15:37:24','2023-02-28 15:37:24',NULL),(33,8520,2,40720,161,0.00,NULL,'2023-02-28 15:37:24','2023-02-28 15:37:24',NULL),(34,8520,2,40720,162,0.00,NULL,'2023-02-28 15:37:24','2023-02-28 15:37:24',NULL),(35,8520,2,40720,163,0.00,NULL,'2023-02-28 15:37:24','2023-02-28 15:37:24',NULL),(36,8520,2,40720,164,0.00,NULL,'2023-02-28 15:37:24','2023-02-28 15:37:24',NULL),(37,8520,2,40720,165,0.00,NULL,'2023-02-28 15:37:24','2023-02-28 15:37:24',NULL),(38,8520,2,40720,166,0.00,NULL,'2023-02-28 15:37:24','2023-02-28 15:37:24',NULL),(39,8520,2,40720,167,0.00,NULL,'2023-02-28 15:37:24','2023-02-28 15:37:24',NULL),(40,8520,2,40720,168,0.00,NULL,'2023-02-28 15:37:24','2023-02-28 15:37:24',NULL),(41,8520,2,40720,169,0.00,NULL,'2023-02-28 15:37:24','2023-02-28 15:37:24',NULL),(42,8520,2,40720,170,0.00,NULL,'2023-02-28 15:37:24','2023-02-28 15:37:24',NULL),(43,8520,2,40720,171,0.00,NULL,'2023-02-28 15:37:24','2023-02-28 15:37:24',NULL),(44,8520,2,40720,172,0.00,NULL,'2023-02-28 15:37:24','2023-02-28 15:37:24',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,8520,1,40719,2,1,1,0.00,'','2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(2,8520,1,40719,2,2,1,0.00,'','2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(3,8520,1,40719,2,3,1,0.00,'','2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(4,8520,1,40719,2,4,1,0.00,'','2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(5,8520,1,40719,2,1,2,0.00,'','2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(6,8520,1,40719,2,2,2,0.00,'','2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(7,8520,1,40719,2,3,2,0.00,'','2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(8,8520,1,40719,2,4,2,0.00,'','2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(9,8520,1,40719,3,1,1,0.00,'','2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(10,8520,1,40719,3,2,1,0.00,'','2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(11,8520,1,40719,3,3,1,0.00,'','2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(12,8520,1,40719,3,4,1,0.00,'','2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(13,8520,1,40719,3,1,2,0.00,'','2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(14,8520,1,40719,3,2,2,0.00,'','2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(15,8520,1,40719,3,3,2,0.00,'','2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(16,8520,1,40719,3,4,2,0.00,'','2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(17,8520,2,40720,2,1,1,0.00,NULL,'2023-02-28 15:37:24','2023-02-28 15:37:24',NULL),(18,8520,2,40720,2,2,1,0.00,NULL,'2023-02-28 15:37:24','2023-02-28 15:37:24',NULL),(19,8520,2,40720,2,3,1,0.00,NULL,'2023-02-28 15:37:24','2023-02-28 15:37:24',NULL),(20,8520,2,40720,2,4,1,0.00,NULL,'2023-02-28 15:37:24','2023-02-28 15:37:24',NULL),(21,8520,2,40720,2,1,2,0.00,NULL,'2023-02-28 15:37:24','2023-02-28 15:37:24',NULL),(22,8520,2,40720,2,2,2,0.00,NULL,'2023-02-28 15:37:24','2023-02-28 15:37:24',NULL),(23,8520,2,40720,2,3,2,0.00,NULL,'2023-02-28 15:37:24','2023-02-28 15:37:24',NULL),(24,8520,2,40720,2,4,2,0.00,NULL,'2023-02-28 15:37:24','2023-02-28 15:37:24',NULL),(25,8520,2,40720,3,1,1,0.00,NULL,'2023-02-28 15:37:24','2023-02-28 15:37:24',NULL),(26,8520,2,40720,3,2,1,0.00,NULL,'2023-02-28 15:37:24','2023-02-28 15:37:24',NULL),(27,8520,2,40720,3,3,1,0.00,NULL,'2023-02-28 15:37:24','2023-02-28 15:37:24',NULL),(28,8520,2,40720,3,4,1,0.00,NULL,'2023-02-28 15:37:24','2023-02-28 15:37:24',NULL),(29,8520,2,40720,3,1,2,0.00,NULL,'2023-02-28 15:37:24','2023-02-28 15:37:24',NULL),(30,8520,2,40720,3,2,2,0.00,NULL,'2023-02-28 15:37:24','2023-02-28 15:37:24',NULL),(31,8520,2,40720,3,3,2,0.00,NULL,'2023-02-28 15:37:24','2023-02-28 15:37:24',NULL),(32,8520,2,40720,3,4,2,0.00,NULL,'2023-02-28 15:37:24','2023-02-28 15:37:24',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,8520,2023,40719,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,NULL,'2023-02-15 15:51:04','2023-02-15 15:51:04',NULL),(2,8520,2023,40720,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,NULL,'2023-02-28 15:37:24','2023-02-28 15:37:24',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-15 09:55:49','2023-02-15 09:55:49',NULL),(111,NULL,2021,1,0,'Gastos de Sepelio',996.23,1,'2023-02-15 09:55:49','2023-02-15 09:55:49',NULL),(112,NULL,2021,1,0,'Aportes a Obras Sociales',0.00,1,'2023-02-15 09:55:49','2023-02-15 09:55:49',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-15 09:55:49','2023-02-15 09:55:49',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-15 09:55:49','2023-02-15 09:55:49',NULL),(115,NULL,2021,1,0,'Aportes a Cajas Provinciales o Municipales o de Previsión para Profesionales',0.00,1,'2023-02-15 09:55:49','2023-02-15 09:55:49',NULL),(116,NULL,2021,1,0,'Pagos Régimen Nacional de Trabajadores Autónomos',0.00,1,'2023-02-15 09:55:49','2023-02-15 09:55:49',NULL),(117,NULL,2021,1,0,'Aportes a Cajas Complementarias de Previsión',0.00,1,'2023-02-15 09:55:49','2023-02-15 09:55:49',NULL),(118,NULL,2021,1,0,'Aportes a Fondos Compensadores de Previsión',0.00,1,'2023-02-15 09:55:49','2023-02-15 09:55:49',NULL),(119,NULL,2021,1,0,'Intereses Crédito Hipotecario',20000.00,1,'2023-02-15 09:55:49','2023-02-15 09:55:49',NULL),(120,NULL,2021,1,0,'Servicio Doméstico',167678.40,1,'2023-02-15 09:55:49','2023-02-15 09:55:49',NULL),(121,NULL,2021,1,0,'Donaciones',0.00,1,'2023-02-15 09:55:49','2023-02-15 09:55:49',NULL),(122,NULL,2021,1,0,'Cuota médico asistencial abonado por usted y por sus familiares a cargo',0.00,1,'2023-02-15 09:55:49','2023-02-15 09:55:49',NULL),(123,NULL,2021,1,0,'Honorarios Correspondientes a los Servicios de asistencia Sanitaria, Médica y Paramédica',0.00,1,'2023-02-15 09:55:49','2023-02-15 09:55:49',NULL),(124,NULL,2021,0,1,'Conyuge',156320.63,1,'2023-02-15 09:55:49','2023-02-15 09:55:49',NULL),(125,NULL,2021,0,1,'Hijo Menor 18 años',78833.08,1,'2023-02-15 09:55:49','2023-02-15 09:55:49',NULL);
INSERT INTO `ganan_deducciones` VALUES (126,NULL,2021,0,1,'Ganancia No Imponible',167678.40,1,'2023-02-15 09:55:49','2023-02-15 09:55:49',NULL),(127,NULL,2021,0,1,'Deduccion Especial',804856.34,1,'2023-02-15 09:55:49','2023-02-15 09:55:49',NULL),(128,NULL,2022,1,0,'Primas de seguro para el caso de muerte',24000.00,1,'2023-02-15 09:55:52','2023-02-15 09:55:52',NULL),(129,NULL,2022,1,0,'Gastos de Sepelio',996.23,1,'2023-02-15 09:55:52','2023-02-15 09:55:52',NULL),(130,NULL,2022,1,0,'Aportes a Obras Sociales',0.00,1,'2023-02-15 09:55:52','2023-02-15 09:55:52',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-15 09:55:52','2023-02-15 09:55:52',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-15 09:55:52','2023-02-15 09:55:52',NULL),(133,NULL,2022,1,0,'Aportes a Cajas Provinciales o Municipales o de Previsión para Profesionales',0.00,1,'2023-02-15 09:55:52','2023-02-15 09:55:52',NULL),(134,NULL,2022,1,0,'Pagos Régimen Nacional de Trabajadores Autónomos',0.00,1,'2023-02-15 09:55:52','2023-02-15 09:55:52',NULL),(135,NULL,2022,1,0,'Aportes a Cajas Complementarias de Previsión',0.00,1,'2023-02-15 09:55:52','2023-02-15 09:55:52',NULL),(136,NULL,2022,1,0,'Aportes a Fondos Compensadores de Previsión',0.00,1,'2023-02-15 09:55:52','2023-02-15 09:55:52',NULL),(137,NULL,2022,1,0,'Intereses Crédito Hipotecario',20000.00,1,'2023-02-15 09:55:52','2023-02-15 09:55:52',NULL),(138,NULL,2022,1,0,'Servicio Doméstico',252564.84,1,'2023-02-15 09:55:52','2023-02-15 09:55:52',NULL),(139,NULL,2022,1,0,'Donaciones',0.00,1,'2023-02-15 09:55:52','2023-02-15 09:55:52',NULL),(140,NULL,2022,1,0,'Cuota médico asistencial abonado por usted y por sus familiares a cargo',0.00,1,'2023-02-15 09:55:52','2023-02-15 09:55:52',NULL),(141,NULL,2022,1,0,'Honorarios Correspondientes a los Servicios de asistencia Sanitaria, Médica y Paramédica',0.00,1,'2023-02-15 09:55:52','2023-02-15 09:55:52',NULL),(142,NULL,2022,1,0,'Alquileres',252564.84,1,'2023-02-15 09:55:52','2023-02-15 09:55:52',NULL),(143,NULL,2022,0,1,'Conyuge',235457.25,1,'2023-02-15 09:55:52','2023-02-15 09:55:52',NULL),(144,NULL,2022,0,1,'Hijo Menor 18 años',118741.97,1,'2023-02-15 09:55:52','2023-02-15 09:55:52',NULL),(145,NULL,2022,0,1,'Ganancia No Imponible',252564.84,1,'2023-02-15 09:55:52','2023-02-15 09:55:52',NULL),(146,NULL,2022,0,1,'Deducción Especial [Artículo 30, inciso c), Apartado 2]',1212311.24,1,'2023-02-15 09:55:52','2023-02-15 09:55:52',NULL),(147,NULL,2022,0,1,'Deducción Especial [Artículo 30, inciso c), Apartado 1]',505129.68,1,'2023-02-15 09:55:52','2023-02-15 09:55:52',NULL),(148,NULL,2022,0,1,'Deducción Especial [Artículo 30, inciso c), Apartado 1 “nuevos profesionales/emprendedores”]',631412.10,1,'2023-02-15 09:55:52','2023-02-15 09:55:52',NULL),(149,NULL,2022,0,1,'Hijo Incapacitado',237483.94,1,'2023-02-15 09:55:52','2023-02-15 09:55:52',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-15 09:55:57','2023-02-15 09:55:57',NULL),(152,NULL,2023,1,0,'Aportes a Obras Sociales',0.00,1,'2023-02-15 09:55:57','2023-02-15 09:55:57',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-15 09:55:57','2023-02-15 09:55:57',NULL),(154,NULL,2023,1,0,'Gastos de Sepelio',996.23,1,'2023-02-15 09:55:57','2023-02-15 09:55:57',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-15 09:55:57','2023-02-15 09:55:57',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-15 09:55:57','2023-02-15 09:55:57',NULL),(157,NULL,2023,1,0,'Pagos Régimen Nacional de Trabajadores Autónomos',0.00,1,'2023-02-15 09:55:57','2023-02-15 09:55:57',NULL),(158,NULL,2023,1,0,'Aportes a Cajas Complementarias de Previsión',0.00,1,'2023-02-15 09:55:57','2023-02-15 09:55:57',NULL),(159,NULL,2023,1,0,'Aportes a Fondos Compensadores de Previsión',0.00,1,'2023-02-15 09:55:57','2023-02-15 09:55:57',NULL),(160,NULL,2023,1,0,'Intereses Crédito Hipotecario',20000.00,1,'2023-02-15 09:55:57','2023-02-15 09:55:57',NULL),(161,NULL,2023,1,0,'Servicio Doméstico',451686.96,1,'2023-02-15 09:55:57','2023-02-15 09:55:57',NULL),(162,NULL,2023,1,0,'Donaciones',0.00,1,'2023-02-15 09:55:57','2023-02-15 09:55:57',NULL),(163,NULL,2023,1,0,'Cuota médico asistencial abonado por usted y por sus familiares a cargo',0.00,1,'2023-02-15 09:55:57','2023-02-15 09:55:57',NULL),(164,NULL,2023,1,0,'Honorarios Correspondientes a los Servicios de asistencia Sanitaria, Médica y Paramédica',0.00,1,'2023-02-15 09:55:57','2023-02-15 09:55:57',NULL),(165,NULL,2023,1,0,'Alquileres',451686.96,1,'2023-02-15 09:55:57','2023-02-15 09:55:57',NULL),(166,NULL,2023,0,1,'Ganancia No Imponible',451686.96,1,'2023-02-15 09:55:57','2023-02-15 09:55:57',NULL),(167,NULL,2023,0,1,'Conyuge',421091.75,1,'2023-02-15 09:55:57','2023-02-15 09:55:57',NULL),(168,NULL,2023,0,1,'Hijo Menor 18 años',212358.14,1,'2023-02-15 09:55:57','2023-02-15 09:55:57',NULL),(169,NULL,2023,0,1,'Hijo Incapacitado',424716.28,1,'2023-02-15 09:55:57','2023-02-15 09:55:57',NULL),(170,NULL,2023,0,1,'Deducción Especial [Artículo 30, inciso c), Apartado 1]',1580904.36,1,'2023-02-15 09:55:57','2023-02-15 09:55:57',NULL),(171,NULL,2023,0,1,'Deducción Especial [Artículo 30, inciso c), Apartado 1 “nuevos profesionales/emprendedores”]',1806747.84,1,'2023-02-15 09:55:57','2023-02-15 09:55:57',NULL),(172,NULL,2023,0,1,'Deducción Especial [Artículo 30, inciso c), Apartado 2]',2168097.42,1,'2023-02-15 09:55:57','2023-02-15 09:55:57',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 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


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

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

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


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

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

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


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

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

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


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

CREATE TABLE `inv_descarga_details` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned DEFAULT NULL,
  `person_id` int(10) unsigned NOT NULL,
  `inv_descarga_id` bigint(20) unsigned DEFAULT NULL,
  `inv_producto_id` bigint(20) unsigned DEFAULT NULL,
  `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-03-15 23:54:20',
  `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-15 09:55:55',NULL),(2,NULL,'Impuestos Asociados','impuestos_asociados','card_info',6,1,NULL,'2023-02-15 09:55:55',NULL),(3,NULL,'Informacion de Liquidacion','informacion_de_liquidacion','card_info',7,1,NULL,'2023-02-15 09:55:55',NULL),(4,NULL,'Cantidad Ventas del Mes','cantidad_ventas_del_mes','card',1,1,NULL,'2023-02-15 09:55:55',NULL),(5,NULL,'Total Facturado En El Mes','total_facturado_en_el_mes','card',2,1,NULL,'2023-02-15 09:55:55',NULL),(6,NULL,'Total Facturado En El Dia','total_facturado_en_el_dia','card',3,1,NULL,'2023-02-15 09:55:55',NULL),(7,NULL,'Total Facturado En El Año','total_facturado_en_el_anio','card',4,1,NULL,'2023-02-15 09:55:55',NULL),(8,NULL,'Facturacion Mensual','facturacion_mensual','grafico',8,1,NULL,'2023-02-15 09:55:55',NULL),(9,NULL,'Proyeccion de Ganancias','proyeccion_de_ganancias','tabla',9,1,NULL,'2023-02-15 09:55:55',NULL),(10,NULL,'Posicion IVA','posicion_de_iva','tabla',10,1,NULL,'2023-02-15 09:55:55',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=42 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `inv_indicadores_persons` VALUES (1,NULL,40719,9,0.00,NULL,'2023-03-09 08:57:17','2023-03-09 08:57:17'),(2,NULL,40720,8,0.00,NULL,'2023-03-02 18:43:53','2023-03-02 18:43:53'),(3,NULL,40720,8,0.00,NULL,'2023-03-02 18:55:27','2023-03-02 18:55:27'),(4,NULL,40720,9,0.00,NULL,'2023-03-02 18:55:27','2023-03-02 18:55:27'),(5,NULL,40720,8,0.00,NULL,'2023-03-02 18:55:36','2023-03-02 18:55:36'),(6,NULL,40720,9,0.00,NULL,'2023-03-02 18:55:36','2023-03-02 18:55:36'),(7,NULL,40720,10,0.00,NULL,'2023-03-02 18:55:36','2023-03-02 18:55:36'),(8,NULL,40720,1,0.00,NULL,'2023-03-02 18:55:53','2023-03-02 18:55:53'),(9,NULL,40720,8,0.00,NULL,'2023-03-02 18:55:53','2023-03-02 18:55:53'),(10,NULL,40720,9,0.00,NULL,'2023-03-02 18:55:53','2023-03-02 18:55:53'),(11,NULL,40720,10,0.00,NULL,'2023-03-02 18:55:53','2023-03-02 18:55:53'),(12,NULL,40720,1,0.00,NULL,'2023-03-02 18:56:05','2023-03-02 18:56:05'),(13,NULL,40720,7,0.00,NULL,'2023-03-02 18:56:05','2023-03-02 18:56:05'),(14,NULL,40720,8,0.00,NULL,'2023-03-02 18:56:05','2023-03-02 18:56:05'),(15,NULL,40720,9,0.00,NULL,'2023-03-02 18:56:05','2023-03-02 18:56:05'),(16,NULL,40720,10,0.00,NULL,'2023-03-02 18:56:05','2023-03-02 18:56:05'),(17,NULL,40720,1,0.00,NULL,'2023-03-09 08:57:30','2023-03-09 08:57:30'),(18,NULL,40720,7,0.00,NULL,'2023-03-09 08:57:30','2023-03-09 08:57:30'),(19,NULL,40720,9,0.00,NULL,'2023-03-09 08:57:30','2023-03-09 08:57:30'),(20,NULL,40720,10,0.00,NULL,'2023-03-09 08:57:30','2023-03-09 08:57:30'),(21,NULL,40720,7,0.00,NULL,'2023-03-09 08:57:53','2023-03-09 08:57:53'),(22,NULL,40720,9,0.00,NULL,'2023-03-09 08:57:53','2023-03-09 08:57:53'),(23,NULL,40720,10,0.00,NULL,'2023-03-09 08:57:53','2023-03-09 08:57:53'),(24,NULL,40720,5,0.00,NULL,'2023-03-09 08:57:59','2023-03-09 08:57:59'),(25,NULL,40720,7,0.00,NULL,'2023-03-09 08:57:59','2023-03-09 08:57:59'),(26,NULL,40720,9,0.00,NULL,'2023-03-09 08:57:59','2023-03-09 08:57:59'),(27,NULL,40720,10,0.00,NULL,'2023-03-09 08:57:59','2023-03-09 08:57:59'),(28,NULL,40720,5,0.00,NULL,'2023-03-09 08:58:10','2023-03-09 08:58:10'),(29,NULL,40720,9,0.00,NULL,'2023-03-09 08:58:10','2023-03-09 08:58:10'),(30,NULL,40720,10,0.00,NULL,'2023-03-09 08:58:10','2023-03-09 08:58:10'),(31,NULL,40720,9,0.00,NULL,'2023-03-09 08:58:12','2023-03-09 08:58:12'),(32,NULL,40720,10,0.00,NULL,'2023-03-09 08:58:12','2023-03-09 08:58:12'),(33,NULL,40720,9,0.00,NULL,'2023-03-09 08:58:19','2023-03-09 08:58:19'),(34,NULL,40720,8,0.00,NULL,NULL,NULL),(35,NULL,40720,9,0.00,NULL,NULL,NULL),(36,NULL,40749,8,0.00,NULL,NULL,NULL),(37,NULL,40748,9,0.00,NULL,NULL,NULL),(38,NULL,40747,2,0.00,NULL,'2023-03-13 10:48:20','2023-03-13 10:48:20'),(39,NULL,40803,9,0.00,NULL,'2023-03-23 12:30:08','2023-03-23 12:30:08'),(40,NULL,40803,9,0.00,NULL,NULL,NULL),(41,NULL,40803,10,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 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


--
-- 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;

--
