-- Table structure for emr_empresa
-- ----------------------------
CREATE TABLE `emr_empresa`  (
  `emr_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de empresa',
  `emr_id_pai` int(11) NULL DEFAULT NULL COMMENT 'Llave principal - Paises',
  `emr_id_mun` int(11) NULL DEFAULT NULL COMMENT 'Llave primaria - entidad municipio',
  `emr_id_gir` int(11) NULL DEFAULT NULL COMMENT 'Llave primaria - Giro',
  `emr_codigo` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Código',
  `emr_nombre` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre ',
  `emr_descripcion` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Descripción general del registro',
  `emr_pbx` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'pbx',
  `emr_siito_web` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'sitio web',
  `emr_direccion` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Dirección',
  `emr_valores` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Valores de la empresa',
  `emr_correo` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Correo de empresa',
  `emr_mision` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Misión de la empresa',
  `emr_vision` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Visión de la empresa',
  `emr_url_logo` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Url de la ubicación del logo de la empresa.',
  `emr_aplica_mision_reporte` tinyint(4) NULL DEFAULT 0 COMMENT 'Aplica colocar como encabezado la misión de la empresa 1=si, 0 o null=no',
  `emr_logo_encabezado_reporte` tinyint(4) NULL DEFAULT 0 COMMENT 'Aplica logo encabezado reporte, 1=si, 0 o null =no',
  `emr_logo_pie_reporte` tinyint(4) NULL DEFAULT 0 COMMENT 'Aplica logo pie reporte , 1=si, 0 o null =no',
  `emr_nit` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Nit de la empresa',
  `emr_numero_registro` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Numero de registro',
  `emr_numero_patronal` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Numero patronal',
  `emr_telefono` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Telefono',
  `emr_estado` tinyint(4) NOT NULL COMMENT 'Estado del registro',
  `emr_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `emr_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `emr_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `emr_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`emr_id`) USING BTREE,
  INDEX `fk_emr_id_pai`(`emr_id_pai` ASC) USING BTREE,
  INDEX `fk_emr_id_mun`(`emr_id_mun` ASC) USING BTREE,
  INDEX `fk_emr_id_gir`(`emr_id_gir` ASC) USING BTREE,
  CONSTRAINT `fk_emr_id_gir` FOREIGN KEY (`emr_id_gir`) REFERENCES `gir_giro` (`gir_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_emr_id_mun` FOREIGN KEY (`emr_id_mun`) REFERENCES `mun_municipio` (`mun_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_emr_id_pai` FOREIGN KEY (`emr_id_pai`) REFERENCES `pai_pais` (`pai_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of emr_empresa
-- ----------------------------
INSERT INTO `emr_empresa` VALUES (1, 7, 44, 691, '1', 'MIDEM', NULL, '2264-8310', 'www.gruposatelite.net', '75 y 79 Av Sur Col. Escalón, San Salvador, El Salvador', NULL, 'info@gruposatelite.net', NULL, NULL, NULL, 0, 1, 0, NULL, NULL, NULL, '2264-8310', 1, 1, '2019-02-19 15:16:30', 1, '2023-09-28 17:42:54');

-- ----------------------------
-- Table structure for emt_estado_mantenimiento
-- ----------------------------
CREATE TABLE `emt_estado_mantenimiento`  (
  `emt_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave primaria de estado mantenimiento.',
  `emt_nombre` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre',
  `emt_cerrado` tinyint(4) NOT NULL COMMENT 'Mantenimiendo cerrado, no se modifica',
  `emt_seguimiento` tinyint(4) NULL DEFAULT 1 COMMENT 'Si aplica seguimiento(1:Si, 0:No)',
  `emt_color_indicador` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Color indicador',
  `emt_seguimiento_prox` tinyint(4) NULL DEFAULT NULL COMMENT 'Si aplica seguimiento de prox. mantenimiento(1:Si, 0:No)',
  `emt_orden` int(11) NULL DEFAULT NULL COMMENT 'Orden de sugerido de estados.',
  `emt_estado` tinyint(4) NOT NULL COMMENT 'Estado de registro',
  `emt_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `emt_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `emt_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `emt_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`emt_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Estado de mantenimiento' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of emt_estado_mantenimiento
-- ----------------------------
INSERT INTO `emt_estado_mantenimiento` VALUES (1, 'Agendado', 0, 1, NULL, 1, 1, 1, 1, '2023-01-18 23:56:30', 1, '2023-01-18 23:56:30');
INSERT INTO `emt_estado_mantenimiento` VALUES (2, 'En progreso', 0, 1, NULL, 1, 2, 1, 1, '2023-01-18 23:56:30', 1, '2023-01-18 23:56:30');
INSERT INTO `emt_estado_mantenimiento` VALUES (3, 'Finalizado', 1, 1, NULL, 0, 3, 1, 1, '2023-01-18 23:58:35', 1, '2023-01-18 23:58:35');

-- ----------------------------
-- Table structure for enc_encuesta
-- ----------------------------
CREATE TABLE `enc_encuesta`  (
  `enc_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de encuesta',
  `enc_id_cla` int(11) NULL DEFAULT NULL COMMENT 'Llave principal de Clasificación encuesta',
  `enc_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre de la encuesta',
  `enc_observacion` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Observaciones opcionales al registro',
  `enc_tipo` int(11) NULL DEFAULT NULL COMMENT '1=Evaluada, 0 o null = Normal',
  `enc_calificacion_maxima` decimal(19, 2) NULL DEFAULT NULL COMMENT 'Calificación máxima para encuestas evaluadas',
  `enc_indicaciones` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Indicaciones para la encuesta',
  `enc_tipo_presentacion` int(11) NULL DEFAULT NULL COMMENT 'Tipo de Presentacion de las preguntas (0 - Encuesta Normal, 1 - Pregunta por Pantalla)',
  `enc_estado` int(11) NOT NULL COMMENT '1=activo, 0=inactivo',
  `enc_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `enc_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `enc_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `enc_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`enc_id`) USING BTREE,
  INDEX `fk_enc_id_cla`(`enc_id_cla` ASC) USING BTREE,
  CONSTRAINT `fk_enc_id_cla` FOREIGN KEY (`enc_id_cla`) REFERENCES `cla_clasificacion_encuesta` (`cla_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'encuestas' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of enc_encuesta
-- ----------------------------

-- ----------------------------
-- Table structure for enc_envio_cotizacion
-- ----------------------------
CREATE TABLE `enc_envio_cotizacion`  (
  `enc_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'llave principal de envio parcial por cotización',
  `enc_id_usu` int(11) NOT NULL COMMENT 'Usuario realizo envio',
  `enc_id_cot` int(11) NOT NULL COMMENT 'Codigo de la cotizacion',
  `enc_id_usu_anulacion` int(11) NULL DEFAULT NULL COMMENT 'Usuario anula envio',
  `enc_fecha_envio` datetime NOT NULL COMMENT 'Fecha registro envio',
  `enc_fecha_anulacion` datetime NULL DEFAULT NULL COMMENT 'Fecha de anulación.',
  `enc_observacion_anulacion` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Observación de la anulación.',
  `enc_estado` int(11) NOT NULL COMMENT '0=inactivo, 1=activo',
  `enc_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `enc_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `enc_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `enc_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`enc_id`) USING BTREE,
  INDEX `fk_enc_id_cot`(`enc_id_cot` ASC) USING BTREE,
  INDEX `fk_enc_id_usu`(`enc_id_usu` ASC) USING BTREE,
  INDEX `fk_enc_id_usu_anulacion`(`enc_id_usu_anulacion` ASC) USING BTREE,
  CONSTRAINT `fk_enc_id_cot` FOREIGN KEY (`enc_id_cot`) REFERENCES `cot_cotizacion` (`cot_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_enc_id_usu` FOREIGN KEY (`enc_id_usu`) REFERENCES `users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_enc_id_usu_anulacion` FOREIGN KEY (`enc_id_usu_anulacion`) REFERENCES `users` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Envios por cotización.' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of enc_envio_cotizacion
-- ----------------------------
INSERT INTO `enc_envio_cotizacion` VALUES (1, 1, 27, NULL, '2024-07-26 15:52:33', NULL, NULL, 1, 1, '2024-07-26 15:52:33', 1, '2024-07-26 15:52:33');

-- ----------------------------
-- Table structure for ene_entrevista_estudiante
-- ----------------------------
CREATE TABLE `ene_entrevista_estudiante`  (
  `ene_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave primaria de entrevista estudiante',
  `ene_id_fal_padre` int(11) NULL DEFAULT NULL COMMENT 'Llave principal de famliar alumno (parentesco padre)',
  `ene_id_fal_madre` int(11) NULL DEFAULT NULL COMMENT 'Llave principal de famliar alumno (parentesco madre)',
  `ene_id_alm` int(11) NULL DEFAULT NULL COMMENT 'Llave principal - Alumnos (cuando es antiguo)',
  `ene_id_usu` int(11) NULL DEFAULT NULL COMMENT 'Llave principal de Usuario. (quiern crea la entrevista)',
  `ene_id_suc` int(11) NULL DEFAULT NULL COMMENT 'Identificador de la sucursal',
  `ene_numero` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Numero de entrevista',
  `ene_fecha_creacion` datetime NOT NULL COMMENT 'Fecha en la que se realizo la entrevista',
  `ene_nombre_estudiante` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Nombre del estudiante',
  `ene_acuerdo` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'acuerdos en la entrevista',
  `ene_aspecto_tratado` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Aspectos tratados en la entrevista',
  `ene_motivo` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Motivo entrevista',
  `ene_tipo_estudiante` tinyint(4) NOT NULL COMMENT 'tipo de estudiante 1=Nuevo, 2=Antiguo',
  `ene_otros` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Otros detalles de la entrevista',
  `ene_nombre_madre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Nombre de la madre del estudiante',
  `ene_dui_madre` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Dui de la madre',
  `ene_nombre_padre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Nombre del padre del estudiante',
  `ene_dui_padre` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Dui del padre',
  `ene_responsable_entrevista` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Responsable de la entrevista',
  `ene_estado` tinyint(4) NOT NULL COMMENT 'estado del registro 0=inactivo, 1=activo',
  `ene_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `ene_fecha_entrevista` datetime NOT NULL COMMENT 'auditoria',
  `ene_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `ene_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`ene_id`) USING BTREE,
  INDEX `fk_ene_id_alm`(`ene_id_alm` ASC) USING BTREE,
  INDEX `fk_ene_id_fal_madre`(`ene_id_fal_madre` ASC) USING BTREE,
  INDEX `fk_ene_id_fal_padre`(`ene_id_fal_padre` ASC) USING BTREE,
  INDEX `fk_ene_id_usu`(`ene_id_usu` ASC) USING BTREE,
  CONSTRAINT `fk_ene_id_alm` FOREIGN KEY (`ene_id_alm`) REFERENCES `alm_alumno` (`alm_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_ene_id_fal_madre` FOREIGN KEY (`ene_id_fal_madre`) REFERENCES `fal_familiar_alumno` (`fal_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_ene_id_fal_padre` FOREIGN KEY (`ene_id_fal_padre`) REFERENCES `fal_familiar_alumno` (`fal_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_ene_id_usu` FOREIGN KEY (`ene_id_usu`) REFERENCES `users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of ene_entrevista_estudiante
-- ----------------------------

-- ----------------------------
-- Table structure for enf_enfermedad
-- ----------------------------
CREATE TABLE `enf_enfermedad`  (
  `enf_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal enfermedad.',
  `enf_nombre` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre de la enfermedad',
  `enf_descripcion` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'descripción',
  `enf_estado` int(11) NOT NULL DEFAULT 1 COMMENT 'Estado del Registro, 0=inactivo, 1=activo',
  `enf_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `enf_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `enf_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `enf_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`enf_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Catálogo de enfermedades y/o padecimientos' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of enf_enfermedad
-- ----------------------------
INSERT INTO `enf_enfermedad` VALUES (1, 'Hipotiroidismo', 'Hipotiroidismo', 1, '2019-10-11 14:51:58', 1, 1, '2019-10-11 14:51:58');
INSERT INTO `enf_enfermedad` VALUES (2, 'Gripe', 'Gripe', 1, '2019-10-16 08:22:57', 5, 5, '2019-10-16 08:22:57');

-- ----------------------------
-- Table structure for enm_entrevista_empleado
-- ----------------------------
CREATE TABLE `enm_entrevista_empleado`  (
  `enm_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave primaria de entrevistas al empleado',
  `enm_id_emp` int(11) NOT NULL COMMENT 'Id de Empleado',
  `enm_id_tnv` int(11) NOT NULL COMMENT 'Llave primaria - tipo de entrevista',
  `enm_fecha` datetime NOT NULL COMMENT 'Fecha de entrevista',
  `enm_persona_realiza` varchar(300) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL COMMENT 'Persona que realiza/realizó',
  `enm_lugar` varchar(300) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL COMMENT 'Lugar de realización',
  `enm_ponderacion` varchar(300) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL COMMENT 'ponderación/calificación',
  `enm_descripcion` varchar(1000) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL COMMENT 'Descripción',
  `enm_estado` int(11) NOT NULL COMMENT 'Estado de registro (1=activo, 0=inactivo)',
  `enm_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `enm_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `enm_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `enm_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`enm_id`) USING BTREE,
  INDEX `fk_enm_id_emp`(`enm_id_emp` ASC) USING BTREE,
  INDEX `fk_enm_id_tnv`(`enm_id_tnv` ASC) USING BTREE,
  CONSTRAINT `fk_enm_id_emp` FOREIGN KEY (`enm_id_emp`) REFERENCES `emp_empleado` (`emp_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_enm_id_tnv` FOREIGN KEY (`enm_id_tnv`) REFERENCES `tnv_tipo_entrevista` (`tnv_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'Enrevistas realizadas al empleado' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of enm_entrevista_empleado
-- ----------------------------

-- ----------------------------
-- Table structure for eno_envio_orden
-- ----------------------------
CREATE TABLE `eno_envio_orden`  (
  `eno_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'llave principal de envios parcial por orden',
  `eno_id_ord` int(11) NOT NULL COMMENT 'Codigo de la orden',
  `eno_id_usu` int(11) NOT NULL COMMENT 'Usuario realiza el envio',
  `eno_id_usu_anulacion` int(11) NULL DEFAULT NULL COMMENT 'Usuario anulación.',
  `eno_fecha_envio` datetime NOT NULL COMMENT 'Fecha registro envio',
  `eno_fecha_anulacion` datetime NULL DEFAULT NULL COMMENT 'Fecha de anulación.',
  `eno_observacion_anulacion` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Observación de la anulación.',
  `eno_estado` int(11) NOT NULL COMMENT '0=inactivo, 1=activo',
  `eno_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `eno_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `eno_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `eno_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`eno_id`) USING BTREE,
  INDEX `fk_eno_id_ord`(`eno_id_ord` ASC) USING BTREE,
  INDEX `fk_eno_id_usu`(`eno_id_usu` ASC) USING BTREE,
  INDEX `fk_eno_id_usu_anulacion`(`eno_id_usu_anulacion` ASC) USING BTREE,
  CONSTRAINT `fk_eno_id_ord` FOREIGN KEY (`eno_id_ord`) REFERENCES `ord_orden` (`ord_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_eno_id_usu` FOREIGN KEY (`eno_id_usu`) REFERENCES `users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_eno_id_usu_anulacion` FOREIGN KEY (`eno_id_usu_anulacion`) REFERENCES `users` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Envios por orden de Producción' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of eno_envio_orden
-- ----------------------------

-- ----------------------------
-- Table structure for enp_enfermedad_paciente
-- ----------------------------
CREATE TABLE `enp_enfermedad_paciente`  (
  `enp_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de enfermedades del paciente',
  `enp_id_enf` int(11) NOT NULL COMMENT 'Llave principal enfermedad.',
  `enp_id_epp` int(11) NOT NULL COMMENT 'Llave principal de Expediente de paciente',
  `enp_tratamiento_previo` varchar(300) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL COMMENT 'Tratamiento previo',
  `enp_evolucion` varchar(300) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL COMMENT 'evolucion',
  `enp_examen_previsto` varchar(300) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL COMMENT 'Examen previsto',
  `enp_observacion` varchar(500) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL COMMENT 'Observación general del registro',
  `enp_estado` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'estado del registro 1=activo, 0=inactivo',
  `enp_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `enp_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `enp_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `enp_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`enp_id`) USING BTREE,
  INDEX `fk_enp_id_enf`(`enp_id_enf` ASC) USING BTREE,
  INDEX `fk_enp_id_epp`(`enp_id_epp` ASC) USING BTREE,
  CONSTRAINT `fk_enp_id_enf` FOREIGN KEY (`enp_id_enf`) REFERENCES `enf_enfermedad` (`enf_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_enp_id_epp` FOREIGN KEY (`enp_id_epp`) REFERENCES `epp_expediente_paciente` (`epp_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'Entidad - enfermedades por paciente' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of enp_enfermedad_paciente
-- ----------------------------
INSERT INTO `enp_enfermedad_paciente` VALUES (3, 1, 1, '', 'fase inicial', '', NULL, 1, 1, '2023-06-28 11:27:34', 1, '2023-06-28 11:27:34');
INSERT INTO `enp_enfermedad_paciente` VALUES (4, 2, 1, '', 'analisis previo', '', NULL, 1, 1, '2023-06-28 11:27:34', 1, '2023-06-28 11:27:34');
INSERT INTO `enp_enfermedad_paciente` VALUES (5, 1, 3, '', 'KMÑLLK', '', NULL, 1, 49, '2024-07-29 04:43:47', 49, '2024-07-29 04:43:47');

-- ----------------------------
-- Table structure for enr_entregable
-- ----------------------------
CREATE TABLE `enr_entregable`  (
  `enr_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal - Sprint',
  `enr_id_pry` int(11) NOT NULL COMMENT 'Llave principal - Proyeectos',
  `enr_nombre` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre de entregable',
  `enr_codigo` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Codigo de sprint  (SP_+iniciales+_+correlativo)',
  `enr_fecha_inicio` datetime NULL DEFAULT NULL COMMENT 'Fecha de inicio de Sprint',
  `enr_fecha_fin` datetime NULL DEFAULT NULL COMMENT 'Fecha estimada de terminacion de sprint',
  `enr_activo` int(11) NOT NULL COMMENT 'Flag para conocer si un sprint esta activo',
  `enr_correlativo` int(11) NOT NULL COMMENT 'Correlativo de Sprint',
  `enr_num_hora_efectiva` decimal(19, 2) NULL DEFAULT NULL COMMENT 'Numero de horas efectivas del Sprint',
  `enr_num_dia_programa` decimal(19, 2) NULL DEFAULT NULL COMMENT 'Numero de dias programados para el Sprint',
  `enr_observacion` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Observaciones generales al Sprint',
  `enr_consultor` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Consultor',
  `enr_estado` int(11) NOT NULL COMMENT 'Estado de flujo',
  `enr_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `enr_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `enr_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `enr_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`enr_id`) USING BTREE,
  INDEX `fk_enr_id_pry`(`enr_id_pry` ASC) USING BTREE,
  CONSTRAINT `fk_enr_id_pry` FOREIGN KEY (`enr_id_pry`) REFERENCES `pry_proyecto` (`pry_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Catalogo de Sprint (entregable) por proyectos' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of enr_entregable
-- ----------------------------
INSERT INTO `enr_entregable` VALUES (1, 2, 'DIM_001', 'SP_DI_001', '2021-08-12 00:00:00', NULL, 1, 1, 12.00, 7.00, 'DIM_001 Entrega de Laboratorio 3', '4', 1, 51, 51, '2021-08-17 21:12:38', '2021-08-17 21:13:06');
INSERT INTO `enr_entregable` VALUES (2, 3, 'Actividades - Febrero 2024 -S1', 'SP_SOP_001', '2024-02-01 00:00:00', NULL, 1, 1, 80.00, 10.00, 'Actividades - Febrero 2024 -S1', '8', 1, 1, 1, '2024-02-09 13:58:31', '2024-02-09 13:58:45');
INSERT INTO `enr_entregable` VALUES (3, 3, 'SP025', 'SP_SOP_002', '2024-09-30 00:00:00', NULL, 1, 2, 80.00, 10.00, NULL, '2', 1, 1, 1, '2024-09-27 14:46:49', '2024-09-27 14:47:03');

-- ----------------------------
-- Table structure for ens_entrevista_solicitante_empleo
-- ----------------------------
CREATE TABLE `ens_entrevista_solicitante_empleo`  (
  `ens_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave primaria de entrevistas al solicitante de empleo',
  `ens_id_tnv` int(11) NOT NULL COMMENT 'Llave primaria - tipo de entrevista',
  `ens_id_sle` int(11) NOT NULL COMMENT 'Llave principal de Solicitante Empleo',
  `ens_fecha` datetime NOT NULL COMMENT 'Fecha de entrevista',
  `ens_persona_realiza` varchar(300) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL COMMENT 'Persona que realiza/realizó',
  `ens_lugar` varchar(300) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL COMMENT 'Lugar de realización',
  `ens_ponderacion` varchar(300) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL COMMENT 'ponderación/calificación',
  `ens_descripcion` varchar(1000) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL COMMENT 'Descripción',
  `ens_estado` int(11) NOT NULL COMMENT 'Estado de registro (1=activo, 0=inactivo)',
  `ens_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `ens_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `ens_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `ens_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`ens_id`) USING BTREE,
  INDEX `fk_ens_id_sle`(`ens_id_sle` ASC) USING BTREE,
  INDEX `fk_ens_id_tnv`(`ens_id_tnv` ASC) USING BTREE,
  CONSTRAINT `fk_ens_id_sle` FOREIGN KEY (`ens_id_sle`) REFERENCES `sle_solicitante_empleo` (`sle_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_ens_id_tnv` FOREIGN KEY (`ens_id_tnv`) REFERENCES `tnv_tipo_entrevista` (`tnv_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'Enrevistas realizadas al solicitante de empleo' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of ens_entrevista_solicitante_empleo
-- ----------------------------

-- ----------------------------
-- Table structure for ent_encuesta
-- ----------------------------
CREATE TABLE `ent_encuesta`  (
  `ent_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de encuesta',
  `ent_codigo` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Código de la encuesta',
  `ent_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre de la encuesta',
  `ent_observacion` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'descripción general del registro',
  `ent_estado` int(11) NOT NULL DEFAULT 1 COMMENT 'Estado del Registro, 0=inactivo, 1=activo',
  `ent_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `ent_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `ent_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `ent_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`ent_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Encuestas CRM' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of ent_encuesta
-- ----------------------------
INSERT INTO `ent_encuesta` VALUES (1, NULL, 'prueba', NULL, 1, '2019-10-22 11:03:06', 1, 1, '2019-10-22 11:03:06');
INSERT INTO `ent_encuesta` VALUES (2, NULL, 'ENCUESTA DE SATISFACCION', NULL, 1, '2019-10-25 16:12:34', 1, 1, '2019-10-25 16:12:34');
INSERT INTO `ent_encuesta` VALUES (3, NULL, 'test', NULL, 1, '2020-07-01 18:46:38', 1, 1, '2020-07-01 18:46:38');
INSERT INTO `ent_encuesta` VALUES (4, NULL, 'satisfaccion', NULL, 1, '2020-08-10 15:14:08', 1, 1, '2020-08-10 15:14:08');

-- ----------------------------
-- Table structure for ent_entregable_cotizacion
-- ----------------------------
CREATE TABLE `ent_entregable_cotizacion`  (
  `ent_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave Principal - Entregable Cotización',
  `ent_id_cot` int(11) NOT NULL COMMENT 'Llave Principal - Cotización',
  `ent_numero_entregable` int(11) NOT NULL COMMENT 'Numero de Entregable',
  `ent_nombre` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT 'Nombres de contactos',
  `ent_dias_entregable` int(11) NOT NULL COMMENT 'Dias del entregable',
  `ent_fecha_aproximada` datetime NOT NULL COMMENT 'Fecha aproximada del entregable',
  `ent_descripcion` varchar(1000) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL COMMENT 'Descripción del Entregable',
  `ent_estado` int(11) NOT NULL COMMENT 'Estado del registro (1 - Activo, 0 - Inactivo)',
  `ent_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `ent_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `ent_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `ent_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`ent_id`) USING BTREE,
  INDEX `fk_ent_id_cot`(`ent_id_cot` ASC) USING BTREE,
  CONSTRAINT `fk_ent_id_cot` FOREIGN KEY (`ent_id_cot`) REFERENCES `cot_cotizacion` (`cot_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'Entregable Cotización' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of ent_entregable_cotizacion
-- ----------------------------
INSERT INTO `ent_entregable_cotizacion` VALUES (1, 27, 1, 'primera entrega', 187, '2025-01-29 00:00:00', 'primera entrega', 1, 1, '2025-01-27 15:20:56', 1, '2025-01-27 15:20:56');
INSERT INTO `ent_entregable_cotizacion` VALUES (2, 27, 2, 'segunda entrega', 186, '2025-01-28 00:00:00', 'segunda entrega', 1, 1, '2025-01-27 15:20:56', 1, '2025-01-27 15:20:56');

-- ----------------------------
-- Table structure for epm_especialidad_medica
-- ----------------------------
CREATE TABLE `epm_especialidad_medica`  (
  `epm_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de especialidad medica',
  `epm_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre',
  `epm_descripcion` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Descripcion',
  `epm_estado` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'estado del registro 1=activo, 0=inactivo',
  `epm_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `epm_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `epm_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `epm_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`epm_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'Entidad - Especialidad Medica' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of epm_especialidad_medica
-- ----------------------------
INSERT INTO `epm_especialidad_medica` VALUES (1, 'Medicina familiar', NULL, 1, 1, '2023-06-28 11:18:12', 1, '2023-06-28 11:18:12');

-- ----------------------------
-- Table structure for epp_expediente_paciente
-- ----------------------------
CREATE TABLE `epp_expediente_paciente`  (
  `epp_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de Expediente de paciente',
  `epp_id_cfc` int(11) NULL DEFAULT NULL COMMENT 'Llave principal de Clasificación Cliente',
  `epp_id_gen` int(11) NULL DEFAULT NULL COMMENT 'Llave primaria - Entidad genero',
  `epp_id_pro` int(11) NULL DEFAULT NULL COMMENT 'Llave primaria - profesiones',
  `epp_id_pai` int(11) NULL DEFAULT NULL COMMENT 'Llave principal - Paises',
  `epp_id_dep` int(11) NULL DEFAULT NULL COMMENT 'Llave primaria - entidad departamento',
  `epp_id_mun` int(11) NULL DEFAULT NULL COMMENT 'Llave primaria - entidad municipio',
  `epp_id_dis` int(11) NULL DEFAULT NULL COMMENT 'Llave entidad - distrito',
  `epp_id_ciu` int(11) NULL DEFAULT NULL COMMENT 'Llave principal de ciudad',
  `epp_id_ref` int(11) NULL DEFAULT NULL COMMENT 'Llave principal de referido',
  `epp_id_esc` int(10) NULL DEFAULT NULL COMMENT 'Llave principal de estado civil',
  `epp_id_epm` int(11) NULL DEFAULT NULL COMMENT 'Llave principal de especialidad medica',
  `epp_id_pat` int(11) NULL DEFAULT NULL COMMENT 'Llave principal parentesco de contacto',
  `epp_id_tsr` int(11) NULL DEFAULT NULL COMMENT 'Llave principal de tipo de sangre',
  `epp_id_cli` int(11) NULL DEFAULT NULL COMMENT 'Llave primaria - Clientes',
  `epp_id_med` int(11) NULL DEFAULT NULL COMMENT 'Llave principal de Medico',
  `epp_numero_expediente` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Número expediente',
  `epp_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombres',
  `epp_apellido` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Apellidos',
  `epp_apellido_casada` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Apellido de casada',
  `epp_fecha_nacimiento` datetime NULL DEFAULT NULL COMMENT 'Fecha de nacimiento',
  `epp_ocupacion` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Ocupación',
  `epp_url_fotografia` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Url de fotografia de paciente',
  `epp_direccion` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Descripcion',
  `epp_correo` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Correo electronico',
  `epp_nombre_ref_por` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Nombre de referido por',
  `epp_comentario` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Comentario',
  `epp_emergencia_llamar` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'en caso de emergencia llamar a',
  `epp_telefono_emergencia` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'telefon contacto de emergencia',
  `epp_acepta_tranfusion` tinyint(4) NULL DEFAULT 0 COMMENT 'acepta transfusion 1=si, 0=no',
  `epp_posee_discapacidad` tinyint(4) NULL DEFAULT 0 COMMENT 'posee discapacidad 1=si, 0=no',
  `epp_descripcion_discapacidad` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'descripcion discapacidad',
  `epp_posee_cirugias` tinyint(4) NULL DEFAULT 0 COMMENT 'posee cirugias previas 1=si, 0=no',
  `epp_descripcion_cirugia` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'descripcion cirugia',
  `epp_motivo_control` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Motivo de control',
  `epp_comentario_datos_clinicos` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Comentarios datos clinicos',
  `epp_estado` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'estado del registro 1=activo, 0=inactivo',
  `epp_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `epp_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `epp_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `epp_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`epp_id`) USING BTREE,
  INDEX `fk_epp_id_cfc`(`epp_id_cfc` ASC) USING BTREE,
  INDEX `fk_epp_id_ciu`(`epp_id_ciu` ASC) USING BTREE,
  INDEX `fk_epp_id_dep`(`epp_id_dep` ASC) USING BTREE,
  INDEX `fk_epp_id_epm`(`epp_id_epm` ASC) USING BTREE,
  INDEX `fk_epp_id_esc`(`epp_id_esc` ASC) USING BTREE,
  INDEX `fk_epp_id_gen`(`epp_id_gen` ASC) USING BTREE,
  INDEX `fk_epp_id_mun`(`epp_id_mun` ASC) USING BTREE,
  INDEX `fk_epp_id_pai`(`epp_id_pai` ASC) USING BTREE,
  INDEX `fk_epp_id_pat`(`epp_id_pat` ASC) USING BTREE,
  INDEX `fk_epp_id_pro`(`epp_id_pro` ASC) USING BTREE,
  INDEX `fk_epp_id_ref`(`epp_id_ref` ASC) USING BTREE,
  INDEX `fk_epp_id_tsr`(`epp_id_tsr` ASC) USING BTREE,
  INDEX `fk_epp_id_cli`(`epp_id_cli` ASC) USING BTREE,
  INDEX `fk_epp_id_med`(`epp_id_med` ASC) USING BTREE,
  INDEX `fk_epp_id_dis`(`epp_id_dis` ASC) USING BTREE,
  CONSTRAINT `fk_epp_id_cfc` FOREIGN KEY (`epp_id_cfc`) REFERENCES `cfc_clasificacion_cliente` (`cfc_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_epp_id_ciu` FOREIGN KEY (`epp_id_ciu`) REFERENCES `ciu_ciudad` (`ciu_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_epp_id_cli` FOREIGN KEY (`epp_id_cli`) REFERENCES `cli_cliente` (`cli_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_epp_id_dep` FOREIGN KEY (`epp_id_dep`) REFERENCES `dep_departamento` (`dep_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_epp_id_dis` FOREIGN KEY (`epp_id_dis`) REFERENCES `dis_distrito` (`dis_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_epp_id_epm` FOREIGN KEY (`epp_id_epm`) REFERENCES `epm_especialidad_medica` (`epm_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_epp_id_esc` FOREIGN KEY (`epp_id_esc`) REFERENCES `esc_estado_civil` (`esc_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_epp_id_gen` FOREIGN KEY (`epp_id_gen`) REFERENCES `gen_genero` (`gen_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_epp_id_med` FOREIGN KEY (`epp_id_med`) REFERENCES `med_medico` (`med_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_epp_id_mun` FOREIGN KEY (`epp_id_mun`) REFERENCES `mun_municipio` (`mun_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_epp_id_pai` FOREIGN KEY (`epp_id_pai`) REFERENCES `pai_pais` (`pai_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_epp_id_pat` FOREIGN KEY (`epp_id_pat`) REFERENCES `pat_parentesco` (`pat_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_epp_id_pro` FOREIGN KEY (`epp_id_pro`) REFERENCES `pro_profesion` (`pro_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_epp_id_ref` FOREIGN KEY (`epp_id_ref`) REFERENCES `ref_referido` (`ref_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_epp_id_tsr` FOREIGN KEY (`epp_id_tsr`) REFERENCES `tsr_tipo_sangre` (`tsr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'Entidad - Expediente de paciente' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of epp_expediente_paciente
-- ----------------------------
INSERT INTO `epp_expediente_paciente` VALUES (1, 1, 2, NULL, 7, 2, NULL, NULL, NULL, NULL, 2, 1, NULL, NULL, 29, NULL, 'LOCAL0001', 'Federico ', 'Gonzalez', '', '1980-01-01 00:00:00', '', '', '', '', '', '', '', '', 1, 2, '', 1, '', '', '', 1, 1, '2023-06-28 11:23:25', 1, '2023-06-28 11:27:34');
INSERT INTO `epp_expediente_paciente` VALUES (2, 1, 3, NULL, 7, 11, 105, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 31, NULL, 'LOCAL0002', 'GRUPO SATELITE', 'CASA MATRIZ', '', '2009-10-02 00:00:00', '', '', '', '', '', '', '', '', 0, 0, '', 0, '', '', '', 1, 1, '2023-10-04 01:27:41', 1, '2023-10-04 01:27:41');
INSERT INTO `epp_expediente_paciente` VALUES (3, 1, 2, 227, 7, 4, 48, NULL, NULL, NULL, 5, 1, NULL, 1, 95, 3, 'LOCAL0003', 'JUAN ', 'PEREZ', '', '1999-07-29 00:00:00', 'NINGUNA', '', '', '', '', '', 'ALGUIDN', '2322-2222', 1, 1, 'Ñ´LKJHJLP', 2, '', 'MK,.-Ñ{ÑLKIJUHJKÑL', '', 1, 49, '2024-07-29 04:40:36', 49, '2024-07-29 04:43:47');

-- ----------------------------
-- Table structure for epr_estado_proyecto
-- ----------------------------
CREATE TABLE `epr_estado_proyecto`  (
  `epr_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave primaria de estado de proyecto',
  `epr_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre',
  `epr_cierre` tinyint(4) NULL DEFAULT NULL COMMENT 'es el estado de cierre 1=Si, 0 o null =No',
  `epr_estado` tinyint(4) NOT NULL COMMENT 'estado del registro 1=activo, 0=inactivo',
  `epr_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `epr_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `epr_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `epr_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`epr_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of epr_estado_proyecto
-- ----------------------------
INSERT INTO `epr_estado_proyecto` VALUES (1, 'Inicio', 0, 1, 1, '2019-06-06 18:53:28', 1, '2019-06-06 18:53:28');
INSERT INTO `epr_estado_proyecto` VALUES (2, 'En Proceso', 0, 1, 1, '2019-10-22 10:14:42', 9, '2020-05-28 11:53:39');
INSERT INTO `epr_estado_proyecto` VALUES (3, 'Finalizado', 1, 1, 1, '2019-10-22 10:14:56', 9, '2020-05-28 11:54:10');

-- ----------------------------
-- Table structure for ept_espacio_trabajo
-- ----------------------------
CREATE TABLE `ept_espacio_trabajo`  (
  `ept_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de espacio de trabajo',
  `ept_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre del Espacio de trabajo',
  `ept_estado` tinyint(4) NOT NULL COMMENT 'Estado del registro 1=Activo, 0=Inactivo',
  `ept_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `ept_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `ept_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `ept_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`ept_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 15 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Espacios de trabajo' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of ept_espacio_trabajo
-- ----------------------------
INSERT INTO `ept_espacio_trabajo` VALUES (1, 'Gerencias', 1, 1, '2019-12-19 00:00:00', 1, '2019-12-19 00:00:00');
INSERT INTO `ept_espacio_trabajo` VALUES (2, 'Oficinas Compras', 1, 1, '2019-12-19 00:00:00', 1, '2019-12-19 00:00:00');
INSERT INTO `ept_espacio_trabajo` VALUES (3, 'Informatica', 1, 1, '2019-12-19 00:00:00', 1, '2019-12-19 00:00:00');
INSERT INTO `ept_espacio_trabajo` VALUES (4, 'Oficinas Administrativas', 1, 1, '2019-12-19 00:00:00', 1, '2019-12-19 00:00:00');
INSERT INTO `ept_espacio_trabajo` VALUES (5, 'Almacenamiento PT', 1, 1, '2019-12-19 00:00:00', 1, '2019-12-19 00:00:00');
INSERT INTO `ept_espacio_trabajo` VALUES (6, 'Oficinas Produccion y Laboratorio', 1, 1, '2019-12-19 00:00:00', 1, '2019-12-19 00:00:00');
INSERT INTO `ept_espacio_trabajo` VALUES (7, 'Planta de Produccion', 1, 1, '2019-12-19 00:00:00', 1, '2019-12-19 00:00:00');
INSERT INTO `ept_espacio_trabajo` VALUES (8, 'Planta de Aerosoles', 1, 1, '2019-12-19 00:00:00', 1, '2019-12-19 00:00:00');
INSERT INTO `ept_espacio_trabajo` VALUES (9, 'Taller de Mantenimiento', 1, 1, '2019-12-19 00:00:00', 1, '2019-12-19 00:00:00');
INSERT INTO `ept_espacio_trabajo` VALUES (10, 'Almacenamiento MP', 1, 1, '2019-12-19 00:00:00', 1, '2019-12-19 00:00:00');
INSERT INTO `ept_espacio_trabajo` VALUES (11, 'Santa Tecla', 1, 1, '2019-12-19 00:00:00', 1, '2019-12-19 00:00:00');
INSERT INTO `ept_espacio_trabajo` VALUES (12, 'Ventas', 1, 1, '2019-12-19 00:00:00', 1, '2019-12-19 00:00:00');
INSERT INTO `ept_espacio_trabajo` VALUES (13, 'Santa Tecla', 1, 1, '2020-03-31 00:00:00', 1, '2020-03-31 00:00:00');
INSERT INTO `ept_espacio_trabajo` VALUES (14, 'Externo', 1, 1, '2020-03-31 00:00:00', 1, '2020-03-31 00:00:00');

-- ----------------------------
-- Table structure for eqa_etiqueta_archivo
-- ----------------------------
CREATE TABLE `eqa_etiqueta_archivo`  (
  `eqa_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de etiqueta de archivo',
  `eqa_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre',
  `eqa_descripcion` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Descripcion del registro',
  `eqa_estado` tinyint(4) NOT NULL COMMENT 'Estado del registro 1=activo, 0=inactivo',
  `eqa_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `eqa_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `eqa_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `eqa_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`eqa_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Etiquetas aplicables a los archivos' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of eqa_etiqueta_archivo
-- ----------------------------
INSERT INTO `eqa_etiqueta_archivo` VALUES (1, 'Importantes', NULL, 1, 1, '2022-11-23 16:59:47', 1, '2022-11-23 16:59:47');
INSERT INTO `eqa_etiqueta_archivo` VALUES (2, 'Urgentes', NULL, 1, 1, '2022-11-23 16:59:58', 1, '2022-11-23 16:59:58');
INSERT INTO `eqa_etiqueta_archivo` VALUES (3, 'img', NULL, 1, 65, '2025-01-28 17:18:54', 65, '2025-01-28 17:18:54');
INSERT INTO `eqa_etiqueta_archivo` VALUES (4, 'Manuales', NULL, 1, 1, '2025-04-01 09:44:24', 1, '2025-04-01 09:44:24');
INSERT INTO `eqa_etiqueta_archivo` VALUES (5, 'Leyes', NULL, 1, 1, '2025-04-01 09:44:24', 1, '2025-04-01 09:44:24');

-- ----------------------------
-- Table structure for esa_estado_alumno
-- ----------------------------
CREATE TABLE `esa_estado_alumno`  (
  `esa_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de estado del alumno',
  `esa_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre del estado.',
  `esa_descripcion` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Descripción general del registro',
  `esa_estado` tinyint(4) NOT NULL COMMENT 'Estado del registro 1=activo, 0=inactivo',
  `esa_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `esa_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `esa_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `esa_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`esa_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Estado del alumno' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of esa_estado_alumno
-- ----------------------------

-- ----------------------------
-- Table structure for esb_estado_prueba
-- ----------------------------
CREATE TABLE `esb_estado_prueba`  (
  `esb_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de estado de prueba',
  `esb_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'nombre',
  `esb_defecto` int(11) NOT NULL DEFAULT 0 COMMENT 'defecto 1=si, 0=no',
  `esb_estado` int(11) NOT NULL COMMENT 'estado 1=activo, 0=inactivo',
  `esb_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `esb_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `esb_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `esb_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`esb_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Estado de prueba' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of esb_estado_prueba
-- ----------------------------
INSERT INTO `esb_estado_prueba` VALUES (1, 'Prueba Pendiente', 1, 1, 1, 1, '2024-02-09 14:07:14', '2024-02-09 14:09:34');
INSERT INTO `esb_estado_prueba` VALUES (2, 'Prueba fallida', 0, 1, 1, 1, '2024-02-09 14:09:48', '2024-02-09 14:09:48');
INSERT INTO `esb_estado_prueba` VALUES (3, 'Prueba Satisfactoria', 0, 1, 1, 1, '2024-02-09 14:09:48', '2024-02-09 14:09:48');

-- ----------------------------
-- Table structure for esc_estado_civil
-- ----------------------------
CREATE TABLE `esc_estado_civil`  (
  `esc_id` int(10) NOT NULL AUTO_INCREMENT,
  `esc_nombre` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL,
  `esc_estado` int(11) NOT NULL,
  `esc_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `esc_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `esc_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `esc_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`esc_id`) USING BTREE,
  UNIQUE INDEX `esc_nombre`(`esc_nombre` ASC) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of esc_estado_civil
-- ----------------------------
INSERT INTO `esc_estado_civil` VALUES (1, 'Soltero(a)', 1, 1, '2019-02-19 15:16:30', 1, '2019-02-19 15:16:30');
INSERT INTO `esc_estado_civil` VALUES (2, 'Casado(a)', 1, 1, '2019-02-19 15:16:30', 1, '2019-02-19 15:16:30');
INSERT INTO `esc_estado_civil` VALUES (3, 'Union libre', 1, 1, '2019-02-19 15:16:30', 1, '2019-02-19 15:16:30');
INSERT INTO `esc_estado_civil` VALUES (4, 'Divorciado(a)\r\n', 1, 5, '2019-09-19 02:57:32', 5, '2019-09-19 14:58:19');
INSERT INTO `esc_estado_civil` VALUES (5, 'Viudo(a)\r\n', 1, 5, '2019-09-19 02:57:53', 5, '2019-09-19 14:58:36');

-- ----------------------------
-- Table structure for ese_estado_estudio
-- ----------------------------
CREATE TABLE `ese_estado_estudio`  (
  `ese_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal del estado de estudio',
  `ese_nombre` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre del estado de estudio',
  `ese_descripcion` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'descripción general',
  `ese_estado` int(11) NOT NULL DEFAULT 1 COMMENT 'Estado del Registro, 0=inactivo, 1=activo',
  `ese_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `ese_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `ese_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `ese_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`ese_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of ese_estado_estudio
-- ----------------------------
INSERT INTO `ese_estado_estudio` VALUES (1, 'Progreso', 'Progreso', 1, '2019-09-19 18:55:12', 5, 5, '2019-09-19 18:55:12');
INSERT INTO `ese_estado_estudio` VALUES (2, 'Incompleto', 'Incompleto', 1, '2019-09-19 18:55:12', 5, 5, '2019-09-19 18:55:12');
INSERT INTO `ese_estado_estudio` VALUES (3, 'Completo', 'Completo', 1, '2019-09-19 18:55:12', 5, 5, '2019-09-19 18:55:12');

-- ----------------------------
-- Table structure for esf_estado_familia
-- ----------------------------
CREATE TABLE `esf_estado_familia`  (
  `esf_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de estado de la familia (relacionado a los padres)',
  `esf_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre del estado.',
  `esf_descripcion` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Descripción general del registro',
  `esf_estado` tinyint(4) NOT NULL COMMENT 'Estado del registro 1=activo, 0=inactivo',
  `esf_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `esf_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `esf_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `esf_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`esf_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Estado de la familia respecto a los padres, (separados, casa' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of esf_estado_familia
-- ----------------------------

-- ----------------------------
-- Table structure for esk_estado_ticket
-- ----------------------------
CREATE TABLE `esk_estado_ticket`  (
  `esk_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'codigo de estado ticket',
  `esk_nombre` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT 'nombre de estado de ticket',
  `esk_orden` int(11) NOT NULL COMMENT 'Orden de etapas',
  `esk_icono` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT 'Icono de la etapa del sprint',
  `esk_finalizacion` int(11) NOT NULL COMMENT 'Flag de finalizacion (0- no finalizado, 1- finalizado)',
  `esk_estimacion_cero` int(11) NULL DEFAULT NULL COMMENT 'Flag de para identificar si al regresar a una etapa de orden inferior sera en base estimación cero (1- si estimacion cero, 0 o null no estimacion cero)',
  `esk_descripcion` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL COMMENT 'Descripcion de la etapa',
  `esk_encuesta` int(11) NULL DEFAULT NULL COMMENT 'Flag si aplica encuesta en esa etapa (1 - Si, 0 - No)',
  `esk_pausa` int(11) NULL DEFAULT NULL COMMENT 'Flag para determinar si la tarea puede ser pausada (1 - Si, 0 - No)',
  `esk_estado` int(11) NOT NULL COMMENT 'estado de registro',
  `esk_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `esk_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `esk_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `esk_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  `esk_edita_usuario` int(11) NOT NULL COMMENT 'Flag para indicar si el usuario puede editar',
  PRIMARY KEY (`esk_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 18 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'catalogo de estados de ticket' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of esk_estado_ticket
-- ----------------------------
INSERT INTO `esk_estado_ticket` VALUES (14, 'Abierto', 0, '', 0, NULL, NULL, NULL, NULL, 1, 1, 1, '2016-05-23 16:08:41', '2016-05-23 16:08:41', 0);
INSERT INTO `esk_estado_ticket` VALUES (15, 'En progreso', 0, '', 0, NULL, NULL, NULL, NULL, 1, 1, 1, '2016-05-23 16:09:16', '2016-05-23 16:10:26', 0);
INSERT INTO `esk_estado_ticket` VALUES (16, 'Finalizado', 0, '', 0, NULL, NULL, NULL, NULL, 1, 1, 1, '2016-08-09 15:46:13', '2016-08-09 15:46:13', 0);
INSERT INTO `esk_estado_ticket` VALUES (17, 'Entregado', 0, '', 0, NULL, NULL, NULL, NULL, 1, 1, 1, '2016-08-09 15:46:22', '2016-08-09 15:46:22', 0);

-- ----------------------------
-- Table structure for esm_estimacion
-- ----------------------------
CREATE TABLE `esm_estimacion`  (
  `esm_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Identificador de la estimacion',
  `esm_id_cnt` int(11) NULL DEFAULT NULL COMMENT 'Llave principal  - Cuenta contable',
  `esm_codigo` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Codigo interno de la estimacion',
  `esm_nombre` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre de la estimacion',
  `esm_monto` decimal(19, 6) NULL DEFAULT NULL COMMENT 'Monto sugerido para el presupuesto',
  `esm_tipo_calculo` int(11) NULL DEFAULT NULL COMMENT '0 = porcentaje, 1 o null = monto.',
  `esm_calculado` int(11) NULL DEFAULT NULL COMMENT 'es calculado 1=si, 0 o null = no',
  `esm_total_hora` decimal(19, 6) NULL DEFAULT NULL COMMENT 'total hora',
  `esm_calculo_etapa` tinyint(4) NULL DEFAULT NULL COMMENT '1=sí, 0 o null = No',
  `esm_estado` int(11) NOT NULL COMMENT 'Auditoria ',
  `esm_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `esm_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `esm_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `esm_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`esm_id`) USING BTREE,
  INDEX `fk_esm_id_cnt`(`esm_id_cnt` ASC) USING BTREE,
  CONSTRAINT `fk_esm_id_cnt` FOREIGN KEY (`esm_id_cnt`) REFERENCES `cnt_cuenta_contable` (`cnt_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Catalogo de Estimacion' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of esm_estimacion
-- ----------------------------
INSERT INTO `esm_estimacion` VALUES (1, NULL, '1', 'GIF', 0.950000, 1, 1, NULL, 1, 1, 1, '2019-10-25 15:15:35', 1, '2020-08-01 07:28:00');

-- ----------------------------
-- Table structure for esn_estado_atencion
-- ----------------------------
CREATE TABLE `esn_estado_atencion`  (
  `esn_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Identificador de Estados de atención de llamada',
  `esn_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre de Estado',
  `esn_descripcion` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Descripción general del registro',
  `esn_estado` tinyint(4) NOT NULL COMMENT 'estado del registro 1=activo, 0=inactivo',
  `esn_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `esn_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `esn_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `esn_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`esn_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of esn_estado_atencion
-- ----------------------------
INSERT INTO `esn_estado_atencion` VALUES (1, 'Pendiente', 'Llamada Pendiente al cliente', 1, 1, '2019-06-06 18:53:01', 1, '2019-06-06 18:53:01');
INSERT INTO `esn_estado_atencion` VALUES (2, 'Llamada Recibida', 'Llamada Recibida', 1, 35, '2020-05-28 11:35:31', 35, '2020-05-28 11:35:31');
INSERT INTO `esn_estado_atencion` VALUES (3, 'Llamada No Contestada', 'Llamada No Contestada', 1, 35, '2020-05-28 11:36:12', 35, '2020-05-28 11:36:12');

-- ----------------------------
-- Table structure for esp_especialidad
-- ----------------------------
CREATE TABLE `esp_especialidad`  (
  `esp_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'codigo de especialidades',
  `esp_nombre` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT 'nombre de especialidad',
  `esp_estado` int(11) NOT NULL COMMENT 'estado de registro',
  `esp_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `esp_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `esp_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `esp_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`esp_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'catalogo de especialidades' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of esp_especialidad
-- ----------------------------
INSERT INTO `esp_especialidad` VALUES (1, 'Especialidad #1', 1, 1, 1, '2023-01-19 08:37:26', '2023-01-19 08:37:26');

-- ----------------------------
-- Table structure for esr_estimacion_articulo
-- ----------------------------
CREATE TABLE `esr_estimacion_articulo`  (
  `esr_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Codigo principal de relacion estimaciones por articulo',
  `esr_id_art` int(11) NOT NULL COMMENT 'Llave principal de articulos',
  `esr_id_esm` int(11) NOT NULL COMMENT 'Identificador de la estimacion',
  `esr_id_rea` int(11) NULL DEFAULT NULL COMMENT 'Llave Principal - Receta por Articulo',
  `esr_cantidad` decimal(19, 6) NOT NULL COMMENT 'Cantidad de veces que se aplica la estimacion',
  `esr_precio` decimal(19, 6) NULL DEFAULT NULL COMMENT 'Precio de la estimacion',
  `esr_tipo_costo` int(11) NULL DEFAULT NULL COMMENT 'Flag del tipo de Costo (1 - Costo Fijo, 0 - Variable)',
  `esr_estado` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'Estado del Registro (1:Activo, 0:Inactivo)',
  `esr_monto_calculo` decimal(19, 2) NULL DEFAULT NULL COMMENT 'Monto que se tomo para cálculo (en caso de aplicar porcentaje)',
  `esr_cantidad_base` decimal(19, 2) NULL DEFAULT NULL COMMENT 'Cantidad base del producto',
  `esr_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `esr_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `esr_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `esr_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`esr_id`) USING BTREE,
  INDEX `fk_esr_id_art`(`esr_id_art` ASC) USING BTREE,
  INDEX `fk_esr_id_esm`(`esr_id_esm` ASC) USING BTREE,
  INDEX `fk_esr_id_rea`(`esr_id_rea` ASC) USING BTREE,
  CONSTRAINT `fk_esr_id_art` FOREIGN KEY (`esr_id_art`) REFERENCES `art_articulo` (`art_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_esr_id_esm` FOREIGN KEY (`esr_id_esm`) REFERENCES `esm_estimacion` (`esm_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_esr_id_rea` FOREIGN KEY (`esr_id_rea`) REFERENCES `rea_receta_articulo` (`rea_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB AUTO_INCREMENT = 20 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Estimaciones por artículo' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of esr_estimacion_articulo
-- ----------------------------
INSERT INTO `esr_estimacion_articulo` VALUES (1, 1558, 1, NULL, 1.000000, 10.000000, NULL, 1, NULL, NULL, 1, '2019-10-25 15:18:11', 1, '2019-10-25 15:18:11');
INSERT INTO `esr_estimacion_articulo` VALUES (2, 1, 1, NULL, 1.000000, 0.000000, NULL, 1, NULL, NULL, 1, '2020-02-22 15:19:43', 1, '2020-02-22 15:19:43');
INSERT INTO `esr_estimacion_articulo` VALUES (4, 961, 1, NULL, 1.000000, 10.000000, NULL, 1, NULL, NULL, 1, '2020-06-26 17:17:25', 1, '2020-06-26 18:35:51');
INSERT INTO `esr_estimacion_articulo` VALUES (10, 1040, 1, NULL, 1.000000, 0.850000, NULL, 1, NULL, NULL, 1, '2020-07-14 09:57:07', 1, '2020-08-03 09:40:48');
INSERT INTO `esr_estimacion_articulo` VALUES (11, 1041, 1, NULL, 1.000000, 0.950000, NULL, 1, NULL, NULL, 1, '2020-07-16 08:51:26', 1, '2020-07-16 08:57:21');
INSERT INTO `esr_estimacion_articulo` VALUES (12, 1567, 1, NULL, 1.000000, 0.950000, NULL, 1, NULL, NULL, 1, '2020-07-16 09:31:54', 1, '2020-07-16 09:31:54');
INSERT INTO `esr_estimacion_articulo` VALUES (13, 1518, 1, NULL, 1.000000, 0.950000, NULL, 1, NULL, NULL, 1, '2020-07-16 09:32:50', 1, '2020-07-16 09:32:50');
INSERT INTO `esr_estimacion_articulo` VALUES (14, 1042, 1, NULL, 1.000000, 0.950000, NULL, 1, NULL, NULL, 1, '2020-07-16 11:09:51', 1, '2020-07-16 11:12:04');
INSERT INTO `esr_estimacion_articulo` VALUES (15, 1568, 1, NULL, 4.500000, 4.275000, NULL, 1, NULL, NULL, 1, '2020-07-31 13:54:05', 1, '2020-07-31 13:54:05');
INSERT INTO `esr_estimacion_articulo` VALUES (16, 774, 1, NULL, 3.250000, 3.087500, NULL, 1, NULL, NULL, 1, '2020-08-01 14:31:21', 1, '2020-08-01 20:05:15');
INSERT INTO `esr_estimacion_articulo` VALUES (17, 50, 1, 1, 3.000000, 2.850000, 0, 1, NULL, 1.00, 1, '2023-01-13 10:31:45', 1, '2023-01-13 10:31:45');
INSERT INTO `esr_estimacion_articulo` VALUES (18, 52, 1, 2, 3.000000, 2.850000, NULL, 1, NULL, 1.00, 1, '2023-01-13 10:41:24', 1, '2023-01-13 12:17:51');
INSERT INTO `esr_estimacion_articulo` VALUES (19, 137, 1, 4, 1.000000, 20.000000, NULL, 1, NULL, 1.00, 65, '2025-02-24 09:01:23', 65, '2025-02-24 09:03:47');

-- ----------------------------
-- Table structure for est_estado_cotizacion
-- ----------------------------
CREATE TABLE `est_estado_cotizacion`  (
  `est_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Codigo de estado',
  `est_nombre` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre de estado',
  `est_cerrada` tinyint(4) NOT NULL COMMENT 'Cotizacion cerrada, no se modifica',
  `est_seguimiento` tinyint(4) NULL DEFAULT 1 COMMENT 'Si posee seguimiento(1:Si, 0:No)',
  `est_color_indicador` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Color indicador',
  `est_vigente` int(11) NULL DEFAULT NULL COMMENT 'Flag para cotizaciones Vigentes',
  `est_ganada` int(11) NULL DEFAULT NULL COMMENT 'Flag para cotizaciones Ganadas',
  `est_perdida` int(11) NULL DEFAULT NULL COMMENT 'Flag para cotizaciones Perdidas',
  `est_estado` tinyint(4) NOT NULL COMMENT 'Estado de registro',
  `est_usu_mod` int(11) NOT NULL COMMENT 'Ultimo usario que modifico',
  `est_fecha_mod` datetime NOT NULL COMMENT 'Ultima fecha de modificacion',
  PRIMARY KEY (`est_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Estado de la cotizacion (perdida, ganada, corto plazo)' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of est_estado_cotizacion
-- ----------------------------
INSERT INTO `est_estado_cotizacion` VALUES (1, 'Pendiente', 0, 1, '#40ff00', 1, 0, 0, 1, 1, '2021-12-28 07:28:06');
INSERT INTO `est_estado_cotizacion` VALUES (2, 'Autorizada', 1, 1, '#00ff59', 0, 1, 0, 1, 1, '2024-04-10 13:58:19');
INSERT INTO `est_estado_cotizacion` VALUES (3, 'Rechazada', 1, 1, '#f70000', 0, 0, 1, 1, 1, '2024-04-10 13:58:05');
INSERT INTO `est_estado_cotizacion` VALUES (4, 'En Proceso', 0, 1, '#8400ff', NULL, 0, NULL, 1, 1, '2020-07-01 13:09:58');
INSERT INTO `est_estado_cotizacion` VALUES (7, 'Inicio', 0, 0, '#ffdd00', 1, 0, 0, 1, 1, '2022-02-14 15:35:41');

-- ----------------------------
-- Table structure for eta_etapa_articulo
-- ----------------------------
CREATE TABLE `eta_etapa_articulo`  (
  `eta_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de tabla',
  `eta_id_art` int(11) NOT NULL COMMENT 'Llave principal de articulos',
  `eta_id_etp` int(11) NOT NULL COMMENT 'Codigo de etapa',
  `eta_id_cva` int(11) NULL DEFAULT NULL COMMENT 'llave principal de conversión artículo',
  `eta_orden` tinyint(4) NOT NULL COMMENT 'Orden de la etapa',
  `eta_duracion` decimal(19, 2) NOT NULL COMMENT 'Duración de la etapa / horas',
  `eta_duracion_mod` decimal(19, 2) NULL DEFAULT NULL COMMENT 'Duración de la etapa / horas (mano de obra directa)',
  `eta_final` tinyint(4) NOT NULL COMMENT 'Es la etapa final 1=si, 0=no',
  `eta_estado` tinyint(4) NOT NULL COMMENT 'estado del registro 1=activo, 0=inactivo',
  `eta_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `eta_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `eta_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `eta_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`eta_id`) USING BTREE,
  INDEX `fk_eta_id_art`(`eta_id_art` ASC) USING BTREE,
  INDEX `fk_eta_id_etp`(`eta_id_etp` ASC) USING BTREE,
  INDEX `fk_eta_id_cva`(`eta_id_cva` ASC) USING BTREE,
  CONSTRAINT `fk_eta_id_art` FOREIGN KEY (`eta_id_art`) REFERENCES `art_articulo` (`art_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_eta_id_cva` FOREIGN KEY (`eta_id_cva`) REFERENCES `cva_conversion_articulo` (`cva_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_eta_id_etp` FOREIGN KEY (`eta_id_etp`) REFERENCES `etp_etapa` (`etp_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 63 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Etapas de producción por artículo (Modelo para precargar al ' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of eta_etapa_articulo
-- ----------------------------
INSERT INTO `eta_etapa_articulo` VALUES (1, 1, 2, 1, 1, 0.50, 0.25, 0, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (2, 1, 19, 1, 2, 1.50, 0.00, 0, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (3, 1, 13, 1, 3, 1.00, 0.25, 1, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (4, 2, 27, 2, 1, 0.00, 0.00, 0, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (5, 2, 28, 2, 2, 0.00, 0.00, 1, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (6, 3, 2, 3, 1, 0.50, 0.25, 0, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (7, 3, 19, 3, 2, 1.50, 0.00, 0, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (8, 3, 13, 3, 3, 1.00, 0.25, 1, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (9, 4, 27, 4, 1, 0.00, 0.00, 0, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (10, 4, 28, 4, 2, 0.00, 0.00, 1, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (11, 5, 2, 5, 1, 0.50, 0.25, 0, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (12, 5, 19, 5, 2, 1.50, 0.00, 0, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (13, 5, 13, 5, 3, 1.00, 0.25, 1, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (14, 6, 27, 6, 1, 0.00, 0.00, 0, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (15, 6, 28, 6, 2, 0.00, 0.00, 1, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (16, 7, 2, 7, 1, 0.50, 0.25, 0, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (17, 7, 19, 7, 2, 1.50, 0.00, 0, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (18, 7, 13, 7, 3, 1.00, 0.25, 1, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (19, 8, 27, 8, 1, 0.00, 0.00, 0, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (20, 8, 28, 8, 2, 0.00, 0.00, 1, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (21, 9, 2, 9, 1, 0.50, 0.25, 0, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (22, 9, 19, 9, 2, 1.50, 0.00, 0, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (23, 9, 13, 9, 3, 1.00, 0.25, 1, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (24, 10, 27, 10, 1, 0.00, 0.00, 0, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (25, 10, 28, 10, 2, 0.00, 0.00, 1, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (26, 11, 2, 11, 1, 0.50, 0.25, 0, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (27, 11, 19, 11, 2, 1.50, 0.00, 0, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (28, 11, 13, 11, 3, 1.00, 0.25, 1, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (29, 12, 27, 12, 1, 0.00, 0.00, 0, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (30, 12, 28, 12, 2, 0.00, 0.00, 1, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (31, 13, 2, 13, 1, 0.50, 0.25, 0, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (32, 13, 19, 13, 2, 1.50, 0.00, 0, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (33, 13, 13, 13, 3, 1.00, 0.25, 1, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (34, 14, 27, 14, 1, 0.00, 0.00, 0, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (35, 14, 28, 14, 2, 0.00, 0.00, 1, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (36, 15, 2, 15, 1, 0.50, 0.25, 0, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (37, 15, 19, 15, 2, 1.50, 0.00, 0, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (38, 15, 13, 15, 3, 1.00, 0.25, 1, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (39, 16, 27, 16, 1, 0.00, 0.00, 0, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (40, 16, 28, 16, 2, 0.00, 0.00, 1, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (41, 17, 2, 17, 1, 0.50, 0.25, 0, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (42, 17, 19, 17, 2, 1.50, 0.00, 0, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (43, 17, 13, 17, 3, 1.00, 0.25, 1, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (44, 18, 27, 18, 1, 0.00, 0.00, 0, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (45, 18, 28, 18, 2, 0.00, 0.00, 1, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (46, 19, 2, 19, 1, 0.50, 0.25, 0, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (47, 19, 19, 19, 2, 1.50, 0.00, 0, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (48, 19, 13, 19, 3, 1.00, 0.25, 1, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (49, 20, 27, 20, 1, 0.00, 0.00, 0, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (50, 20, 28, 20, 2, 0.00, 0.00, 1, 1, 1, '2019-12-04 12:00:00', 1, '2019-12-04 12:00:00');
INSERT INTO `eta_etapa_articulo` VALUES (51, 131, 2, 2372, 1, 1.00, 1.00, 0, 1, 65, '2024-10-17 17:37:05', 65, '2024-10-17 17:37:05');
INSERT INTO `eta_etapa_articulo` VALUES (52, 131, 4, 2372, 2, 2.00, 2.00, 0, 1, 65, '2024-10-17 17:37:05', 65, '2024-10-17 17:37:05');
INSERT INTO `eta_etapa_articulo` VALUES (53, 131, 8, 2372, 3, 3.00, 3.00, 0, 1, 65, '2024-10-17 17:37:05', 65, '2024-10-17 17:37:05');
INSERT INTO `eta_etapa_articulo` VALUES (54, 131, 13, 2372, 4, 4.00, 4.00, 1, 1, 65, '2024-10-17 17:37:05', 65, '2024-10-17 17:37:05');
INSERT INTO `eta_etapa_articulo` VALUES (55, 136, 31, 2377, 1, 1.00, 2.00, 0, 1, 65, '2025-01-17 19:29:54', 65, '2025-01-17 19:29:54');
INSERT INTO `eta_etapa_articulo` VALUES (56, 136, 2, 2377, 2, 1.00, 2.00, 0, 1, 65, '2025-01-17 19:29:54', 65, '2025-01-17 19:29:54');
INSERT INTO `eta_etapa_articulo` VALUES (57, 136, 11, 2377, 3, 1.00, 2.00, 0, 1, 65, '2025-01-17 19:29:54', 65, '2025-01-17 19:29:54');
INSERT INTO `eta_etapa_articulo` VALUES (58, 136, 35, 2377, 4, 1.00, 1.00, 1, 1, 65, '2025-01-17 19:29:54', 65, '2025-01-17 19:29:54');
INSERT INTO `eta_etapa_articulo` VALUES (59, 137, 45, 2378, 1, 2.00, 1.50, 0, 1, 65, '2025-02-24 09:07:26', 65, '2025-02-24 09:07:26');
INSERT INTO `eta_etapa_articulo` VALUES (60, 137, 46, 2378, 2, 3.00, 2.00, 0, 1, 65, '2025-02-24 09:07:26', 65, '2025-02-24 09:07:26');
INSERT INTO `eta_etapa_articulo` VALUES (61, 137, 47, 2378, 3, 4.00, 3.00, 0, 1, 65, '2025-02-24 09:07:26', 65, '2025-02-24 09:07:26');
INSERT INTO `eta_etapa_articulo` VALUES (62, 137, 48, 2378, 4, 1.00, 1.00, 1, 1, 65, '2025-02-24 09:07:26', 65, '2025-02-24 09:07:26');

-- ----------------------------
-- Table structure for etc_etapa_cotizacion
-- ----------------------------
CREATE TABLE `etc_etapa_cotizacion`  (
  `etc_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Codigo de etapa de cotización.',
  `etc_nombre` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre de etaoa',
  `etc_descripcion` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Descripción del registro.',
  `etc_estado` tinyint(4) NOT NULL COMMENT 'Estado de la etapa',
  `etc_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `etc_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `etc_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `etc_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`etc_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of etc_etapa_cotizacion
-- ----------------------------
INSERT INTO `etc_etapa_cotizacion` VALUES (1, '1- CONTACTO INICIAL', '1- CONTACTO INICIAL', 1, 1, '2021-12-27 22:47:54', 1, '2021-12-27 22:47:54');
INSERT INTO `etc_etapa_cotizacion` VALUES (2, '2- PRESENTACIÓN EMPRESA', '2- PRESENTACIÓN EMPRESA', 1, 1, '2021-12-27 22:47:54', 1, '2021-12-27 22:47:54');
INSERT INTO `etc_etapa_cotizacion` VALUES (3, '3- TOMA DE REQUERIMIENTOS', '3- TOMA DE REQUERIMIENTOS', 1, 1, '2021-12-27 22:47:54', 1, '2021-12-27 22:47:54');
INSERT INTO `etc_etapa_cotizacion` VALUES (4, '4- OFERTA', '4- OFERTA', 1, 1, '2021-12-27 22:47:54', 1, '2021-12-27 22:47:54');
INSERT INTO `etc_etapa_cotizacion` VALUES (5, '5 - NEGOCIACIÓN', '5 - NEGOCIACIÓN', 1, 1, '2021-12-27 22:47:54', 1, '2021-12-27 22:47:54');
INSERT INTO `etc_etapa_cotizacion` VALUES (6, '6- CIERRE', '6- CIERRE', 1, 1, '2021-12-27 22:56:02', 1, '2021-12-27 22:56:02');
INSERT INTO `etc_etapa_cotizacion` VALUES (7, '7-POST VENTA', '7-POST VENTA', 1, 1, '2021-12-27 22:56:02', 1, '2021-12-27 22:56:02');

-- ----------------------------
-- Table structure for etp_etapa
-- ----------------------------
CREATE TABLE `etp_etapa`  (
  `etp_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Codigo de etapa',
  `etp_id_bod` int(11) NULL DEFAULT NULL COMMENT 'Codigo de bodega',
  `etp_id_sxb` int(11) NULL DEFAULT NULL COMMENT 'llave principal de sectores por bodega',
  `etp_nombre` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre de etaoa',
  `etp_descripcion` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Descripción del registro.',
  `etp_horas` decimal(19, 2) NULL DEFAULT NULL COMMENT 'Capacidad Horas',
  `etp_estado` tinyint(4) NOT NULL COMMENT 'Estado de la etapa',
  `etp_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `etp_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `etp_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `etp_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`etp_id`) USING BTREE,
  INDEX `fk_etp_id_sxb`(`etp_id_sxb` ASC) USING BTREE,
  CONSTRAINT `fk_etp_id_sxb` FOREIGN KEY (`etp_id_sxb`) REFERENCES `sxb_sectorxbodega` (`sxb_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB AUTO_INCREMENT = 49 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Catalogo de etapas de cotizacion' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of etp_etapa
-- ----------------------------
INSERT INTO `etp_etapa` VALUES (1, NULL, NULL, 'Default', 'Default', 0.25, 1, 1, '2019-02-11 13:44:29', 1, '2019-02-11 13:44:29');
INSERT INTO `etp_etapa` VALUES (2, NULL, NULL, 'MEZCLAR', 'MEZCLAR', 0.33, 1, 1, '2019-02-11 13:44:29', 1, '2019-02-11 13:44:29');
INSERT INTO `etp_etapa` VALUES (3, NULL, NULL, 'MEZCLADO Y ENTINTADO', 'MEZCLADO Y ENTINTADO', 0.15, 1, 1, '2019-02-11 13:44:29', 1, '2019-02-11 13:44:29');
INSERT INTO `etp_etapa` VALUES (4, NULL, NULL, 'ACTIVACION', 'ACTIVACION', NULL, 1, 1, '2019-02-11 13:44:29', 1, '2019-02-11 13:44:29');
INSERT INTO `etp_etapa` VALUES (5, NULL, NULL, 'COMPLETADO 1', 'COMPLETADO 1', NULL, 1, 1, '2019-02-11 13:44:29', 1, '2019-02-11 13:44:29');
INSERT INTO `etp_etapa` VALUES (6, NULL, NULL, 'DISPERSION LATEX', 'DISPERSION LATEX', NULL, 1, 1, '2019-02-11 13:44:29', 1, '2019-02-11 13:44:29');
INSERT INTO `etp_etapa` VALUES (7, NULL, NULL, 'ENTINTADO LATEX', 'ENTINTADO LATEX', NULL, 1, 1, '2019-02-11 13:44:29', 1, '2019-02-11 13:44:29');
INSERT INTO `etp_etapa` VALUES (8, NULL, NULL, 'ENTINTADO', 'ENTINTADO', NULL, 1, 1, '2019-02-11 13:44:29', 1, '2019-02-11 13:44:29');
INSERT INTO `etp_etapa` VALUES (9, NULL, NULL, 'MEZCLAR 2', 'MEZCLAR 2', NULL, 1, 1, '2019-02-11 13:44:29', 1, '2019-02-11 13:44:29');
INSERT INTO `etp_etapa` VALUES (10, NULL, NULL, 'COMPLETADO', 'COMPLETADO', NULL, 1, 1, '2019-02-11 13:44:29', 1, '2019-02-11 13:44:29');
INSERT INTO `etp_etapa` VALUES (11, NULL, NULL, 'LAVADO', 'LAVADO', NULL, 1, 1, '2019-02-11 13:44:29', 1, '2019-02-11 13:44:29');
INSERT INTO `etp_etapa` VALUES (12, NULL, NULL, 'MEZCLADO Y ENTINTADO', 'MEZCLADO Y ENTINTADO', NULL, 1, 1, '2019-02-11 13:44:29', 1, '2019-02-11 13:44:29');
INSERT INTO `etp_etapa` VALUES (13, 1, NULL, 'BODEGA PT', 'AJUSTES', NULL, 1, 1, '2019-02-11 13:44:29', 1, '2020-07-16 09:08:13');
INSERT INTO `etp_etapa` VALUES (14, NULL, NULL, 'DISPERSION', 'DISPERSION', NULL, 1, 1, '2019-02-11 13:44:29', 1, '2019-02-11 13:44:29');
INSERT INTO `etp_etapa` VALUES (15, NULL, NULL, 'COMPLETADO LÁTEX', 'COMPLETADO LÁTEX', NULL, 1, 1, '2019-02-11 13:44:29', 1, '2019-02-11 13:44:29');
INSERT INTO `etp_etapa` VALUES (16, NULL, NULL, 'COMPLETADO 2', 'COMPLETADO 2', NULL, 1, 1, '2019-02-11 13:44:29', 1, '2019-02-11 13:44:29');
INSERT INTO `etp_etapa` VALUES (17, 6, NULL, 'BODEGA  MP', 'AJUSTE', NULL, 1, 1, '2019-02-11 13:44:29', 1, '2020-07-16 09:07:38');
INSERT INTO `etp_etapa` VALUES (18, NULL, NULL, 'ENVASADO', 'ENVASADO', NULL, 1, 1, '2019-02-11 13:44:29', 1, '2019-02-11 13:44:29');
INSERT INTO `etp_etapa` VALUES (19, NULL, NULL, 'DILUCION', 'DILUCION', NULL, 1, 1, '2019-02-11 13:44:29', 1, '2019-02-11 13:44:29');
INSERT INTO `etp_etapa` VALUES (20, NULL, NULL, 'DISPERSION', 'DISPERSION', NULL, 1, 1, '2019-02-11 13:44:29', 1, '2019-02-11 13:44:29');
INSERT INTO `etp_etapa` VALUES (21, NULL, NULL, 'DISOLVER METALICOS', 'DISOLVER METALICOS', NULL, 1, 1, '2019-02-11 13:44:29', 1, '2019-02-11 13:44:29');
INSERT INTO `etp_etapa` VALUES (22, NULL, NULL, 'DISOLVER MATES', 'DISOLVER MATES', NULL, 1, 1, '2019-02-11 13:44:29', 1, '2019-02-11 13:44:29');
INSERT INTO `etp_etapa` VALUES (23, NULL, NULL, 'DISOLVER', 'DISOLVER', NULL, 1, 1, '2019-02-11 13:44:29', 1, '2019-02-11 13:44:29');
INSERT INTO `etp_etapa` VALUES (24, NULL, NULL, 'DILUCION CAUCHO', 'DILUCION CAUCHO', NULL, 1, 1, '2019-02-11 13:44:29', 1, '2019-02-11 13:44:29');
INSERT INTO `etp_etapa` VALUES (25, NULL, NULL, 'DISPERSION OPTIMUS', 'DISPERSION OPTIMUS', NULL, 1, 1, '2019-02-11 13:44:29', 1, '2019-02-11 13:44:29');
INSERT INTO `etp_etapa` VALUES (26, NULL, NULL, 'MOLINO', 'MOLINO', NULL, 1, 1, '2019-02-11 13:44:29', 1, '2019-02-11 13:44:29');
INSERT INTO `etp_etapa` VALUES (27, NULL, NULL, 'LLENADO Y ENVASADO', 'LLENADO Y ENVASADO', NULL, 1, 1, '2019-02-11 13:44:29', 1, '2019-02-11 13:44:29');
INSERT INTO `etp_etapa` VALUES (28, NULL, NULL, 'ETIQUETADO Y EMBALADO', 'ETIQUETADO Y EMBALADO', NULL, 1, 1, '2019-02-11 13:44:29', 1, '2019-02-11 13:44:29');
INSERT INTO `etp_etapa` VALUES (29, 1, NULL, 'Ingreso a PT', NULL, NULL, 1, 1, '2019-11-06 15:26:11', 1, '2019-11-06 15:26:11');
INSERT INTO `etp_etapa` VALUES (30, 8, NULL, 'BODEGA PRODUCCIÓN PROCESO', NULL, NULL, 1, 1, '2020-07-16 09:27:30', 1, '2020-07-16 09:27:30');
INSERT INTO `etp_etapa` VALUES (31, NULL, NULL, 'Limpieza', NULL, NULL, 1, 1, '2021-03-08 16:11:51', 1, '2021-03-08 16:11:51');
INSERT INTO `etp_etapa` VALUES (32, NULL, NULL, 'Sanitizado', NULL, NULL, 1, 1, '2021-03-08 16:12:08', 1, '2021-03-08 16:12:08');
INSERT INTO `etp_etapa` VALUES (33, 1, NULL, 'Empacado', NULL, NULL, 1, 1, '2021-03-08 16:12:24', 1, '2023-01-13 12:24:05');
INSERT INTO `etp_etapa` VALUES (34, NULL, NULL, 'Corte', NULL, NULL, 1, 1, '2023-01-13 10:28:12', 1, '2023-01-13 10:28:12');
INSERT INTO `etp_etapa` VALUES (35, 1, NULL, 'Selección del terreno', 'Condiciones del suelo: Se elige un terreno con buena drenaje, suelo fértil y un pH entre 5.5 y 7.5.\nClima adecuado: El frijol crece mejor en climas cálidos con temperaturas entre 18°C y 30°C.', NULL, 1, 1, '2025-01-15 11:37:59', 1, '2025-01-15 11:37:59');
INSERT INTO `etp_etapa` VALUES (36, 1, NULL, 'Preparación del terreno', 'Limpieza:, Labranza: , Nivelación:. Aplicación de fertilizantes: ', NULL, 1, 1, '2025-01-15 11:53:14', 1, '2025-01-15 11:53:14');
INSERT INTO `etp_etapa` VALUES (37, 1, NULL, 'Selección y preparación de semillas', 'Elección de variedades: Se seleccionan semillas adecuadas para el clima y el tipo de suelo de la región.\nTratamiento de semillas: Se desinfectan con fungicidas o insecticidas para prevenir plagas y enfermedades.', NULL, 1, 1, '2025-01-15 11:57:24', 1, '2025-01-15 11:57:24');
INSERT INTO `etp_etapa` VALUES (38, 1, NULL, 'Siembra', 'Época adecuada: Métodos de siembra:, Mecánica (sembradoras)., Distancia entre plantas: ', NULL, 1, 1, '2025-01-15 11:57:58', 1, '2025-01-15 11:57:58');
INSERT INTO `etp_etapa` VALUES (39, 1, NULL, 'Manejo del cultivo', 'Control de malezas:, Fertilización complementaria: , Riego: Control de plagas y enfermedades:', NULL, 1, 1, '2025-01-15 11:52:54', 1, '2025-01-15 11:52:54');
INSERT INTO `etp_etapa` VALUES (40, 1, NULL, 'Floración y desarrollo de vainas', 'Polinización: ,Protección: ', NULL, 1, 1, '2025-01-15 12:01:35', 1, '2025-01-15 12:01:35');
INSERT INTO `etp_etapa` VALUES (41, 1, NULL, 'Cosecha', 'Determinación del momento: Métodos de cosecha:Manual:,Mecánica: Secado: ', NULL, 1, 1, '2025-01-15 12:02:42', 1, '2025-01-15 12:02:42');
INSERT INTO `etp_etapa` VALUES (42, 1, NULL, 'Desgrane y limpieza', 'Separación de granos:, Limpieza: ', NULL, 1, 1, '2025-01-15 12:58:45', 1, '2025-01-15 12:58:45');
INSERT INTO `etp_etapa` VALUES (43, 1, NULL, 'Almacenamiento', 'Condiciones de almacenamiento:,Control de humedad:, Uso de envases adecuados: Uso de envases adecuados: ', NULL, 1, 1, '2025-01-15 13:01:40', 1, '2025-01-15 13:01:40');
INSERT INTO `etp_etapa` VALUES (44, 1, NULL, 'Comercialización', 'Clasificación. Distribución', NULL, 1, 1, '2025-01-15 13:02:31', 1, '2025-01-15 13:02:31');
INSERT INTO `etp_etapa` VALUES (45, NULL, NULL, 'Carrusel', NULL, NULL, 1, 65, '2025-02-24 08:55:48', 65, '2025-02-24 08:55:48');
INSERT INTO `etp_etapa` VALUES (46, NULL, NULL, 'Fundido', NULL, NULL, 1, 65, '2025-02-24 08:55:48', 65, '2025-02-24 08:55:48');
INSERT INTO `etp_etapa` VALUES (47, NULL, NULL, 'Precortado', NULL, NULL, 1, 65, '2025-02-24 08:56:42', 65, '2025-02-24 08:56:42');
INSERT INTO `etp_etapa` VALUES (48, 1, NULL, 'Terminado', NULL, NULL, 1, 65, '2025-02-24 08:56:42', 65, '2025-02-24 09:07:53');

-- ----------------------------
-- Table structure for etq_etiqueta
-- ----------------------------
CREATE TABLE `etq_etiqueta`  (
  `etq_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de Etiqueta',
  `etq_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre de etiqueta',
  `etq_estado` tinyint(4) NOT NULL COMMENT 'estado del registro 1=activo, 0=inactivo',
  `etq_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `etq_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `etq_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `etq_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`etq_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 9 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of etq_etiqueta
-- ----------------------------
INSERT INTO `etq_etiqueta` VALUES (1, 'Talleres', 1, 9, '2020-06-30 11:39:25', 9, '2020-06-30 11:39:25');
INSERT INTO `etq_etiqueta` VALUES (2, 'Restaurantes', 1, 1, '2021-12-28 07:31:21', 1, '2021-12-28 07:31:21');
INSERT INTO `etq_etiqueta` VALUES (3, 'Farmacias', 1, 1, '2021-12-28 07:31:21', 1, '2021-12-28 07:31:21');
INSERT INTO `etq_etiqueta` VALUES (4, 'Lubricentros', 1, 1, '2021-12-28 07:31:21', 1, '2021-12-28 07:31:21');
INSERT INTO `etq_etiqueta` VALUES (5, 'Supermercados', 1, 1, '2021-12-28 07:31:21', 1, '2021-12-28 07:31:21');
INSERT INTO `etq_etiqueta` VALUES (6, 'Innovatics II', 1, 1, '2021-12-28 07:31:21', 1, '2021-12-28 07:31:21');
INSERT INTO `etq_etiqueta` VALUES (7, 'ExpoArte', 1, 1, '2021-12-28 07:31:21', 1, '2021-12-28 07:31:21');
INSERT INTO `etq_etiqueta` VALUES (8, 'ITNow', 1, 1, '2021-12-28 07:31:21', 1, '2021-12-28 07:31:21');

-- ----------------------------
-- Table structure for etr_etapa_entregable
-- ----------------------------
CREATE TABLE `etr_etapa_entregable`  (
  `etr_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal - etapas',
  `etr_id_esk` int(11) NULL DEFAULT NULL COMMENT 'Llave Principal - Estado del Ticket',
  `etr_nombre` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre de etapas',
  `etr_orden` int(11) NOT NULL COMMENT 'Orden de etapas',
  `etr_icono` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Icono de la etapa del sprint',
  `etr_finalizacion` int(11) NOT NULL COMMENT 'Flag de finalizacion (0- no finalizado, 1- finalizado)',
  `etr_estimacion_cero` int(11) NULL DEFAULT NULL COMMENT 'Flag de para identificar si al regresar a una etapa de orden inferior sera en base estimación cero (1- si estimacion cero, 0 o null no estimacion cero)',
  `etr_descripcion` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Descripcion de la etapa',
  `etr_encuesta` int(11) NULL DEFAULT NULL COMMENT 'Flag si aplica encuesta en esa etapa (1 - Si, 0 - No)',
  `etr_pausa` int(11) NULL DEFAULT NULL COMMENT 'Flag para determinar si la tarea puede ser pausada (1 - Si, 0 - No)',
  `etr_estado` int(11) NOT NULL COMMENT 'Estado de registro',
  `etr_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `etr_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `etr_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `etr_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`etr_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Catalogo de etapas de entregable' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of etr_etapa_entregable
-- ----------------------------
INSERT INTO `etr_etapa_entregable` VALUES (1, NULL, 'Por Hacer', 1, '2a009-8b966_por_hacer.png', 0, NULL, NULL, NULL, NULL, 1, 1, 1, '2024-02-09 14:17:21', '2024-02-09 14:17:21');
INSERT INTO `etr_etapa_entregable` VALUES (2, NULL, 'En progreso', 2, 'd561b-678b6_xh.png', 0, NULL, NULL, NULL, NULL, 1, 1, 1, '2024-02-09 14:18:35', '2024-02-09 14:18:35');
INSERT INTO `etr_etapa_entregable` VALUES (3, NULL, 'Listo', 3, '9f56b-0d784_listo.jpg', 0, NULL, NULL, NULL, NULL, 1, 1, 1, '2024-02-09 14:19:21', '2024-02-09 14:19:21');
INSERT INTO `etr_etapa_entregable` VALUES (4, NULL, 'Visto Bueno', 4, '20d00-c1a41_test.png', 0, NULL, NULL, NULL, NULL, 1, 1, 1, '2024-02-09 14:20:08', '2024-02-09 14:20:08');
INSERT INTO `etr_etapa_entregable` VALUES (5, NULL, 'Finalizado', 5, '5852a-76834_fin.png', 1, NULL, NULL, NULL, NULL, 1, 1, 1, '2024-02-09 14:21:03', '2024-02-09 14:21:03');

-- ----------------------------
-- Table structure for eva_evaluacion
-- ----------------------------
CREATE TABLE `eva_evaluacion`  (
  `eva_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de evaluación',
  `eva_codigo` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Código de la evaluación',
  `eva_nombre` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre de la evaluación',
  `eva_indicacion` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Indicación',
  `eva_objetivo` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Objetivo',
  `eva_archivo` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Archivo guia para responder la evaluación',
  `eva_observacion` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'descripción general del registro',
  `eva_estado` int(11) NOT NULL DEFAULT 1 COMMENT 'Estado del Registro, 0=inactivo, 1=activo',
  `eva_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `eva_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `eva_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `eva_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`eva_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Evaluaciones' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of eva_evaluacion
-- ----------------------------
INSERT INTO `eva_evaluacion` VALUES (1, '001', 'Primer evaluacion', 'Favor de completar cada item de acuerdo a los puntos evaluados', NULL, NULL, NULL, 0, '2024-02-14 09:29:47', 1, 1, '2024-02-21 10:40:38');
INSERT INTO `eva_evaluacion` VALUES (2, '002', 'Cumplimiento de metas según el Plan Anual Operativo', 'Cumplimiento de metas según el Plan Anual Operativo', NULL, NULL, NULL, 1, '2024-02-21 10:37:19', 1, 1, '2024-02-21 10:37:19');

-- ----------------------------
-- Table structure for eve_evaluacion_empleado
-- ----------------------------
CREATE TABLE `eve_evaluacion_empleado`  (
  `eve_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de evaluación por empleado',
  `eve_id_emp` int(11) NOT NULL COMMENT 'Id de Empleado',
  `eve_id_pde` int(11) NOT NULL COMMENT 'Llave principal de periodo de evaluación.',
  `eve_id_ext` int(11) NOT NULL COMMENT 'Llave principal de evaluacion por puesto',
  `eve_id_usu` int(11) NOT NULL COMMENT 'Usuario realiza evaluación',
  `eve_id_rae` int(11) NULL DEFAULT NULL COMMENT 'Llave principal de rango de calificacion',
  `eve_fecha_evaluacion` datetime NOT NULL COMMENT 'Fecha de la evaluación',
  `eve_observacion` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'observación general',
  `eve_calificacion` decimal(19, 2) NULL DEFAULT NULL COMMENT 'Calificación de la evaluación',
  `eve_estado` int(11) NOT NULL DEFAULT 1 COMMENT 'Estado del Registro, 0=inactivo, 1=activo',
  `eve_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `eve_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `eve_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `eve_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`eve_id`) USING BTREE,
  INDEX `fk_eve_id_emp`(`eve_id_emp` ASC) USING BTREE,
  INDEX `fk_eve_id_ext`(`eve_id_ext` ASC) USING BTREE,
  INDEX `fk_eve_id_pde`(`eve_id_pde` ASC) USING BTREE,
  INDEX `fk_eve_id_usu`(`eve_id_usu` ASC) USING BTREE,
  INDEX `fk_eve_id_rae`(`eve_id_rae` ASC) USING BTREE,
  CONSTRAINT `fk_eve_id_emp` FOREIGN KEY (`eve_id_emp`) REFERENCES `emp_empleado` (`emp_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_eve_id_ext` FOREIGN KEY (`eve_id_ext`) REFERENCES `ext_evaluacionxpuesto` (`ext_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_eve_id_pde` FOREIGN KEY (`eve_id_pde`) REFERENCES `pde_periodo_evaluacion` (`pde_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_eve_id_rae` FOREIGN KEY (`eve_id_rae`) REFERENCES `rae_rango_evaluacion` (`rae_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_eve_id_usu` FOREIGN KEY (`eve_id_usu`) REFERENCES `users` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Evaluación del empleado' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of eve_evaluacion_empleado
-- ----------------------------
INSERT INTO `eve_evaluacion_empleado` VALUES (1, 92, 1, 4, 1, 2, '2024-02-14 09:45:38', NULL, 75.00, 1, '2024-02-14 09:45:38', 1, 1, '2024-02-14 09:45:38');
INSERT INTO `eve_evaluacion_empleado` VALUES (2, 1, 1, 3, 1, 2, '2024-02-21 10:26:51', NULL, 66.00, 1, '2024-02-21 10:26:51', 1, 1, '2024-02-21 10:26:51');

-- ----------------------------
-- Table structure for evm_evaluacion_modulo
-- ----------------------------
CREATE TABLE `evm_evaluacion_modulo`  (
  `evm_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de evaluación modulo',
  `evm_id_pyc` int(11) NOT NULL COMMENT 'Llave principal de proyeccion',
  `evm_id_tev` int(11) NOT NULL COMMENT 'Llave principal de tipo evaluacón',
  `evm_id_pen` int(11) NOT NULL COMMENT 'Llave principal del pensum',
  `evm_id_pev` int(11) NOT NULL COMMENT 'Llave principal de periodo de evaluacion',
  `evm_orden` int(11) NOT NULL COMMENT 'orden de las evaluaciones',
  `evm_porcentaje` decimal(19, 2) NOT NULL COMMENT 'Porcentaje global',
  `evm_fecha_inicio` datetime NULL DEFAULT NULL COMMENT 'Fecha inicio para subir nota',
  `evm_fecha_fin` datetime NULL DEFAULT NULL COMMENT 'Fecha fin para subir nota',
  `evm_fecha_max_nota` datetime NULL DEFAULT NULL COMMENT 'Fecha maxima para subir nota',
  `evm_fecha_realiza` datetime NULL DEFAULT NULL COMMENT 'Fecha en la que se realizará la evaluación (sugerida)',
  `evm_porcentaje_periodo` decimal(19, 2) NOT NULL COMMENT 'Porcentaje periodo',
  `evm_estado` tinyint(4) NOT NULL COMMENT 'Estado del registro',
  `evm_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `evm_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `evm_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `evm_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`evm_id`) USING BTREE,
  INDEX `fk_evm_id_pen`(`evm_id_pen` ASC) USING BTREE,
  INDEX `fk_evm_id_pev`(`evm_id_pev` ASC) USING BTREE,
  INDEX `fk_evm_id_pyc`(`evm_id_pyc` ASC) USING BTREE,
  INDEX `fk_evm_id_tev`(`evm_id_tev` ASC) USING BTREE,
  CONSTRAINT `fk_evm_id_pen` FOREIGN KEY (`evm_id_pen`) REFERENCES `pen_pensum` (`pen_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_evm_id_pev` FOREIGN KEY (`evm_id_pev`) REFERENCES `pev_periodo_evaluacion` (`pev_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_evm_id_pyc` FOREIGN KEY (`evm_id_pyc`) REFERENCES `pyc_proyeccion` (`pyc_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_evm_id_tev` FOREIGN KEY (`evm_id_tev`) REFERENCES `tev_tipo_evaluacion` (`tev_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of evm_evaluacion_modulo
-- ----------------------------

-- ----------------------------
-- Table structure for evn_evento
-- ----------------------------
CREATE TABLE `evn_evento`  (
  `evn_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de evento',
  `evn_id_usu` int(11) NOT NULL COMMENT 'Llave principal de Usuario.',
  `evn_codigo` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Código de evento',
  `evn_asunto` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Asunto',
  `evn_detalle` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Detalle',
  `evn_lugar` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Lugar',
  `evn_url_imagen` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Imagen',
  `evn_fecha_evento` datetime NULL DEFAULT NULL COMMENT 'Fecha evento',
  `evn_fecha_evento_fin` datetime NULL DEFAULT NULL COMMENT 'Fecha evento fin',
  `evn_hora_evento` time NULL DEFAULT NULL COMMENT 'Hora evento',
  `evn_hora_evento_fin` time NULL DEFAULT NULL COMMENT 'Hora evento fin',
  `evn_fecha` datetime NOT NULL COMMENT 'Fecha de registro',
  `evn_publico` int(11) NULL DEFAULT NULL COMMENT 'Evento para mostrar en intranet',
  `evn_estado` tinyint(4) NOT NULL COMMENT 'Estado del registro 1=activo, 0=inactivo',
  `evn_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `evn_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `evn_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `evn_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`evn_id`) USING BTREE,
  INDEX `fk_evn_id_usu`(`evn_id_usu` ASC) USING BTREE,
  CONSTRAINT `fk_evn_id_usu` FOREIGN KEY (`evn_id_usu`) REFERENCES `users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 17 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Gestión de eventos' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of evn_evento
-- ----------------------------
INSERT INTO `evn_evento` VALUES (1, 65, 'A0001', 'Reunion General', 'Reunion General', NULL, 'dia_programador_jpeg1729616157.jpeg', '2024-10-23 00:00:00', '2024-10-23 00:00:00', '16:00:00', '18:00:00', '2024-10-22 10:58:04', NULL, 1, 65, '2024-10-22 10:10:02', 1, '2024-10-22 10:58:04');
INSERT INTO `evn_evento` VALUES (2, 1, 'A0002', 'test', 'test', 'test', 'dia_programador_jpeg1729616340.jpeg', '2024-10-23 00:00:00', '2024-10-23 00:00:00', '08:00:00', '10:00:00', '2024-10-22 10:59:00', NULL, 1, 1, '2024-10-22 10:59:00', 1, '2024-10-22 10:59:00');
INSERT INTO `evn_evento` VALUES (3, 1, 'A0003', 'capacitacion', 'capacitacion', 'capacitacion', NULL, '2024-11-18 00:00:00', '2024-11-19 00:00:00', NULL, NULL, '2024-11-18 22:28:09', NULL, 1, 1, '2024-11-18 22:28:09', 1, '2024-11-18 22:28:09');
INSERT INTO `evn_evento` VALUES (4, 65, 'A0004', 'Feria de emprendimientos ', 'Feria de emprendimientos ', NULL, NULL, '2025-01-12 00:00:00', '2025-01-16 00:00:00', NULL, NULL, '2025-01-13 08:50:59', NULL, 1, 65, '2025-01-13 08:50:59', 65, '2025-01-13 08:50:59');
INSERT INTO `evn_evento` VALUES (5, 1, 'A0005', 'Reunion de KPI', 'Entrega de KPI por puestos a todo el equipo de trabajo ', NULL, 'kpi2_jpeg1738868758.jpeg', '2025-02-06 00:00:00', '2025-02-06 00:00:00', NULL, NULL, '2025-02-11 02:19:52', 1, 1, 1, '2025-02-06 13:05:58', 1, '2025-02-11 02:19:52');
INSERT INTO `evn_evento` VALUES (6, 1, 'A0006', 'Cena de San Valentín', 'Cena de San Valentín', 'Salon Principal', 'slide_01_sin_texto_png1740093578.png', '2025-02-25 00:00:00', '2025-02-25 00:00:00', '20:00:00', '23:00:00', '2025-02-24 14:51:17', 1, 1, 1, '2025-02-20 17:19:38', 1, '2025-02-24 14:51:17');
INSERT INTO `evn_evento` VALUES (7, 1, 'A0007', 'Presentacion Intranet', 'Presentacion Intranet', 'Oficina', NULL, '2025-04-07 00:00:00', '2025-04-07 00:00:00', NULL, '17:00:00', '2025-04-07 16:44:17', 1, 1, 1, '2025-04-07 16:44:17', 1, '2025-04-07 16:44:17');
INSERT INTO `evn_evento` VALUES (8, 69, 'A0008', 'Capacitación Sistema', 'Capacitación sobre nuevo sistema a implementar en CAI BOCAS DEL TORO', 'CAI BOCAS DEL TORO', NULL, '2025-07-23 00:00:00', '2025-07-23 00:00:00', '10:00:00', '12:00:00', '2025-07-22 09:17:55', 2, 1, 69, '2025-07-22 09:11:52', 69, '2025-07-22 09:17:55');
INSERT INTO `evn_evento` VALUES (9, 69, 'A0009', 'Mesa Técnica del Consejo Nacional de la Madre Adolescente', 'El Ministerio de la Mujer, participó activamente en la mesa técnica conformada por representantes de las distintas instituciones que integran el Consejo Nacional de la Madre Adolescente (CONAMA).\n\nEsta instancia de trabajo, tuvo como objetivo coordinar acciones interinstitucionales y fortalecer las políticas públicas, orientadas a la prevención del embarazo en adolescentes y a la atención integral de las madres adolescentes en el país.\n\nSe enmarca dentro de los ejes #1 Derechos humanos para las', NULL, NULL, '2025-07-23 00:00:00', '2025-07-23 00:00:00', '10:00:00', '13:00:00', '2025-07-22 09:16:36', 1, 1, 69, '2025-07-22 09:16:36', 69, '2025-07-22 09:16:36');
INSERT INTO `evn_evento` VALUES (10, 1, 'A0010', 'Reunion de presentacion', 'Reunion de presentacion', NULL, NULL, '2025-07-22 00:00:00', '2025-07-22 00:00:00', '08:00:00', '11:00:00', '2025-07-22 09:52:37', 1, 1, 1, '2025-07-22 09:52:37', 1, '2025-07-22 09:52:37');
INSERT INTO `evn_evento` VALUES (11, 1, 'A0011', 'Reunion de presentacion', 'Reunion de presentacion', 'Reunion en linea', '3791f_91c63_logo_color_ministerio_de_la_mujer_png1755531519.png', '2025-08-18 00:00:00', '2025-08-18 00:00:00', '10:00:00', '11:00:00', '2025-08-18 09:38:39', 1, 1, 1, '2025-08-18 09:38:39', 1, '2025-08-18 09:38:39');
INSERT INTO `evn_evento` VALUES (12, 1, 'A0012', 'test2', 'test2', 'test2', NULL, '2025-08-19 00:00:00', '2025-08-19 00:00:00', '10:00:00', '11:00:00', '2025-08-19 14:29:57', 1, 1, 1, '2025-08-19 14:29:57', 1, '2025-08-19 14:29:57');
INSERT INTO `evn_evento` VALUES (13, 1, 'A0013', 'test2', 'test2', 'test2', NULL, '2025-08-19 00:00:00', '2025-08-19 00:00:00', '10:00:00', '12:00:00', '2025-08-19 14:52:19', 1, 1, 1, '2025-08-19 14:52:19', 1, '2025-08-19 14:52:19');
INSERT INTO `evn_evento` VALUES (14, 1, 'A0014', 'Evento general', 'Evento general Detalle', 'Salon general', NULL, '2025-08-19 00:00:00', '2025-08-19 00:00:00', '08:00:00', '11:00:00', '2025-08-19 17:06:34', 1, 1, 1, '2025-08-19 17:06:34', 1, '2025-08-19 17:06:34');
INSERT INTO `evn_evento` VALUES (15, 1, 'A0015', 'Evento general 2', 'Evento general 2', 'Evento general 2', NULL, '2025-08-19 00:00:00', '2025-08-19 00:00:00', '08:00:00', '10:00:00', '2025-08-19 17:18:04', 1, 1, 1, '2025-08-19 17:18:04', 1, '2025-08-19 17:18:04');
INSERT INTO `evn_evento` VALUES (16, 1, 'A0016', 'Evento general 3', 'Evento general 3', 'Evento general 3', NULL, '2025-08-19 00:00:00', '2025-08-19 00:00:00', '10:00:00', '11:11:11', '2025-08-19 17:18:52', 1, 1, 1, '2025-08-19 17:18:52', 1, '2025-08-19 17:18:52');

-- ----------------------------
-- Table structure for evp_evaluacion_meta_poa
-- ----------------------------
CREATE TABLE `evp_evaluacion_meta_poa`  (
  `evp_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave Principal - Evaluacion Meta Operativa',
  `evp_nombre` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre de Periodo',
  `evp_rango_inicio` decimal(19, 6) NOT NULL COMMENT 'Rango Inicio a evaluar',
  `evp_rango_fin` decimal(19, 6) NOT NULL COMMENT 'Rango Fin a evaluar',
  `evp_color` varchar(25) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT 'Color de la evaluacion',
  `evp_estado` int(11) NOT NULL COMMENT 'Estado de registro',
  `evp_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `evp_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `evp_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `evp_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`evp_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of evp_evaluacion_meta_poa
-- ----------------------------
INSERT INTO `evp_evaluacion_meta_poa` VALUES (1, 'No cumple', 0.000000, 50.000000, '#f28383', 1, 1, 1, '2023-03-08 17:01:47', '2023-03-08 17:01:47');
INSERT INTO `evp_evaluacion_meta_poa` VALUES (2, 'En riesgo', 50.010000, 75.000000, '#f5a23d', 1, 1, 1, '2023-03-08 17:01:47', '2023-03-08 17:01:47');
INSERT INTO `evp_evaluacion_meta_poa` VALUES (3, 'Mejorar', 75.010000, 95.000000, '#eaf556', 1, 1, 1, '2023-03-08 17:01:47', '2023-03-08 17:01:47');
INSERT INTO `evp_evaluacion_meta_poa` VALUES (4, 'Cumple', 95.010000, 100.000000, '#56f55b', 1, 1, 1, '2023-03-08 17:01:47', '2023-03-08 17:01:47');

-- ----------------------------
-- Table structure for evr_evaluacion_riesgo
-- ----------------------------
CREATE TABLE `evr_evaluacion_riesgo`  (
  `evr_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave Principal - Probabilidad de Riesgo',
  `evr_id_imr` int(11) NOT NULL COMMENT 'Llave Principal - Impacto de Riesgo',
  `evr_id_prb` int(11) NOT NULL COMMENT 'Llave Principal - Probabilidad de Riesgo',
  `evr_nombre` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT 'Nombre de la Evaluación',
  `evr_color_alerta` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT 'Codigo Hexadecimal del la Alerta',
  `evr_estado` int(11) NOT NULL COMMENT 'Estado de registro',
  `evr_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `evr_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `evr_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `evr_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`evr_id`) USING BTREE,
  INDEX `fk_evr_id_imr`(`evr_id_imr` ASC) USING BTREE,
  INDEX `fk_evr_id_prb`(`evr_id_prb` ASC) USING BTREE,
  CONSTRAINT `fk_evr_id_imr` FOREIGN KEY (`evr_id_imr`) REFERENCES `imr_impacto_riesgo` (`imr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_evr_id_prb` FOREIGN KEY (`evr_id_prb`) REFERENCES `prb_probabilidad_riesgo` (`prb_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of evr_evaluacion_riesgo
-- ----------------------------
INSERT INTO `evr_evaluacion_riesgo` VALUES (1, 1, 3, 'Mejor Escenario', '#a0fabf', 1, 1, 1, '2023-03-08 17:12:12', '2023-03-08 17:12:12');
INSERT INTO `evr_evaluacion_riesgo` VALUES (2, 3, 1, 'Peor escenario', '#faa0a0', 1, 1, 1, '2023-03-08 17:12:12', '2023-03-08 17:12:12');
INSERT INTO `evr_evaluacion_riesgo` VALUES (3, 2, 2, 'Riesgo Medio', '#fff200', 1, 1, 1, '2024-08-27 08:27:15', '2024-08-27 08:27:15');

-- ----------------------------
-- Table structure for evs_evaluacion_meta_estrategica
-- ----------------------------
CREATE TABLE `evs_evaluacion_meta_estrategica`  (
  `evs_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave Principal - Evaluacion Meta Estrategica',
  `evs_nombre` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre de Periodo',
  `evs_rango_inicio` decimal(19, 6) NOT NULL COMMENT 'Rango Inicio a evaluar',
  `evs_rango_fin` decimal(19, 6) NOT NULL COMMENT 'Rango Fin a evaluar',
  `evs_color` varchar(25) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT 'Color de la evaluacion',
  `evs_estado` int(11) NOT NULL COMMENT 'Estado de registro',
  `evs_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `evs_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `evs_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `evs_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`evs_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of evs_evaluacion_meta_estrategica
-- ----------------------------
INSERT INTO `evs_evaluacion_meta_estrategica` VALUES (1, 'Recien iniciada', 0.000000, 5.000000, '#ffd6d6', 1, 1, 1, '2023-03-08 17:04:15', '2023-03-08 17:04:15');
INSERT INTO `evs_evaluacion_meta_estrategica` VALUES (2, 'En proceso', 5.010000, 90.000000, '#d6d289', 1, 1, 1, '2023-03-08 17:04:15', '2023-03-08 17:04:15');
INSERT INTO `evs_evaluacion_meta_estrategica` VALUES (3, 'Final', 90.010000, 100.000000, '#a6ff00', 1, 1, 1, '2023-03-08 17:05:27', '2023-03-08 17:05:27');

-- ----------------------------
-- Table structure for evt_evaluacion_riesgo_total
-- ----------------------------
CREATE TABLE `evt_evaluacion_riesgo_total`  (
  `evt_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave Principal - Evaluacion final de Riesgo',
  `evt_id_evr_antes` int(11) NOT NULL COMMENT 'Llave Principal - Evaluacion de Riesgo antes de control',
  `evt_id_evr_despues` int(11) NOT NULL COMMENT 'Llave Principal - Evaluacion de Riesgo despues de control',
  `evt_id_cac` int(11) NULL DEFAULT NULL COMMENT 'Llave principal controles actuales',
  `evt_nombre` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT 'Nombre de la Evaluación',
  `evt_color_alerta` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL COMMENT 'Codigo Hexadecimal del la Alerta',
  `evt_estado` int(11) NOT NULL COMMENT 'Estado de registro',
  `evt_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `evt_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `evt_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `evt_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`evt_id`) USING BTREE,
  INDEX `fk_evt_id_evr_a`(`evt_id_evr_antes` ASC) USING BTREE,
  INDEX `fk_evt_id_evr_d`(`evt_id_evr_despues` ASC) USING BTREE,
  INDEX `fk_evt_id_cac`(`evt_id_cac` ASC) USING BTREE,
  CONSTRAINT `fk_evt_id_cac` FOREIGN KEY (`evt_id_cac`) REFERENCES `cac_control_actual` (`cac_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_evt_id_evr_a` FOREIGN KEY (`evt_id_evr_antes`) REFERENCES `evr_evaluacion_riesgo` (`evr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_evt_id_evr_d` FOREIGN KEY (`evt_id_evr_despues`) REFERENCES `evr_evaluacion_riesgo` (`evr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of evt_evaluacion_riesgo_total
-- ----------------------------
INSERT INTO `evt_evaluacion_riesgo_total` VALUES (1, 2, 2, 1, 'Riesgo a evitar', '#f26161', 1, 1, 1, '2023-03-08 17:22:50', '2023-03-08 17:22:50');
INSERT INTO `evt_evaluacion_riesgo_total` VALUES (2, 2, 1, 2, 'Riesgos esperados', '#85f261', 1, 1, 1, '2023-03-08 17:22:50', '2023-03-08 17:22:50');

-- ----------------------------
-- Table structure for exa_estimacionxarticulo
-- ----------------------------
CREATE TABLE `exa_estimacionxarticulo`  (
  `exa_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Codigo principal de relacion estimaciones por articulo',
  `exa_id_esm` int(11) NOT NULL COMMENT 'Codigo principal de estimacion ',
  `exa_id_axc` int(11) NOT NULL COMMENT 'Codigo de articulo',
  `exa_cantidad` decimal(19, 6) NOT NULL COMMENT 'Cantidad de veces que se aplica la estimacion ',
  `exa_precio` decimal(19, 6) NOT NULL COMMENT 'Precio de la estimacion ',
  `exa_observacion` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Observaciones',
  `exa_monto_calculo` decimal(19, 2) NULL DEFAULT NULL COMMENT 'Monto que se tomo para cálculo (en caso de aplicar porcentaje)',
  `exa_estado` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'Estado del Registro (1:Activo, 0:Inactivo)',
  `exa_usu_mod` int(11) NOT NULL COMMENT 'Auditoria',
  `exa_fecha_mod` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`exa_id`) USING BTREE,
  INDEX `fk_exa_id_esm`(`exa_id_esm` ASC) USING BTREE,
  INDEX `fk_exa_id_axc`(`exa_id_axc` ASC) USING BTREE,
  CONSTRAINT `fk_exa_id_axc` FOREIGN KEY (`exa_id_axc`) REFERENCES `axc_articuloxcotizacion` (`axc_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_exa_id_esm` FOREIGN KEY (`exa_id_esm`) REFERENCES `esm_estimacion` (`esm_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of exa_estimacionxarticulo
-- ----------------------------

-- ----------------------------
-- Table structure for exc_etiquetaxcontacto
-- ----------------------------
CREATE TABLE `exc_etiquetaxcontacto`  (
  `exc_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de Etiqueta por Contacto',
  `exc_id_drn` int(11) NOT NULL COMMENT 'Llave principal directorio contactos.',
  `exc_id_etq` int(11) NOT NULL COMMENT 'Llave principal de Etiqueta',
  `exc_estado` tinyint(4) NOT NULL COMMENT 'estado del registro 1=activo, 0=inactivo',
  `exc_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `exc_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `exc_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `exc_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`exc_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 14 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of exc_etiquetaxcontacto
-- ----------------------------
INSERT INTO `exc_etiquetaxcontacto` VALUES (1, 3, 1, 1, 9, '2020-06-30 11:41:05', 9, '2020-06-30 11:41:05');
INSERT INTO `exc_etiquetaxcontacto` VALUES (4, 4, 1, 1, 1, '2020-07-01 18:38:24', 1, '2020-07-01 18:38:24');
INSERT INTO `exc_etiquetaxcontacto` VALUES (5, 5, 1, 1, 1, '2020-07-02 15:08:21', 1, '2020-07-02 15:08:21');
INSERT INTO `exc_etiquetaxcontacto` VALUES (7, 7, 1, 1, 18, '2020-07-06 09:37:26', 18, '2020-07-06 09:37:26');
INSERT INTO `exc_etiquetaxcontacto` VALUES (8, 8, 1, 1, 18, '2020-07-06 09:37:26', 18, '2020-07-06 09:37:26');
INSERT INTO `exc_etiquetaxcontacto` VALUES (9, 9, 1, 1, 18, '2020-07-06 09:37:26', 18, '2020-07-06 09:37:26');
INSERT INTO `exc_etiquetaxcontacto` VALUES (10, 6, 6, 1, 1, '2024-07-26 16:01:58', 1, '2024-07-26 16:01:58');
INSERT INTO `exc_etiquetaxcontacto` VALUES (11, 6, 4, 1, 1, '2024-07-26 16:01:58', 1, '2024-07-26 16:01:58');
INSERT INTO `exc_etiquetaxcontacto` VALUES (12, 6, 2, 1, 1, '2024-07-26 16:01:58', 1, '2024-07-26 16:01:58');
INSERT INTO `exc_etiquetaxcontacto` VALUES (13, 6, 1, 1, 1, '2024-07-26 16:01:58', 1, '2024-07-26 16:01:58');

-- ----------------------------
-- Table structure for exc_exclusion_categoria
-- ----------------------------
CREATE TABLE `exc_exclusion_categoria`  (
  `exc_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de exclusion de pregunta',
  `exc_id_cap` int(11) NOT NULL COMMENT 'Llave principal de categoria de pregunta a excluir',
  `exc_id_enc` int(11) NOT NULL COMMENT 'Llave principal de encuesta',
  `exc_observacion` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Observaciónes opcionales al registro',
  `exc_estado` int(11) NOT NULL COMMENT '1=activo, 0=inactivo',
  `exc_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `exc_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `exc_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `exc_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`exc_id`) USING BTREE,
  INDEX `fk_exc_id_cap`(`exc_id_cap` ASC) USING BTREE,
  INDEX `fk_exc_id_enc`(`exc_id_enc` ASC) USING BTREE,
  CONSTRAINT `fk_exc_id_cap` FOREIGN KEY (`exc_id_cap`) REFERENCES `cap_categoria_pregunta` (`cap_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_exc_id_enc` FOREIGN KEY (`exc_id_enc`) REFERENCES `enc_encuesta` (`enc_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Exclusión de categoria de preguntas' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of exc_exclusion_categoria
-- ----------------------------

-- ----------------------------
-- Table structure for exd_escalafonxdocente
-- ----------------------------
CREATE TABLE `exd_escalafonxdocente`  (
  `exd_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave primaria de escalafon por docente',
  `exd_id_dct` int(11) NOT NULL COMMENT 'codigo de docente',
  `exd_id_tbe` int(11) NOT NULL COMMENT 'Llave primaria de tabla de escalafon',
  `exd_estado` tinyint(4) NOT NULL COMMENT 'estado del registro 0=inactivo, 1=activo',
  `exd_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `exd_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `exd_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `exd_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`exd_id`) USING BTREE,
  INDEX `fk_exd_id_dct`(`exd_id_dct` ASC) USING BTREE,
  INDEX `fk_exd_id_tbe`(`exd_id_tbe` ASC) USING BTREE,
  CONSTRAINT `fk_exd_id_dct` FOREIGN KEY (`exd_id_dct`) REFERENCES `dct_docente` (`dct_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_exd_id_tbe` FOREIGN KEY (`exd_id_tbe`) REFERENCES `tbe_tabla_escalafon` (`tbe_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of exd_escalafonxdocente
-- ----------------------------

-- ----------------------------
-- Table structure for exe_enfermedadxempleado
-- ----------------------------
CREATE TABLE `exe_enfermedadxempleado`  (
  `exe_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de enfermedades por empleado',
  `exe_id_enf` int(11) NOT NULL COMMENT 'Llave principal enfermedad.',
  `exe_id_emp` int(11) NOT NULL COMMENT 'Id de Empleado',
  `exe_estado` int(11) NOT NULL DEFAULT 1 COMMENT 'Estado del Registro, 0=inactivo, 1=activo',
  `exe_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `exe_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `exe_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `exe_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`exe_id`) USING BTREE,
  INDEX `fk_exe_id_emp`(`exe_id_emp` ASC) USING BTREE,
  INDEX `fk_exe_id_enf`(`exe_id_enf` ASC) USING BTREE,
  CONSTRAINT `fk_exe_id_emp` FOREIGN KEY (`exe_id_emp`) REFERENCES `emp_empleado` (`emp_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_exe_id_enf` FOREIGN KEY (`exe_id_enf`) REFERENCES `enf_enfermedad` (`enf_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Enfermedad por empleado' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of exe_enfermedadxempleado
-- ----------------------------
INSERT INTO `exe_enfermedadxempleado` VALUES (1, 2, 76, 1, '2019-10-19 08:46:54', 5, 1, '2024-08-23 16:29:18');

-- ----------------------------
-- Table structure for exg_etapasxcursograma_analitico
-- ----------------------------
CREATE TABLE `exg_etapasxcursograma_analitico`  (
  `exg_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de Cursograma analitico',
  `exg_id_eca` int(11) NOT NULL COMMENT 'Llave principal de etapa cursograma analitico',
  `exg_id_cra` int(11) NOT NULL COMMENT 'Llave principal de Cursograma analitico',
  `exg_orden` int(11) NOT NULL COMMENT 'orden',
  `exg_descripcion` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'descripcion',
  `exg_cantidad` decimal(19, 6) NOT NULL COMMENT 'cantidad',
  `exg_tiempo` decimal(19, 6) NOT NULL COMMENT 'tiempo',
  `exg_distancia` decimal(19, 6) NOT NULL COMMENT 'distancia',
  `exg_observacion` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Observacion',
  `exg_estado` tinyint(4) NOT NULL COMMENT 'estado del registro 1=activo, 0=inactivo',
  `exg_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `exg_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `exg_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `exg_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`exg_id`) USING BTREE,
  INDEX `fk_exg_id_cra`(`exg_id_cra` ASC) USING BTREE,
  INDEX `fk_exg_id_eca`(`exg_id_eca` ASC) USING BTREE,
  CONSTRAINT `fk_exg_id_cra` FOREIGN KEY (`exg_id_cra`) REFERENCES `cra_cursograma_analitico` (`cra_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_exg_id_eca` FOREIGN KEY (`exg_id_eca`) REFERENCES `eca_etapa_cursograma_analitico` (`eca_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Etapas x Cursograma Análitico del producto' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of exg_etapasxcursograma_analitico
-- ----------------------------

-- ----------------------------
-- Table structure for exh_etiquetaxarchivo
-- ----------------------------
CREATE TABLE `exh_etiquetaxarchivo`  (
  `exh_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de etiqueta por archivo',
  `exh_id_eqa` int(11) NOT NULL COMMENT 'Llave principal de etiqueta de archivo',
  `exh_id_arh` int(11) NOT NULL COMMENT 'Llave principal del archivo',
  `exh_estado` tinyint(4) NOT NULL COMMENT 'Estado del registro 1=activo, 0=inactivo',
  `exh_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `exh_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `exh_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `exh_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`exh_id`) USING BTREE,
  INDEX `fk_exh_id_arh`(`exh_id_arh` ASC) USING BTREE,
  INDEX `fk_exh_id_eqa`(`exh_id_eqa` ASC) USING BTREE,
  CONSTRAINT `fk_exh_id_arh` FOREIGN KEY (`exh_id_arh`) REFERENCES `arh_archivo` (`arh_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_exh_id_eqa` FOREIGN KEY (`exh_id_eqa`) REFERENCES `eqa_etiqueta_archivo` (`eqa_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 44 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Etiquetas por archivo' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of exh_etiquetaxarchivo
-- ----------------------------
INSERT INTO `exh_etiquetaxarchivo` VALUES (6, 2, 5, 1, 1, '2024-08-01 14:16:32', 1, '2024-08-01 14:16:32');
INSERT INTO `exh_etiquetaxarchivo` VALUES (7, 1, 6, 1, 1, '2024-09-27 14:52:14', 1, '2024-09-27 14:52:14');
INSERT INTO `exh_etiquetaxarchivo` VALUES (8, 2, 6, 1, 1, '2024-09-27 14:52:14', 1, '2024-09-27 14:52:14');
INSERT INTO `exh_etiquetaxarchivo` VALUES (9, 1, 7, 1, 1, '2024-10-23 13:57:24', 1, '2024-10-23 13:57:24');
INSERT INTO `exh_etiquetaxarchivo` VALUES (12, 1, 8, 1, 1, '2024-11-21 11:05:04', 1, '2024-11-21 11:05:04');
INSERT INTO `exh_etiquetaxarchivo` VALUES (13, 1, 9, 1, 1, '2024-11-21 11:10:31', 1, '2024-11-21 11:10:31');
INSERT INTO `exh_etiquetaxarchivo` VALUES (15, 1, 2, 1, 1, '2025-01-21 11:16:13', 1, '2025-01-21 11:16:13');
INSERT INTO `exh_etiquetaxarchivo` VALUES (17, 1, 10, 1, 1, '2025-01-21 11:19:47', 1, '2025-01-21 11:19:47');
INSERT INTO `exh_etiquetaxarchivo` VALUES (18, 3, 11, 1, 65, '2025-01-28 17:21:47', 65, '2025-01-28 17:21:47');
INSERT INTO `exh_etiquetaxarchivo` VALUES (19, 3, 12, 1, 65, '2025-01-28 17:25:22', 65, '2025-01-28 17:25:22');
INSERT INTO `exh_etiquetaxarchivo` VALUES (20, 3, 13, 1, 65, '2025-01-28 17:28:56', 65, '2025-01-28 17:28:56');
INSERT INTO `exh_etiquetaxarchivo` VALUES (21, 3, 14, 1, 1, '2025-01-28 17:32:05', 1, '2025-01-28 17:32:05');
INSERT INTO `exh_etiquetaxarchivo` VALUES (22, 3, 15, 1, 1, '2025-01-28 17:41:03', 1, '2025-01-28 17:41:03');
INSERT INTO `exh_etiquetaxarchivo` VALUES (23, 3, 16, 1, 1, '2025-01-28 18:02:04', 1, '2025-01-28 18:02:04');
INSERT INTO `exh_etiquetaxarchivo` VALUES (24, 1, 1, 1, 65, '2025-02-04 18:33:58', 65, '2025-02-04 18:33:58');
INSERT INTO `exh_etiquetaxarchivo` VALUES (25, 1, 17, 1, 1, '2025-02-10 14:41:34', 1, '2025-02-10 14:41:34');
INSERT INTO `exh_etiquetaxarchivo` VALUES (26, 1, 18, 1, 1, '2025-02-18 09:18:49', 1, '2025-02-18 09:18:49');
INSERT INTO `exh_etiquetaxarchivo` VALUES (27, 3, 19, 1, 1, '2025-02-18 09:26:11', 1, '2025-02-18 09:26:11');
INSERT INTO `exh_etiquetaxarchivo` VALUES (28, 3, 20, 1, 1, '2025-02-18 09:26:52', 1, '2025-02-18 09:26:52');
INSERT INTO `exh_etiquetaxarchivo` VALUES (29, 3, 21, 1, 1, '2025-02-18 09:27:57', 1, '2025-02-18 09:27:57');
INSERT INTO `exh_etiquetaxarchivo` VALUES (30, 3, 22, 1, 1, '2025-02-18 09:30:53', 1, '2025-02-18 09:30:53');
INSERT INTO `exh_etiquetaxarchivo` VALUES (31, 3, 23, 1, 1, '2025-02-18 09:39:53', 1, '2025-02-18 09:39:53');
INSERT INTO `exh_etiquetaxarchivo` VALUES (32, 3, 24, 1, 1, '2025-02-18 09:44:16', 1, '2025-02-18 09:44:16');
INSERT INTO `exh_etiquetaxarchivo` VALUES (33, 3, 25, 1, 1, '2025-02-18 10:28:36', 1, '2025-02-18 10:28:36');
INSERT INTO `exh_etiquetaxarchivo` VALUES (34, 3, 26, 1, 1, '2025-02-18 10:35:59', 1, '2025-02-18 10:35:59');
INSERT INTO `exh_etiquetaxarchivo` VALUES (35, 3, 27, 1, 1, '2025-02-18 10:36:31', 1, '2025-02-18 10:36:31');
INSERT INTO `exh_etiquetaxarchivo` VALUES (36, 2, 28, 1, 1, '2025-02-20 17:27:14', 1, '2025-02-20 17:27:14');
INSERT INTO `exh_etiquetaxarchivo` VALUES (37, 1, 29, 1, 1, '2025-04-01 09:47:41', 1, '2025-04-01 09:47:41');
INSERT INTO `exh_etiquetaxarchivo` VALUES (38, 4, 29, 1, 1, '2025-04-01 09:47:41', 1, '2025-04-01 09:47:41');
INSERT INTO `exh_etiquetaxarchivo` VALUES (39, 2, 29, 1, 1, '2025-04-01 09:47:41', 1, '2025-04-01 09:47:41');
INSERT INTO `exh_etiquetaxarchivo` VALUES (40, 4, 30, 1, 1, '2025-04-07 16:55:30', 1, '2025-04-07 16:55:30');
INSERT INTO `exh_etiquetaxarchivo` VALUES (41, 2, 30, 1, 1, '2025-04-07 16:55:30', 1, '2025-04-07 16:55:30');
INSERT INTO `exh_etiquetaxarchivo` VALUES (42, 1, 31, 1, 1, '2025-07-22 09:56:05', 1, '2025-07-22 09:56:05');
INSERT INTO `exh_etiquetaxarchivo` VALUES (43, 4, 31, 1, 1, '2025-07-22 09:56:05', 1, '2025-07-22 09:56:05');

-- ----------------------------
-- Table structure for exl_experiencia_laboral
-- ----------------------------
CREATE TABLE `exl_experiencia_laboral`  (
  `exl_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal experiencia laboral',
  `exl_nombre` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL COMMENT 'Nombre o rango de tiempo de la experiencia laboral',
  `exl_descripcion` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'descripción general del registro',
  `exl_estado` int(11) NOT NULL DEFAULT 1 COMMENT 'Estado del Registro, 0=inactivo, 1=activo',
  `exl_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `exl_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `exl_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `exl_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`exl_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of exl_experiencia_laboral
-- ----------------------------
INSERT INTO `exl_experiencia_laboral` VALUES (1, '1 - 3 Años ', '1 - 3 Años ', 1, '2019-10-11 14:55:06', 1, 1, '2019-10-11 14:55:06');
INSERT INTO `exl_experiencia_laboral` VALUES (2, '4 - 6 Años ', '4 - 6 Años', 1, '2019-10-11 14:55:06', 1, 1, '2019-10-11 14:55:06');
INSERT INTO `exl_experiencia_laboral` VALUES (3, '6 - 10 Años', '6 - 10 Años', 1, '2019-10-11 14:55:06', 1, 1, '2019-10-11 14:55:06');
INSERT INTO `exl_experiencia_laboral` VALUES (4, 'Mas de 10 Años', 'Mas de 10 Años', 1, '2019-10-11 14:55:06', 1, 1, '2019-10-11 14:55:06');
INSERT INTO `exl_experiencia_laboral` VALUES (5, 'Soporte Tecnico', 'Administracion de Servidores, redes, mtto. de PC', 1, '2020-04-24 14:16:32', 5, 5, '2020-04-24 14:16:32');

-- ----------------------------
-- Table structure for exm_empleadoxmotorista
-- ----------------------------
CREATE TABLE `exm_empleadoxmotorista`  (
  `exm_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave primaria de empleados por motorista',
  `exm_id_emp` int(11) NOT NULL COMMENT 'Id de Empleado',
  `exm_id_mot` int(11) NOT NULL COMMENT 'llave principal - motoristas',
  `exm_estado` tinyint(4) NOT NULL COMMENT 'estado del registro 0=inactivo, 1=activo',
  `exm_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `exm_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `exm_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `exm_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`exm_id`) USING BTREE,
  INDEX `fk_exm_id_emp`(`exm_id_emp` ASC) USING BTREE,
  INDEX `fk_exm_id_mot`(`exm_id_mot` ASC) USING BTREE,
  CONSTRAINT `fk_exm_id_emp` FOREIGN KEY (`exm_id_emp`) REFERENCES `emp_empleado` (`emp_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_exm_id_mot` FOREIGN KEY (`exm_id_mot`) REFERENCES `mot_motorista` (`mot_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'empleados por motorista' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of exm_empleadoxmotorista
-- ----------------------------

-- ----------------------------
-- Table structure for exo_etapaxarticulo_orden
-- ----------------------------
CREATE TABLE `exo_etapaxarticulo_orden`  (
  `exo_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de etapas por lote de detalle de produccion.',
  `exo_id_etp` int(11) NOT NULL COMMENT 'Codigo de etapa',
  `exo_id_lop` int(11) NULL DEFAULT NULL COMMENT 'Llave principal de lote de produción',
  `exo_duracion` decimal(19, 2) NOT NULL COMMENT 'Duración/horas',
  `exo_duracion_mano_obra` decimal(19, 2) NULL DEFAULT NULL COMMENT 'Duración/horas mano de obra',
  `exo_comentario` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Comentario del registro',
  `exo_orden` int(11) NOT NULL COMMENT 'orden ',
  `exo_fin` tinyint(4) NULL DEFAULT NULL COMMENT 'Es la etapa final 1=si, 0=no',
  `exo_cantidad` decimal(19, 2) NULL DEFAULT NULL COMMENT 'Cantidad Actual de productos que estan en dicha etapa',
  `exo_duracion_mod` decimal(19, 2) NULL DEFAULT NULL COMMENT 'Duración/horas maquina',
  `exo_estado` tinyint(4) NOT NULL COMMENT 'estado del registro 1=activo, 0=inactivo',
  `exo_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `exo_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `exo_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `exo_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`exo_id`) USING BTREE,
  INDEX `fk_exo_id_etp`(`exo_id_etp` ASC) USING BTREE,
  INDEX `fk_exo_id_lop`(`exo_id_lop` ASC) USING BTREE,
  CONSTRAINT `fk_exo_id_etp` FOREIGN KEY (`exo_id_etp`) REFERENCES `etp_etapa` (`etp_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_exo_id_lop` FOREIGN KEY (`exo_id_lop`) REFERENCES `lop_lote_produccion` (`lop_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 41 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Etapas por artículo de orden de Producción.' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of exo_etapaxarticulo_orden
-- ----------------------------
INSERT INTO `exo_etapaxarticulo_orden` VALUES (1, 2, 1, 0.33, 0.33, '', 1, 0, 0.00, NULL, 1, 65, '2024-10-17 17:05:01', 65, '2024-10-17 17:05:01');
INSERT INTO `exo_etapaxarticulo_orden` VALUES (2, 4, 1, 1.00, 1.00, '', 2, 0, 0.00, NULL, 1, 65, '2024-10-17 17:05:01', 65, '2024-10-17 17:05:01');
INSERT INTO `exo_etapaxarticulo_orden` VALUES (3, 6, 1, 1.00, 1.00, '', 3, 0, 0.00, NULL, 1, 65, '2024-10-17 17:05:01', 65, '2024-10-17 17:05:01');
INSERT INTO `exo_etapaxarticulo_orden` VALUES (4, 13, 1, 1.00, 1.00, '', 4, 1, 100.00, NULL, 1, 65, '2024-10-17 17:05:01', 65, '2024-10-17 17:05:01');
INSERT INTO `exo_etapaxarticulo_orden` VALUES (5, 2, 2, 1.00, 1.00, NULL, 1, 0, 0.00, NULL, 1, 65, '2024-10-17 17:47:46', 65, '2024-10-17 17:47:46');
INSERT INTO `exo_etapaxarticulo_orden` VALUES (6, 4, 2, 2.00, 2.00, NULL, 2, 0, 0.00, NULL, 1, 65, '2024-10-17 17:47:46', 65, '2024-10-17 17:47:46');
INSERT INTO `exo_etapaxarticulo_orden` VALUES (7, 8, 2, 3.00, 3.00, NULL, 3, 0, 0.00, NULL, 1, 65, '2024-10-17 17:47:46', 65, '2024-10-17 17:47:46');
INSERT INTO `exo_etapaxarticulo_orden` VALUES (8, 13, 2, 4.00, 4.00, NULL, 4, 1, 200.00, NULL, 1, 65, '2024-10-17 17:47:46', 65, '2024-10-17 17:47:46');
INSERT INTO `exo_etapaxarticulo_orden` VALUES (9, 2, 3, 1.00, 1.00, NULL, 1, 0, 0.00, NULL, 1, 65, '2024-10-17 17:59:55', 65, '2024-10-17 18:06:06');
INSERT INTO `exo_etapaxarticulo_orden` VALUES (10, 4, 3, 2.00, 2.00, NULL, 2, 0, 0.00, NULL, 1, 65, '2024-10-17 17:59:55', 65, '2024-10-17 18:06:06');
INSERT INTO `exo_etapaxarticulo_orden` VALUES (11, 8, 3, 3.00, 3.00, NULL, 3, 0, 0.00, NULL, 1, 65, '2024-10-17 17:59:55', 65, '2024-10-17 18:06:06');
INSERT INTO `exo_etapaxarticulo_orden` VALUES (12, 13, 3, 4.00, 4.00, NULL, 4, 1, 100.00, NULL, 1, 65, '2024-10-17 17:59:55', 65, '2024-10-17 18:06:06');
INSERT INTO `exo_etapaxarticulo_orden` VALUES (13, 2, 4, 1.00, 1.00, NULL, 1, 0, 0.00, NULL, 1, 1, '2024-10-23 14:56:49', 1, '2024-10-23 14:56:49');
INSERT INTO `exo_etapaxarticulo_orden` VALUES (14, 4, 4, 2.00, 2.00, NULL, 2, 0, 0.00, NULL, 1, 1, '2024-10-23 14:56:49', 1, '2024-10-23 14:56:49');
INSERT INTO `exo_etapaxarticulo_orden` VALUES (15, 8, 4, 3.00, 3.00, NULL, 3, 0, 0.00, NULL, 1, 1, '2024-10-23 14:56:49', 1, '2024-10-23 14:56:49');
INSERT INTO `exo_etapaxarticulo_orden` VALUES (16, 13, 4, 4.00, 4.00, NULL, 4, 1, 10.00, NULL, 1, 1, '2024-10-23 14:56:49', 1, '2024-10-23 14:56:49');
INSERT INTO `exo_etapaxarticulo_orden` VALUES (17, 2, 5, 1.00, 1.00, NULL, 1, 0, 0.00, NULL, 1, 1, '2024-10-23 16:38:11', 1, '2024-10-23 16:55:36');
INSERT INTO `exo_etapaxarticulo_orden` VALUES (18, 4, 5, 2.00, 2.00, NULL, 2, 0, 0.00, NULL, 1, 1, '2024-10-23 16:38:11', 1, '2024-10-23 16:55:36');
INSERT INTO `exo_etapaxarticulo_orden` VALUES (19, 8, 5, 3.00, 3.00, NULL, 3, 0, 0.00, NULL, 1, 1, '2024-10-23 16:38:11', 1, '2024-10-23 16:55:36');
INSERT INTO `exo_etapaxarticulo_orden` VALUES (20, 13, 5, 4.00, 4.00, NULL, 4, 1, 50.00, NULL, 1, 1, '2024-10-23 16:38:11', 1, '2024-10-23 16:55:36');
INSERT INTO `exo_etapaxarticulo_orden` VALUES (21, 31, 6, 1.00, 2.00, NULL, 1, 0, 0.00, NULL, 1, 65, '2025-01-17 19:33:34', 65, '2025-01-17 19:33:34');
INSERT INTO `exo_etapaxarticulo_orden` VALUES (22, 2, 6, 1.00, 2.00, NULL, 2, 0, 0.00, NULL, 1, 65, '2025-01-17 19:33:34', 65, '2025-01-17 19:33:34');
INSERT INTO `exo_etapaxarticulo_orden` VALUES (23, 11, 6, 1.00, 2.00, NULL, 3, 0, 0.00, NULL, 1, 65, '2025-01-17 19:33:34', 65, '2025-01-17 19:33:34');
INSERT INTO `exo_etapaxarticulo_orden` VALUES (24, 35, 6, 1.00, 1.00, NULL, 4, 1, 1.00, NULL, 1, 65, '2025-01-17 19:33:34', 65, '2025-01-17 19:33:34');
INSERT INTO `exo_etapaxarticulo_orden` VALUES (25, 45, 7, 2.00, 1.50, NULL, 1, 0, 0.00, NULL, 1, 65, '2025-02-24 09:18:38', 65, '2025-02-24 09:18:38');
INSERT INTO `exo_etapaxarticulo_orden` VALUES (26, 46, 7, 3.00, 2.00, NULL, 2, 0, 0.00, NULL, 1, 65, '2025-02-24 09:18:38', 65, '2025-02-24 09:18:38');
INSERT INTO `exo_etapaxarticulo_orden` VALUES (27, 47, 7, 4.00, 3.00, NULL, 3, 0, 0.00, NULL, 1, 65, '2025-02-24 09:18:38', 65, '2025-02-24 09:18:38');
INSERT INTO `exo_etapaxarticulo_orden` VALUES (28, 48, 7, 1.00, 1.00, NULL, 4, 1, 500.00, NULL, 1, 65, '2025-02-24 09:18:38', 65, '2025-02-24 09:18:38');
INSERT INTO `exo_etapaxarticulo_orden` VALUES (29, 45, 8, 2.00, 1.50, NULL, 1, 0, NULL, NULL, 1, 65, '2025-02-24 09:51:40', 65, '2025-02-24 09:51:40');
INSERT INTO `exo_etapaxarticulo_orden` VALUES (30, 46, 8, 3.00, 2.00, NULL, 2, 0, NULL, NULL, 1, 65, '2025-02-24 09:51:40', 65, '2025-02-24 09:51:40');
INSERT INTO `exo_etapaxarticulo_orden` VALUES (31, 47, 8, 4.00, 3.00, NULL, 3, 0, NULL, NULL, 1, 65, '2025-02-24 09:51:40', 65, '2025-02-24 09:51:40');
INSERT INTO `exo_etapaxarticulo_orden` VALUES (32, 48, 8, 1.00, 1.00, NULL, 4, 1, NULL, NULL, 1, 65, '2025-02-24 09:51:40', 65, '2025-02-24 09:51:40');
INSERT INTO `exo_etapaxarticulo_orden` VALUES (33, 45, 9, 2.00, 1.50, NULL, 1, 0, 0.00, NULL, 1, 1, '2025-02-24 09:52:32', 65, '2025-02-24 10:05:47');
INSERT INTO `exo_etapaxarticulo_orden` VALUES (34, 46, 9, 3.00, 2.00, NULL, 2, 0, 0.00, NULL, 1, 1, '2025-02-24 09:52:32', 65, '2025-02-24 10:05:47');
INSERT INTO `exo_etapaxarticulo_orden` VALUES (35, 47, 9, 4.00, 3.00, NULL, 3, 0, 0.00, NULL, 1, 1, '2025-02-24 09:52:32', 65, '2025-02-24 10:05:47');
INSERT INTO `exo_etapaxarticulo_orden` VALUES (36, 48, 9, 1.00, 1.00, NULL, 4, 1, 100.00, NULL, 1, 1, '2025-02-24 09:52:32', 65, '2025-02-24 10:05:47');
INSERT INTO `exo_etapaxarticulo_orden` VALUES (37, 45, 10, 2.00, 1.50, NULL, 1, 0, 0.00, NULL, 1, 1, '2025-02-24 13:04:43', 1, '2025-02-24 13:04:43');
INSERT INTO `exo_etapaxarticulo_orden` VALUES (38, 46, 10, 3.00, 2.00, NULL, 2, 0, 0.00, NULL, 1, 1, '2025-02-24 13:04:43', 1, '2025-02-24 13:04:43');
INSERT INTO `exo_etapaxarticulo_orden` VALUES (39, 47, 10, 4.00, 3.00, NULL, 3, 0, 0.00, NULL, 1, 1, '2025-02-24 13:04:43', 1, '2025-02-24 13:04:43');
INSERT INTO `exo_etapaxarticulo_orden` VALUES (40, 48, 10, 1.00, 1.00, NULL, 4, 1, 200.00, NULL, 1, 1, '2025-02-24 13:04:43', 1, '2025-02-24 13:04:43');

-- ----------------------------
-- Table structure for exp_espacioxplaza
-- ----------------------------
CREATE TABLE `exp_espacioxplaza`  (
  `exp_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de espacio o ambiente de trabajo por plaza',
  `exp_id_plz` int(11) NOT NULL COMMENT 'llave de primaria del registro',
  `exp_id_ept` int(11) NOT NULL COMMENT 'Llave principal de espacio de trabajo',
  `exp_estado` tinyint(4) NOT NULL COMMENT 'Estado del registro 1=activo, 0=inactivo',
  `exp_usu_creacion` int(11) NOT NULL COMMENT 'auditoria',
  `exp_fecha_creacion` datetime NOT NULL COMMENT 'auditoria',
  `exp_usu_modificacion` int(11) NOT NULL COMMENT 'auditoria',
  `exp_fecha_modificacion` datetime NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`exp_id`) USING BTREE,
  INDEX `fk_exp_id_ept`(`exp_id_ept` ASC) USING BTREE,
  INDEX `fk_exp_id_plz`(`exp_id_plz` ASC) USING BTREE,
  CONSTRAINT `fk_exp_id_ept` FOREIGN KEY (`exp_id_ept`) REFERENCES `ept_espacio_trabajo` (`ept_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_exp_id_plz` FOREIGN KEY (`exp_id_plz`) REFERENCES `plz_plaza` (`plz_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 80 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Ambientes o espacios de trabajo por plaza' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of exp_espacioxplaza
-- ----------------------------
INSERT INTO `exp_espacioxplaza` VALUES (7, 7, 4, 1, 1, '2020-03-31 00:00:00', 1, '2020-03-31 00:00:00');
INSERT INTO `exp_espacioxplaza` VALUES (9, 8, 1, 1, 1, '2020-03-31 00:00:00', 1, '2020-03-31 00:00:00');
INSERT INTO `exp_espacioxplaza` VALUES (12, 11, 4, 1, 1, '2020-03-31 00:00:00', 1, '2020-03-31 00:00:00');
INSERT INTO `exp_espacioxplaza` VALUES (13, 12, 4, 1, 1, '2020-03-31 00:00:00', 1, '2020-03-31 00:00:00');
INSERT INTO `exp_espacioxplaza` VALUES (14, 13, 4, 1, 1, '2020-03-31 00:00:00', 1, '2020-03-31 00:00:00');
INSERT INTO `exp_espacioxplaza` VALUES (15, 14, 4, 1, 1, '2020-03-31 00:00:00', 1, '2020-03-31 00:00:00');
INSERT INTO `exp_espacioxplaza` VALUES (16, 15, 11, 1, 1, '2020-03-31 00:00:00', 1, '2020-03-31 00:00:00');
INSERT INTO `exp_espacioxplaza` VALUES (17, 16, 11, 1, 1, '2020-03-31 00:00:00', 1, '2020-03-31 00:00:00');
INSERT INTO `exp_espacioxplaza` VALUES (20, 18, 8, 1, 1, '2020-03-31 00:00:00', 1, '2020-03-31 00:00:00');
INSERT INTO `exp_espacioxplaza` VALUES (21, 19, 7, 1, 1, '2020-03-31 00:00:00', 1, '2020-03-31 00:00:00');
INSERT INTO `exp_espacioxplaza` VALUES (22, 20, 7, 1, 1, '2020-03-31 00:00:00', 1, '2020-03-31 00:00:00');
INSERT INTO `exp_espacioxplaza` VALUES (23, 21, 7, 1, 1, '2020-03-31 00:00:00', 1, '2020-03-31 00:00:00');
INSERT INTO `exp_espacioxplaza` VALUES (24, 22, 7, 1, 1, '2020-03-31 00:00:00', 1, '2020-03-31 00:00:00');
INSERT INTO `exp_espacioxplaza` VALUES (25, 23, 9, 1, 1, '2020-03-31 00:00:00', 1, '2020-03-31 00:00:00');
INSERT INTO `exp_espacioxplaza` VALUES (26, 24, 9, 1, 1, '2020-03-31 00:00:00', 1, '2020-03-31 00:00:00');
INSERT INTO `exp_espacioxplaza` VALUES (27, 25, 9, 1, 1, '2020-03-31 00:00:00', 1, '2020-03-31 00:00:00');
INSERT INTO `exp_espacioxplaza` VALUES (28, 26, 9, 1, 1, '2020-03-31 00:00:00', 1, '2020-03-31 00:00:00');
INSERT INTO `exp_espacioxplaza` VALUES (29, 27, 9, 1, 1, '2020-03-31 00:00:00', 1, '2020-03-31 00:00:00');
INSERT INTO `exp_espacioxplaza` VALUES (30, 28, 9, 1, 1, '2020-03-31 00:00:00', 1, '2020-03-31 00:00:00');
INSERT INTO `exp_espacioxplaza` VALUES (31, 29, 9, 1, 1, '2020-03-31 00:00:00', 1, '2020-03-31 00:00:00');
INSERT INTO `exp_espacioxplaza` VALUES (32, 30, 9, 1, 1, '2020-03-31 00:00:00', 1, '2020-03-31 00:00:00');
INSERT INTO `exp_espacioxplaza` VALUES (33, 31, 9, 1, 1, '2020-03-31 00:00:00', 1, '2020-03-31 00:00:00');
INSERT INTO `exp_espacioxplaza` VALUES (34, 32, 9, 1, 1, '2020-03-31 00:00:00', 1, '2020-03-31 00:00:00');
INSERT INTO `exp_espacioxplaza` VALUES (54, 33, 9, 1, 1, '2020-03-31 00:00:00', 1, '2020-03-31 00:00:00');
INSERT INTO `exp_espacioxplaza` VALUES (56, 34, 9, 1, 1, '2020-03-31 00:00:00', 1, '2020-03-31 00:00:00');
INSERT INTO `exp_espacioxplaza` VALUES (62, 3, 4, 1, 1, '2020-08-31 11:06:32', 1, '2020-08-31 11:06:32');
INSERT INTO `exp_espacioxplaza` VALUES (63, 5, 1, 1, 1, '2020-08-31 11:07:22', 1, '2020-08-31 11:07:22');
INSERT INTO `exp_espacioxplaza` VALUES (65, 1, 1, 1, 1, '2020-09-01 22:14:53', 1, '2020-09-01 22:14:53');
INSERT INTO `exp_espacioxplaza` VALUES (67, 9, 3, 1, 1, '2020-09-02 10:11:54', 1, '2020-09-02 10:11:54');
INSERT INTO `exp_espacioxplaza` VALUES (68, 10, 4, 1, 1, '2020-09-02 10:13:03', 1, '2020-09-02 10:13:03');
INSERT INTO `exp_espacioxplaza` VALUES (69, 4, 1, 1, 1, '2020-09-02 10:14:18', 1, '2020-09-02 10:14:18');
INSERT INTO `exp_espacioxplaza` VALUES (70, 17, 8, 1, 1, '2020-09-02 11:04:27', 1, '2020-09-02 11:04:27');
INSERT INTO `exp_espacioxplaza` VALUES (71, 6, 4, 1, 5, '2020-09-02 14:40:24', 5, '2020-09-02 14:40:24');
INSERT INTO `exp_espacioxplaza` VALUES (74, 77, 1, 1, 1, '2022-07-11 15:21:20', 1, '2022-07-11 15:21:20');
INSERT INTO `exp_espacioxplaza` VALUES (75, 2, 14, 1, 65, '2025-01-20 17:57:22', 65, '2025-01-20 17:57:22');
INSERT INTO `exp_espacioxplaza` VALUES (77, 72, 4, 1, 1, '2025-07-22 09:54:45', 1, '2025-07-22 09:54:45');
INSERT INTO `exp_espacioxplaza` VALUES (78, 80, 4, 1, 1, '2025-11-13 10:11:33', 1, '2025-11-13 10:11:33');
INSERT INTO `exp_espacioxplaza` VALUES (79, 81, 4, 1, 1, '2025-11-13 10:11:33', 1, '2025-11-13 10:11:33');

-- ----------------------------
-- Table structure for exr_estimacionxarticulo
-- ----------------------------
CREATE TABLE `exr_estimacionxarticulo`  (
  `exr_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Codigo principal de relacion estimaciones por articulo',
  `exr_id_esm` int(11) NOT NULL COMMENT 'Codigo principal de estimacion ',
  `exr_id_axo` int(11) NOT NULL COMMENT 'Codigo de articulo de la orden',
  `exr_cantidad` decimal(19, 6) NOT NULL COMMENT 'Cantidad de veces que se aplica la estimacion ',
  `exr_precio` decimal(19, 6) NOT NULL COMMENT 'Precio de la estimacion ',
  `exr_monto_calculo` decimal(19, 6) NULL DEFAULT NULL COMMENT 'Monto que se tomo para cálculo (en caso de aplicar porcentaje)',
  `exr_estado` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'Estado del Registro (1:Activo, 0:Inactivo)',
  `exr_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `exr_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `exr_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `exr_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`exr_id`) USING BTREE,
  INDEX `fk_exr_id_esm`(`exr_id_esm` ASC) USING BTREE,
  INDEX `fk_exr_id_axo`(`exr_id_axo` ASC) USING BTREE,
  CONSTRAINT `fk_exr_id_axo` FOREIGN KEY (`exr_id_axo`) REFERENCES `axo_articuloxorden` (`axo_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_exr_id_esm` FOREIGN KEY (`exr_id_esm`) REFERENCES `esm_estimacion` (`esm_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Estimaciones por articulo de orden ' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of exr_estimacionxarticulo
-- ----------------------------
INSERT INTO `exr_estimacionxarticulo` VALUES (1, 1, 87, 10.000000, 0.950000, 9.500000, 1, 1, '2024-10-23 16:45:38', 1, '2024-10-23 16:45:38');
INSERT INTO `exr_estimacionxarticulo` VALUES (2, 1, 91, 100.000000, 0.950000, 95.000000, 1, 1, '2025-02-24 09:52:32', 1, '2025-02-24 09:57:47');

-- ----------------------------
-- Table structure for exs_encuestaxsucursal
-- ----------------------------
CREATE TABLE `exs_encuestaxsucursal`  (
  `exs_id` int(11) NOT NULL AUTO_INCREMENT,
  `exs_id_enc` int(11) NOT NULL COMMENT 'Llave principal de encuesta',
  `exs_id_suc` int(11) NOT NULL COMMENT 'Llave principal de la sucursal',
  `exs_estado` int(11) NOT NULL COMMENT '1=activo, 0=inactivo',
  `exs_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `exs_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `exs_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `exs_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`exs_id`) USING BTREE,
  INDEX `fk_exs_id_enc`(`exs_id_enc` ASC) USING BTREE,
  INDEX `fk_exs_id_suc`(`exs_id_suc` ASC) USING BTREE,
  CONSTRAINT `fk_exs_id_enc` FOREIGN KEY (`exs_id_enc`) REFERENCES `enc_encuesta` (`enc_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_exs_id_suc` FOREIGN KEY (`exs_id_suc`) REFERENCES `suc_sucursal` (`suc_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Encuesta por sucursal' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of exs_encuestaxsucursal
-- ----------------------------

-- ----------------------------
-- Table structure for exs_enfermedaxsolicitante
-- ----------------------------
CREATE TABLE `exs_enfermedaxsolicitante`  (
  `exs_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de enfermedad por solicitante',
  `exs_id_sle` int(11) NOT NULL COMMENT 'Llave principal de Solicitante Empleo',
  `exs_id_enf` int(11) NOT NULL COMMENT 'Llave principal enfermedad.',
  `exs_estado` int(11) NOT NULL DEFAULT 1 COMMENT 'Estado del Registro, 0=inactivo, 1=activo',
  `exs_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `exs_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `exs_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `exs_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`exs_id`) USING BTREE,
  INDEX `fk_exs_id_enf`(`exs_id_enf` ASC) USING BTREE,
  INDEX `fk_exs_id_sle`(`exs_id_sle` ASC) USING BTREE,
  CONSTRAINT `fk_exs_id_enf` FOREIGN KEY (`exs_id_enf`) REFERENCES `enf_enfermedad` (`enf_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_exs_id_sle` FOREIGN KEY (`exs_id_sle`) REFERENCES `sle_solicitante_empleo` (`sle_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci COMMENT = 'tabla que almacena n enfermedades de un solicitante empleo' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of exs_enfermedaxsolicitante
-- ----------------------------

-- ----------------------------
-- Table structure for ext_evaluacionxpuesto
-- ----------------------------
CREATE TABLE `ext_evaluacionxpuesto`  (
  `ext_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave principal de evaluación por puesto',
  `ext_id_pto` int(11) NOT NULL COMMENT 'Llave principal de puesto',
  `ext_id_eva` int(11) NOT NULL COMMENT 'Llave principal de evaluación',
  `ext_fecha` datetime NOT NULL COMMENT 'Fecha asignación',
  `ext_estado` int(11) NOT NULL DEFAULT 1 COMMENT 'Estado del Registro, 0=inactivo, 1=activo',
  `ext_fecha_creacion` datetime NOT NULL COMMENT 'Auditoria',
  `ext_usu_creacion` int(11) NOT NULL COMMENT 'Auditoria',
  `ext_usu_modificacion` int(11) NOT NULL COMMENT 'Auditoria',
  `ext_fecha_modificacion` datetime NOT NULL COMMENT 'Auditoria',
  PRIMARY KEY (`ext_id`) USING BTREE,
  INDEX `fk_ext_id_eva`(`ext_id_eva` ASC) USING BTREE,
  INDEX `fk_ext_id_pto`(`ext_id_pto` ASC) USING BTREE,
  CONSTRAINT `fk_ext_id_eva` FOREIGN KEY (`ext_id_eva`) REFERENCES `eva_evaluacion` (`eva_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_ext_id_pto` FOREIGN KEY (`ext_id_pto`) REFERENCES `pto_puesto` (`pto_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Evaluación por puesto' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of ext_evaluacionxpuesto
-- ----------------------------
INSERT INTO `ext_evaluacionxpuesto` VALUES (1, 2, 1, '2024-02-14 09:35:07', 1, '2024-02-14 09:35:07', 1, 1, '2024-02-14 09:35:07');
INSERT INTO `ext_evaluacionxpuesto` VALUES (2, 1, 1, '2024-02-14 09:35:13', 1, '2024-02-14 09:35:13', 1, 1, '2024-02-14 09:35:13');
INSERT INTO `ext_evaluacionxpuesto` VALUES (3, 4, 1, '2024-02-14 09:35:18', 1, '2024-02-14 09:35:18', 1, 1, '2024-02-14 09:35:18');
INSERT INTO `ext_evaluacionxpuesto` VALUES (4, 10, 1, '2024-02-14 09:43:00', 1, '2024-02-14 09:43:00', 1, 1, '2024-02-14 09:43:00');
INSERT INTO `ext_evaluacionxpuesto` VALUES (5, 4, 2, '2024-02-21 10:39:56', 1, '2024-02-21 10:39:56', 1, 1, '2024-02-21 10:39:56');

-- ----------------------------
-- Table structure for fac_factura
-- ----------------------------
CREATE TABLE `fac_factura`  (
  `fac_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Llave  principal de facturacion',
  `fac_id_cli` int(11) NOT NULL COMMENT 'Codigo de cliente',
  `fac_id_ven` int(11) NULL DEFAULT NULL COMMENT 'Codigo de vendedor',
  `fac_id_cof` int(11) NOT NULL COMMENT 'llave primaria - Correlativo factura',
  `fac_id_suc` int(11) NULL DEFAULT NULL COMMENT 'Identificador de la sucursal, en donde se generó la factura',
  `fac_id_tpg` int(11) NULL DEFAULT NULL COMMENT 'Llave principal - tipo de pago',
  `fac_id_cot` int(11) NULL DEFAULT NULL COMMENT 'Codigo de la cotizacion',
  `fac_id_tif` int(11) NULL DEFAULT NULL COMMENT 'Llave pricnipal de tipo de factura',
  `fac_id_are` int(11) NULL DEFAULT NULL COMMENT 'Id de Area',
  `fac_id_cec` int(11) NULL DEFAULT NULL COMMENT 'llave primaria centro de costos',
  `fac_id_pct` int(11) NULL DEFAULT NULL COMMENT 'Llave principal  - Partida contable',
  `fac_id_ord` int(11) NULL DEFAULT NULL COMMENT 'Codigo de la orden',
  `fac_id_uxc` int(11) NULL DEFAULT NULL COMMENT 'Llave principal de usuario x caja (quien realizo la factura)',
  `fac_id_scl` int(11) NULL DEFAULT NULL COMMENT 'Identificador de la sucursal cliente',
  `fac_id_pcl` int(11) NULL DEFAULT NULL COMMENT 'Llave principal de proyecto por cliente',
  `fac_id_frp` int(11) NULL DEFAULT NULL COMMENT 'Llave principal de forma de pago',
  `fac_id_frv` int(11) NULL DEFAULT NULL COMMENT 'Llave principal de forma de envio',
  `fac_id_ttr` int(11) NULL DEFAULT NULL COMMENT 'Llave principal de tipo de transporte',
  `fac_id_pct_anulacion` int(11) NULL DEFAULT NULL COMMENT 'Llave principal  - Partida contable (generada a partida contable al anular factura)',
  `fac_id_arf` int(11) NULL DEFAULT NULL COMMENT 'Llave principal de areas de facturación',
  `fac_id_cfr` int(11) NULL DEFAULT NULL COMMENT 'LLave principal de Configuracion rifa',
  `fac_id_origen_devolucion` int(11) NULL DEFAULT NULL COMMENT 'Llave principal de la factura que origino la devolución',
  `fac_id_fac_debito` int(11) NULL DEFAULT NULL COMMENT 'Llave  principal de facturacion (id de factura padre a quien se le esta debitando)',
  `fac_id_emr` int(11) NULL DEFAULT NULL COMMENT 'Llave principal de empresa',
  `fac_id_fac_credito` int(11) NULL DEFAULT NULL COMMENT 'Llave  principal de facturacion (id de factura padre a quien se le esta haciendo un credito)',
  `fac_numero` int(11) NOT NULL COMMENT 'numero de factura  interna',
  `fac_fecha_fact` datetime NOT NULL COMMENT 'Fecha de factura',
  `fac_fecha_cont` datetime NOT NULL COMMENT 'Fecha de contabilizacion',
  `fac_documento_cliente` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Documento cliente factura',
  `fac_nombre_factura` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Nombre de factura',
  `fac_observacion` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Observaciones de factura',
  `fac_tipo_facturacion` int(11) NULL DEFAULT NULL COMMENT 'Tipo de facturacion 1=electronica | 0/null = manual',
  `fac_codigo_generacion` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Codigo generacion factura electronica',
  `fac_numero_control` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Numero de control de factura electronica',
  `fac_sello_recepcion` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Sello de recepcion factura electronica',
  `fac_json_factura_electronica` mediumtext CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'json que se envia a MH',
  `fac_observaciones_factura_electronica` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'obervaciones / codigos de error de factruracion electronica',
  `fac_numero_electronico_interno` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Id interno para reconcer el dte en servicio de facturacion SAT',
  `fac_comprobante_dte` tinyint(4) NULL DEFAULT 0 COMMENT 'Flag para validar la recepcion de comprobante MH fact elect',
  `fac_transmitida_correo` tinyint(4) NULL DEFAULT 0 COMMENT 'Flag para validar si se envio por correo al receptor',
  `fac_referencia_externa` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'ID o CODIGO para asociar el numero de la factrura de terceros',
  `fac_retencion_abono` tinyint(4) NULL DEFAULT NULL COMMENT 'se ha aplicado alguna retención desde abono a factura 1=si, 0=no',
  `fac_total_retencion` decimal(19, 2) NULL DEFAULT NULL COMMENT 'total de retención',
  `fac_subtotal` decimal(19, 2) NOT NULL COMMENT 'Subtotal de facturacion',
  `fac_descuento` decimal(19, 6) NOT NULL COMMENT 'Monto de descuento aplicado',
  `fac_impuesto` decimal(19, 2) NOT NULL COMMENT 'Monto total de impuestos',
  `fac_total` decimal(19, 2) NOT NULL COMMENT 'Total de facturacion',
  `fac_id_maf` int(11) NULL DEFAULT NULL COMMENT 'Llave con motivo de anulacion',
  `fac_motivo_anulacion` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'motivo del porque se anulara una factura.',
  `fac_fecha_anulacion` datetime NULL DEFAULT NULL COMMENT 'Fecha de anulacion de factura',
  `fac_comentario_anula_fact_elect` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Comentarios recibidos',
  `fac_sello_anulacion_fact_elect` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT '\'Sello de recepción de anulación facturación electrónica\'',
  `fac_monto_pendiente` decimal(19, 2) NULL DEFAULT NULL COMMENT 'Monto pendiente de pago',
  `fac_monto_abono` decimal(19, 2) NULL DEFAULT NULL COMMENT 'Monto abonado a la factura',
  `fac_procesada_inventario` tinyint(4) NULL DEFAULT NULL COMMENT '1= se aplico la descarga a inventaio, 0=  no se ha aplicado la descarga a inventario',
  `fac_fecha_vencimiento` datetime NOT NULL COMMENT 'Fecha de vencimiento factura',
  `fac_tipo` int(11) NULL DEFAULT NULL COMMENT '(1- Factura Articulos, 2- Factura de servicios)',
  `fac_generacion_partida` int(11) NULL DEFAULT NULL COMMENT '1= generada a detalle (uno a uno), 2 = Generada en consolidado (partida muchas facturas), null = aun no creada partida',
  `fac_generacion_masiva` int(11) NULL DEFAULT NULL COMMENT '1= fue generada de forma masiva, 0 o null = No fue generada de forma masiva',
  `fac_fecha_entrega` datetime NULL DEFAULT NULL COMMENT 'Fecha de Entrega del producto facturado',
  `fac_orden_compra` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Conceptos de Orden de compra o licitaciones',
  `fac_id_inr` int(11) NULL DEFAULT NULL COMMENT 'Lave de INCOTERMS',
  `fac_incoterm` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'valor incoterm',
  `fac_fecha_devolucion` datetime NULL DEFAULT NULL COMMENT 'Fecha de devolucion de factura ',
  `fac_dui_cliente_factura` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Se guardará el dui cuando se trate de clientes varios y se factura un valor neto determinado por parametro',
  `fac_nit_cliente_factura` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Se guardará el nit cuando se trate de clientes varios y se factura un valor neto determinado por parametro',
  `fac_residencia_cliente_factura` varchar(300) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Se guardará la residencia cuando se trate de clientes varios y se factura un valor neto determinado por parametro',
  `fac_aplica_domicilio` int(11) NULL DEFAULT 0 COMMENT 'facturado para enviar a domicilio 1=si, 0 o null = No',
  `fac_entregado_domicilio` int(11) NULL DEFAULT 0 COMMENT 'se realizo el servicio a domicilio 1=si, 0 o null = No',
  `fac_fecha_domicilio` datetime NULL DEFAULT NULL COMMENT 'Fecha de entrega a domicilio',
  `fac_observacion_domicilio` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'observación de factura a domicilio',
  `fac_anticipo` int(11) NULL DEFAULT 0 COMMENT 'factura marcada como anticipo 1=si, 0 o null = No',
  `fac_monto_anticipo` decimal(19, 2) NULL DEFAULT NULL COMMENT 'Monto de factura como anticipo',
  `fac_monto_usado_anticipo` decimal(19, 2) NULL DEFAULT NULL COMMENT 'Monto usado del anticipo',
  `fac_monto_saldo_anticipo` decimal(19, 2) NULL DEFAULT NULL COMMENT 'Monto saldo pendiente del anticipo',
  `fac_aplica_seguimiento_anulacion` int(11) NULL DEFAULT NULL COMMENT 'Aplica seguimiento de anulacion 1=si, 0 o null = 0',
  `fac_monto_pendiente_anulacion` decimal(19, 2) NULL DEFAULT NULL COMMENT 'Monto pendiente de anulacion AFTER fac_monto_saldo_anticipo',
  `fac_monto_abonado_anulacion` decimal(19, 2) NULL DEFAULT NULL COMMENT 'Monto monto abonado de anulacion',
  `fac_procesada_comision_venta` int(11) NULL DEFAULT NULL COMMENT 'Factura procesada para comision de venta 1=si, 0 o null = no',
  `fac_procesada_comision_cobro` int(11) NULL DEFAULT NULL COMMENT 'Factura procesada para comision de cobro 1=si, 0 o null = no',
  `fac_fecha_pagada` datetime NULL DEFAULT NULL COMMENT 'Fecha en que se finalizo la factura como pagada.',
  `fac_imprime_cero` int(11) NULL DEFAULT 0 COMMENT 'imprime valores en cero 1=si, o o null =no',
  `fac_id_usu_anulacion` int(11) NULL DEFAULT NULL COMMENT 'Id usuario que anula la factura',
  `fac_fecha_prox_cobro` datetime NULL DEFAULT NULL COMMENT 'Fecha del próximo cobro que se le realizará a la deuda de la factura',
  `fac_fecha_seguimiento_cobro` datetime NULL DEFAULT NULL COMMENT 'Fecha en que se hizo seguimiento de proximo pago',
  `fac_comentario_seguimiento` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT NULL COMMENT 'Comentarios del ultimo seguimiento de cobro',
  `fac_estado` int(11) NOT NULL COMMENT 'Estado de registro  (0- Anulada, 1- Pendiente, 2- Pagado) ',
  `fac_usu_mod` int(11) NOT NULL COMMENT 'Auditoria',
  `fac_fecha_mod` datetime NOT NULL COMMENT 'Auditoria',
  `fac_fecha_crea` datetime NOT NULL COMMENT 'auditoria',
  `fac_usu_crea` int(11) NOT NULL COMMENT 'auditoria',
  PRIMARY KEY (`fac_id`) USING BTREE,
  UNIQUE INDEX `uk_fac_correlativo`(`fac_id_cof` ASC, `fac_numero` ASC) USING BTREE,
  INDEX `fk_fac_id_cli`(`fac_id_cli` ASC) USING BTREE,
  INDEX `fk_fac_id_ven`(`fac_id_ven` ASC) USING BTREE,
  INDEX `fk_fac_id_are`(`fac_id_are` ASC) USING BTREE,
  INDEX `fk_fac_id_cec`(`fac_id_cec` ASC) USING BTREE,
  INDEX `fk_fac_id_cot`(`fac_id_cot` ASC) USING BTREE,
  INDEX `fk_fac_id_tif`(`fac_id_tif` ASC) USING BTREE,
  INDEX `fk_fac_id_tpg`(`fac_id_tpg` ASC) USING BTREE,
  INDEX `fk_fac_id_suc`(`fac_id_suc` ASC) USING BTREE,
  INDEX `fk_fac_id_pct`(`fac_id_pct` ASC) USING BTREE,
  INDEX `fk_fac_id_ord`(`fac_id_ord` ASC) USING BTREE,
  INDEX `fk_fac_id_uxc`(`fac_id_uxc` ASC) USING BTREE,
  INDEX `fk_fac_id_scl`(`fac_id_scl` ASC) USING BTREE,
  INDEX `fk_fac_id_pcl`(`fac_id_pcl` ASC) USING BTREE,
  INDEX `fk_fac_id_frp`(`fac_id_frp` ASC) USING BTREE,
  INDEX `fk_fac_id_frv`(`fac_id_frv` ASC) USING BTREE,
  INDEX `fk_fac_id_ttr`(`fac_id_ttr` ASC) USING BTREE,
  INDEX `fk_fac_id_pct_anulacion`(`fac_id_pct_anulacion` ASC) USING BTREE,
  INDEX `fk_fac_id_arf`(`fac_id_arf` ASC) USING BTREE,
  INDEX `fk_fac_id_cfr`(`fac_id_cfr` ASC) USING BTREE,
  INDEX `fk_fac_id_emr`(`fac_id_emr` ASC) USING BTREE,
  INDEX `fk_fac_id_maf`(`fac_id_maf` ASC) USING BTREE,
  CONSTRAINT `fk_fac_id_are` FOREIGN KEY (`fac_id_are`) REFERENCES `are_area` (`are_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_fac_id_arf` FOREIGN KEY (`fac_id_arf`) REFERENCES `arf_area_factura` (`arf_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_fac_id_cec` FOREIGN KEY (`fac_id_cec`) REFERENCES `cec_centro_costo` (`cec_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_fac_id_cfr` FOREIGN KEY (`fac_id_cfr`) REFERENCES `crf_configuracion_rifa` (`crf_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_fac_id_cli` FOREIGN KEY (`fac_id_cli`) REFERENCES `cli_cliente` (`cli_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `fk_fac_id_cof` FOREIGN KEY (`fac_id_cof`) REFERENCES `cof_correlativo_factura` (`cof_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_fac_id_cot` FOREIGN KEY (`fac_id_cot`) REFERENCES `cot_cotizacion` (`cot_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_fac_id_emr` FOREIGN KEY (`fac_id_emr`) REFERENCES `emr_empresa` (`emr_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_fac_id_frp` FOREIGN KEY (`fac_id_frp`) REFERENCES `frp_forma_pago` (`frp_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_fac_id_frv` FOREIGN KEY (`fac_id_frv`) REFERENCES `frv_forma_envio` (`frv_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_fac_id_maf` FOREIGN KEY (`fac_id_maf`) REFERENCES `maf_motivo_anulacion_factura` (`maf_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_fac_id_ord` FOREIGN KEY (`fac_id_ord`) REFERENCES `ord_orden` (`ord_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_fac_id_pcl` FOREIGN KEY (`fac_id_pcl`) REFERENCES `pcl_proyecto_cliente` (`pcl_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_fac_id_pct` FOREIGN KEY (`fac_id_pct`) REFERENCES `pct_partida_contable` (`pct_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_fac_id_pct_anulacion` FOREIGN KEY (`fac_id_pct_anulacion`) REFERENCES `pct_partida_contable` (`pct_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_fac_id_scl` FOREIGN KEY (`fac_id_scl`) REFERENCES `scl_sucursal_cliente` (`scl_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_fac_id_suc` FOREIGN KEY (`fac_id_suc`) REFERENCES `suc_sucursal` (`suc_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_fac_id_tif` FOREIGN KEY (`fac_id_tif`) REFERENCES `tif_tipo_factura` (`tif_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_fac_id_tpg` FOREIGN KEY (`fac_id_tpg`) REFERENCES `tpg_tipo_pago` (`tpg_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_fac_id_ttr` FOREIGN KEY (`fac_id_ttr`) REFERENCES `ttr_tipo_transporte` (`ttr_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_fac_id_uxc` FOREIGN KEY (`fac_id_uxc`) REFERENCES `uxc_usuarioxcaja` (`uxc_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_fac_id_ven` FOREIGN KEY (`fac_id_ven`) REFERENCES `ven_vendedor` (`ven_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB AUTO_INCREMENT = 379 CHARACTER SET = utf8mb3 COLLATE = utf8mb3_general_ci COMMENT = 'Tabla de facturacion ' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of fac_factura
-- ----------------------------
INSERT INTO `fac_factura` VALUES (1, 1, 1, 11, 1, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 1, '2019-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 5000.00, 0.000000, 650.00, 5650.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (2, 2, 2, 11, 1, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 2, '2019-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 14000.00, 0.000000, 1820.00, 15820.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (3, 3, 3, 11, 1, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 3, '2019-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 24500.00, 0.000000, 3185.00, 27685.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 0.00, 2825.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2022-11-16 09:52:20', 0, NULL, NULL, NULL, NULL, 1, 1, '2022-11-16 09:52:20', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (4, 4, 4, 11, 1, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 4, '2019-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 30400.00, 0.000000, 3952.00, 34352.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (5, 5, 1, 11, 1, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 5, '2019-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 27000.00, 0.000000, 3510.00, 30510.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (6, 6, 2, 11, 1, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 6, '2019-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 36750.00, 0.000000, 4777.50, 41527.50, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (7, 7, 3, 11, 2, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 7, '2019-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 53125.00, 0.000000, 6906.25, 60031.25, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (8, 8, 4, 11, 3, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 8, '2019-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 35625.00, 0.000000, 4631.25, 40256.25, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (9, 9, 1, 11, 4, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 9, '2019-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 102000.00, 0.000000, 13260.00, 115260.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (10, 10, 2, 11, 5, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 10, '2019-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 138750.00, 0.000000, 18037.50, 156787.50, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (11, 1, 3, 11, 1, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 11, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 5000.00, 0.000000, 650.00, 5650.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (12, 2, 4, 11, 2, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 12, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 14000.00, 0.000000, 1820.00, 15820.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (13, 3, 1, 11, 3, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 13, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 24500.00, 0.000000, 3185.00, 27685.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 0.00, 2825.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2022-11-16 09:52:20', 0, NULL, NULL, NULL, NULL, 1, 1, '2022-11-16 09:52:20', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (14, 4, 2, 11, 4, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 14, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 30400.00, 0.000000, 3952.00, 34352.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (15, 5, 3, 11, 5, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 15, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 27000.00, 0.000000, 3510.00, 30510.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (16, 6, 4, 11, 1, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 16, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 36750.00, 0.000000, 4777.50, 41527.50, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (17, 7, 1, 11, 2, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 17, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 53125.00, 0.000000, 6906.25, 60031.25, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (18, 8, 2, 11, 3, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 18, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 35625.00, 0.000000, 4631.25, 40256.25, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (19, 9, 3, 11, 4, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 19, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 102000.00, 0.000000, 13260.00, 115260.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (20, 10, 4, 11, 5, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 20, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 138750.00, 0.000000, 18037.50, 156787.50, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (21, 1, 1, 11, 1, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 21, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 5000.00, 0.000000, 650.00, 5650.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (22, 2, 2, 11, 2, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 22, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 14000.00, 0.000000, 1820.00, 15820.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (23, 3, 3, 11, 3, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 23, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 24500.00, 0.000000, 3185.00, 27685.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (24, 4, 4, 11, 4, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 24, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 30400.00, 0.000000, 3952.00, 34352.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (25, 5, 1, 11, 5, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 25, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 27000.00, 0.000000, 3510.00, 30510.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (26, 6, 2, 11, 1, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 26, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 36750.00, 0.000000, 4777.50, 41527.50, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (27, 7, 3, 11, 2, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 27, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 53125.00, 0.000000, 6906.25, 60031.25, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (28, 8, 4, 11, 3, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 28, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 35625.00, 0.000000, 4631.25, 40256.25, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (29, 9, 1, 11, 4, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 29, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 102000.00, 0.000000, 13260.00, 115260.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (30, 10, 2, 11, 5, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 30, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 138750.00, 0.000000, 18037.50, 156787.50, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (31, 1, 3, 11, 1, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 31, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 5000.00, 0.000000, 650.00, 5650.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (32, 2, 4, 11, 2, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 32, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 14000.00, 0.000000, 1820.00, 15820.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (33, 3, 1, 11, 3, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 33, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 24500.00, 0.000000, 3185.00, 27685.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (34, 4, 2, 11, 4, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 34, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 30400.00, 0.000000, 3952.00, 34352.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (35, 5, 3, 11, 5, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 35, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 27000.00, 0.000000, 3510.00, 30510.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (36, 6, 4, 11, 1, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 36, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 36750.00, 0.000000, 4777.50, 41527.50, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (37, 7, 1, 11, 2, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 37, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 53125.00, 0.000000, 6906.25, 60031.25, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (38, 8, 2, 11, 3, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 38, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 35625.00, 0.000000, 4631.25, 40256.25, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (39, 9, 3, 11, 4, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 39, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 102000.00, 0.000000, 13260.00, 115260.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (40, 10, 4, 11, 5, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 40, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 138750.00, 0.000000, 18037.50, 156787.50, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (41, 1, 1, 11, 1, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 41, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 5000.00, 0.000000, 650.00, 5650.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (42, 2, 2, 11, 2, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 42, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 14000.00, 0.000000, 1820.00, 15820.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (43, 3, 3, 11, 3, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 43, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 24500.00, 0.000000, 3185.00, 27685.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (44, 4, 4, 11, 4, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 44, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 30400.00, 0.000000, 3952.00, 34352.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (45, 5, 1, 11, 5, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 45, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 27000.00, 0.000000, 3510.00, 30510.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (46, 6, 2, 11, 1, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 46, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 36750.00, 0.000000, 4777.50, 41527.50, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (47, 7, 3, 11, 2, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 47, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 53125.00, 0.000000, 6906.25, 60031.25, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (48, 8, 4, 11, 3, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 48, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 35625.00, 0.000000, 4631.25, 40256.25, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (49, 9, 1, 11, 4, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 49, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 102000.00, 0.000000, 13260.00, 115260.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (50, 10, 2, 11, 5, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 50, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 138750.00, 0.000000, 18037.50, 156787.50, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (51, 1, 1, 11, 1, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 51, '2019-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 7000.00, 0.000000, 910.00, 7910.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (52, 2, 2, 11, 2, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 52, '2019-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 19000.00, 0.000000, 2470.00, 21470.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (53, 3, 3, 11, 3, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 53, '2019-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 31500.00, 0.000000, 4095.00, 35595.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (54, 4, 4, 11, 4, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 54, '2019-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 38400.00, 0.000000, 4992.00, 43392.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (55, 5, 5, 11, 5, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 55, '2019-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 33000.00, 0.000000, 4290.00, 37290.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (56, 6, 6, 11, 1, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 56, '2019-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 43750.00, 0.000000, 5687.50, 49437.50, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (57, 7, 7, 11, 2, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 57, '2019-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 61625.00, 0.000000, 8011.25, 69636.25, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (58, 8, 8, 11, 3, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 58, '2019-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 45125.00, 0.000000, 5866.25, 50991.25, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (59, 9, 9, 11, 4, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 59, '2019-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 114000.00, 0.000000, 14820.00, 128820.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (60, 10, 10, 11, 5, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 60, '2019-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 153750.00, 0.000000, 19987.50, 173737.50, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (61, 1, 1, 11, 1, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 61, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 7000.00, 0.000000, 910.00, 7910.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (62, 2, 2, 11, 2, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 62, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 19000.00, 0.000000, 2470.00, 21470.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (63, 3, 3, 11, 3, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 63, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 31500.00, 0.000000, 4095.00, 35595.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (64, 4, 4, 11, 4, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 64, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 38400.00, 0.000000, 4992.00, 43392.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (65, 5, 5, 11, 5, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 65, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 33000.00, 0.000000, 4290.00, 37290.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (66, 6, 6, 11, 1, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 66, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 43750.00, 0.000000, 5687.50, 49437.50, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (67, 7, 7, 11, 2, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 67, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 0.00, 0.000000, 8011.25, 0.00, 3, 'Duplicado de facturas', '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (68, 8, 8, 11, 3, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 68, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 45125.00, 0.000000, 5866.25, 50991.25, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (69, 9, 9, 11, 4, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 69, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 114000.00, 0.000000, 14820.00, 128820.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (70, 10, 10, 11, 5, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 70, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 153750.00, 0.000000, 19987.50, 173737.50, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (71, 1, 1, 11, 1, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 71, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 7000.00, 0.000000, 910.00, 7910.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (72, 2, 2, 11, 2, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 72, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 19000.00, 0.000000, 2470.00, 21470.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (73, 3, 3, 11, 3, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 73, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 31500.00, 0.000000, 4095.00, 35595.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (74, 4, 4, 11, 4, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 74, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 38400.00, 0.000000, 4992.00, 43392.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (75, 5, 5, 11, 5, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 75, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 33000.00, 0.000000, 4290.00, 37290.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (76, 6, 6, 11, 1, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 76, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 43750.00, 0.000000, 5687.50, 49437.50, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (77, 7, 7, 11, 2, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 77, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 61625.00, 0.000000, 8011.25, 69636.25, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (78, 8, 8, 11, 3, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 78, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 45125.00, 0.000000, 5866.25, 50991.25, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (79, 9, 9, 11, 4, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 79, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 114000.00, 0.000000, 14820.00, 128820.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (80, 10, 10, 11, 5, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 80, '2020-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 153750.00, 0.000000, 19987.50, 173737.50, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (81, 1, 1, 11, 1, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 81, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 7000.00, 0.000000, 910.00, 7910.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (82, 2, 2, 11, 2, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 82, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 19000.00, 0.000000, 2470.00, 21470.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (83, 3, 3, 11, 3, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 83, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 31500.00, 0.000000, 4095.00, 35595.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (84, 4, 4, 11, 4, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 84, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 38400.00, 0.000000, 4992.00, 43392.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (85, 5, 5, 11, 5, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 85, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 33000.00, 0.000000, 4290.00, 37290.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (86, 6, 6, 11, 1, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 86, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 43750.00, 0.000000, 5687.50, 49437.50, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (87, 7, 7, 11, 2, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 87, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 61625.00, 0.000000, 8011.25, 69636.25, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (88, 8, 8, 11, 3, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 88, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 45125.00, 0.000000, 5866.25, 50991.25, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (89, 9, 9, 11, 4, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 89, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 114000.00, 0.000000, 14820.00, 128820.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (90, 10, 10, 11, 5, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 90, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 153750.00, 0.000000, 19987.50, 173737.50, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (91, 1, 1, 11, 1, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 91, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 7000.00, 0.000000, 910.00, 7910.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (92, 2, 2, 11, 2, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 92, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 19000.00, 0.000000, 2470.00, 21470.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (93, 3, 3, 11, 3, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 93, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 31500.00, 0.000000, 4095.00, 35595.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (94, 4, 4, 11, 4, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 94, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 38400.00, 0.000000, 4992.00, 43392.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (95, 5, 5, 11, 5, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 95, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 33000.00, 0.000000, 4290.00, 37290.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (96, 6, 6, 11, 1, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 96, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 43750.00, 0.000000, 5687.50, 49437.50, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (97, 7, 7, 11, 2, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 97, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 61625.00, 0.000000, 8011.25, 69636.25, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (98, 8, 8, 11, 3, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 98, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 45125.00, 0.000000, 5866.25, 50991.25, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (99, 9, 9, 11, 4, 1, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 99, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 114000.00, 0.000000, 14820.00, 128820.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (100, 10, 10, 11, 5, 2, NULL, 1, NULL, 1, NULL, NULL, 151, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 100, '2021-01-01 00:00:00', '2021-05-06 00:00:00', '130953-9', 'Cliente', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 153750.00, 0.000000, 19987.50, 173737.50, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2825.00, 0.00, NULL, '2021-05-06 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2021-09-28 14:59:35', '2021-09-28 14:59:35', 1);
INSERT INTO `fac_factura` VALUES (101, 21, 9, 12, 1, 2, NULL, 1, NULL, 1, NULL, NULL, 156, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 101, '2023-01-13 10:15:45', '2023-01-13 00:00:00', NULL, 'Jorge Alfredo Cortez', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 30.00, 0.000000, 3.90, 33.90, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 0.00, 33.90, NULL, '2023-01-13 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2023-01-13 10:15:45', '2023-01-13 10:15:45', 1);
INSERT INTO `fac_factura` VALUES (102, 22, 6, 12, 1, 2, NULL, 1, NULL, 1, NULL, NULL, 156, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 102, '2023-01-13 11:41:10', '2023-01-13 00:00:00', NULL, 'Raul Ernesto Colindres', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 12.00, 0.000000, 1.56, 13.56, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 13.56, 0.00, NULL, '2023-01-13 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2023-01-13 11:41:10', '2023-01-13 11:41:10', 1);
INSERT INTO `fac_factura` VALUES (103, 21, 9, 12, 1, 1, NULL, 1, NULL, 1, NULL, NULL, 156, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 103, '2023-01-13 11:42:36', '2023-01-13 00:00:00', NULL, 'Jorge Alfredo Cortez', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 180.00, 0.000000, 23.40, 203.40, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 0.00, 203.40, NULL, '2023-01-13 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2023-01-13 11:42:36', '2023-01-13 11:42:36', 1);
INSERT INTO `fac_factura` VALUES (104, 21, 9, 12, 1, 2, NULL, 1, NULL, 1, NULL, NULL, 156, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 104, '2023-01-13 11:47:21', '2023-01-13 00:00:00', NULL, 'Jorge Alfredo Cortez', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 900.00, 0.000000, 117.00, 1017.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 1017.00, 0.00, NULL, '2023-01-13 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2023-01-13 11:47:21', '2023-01-13 11:47:21', 1);
INSERT INTO `fac_factura` VALUES (105, 2, 8, 2, 1, 2, NULL, 3, NULL, 1, NULL, NULL, 159, 2, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 1285, '2023-03-09 17:41:44', '2023-03-09 00:00:00', '130953-9', 'Almacenes el porvenir', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 2.25, 0.000000, 0.29, 2.54, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2.54, 0.00, NULL, '2023-03-09 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 54, '2023-03-09 17:41:44', '2023-03-09 17:41:44', 54);
INSERT INTO `fac_factura` VALUES (106, 2, 8, 2, 1, 2, NULL, 3, NULL, 1, NULL, NULL, 159, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 1286, '2023-03-09 17:46:03', '2023-03-09 00:00:00', '130953-9', 'Almacenes el porvenir', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 2.25, 0.000000, 0.29, 2.54, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2.54, 0.00, NULL, '2023-03-09 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 54, '2023-03-09 17:46:03', '2023-03-09 17:46:03', 54);
INSERT INTO `fac_factura` VALUES (107, 26, 20, 2, 1, 2, NULL, 3, NULL, 1, NULL, NULL, 159, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 1287, '2023-03-09 19:01:33', '2023-03-09 00:00:00', NULL, 'ALMACENES SIMAN, S.A DE C.V', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 2.25, 0.000000, 0.00, 2.25, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 0.00, 2.25, NULL, '2023-03-09 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2024-06-26 11:09:30', 0, NULL, NULL, NULL, NULL, 1, 1, '2024-06-26 11:09:30', '2023-03-09 19:01:33', 54);
INSERT INTO `fac_factura` VALUES (109, 26, 20, 2, 1, 2, NULL, 3, NULL, 1, NULL, NULL, 159, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 1288, '2023-03-09 19:03:08', '2023-03-09 00:00:00', NULL, 'ALMACENES SIMAN, S.A DE C.V', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 2.25, 0.000000, 0.29, 2.54, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 0.00, 2.54, NULL, '2023-03-09 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2024-06-26 11:09:30', 0, NULL, NULL, NULL, NULL, 1, 1, '2024-06-26 11:09:30', '2023-03-09 19:03:09', 54);
INSERT INTO `fac_factura` VALUES (110, 26, 20, 2, 1, 2, NULL, 3, NULL, 1, NULL, NULL, 159, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 1289, '2023-03-09 19:06:44', '2023-03-09 00:00:00', NULL, 'ALMACENES SIMAN, S.A DE C.V', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 2.25, 0.000000, 0.29, 2.54, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 0.00, 2.54, NULL, '2023-03-09 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2024-06-26 11:09:30', 0, NULL, NULL, NULL, NULL, 1, 1, '2024-06-26 11:09:30', '2023-03-09 19:06:44', 54);
INSERT INTO `fac_factura` VALUES (111, 26, 20, 2, 1, 2, NULL, 3, NULL, 1, NULL, NULL, 159, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 1290, '2023-03-09 19:08:50', '2023-03-09 00:00:00', NULL, 'ALMACENES SIMAN, S.A DE C.V', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 2.25, 0.000000, 0.29, 2.54, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 0.00, 2.54, NULL, '2023-03-09 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2024-06-26 11:12:40', 0, NULL, NULL, NULL, NULL, 1, 1, '2024-06-26 11:12:40', '2023-03-09 19:08:50', 54);
INSERT INTO `fac_factura` VALUES (112, 26, 20, 2, 1, 2, NULL, 3, NULL, 1, NULL, NULL, 159, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 1291, '2023-03-09 11:53:16', '2023-03-09 00:00:00', NULL, 'ALMACENES SIMAN, S.A DE C.V', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 0.00, 0.000000, 0.00, 0.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 0.00, 0.00, NULL, '2023-03-09 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 54, '2023-04-14 11:53:16', '2023-04-14 11:53:16', 54);
INSERT INTO `fac_factura` VALUES (113, 17, 8, 5, 1, 2, NULL, 1, NULL, 1, NULL, NULL, 162, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 1, '2023-04-25 14:13:52', '2023-04-25 00:00:00', '3334-0', 'Tienda mayoreo de lacteos', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 5000.00, 0.000000, 650.00, 5650.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 5650.00, 0.00, NULL, '2023-04-25 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 54, '2023-04-25 14:13:52', '2023-04-25 14:13:52', 54);
INSERT INTO `fac_factura` VALUES (114, 26, 20, 2, 1, 2, NULL, 3, NULL, 1, NULL, NULL, 162, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 1292, '2023-04-25 15:17:04', '2023-03-01 00:00:00', NULL, 'ALMACENES SIMAN, S.A DE C.V', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 250.00, 0.000000, 32.50, 282.50, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 0.00, 282.50, NULL, '2023-04-25 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2023-05-26 11:51:33', 0, NULL, NULL, NULL, NULL, 1, 1, '2023-05-26 11:51:33', '2023-04-25 15:17:04', 54);
INSERT INTO `fac_factura` VALUES (115, 17, 8, 2, 1, 1, NULL, 3, NULL, 1, NULL, NULL, 164, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 1293, '2023-05-12 08:27:05', '2023-05-12 00:00:00', '3334-0', 'Tienda mayoreo de lacteos', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 5.00, 0.000000, 0.65, 5.65, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 0.00, 5.65, NULL, '2023-05-12 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2023-05-12 08:27:05', '2023-05-12 08:27:05', 1);
INSERT INTO `fac_factura` VALUES (116, 7, 2, 5, 1, 2, NULL, 1, NULL, 1, NULL, NULL, 164, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 2, '2023-05-12 10:48:06', '2023-05-12 00:00:00', '0325-665656-565-6', 'Callejas sa de cv', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 7.50, 0.000000, 0.97, 8.48, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 0.00, 8.48, NULL, '2023-05-13 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2023-05-25 10:48:06', '2023-05-25 10:48:06', 1);
INSERT INTO `fac_factura` VALUES (117, 7, 2, 5, 1, 2, NULL, 1, NULL, 1, NULL, NULL, 164, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 3, '2023-05-12 10:49:32', '2023-05-12 00:00:00', '0325-665656-565-6', 'Callejas sa de cv', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 0.00, 0.000000, 0.10, 0.00, 3, 'Duplicado de facturas', '2024-09-01 00:00:00', NULL, NULL, 0.85, 0.00, NULL, '2023-05-13 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2023-05-25 10:49:32', '2023-05-25 10:49:32', 1);
INSERT INTO `fac_factura` VALUES (118, 28, 20, 2, 1, 1, NULL, 3, NULL, 1, NULL, NULL, 164, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 1294, '2023-05-12 10:56:39', '2023-05-12 00:00:00', NULL, 'Cliente Contado', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 0.75, 0.000000, 0.10, 0.85, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 0.00, 0.85, NULL, '2023-05-12 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2023-05-25 10:56:39', '2023-05-25 10:56:39', 1);
INSERT INTO `fac_factura` VALUES (119, 28, 20, 2, 1, 1, NULL, 3, NULL, 1, NULL, NULL, 164, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 1295, '2023-05-12 11:03:04', '2023-05-12 00:00:00', NULL, 'Cliente Contado', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 12.55, 0.000000, 1.63, 14.18, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 0.00, 14.18, NULL, '2023-05-12 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2023-05-25 11:03:04', '2023-05-25 11:03:04', 1);
INSERT INTO `fac_factura` VALUES (120, 2, 8, 13, 1, 1, NULL, 13, NULL, 1, NULL, NULL, 164, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 1, '2023-05-12 11:04:43', '2023-05-12 00:00:00', '130953-9', 'Almacenes el porvenir', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 2.25, 0.000000, 0.29, 2.54, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 0.00, 2.54, NULL, '2023-05-12 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2023-05-25 11:04:43', '2023-05-25 11:04:43', 1);
INSERT INTO `fac_factura` VALUES (121, 28, 20, 13, 1, 1, NULL, 13, NULL, 1, NULL, NULL, 164, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 2, '2023-05-12 11:10:01', '2023-05-12 00:00:00', NULL, 'Cliente Contado', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 7.80, 0.000000, 1.01, 8.81, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 0.00, 8.81, NULL, '2023-05-12 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2023-05-25 11:10:01', '2023-05-25 11:10:01', 1);
INSERT INTO `fac_factura` VALUES (122, 28, 20, 2, 1, 1, NULL, 3, NULL, 1, NULL, NULL, 164, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 1296, '2023-05-12 11:11:46', '2023-05-12 00:00:00', NULL, 'Cliente Contado', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 47.45, 0.000000, 6.17, 53.62, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 0.00, 53.62, NULL, '2023-05-12 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2023-05-25 11:11:46', '2023-05-25 11:11:46', 1);
INSERT INTO `fac_factura` VALUES (123, 28, 20, 2, 1, 1, NULL, 3, NULL, 1, NULL, NULL, 166, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 1297, '2023-05-26 11:22:56', '2023-05-26 00:00:00', NULL, 'Cliente Contado', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 12.20, 0.000000, 1.59, 13.79, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 0.00, 13.79, NULL, '2023-05-26 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2023-05-25 11:22:56', '2023-05-25 11:22:56', 1);
INSERT INTO `fac_factura` VALUES (124, 28, 20, 2, 1, 1, NULL, 3, NULL, 1, NULL, NULL, 166, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 1298, '2023-05-26 11:24:35', '2023-05-26 00:00:00', NULL, 'Cliente Contado', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 8.30, 0.000000, 1.08, 9.38, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 0.00, 9.38, NULL, '2023-05-26 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2023-05-25 11:24:35', '2023-05-25 11:24:35', 1);
INSERT INTO `fac_factura` VALUES (125, 2, 8, 13, 1, 1, NULL, 13, NULL, 1, NULL, NULL, 166, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 3, '2023-05-26 11:25:20', '2023-05-26 00:00:00', '130953-9', 'Almacenes el porvenir', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 17.00, 0.000000, 2.21, 19.21, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 0.00, 19.21, NULL, '2023-05-26 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2023-05-25 11:25:20', '2023-05-25 11:25:20', 1);
INSERT INTO `fac_factura` VALUES (126, 2, 8, 13, 1, 1, NULL, 13, NULL, 1, NULL, NULL, 166, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 4, '2023-05-26 11:26:10', '2023-05-26 00:00:00', '130953-9', 'Almacenes el porvenir', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 10.70, 0.000000, 1.39, 12.09, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 0.00, 12.09, NULL, '2023-05-26 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2023-05-25 11:26:10', '2023-05-25 11:26:10', 1);
INSERT INTO `fac_factura` VALUES (127, 7, 2, 5, 1, 2, NULL, 1, NULL, 1, NULL, NULL, 166, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 4, '2023-05-26 11:28:28', '2023-05-26 00:00:00', '0325-665656-565-6', 'Callejas sa de cv', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 9.55, 0.000000, 1.24, 10.79, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 0.00, 10.79, NULL, '2023-05-27 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2023-05-25 11:57:56', 0, NULL, NULL, NULL, NULL, 1, 1, '2023-05-25 11:57:56', '2023-05-25 11:28:28', 1);
INSERT INTO `fac_factura` VALUES (128, 7, 2, 5, 1, 2, NULL, 1, NULL, 1, NULL, NULL, 168, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 5, '2023-05-25 11:59:14', '2023-05-25 00:00:00', '0325-665656-565-6', 'Callejas sa de cv', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 19.25, 0.000000, 2.50, 21.75, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 21.75, 0.00, NULL, '2023-05-26 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2023-05-25 11:59:14', '2023-05-25 11:59:14', 1);
INSERT INTO `fac_factura` VALUES (129, 28, 20, 2, 1, 1, NULL, 3, NULL, 1, NULL, NULL, 168, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 1299, '2023-05-25 11:40:39', '2023-05-25 00:00:00', NULL, 'Cliente Contado', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 25.30, 0.000000, 3.29, 28.59, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 0.00, 28.59, NULL, '2023-05-25 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2023-05-26 11:40:39', '2023-05-26 11:40:39', 1);
INSERT INTO `fac_factura` VALUES (130, 2, 8, 13, 1, 1, NULL, 13, NULL, 1, NULL, NULL, 168, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 5, '2023-05-25 11:42:08', '2023-05-25 00:00:00', '130953-9', 'Almacenes el porvenir', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 2.25, 0.000000, 0.29, 2.54, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 0.00, 2.54, NULL, '2023-05-25 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2023-05-26 11:42:08', '2023-05-26 11:42:08', 1);
INSERT INTO `fac_factura` VALUES (131, 26, 20, 2, 1, 2, NULL, 3, NULL, 1, NULL, NULL, 168, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 1300, '2023-05-25 11:43:40', '2023-05-25 00:00:00', NULL, 'ALMACENES SIMAN, S.A DE C.V', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 0.75, 0.000000, 0.10, 0.85, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 0.85, 0.00, NULL, '2023-06-30 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2024-08-09 13:01:28', 0, NULL, NULL, NULL, NULL, 1, 1, '2024-08-29 12:25:08', '2023-05-26 11:43:40', 1);
INSERT INTO `fac_factura` VALUES (132, 26, 20, 2, 1, 2, NULL, 3, NULL, 1, NULL, NULL, 168, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 1301, '2023-05-25 11:46:13', '2023-05-25 00:00:00', NULL, 'ALMACENES SIMAN, S.A DE C.V', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 45.00, 0.000000, 5.85, 50.85, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 0.00, 50.85, NULL, '2023-05-25 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2023-08-01 14:46:26', 0, NULL, NULL, NULL, NULL, 1, 1, '2023-08-01 14:46:26', '2023-05-26 11:46:13', 1);
INSERT INTO `fac_factura` VALUES (133, 28, 20, 2, 1, 1, NULL, 3, NULL, 1, NULL, NULL, 168, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 1302, '2023-05-25 11:56:11', '2023-05-25 00:00:00', NULL, 'Cliente Contado', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 12.20, 0.000000, 1.59, 13.79, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 0.00, 13.79, NULL, '2023-05-25 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2023-05-26 11:56:11', '2023-05-26 11:56:11', 1);
INSERT INTO `fac_factura` VALUES (134, 28, 20, 2, 1, 1, NULL, 3, NULL, 1, NULL, NULL, 168, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 1303, '2023-05-25 09:44:01', '2023-05-25 00:00:00', NULL, 'Cliente Contado', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 3.00, 0.000000, 0.39, 3.39, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 0.00, 3.39, NULL, '2023-05-25 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2023-07-31 14:49:23', 0, NULL, NULL, NULL, NULL, 1, 1, '2023-07-31 14:49:23', '2023-07-04 09:44:01', 1);
INSERT INTO `fac_factura` VALUES (135, 28, 20, 2, 1, 1, NULL, 3, NULL, 1, NULL, NULL, 170, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 1304, '2023-07-04 09:55:49', '2023-07-04 00:00:00', NULL, 'Cliente Contado', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 16.50, 0.000000, 2.14, 18.65, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 0.00, 18.65, NULL, '2023-07-04 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2023-07-31 14:49:23', 0, NULL, NULL, NULL, NULL, 1, 1, '2023-07-31 14:49:23', '2023-07-04 09:55:49', 1);
INSERT INTO `fac_factura` VALUES (136, 28, 20, 2, 1, 1, NULL, 3, NULL, 1, NULL, NULL, 170, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 1305, '2023-07-04 10:35:48', '2023-07-04 00:00:00', NULL, 'Cliente Contado', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 2.00, 0.000000, 0.26, 2.26, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2.26, 0.00, NULL, '2023-07-04 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2023-07-10 10:35:48', '2023-07-10 10:35:48', 1);
INSERT INTO `fac_factura` VALUES (137, 28, 20, 2, 1, 1, NULL, 3, NULL, 1, 1280, NULL, 172, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 1306, '2023-07-31 11:32:41', '2023-07-31 00:00:00', NULL, 'Cliente Contado', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 2.50, 0.000000, 0.32, 2.83, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2.83, 0.00, NULL, '2023-07-31 00:00:00', NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2023-07-31 11:32:41', '2023-07-31 11:32:41', 1);
INSERT INTO `fac_factura` VALUES (138, 28, 20, 2, 1, 1, NULL, 3, NULL, 1, NULL, NULL, 172, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 1307, '2023-07-31 13:36:03', '2023-07-31 00:00:00', NULL, 'Cliente Contado', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 7.50, 0.000000, 0.97, 8.48, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 8.48, 0.00, NULL, '2023-07-31 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2023-07-31 13:36:03', '2023-07-31 13:36:03', 1);
INSERT INTO `fac_factura` VALUES (139, 26, 20, 2, 1, 2, NULL, 3, NULL, 1, NULL, NULL, 172, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 1308, '2023-07-31 15:04:41', '2023-07-31 00:00:00', NULL, 'ALMACENES SIMAN, S.A DE C.V', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 22.50, 0.000000, 2.92, 25.42, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 25.42, 0.00, NULL, '2023-07-31 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2024-08-09 13:01:28', 0, NULL, NULL, NULL, NULL, 1, 1, '2024-08-29 12:25:08', '2023-08-01 15:04:41', 1);
INSERT INTO `fac_factura` VALUES (140, 28, 20, 2, 1, 1, NULL, 3, NULL, 1, NULL, NULL, 172, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 1309, '2023-07-31 18:44:40', '2023-07-31 00:00:00', NULL, 'Cliente Contado', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 12.50, 0.000000, 1.62, 14.12, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 14.12, 0.00, NULL, '2023-07-31 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2023-09-20 18:44:40', '2023-09-20 18:44:40', 1);
INSERT INTO `fac_factura` VALUES (141, 28, 20, 2, 1, 1, NULL, 3, NULL, 1, NULL, NULL, 172, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 1310, '2023-07-31 17:02:05', '2023-07-31 00:00:00', NULL, 'Cliente Contado', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 257.25, 0.000000, 33.44, 290.69, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 290.69, 0.00, NULL, '2023-07-31 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2023-10-04 17:02:05', '2023-10-04 17:02:05', 1);
INSERT INTO `fac_factura` VALUES (142, 30, 20, 2, 1, 1, NULL, 3, NULL, 1, NULL, NULL, 172, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 1311, '2023-07-31 20:38:26', '2023-07-31 00:00:00', NULL, 'Carolina Valladares', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 100.00, 0.000000, 0.00, 100.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 0.00, 100.00, NULL, '2023-07-31 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2024-01-18 20:38:26', '2024-01-18 20:38:26', 1);
INSERT INTO `fac_factura` VALUES (143, 28, 20, 2, 1, 1, NULL, 3, NULL, 1, NULL, NULL, 172, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 1312, '2023-07-31 19:26:24', '2023-07-31 00:00:00', NULL, 'Cliente Contado', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 2.50, 0.000000, 0.32, 2.83, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 0.00, 2.83, NULL, '2023-07-31 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2024-04-01 19:26:24', '2024-04-01 19:26:24', 1);
INSERT INTO `fac_factura` VALUES (144, 28, 20, 2, 1, 1, NULL, 3, NULL, 1, NULL, NULL, 172, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 1313, '2023-07-31 19:26:56', '2023-07-31 00:00:00', NULL, 'Cliente Contado', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 2.50, 0.000000, 0.32, 2.83, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 0.00, 2.83, NULL, '2023-07-31 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2024-04-01 19:26:56', '2024-04-01 19:26:56', 1);
INSERT INTO `fac_factura` VALUES (145, 28, 20, 13, 1, 1, NULL, 13, NULL, 1, NULL, NULL, 172, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 6, '2023-07-31 19:27:32', '2023-07-31 00:00:00', NULL, 'Cliente Contado', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 2.50, 0.000000, 0.32, 2.83, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 0.00, 2.83, NULL, '2023-07-31 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2024-04-01 19:27:32', '2024-04-01 19:27:32', 1);
INSERT INTO `fac_factura` VALUES (146, 28, 20, 2, 1, 1, NULL, 3, NULL, 1, NULL, NULL, 172, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 1314, '2023-07-31 14:17:54', '2023-07-31 00:00:00', NULL, 'Cliente Contado', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 2.50, 0.000000, 0.32, 2.83, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2.83, 0.00, NULL, '2023-07-31 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2024-04-02 14:17:54', '2024-04-02 14:17:54', 1);
INSERT INTO `fac_factura` VALUES (147, 33, 20, 2, 1, 2, NULL, 3, NULL, 1, NULL, NULL, 172, NULL, NULL, 4, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 1315, '2023-07-31 15:07:34', '2023-07-31 00:00:00', NULL, 'Carolina Valladres', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 15500.00, 0.000000, 65.00, 15565.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 15565.00, 0.00, NULL, '2023-07-31 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2024-04-12 15:07:34', '2024-04-12 15:07:34', 1);
INSERT INTO `fac_factura` VALUES (148, 33, 20, 2, 1, 2, NULL, 3, NULL, 1, NULL, NULL, 172, NULL, NULL, 4, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 1316, '2023-07-31 15:54:25', '2023-07-31 00:00:00', '00229504-4', 'Carolina Valladres', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, '1', 0, 0.00, 2.25, 0.000000, 0.00, 2.25, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2.25, 0.00, NULL, '2023-07-31 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2024-04-12 15:54:25', '2024-04-12 15:54:25', 1);
INSERT INTO `fac_factura` VALUES (155, 28, 20, 17, 1, 1, NULL, 3, NULL, 1, NULL, NULL, 172, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 1, '2024-05-04 21:42:02', '2024-05-04 00:00:00', NULL, 'Cliente Contado', NULL, 1, '2A79EA27-C279-E471-F4D1-80B08D62B00A', 'DTE-01-S001P001-000000000000011', NULL, '{\n    \"identificacion\": {\n        \"version\": 1,\n        \"ambiente\": \"00\",\n        \"tipoDte\": \"01\",\n        \"numeroControl\": \"DTE-01-S001P001-000000000000011\",\n        \"codigoGeneracion\": \"2A79EA27-C279-E471-F4D1-80B08D62B00A\",\n        \"tipoModelo\": 1,\n        \"tipoOperacion\": 1,\n        \"tipoContingencia\": null,\n        \"motivoContin\": null,\n        \"fecEmi\": \"2024-05-13\",\n        \"horEmi\": \"22:01:48\",\n        \"tipoMoneda\": \"USD\"\n    },\n    \"documentoRelacionado\": null,\n    \"emisor\": {\n        \"nit\": \"06140305961025\",\n        \"nrc\": \"149123\",\n        \"nombre\": \"Grupo Satelite \",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"nombreComercial\": \"Grupo Satelite \",\n        \"tipoEstablecimiento\": \"02\",\n        \"direccion\": {\n            \"departamento\": \"06\",\n            \"municipio\": \"617\",\n            \"complemento\": \"75 y 79 Av Sur Col. Escalón, San Salvador, El Salvador\"\n        },\n        \"telefono\": \"2264-8310\",\n        \"correo\": \"info@gruposatelite.net\",\n        \"codEstable\": null,\n        \"codPuntoVenta\": null,\n        \"codEstableMH\": null,\n        \"codPuntoVentaMH\": null\n    },\n    \"receptor\": {\n        \"nrc\": \"\",\n        \"nombre\": \"Contado\",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"direccion\": {\n            \"departamento\": null,\n            \"municipio\": null,\n            \"complemento\": \"\"\n        },\n        \"telefono\": \"\",\n        \"correo\": \"\",\n        \"nombreComercial\": \"\",\n        \"nit\": \"\"\n    },\n    \"cuerpoDocumento\": [\n        {\n            \"numltem\": 1,\n            \"tipoltem\": \"1\",\n            \"codigo\": \"0010005\",\n            \"descripcion\": \"Carne para guisar de res\",\n            \"uniMedida\": \"58\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 2,\n            \"precioUni\": 4.5,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 9,\n            \"ventaNoSuj\": 0,\n            \"tributos\": null,\n            \"ivaItem\": 0.585,\n            \"ventaExenta\": 0\n        },\n        {\n            \"numltem\": 2,\n            \"tipoltem\": \"1\",\n            \"codigo\": \"0010003\",\n            \"descripcion\": \"Puyaso de res\",\n            \"uniMedida\": \"58\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 2,\n            \"precioUni\": 7.5,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 15,\n            \"ventaNoSuj\": 0,\n            \"tributos\": null,\n            \"ivaItem\": 0.975,\n            \"ventaExenta\": 0\n        }\n    ],\n    \"resumen\": {\n        \"totalNoSuj\": 0,\n        \"totalExenta\": 0,\n        \"totalGravada\": 27.12,\n        \"subTotalVentas\": 27.12,\n        \"descuNoSuj\": 0,\n        \"descuExenta\": 0,\n        \"descuGravada\": 0,\n        \"porcentajeDescuento\": 0,\n        \"totalDescu\": 0,\n        \"subTotal\": 27.12,\n        \"ivaPerci1\": 0,\n        \"ivaRete1\": 0,\n        \"reteRenta\": 0,\n        \"montoTotalOperacion\": 0,\n        \"totalNoGravado\": 0,\n        \"totalPagar\": 27.12,\n        \"totalIva\": 3.12,\n        \"totalLetras\": \"VEINTISIETE CON 12\\/100 DOLARES\",\n        \"saldoFavor\": 0,\n        \"condicionOperacion\": 1,\n        \"pagos\": null,\n        \"numPagoElectronico\": null\n    },\n    \"extensión\": {\n        \"nombEntrega\": \"\",\n        \"docufintreqa\": \"\",\n        \"nornbkeclbe\": \"\",\n        \"docukecibe\": \"\",\n        \"placaVehiculo\": \"\",\n        \"observaciones\": \"\"\n    },\n    \"apéndice\": null\n}', 'No se pudo encontrar el documento | Revisa el que el codigo de generacion sea el correcto', '620141EE-3DE2-4E71-BC18-10687B67FBC1', 0, 0, '1', 0, 0.00, 24.00, 0.000000, 3.12, 27.12, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 27.12, 0.00, NULL, '2023-07-31 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2025-02-26 13:15:06', '2024-05-04 21:42:02', 1);
INSERT INTO `fac_factura` VALUES (156, 28, 20, 16, 1, 1, NULL, 13, NULL, 1, NULL, NULL, 172, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 1, '2024-05-04 22:29:59', '2024-05-04 00:00:00', NULL, 'Cliente Contado', NULL, 1, '1C9AC015-9C94-D8D0-CBED-C973445AF2DA', 'DTE-01-S001P001-000000000000001', NULL, '{\"identificacion\":{\"version\":1,\"ambiente\":\"00\",\"tipoDte\":\"01\",\"numeroControl\":\"DTE-01-S001P001-000000000000001\",\"codigoGeneracion\":\"DTE-01-S001P001-000000000000001\",\"tipoModelo\":1,\"tipoOperacion\":1,\"tipoContingencia\":null,\"motivoContin\":null,\"fecEmi\":\"2024-05-04\",\"horEmi\":\"22:29:59\",\"tipoMoneda\":\"USD\"},\"auditoria\":{\"usu_creacion\":\"1\",\"usu_modificacion\":\"1\",\"fecha_creacion\":\"2024-05-04 22:29:59\",\"fecha_modificacion\":\"2024-05-04 22:29:59\",\"estado\":\"1\"},\"documentoRelacionado\":null,\"emisor\":{\"nit\":\"0614-030596-102-5\",\"nrc\":\"149-123\",\"nombre\":\"Grupo Satelite \",\"codActividad\":null,\"descActividad\":null,\"nombreComercial\":\"Grupo Satelite \",\"tipoEstablecimiento\":\"02\",\"direccion\":{\"departamento\":\"06\",\"municipio\":\"617\",\"complemento\":\"75 y 79 Av Sur Col. Escalón, San Salvador, El Salvador\"},\"telefono\":\"2264-8310\",\"correo\":\"info@gruposatelite.net\",\"codEstable\":null,\"codPuntoVenta\":null,\"codEstableMH\":null,\"codPuntoVentaMH\":null},\"receptor\":{\"nrc\":null,\"nombre\":\"Contado\",\"codActividad\":null,\"descActividad\":null,\"direccion\":{\"departamento\":null,\"municipio\":null,\"complemento\":\"\"},\"telefono\":\"\",\"correo\":\"\",\"nombreComercial\":\"\",\"nit\":\"\"},\"cuerpoDocumento\":[{\"numltem\":1,\"tipoltem\":\"1\",\"codigo\":\"0010003\",\"descripcion\":\"Puyaso de res\",\"uniMedida\":\"58\",\"psv\":0,\"codTributo\":null,\"cantidad\":1,\"precioUni\":8.5,\"montoDescu\":0,\"ventaGravada\":8.5,\"ventaNoSuj\":0,\"tributos\":null,\"ventaExenta\":0}],\"resumen\":{\"totalNoSuj\":0,\"totalExenta\":0,\"totalGravada\":0,\"subTotalVentas\":0,\"descuNoSuj\":0,\"descuExenta\":0,\"descuGravada\":0,\"porcentajeDescuento\":0,\"totalDescu\":\"0.000000\",\"subTotal\":\"8.50\",\"ivaPerci1\":0,\"ivaRete1\":0,\"reteRenta\":0,\"montoTotalOperacion\":0,\"totalNoGravado\":0,\"totalPagar\":0,\"totalLetras\":\"NUEVE CON 61\\/100 DOLARES\",\"saldoFavor\":0,\"condicionOperacion\":1,\"pagos\":null,\"numPagoElectronico\":null},\"extensión\":{\"nombEntrega\":\"\",\"docufintreqa\":\"\",\"nornbkeclbe\":\"\",\"docukecibe\":\"\",\"placaVehiculo\":\"\",\"observaciones\":\"\"},\"apéndice\":null}', NULL, NULL, 0, 0, '1', 0, 0.00, 8.50, 0.000000, 1.11, 9.61, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 9.61, 0.00, NULL, '2023-07-31 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2024-05-04 22:29:59', '2024-05-04 22:29:59', 1);
INSERT INTO `fac_factura` VALUES (157, 17, 8, 18, 1, 1, NULL, 1, NULL, 1, NULL, NULL, 172, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 1, '2024-05-04 22:33:12', '2024-05-04 00:00:00', '3334-0', 'Tienda mayoreo de lacteos', NULL, 1, '6C4B761A-28B7-34FE-9383-1E3FB400CE87', 'DTE-01-S001P001-000000000000001', NULL, '{\"identificacion\":{\"version\":1,\"ambiente\":\"00\",\"tipoDte\":\"03\",\"numeroControl\":\"DTE-01-S001P001-000000000000001\",\"codigoGeneracion\":\"DTE-01-S001P001-000000000000001\",\"tipoModelo\":1,\"tipoOperacion\":1,\"tipoContingencia\":null,\"motivoContin\":null,\"fecEmi\":\"2024-05-04\",\"horEmi\":\"22:33:12\",\"tipoMoneda\":\"USD\"},\"auditoria\":{\"usu_creacion\":\"1\",\"usu_modificacion\":\"1\",\"fecha_creacion\":\"2024-05-04 22:33:12\",\"fecha_modificacion\":\"2024-05-04 22:33:12\",\"estado\":\"1\"},\"documentoRelacionado\":null,\"emisor\":{\"nit\":\"0614-030596-102-5\",\"nrc\":\"149-123\",\"nombre\":\"Grupo Satelite \",\"codActividad\":null,\"descActividad\":null,\"nombreComercial\":\"Grupo Satelite \",\"tipoEstablecimiento\":\"02\",\"direccion\":{\"departamento\":\"06\",\"municipio\":\"617\",\"complemento\":\"75 y 79 Av Sur Col. Escalón, San Salvador, El Salvador\"},\"telefono\":\"2264-8310\",\"correo\":\"info@gruposatelite.net\",\"codEstable\":null,\"codPuntoVenta\":null,\"codEstableMH\":null,\"codPuntoVentaMH\":null},\"receptor\":{\"nrc\":\"3334-0\",\"nombre\":\"Tienda mayoreo de lacteos Tienda mayoreo de lacteos\",\"codActividad\":\"\",\"descActividad\":\"Venta al por mayor de artículos de ferretería y pinturerías\",\"direccion\":{\"departamento\":\"06\",\"municipio\":\"616\",\"complemento\":\"San Salvador\"},\"telefono\":\"\",\"correo\":\"\",\"nombreComercial\":\"\",\"nit\":\"\"},\"cuerpoDocumento\":[{\"numltem\":1,\"tipoltem\":\"1\",\"codigo\":\"0010005\",\"descripcion\":\"Carne para guisar de res\",\"uniMedida\":\"58\",\"psv\":0,\"codTributo\":null,\"cantidad\":2,\"precioUni\":5.085,\"montoDescu\":0,\"ventaGravada\":10.17,\"ventaNoSuj\":0,\"tributos\":null,\"ventaExenta\":0}],\"resumen\":{\"totalNoSuj\":0,\"totalExenta\":0,\"totalGravada\":0,\"subTotalVentas\":0,\"descuNoSuj\":0,\"descuExenta\":0,\"descuGravada\":0,\"porcentajeDescuento\":0,\"totalDescu\":\"0.000000\",\"subTotal\":\"9.00\",\"ivaPerci1\":0,\"ivaRete1\":0,\"reteRenta\":0,\"montoTotalOperacion\":0,\"totalNoGravado\":0,\"totalPagar\":0,\"totalLetras\":\"DIEZ CON 17\\/100 DOLARES\",\"saldoFavor\":0,\"condicionOperacion\":1,\"pagos\":null,\"numPagoElectronico\":null},\"extensión\":{\"nombEntrega\":\"\",\"docufintreqa\":\"\",\"nornbkeclbe\":\"\",\"docukecibe\":\"\",\"placaVehiculo\":\"\",\"observaciones\":\"\"},\"apéndice\":null}', NULL, NULL, 0, 0, '1', 0, 0.00, 9.00, 0.000000, 1.17, 10.17, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 10.17, 0.00, NULL, '2024-05-12 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2024-05-04 22:33:12', '2024-05-04 22:33:12', 1);
INSERT INTO `fac_factura` VALUES (158, 22, 6, 18, 1, 2, NULL, 1, NULL, 1, NULL, NULL, 172, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 2, '2023-07-31 22:39:58', '2023-07-31 00:00:00', NULL, 'Raul Ernesto Colindres', NULL, 1, '06409663-226A-F2F3-1144-85AA4E0A23B4', 'DTE-01-S001P001-000000000000002', NULL, '{\"identificacion\":{\"version\":1,\"ambiente\":\"00\",\"tipoDte\":\"03\",\"numeroControl\":\"DTE-01-S001P001-000000000000002\",\"codigoGeneracion\":\"DTE-01-S001P001-000000000000002\",\"tipoModelo\":1,\"tipoOperacion\":1,\"tipoContingencia\":null,\"motivoContin\":null,\"fecEmi\":\"2024-05-04\",\"horEmi\":\"22:39:58\",\"tipoMoneda\":\"USD\"},\"auditoria\":{\"usu_creacion\":\"1\",\"usu_modificacion\":\"1\",\"fecha_creacion\":\"2024-05-04 22:39:58\",\"fecha_modificacion\":\"2024-05-04 22:39:58\",\"estado\":\"1\"},\"documentoRelacionado\":null,\"emisor\":{\"nit\":\"0614-030596-102-5\",\"nrc\":\"149-123\",\"nombre\":\"Grupo Satelite \",\"codActividad\":null,\"descActividad\":null,\"nombreComercial\":\"Grupo Satelite \",\"tipoEstablecimiento\":\"02\",\"direccion\":{\"departamento\":\"06\",\"municipio\":\"617\",\"complemento\":\"75 y 79 Av Sur Col. Escalón, San Salvador, El Salvador\"},\"telefono\":\"2264-8310\",\"correo\":\"info@gruposatelite.net\",\"codEstable\":null,\"codPuntoVenta\":null,\"codEstableMH\":null,\"codPuntoVentaMH\":null},\"receptor\":{\"nrc\":\"558\",\"nombre\":\"Raul Ernesto Colindres Raul Ernesto Colindres\",\"codActividad\":null,\"descActividad\":null,\"direccion\":{\"departamento\":\"06\",\"municipio\":\"602\",\"complemento\":\"\"},\"telefono\":\"\",\"correo\":\"colindres@gmial.com\",\"nombreComercial\":\"\",\"nit\":\"\"},\"cuerpoDocumento\":[{\"numltem\":1,\"tipoltem\":\"1\",\"codigo\":\"0010005\",\"descripcion\":\"Carne para guisar de res\",\"uniMedida\":\"58\",\"psv\":0,\"codTributo\":null,\"cantidad\":2,\"precioUni\":4.52,\"montoDescu\":0,\"ventaGravada\":9.04,\"ventaNoSuj\":0,\"tributos\":null,\"ventaExenta\":0},{\"numltem\":2,\"tipoltem\":\"1\",\"codigo\":\"0010003\",\"descripcion\":\"Puyaso de res\",\"uniMedida\":\"58\",\"psv\":0,\"codTributo\":null,\"cantidad\":2,\"precioUni\":6.78,\"montoDescu\":0,\"ventaGravada\":13.56,\"ventaNoSuj\":0,\"tributos\":null,\"ventaExenta\":0}],\"resumen\":{\"totalNoSuj\":0,\"totalExenta\":0,\"totalGravada\":0,\"subTotalVentas\":0,\"descuNoSuj\":0,\"descuExenta\":0,\"descuGravada\":0,\"porcentajeDescuento\":0,\"totalDescu\":\"0.000000\",\"subTotal\":\"20.00\",\"ivaPerci1\":0,\"ivaRete1\":0,\"reteRenta\":0,\"montoTotalOperacion\":0,\"totalNoGravado\":0,\"totalPagar\":0,\"totalLetras\":\"VEINTIDOS CON 60\\/100 DOLARES\",\"saldoFavor\":0,\"condicionOperacion\":1,\"pagos\":null,\"numPagoElectronico\":null},\"extensión\":{\"nombEntrega\":\"\",\"docufintreqa\":\"\",\"nornbkeclbe\":\"\",\"docukecibe\":\"\",\"placaVehiculo\":\"\",\"observaciones\":\"\"},\"apéndice\":null}', 'No se pudo encontrar el documento | Revisa el que el codigo de generacion sea el correcto', '75844725-E8F2-4EEB-814E-2EA80673C251', 0, 0, '1', 0, 0.00, 20.00, 0.000000, 2.60, 22.60, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 22.60, 0.00, NULL, '2023-07-31 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2025-02-26 13:15:02', '2024-05-04 22:39:58', 1);
INSERT INTO `fac_factura` VALUES (159, 22, 6, 18, 1, 2, NULL, 1, NULL, 1, NULL, NULL, 172, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 3, '2023-07-31 23:02:31', '2023-07-31 00:00:00', NULL, 'Raul Ernesto Colindres', NULL, 1, '140F6969-D521-3FD0-ECE0-3148E62E461E', 'DTE-01-S001P001-000000000000003', NULL, '{\n    \"identificacion\": {\n        \"version\": 1,\n        \"ambiente\": \"00\",\n        \"tipoDte\": \"03\",\n        \"numeroControl\": \"DTE-01-S001P001-000000000000003\",\n        \"codigoGeneracion\": \"DTE-01-S001P001-000000000000003\",\n        \"tipoModelo\": 1,\n        \"tipoOperacion\": 1,\n        \"tipoContingencia\": null,\n        \"motivoContin\": null,\n        \"fecEmi\": \"2024-05-04\",\n        \"horEmi\": \"23:02:31\",\n        \"tipoMoneda\": \"USD\"\n    },\n    \"auditoria\": {\n        \"usu_creacion\": \"1\",\n        \"usu_modificacion\": \"1\",\n        \"fecha_creacion\": \"2024-05-04 23:02:31\",\n        \"fecha_modificacion\": \"2024-05-04 23:02:31\",\n        \"estado\": \"1\"\n    },\n    \"documentoRelacionado\": null,\n    \"emisor\": {\n        \"nit\": \"0614-030596-102-5\",\n        \"nrc\": \"149-123\",\n        \"nombre\": \"Grupo Satelite \",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"nombreComercial\": \"Grupo Satelite \",\n        \"tipoEstablecimiento\": \"02\",\n        \"direccion\": {\n            \"departamento\": \"06\",\n            \"municipio\": \"617\",\n            \"complemento\": \"75 y 79 Av Sur Col. Escalón, San Salvador, El Salvador\"\n        },\n        \"telefono\": \"2264-8310\",\n        \"correo\": \"info@gruposatelite.net\",\n        \"codEstable\": null,\n        \"codPuntoVenta\": null,\n        \"codEstableMH\": null,\n        \"codPuntoVentaMH\": null\n    },\n    \"receptor\": {\n        \"nrc\": \"558\",\n        \"nombre\": \"Raul Ernesto Colindres Raul Ernesto Colindres\",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"direccion\": {\n            \"departamento\": \"06\",\n            \"municipio\": \"602\",\n            \"complemento\": \"\"\n        },\n        \"telefono\": \"\",\n        \"correo\": \"colindres@gmial.com\",\n        \"nombreComercial\": \"\",\n        \"nit\": \"\"\n    },\n    \"cuerpoDocumento\": [\n        {\n            \"numltem\": 1,\n            \"tipoltem\": \"1\",\n            \"codigo\": \"0012005\",\n            \"descripcion\": \"Solvente para preparación de soluciones parentenales\",\n            \"uniMedida\": \"58\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 100,\n            \"precioUni\": 2.825,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 282.5,\n            \"ventaNoSuj\": 0,\n            \"tributos\": null,\n            \"ventaExenta\": 0\n        }\n    ],\n    \"resumen\": {\n        \"totalNoSuj\": 0,\n        \"totalExenta\": 0,\n        \"totalGravada\": 0,\n        \"subTotalVentas\": 0,\n        \"descuNoSuj\": 0,\n        \"descuExenta\": 0,\n        \"descuGravada\": 0,\n        \"porcentajeDescuento\": 0,\n        \"totalDescu\": \"0.000000\",\n        \"subTotal\": \"250.00\",\n        \"ivaPerci1\": 0,\n        \"ivaRete1\": 0,\n        \"reteRenta\": 0,\n        \"montoTotalOperacion\": 0,\n        \"totalNoGravado\": 0,\n        \"totalPagar\": 0,\n        \"totalLetras\": \"DOSCIENTOS OCHENTA Y DOS CON 50\\/100 DOLARES\",\n        \"saldoFavor\": 0,\n        \"condicionOperacion\": 1,\n        \"pagos\": null,\n        \"numPagoElectronico\": null\n    },\n    \"extensión\": {\n        \"nombEntrega\": \"\",\n        \"docufintreqa\": \"\",\n        \"nornbkeclbe\": \"\",\n        \"docukecibe\": \"\",\n        \"placaVehiculo\": \"\",\n        \"observaciones\": \"\"\n    },\n    \"apéndice\": null\n}', 'No se pudo encontrar el documento | Revisa el que el codigo de generacion sea el correcto', 'DA1C29AD-9F9A-402F-9F91-07125881DB09', 0, 0, '1', 0, 0.00, 0.00, 0.000000, 0.00, 0.00, NULL, 'Anulación ', '2024-09-01 00:00:00', NULL, NULL, 0.00, 0.00, NULL, '2023-07-31 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, 0, 0.00, 0.00, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, 1, 1, '2025-02-26 13:15:03', '2024-05-04 23:02:31', 1);
INSERT INTO `fac_factura` VALUES (160, 22, 6, 18, 1, 2, NULL, 1, NULL, 1, NULL, NULL, 172, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 4, '2024-05-06 13:41:52', '2023-07-31 00:00:00', NULL, 'Raul Ernesto Colindres', NULL, 1, 'B73CE398-C39F-506A-F761-D2277D853A92', 'DTE-01-S001P001-000000000000004', NULL, '{\n    \"identificacion\": {\n        \"version\": 1,\n        \"ambiente\": \"00\",\n        \"tipoDte\": \"03\",\n        \"numeroControl\": \"DTE-01-S001P001-000000000000004\",\n        \"codigoGeneracion\": \"DTE-01-S001P001-000000000000004\",\n        \"tipoModelo\": 1,\n        \"tipoOperacion\": 1,\n        \"tipoContingencia\": null,\n        \"motivoContin\": null,\n        \"fecEmi\": \"2024-05-06\",\n        \"horEmi\": \"13:41:53\",\n        \"tipoMoneda\": \"USD\"\n    },\n    \"auditoria\": {\n        \"usu_creacion\": \"1\",\n        \"usu_modificacion\": \"1\",\n        \"fecha_creacion\": \"2024-05-06 13:41:52\",\n        \"fecha_modificacion\": \"2024-05-06 13:41:52\",\n        \"estado\": \"1\"\n    },\n    \"documentoRelacionado\": null,\n    \"emisor\": {\n        \"nit\": \"0614-030596-102-5\",\n        \"nrc\": \"149-123\",\n        \"nombre\": \"Grupo Satelite \",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"nombreComercial\": \"Grupo Satelite \",\n        \"tipoEstablecimiento\": \"02\",\n        \"direccion\": {\n            \"departamento\": \"06\",\n            \"municipio\": \"617\",\n            \"complemento\": \"75 y 79 Av Sur Col. Escalón, San Salvador, El Salvador\"\n        },\n        \"telefono\": \"2264-8310\",\n        \"correo\": \"info@gruposatelite.net\",\n        \"codEstable\": null,\n        \"codPuntoVenta\": null,\n        \"codEstableMH\": null,\n        \"codPuntoVentaMH\": null\n    },\n    \"receptor\": {\n        \"nrc\": \"558\",\n        \"nombre\": \"Raul Ernesto Colindres Raul Ernesto Colindres\",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"direccion\": {\n            \"departamento\": \"06\",\n            \"municipio\": \"602\",\n            \"complemento\": \"\"\n        },\n        \"telefono\": \"\",\n        \"correo\": \"colindres@gmial.com\",\n        \"nombreComercial\": \"\",\n        \"nit\": null\n    },\n    \"cuerpoDocumento\": [\n        {\n            \"numltem\": 1,\n            \"tipoltem\": \"1\",\n            \"codigo\": \"0010005\",\n            \"descripcion\": \"Carne para guisar de res\",\n            \"uniMedida\": \"58\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 5,\n            \"precioUni\": 4.52,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 22.6,\n            \"ventaNoSuj\": 0,\n            \"tributos\": null,\n            \"ventaExenta\": 0\n        },\n        {\n            \"numltem\": 2,\n            \"tipoltem\": \"1\",\n            \"codigo\": \"0010003\",\n            \"descripcion\": \"Puyaso de res\",\n            \"uniMedida\": \"58\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 5,\n            \"precioUni\": 6.78,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 33.9,\n            \"ventaNoSuj\": 0,\n            \"tributos\": null,\n            \"ventaExenta\": 0\n        }\n    ],\n    \"resumen\": {\n        \"totalNoSuj\": 0,\n        \"totalExenta\": 0,\n        \"totalGravada\": 0,\n        \"subTotalVentas\": 0,\n        \"descuNoSuj\": 0,\n        \"descuExenta\": 0,\n        \"descuGravada\": 0,\n        \"porcentajeDescuento\": 0,\n        \"totalDescu\": \"0.000000\",\n        \"subTotal\": \"50.00\",\n        \"ivaPerci1\": 0,\n        \"ivaRete1\": 0,\n        \"reteRenta\": 0,\n        \"montoTotalOperacion\": 0,\n        \"totalNoGravado\": 0,\n        \"totalPagar\": 0,\n        \"totalLetras\": \"CINCUENTA Y SEIS CON 50\\/100 DOLARES\",\n        \"saldoFavor\": 0,\n        \"condicionOperacion\": 1,\n        \"pagos\": null,\n        \"numPagoElectronico\": null\n    },\n    \"extensión\": {\n        \"nombEntrega\": \"\",\n        \"docufintreqa\": \"\",\n        \"nornbkeclbe\": \"\",\n        \"docukecibe\": \"\",\n        \"placaVehiculo\": \"\",\n        \"observaciones\": \"\"\n    },\n    \"apéndice\": null\n}', 'No se pudo encontrar el documento | Revisa el que el codigo de generacion sea el correcto', '01873414-8948-4325-A371-1358F7E31906', 0, 0, '1', 0, 0.00, 50.00, 0.000000, 6.50, 56.50, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 56.50, 0.00, NULL, '2023-07-31 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2025-02-26 13:15:03', '2024-05-06 13:41:52', 1);
INSERT INTO `fac_factura` VALUES (161, 28, 20, 17, 1, 1, NULL, 3, NULL, 1, NULL, NULL, 172, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 2, '2024-05-06 13:47:38', '2024-05-06 00:00:00', NULL, 'Cliente Contado', NULL, 1, 'BD4C9AB7-30F5-5132-06B9-99EC0D90D1FB', 'DTE-01-S001P001-000000000000002', NULL, '{\n    \"identificacion\": {\n        \"version\": 1,\n        \"ambiente\": \"00\",\n        \"tipoDte\": \"01\",\n        \"numeroControl\": \"DTE-01-S001P001-000000000000002\",\n        \"codigoGeneracion\": \"DTE-01-S001P001-000000000000002\",\n        \"tipoModelo\": 1,\n        \"tipoOperacion\": 1,\n        \"tipoContingencia\": null,\n        \"motivoContin\": null,\n        \"fecEmi\": \"2024-05-06\",\n        \"horEmi\": \"13:47:38\",\n        \"tipoMoneda\": \"USD\"\n    },\n    \"auditoria\": {\n        \"usu_creacion\": \"1\",\n        \"usu_modificacion\": \"1\",\n        \"fecha_creacion\": \"2024-05-06 13:47:38\",\n        \"fecha_modificacion\": \"2024-05-06 13:47:38\",\n        \"estado\": \"1\"\n    },\n    \"documentoRelacionado\": null,\n    \"emisor\": {\n        \"nit\": \"0614-030596-102-5\",\n        \"nrc\": \"149-123\",\n        \"nombre\": \"Grupo Satelite \",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"nombreComercial\": \"Grupo Satelite \",\n        \"tipoEstablecimiento\": \"02\",\n        \"direccion\": {\n            \"departamento\": \"06\",\n            \"municipio\": \"617\",\n            \"complemento\": \"75 y 79 Av Sur Col. Escalón, San Salvador, El Salvador\"\n        },\n        \"telefono\": \"2264-8310\",\n        \"correo\": \"info@gruposatelite.net\",\n        \"codEstable\": null,\n        \"codPuntoVenta\": null,\n        \"codEstableMH\": null,\n        \"codPuntoVentaMH\": null\n    },\n    \"receptor\": {\n        \"nrc\": null,\n        \"nombre\": \"Contado\",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"direccion\": {\n            \"departamento\": null,\n            \"municipio\": null,\n            \"complemento\": \"\"\n        },\n        \"telefono\": \"\",\n        \"correo\": \"\",\n        \"nombreComercial\": \"\",\n        \"nit\": null\n    },\n    \"cuerpoDocumento\": [\n        {\n            \"numltem\": 1,\n            \"tipoltem\": \"1\",\n            \"codigo\": \"0010003\",\n            \"descripcion\": \"Puyaso de res\",\n            \"uniMedida\": \"58\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 10,\n            \"precioUni\": 5.5,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 55,\n            \"ventaNoSuj\": 0,\n            \"tributos\": null,\n            \"ventaExenta\": 0\n        }\n    ],\n    \"resumen\": {\n        \"totalNoSuj\": 0,\n        \"totalExenta\": 0,\n        \"totalGravada\": 0,\n        \"subTotalVentas\": 0,\n        \"descuNoSuj\": 0,\n        \"descuExenta\": 0,\n        \"descuGravada\": 0,\n        \"porcentajeDescuento\": 0,\n        \"totalDescu\": \"0.000000\",\n        \"subTotal\": \"55.00\",\n        \"ivaPerci1\": 0,\n        \"ivaRete1\": 0,\n        \"reteRenta\": 0,\n        \"montoTotalOperacion\": 0,\n        \"totalNoGravado\": 0,\n        \"totalPagar\": 0,\n        \"totalLetras\": \"SESENTA Y DOS CON 15\\/100 DOLARES\",\n        \"saldoFavor\": 0,\n        \"condicionOperacion\": 1,\n        \"pagos\": null,\n        \"numPagoElectronico\": null\n    },\n    \"extensión\": {\n        \"nombEntrega\": \"\",\n        \"docufintreqa\": \"\",\n        \"nornbkeclbe\": \"\",\n        \"docukecibe\": \"\",\n        \"placaVehiculo\": \"\",\n        \"observaciones\": \"\"\n    },\n    \"apéndice\": null\n}', 'No se pudo encontrar el documento | Revisa el que el codigo de generacion sea el correcto', '8BDF4FB3-9DEE-4180-9AA7-F58578BCCA60', 0, 0, '1', 0, 0.00, 55.00, 0.000000, 7.15, 62.15, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 62.15, 0.00, NULL, '2023-07-31 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2025-02-26 13:15:06', '2024-05-06 13:47:38', 1);
INSERT INTO `fac_factura` VALUES (162, 28, 20, 16, 1, 1, NULL, 13, NULL, 1, NULL, NULL, 172, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 2, '2024-05-06 13:48:29', '2024-05-06 00:00:00', NULL, 'Cliente Contado', NULL, 1, '82AA4B0A-F34C-2313-A562-076992E50AA3', 'DTE-01-S001P001-000000000000002', NULL, '{\n    \"identificacion\": {\n        \"version\": 1,\n        \"ambiente\": \"00\",\n        \"tipoDte\": \"01\",\n        \"numeroControl\": \"DTE-01-S001P001-000000000000002\",\n        \"codigoGeneracion\": \"DTE-01-S001P001-000000000000002\",\n        \"tipoModelo\": 1,\n        \"tipoOperacion\": 1,\n        \"tipoContingencia\": null,\n        \"motivoContin\": null,\n        \"fecEmi\": \"2024-05-06\",\n        \"horEmi\": \"13:48:29\",\n        \"tipoMoneda\": \"USD\"\n    },\n    \"auditoria\": {\n        \"usu_creacion\": \"1\",\n        \"usu_modificacion\": \"1\",\n        \"fecha_creacion\": \"2024-05-06 13:48:29\",\n        \"fecha_modificacion\": \"2024-05-06 13:48:29\",\n        \"estado\": \"1\"\n    },\n    \"documentoRelacionado\": null,\n    \"emisor\": {\n        \"nit\": \"0614-030596-102-5\",\n        \"nrc\": \"149-123\",\n        \"nombre\": \"Grupo Satelite \",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"nombreComercial\": \"Grupo Satelite \",\n        \"tipoEstablecimiento\": \"02\",\n        \"direccion\": {\n            \"departamento\": \"06\",\n            \"municipio\": \"617\",\n            \"complemento\": \"75 y 79 Av Sur Col. Escalón, San Salvador, El Salvador\"\n        },\n        \"telefono\": \"2264-8310\",\n        \"correo\": \"info@gruposatelite.net\",\n        \"codEstable\": null,\n        \"codPuntoVenta\": null,\n        \"codEstableMH\": null,\n        \"codPuntoVentaMH\": null\n    },\n    \"receptor\": {\n        \"nrc\": null,\n        \"nombre\": \"Contado\",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"direccion\": {\n            \"departamento\": null,\n            \"municipio\": null,\n            \"complemento\": \"\"\n        },\n        \"telefono\": \"\",\n        \"correo\": \"\",\n        \"nombreComercial\": \"\",\n        \"nit\": null\n    },\n    \"cuerpoDocumento\": [\n        {\n            \"numltem\": 1,\n            \"tipoltem\": \"1\",\n            \"codigo\": \"0010005\",\n            \"descripcion\": \"Carne para guisar de res\",\n            \"uniMedida\": \"58\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 10,\n            \"precioUni\": 6.5,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 65,\n            \"ventaNoSuj\": 0,\n            \"tributos\": null,\n            \"ventaExenta\": 0\n        }\n    ],\n    \"resumen\": {\n        \"totalNoSuj\": 0,\n        \"totalExenta\": 0,\n        \"totalGravada\": 0,\n        \"subTotalVentas\": 0,\n        \"descuNoSuj\": 0,\n        \"descuExenta\": 0,\n        \"descuGravada\": 0,\n        \"porcentajeDescuento\": 0,\n        \"totalDescu\": \"0.000000\",\n        \"subTotal\": \"65.00\",\n        \"ivaPerci1\": 0,\n        \"ivaRete1\": 0,\n        \"reteRenta\": 0,\n        \"montoTotalOperacion\": 0,\n        \"totalNoGravado\": 0,\n        \"totalPagar\": 0,\n        \"totalLetras\": \"SETENTA Y TRES CON 45\\/100 DOLARES\",\n        \"saldoFavor\": 0,\n        \"condicionOperacion\": 1,\n        \"pagos\": null,\n        \"numPagoElectronico\": null\n    },\n    \"extensión\": {\n        \"nombEntrega\": \"\",\n        \"docufintreqa\": \"\",\n        \"nornbkeclbe\": \"\",\n        \"docukecibe\": \"\",\n        \"placaVehiculo\": \"\",\n        \"observaciones\": \"\"\n    },\n    \"apéndice\": null\n}', 'No se pudo encontrar el documento | Revisa el que el codigo de generacion sea el correcto', '460BC043-B36D-4BC8-AA72-342EAAB2D8D9', 0, 0, '1', 0, 0.00, 65.00, 0.000000, 8.45, 73.45, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 73.45, 0.00, NULL, '2023-07-31 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2025-02-26 13:15:06', '2024-05-06 13:48:29', 1);
INSERT INTO `fac_factura` VALUES (163, 28, 20, 17, 1, 1, NULL, 3, NULL, 1, NULL, NULL, 172, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 3, '2023-07-31 17:18:38', '2023-07-31 00:00:00', NULL, 'Cliente Contado', NULL, 1, '0777D5C1-7D40-66B8-2AB8-6DFF8A46AF6F', 'DTE-01-S001P001-000000000000003', NULL, '{\n    \"identificacion\": {\n        \"version\": 1,\n        \"ambiente\": \"00\",\n        \"tipoDte\": \"01\",\n        \"numeroControl\": \"DTE-01-S001P001-000000000000003\",\n        \"codigoGeneracion\": \"0777D5C1-7D40-66B8-2AB8-6DFF8A46AF6F\",\n        \"tipoModelo\": 1,\n        \"tipoOperacion\": 1,\n        \"tipoContingencia\": null,\n        \"motivoContin\": null,\n        \"fecEmi\": \"2024-05-06\",\n        \"horEmi\": \"17:18:38\",\n        \"tipoMoneda\": \"USD\"\n    },\n    \"auditoria\": {\n        \"usu_creacion\": \"1\",\n        \"usu_modificacion\": \"1\",\n        \"fecha_creacion\": \"2024-05-06 17:18:38\",\n        \"fecha_modificacion\": \"2024-05-06 17:18:38\",\n        \"estado\": \"1\"\n    },\n    \"documentoRelacionado\": null,\n    \"emisor\": {\n        \"nit\": \"0614-030596-102-5\",\n        \"nrc\": \"149-123\",\n        \"nombre\": \"Grupo Satelite \",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"nombreComercial\": \"Grupo Satelite \",\n        \"tipoEstablecimiento\": \"02\",\n        \"direccion\": {\n            \"departamento\": \"06\",\n            \"municipio\": \"617\",\n            \"complemento\": \"75 y 79 Av Sur Col. Escalón, San Salvador, El Salvador\"\n        },\n        \"telefono\": \"2264-8310\",\n        \"correo\": \"info@gruposatelite.net\",\n        \"codEstable\": null,\n        \"codPuntoVenta\": null,\n        \"codEstableMH\": null,\n        \"codPuntoVentaMH\": null\n    },\n    \"receptor\": {\n        \"nrc\": null,\n        \"nombre\": \"Contado\",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"direccion\": {\n            \"departamento\": null,\n            \"municipio\": null,\n            \"complemento\": \"\"\n        },\n        \"telefono\": \"\",\n        \"correo\": \"\",\n        \"nombreComercial\": \"\",\n        \"nit\": null\n    },\n    \"cuerpoDocumento\": [\n        {\n            \"numltem\": 1,\n            \"tipoltem\": \"1\",\n            \"codigo\": \"051 070\",\n            \"descripcion\": \"Queso\",\n            \"uniMedida\": \"58\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 1,\n            \"precioUni\": 2.5,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 2.5,\n            \"ventaNoSuj\": 0,\n            \"tributos\": null,\n            \"ventaExenta\": 0\n        },\n        {\n            \"numltem\": 2,\n            \"tipoltem\": \"1\",\n            \"codigo\": \"02 070\",\n            \"descripcion\": \"Leche semidescremada\",\n            \"uniMedida\": \"58\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 1,\n            \"precioUni\": 2.25,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 2.25,\n            \"ventaNoSuj\": 0,\n            \"tributos\": null,\n            \"ventaExenta\": 0\n        }\n    ],\n    \"resumen\": {\n        \"totalNoSuj\": 0,\n        \"totalExenta\": 0,\n        \"totalGravada\": 0,\n        \"subTotalVentas\": 0,\n        \"descuNoSuj\": 0,\n        \"descuExenta\": 0,\n        \"descuGravada\": 0,\n        \"porcentajeDescuento\": 0,\n        \"totalDescu\": \"0.000000\",\n        \"subTotal\": \"4.75\",\n        \"ivaPerci1\": 0,\n        \"ivaRete1\": 0,\n        \"reteRenta\": 0,\n        \"montoTotalOperacion\": 0,\n        \"totalNoGravado\": 0,\n        \"totalPagar\": 0,\n        \"totalLetras\": \"CINCO CON 37\\/100 DOLARES\",\n        \"saldoFavor\": 0,\n        \"condicionOperacion\": 1,\n        \"pagos\": null,\n        \"numPagoElectronico\": null\n    },\n    \"extensión\": {\n        \"nombEntrega\": \"\",\n        \"docufintreqa\": \"\",\n        \"nornbkeclbe\": \"\",\n        \"docukecibe\": \"\",\n        \"placaVehiculo\": \"\",\n        \"observaciones\": \"\"\n    },\n    \"apéndice\": null\n}', 'No se pudo encontrar el documento | Revisa el que el codigo de generacion sea el correcto', 'C59A864A-BC4B-4835-A5D7-2AFD07377C67', 0, 0, '1', 0, 0.00, 4.75, 0.000000, 0.62, 5.37, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 5.37, 0.00, NULL, '2023-07-31 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2025-02-26 13:15:06', '2024-05-06 17:18:38', 1);
INSERT INTO `fac_factura` VALUES (164, 28, 20, 17, 1, 1, NULL, 3, NULL, 1, NULL, NULL, 172, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 4, '2023-07-31 17:47:09', '2023-07-31 00:00:00', NULL, 'Cliente Contado', NULL, 1, 'FA7CDFAD-1A5A-AF83-70EB-EDA47A1FF1C3', 'DTE-01-S001P001-000000000000004', NULL, '{\n    \"identificacion\": {\n        \"version\": 1,\n        \"ambiente\": \"00\",\n        \"tipoDte\": \"01\",\n        \"numeroControl\": \"DTE-01-S001P001-000000000000004\",\n        \"codigoGeneracion\": \"FA7CDFAD-1A5A-AF83-70EB-EDA47A1FF1C3\",\n        \"tipoModelo\": 1,\n        \"tipoOperacion\": 1,\n        \"tipoContingencia\": null,\n        \"motivoContin\": null,\n        \"fecEmi\": \"2024-05-09\",\n        \"horEmi\": \"17:47:09\",\n        \"tipoMoneda\": \"USD\"\n    },\n    \"auditoria\": {\n        \"usu_creacion\": \"1\",\n        \"usu_modificacion\": \"1\",\n        \"fecha_creacion\": \"2024-05-09 17:47:09\",\n        \"fecha_modificacion\": \"2024-05-09 17:47:09\",\n        \"estado\": \"1\"\n    },\n    \"documentoRelacionado\": null,\n    \"emisor\": {\n        \"nit\": \"0614-030596-102-5\",\n        \"nrc\": \"149-123\",\n        \"nombre\": \"Grupo Satelite \",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"nombreComercial\": \"Grupo Satelite \",\n        \"tipoEstablecimiento\": \"02\",\n        \"direccion\": {\n            \"departamento\": \"06\",\n            \"municipio\": \"617\",\n            \"complemento\": \"75 y 79 Av Sur Col. Escalón, San Salvador, El Salvador\"\n        },\n        \"telefono\": \"2264-8310\",\n        \"correo\": \"info@gruposatelite.net\",\n        \"codEstable\": null,\n        \"codPuntoVenta\": null,\n        \"codEstableMH\": null,\n        \"codPuntoVentaMH\": null\n    },\n    \"receptor\": {\n        \"nrc\": null,\n        \"nombre\": \"Contado\",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"direccion\": {\n            \"departamento\": null,\n            \"municipio\": null,\n            \"complemento\": \"\"\n        },\n        \"telefono\": \"\",\n        \"correo\": \"\",\n        \"nombreComercial\": \"\",\n        \"nit\": null\n    },\n    \"cuerpoDocumento\": [\n        {\n            \"numltem\": 1,\n            \"tipoltem\": \"1\",\n            \"codigo\": \"02 070\",\n            \"descripcion\": \"Leche semidescremada\",\n            \"uniMedida\": \"58\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 1,\n            \"precioUni\": 2.25,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 2.25,\n            \"ventaNoSuj\": 0,\n            \"tributos\": null,\n            \"ventaExenta\": 0\n        },\n        {\n            \"numltem\": 2,\n            \"tipoltem\": \"1\",\n            \"codigo\": \"051 070\",\n            \"descripcion\": \"Queso\",\n            \"uniMedida\": \"58\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 1,\n            \"precioUni\": 2.5,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 2.5,\n            \"ventaNoSuj\": 0,\n            \"tributos\": null,\n            \"ventaExenta\": 0\n        }\n    ],\n    \"resumen\": {\n        \"totalNoSuj\": 0,\n        \"totalExenta\": 0,\n        \"totalGravada\": 0,\n        \"subTotalVentas\": 0,\n        \"descuNoSuj\": 0,\n        \"descuExenta\": 0,\n        \"descuGravada\": 0,\n        \"porcentajeDescuento\": 0,\n        \"totalDescu\": \"0.000000\",\n        \"subTotal\": \"4.75\",\n        \"ivaPerci1\": 0,\n        \"ivaRete1\": 0,\n        \"reteRenta\": 0,\n        \"montoTotalOperacion\": 0,\n        \"totalNoGravado\": 0,\n        \"totalPagar\": 0,\n        \"totalLetras\": \"CINCO CON 37\\/100 DOLARES\",\n        \"saldoFavor\": 0,\n        \"condicionOperacion\": 1,\n        \"pagos\": null,\n        \"numPagoElectronico\": null\n    },\n    \"extensión\": {\n        \"nombEntrega\": \"\",\n        \"docufintreqa\": \"\",\n        \"nornbkeclbe\": \"\",\n        \"docukecibe\": \"\",\n        \"placaVehiculo\": \"\",\n        \"observaciones\": \"\"\n    },\n    \"apéndice\": null\n}', 'No se pudo encontrar el documento | Revisa el que el codigo de generacion sea el correcto', '68E18CA0-BC80-4E34-8F6E-77C81E3C09B8', 0, 0, '1', 0, 0.00, 4.75, 0.000000, 0.62, 5.37, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 5.37, 0.00, NULL, '2023-07-31 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2025-02-26 13:15:07', '2024-05-09 17:47:09', 1);
INSERT INTO `fac_factura` VALUES (165, 28, 20, 17, 1, 1, NULL, 3, NULL, 1, NULL, NULL, 174, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 5, '2024-05-11 10:26:35', '2024-05-11 00:00:00', NULL, 'Cliente Contado', NULL, 1, '9766527F-2B5D-3E95-D4A7-33FCFB77BD7E', 'DTE-01-S001P001-000000000000005', NULL, '{\n    \"identificacion\": {\n        \"version\": 1,\n        \"ambiente\": \"00\",\n        \"tipoDte\": \"01\",\n        \"numeroControl\": \"DTE-01-S001P001-000000000000005\",\n        \"codigoGeneracion\": \"9766527F-2B5D-3E95-D4A7-33FCFB77BD7E\",\n        \"tipoModelo\": 1,\n        \"tipoOperacion\": 1,\n        \"tipoContingencia\": null,\n        \"motivoContin\": null,\n        \"fecEmi\": \"2024-05-11\",\n        \"horEmi\": \"10:26:35\",\n        \"tipoMoneda\": \"USD\"\n    },\n    \"auditoria\": {\n        \"usu_creacion\": \"1\",\n        \"usu_modificacion\": \"1\",\n        \"fecha_creacion\": \"2024-05-11 10:26:35\",\n        \"fecha_modificacion\": \"2024-05-11 10:26:35\",\n        \"estado\": \"1\"\n    },\n    \"documentoRelacionado\": null,\n    \"emisor\": {\n        \"nit\": \"0614-030596-102-5\",\n        \"nrc\": \"149-123\",\n        \"nombre\": \"Grupo Satelite \",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"nombreComercial\": \"Grupo Satelite \",\n        \"tipoEstablecimiento\": \"02\",\n        \"direccion\": {\n            \"departamento\": \"06\",\n            \"municipio\": \"617\",\n            \"complemento\": \"75 y 79 Av Sur Col. Escalón, San Salvador, El Salvador\"\n        },\n        \"telefono\": \"2264-8310\",\n        \"correo\": \"info@gruposatelite.net\",\n        \"codEstable\": null,\n        \"codPuntoVenta\": null,\n        \"codEstableMH\": null,\n        \"codPuntoVentaMH\": null\n    },\n    \"receptor\": {\n        \"nrc\": null,\n        \"nombre\": \"Contado\",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"direccion\": {\n            \"departamento\": null,\n            \"municipio\": null,\n            \"complemento\": \"\"\n        },\n        \"telefono\": \"\",\n        \"correo\": \"\",\n        \"nombreComercial\": \"\",\n        \"nit\": null\n    },\n    \"cuerpoDocumento\": [\n        {\n            \"numltem\": 1,\n            \"tipoltem\": \"1\",\n            \"codigo\": \"051 070\",\n            \"descripcion\": \"Queso\",\n            \"uniMedida\": \"58\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 1,\n            \"precioUni\": 2.5,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 2.5,\n            \"ventaNoSuj\": 0,\n            \"tributos\": null,\n            \"ventaExenta\": 0\n        },\n        {\n            \"numltem\": 2,\n            \"tipoltem\": \"1\",\n            \"codigo\": \"02 070\",\n            \"descripcion\": \"Leche semidescremada\",\n            \"uniMedida\": \"58\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 1,\n            \"precioUni\": 2.25,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 2.25,\n            \"ventaNoSuj\": 0,\n            \"tributos\": null,\n            \"ventaExenta\": 0\n        }\n    ],\n    \"resumen\": {\n        \"totalNoSuj\": 0,\n        \"totalExenta\": 0,\n        \"totalGravada\": 0,\n        \"subTotalVentas\": 0,\n        \"descuNoSuj\": 0,\n        \"descuExenta\": 0,\n        \"descuGravada\": 0,\n        \"porcentajeDescuento\": 0,\n        \"totalDescu\": \"0.000000\",\n        \"subTotal\": \"4.75\",\n        \"ivaPerci1\": 0,\n        \"ivaRete1\": 0,\n        \"reteRenta\": 0,\n        \"montoTotalOperacion\": 0,\n        \"totalNoGravado\": 0,\n        \"totalPagar\": 0,\n        \"totalLetras\": \"CINCO CON 37\\/100 DOLARES\",\n        \"saldoFavor\": 0,\n        \"condicionOperacion\": 1,\n        \"pagos\": null,\n        \"numPagoElectronico\": null\n    },\n    \"extensión\": {\n        \"nombEntrega\": \"\",\n        \"docufintreqa\": \"\",\n        \"nornbkeclbe\": \"\",\n        \"docukecibe\": \"\",\n        \"placaVehiculo\": \"\",\n        \"observaciones\": \"\"\n    },\n    \"apéndice\": null\n}', 'No se pudo encontrar el documento | Revisa el que el codigo de generacion sea el correcto', '207B63C5-5C2E-4714-A78E-B8303175BAB9', 0, 0, '1', 0, 0.00, 4.75, 0.000000, 0.62, 5.37, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 5.37, 0.00, NULL, '2024-05-11 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2025-02-26 13:15:07', '2024-05-11 10:26:35', 1);
INSERT INTO `fac_factura` VALUES (166, 22, 6, 18, 1, 1, NULL, 1, NULL, 1, NULL, NULL, 174, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 5, '2024-05-11 10:51:16', '2024-05-11 00:00:00', NULL, 'Raul Ernesto Colindres', NULL, 1, '7E7757B1-E12A-BCB7-36AB-9A754FFB617A', 'DTE-01-S001P001-000000000000005', NULL, '{\n    \"identificacion\": {\n        \"version\": 1,\n        \"ambiente\": \"00\",\n        \"tipoDte\": \"03\",\n        \"numeroControl\": \"DTE-01-S001P001-000000000000005\",\n        \"codigoGeneracion\": \"7E7757B1-E12A-BCB7-36AB-9A754FFB617A\",\n        \"tipoModelo\": 1,\n        \"tipoOperacion\": 1,\n        \"tipoContingencia\": null,\n        \"motivoContin\": null,\n        \"fecEmi\": \"2024-05-11\",\n        \"horEmi\": \"10:51:16\",\n        \"tipoMoneda\": \"USD\"\n    },\n    \"auditoria\": {\n        \"usu_creacion\": \"1\",\n        \"usu_modificacion\": \"1\",\n        \"fecha_creacion\": \"2024-05-11 10:51:16\",\n        \"fecha_modificacion\": \"2024-05-11 10:51:16\",\n        \"estado\": \"2\"\n    },\n    \"documentoRelacionado\": null,\n    \"emisor\": {\n        \"nit\": \"0614-030596-102-5\",\n        \"nrc\": \"149-123\",\n        \"nombre\": \"Grupo Satelite \",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"nombreComercial\": \"Grupo Satelite \",\n        \"tipoEstablecimiento\": \"02\",\n        \"direccion\": {\n            \"departamento\": \"06\",\n            \"municipio\": \"617\",\n            \"complemento\": \"75 y 79 Av Sur Col. Escalón, San Salvador, El Salvador\"\n        },\n        \"telefono\": \"2264-8310\",\n        \"correo\": \"info@gruposatelite.net\",\n        \"codEstable\": null,\n        \"codPuntoVenta\": null,\n        \"codEstableMH\": null,\n        \"codPuntoVentaMH\": null\n    },\n    \"receptor\": {\n        \"nrc\": \"558\",\n        \"nombre\": \"Raul Ernesto Colindres Raul Ernesto Colindres\",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"direccion\": {\n            \"departamento\": \"06\",\n            \"municipio\": \"602\",\n            \"complemento\": \"\"\n        },\n        \"telefono\": \"\",\n        \"correo\": \"colindres@gmial.com\",\n        \"nombreComercial\": \"\",\n        \"nit\": null\n    },\n    \"cuerpoDocumento\": [\n        {\n            \"numltem\": 1,\n            \"tipoltem\": \"1\",\n            \"codigo\": \"0012005\",\n            \"descripcion\": \"Solvente para preparación de soluciones parentenales\",\n            \"uniMedida\": \"58\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 10,\n            \"precioUni\": 2.825,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 28.25,\n            \"ventaNoSuj\": 0,\n            \"tributos\": null,\n            \"ventaExenta\": 0\n        }\n    ],\n    \"resumen\": {\n        \"totalNoSuj\": 0,\n        \"totalExenta\": 0,\n        \"totalGravada\": 0,\n        \"subTotalVentas\": 0,\n        \"descuNoSuj\": 0,\n        \"descuExenta\": 0,\n        \"descuGravada\": 0,\n        \"porcentajeDescuento\": 0,\n        \"totalDescu\": \"0.000000\",\n        \"subTotal\": \"25.00\",\n        \"ivaPerci1\": 0,\n        \"ivaRete1\": 0,\n        \"reteRenta\": 0,\n        \"montoTotalOperacion\": 0,\n        \"totalNoGravado\": 0,\n        \"totalPagar\": 0,\n        \"totalLetras\": \"VEINTIOCHO CON 25\\/100 DOLARES\",\n        \"saldoFavor\": 0,\n        \"condicionOperacion\": 1,\n        \"pagos\": null,\n        \"numPagoElectronico\": null\n    },\n    \"extensión\": {\n        \"nombEntrega\": \"\",\n        \"docufintreqa\": \"\",\n        \"nornbkeclbe\": \"\",\n        \"docukecibe\": \"\",\n        \"placaVehiculo\": \"\",\n        \"observaciones\": \"\"\n    },\n    \"apéndice\": null\n}', 'No se pudo encontrar el documento | Revisa el que el codigo de generacion sea el correcto', '19F2DE73-DF16-4673-A40E-4BF7DC434798', 0, 0, '1', 0, 0.00, 25.00, 0.000000, 3.25, 28.25, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 0.00, 28.25, NULL, '2024-05-11 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2025-02-26 13:15:03', '2024-05-11 10:51:16', 1);
INSERT INTO `fac_factura` VALUES (167, 28, 20, 17, 1, 1, NULL, 3, NULL, 1, NULL, NULL, 174, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 6, '2024-05-11 11:09:41', '2024-05-11 00:00:00', NULL, 'Cliente Contado', NULL, 1, '5878A7AB-84FB-4340-2106-C575658472FA', 'DTE-01-S001P001-000000000000006', NULL, '{\n    \"identificacion\": {\n        \"version\": 1,\n        \"ambiente\": \"00\",\n        \"tipoDte\": \"01\",\n        \"numeroControl\": \"DTE-01-S001P001-000000000000006\",\n        \"codigoGeneracion\": \"5878A7AB-84FB-4340-2106-C575658472FA\",\n        \"tipoModelo\": 1,\n        \"tipoOperacion\": 1,\n        \"tipoContingencia\": null,\n        \"motivoContin\": null,\n        \"fecEmi\": \"2024-05-11\",\n        \"horEmi\": \"11:09:41\",\n        \"tipoMoneda\": \"USD\"\n    },\n    \"auditoria\": {\n        \"usu_creacion\": \"1\",\n        \"usu_modificacion\": \"1\",\n        \"fecha_creacion\": \"2024-05-11 11:09:41\",\n        \"fecha_modificacion\": \"2024-05-11 11:09:41\",\n        \"estado\": \"1\"\n    },\n    \"documentoRelacionado\": null,\n    \"emisor\": {\n        \"nit\": \"0614-030596-102-5\",\n        \"nrc\": \"149-123\",\n        \"nombre\": \"Grupo Satelite \",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"nombreComercial\": \"Grupo Satelite \",\n        \"tipoEstablecimiento\": \"02\",\n        \"direccion\": {\n            \"departamento\": \"06\",\n            \"municipio\": \"617\",\n            \"complemento\": \"75 y 79 Av Sur Col. Escalón, San Salvador, El Salvador\"\n        },\n        \"telefono\": \"2264-8310\",\n        \"correo\": \"info@gruposatelite.net\",\n        \"codEstable\": null,\n        \"codPuntoVenta\": null,\n        \"codEstableMH\": null,\n        \"codPuntoVentaMH\": null\n    },\n    \"receptor\": {\n        \"nrc\": null,\n        \"nombre\": \"Contado\",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"direccion\": {\n            \"departamento\": null,\n            \"municipio\": null,\n            \"complemento\": \"\"\n        },\n        \"telefono\": \"\",\n        \"correo\": \"\",\n        \"nombreComercial\": \"\",\n        \"nit\": null\n    },\n    \"cuerpoDocumento\": [\n        {\n            \"numltem\": 1,\n            \"tipoltem\": \"1\",\n            \"codigo\": \"051 070\",\n            \"descripcion\": \"Queso\",\n            \"uniMedida\": \"58\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 1,\n            \"precioUni\": 2.5,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 2.5,\n            \"ventaNoSuj\": 0,\n            \"tributos\": null,\n            \"ventaExenta\": 0\n        },\n        {\n            \"numltem\": 2,\n            \"tipoltem\": \"1\",\n            \"codigo\": \"02 070\",\n            \"descripcion\": \"Leche semidescremada\",\n            \"uniMedida\": \"58\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 2,\n            \"precioUni\": 2.25,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 4.5,\n            \"ventaNoSuj\": 0,\n            \"tributos\": null,\n            \"ventaExenta\": 0\n        }\n    ],\n    \"resumen\": {\n        \"totalNoSuj\": 0,\n        \"totalExenta\": 0,\n        \"totalGravada\": 0,\n        \"subTotalVentas\": 0,\n        \"descuNoSuj\": 0,\n        \"descuExenta\": 0,\n        \"descuGravada\": 0,\n        \"porcentajeDescuento\": 0,\n        \"totalDescu\": \"0.000000\",\n        \"subTotal\": \"7.00\",\n        \"ivaPerci1\": 0,\n        \"ivaRete1\": 0,\n        \"reteRenta\": 0,\n        \"montoTotalOperacion\": 0,\n        \"totalNoGravado\": 0,\n        \"totalPagar\": 0,\n        \"totalLetras\": \"SIETE CON 91\\/100 DOLARES\",\n        \"saldoFavor\": 0,\n        \"condicionOperacion\": 1,\n        \"pagos\": null,\n        \"numPagoElectronico\": null\n    },\n    \"extensión\": {\n        \"nombEntrega\": \"\",\n        \"docufintreqa\": \"\",\n        \"nornbkeclbe\": \"\",\n        \"docukecibe\": \"\",\n        \"placaVehiculo\": \"\",\n        \"observaciones\": \"\"\n    },\n    \"apéndice\": null\n}', 'No se pudo encontrar el documento | Revisa el que el codigo de generacion sea el correcto', '0006CFA3-842E-4C9F-A142-25D4F609E1FA', 0, 0, '1', 0, 0.00, 7.00, 0.000000, 0.91, 7.91, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 7.91, 0.00, NULL, '2024-05-11 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2025-02-26 13:15:07', '2024-05-11 11:09:41', 1);
INSERT INTO `fac_factura` VALUES (168, 28, 20, 17, 1, 1, NULL, 3, NULL, 1, NULL, NULL, 174, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 7, '2024-05-11 12:00:04', '2024-05-11 00:00:00', NULL, 'Cliente Contado', NULL, 1, '006F52E9-102A-8D3B-E2FE-5614F42BA989', 'DTE-01-S001P001-000000000000007', NULL, '{\n    \"identificacion\": {\n        \"version\": 1,\n        \"ambiente\": \"00\",\n        \"tipoDte\": \"01\",\n        \"numeroControl\": \"DTE-01-S001P001-000000000000007\",\n        \"codigoGeneracion\": \"006F52E9-102A-8D3B-E2FE-5614F42BA989\",\n        \"tipoModelo\": 1,\n        \"tipoOperacion\": 1,\n        \"tipoContingencia\": null,\n        \"motivoContin\": null,\n        \"fecEmi\": \"2024-05-11\",\n        \"horEmi\": \"12:00:04\",\n        \"tipoMoneda\": \"USD\"\n    },\n    \"auditoria\": {\n        \"usu_creacion\": \"1\",\n        \"usu_modificacion\": \"1\",\n        \"fecha_creacion\": \"2024-05-11 12:00:04\",\n        \"fecha_modificacion\": \"2024-05-11 12:00:04\",\n        \"estado\": \"2\"\n    },\n    \"documentoRelacionado\": null,\n    \"emisor\": {\n        \"nit\": \"0614-030596-102-5\",\n        \"nrc\": \"149-123\",\n        \"nombre\": \"Grupo Satelite \",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"nombreComercial\": \"Grupo Satelite \",\n        \"tipoEstablecimiento\": \"02\",\n        \"direccion\": {\n            \"departamento\": \"06\",\n            \"municipio\": \"617\",\n            \"complemento\": \"75 y 79 Av Sur Col. Escalón, San Salvador, El Salvador\"\n        },\n        \"telefono\": \"2264-8310\",\n        \"correo\": \"info@gruposatelite.net\",\n        \"codEstable\": null,\n        \"codPuntoVenta\": null,\n        \"codEstableMH\": null,\n        \"codPuntoVentaMH\": null\n    },\n    \"receptor\": {\n        \"nrc\": null,\n        \"nombre\": \"Contado\",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"direccion\": {\n            \"departamento\": null,\n            \"municipio\": null,\n            \"complemento\": \"\"\n        },\n        \"telefono\": \"\",\n        \"correo\": \"\",\n        \"nombreComercial\": \"\",\n        \"nit\": null\n    },\n    \"cuerpoDocumento\": [\n        {\n            \"numltem\": 1,\n            \"tipoltem\": \"1\",\n            \"codigo\": \"051 070\",\n            \"descripcion\": \"Queso\",\n            \"uniMedida\": \"58\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 3,\n            \"precioUni\": 2.5,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 7.5,\n            \"ventaNoSuj\": 0,\n            \"tributos\": null,\n            \"ventaExenta\": 0\n        },\n        {\n            \"numltem\": 2,\n            \"tipoltem\": \"1\",\n            \"codigo\": \"02 070\",\n            \"descripcion\": \"Leche semidescremada\",\n            \"uniMedida\": \"58\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 3,\n            \"precioUni\": 2.25,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 6.75,\n            \"ventaNoSuj\": 0,\n            \"tributos\": null,\n            \"ventaExenta\": 0\n        }\n    ],\n    \"resumen\": {\n        \"totalNoSuj\": 0,\n        \"totalExenta\": 0,\n        \"totalGravada\": 0,\n        \"subTotalVentas\": 0,\n        \"descuNoSuj\": 0,\n        \"descuExenta\": 0,\n        \"descuGravada\": 0,\n        \"porcentajeDescuento\": 0,\n        \"totalDescu\": \"0.000000\",\n        \"subTotal\": \"14.25\",\n        \"ivaPerci1\": 0,\n        \"ivaRete1\": 0,\n        \"reteRenta\": 0,\n        \"montoTotalOperacion\": 0,\n        \"totalNoGravado\": 0,\n        \"totalPagar\": 0,\n        \"totalLetras\": \"DIECISEIS CON 10\\/100 DOLARES\",\n        \"saldoFavor\": 0,\n        \"condicionOperacion\": 1,\n        \"pagos\": null,\n        \"numPagoElectronico\": null\n    },\n    \"extensión\": {\n        \"nombEntrega\": \"\",\n        \"docufintreqa\": \"\",\n        \"nornbkeclbe\": \"\",\n        \"docukecibe\": \"\",\n        \"placaVehiculo\": \"\",\n        \"observaciones\": \"\"\n    },\n    \"apéndice\": null\n}', 'No se pudo encontrar el documento | Revisa el que el codigo de generacion sea el correcto', '8DE4542E-8E2E-4831-B810-E4B8D7070B0D', 0, 0, '1', 0, 0.00, 14.25, 0.000000, 1.85, 16.10, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 0.00, 16.10, NULL, '2024-05-11 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2025-02-26 13:15:07', '2024-05-11 12:00:04', 1);
INSERT INTO `fac_factura` VALUES (169, 28, 20, 17, 1, 1, NULL, 3, NULL, 1, NULL, NULL, 174, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 8, '2024-05-11 12:22:54', '2024-05-11 00:00:00', NULL, 'Cliente Contado', NULL, 1, '36366388-1777-2E42-B59D-74CFF571FBB3', 'DTE-01-S001P001-000000000000008', NULL, '{\n    \"identificacion\": {\n        \"version\": 1,\n        \"ambiente\": \"00\",\n        \"tipoDte\": \"01\",\n        \"numeroControl\": \"DTE-01-S001P001-000000000000008\",\n        \"codigoGeneracion\": \"36366388-1777-2E42-B59D-74CFF571FBB3\",\n        \"tipoModelo\": 1,\n        \"tipoOperacion\": 1,\n        \"tipoContingencia\": null,\n        \"motivoContin\": null,\n        \"fecEmi\": \"2024-05-11\",\n        \"horEmi\": \"12:22:54\",\n        \"tipoMoneda\": \"USD\"\n    },\n    \"auditoria\": {\n        \"usu_creacion\": \"1\",\n        \"usu_modificacion\": \"1\",\n        \"fecha_creacion\": \"2024-05-11 12:22:54\",\n        \"fecha_modificacion\": \"2024-05-11 12:22:54\",\n        \"estado\": \"2\"\n    },\n    \"documentoRelacionado\": null,\n    \"emisor\": {\n        \"nit\": \"0614-030596-102-5\",\n        \"nrc\": \"149-123\",\n        \"nombre\": \"Grupo Satelite \",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"nombreComercial\": \"Grupo Satelite \",\n        \"tipoEstablecimiento\": \"02\",\n        \"direccion\": {\n            \"departamento\": \"06\",\n            \"municipio\": \"617\",\n            \"complemento\": \"75 y 79 Av Sur Col. Escalón, San Salvador, El Salvador\"\n        },\n        \"telefono\": \"2264-8310\",\n        \"correo\": \"info@gruposatelite.net\",\n        \"codEstable\": null,\n        \"codPuntoVenta\": null,\n        \"codEstableMH\": null,\n        \"codPuntoVentaMH\": null\n    },\n    \"receptor\": {\n        \"nrc\": null,\n        \"nombre\": \"Contado\",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"direccion\": {\n            \"departamento\": null,\n            \"municipio\": null,\n            \"complemento\": \"\"\n        },\n        \"telefono\": \"\",\n        \"correo\": \"\",\n        \"nombreComercial\": \"\",\n        \"nit\": null\n    },\n    \"cuerpoDocumento\": [\n        {\n            \"numltem\": 1,\n            \"tipoltem\": \"1\",\n            \"codigo\": \"051 070\",\n            \"descripcion\": \"Queso\",\n            \"uniMedida\": \"58\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 1,\n            \"precioUni\": 2.5,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 2.5,\n            \"ventaNoSuj\": 0,\n            \"tributos\": null,\n            \"ventaExenta\": 0\n        },\n        {\n            \"numltem\": 2,\n            \"tipoltem\": \"1\",\n            \"codigo\": \"02 070\",\n            \"descripcion\": \"Leche semidescremada\",\n            \"uniMedida\": \"58\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 1,\n            \"precioUni\": 2.25,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 2.25,\n            \"ventaNoSuj\": 0,\n            \"tributos\": null,\n            \"ventaExenta\": 0\n        }\n    ],\n    \"resumen\": {\n        \"totalNoSuj\": 0,\n        \"totalExenta\": 0,\n        \"totalGravada\": 0,\n        \"subTotalVentas\": 0,\n        \"descuNoSuj\": 0,\n        \"descuExenta\": 0,\n        \"descuGravada\": 0,\n        \"porcentajeDescuento\": 0,\n        \"totalDescu\": \"0.000000\",\n        \"subTotal\": \"4.75\",\n        \"ivaPerci1\": 0,\n        \"ivaRete1\": 0,\n        \"reteRenta\": 0,\n        \"montoTotalOperacion\": 0,\n        \"totalNoGravado\": 0,\n        \"totalPagar\": 0,\n        \"totalLetras\": \"CINCO CON 37\\/100 DOLARES\",\n        \"saldoFavor\": 0,\n        \"condicionOperacion\": 1,\n        \"pagos\": null,\n        \"numPagoElectronico\": null\n    },\n    \"extensión\": {\n        \"nombEntrega\": \"\",\n        \"docufintreqa\": \"\",\n        \"nornbkeclbe\": \"\",\n        \"docukecibe\": \"\",\n        \"placaVehiculo\": \"\",\n        \"observaciones\": \"\"\n    },\n    \"apéndice\": null\n}', 'No se pudo encontrar el documento | Revisa el que el codigo de generacion sea el correcto', 'E19A4E85-EAB2-4273-A4E3-93ED168B6FB3', 0, 0, '1', 0, 0.00, 4.75, 0.000000, 0.62, 5.37, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 0.00, 5.37, NULL, '2024-05-11 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2025-02-26 13:15:07', '2024-05-11 12:22:54', 1);
INSERT INTO `fac_factura` VALUES (170, 28, 20, 17, 1, 1, NULL, 3, NULL, 1, NULL, NULL, 174, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 9, '2024-05-11 12:23:30', '2024-05-11 00:00:00', NULL, 'Cliente Contado', NULL, 1, '149E9677-A598-9FD3-42AE-44213DF68868', 'DTE-01-S001P001-000000000000009', NULL, '{\n    \"identificacion\": {\n        \"version\": 1,\n        \"ambiente\": \"00\",\n        \"tipoDte\": \"01\",\n        \"numeroControl\": \"DTE-01-S001P001-000000000000009\",\n        \"codigoGeneracion\": \"149E9677-A598-9FD3-42AE-44213DF68868\",\n        \"tipoModelo\": 1,\n        \"tipoOperacion\": 1,\n        \"tipoContingencia\": null,\n        \"motivoContin\": null,\n        \"fecEmi\": \"2024-05-11\",\n        \"horEmi\": \"12:23:30\",\n        \"tipoMoneda\": \"USD\"\n    },\n    \"auditoria\": {\n        \"usu_creacion\": \"1\",\n        \"usu_modificacion\": \"1\",\n        \"fecha_creacion\": \"2024-05-11 12:23:30\",\n        \"fecha_modificacion\": \"2024-05-11 12:23:30\",\n        \"estado\": \"2\"\n    },\n    \"documentoRelacionado\": null,\n    \"emisor\": {\n        \"nit\": \"0614-030596-102-5\",\n        \"nrc\": \"149-123\",\n        \"nombre\": \"Grupo Satelite \",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"nombreComercial\": \"Grupo Satelite \",\n        \"tipoEstablecimiento\": \"02\",\n        \"direccion\": {\n            \"departamento\": \"06\",\n            \"municipio\": \"617\",\n            \"complemento\": \"75 y 79 Av Sur Col. Escalón, San Salvador, El Salvador\"\n        },\n        \"telefono\": \"2264-8310\",\n        \"correo\": \"info@gruposatelite.net\",\n        \"codEstable\": null,\n        \"codPuntoVenta\": null,\n        \"codEstableMH\": null,\n        \"codPuntoVentaMH\": null\n    },\n    \"receptor\": {\n        \"nrc\": null,\n        \"nombre\": \"Contado\",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"direccion\": {\n            \"departamento\": null,\n            \"municipio\": null,\n            \"complemento\": \"\"\n        },\n        \"telefono\": \"\",\n        \"correo\": \"\",\n        \"nombreComercial\": \"\",\n        \"nit\": null\n    },\n    \"cuerpoDocumento\": [\n        {\n            \"numltem\": 1,\n            \"tipoltem\": \"1\",\n            \"codigo\": \"051 070\",\n            \"descripcion\": \"Queso\",\n            \"uniMedida\": \"58\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 1,\n            \"precioUni\": 2.5,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 2.5,\n            \"ventaNoSuj\": 0,\n            \"tributos\": null,\n            \"ventaExenta\": 0\n        }\n    ],\n    \"resumen\": {\n        \"totalNoSuj\": 0,\n        \"totalExenta\": 0,\n        \"totalGravada\": 0,\n        \"subTotalVentas\": 0,\n        \"descuNoSuj\": 0,\n        \"descuExenta\": 0,\n        \"descuGravada\": 0,\n        \"porcentajeDescuento\": 0,\n        \"totalDescu\": \"0.000000\",\n        \"subTotal\": \"2.50\",\n        \"ivaPerci1\": 0,\n        \"ivaRete1\": 0,\n        \"reteRenta\": 0,\n        \"montoTotalOperacion\": 0,\n        \"totalNoGravado\": 0,\n        \"totalPagar\": 0,\n        \"totalLetras\": \"DOS CON 83\\/100 DOLARES\",\n        \"saldoFavor\": 0,\n        \"condicionOperacion\": 1,\n        \"pagos\": null,\n        \"numPagoElectronico\": null\n    },\n    \"extensión\": {\n        \"nombEntrega\": \"\",\n        \"docufintreqa\": \"\",\n        \"nornbkeclbe\": \"\",\n        \"docukecibe\": \"\",\n        \"placaVehiculo\": \"\",\n        \"observaciones\": \"\"\n    },\n    \"apéndice\": null\n}', 'No se pudo encontrar el documento | Revisa el que el codigo de generacion sea el correcto', '4580EC0E-B638-48CD-8050-DD136F5DBE4C', 0, 0, '1', 0, 0.00, 2.50, 0.000000, 0.33, 2.83, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 0.00, 2.83, NULL, '2024-05-11 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2025-02-26 13:15:08', '2024-05-11 12:23:30', 1);
INSERT INTO `fac_factura` VALUES (171, 28, 20, 17, 1, 1, NULL, 3, NULL, 1, NULL, NULL, 174, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 10, '2024-05-11 12:25:40', '2024-05-11 00:00:00', NULL, 'Cliente Contado', NULL, 1, 'A4A042CF-4FD6-BFB4-7701-CBC8A1653ADA', 'DTE-01-S001P001-000000000000010', NULL, '{\n    \"identificacion\": {\n        \"version\": 1,\n        \"ambiente\": \"00\",\n        \"tipoDte\": \"01\",\n        \"numeroControl\": \"DTE-01-S001P001-000000000000010\",\n        \"codigoGeneracion\": \"A4A042CF-4FD6-BFB4-7701-CBC8A1653ADA\",\n        \"tipoModelo\": 1,\n        \"tipoOperacion\": 1,\n        \"tipoContingencia\": null,\n        \"motivoContin\": null,\n        \"fecEmi\": \"2024-05-11\",\n        \"horEmi\": \"12:25:40\",\n        \"tipoMoneda\": \"USD\"\n    },\n    \"auditoria\": {\n        \"usu_creacion\": \"1\",\n        \"usu_modificacion\": \"1\",\n        \"fecha_creacion\": \"2024-05-11 12:25:40\",\n        \"fecha_modificacion\": \"2024-05-11 12:25:40\",\n        \"estado\": \"1\"\n    },\n    \"documentoRelacionado\": null,\n    \"emisor\": {\n        \"nit\": \"0614-030596-102-5\",\n        \"nrc\": \"149-123\",\n        \"nombre\": \"Grupo Satelite \",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"nombreComercial\": \"Grupo Satelite \",\n        \"tipoEstablecimiento\": \"02\",\n        \"direccion\": {\n            \"departamento\": \"06\",\n            \"municipio\": \"617\",\n            \"complemento\": \"75 y 79 Av Sur Col. Escalón, San Salvador, El Salvador\"\n        },\n        \"telefono\": \"2264-8310\",\n        \"correo\": \"info@gruposatelite.net\",\n        \"codEstable\": null,\n        \"codPuntoVenta\": null,\n        \"codEstableMH\": null,\n        \"codPuntoVentaMH\": null\n    },\n    \"receptor\": {\n        \"nrc\": null,\n        \"nombre\": \"Contado\",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"direccion\": {\n            \"departamento\": null,\n            \"municipio\": null,\n            \"complemento\": \"\"\n        },\n        \"telefono\": \"\",\n        \"correo\": \"\",\n        \"nombreComercial\": \"\",\n        \"nit\": null\n    },\n    \"cuerpoDocumento\": [\n        {\n            \"numltem\": 1,\n            \"tipoltem\": \"1\",\n            \"codigo\": \"051 070\",\n            \"descripcion\": \"Queso\",\n            \"uniMedida\": \"58\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 1,\n            \"precioUni\": 2.5,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 2.5,\n            \"ventaNoSuj\": 0,\n            \"tributos\": null,\n            \"ventaExenta\": 0\n        }\n    ],\n    \"resumen\": {\n        \"totalNoSuj\": 0,\n        \"totalExenta\": 0,\n        \"totalGravada\": 0,\n        \"subTotalVentas\": 0,\n        \"descuNoSuj\": 0,\n        \"descuExenta\": 0,\n        \"descuGravada\": 0,\n        \"porcentajeDescuento\": 0,\n        \"totalDescu\": \"0.000000\",\n        \"subTotal\": \"2.50\",\n        \"ivaPerci1\": 0,\n        \"ivaRete1\": 0,\n        \"reteRenta\": 0,\n        \"montoTotalOperacion\": 0,\n        \"totalNoGravado\": 0,\n        \"totalPagar\": 0,\n        \"totalLetras\": \"DOS CON 83\\/100 DOLARES\",\n        \"saldoFavor\": 0,\n        \"condicionOperacion\": 1,\n        \"pagos\": null,\n        \"numPagoElectronico\": null\n    },\n    \"extensión\": {\n        \"nombEntrega\": \"\",\n        \"docufintreqa\": \"\",\n        \"nornbkeclbe\": \"\",\n        \"docukecibe\": \"\",\n        \"placaVehiculo\": \"\",\n        \"observaciones\": \"\"\n    },\n    \"apéndice\": null\n}', 'No se pudo encontrar el documento | Revisa el que el codigo de generacion sea el correcto', '3D7D6569-84F4-4B20-8B7B-B956BD52669D', 0, 0, '1', 0, 0.00, 2.50, 0.000000, 0.33, 2.83, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2.83, 0.00, NULL, '2024-05-11 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2025-02-26 13:15:08', '2024-05-11 12:25:40', 1);
INSERT INTO `fac_factura` VALUES (172, 28, 20, 17, 1, 1, NULL, 3, NULL, 1, NULL, NULL, 174, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 11, '2024-05-11 12:26:23', '2024-05-11 00:00:00', NULL, 'Cliente Contado', NULL, 1, '1FF8A7B5-DC7A-7D1F-0ED6-5AAA29C04B1E', 'DTE-01-S001P001-000000000000011', NULL, '{\n    \"identificacion\": {\n        \"version\": 1,\n        \"ambiente\": \"00\",\n        \"tipoDte\": \"01\",\n        \"numeroControl\": \"DTE-01-S001P001-000000000000011\",\n        \"codigoGeneracion\": \"1FF8A7B5-DC7A-7D1F-0ED6-5AAA29C04B1E\",\n        \"tipoModelo\": 1,\n        \"tipoOperacion\": 1,\n        \"tipoContingencia\": null,\n        \"motivoContin\": null,\n        \"fecEmi\": \"2024-05-11\",\n        \"horEmi\": \"12:26:23\",\n        \"tipoMoneda\": \"USD\"\n    },\n    \"auditoria\": {\n        \"usu_creacion\": \"1\",\n        \"usu_modificacion\": \"1\",\n        \"fecha_creacion\": \"2024-05-11 12:26:23\",\n        \"fecha_modificacion\": \"2024-05-11 12:26:23\",\n        \"estado\": \"1\"\n    },\n    \"documentoRelacionado\": null,\n    \"emisor\": {\n        \"nit\": \"0614-030596-102-5\",\n        \"nrc\": \"149-123\",\n        \"nombre\": \"Grupo Satelite \",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"nombreComercial\": \"Grupo Satelite \",\n        \"tipoEstablecimiento\": \"02\",\n        \"direccion\": {\n            \"departamento\": \"06\",\n            \"municipio\": \"617\",\n            \"complemento\": \"75 y 79 Av Sur Col. Escalón, San Salvador, El Salvador\"\n        },\n        \"telefono\": \"2264-8310\",\n        \"correo\": \"info@gruposatelite.net\",\n        \"codEstable\": null,\n        \"codPuntoVenta\": null,\n        \"codEstableMH\": null,\n        \"codPuntoVentaMH\": null\n    },\n    \"receptor\": {\n        \"nrc\": null,\n        \"nombre\": \"Contado\",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"direccion\": {\n            \"departamento\": null,\n            \"municipio\": null,\n            \"complemento\": \"\"\n        },\n        \"telefono\": \"\",\n        \"correo\": \"\",\n        \"nombreComercial\": \"\",\n        \"nit\": null\n    },\n    \"cuerpoDocumento\": [\n        {\n            \"numltem\": 1,\n            \"tipoltem\": \"1\",\n            \"codigo\": \"051 070\",\n            \"descripcion\": \"Queso\",\n            \"uniMedida\": \"58\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 1,\n            \"precioUni\": 2.5,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 2.5,\n            \"ventaNoSuj\": 0,\n            \"tributos\": null,\n            \"ventaExenta\": 0\n        }\n    ],\n    \"resumen\": {\n        \"totalNoSuj\": 0,\n        \"totalExenta\": 0,\n        \"totalGravada\": 0,\n        \"subTotalVentas\": 0,\n        \"descuNoSuj\": 0,\n        \"descuExenta\": 0,\n        \"descuGravada\": 0,\n        \"porcentajeDescuento\": 0,\n        \"totalDescu\": \"0.000000\",\n        \"subTotal\": \"2.50\",\n        \"ivaPerci1\": 0,\n        \"ivaRete1\": 0,\n        \"reteRenta\": 0,\n        \"montoTotalOperacion\": 0,\n        \"totalNoGravado\": 0,\n        \"totalPagar\": 0,\n        \"totalLetras\": \"DOS CON 83\\/100 DOLARES\",\n        \"saldoFavor\": 0,\n        \"condicionOperacion\": 1,\n        \"pagos\": null,\n        \"numPagoElectronico\": null\n    },\n    \"extensión\": {\n        \"nombEntrega\": \"\",\n        \"docufintreqa\": \"\",\n        \"nornbkeclbe\": \"\",\n        \"docukecibe\": \"\",\n        \"placaVehiculo\": \"\",\n        \"observaciones\": \"\"\n    },\n    \"apéndice\": null\n}', 'No se pudo encontrar el documento | Revisa el que el codigo de generacion sea el correcto', '246DCF34-1C8B-46A4-875E-312313F318CA', 0, 0, '1', 0, 0.00, 2.50, 0.000000, 0.33, 2.83, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 2.83, 0.00, NULL, '2024-05-11 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2025-02-26 13:15:08', '2024-05-11 12:26:23', 1);
INSERT INTO `fac_factura` VALUES (173, 28, 20, 17, 1, 1, NULL, 3, NULL, 1, NULL, NULL, 174, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 12, '2024-05-11 12:59:35', '2024-05-11 00:00:00', NULL, 'Cliente Contado', NULL, 1, 'F7E6C855-04CE-6E82-442C-770F7C8606F0', 'DTE-01-S001P001-000000000000012', NULL, '{\n    \"identificacion\": {\n        \"version\": 1,\n        \"ambiente\": \"00\",\n        \"tipoDte\": \"01\",\n        \"numeroControl\": \"DTE-01-S001P001-000000000000012\",\n        \"codigoGeneracion\": \"F7E6C855-04CE-6E82-442C-770F7C8606F0\",\n        \"tipoModelo\": 1,\n        \"tipoOperacion\": 1,\n        \"tipoContingencia\": null,\n        \"motivoContin\": null,\n        \"fecEmi\": \"2024-05-11\",\n        \"horEmi\": \"12:59:35\",\n        \"tipoMoneda\": \"USD\"\n    },\n    \"auditoria\": {\n        \"usu_creacion\": \"1\",\n        \"usu_modificacion\": \"1\",\n        \"fecha_creacion\": \"2024-05-11 12:59:35\",\n        \"fecha_modificacion\": \"2024-05-11 12:59:35\",\n        \"estado\": \"1\"\n    },\n    \"documentoRelacionado\": null,\n    \"emisor\": {\n        \"nit\": \"0614-030596-102-5\",\n        \"nrc\": \"149-123\",\n        \"nombre\": \"Grupo Satelite \",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"nombreComercial\": \"Grupo Satelite \",\n        \"tipoEstablecimiento\": \"02\",\n        \"direccion\": {\n            \"departamento\": \"06\",\n            \"municipio\": \"617\",\n            \"complemento\": \"75 y 79 Av Sur Col. Escalón, San Salvador, El Salvador\"\n        },\n        \"telefono\": \"2264-8310\",\n        \"correo\": \"info@gruposatelite.net\",\n        \"codEstable\": null,\n        \"codPuntoVenta\": null,\n        \"codEstableMH\": null,\n        \"codPuntoVentaMH\": null\n    },\n    \"receptor\": {\n        \"nrc\": null,\n        \"nombre\": \"Contado\",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"direccion\": {\n            \"departamento\": null,\n            \"municipio\": null,\n            \"complemento\": \"\"\n        },\n        \"telefono\": \"\",\n        \"correo\": \"\",\n        \"nombreComercial\": \"\",\n        \"nit\": null\n    },\n    \"cuerpoDocumento\": [\n        {\n            \"numltem\": 1,\n            \"tipoltem\": \"1\",\n            \"codigo\": \"051 070\",\n            \"descripcion\": \"Queso\",\n            \"uniMedida\": \"58\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 1,\n            \"precioUni\": 2.5,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 2.5,\n            \"ventaNoSuj\": 0,\n            \"tributos\": null,\n            \"ventaExenta\": 0\n        },\n        {\n            \"numltem\": 2,\n            \"tipoltem\": \"1\",\n            \"codigo\": \"02 070\",\n            \"descripcion\": \"Leche semidescremada\",\n            \"uniMedida\": \"58\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 1,\n            \"precioUni\": 2.25,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 2.25,\n            \"ventaNoSuj\": 0,\n            \"tributos\": null,\n            \"ventaExenta\": 0\n        }\n    ],\n    \"resumen\": {\n        \"totalNoSuj\": 0,\n        \"totalExenta\": 0,\n        \"totalGravada\": 0,\n        \"subTotalVentas\": 0,\n        \"descuNoSuj\": 0,\n        \"descuExenta\": 0,\n        \"descuGravada\": 0,\n        \"porcentajeDescuento\": 0,\n        \"totalDescu\": \"0.000000\",\n        \"subTotal\": \"4.75\",\n        \"ivaPerci1\": 0,\n        \"ivaRete1\": 0,\n        \"reteRenta\": 0,\n        \"montoTotalOperacion\": 0,\n        \"totalNoGravado\": 0,\n        \"totalPagar\": 0,\n        \"totalLetras\": \"CINCO CON 37\\/100 DOLARES\",\n        \"saldoFavor\": 0,\n        \"condicionOperacion\": 1,\n        \"pagos\": null,\n        \"numPagoElectronico\": null\n    },\n    \"extensión\": {\n        \"nombEntrega\": \"\",\n        \"docufintreqa\": \"\",\n        \"nornbkeclbe\": \"\",\n        \"docukecibe\": \"\",\n        \"placaVehiculo\": \"\",\n        \"observaciones\": \"\"\n    },\n    \"apéndice\": null\n}', 'No se pudo encontrar el documento | Revisa el que el codigo de generacion sea el correcto', 'A7521C9F-2553-44B9-9420-99B050B48369', 0, 0, '1', 0, 0.00, 4.75, 0.000000, 0.62, 5.37, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 5.37, 0.00, NULL, '2024-05-11 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2025-02-26 13:15:08', '2024-05-11 12:59:35', 1);
INSERT INTO `fac_factura` VALUES (174, 22, 6, 18, 1, 2, NULL, 1, NULL, 1, NULL, NULL, 174, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 6, '2024-05-11 15:34:19', '2024-05-11 00:00:00', NULL, 'Raul Ernesto Colindres', NULL, 1, 'BF822969-6F7A-3BB4-700C-FDDEF19FA23F', 'DTE-01-S001P001-000000000000006', NULL, '{\n    \"identificacion\": {\n        \"version\": 1,\n        \"ambiente\": \"00\",\n        \"tipoDte\": \"03\",\n        \"numeroControl\": \"DTE-01-S001P001-000000000000006\",\n        \"codigoGeneracion\": \"BF822969-6F7A-3BB4-700C-FDDEF19FA23F\",\n        \"tipoModelo\": 1,\n        \"tipoOperacion\": 1,\n        \"tipoContingencia\": null,\n        \"motivoContin\": null,\n        \"fecEmi\": \"2024-05-11\",\n        \"horEmi\": \"15:34:19\",\n        \"tipoMoneda\": \"USD\"\n    },\n    \"auditoria\": {\n        \"usu_creacion\": \"1\",\n        \"usu_modificacion\": \"1\",\n        \"fecha_creacion\": \"2024-05-11 15:34:19\",\n        \"fecha_modificacion\": \"2024-05-11 15:34:19\",\n        \"estado\": \"1\"\n    },\n    \"documentoRelacionado\": null,\n    \"emisor\": {\n        \"nit\": \"0614-030596-102-5\",\n        \"nrc\": \"149-123\",\n        \"nombre\": \"Grupo Satelite \",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"nombreComercial\": \"Grupo Satelite \",\n        \"tipoEstablecimiento\": \"02\",\n        \"direccion\": {\n            \"departamento\": \"06\",\n            \"municipio\": \"617\",\n            \"complemento\": \"75 y 79 Av Sur Col. Escalón, San Salvador, El Salvador\"\n        },\n        \"telefono\": \"2264-8310\",\n        \"correo\": \"info@gruposatelite.net\",\n        \"codEstable\": null,\n        \"codPuntoVenta\": null,\n        \"codEstableMH\": null,\n        \"codPuntoVentaMH\": null\n    },\n    \"receptor\": {\n        \"nrc\": \"558\",\n        \"nombre\": \"Raul Ernesto Colindres Raul Ernesto Colindres\",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"direccion\": {\n            \"departamento\": \"06\",\n            \"municipio\": \"602\",\n            \"complemento\": \"\"\n        },\n        \"telefono\": \"\",\n        \"correo\": \"colindres@gmial.com\",\n        \"nombreComercial\": \"\",\n        \"nit\": null\n    },\n    \"cuerpoDocumento\": [\n        {\n            \"numltem\": 1,\n            \"tipoltem\": \"1\",\n            \"codigo\": \"0012005\",\n            \"descripcion\": \"Solvente para preparación de soluciones parentenales\",\n            \"uniMedida\": \"58\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 10,\n            \"precioUni\": 2.825,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 28.25,\n            \"ventaNoSuj\": 0,\n            \"tributos\": null,\n            \"ventaExenta\": 0\n        },\n        {\n            \"numltem\": 2,\n            \"tipoltem\": \"1\",\n            \"codigo\": \"0012018\",\n            \"descripcion\": \"Jeringas\",\n            \"uniMedida\": \"58\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 100,\n            \"precioUni\": 1.695,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 169.5,\n            \"ventaNoSuj\": 0,\n            \"tributos\": null,\n            \"ventaExenta\": 0\n        }\n    ],\n    \"resumen\": {\n        \"totalNoSuj\": 0,\n        \"totalExenta\": 0,\n        \"totalGravada\": 0,\n        \"subTotalVentas\": 0,\n        \"descuNoSuj\": 0,\n        \"descuExenta\": 0,\n        \"descuGravada\": 0,\n        \"porcentajeDescuento\": 0,\n        \"totalDescu\": \"0.000000\",\n        \"subTotal\": \"175.00\",\n        \"totalIva\": \"22.75\",\n        \"ivaPerci1\": 0,\n        \"ivaRete1\": 0,\n        \"reteRenta\": 0,\n        \"montoTotalOperacion\": 0,\n        \"totalNoGravado\": 0,\n        \"totalPagar\": 0,\n        \"totalLetras\": \"CIENTO NOVENTA Y SIETE CON 75\\/100 DOLARES\",\n        \"saldoFavor\": 0,\n        \"condicionOperacion\": 1,\n        \"pagos\": null,\n        \"numPagoElectronico\": null\n    },\n    \"extensión\": {\n        \"nombEntrega\": \"\",\n        \"docufintreqa\": \"\",\n        \"nornbkeclbe\": \"\",\n        \"docukecibe\": \"\",\n        \"placaVehiculo\": \"\",\n        \"observaciones\": \"\"\n    },\n    \"apéndice\": null\n}', NULL, NULL, 0, 0, '1', 0, 0.00, 175.00, 0.000000, 22.75, 197.75, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 197.75, 0.00, NULL, '2024-05-11 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2024-05-11 15:34:19', '2024-05-11 15:34:19', 1);
INSERT INTO `fac_factura` VALUES (175, 22, 6, 18, 1, 2, NULL, 1, NULL, 1, NULL, NULL, 174, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 7, '2024-05-11 15:43:21', '2024-05-11 00:00:00', NULL, 'Raul Ernesto Colindres', NULL, 1, '82161242-827B-703E-6ACF-9C726942A1E4', 'DTE-01-S001P001-000000000000007', NULL, '{\n    \"identificacion\": {\n        \"version\": 1,\n        \"ambiente\": \"00\",\n        \"tipoDte\": \"03\",\n        \"numeroControl\": \"DTE-01-S001P001-000000000000007\",\n        \"codigoGeneracion\": \"82161242-827B-703E-6ACF-9C726942A1E4\",\n        \"tipoModelo\": 1,\n        \"tipoOperacion\": 1,\n        \"tipoContingencia\": null,\n        \"motivoContin\": null,\n        \"fecEmi\": \"2024-05-11\",\n        \"horEmi\": \"15:43:21\",\n        \"tipoMoneda\": \"USD\"\n    },\n    \"auditoria\": {\n        \"usu_creacion\": \"1\",\n        \"usu_modificacion\": \"1\",\n        \"fecha_creacion\": \"2024-05-11 15:43:21\",\n        \"fecha_modificacion\": \"2024-05-11 15:43:21\",\n        \"estado\": \"1\"\n    },\n    \"documentoRelacionado\": null,\n    \"emisor\": {\n        \"nit\": \"0614-030596-102-5\",\n        \"nrc\": \"149-123\",\n        \"nombre\": \"Grupo Satelite \",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"nombreComercial\": \"Grupo Satelite \",\n        \"tipoEstablecimiento\": \"02\",\n        \"direccion\": {\n            \"departamento\": \"06\",\n            \"municipio\": \"617\",\n            \"complemento\": \"75 y 79 Av Sur Col. Escalón, San Salvador, El Salvador\"\n        },\n        \"telefono\": \"2264-8310\",\n        \"correo\": \"info@gruposatelite.net\",\n        \"codEstable\": null,\n        \"codPuntoVenta\": null,\n        \"codEstableMH\": null,\n        \"codPuntoVentaMH\": null\n    },\n    \"receptor\": {\n        \"nrc\": \"558\",\n        \"nombre\": \"Raul Ernesto Colindres Raul Ernesto Colindres\",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"direccion\": {\n            \"departamento\": \"06\",\n            \"municipio\": \"602\",\n            \"complemento\": \"\"\n        },\n        \"telefono\": \"\",\n        \"correo\": \"colindres@gmial.com\",\n        \"nombreComercial\": \"\",\n        \"nit\": null\n    },\n    \"cuerpoDocumento\": [\n        {\n            \"numltem\": 1,\n            \"tipoltem\": \"1\",\n            \"codigo\": \"BEB004\",\n            \"descripcion\": \"Agua Tonica\",\n            \"uniMedida\": \"58\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 10,\n            \"precioUni\": 1.695,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 16.95,\n            \"ventaNoSuj\": 0,\n            \"tributos\": null,\n            \"ventaExenta\": 0\n        },\n        {\n            \"numltem\": 2,\n            \"tipoltem\": \"1\",\n            \"codigo\": \"0012018\",\n            \"descripcion\": \"Jeringas\",\n            \"uniMedida\": \"58\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 10,\n            \"precioUni\": 1.695,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 16.95,\n            \"ventaNoSuj\": 0,\n            \"tributos\": null,\n            \"ventaExenta\": 0\n        }\n    ],\n    \"resumen\": {\n        \"totalNoSuj\": 0,\n        \"totalExenta\": 0,\n        \"totalGravada\": 0,\n        \"subTotalVentas\": 0,\n        \"descuNoSuj\": 0,\n        \"descuExenta\": 0,\n        \"descuGravada\": 0,\n        \"porcentajeDescuento\": 0,\n        \"totalDescu\": \"0.000000\",\n        \"subTotal\": \"30.00\",\n        \"totalIva\": \"3.90\",\n        \"ivaPerci1\": 0,\n        \"ivaRete1\": 0,\n        \"reteRenta\": 0,\n        \"montoTotalOperacion\": 0,\n        \"totalNoGravado\": 0,\n        \"totalPagar\": 0,\n        \"totalLetras\": \"TREINTA Y TRES CON 90\\/100 DOLARES\",\n        \"saldoFavor\": 0,\n        \"condicionOperacion\": 1,\n        \"pagos\": null,\n        \"numPagoElectronico\": null\n    },\n    \"extensión\": {\n        \"nombEntrega\": \"\",\n        \"docufintreqa\": \"\",\n        \"nornbkeclbe\": \"\",\n        \"docukecibe\": \"\",\n        \"placaVehiculo\": \"\",\n        \"observaciones\": \"\"\n    },\n    \"apéndice\": null\n}', 'No se pudo encontrar el documento | Revisa el que el codigo de generacion sea el correcto', 'F88F3EE6-722B-4FF1-9A94-54503F0EED3C', 0, 0, '1', 0, 0.00, 30.00, 0.000000, 3.90, 33.90, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 33.90, 0.00, NULL, '2024-05-11 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2025-02-26 13:15:03', '2024-05-11 15:43:21', 1);
INSERT INTO `fac_factura` VALUES (176, 28, 20, 16, 1, 1, NULL, 13, NULL, 1, NULL, NULL, 174, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 3, '2024-05-11 15:49:59', '2024-05-11 00:00:00', NULL, 'Cliente Contado', NULL, 1, '38AF8613-4B65-D0F1-0FE3-3D30DD76442E', 'DTE-01-S001P001-000000000000003', NULL, '{\n    \"identificacion\": {\n        \"version\": 1,\n        \"ambiente\": \"00\",\n        \"tipoDte\": \"01\",\n        \"numeroControl\": \"DTE-01-S001P001-000000000000003\",\n        \"codigoGeneracion\": \"38AF8613-4B65-D0F1-0FE3-3D30DD76442E\",\n        \"tipoModelo\": 1,\n        \"tipoOperacion\": 1,\n        \"tipoContingencia\": null,\n        \"motivoContin\": null,\n        \"fecEmi\": \"2024-05-11\",\n        \"horEmi\": \"15:49:59\",\n        \"tipoMoneda\": \"USD\"\n    },\n    \"auditoria\": {\n        \"usu_creacion\": \"1\",\n        \"usu_modificacion\": \"1\",\n        \"fecha_creacion\": \"2024-05-11 15:49:59\",\n        \"fecha_modificacion\": \"2024-05-11 15:49:59\",\n        \"estado\": \"1\"\n    },\n    \"documentoRelacionado\": null,\n    \"emisor\": {\n        \"nit\": \"0614-030596-102-5\",\n        \"nrc\": \"149-123\",\n        \"nombre\": \"Grupo Satelite \",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"nombreComercial\": \"Grupo Satelite \",\n        \"tipoEstablecimiento\": \"02\",\n        \"direccion\": {\n            \"departamento\": \"06\",\n            \"municipio\": \"617\",\n            \"complemento\": \"75 y 79 Av Sur Col. Escalón, San Salvador, El Salvador\"\n        },\n        \"telefono\": \"2264-8310\",\n        \"correo\": \"info@gruposatelite.net\",\n        \"codEstable\": null,\n        \"codPuntoVenta\": null,\n        \"codEstableMH\": null,\n        \"codPuntoVentaMH\": null\n    },\n    \"receptor\": {\n        \"nrc\": null,\n        \"nombre\": \"Contado\",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"direccion\": {\n            \"departamento\": null,\n            \"municipio\": null,\n            \"complemento\": \"\"\n        },\n        \"telefono\": \"\",\n        \"correo\": \"\",\n        \"nombreComercial\": \"\",\n        \"nit\": null\n    },\n    \"cuerpoDocumento\": [\n        {\n            \"numltem\": 1,\n            \"tipoltem\": \"1\",\n            \"codigo\": \"0010003\",\n            \"descripcion\": \"Puyaso de res\",\n            \"uniMedida\": \"58\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 1,\n            \"precioUni\": 8,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 8,\n            \"ventaNoSuj\": 0,\n            \"tributos\": null,\n            \"ventaExenta\": 0\n        }\n    ],\n    \"resumen\": {\n        \"totalNoSuj\": 0,\n        \"totalExenta\": 0,\n        \"totalGravada\": 0,\n        \"subTotalVentas\": 0,\n        \"descuNoSuj\": 0,\n        \"descuExenta\": 0,\n        \"descuGravada\": 0,\n        \"porcentajeDescuento\": 0,\n        \"totalDescu\": \"0.000000\",\n        \"subTotal\": \"8.00\",\n        \"totalIva\": \"1.04\",\n        \"ivaPerci1\": 0,\n        \"ivaRete1\": 0,\n        \"reteRenta\": 0,\n        \"montoTotalOperacion\": 0,\n        \"totalNoGravado\": 0,\n        \"totalPagar\": 0,\n        \"totalLetras\": \"NUEVE CON 04\\/100 DOLARES\",\n        \"saldoFavor\": 0,\n        \"condicionOperacion\": 1,\n        \"pagos\": null,\n        \"numPagoElectronico\": null\n    },\n    \"extensión\": {\n        \"nombEntrega\": \"\",\n        \"docufintreqa\": \"\",\n        \"nornbkeclbe\": \"\",\n        \"docukecibe\": \"\",\n        \"placaVehiculo\": \"\",\n        \"observaciones\": \"\"\n    },\n    \"apéndice\": null\n}', 'No se pudo encontrar el documento | Revisa el que el codigo de generacion sea el correcto', '117F1343-76F4-4787-9C85-F338F9F53525', 0, 0, '1', 0, 0.00, 8.00, 0.000000, 1.04, 9.04, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 9.04, 0.00, NULL, '2024-05-11 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2025-02-26 13:15:08', '2024-05-11 15:49:59', 1);
INSERT INTO `fac_factura` VALUES (177, 28, 20, 17, 1, 1, NULL, 3, NULL, 1, NULL, NULL, 174, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 13, '2024-05-14 08:46:02', '2024-05-14 00:00:00', NULL, 'Cliente Contado', NULL, 1, '96DA2F59-0CD7-246B-BDE0-051047B0D6F7', 'DTE-01-S001P001-000000000000012', NULL, '{\n    \"identificacion\": {\n        \"version\": 1,\n        \"ambiente\": \"00\",\n        \"tipoDte\": \"01\",\n        \"numeroControl\": \"DTE-01-S001P001-000000000000012\",\n        \"codigoGeneracion\": \"96DA2F59-0CD7-246B-BDE0-051047B0D6F7\",\n        \"tipoModelo\": 1,\n        \"tipoOperacion\": 1,\n        \"tipoContingencia\": null,\n        \"motivoContin\": null,\n        \"fecEmi\": \"2024-05-14\",\n        \"horEmi\": \"08:46:02\",\n        \"tipoMoneda\": \"USD\"\n    },\n    \"documentoRelacionado\": null,\n    \"emisor\": {\n        \"nit\": \"06140305961025\",\n        \"nrc\": \"149123\",\n        \"nombre\": \"Grupo Satelite \",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"nombreComercial\": \"Grupo Satelite \",\n        \"tipoEstablecimiento\": \"02\",\n        \"direccion\": {\n            \"departamento\": \"06\",\n            \"municipio\": \"617\",\n            \"complemento\": \"75 y 79 Av Sur Col. Escalón, San Salvador, El Salvador\"\n        },\n        \"telefono\": \"2264-8310\",\n        \"correo\": \"info@gruposatelite.net\",\n        \"codEstable\": null,\n        \"codPuntoVenta\": null,\n        \"codEstableMH\": null,\n        \"codPuntoVentaMH\": null\n    },\n    \"receptor\": {\n        \"nrc\": \"\",\n        \"nombre\": \"Contado\",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"direccion\": {\n            \"departamento\": null,\n            \"municipio\": null,\n            \"complemento\": \"\"\n        },\n        \"telefono\": \"\",\n        \"correo\": \"n@gmail.com\",\n        \"nombreComercial\": \"\",\n        \"nit\": \"\"\n    },\n    \"cuerpoDocumento\": [\n        {\n            \"numltem\": 1,\n            \"tipoltem\": \"2\",\n            \"codigo\": \"0021001\",\n            \"descripcion\": \"Intereses corrientes\",\n            \"uniMedida\": \"99\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 1,\n            \"precioUni\": 25,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 25,\n            \"ventaNoSuj\": 0,\n            \"tributos\": [\n                \"20\"\n            ],\n            \"ivaItem\": 3.5,\n            \"ventaExenta\": 0\n        }\n    ],\n    \"resumen\": {\n        \"totalNoSuj\": 0,\n        \"totalExenta\": 0,\n        \"totalGravada\": 28.5,\n        \"subTotalVentas\": 28.5,\n        \"descuNoSuj\": 0,\n        \"descuExenta\": 0,\n        \"descuGravada\": 0,\n        \"porcentajeDescuento\": 0,\n        \"totalDescu\": 0,\n        \"subTotal\": 28.5,\n        \"ivaPerci1\": 0,\n        \"ivaRete1\": 0,\n        \"reteRenta\": 0,\n        \"montoTotalOperacion\": 0,\n        \"totalNoGravado\": 0,\n        \"totalPagar\": 28.5,\n        \"totalIva\": 3.5,\n        \"totalLetras\": \"VEINTIOCHO CON 50\\/100 DOLARES\",\n        \"saldoFavor\": 0,\n        \"condicionOperacion\": 1,\n        \"pagos\": null,\n        \"numPagoElectronico\": null\n    },\n    \"extensión\": {\n        \"nombEntrega\": \"\",\n        \"docufintreqa\": \"\",\n        \"nornbkeclbe\": \"\",\n        \"docukecibe\": \"\",\n        \"placaVehiculo\": \"\",\n        \"observaciones\": \"\"\n    },\n    \"apéndice\": null\n}', 'No se pudo encontrar el documento | Revisa el que el codigo de generacion sea el correcto', 'C362F4DC-8845-4BAB-9F30-C6F2599201C6', 0, 0, '1', 0, 0.00, 25.00, 0.000000, 3.50, 28.50, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 28.50, 0.00, NULL, '2024-05-14 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2025-02-26 13:15:09', '2024-05-14 08:46:02', 1);
INSERT INTO `fac_factura` VALUES (178, 22, 6, 18, 1, 2, NULL, 1, NULL, 1, NULL, NULL, 176, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 8, '2024-05-14 08:51:43', '2024-05-14 00:00:00', NULL, 'Raul Ernesto Colindres', NULL, 1, '8F855179-6779-5EEE-F66C-225F7883BDCB', 'DTE-01-S001P001-000000000000007', NULL, '{\n    \"identificacion\": {\n        \"version\": 1,\n        \"ambiente\": \"00\",\n        \"tipoDte\": \"03\",\n        \"numeroControl\": \"DTE-01-S001P001-000000000000007\",\n        \"codigoGeneracion\": \"8F855179-6779-5EEE-F66C-225F7883BDCB\",\n        \"tipoModelo\": 1,\n        \"tipoOperacion\": 1,\n        \"tipoContingencia\": null,\n        \"motivoContin\": null,\n        \"fecEmi\": \"2024-05-14\",\n        \"horEmi\": \"08:51:43\",\n        \"tipoMoneda\": \"USD\"\n    },\n    \"documentoRelacionado\": null,\n    \"emisor\": {\n        \"nit\": \"06140305961025\",\n        \"nrc\": \"149123\",\n        \"nombre\": \"Grupo Satelite \",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"nombreComercial\": \"Grupo Satelite \",\n        \"tipoEstablecimiento\": \"02\",\n        \"direccion\": {\n            \"departamento\": \"06\",\n            \"municipio\": \"617\",\n            \"complemento\": \"75 y 79 Av Sur Col. Escalón, San Salvador, El Salvador\"\n        },\n        \"telefono\": \"2264-8310\",\n        \"correo\": \"info@gruposatelite.net\",\n        \"codEstable\": null,\n        \"codPuntoVenta\": null,\n        \"codEstableMH\": null,\n        \"codPuntoVentaMH\": null\n    },\n    \"receptor\": {\n        \"nrc\": \"558\",\n        \"nombre\": \"Raul Ernesto Colindres Raul Ernesto Colindres\",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"direccion\": {\n            \"departamento\": \"06\",\n            \"municipio\": \"602\",\n            \"complemento\": \"\"\n        },\n        \"telefono\": \"\",\n        \"correo\": \"colindres@gmial.com\",\n        \"nombreComercial\": \"\",\n        \"nit\": \"\"\n    },\n    \"cuerpoDocumento\": [\n        {\n            \"numltem\": 1,\n            \"tipoltem\": \"2\",\n            \"codigo\": \"0014008\",\n            \"descripcion\": \"Interes Corriente\",\n            \"uniMedida\": \"99\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 1,\n            \"precioUni\": 11.3,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 11.3,\n            \"ventaNoSuj\": 0,\n            \"tributos\": null,\n            \"ivaItem\": 1.3,\n            \"ventaExenta\": 0\n        },\n        {\n            \"numltem\": 2,\n            \"tipoltem\": \"2\",\n            \"codigo\": \"0014001\",\n            \"descripcion\": \"Comisión por desembolso de crédito\",\n            \"uniMedida\": \"99\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 1,\n            \"precioUni\": 86.9196,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 86.9196,\n            \"ventaNoSuj\": 0,\n            \"tributos\": null,\n            \"ivaItem\": 9.9996,\n            \"ventaExenta\": 0\n        }\n    ],\n    \"resumen\": {\n        \"totalNoSuj\": 0,\n        \"totalExenta\": 0,\n        \"totalGravada\": 86.92,\n        \"subTotalVentas\": 86.92,\n        \"descuNoSuj\": 0,\n        \"descuExenta\": 0,\n        \"descuGravada\": 0,\n        \"porcentajeDescuento\": 0,\n        \"totalDescu\": 0,\n        \"subTotal\": 98.22,\n        \"ivaPerci1\": 0,\n        \"ivaRete1\": 0,\n        \"reteRenta\": 0,\n        \"montoTotalOperacion\": 0,\n        \"totalNoGravado\": 0,\n        \"totalPagar\": 98.22,\n        \"totalIva\": 11.3,\n        \"totalLetras\": \"NOVENTA Y OCHO CON 22\\/100 DOLARES\",\n        \"saldoFavor\": 0,\n        \"condicionOperacion\": 1,\n        \"pagos\": null,\n        \"numPagoElectronico\": null\n    },\n    \"extensión\": {\n        \"nombEntrega\": \"\",\n        \"docufintreqa\": \"\",\n        \"nornbkeclbe\": \"\",\n        \"docukecibe\": \"\",\n        \"placaVehiculo\": \"\",\n        \"observaciones\": \"\"\n    },\n    \"apéndice\": null\n}', 'No se pudo encontrar el documento | Revisa el que el codigo de generacion sea el correcto', '26059527-DFDE-4F0B-9538-7EB870914B53', 0, 0, '1', 0, 0.00, 86.92, 0.000000, 11.30, 98.22, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 98.22, 0.00, NULL, '2024-05-14 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2025-02-26 13:15:03', '2024-05-14 08:51:43', 1);
INSERT INTO `fac_factura` VALUES (179, 28, 20, 17, 1, 1, NULL, 3, NULL, 1, NULL, NULL, 174, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 14, '2024-05-14 08:56:02', '2024-05-14 00:00:00', NULL, 'Cliente Contado', NULL, 1, '8F53295A-7387-8494-E9BC-8DD6C3C7104F', 'DTE-01-S001P001-000000000000013', NULL, '{\n    \"identificacion\": {\n        \"version\": 1,\n        \"ambiente\": \"00\",\n        \"tipoDte\": \"01\",\n        \"numeroControl\": \"DTE-01-S001P001-000000000000013\",\n        \"codigoGeneracion\": \"8F53295A-7387-8494-E9BC-8DD6C3C7104F\",\n        \"tipoModelo\": 1,\n        \"tipoOperacion\": 1,\n        \"tipoContingencia\": null,\n        \"motivoContin\": null,\n        \"fecEmi\": \"2024-05-14\",\n        \"horEmi\": \"08:56:02\",\n        \"tipoMoneda\": \"USD\"\n    },\n    \"documentoRelacionado\": null,\n    \"emisor\": {\n        \"nit\": \"06140305961025\",\n        \"nrc\": \"149123\",\n        \"nombre\": \"Grupo Satelite \",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"nombreComercial\": \"Grupo Satelite \",\n        \"tipoEstablecimiento\": \"02\",\n        \"direccion\": {\n            \"departamento\": \"06\",\n            \"municipio\": \"617\",\n            \"complemento\": \"75 y 79 Av Sur Col. Escalón, San Salvador, El Salvador\"\n        },\n        \"telefono\": \"2264-8310\",\n        \"correo\": \"info@gruposatelite.net\",\n        \"codEstable\": null,\n        \"codPuntoVenta\": null,\n        \"codEstableMH\": null,\n        \"codPuntoVentaMH\": null\n    },\n    \"receptor\": {\n        \"nrc\": \"\",\n        \"nombre\": \"Contado\",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"direccion\": {\n            \"departamento\": null,\n            \"municipio\": null,\n            \"complemento\": \"\"\n        },\n        \"telefono\": \"\",\n        \"correo\": \"n@gmail.com\",\n        \"nombreComercial\": \"\",\n        \"nit\": \"\"\n    },\n    \"cuerpoDocumento\": [\n        {\n            \"numltem\": 1,\n            \"tipoltem\": \"2\",\n            \"codigo\": \"0021001\",\n            \"descripcion\": \"Intereses corrientes\",\n            \"uniMedida\": \"99\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 1,\n            \"precioUni\": 25,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 25,\n            \"ventaNoSuj\": 0,\n            \"tributos\": [\n                \"20\"\n            ],\n            \"ivaItem\": 3.5,\n            \"ventaExenta\": 0\n        }\n    ],\n    \"resumen\": {\n        \"totalNoSuj\": 0,\n        \"totalExenta\": 0,\n        \"totalGravada\": 28.5,\n        \"subTotalVentas\": 28.5,\n        \"descuNoSuj\": 0,\n        \"descuExenta\": 0,\n        \"descuGravada\": 0,\n        \"porcentajeDescuento\": 0,\n        \"totalDescu\": 0,\n        \"subTotal\": 28.5,\n        \"ivaPerci1\": 0,\n        \"ivaRete1\": 0,\n        \"reteRenta\": 0,\n        \"montoTotalOperacion\": 0,\n        \"totalNoGravado\": 0,\n        \"totalPagar\": 28.5,\n        \"totalIva\": 3.5,\n        \"totalLetras\": \"VEINTIOCHO CON 50\\/100 DOLARES\",\n        \"saldoFavor\": 0,\n        \"condicionOperacion\": 1,\n        \"pagos\": null,\n        \"numPagoElectronico\": null\n    },\n    \"extensión\": {\n        \"nombEntrega\": \"\",\n        \"docufintreqa\": \"\",\n        \"nornbkeclbe\": \"\",\n        \"docukecibe\": \"\",\n        \"placaVehiculo\": \"\",\n        \"observaciones\": \"\"\n    },\n    \"apéndice\": null\n}', 'No se pudo encontrar el documento | Revisa el que el codigo de generacion sea el correcto', 'EC24BF08-C9EC-4971-8FE1-AD98D18065BD', 0, 0, '1', 0, 0.00, 25.00, 0.000000, 3.50, 28.50, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 28.50, 0.00, NULL, '2024-05-14 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2025-02-26 13:15:09', '2024-05-14 08:56:02', 1);
INSERT INTO `fac_factura` VALUES (180, 22, 6, 18, 1, 2, NULL, 1, NULL, 1, NULL, NULL, 176, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 9, '2024-05-14 08:56:45', '2024-05-14 00:00:00', NULL, 'Raul Ernesto Colindres', NULL, 1, '045117B0-E0A1-1A24-2B97-65E79CBF113F', 'DTE-01-S001P001-000000000000008', NULL, '{\n    \"identificacion\": {\n        \"version\": 1,\n        \"ambiente\": \"00\",\n        \"tipoDte\": \"03\",\n        \"numeroControl\": \"DTE-01-S001P001-000000000000008\",\n        \"codigoGeneracion\": \"045117B0-E0A1-1A24-2B97-65E79CBF113F\",\n        \"tipoModelo\": 1,\n        \"tipoOperacion\": 1,\n        \"tipoContingencia\": null,\n        \"motivoContin\": null,\n        \"fecEmi\": \"2024-05-14\",\n        \"horEmi\": \"08:56:45\",\n        \"tipoMoneda\": \"USD\"\n    },\n    \"documentoRelacionado\": null,\n    \"emisor\": {\n        \"nit\": \"06140305961025\",\n        \"nrc\": \"149123\",\n        \"nombre\": \"Grupo Satelite \",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"nombreComercial\": \"Grupo Satelite \",\n        \"tipoEstablecimiento\": \"02\",\n        \"direccion\": {\n            \"departamento\": \"06\",\n            \"municipio\": \"617\",\n            \"complemento\": \"75 y 79 Av Sur Col. Escalón, San Salvador, El Salvador\"\n        },\n        \"telefono\": \"2264-8310\",\n        \"correo\": \"info@gruposatelite.net\",\n        \"codEstable\": null,\n        \"codPuntoVenta\": null,\n        \"codEstableMH\": null,\n        \"codPuntoVentaMH\": null\n    },\n    \"receptor\": {\n        \"nrc\": \"558\",\n        \"nombre\": \"Raul Ernesto Colindres Raul Ernesto Colindres\",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"direccion\": {\n            \"departamento\": \"06\",\n            \"municipio\": \"602\",\n            \"complemento\": \"\"\n        },\n        \"telefono\": \"\",\n        \"correo\": \"colindres@gmial.com\",\n        \"nombreComercial\": \"\",\n        \"nit\": \"\"\n    },\n    \"cuerpoDocumento\": [\n        {\n            \"numltem\": 1,\n            \"tipoltem\": \"2\",\n            \"codigo\": \"0021001\",\n            \"descripcion\": \"Intereses corrientes\",\n            \"uniMedida\": \"99\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 1,\n            \"precioUni\": 57,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 57,\n            \"ventaNoSuj\": 0,\n            \"tributos\": [\n                \"20\"\n            ],\n            \"ivaItem\": 7,\n            \"ventaExenta\": 0\n        }\n    ],\n    \"resumen\": {\n        \"totalNoSuj\": 0,\n        \"totalExenta\": 0,\n        \"totalGravada\": 50,\n        \"subTotalVentas\": 50,\n        \"descuNoSuj\": 0,\n        \"descuExenta\": 0,\n        \"descuGravada\": 0,\n        \"porcentajeDescuento\": 0,\n        \"totalDescu\": 0,\n        \"subTotal\": 57,\n        \"ivaPerci1\": 0,\n        \"ivaRete1\": 0,\n        \"reteRenta\": 0,\n        \"montoTotalOperacion\": 0,\n        \"totalNoGravado\": 0,\n        \"totalPagar\": 57,\n        \"totalIva\": 7,\n        \"totalLetras\": \"CINCUENTA Y SIETE CON 00\\/100 DOLARES\",\n        \"saldoFavor\": 0,\n        \"condicionOperacion\": 1,\n        \"pagos\": null,\n        \"numPagoElectronico\": null\n    },\n    \"extensión\": {\n        \"nombEntrega\": \"\",\n        \"docufintreqa\": \"\",\n        \"nornbkeclbe\": \"\",\n        \"docukecibe\": \"\",\n        \"placaVehiculo\": \"\",\n        \"observaciones\": \"\"\n    },\n    \"apéndice\": null\n}', 'No se pudo encontrar el documento | Revisa el que el codigo de generacion sea el correcto', 'E4F289EE-DD0A-47DF-801A-B18737045A8A', 0, 0, '1', 0, 0.00, 50.00, 0.000000, 7.00, 57.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 57.00, 0.00, NULL, '2024-05-14 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2025-02-26 13:15:04', '2024-05-14 08:56:45', 1);
INSERT INTO `fac_factura` VALUES (181, 22, 6, 18, 1, 2, NULL, 1, NULL, 1, NULL, NULL, 176, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 10, '2024-05-14 09:38:17', '2024-05-14 00:00:00', NULL, 'Raul Ernesto Colindres', NULL, 1, 'FC221309-7460-13AC-5545-71FBD180E1C8', 'DTE-01-S001P001-000000000000009', NULL, '{\n    \"identificacion\": {\n        \"version\": 1,\n        \"ambiente\": \"00\",\n        \"tipoDte\": \"03\",\n        \"numeroControl\": \"DTE-01-S001P001-000000000000009\",\n        \"codigoGeneracion\": \"FC221309-7460-13AC-5545-71FBD180E1C8\",\n        \"tipoModelo\": 1,\n        \"tipoOperacion\": 1,\n        \"tipoContingencia\": null,\n        \"motivoContin\": null,\n        \"fecEmi\": \"2024-05-14\",\n        \"horEmi\": \"09:38:17\",\n        \"tipoMoneda\": \"USD\"\n    },\n    \"documentoRelacionado\": null,\n    \"emisor\": {\n        \"nit\": \"06140305961025\",\n        \"nrc\": \"149123\",\n        \"nombre\": \"Grupo Satelite \",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"nombreComercial\": \"Grupo Satelite \",\n        \"tipoEstablecimiento\": \"02\",\n        \"direccion\": {\n            \"departamento\": \"06\",\n            \"municipio\": \"617\",\n            \"complemento\": \"75 y 79 Av Sur Col. Escalón, San Salvador, El Salvador\"\n        },\n        \"telefono\": \"2264-8310\",\n        \"correo\": \"info@gruposatelite.net\",\n        \"codEstable\": null,\n        \"codPuntoVenta\": null,\n        \"codEstableMH\": null,\n        \"codPuntoVentaMH\": null\n    },\n    \"receptor\": {\n        \"nrc\": \"558\",\n        \"nombre\": \"Raul Ernesto Colindres Raul Ernesto Colindres\",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"direccion\": {\n            \"departamento\": \"06\",\n            \"municipio\": \"602\",\n            \"complemento\": \"\"\n        },\n        \"telefono\": \"\",\n        \"correo\": \"colindres@gmial.com\",\n        \"nombreComercial\": \"\",\n        \"nit\": \"\"\n    },\n    \"cuerpoDocumento\": [\n        {\n            \"numltem\": 1,\n            \"tipoltem\": \"2\",\n            \"codigo\": \"0014008\",\n            \"descripcion\": \"Interes Corriente\",\n            \"uniMedida\": \"99\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 1,\n            \"precioUni\": 114,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 114,\n            \"ventaNoSuj\": 0,\n            \"tributos\": [\n                \"20\"\n            ],\n            \"ivaItem\": 14,\n            \"ventaExenta\": 0\n        }\n    ],\n    \"resumen\": {\n        \"totalNoSuj\": 0,\n        \"totalExenta\": 0,\n        \"totalGravada\": 100,\n        \"subTotalVentas\": 100,\n        \"descuNoSuj\": 0,\n        \"descuExenta\": 0,\n        \"descuGravada\": 0,\n        \"porcentajeDescuento\": 0,\n        \"totalDescu\": 0,\n        \"subTotal\": 114,\n        \"ivaPerci1\": 0,\n        \"ivaRete1\": 0,\n        \"reteRenta\": 0,\n        \"montoTotalOperacion\": 0,\n        \"totalNoGravado\": 0,\n        \"totalPagar\": 114,\n        \"totalIva\": 14,\n        \"totalLetras\": \"CIENTO CATORCE CON 00\\/100 DOLARES\",\n        \"saldoFavor\": 0,\n        \"condicionOperacion\": 1,\n        \"pagos\": null,\n        \"numPagoElectronico\": null\n    },\n    \"extensión\": {\n        \"nombEntrega\": \"\",\n        \"docufintreqa\": \"\",\n        \"nornbkeclbe\": \"\",\n        \"docukecibe\": \"\",\n        \"placaVehiculo\": \"\",\n        \"observaciones\": \"\"\n    },\n    \"apéndice\": null\n}', 'No se pudo encontrar el documento | Revisa el que el codigo de generacion sea el correcto', 'CE23AA68-9C12-4CF1-839E-9452C4B589FD', 0, 0, '1', 0, 0.00, 100.00, 0.000000, 14.00, 114.00, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 114.00, 0.00, NULL, '2024-05-14 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2025-02-26 13:15:04', '2024-05-14 09:38:17', 1);
INSERT INTO `fac_factura` VALUES (182, 22, 6, 18, 1, 2, NULL, 1, NULL, 1, NULL, NULL, 176, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 11, '2024-05-14 10:41:31', '2024-05-14 00:00:00', NULL, 'Raul Ernesto Colindres', NULL, 1, '4C5BDE74-A8F1-1065-6874-902F07378009', 'DTE-01-S001P001-000000000000010', NULL, '{\n    \"identificacion\": {\n        \"version\": 1,\n        \"ambiente\": \"00\",\n        \"tipoDte\": \"03\",\n        \"numeroControl\": \"DTE-01-S001P001-000000000000010\",\n        \"codigoGeneracion\": \"4C5BDE74-A8F1-1065-6874-902F07378009\",\n        \"tipoModelo\": 1,\n        \"tipoOperacion\": 1,\n        \"tipoContingencia\": null,\n        \"motivoContin\": null,\n        \"fecEmi\": \"2024-05-14\",\n        \"horEmi\": \"10:41:31\",\n        \"tipoMoneda\": \"USD\"\n    },\n    \"documentoRelacionado\": null,\n    \"emisor\": {\n        \"nit\": \"06140305961025\",\n        \"nrc\": \"149123\",\n        \"nombre\": \"Grupo Satelite \",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"nombreComercial\": \"Grupo Satelite \",\n        \"tipoEstablecimiento\": \"02\",\n        \"direccion\": {\n            \"departamento\": \"06\",\n            \"municipio\": \"617\",\n            \"complemento\": \"75 y 79 Av Sur Col. Escalón, San Salvador, El Salvador\"\n        },\n        \"telefono\": \"2264-8310\",\n        \"correo\": \"info@gruposatelite.net\",\n        \"codEstable\": null,\n        \"codPuntoVenta\": null,\n        \"codEstableMH\": null,\n        \"codPuntoVentaMH\": null\n    },\n    \"receptor\": {\n        \"nrc\": \"558\",\n        \"nombre\": \"Raul Ernesto Colindres Raul Ernesto Colindres\",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"direccion\": {\n            \"departamento\": \"06\",\n            \"municipio\": \"602\",\n            \"complemento\": \"\"\n        },\n        \"telefono\": \"\",\n        \"correo\": \"colindres@gmial.com\",\n        \"nombreComercial\": \"\",\n        \"nit\": \"\"\n    },\n    \"cuerpoDocumento\": [\n        {\n            \"numltem\": 1,\n            \"tipoltem\": \"1\",\n            \"codigo\": \"0012005\",\n            \"descripcion\": \"Solvente para preparación de soluciones parentenales\",\n            \"uniMedida\": \"58\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 10,\n            \"precioUni\": 2.825,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 28.25,\n            \"ventaNoSuj\": 0,\n            \"tributos\": null,\n            \"ivaItem\": 0.325,\n            \"ventaExenta\": 0\n        }\n    ],\n    \"resumen\": {\n        \"totalNoSuj\": 0,\n        \"totalExenta\": 0,\n        \"totalGravada\": 25,\n        \"subTotalVentas\": 25,\n        \"descuNoSuj\": 0,\n        \"descuExenta\": 0,\n        \"descuGravada\": 0,\n        \"porcentajeDescuento\": 0,\n        \"totalDescu\": 0,\n        \"subTotal\": 28.25,\n        \"ivaPerci1\": 0,\n        \"ivaRete1\": 0,\n        \"reteRenta\": 0,\n        \"montoTotalOperacion\": 0,\n        \"totalNoGravado\": 0,\n        \"totalPagar\": 28.25,\n        \"totalIva\": 3.25,\n        \"totalLetras\": \"VEINTIOCHO CON 25\\/100 DOLARES\",\n        \"saldoFavor\": 0,\n        \"condicionOperacion\": 1,\n        \"pagos\": null,\n        \"numPagoElectronico\": null\n    },\n    \"extensión\": {\n        \"nombEntrega\": \"\",\n        \"docufintreqa\": \"\",\n        \"nornbkeclbe\": \"\",\n        \"docukecibe\": \"\",\n        \"placaVehiculo\": \"\",\n        \"observaciones\": \"\"\n    },\n    \"apéndice\": null\n}', 'No se pudo encontrar el documento | Revisa el que el codigo de generacion sea el correcto', '80A869BC-D3DA-444A-8D79-405685DC3042', 0, 0, '1', 0, 0.00, 25.00, 0.000000, 3.25, 28.25, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 28.25, 0.00, NULL, '2024-05-14 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2025-02-26 13:15:04', '2024-05-14 10:41:31', 1);
INSERT INTO `fac_factura` VALUES (183, 22, 6, 18, 1, 2, NULL, 1, NULL, 1, NULL, NULL, 176, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 12, '2024-05-14 10:48:13', '2024-05-14 00:00:00', NULL, 'Raul Ernesto Colindres', NULL, 1, 'CEDEBB6E-872F-539B-EF8C-3F919874E9D7', 'DTE-01-S001P001-000000000000011', NULL, '{\n    \"identificacion\": {\n        \"version\": 1,\n        \"ambiente\": \"00\",\n        \"tipoDte\": \"03\",\n        \"numeroControl\": \"DTE-01-S001P001-000000000000011\",\n        \"codigoGeneracion\": \"CEDEBB6E-872F-539B-EF8C-3F919874E9D7\",\n        \"tipoModelo\": 1,\n        \"tipoOperacion\": 1,\n        \"tipoContingencia\": null,\n        \"motivoContin\": null,\n        \"fecEmi\": \"2024-05-14\",\n        \"horEmi\": \"10:48:13\",\n        \"tipoMoneda\": \"USD\"\n    },\n    \"documentoRelacionado\": null,\n    \"emisor\": {\n        \"nit\": \"06140305961025\",\n        \"nrc\": \"149123\",\n        \"nombre\": \"Grupo Satelite \",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"nombreComercial\": \"Grupo Satelite \",\n        \"tipoEstablecimiento\": \"02\",\n        \"direccion\": {\n            \"departamento\": \"06\",\n            \"municipio\": \"617\",\n            \"complemento\": \"75 y 79 Av Sur Col. Escalón, San Salvador, El Salvador\"\n        },\n        \"telefono\": \"2264-8310\",\n        \"correo\": \"info@gruposatelite.net\",\n        \"codEstable\": null,\n        \"codPuntoVenta\": null,\n        \"codEstableMH\": null,\n        \"codPuntoVentaMH\": null\n    },\n    \"receptor\": {\n        \"nrc\": \"558\",\n        \"nombre\": \"Raul Ernesto Colindres Raul Ernesto Colindres\",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"direccion\": {\n            \"departamento\": \"06\",\n            \"municipio\": \"602\",\n            \"complemento\": \"\"\n        },\n        \"telefono\": \"\",\n        \"correo\": \"colindres@gmial.com\",\n        \"nombreComercial\": \"\",\n        \"nit\": \"\"\n    },\n    \"cuerpoDocumento\": [\n        {\n            \"numltem\": 1,\n            \"tipoltem\": \"1\",\n            \"codigo\": \"BEB004\",\n            \"descripcion\": \"Agua Tonica\",\n            \"uniMedida\": \"58\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 10,\n            \"precioUni\": 1.695,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 16.95,\n            \"ventaNoSuj\": 0,\n            \"tributos\": null,\n            \"ivaItem\": 0.195,\n            \"ventaExenta\": 0\n        }\n    ],\n    \"resumen\": {\n        \"totalNoSuj\": 0,\n        \"totalExenta\": 0,\n        \"totalGravada\": 15,\n        \"subTotalVentas\": 15,\n        \"descuNoSuj\": 0,\n        \"descuExenta\": 0,\n        \"descuGravada\": 0,\n        \"porcentajeDescuento\": 0,\n        \"totalDescu\": 0,\n        \"subTotal\": 16.95,\n        \"ivaPerci1\": 0,\n        \"ivaRete1\": 0,\n        \"reteRenta\": 0,\n        \"montoTotalOperacion\": 0,\n        \"totalNoGravado\": 0,\n        \"totalPagar\": 16.95,\n        \"totalIva\": 1.95,\n        \"totalLetras\": \"DIECISEIS CON 95\\/100 DOLARES\",\n        \"saldoFavor\": 0,\n        \"condicionOperacion\": 1,\n        \"pagos\": null,\n        \"numPagoElectronico\": null\n    },\n    \"extensión\": {\n        \"nombEntrega\": \"\",\n        \"docufintreqa\": \"\",\n        \"nornbkeclbe\": \"\",\n        \"docukecibe\": \"\",\n        \"placaVehiculo\": \"\",\n        \"observaciones\": \"\"\n    },\n    \"apéndice\": null\n}', 'No se pudo encontrar el documento | Revisa el que el codigo de generacion sea el correcto', '56070640-EBFC-41FB-B421-8CEA3BE48456', 0, 0, '1', 0, 0.00, 15.00, 0.000000, 1.95, 16.95, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 16.95, 0.00, NULL, '2024-05-14 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2025-02-26 13:15:04', '2024-05-14 10:48:13', 1);
INSERT INTO `fac_factura` VALUES (184, 19, 15, 18, 1, 1, NULL, 1, NULL, 1, NULL, NULL, 176, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 13, '2024-05-14 10:57:09', '2024-05-14 00:00:00', '6477-7', 'Restaurante el cielo', NULL, 1, '6CDD60EA-0045-EB7A-6EC4-4C54D29ED402', 'DTE-01-S001P001-000000000000012', NULL, '{\n    \"identificacion\": {\n        \"version\": 1,\n        \"ambiente\": \"00\",\n        \"tipoDte\": \"03\",\n        \"numeroControl\": \"DTE-01-S001P001-000000000000012\",\n        \"codigoGeneracion\": \"6CDD60EA-0045-EB7A-6EC4-4C54D29ED402\",\n        \"tipoModelo\": 1,\n        \"tipoOperacion\": 1,\n        \"tipoContingencia\": null,\n        \"motivoContin\": null,\n        \"fecEmi\": \"2024-05-14\",\n        \"horEmi\": \"10:57:09\",\n        \"tipoMoneda\": \"USD\"\n    },\n    \"documentoRelacionado\": null,\n    \"emisor\": {\n        \"nit\": \"06140305961025\",\n        \"nrc\": \"149123\",\n        \"nombre\": \"Grupo Satelite \",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"nombreComercial\": \"Grupo Satelite \",\n        \"tipoEstablecimiento\": \"02\",\n        \"direccion\": {\n            \"departamento\": \"06\",\n            \"municipio\": \"617\",\n            \"complemento\": \"75 y 79 Av Sur Col. Escalón, San Salvador, El Salvador\"\n        },\n        \"telefono\": \"2264-8310\",\n        \"correo\": \"info@gruposatelite.net\",\n        \"codEstable\": null,\n        \"codPuntoVenta\": null,\n        \"codEstableMH\": null,\n        \"codPuntoVentaMH\": null\n    },\n    \"receptor\": {\n        \"nrc\": \"64777\",\n        \"nombre\": \"Restaurante el cielo Restaurante el cielo\",\n        \"codActividad\": \"\",\n        \"descActividad\": \"Venta al por menor de artículos de ferretería\",\n        \"direccion\": {\n            \"departamento\": \"06\",\n            \"municipio\": \"616\",\n            \"complemento\": \"San Salvador\"\n        },\n        \"telefono\": \"\",\n        \"correo\": \"n@gmail.com\",\n        \"nombreComercial\": \"\",\n        \"nit\": \"06142911901030\"\n    },\n    \"cuerpoDocumento\": [\n        {\n            \"numltem\": 1,\n            \"tipoltem\": \"1\",\n            \"codigo\": \"0012005\",\n            \"descripcion\": \"Solvente para preparación de soluciones parentenales\",\n            \"uniMedida\": \"58\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 10,\n            \"precioUni\": 2.825,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 28.25,\n            \"ventaNoSuj\": 0,\n            \"tributos\": null,\n            \"ivaItem\": 0.325,\n            \"ventaExenta\": 0\n        }\n    ],\n    \"resumen\": {\n        \"totalNoSuj\": 0,\n        \"totalExenta\": 0,\n        \"totalGravada\": 25,\n        \"subTotalVentas\": 25,\n        \"descuNoSuj\": 0,\n        \"descuExenta\": 0,\n        \"descuGravada\": 0,\n        \"porcentajeDescuento\": 0,\n        \"totalDescu\": 0,\n        \"subTotal\": 28.25,\n        \"ivaPerci1\": 0,\n        \"ivaRete1\": 0,\n        \"reteRenta\": 0,\n        \"montoTotalOperacion\": 0,\n        \"totalNoGravado\": 0,\n        \"totalPagar\": 28.25,\n        \"totalIva\": 3.25,\n        \"totalLetras\": \"VEINTIOCHO CON 25\\/100 DOLARES\",\n        \"saldoFavor\": 0,\n        \"condicionOperacion\": 1,\n        \"pagos\": null,\n        \"numPagoElectronico\": null\n    },\n    \"extensión\": {\n        \"nombEntrega\": \"\",\n        \"docufintreqa\": \"\",\n        \"nornbkeclbe\": \"\",\n        \"docukecibe\": \"\",\n        \"placaVehiculo\": \"\",\n        \"observaciones\": \"\"\n    },\n    \"apéndice\": null\n}', 'No se pudo encontrar el documento | Revisa el que el codigo de generacion sea el correcto', 'F4D2AAF4-4E03-4ACD-8590-ACBFEF261618', 0, 0, '1', 0, 0.00, 25.00, 0.000000, 3.25, 28.25, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 28.25, 0.00, NULL, '2024-05-15 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2025-02-26 13:15:02', '2024-05-14 10:57:09', 1);
INSERT INTO `fac_factura` VALUES (185, 23, 20, 16, 1, 2, NULL, 13, NULL, 1, NULL, NULL, 176, NULL, NULL, 2, NULL, NULL, NULL, 1, NULL, NULL, NULL, 1, NULL, 4, '2024-05-14 10:58:03', '2024-05-14 00:00:00', NULL, 'radio stereo', NULL, 1, 'EECCA5B6-365D-9607-EE5A-9D336962C534', 'DTE-01-S001P001-000000000000005', NULL, '{\n    \"identificacion\": {\n        \"version\": 1,\n        \"ambiente\": \"00\",\n        \"tipoDte\": \"01\",\n        \"numeroControl\": \"DTE-01-S001P001-000000000000005\",\n        \"codigoGeneracion\": \"EECCA5B6-365D-9607-EE5A-9D336962C534\",\n        \"tipoModelo\": 1,\n        \"tipoOperacion\": 1,\n        \"tipoContingencia\": null,\n        \"motivoContin\": null,\n        \"fecEmi\": \"2024-05-14\",\n        \"horEmi\": \"10:58:03\",\n        \"tipoMoneda\": \"USD\"\n    },\n    \"documentoRelacionado\": null,\n    \"emisor\": {\n        \"nit\": \"06140305961025\",\n        \"nrc\": \"149123\",\n        \"nombre\": \"Grupo Satelite \",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"nombreComercial\": \"Grupo Satelite \",\n        \"tipoEstablecimiento\": \"02\",\n        \"direccion\": {\n            \"departamento\": \"06\",\n            \"municipio\": \"617\",\n            \"complemento\": \"75 y 79 Av Sur Col. Escalón, San Salvador, El Salvador\"\n        },\n        \"telefono\": \"2264-8310\",\n        \"correo\": \"info@gruposatelite.net\",\n        \"codEstable\": null,\n        \"codPuntoVenta\": null,\n        \"codEstableMH\": null,\n        \"codPuntoVentaMH\": null\n    },\n    \"receptor\": {\n        \"nrc\": \"\",\n        \"nombre\": \"radio stereo radio stereo\",\n        \"codActividad\": null,\n        \"descActividad\": null,\n        \"direccion\": {\n            \"departamento\": null,\n            \"municipio\": null,\n            \"complemento\": \"\"\n        },\n        \"telefono\": \"\",\n        \"correo\": \"n@gmail.com\",\n        \"nombreComercial\": \"\",\n        \"nit\": \"\"\n    },\n    \"cuerpoDocumento\": [\n        {\n            \"numltem\": 1,\n            \"tipoltem\": \"1\",\n            \"codigo\": \"0010005\",\n            \"descripcion\": \"Carne para guisar de res\",\n            \"uniMedida\": \"58\",\n            \"psv\": 0,\n            \"codTributo\": null,\n            \"cantidad\": 1,\n            \"precioUni\": 5,\n            \"montoDescu\": 0,\n            \"ventaGravada\": 5,\n            \"ventaNoSuj\": 0,\n            \"tributos\": null,\n            \"ivaItem\": 0.65,\n            \"ventaExenta\": 0\n        }\n    ],\n    \"resumen\": {\n        \"totalNoSuj\": 0,\n        \"totalExenta\": 0,\n        \"totalGravada\": 5.65,\n        \"subTotalVentas\": 5.65,\n        \"descuNoSuj\": 0,\n        \"descuExenta\": 0,\n        \"descuGravada\": 0,\n        \"porcentajeDescuento\": 0,\n        \"totalDescu\": 0,\n        \"subTotal\": 5.65,\n        \"ivaPerci1\": 0,\n        \"ivaRete1\": 0,\n        \"reteRenta\": 0,\n        \"montoTotalOperacion\": 0,\n        \"totalNoGravado\": 0,\n        \"totalPagar\": 5.65,\n        \"totalIva\": 0.65,\n        \"totalLetras\": \"CINCO CON 65\\/100 DOLARES\",\n        \"saldoFavor\": 0,\n        \"condicionOperacion\": 1,\n        \"pagos\": null,\n        \"numPagoElectronico\": null\n    },\n    \"extensión\": {\n        \"nombEntrega\": \"\",\n        \"docufintreqa\": \"\",\n        \"nornbkeclbe\": \"\",\n        \"docukecibe\": \"\",\n        \"placaVehiculo\": \"\",\n        \"observaciones\": \"\"\n    },\n    \"apéndice\": null\n}', 'No se pudo encontrar el documento | Revisa el que el codigo de generacion sea el correcto', 'F3E1595E-13E4-454B-9BCD-346609C52548', 0, 0, '1', 0, 0.00, 5.00, 0.000000, 0.65, 5.65, NULL, NULL, '2024-09-01 00:00:00', NULL, NULL, 5.65, 0.00, NULL, '2024-05-14 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '', '', 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 1, '2025-02-26 13:15:05', '2024-05-14 10:58:03', 1);
