-- MySQL Administrator dump 1.4
--
-- ------------------------------------------------------
-- Server version	5.5.12


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;


--
-- Create schema ptovtalan
--

CREATE DATABASE IF NOT EXISTS ptovtalan;
USE ptovtalan;

--
-- Definition of table `clientes`
--

DROP TABLE IF EXISTS `clientes`;
CREATE TABLE `clientes` (
  `idcliente` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `razonsocial` varchar(250) NOT NULL,
  `ruc` varchar(20) NOT NULL,
  `estado` char(2) NOT NULL DEFAULT '1',
  PRIMARY KEY (`idcliente`)
) ENGINE=InnoDB AUTO_INCREMENT=64 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `clientes`
--

/*!40000 ALTER TABLE `clientes` DISABLE KEYS */;
INSERT INTO `clientes` (`idcliente`,`razonsocial`,`ruc`,`estado`) VALUES 
 (1,'ROCCA HANCCO HENRRY','10250095631','1'),
 (2,'ROMERO RIOS MARCOS HUMBERTO','10402499732','1'),
 (3,'INVERSIONES DAKEL PERU S.A.C.','20610822216','1'),
 (4,'FLORES MOZOMBITE BERITA','10480264474','1'),
 (5,'SALDANA PEREZ LUDENDORFF','10229661243','1'),
 (6,'SALDANA PEREZ DOWNEY','10229630887','1'),
 (7,'AQUINO TRINIDAD ANTONIO','10231676070','1'),
 (8,'EMPRESA SOTO E.I.R.L.','20610579231','1'),
 (9,'MORI LOZANO JHON LINCOLN','10482000504','1'),
 (10,'ARMAS SHAHUANO LOIDI MARITA','10229604151','1'),
 (11,'IMPORTACIONES HERRERA E.I.R.L.','20600843410','1'),
 (12,'CALLUPE PALOMINO NICOLAS','10209623604','1'),
 (13,'ROJAS POMA JHON','76225612','1'),
 (14,'VERGARA NIETO LUIS','20054848','1'),
 (15,'SEVILLANO PEREZ LIZ','45828102','1'),
 (16,'ATALAYA DIAZ ELOY','01014443','1'),
 (17,'TORRES ROJAS JUAN','76801405','1'),
 (18,'CHAUPIS CORDOVA MARIOLINA','44944701','1'),
 (19,'MATOS RAFAEL MAYCOL','46542491','1'),
 (20,'WCM IMPORT SOCIEDAD COMERCIAL DE RESPONSABILIDAD LIMITADA','20608217771','1'),
 (21,'LEON DELA CRUZ ELVIRA','10435900025','1'),
 (22,'DE LA CRUZ CARHUALLANQUI TEOFILO RUDBYN','10201200259','1'),
 (23,'LAZO MOTORS EMPRESA INDIVIDUAL DE RESPOSABILIDAD LIMITADA','20609594625','1'),
 (24,'RUIZ GONZALES JUDITH ESTHAYSY','10761275122','1'),
 (25,'CORPORACION RAMOS CALDERON S.A.C.','20612989924','1'),
 (26,'HUAYLLANI PARI DELFINA','10198429185','1'),
 (27,'HUANQUIS HUAYLLANI KELLY KARIN','10415326888','1'),
 (28,'ROMO HUAYLLANI GIOVANNA','10411303468','1'),
 (29,'PARDO AGREDA ARTURO','21553877','1'),
 (30,'CURO ARRIETA JUAN CARLOS','10413616137','1'),
 (31,'HILARIO SOTO DALMACIA MERCEDES','10078423353','1'),
 (32,'CONTRERAS MEGO KATTIA KAREM','10453884266','1'),
 (33,'SERVICIOS GENERALES CHAVELO EMPRESA INDIVIDUAL DE RESPONSABILIDAD LIMITADA','20611940719','1'),
 (34,'INVERSIONES GAMARRITA E.I.R.L.','20611676213','1'),
 (35,'QUISPE SULLCA REYNER EDUARDO','10701085944','1'),
 (36,'INVERSIONES IRIS R & T SRL','20600712277','1'),
 (37,'CABRERA CARBAJAL ANALIZ GABY','10705006356','1'),
 (38,'NEGOCIACIONES MELCHOR EMPRESA INDIVIDUAL DE RESPONSABILIDAD LIMITADA','20606697610','1'),
 (39,'LANCHA MAGIPO BENITA','10482016150','1'),
 (40,'HERRAMIENTAS AGROINDUSTRIALES JAFID S.A.C.','20567134335','1'),
 (41,'TORRES NUNEZ JESUS','45177725','1'),
 (42,'SOBRADO CASIMIRO BROOLIN','10483452441','1'),
 (43,'MACALUPU CABALLERO CARLOS JOSE','10225230256','1'),
 (44,'D & Y INVERSIONES QKENDALL SOCIEDAD ANONIMA CERRADA','20612938751','1'),
 (45,'VILLA CRISOSTOMO IRMA VICTORIA','10427799421','1'),
 (46,'CENTRO FERRETERO SOTO PALOMINO SOCIEDAD ANONIMA CERRADA','20609354683','1'),
 (47,'DJ SELVA IMPORT E.I.R.L.','20603965885','1'),
 (48,'INVERSIONES Y SERVICIOS PROSELVA E.I.R.L.','20609072459','1'),
 (49,'MAQUINARIAS SILJE S.A.C.','20611068442','1'),
 (50,'ALVA RIOS LINDER FRANK','10479836626','1'),
 (51,'EXPRESS LOGISTICO SELVA VERDE E.I.R.L.','20393682001','1'),
 (52,'CCAHUANA REDONDEZ MARINA','10001520585','1'),
 (53,'GOMEZ CCAHUANA RUTH','10443951160','1'),
 (54,'VALDIVIA SANCHEZ SILVER DELVIS','10472160546','1'),
 (55,'TORRES MENDOZA ADRIA','00076750','1'),
 (56,'TAYPE MARIN MARUJA MIRIAN','70796705','1'),
 (57,'NAVARRO VASQUEZ JUAN CARLOS','60597958','1'),
 (58,'PONCE DURAN ROSMERY 935637354','74143781','1'),
 (59,'MARCELO GENTE LUCAS','44723350','1'),
 (60,'AQUINO DURAND ROGER','40575289','1'),
 (61,'DEL AGUILA TORRES ROCKY FRANS','42983548','1'),
 (62,'CHAHUA TOLENTINO YUDE YANITA','10430416397','1'),
 (63,'ALBORNOZ CRUZ ABDEL','43842645','1');
/*!40000 ALTER TABLE `clientes` ENABLE KEYS */;


--
-- Definition of table `detallecuota`
--

DROP TABLE IF EXISTS `detallecuota`;
CREATE TABLE `detallecuota` (
  `DocEntry` int(10) unsigned NOT NULL,
  `Cuota` varchar(20) DEFAULT NULL,
  `Monto` decimal(18,6) DEFAULT NULL,
  `Fecha` varchar(10) DEFAULT NULL,
  `Tabla` varchar(20) DEFAULT NULL,
  `NumeroRUC` varchar(45) DEFAULT NULL,
  `TipoOp` varchar(5) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `detallecuota`
--

/*!40000 ALTER TABLE `detallecuota` DISABLE KEYS */;
/*!40000 ALTER TABLE `detallecuota` ENABLE KEYS */;


--
-- Definition of table `detalledocumentos`
--

DROP TABLE IF EXISTS `detalledocumentos`;
CREATE TABLE `detalledocumentos` (
  `iddetalle` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `Fila` tinyint(4) NOT NULL DEFAULT '0',
  `DocEntry` int(11) NOT NULL DEFAULT '0',
  `UM` varchar(3) DEFAULT '',
  `Quantity` decimal(18,6) DEFAULT NULL,
  `Price` decimal(18,6) DEFAULT NULL,
  `PrecioConIGV` decimal(18,6) DEFAULT NULL,
  `PriceTypeCode` tinyint(4) DEFAULT NULL,
  `MontoIGv` decimal(18,6) DEFAULT NULL,
  `IGV` int(11) DEFAULT NULL,
  `ExemptionReasonCode` tinyint(4) DEFAULT NULL,
  `TaxScheme_ID` smallint(6) DEFAULT NULL,
  `TaxScheme_Name` varchar(6) DEFAULT NULL,
  `TaxScheme_TaxTypeCode` varchar(4) DEFAULT NULL,
  `Dscription` varchar(800) DEFAULT NULL,
  `ItemCode` varchar(50) NOT NULL DEFAULT '',
  `LineaTotalSinIGV` decimal(18,2) DEFAULT NULL,
  `OperacionGratuita` varchar(50) DEFAULT NULL,
  `TipoDoc` tinyint(4) DEFAULT NULL,
  `ley` decimal(6,2) DEFAULT NULL,
  `RucEmisor` varchar(30) NOT NULL DEFAULT '',
  `DsctoLinea` decimal(18,6) DEFAULT '0.000000',
  `PrecioSinDscto` decimal(18,6) DEFAULT '0.000000',
  `SerieLote` varchar(200) DEFAULT ' ',
  `TipoOp` varchar(4) DEFAULT NULL,
  `InformacionAdicional` varchar(200) DEFAULT NULL,
  `NroDocumento` varchar(45) DEFAULT NULL,
  `PorcDsctoLin` decimal(18,6) DEFAULT NULL,
  PRIMARY KEY (`iddetalle`,`DocEntry`,`Fila`,`ItemCode`,`RucEmisor`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=156 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `detalledocumentos`
--

/*!40000 ALTER TABLE `detalledocumentos` DISABLE KEYS */;
INSERT INTO `detalledocumentos` (`iddetalle`,`Fila`,`DocEntry`,`UM`,`Quantity`,`Price`,`PrecioConIGV`,`PriceTypeCode`,`MontoIGv`,`IGV`,`ExemptionReasonCode`,`TaxScheme_ID`,`TaxScheme_Name`,`TaxScheme_TaxTypeCode`,`Dscription`,`ItemCode`,`LineaTotalSinIGV`,`OperacionGratuita`,`TipoDoc`,`ley`,`RucEmisor`,`DsctoLinea`,`PrecioSinDscto`,`SerieLote`,`TipoOp`,`InformacionAdicional`,`NroDocumento`,`PorcDsctoLin`) VALUES 
 (21,1,32,'BX','2.000000','290.000000','290.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','580.00','N',1,NULL,'20607856428','0.000000','290.000000','','01','','F001-00000001','0.000000'),
 (22,1,33,'BX','2.000000','290.000000','290.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','580.00','N',1,NULL,'20607856428','0.000000','290.000000','','01','','F001-00000002','0.000000'),
 (23,1,34,'BX','5.000000','290.000000','290.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','1450.00','N',1,NULL,'20607856428','0.000000','290.000000','','01','','F001-00000003','0.000000'),
 (24,1,36,'BX','3.000000','290.000000','290.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','870.00','N',1,NULL,'20607856428','0.000000','290.000000','','01','','F001-00000004','0.000000'),
 (25,1,37,'BX','3.000000','290.000000','290.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','870.00','N',1,NULL,'20607856428','0.000000','290.000000','','01','','F001-00000005','0.000000'),
 (26,1,38,'BX','4.000000','290.000000','290.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','1160.00','N',1,NULL,'20607856428','0.000000','290.000000','','01','','F001-00000006','0.000000'),
 (27,1,40,'BX','20.000000','290.000000','290.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','5800.00','N',1,NULL,'20607856428','0.000000','290.000000','','01','','F001-00000007','0.000000'),
 (28,1,43,'BX','3.000000','295.000000','295.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','885.00','N',1,NULL,'20607856428','0.000000','295.000000','','01','','F001-00000008','0.000000'),
 (29,1,46,'BX','3.000000','290.000000','290.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','870.00','N',1,NULL,'20607856428','0.000000','290.000000','','01','','F001-00000009','0.000000'),
 (30,1,35,'BX','2.000000','290.000000','290.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','580.00','N',3,NULL,'20607856428','0.000000','290.000000','','01','','B001-00000001','0.000000'),
 (31,1,39,'BX','3.000000','290.000000','290.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','870.00','N',3,NULL,'20607856428','0.000000','290.000000','','01','','B001-00000002','0.000000'),
 (32,1,41,'BX','2.000000','290.000000','290.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','580.00','N',3,NULL,'20607856428','0.000000','290.000000','','01','','B001-00000003','0.000000'),
 (33,1,42,'BX','1.000000','295.000000','295.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','295.00','N',3,NULL,'20607856428','0.000000','295.000000','','01','','B001-00000004','0.000000'),
 (34,1,44,'BX','1.000000','295.000000','295.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','295.00','N',3,NULL,'20607856428','0.000000','295.000000','','01','','B001-00000005','0.000000'),
 (35,1,45,'BX','4.000000','290.000000','290.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','1160.00','N',3,NULL,'20607856428','0.000000','290.000000','','01','','B001-00000006','0.000000'),
 (36,1,47,'BX','2.000000','290.000000','290.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','580.00','N',3,NULL,'20607856428','0.000000','290.000000','','01','','B001-00000007','0.000000'),
 (37,1,48,'BX','2.000000','290.000000','290.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','580.00','N',3,NULL,'20607856428','0.000000','290.000000','','01','','B001-00000008','0.000000'),
 (38,1,49,'BX','5.000000','290.000000','290.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','1450.00','N',3,NULL,'20607856428','0.000000','290.000000','','01','','B001-00000009','0.000000'),
 (39,1,50,'BX','5.000000','290.000000','290.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','1450.00','N',3,NULL,'20607856428','0.000000','290.000000','','01','','B001-00000010','0.000000'),
 (40,1,51,'BX','10.000000','295.000000','295.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','2950.00','N',1,NULL,'20607856428','0.000000','295.000000','','01','','F001-00000010','0.000000'),
 (41,1,52,'BX','4.000000','290.000000','290.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','1160.00','N',1,NULL,'20607856428','0.000000','290.000000','','01','','F001-00000011','0.000000'),
 (42,1,54,'BX','3.000000','290.000000','290.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','870.00','N',1,NULL,'20607856428','0.000000','290.000000','','01','','F001-00000012','0.000000'),
 (43,1,55,'BX','4.000000','300.000000','300.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','1200.00','N',1,NULL,'20607856428','0.000000','300.000000','','01','','F001-00000013','0.000000'),
 (44,1,56,'BX','5.000000','290.000000','290.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','1450.00','N',1,NULL,'20607856428','0.000000','290.000000','','01','','F001-00000014','0.000000'),
 (45,1,57,'BX','4.000000','290.000000','290.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','1160.00','N',1,NULL,'20607856428','0.000000','290.000000','','01','','F001-00000015','0.000000'),
 (46,1,58,'BX','2.000000','295.000000','295.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','590.00','N',1,NULL,'20607856428','0.000000','295.000000','','01','','F001-00000016','0.000000'),
 (47,1,59,'BX','2.000000','295.000000','295.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','590.00','N',1,NULL,'20607856428','0.000000','295.000000','','01','','F001-00000017','0.000000'),
 (48,1,60,'BX','4.000000','295.000000','295.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','1180.00','N',1,NULL,'20607856428','0.000000','295.000000','','01','','F001-00000018','0.000000'),
 (49,1,63,'BX','10.000000','295.000000','295.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','2950.00','N',1,NULL,'20607856428','0.000000','295.000000','','01','','F001-00000019','0.000000'),
 (50,1,64,'BX','4.000000','290.000000','290.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','1160.00','N',1,NULL,'20607856428','0.000000','290.000000','','01','','F001-00000020','0.000000'),
 (52,1,66,'BX','2.000000','300.000000','300.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','600.00','N',3,NULL,'20607856428','0.000000','300.000000','','01','','B001-00000011','0.000000'),
 (53,1,67,'BX','4.000000','295.000000','295.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','1180.00','N',1,NULL,'20607856428','0.000000','295.000000','','01','','F001-00000021','0.000000'),
 (54,1,68,'BX','3.000000','295.000000','295.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','885.00','N',1,NULL,'20607856428','0.000000','295.000000','','01','','F001-00000022','0.000000'),
 (55,1,69,'BX','10.000000','295.000000','295.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','2950.00','N',1,NULL,'20607856428','0.000000','295.000000','','01','','F001-00000023','0.000000'),
 (56,1,70,'BX','4.000000','295.000000','295.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','1180.00','N',1,NULL,'20607856428','0.000000','295.000000','','01','','F001-00000024','0.000000'),
 (57,1,71,'BX','1.000000','295.000000','295.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','295.00','N',1,NULL,'20607856428','0.000000','295.000000','','01','','F001-00000025','0.000000'),
 (58,1,72,'BX','2.000000','295.000000','295.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','590.00','N',1,NULL,'20607856428','0.000000','295.000000','','01','','F001-00000026','0.000000'),
 (59,1,73,'BX','6.000000','295.000000','295.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','1770.00','N',1,NULL,'20607856428','0.000000','295.000000','','01','','F001-00000027','0.000000'),
 (60,1,74,'BX','10.000000','290.000000','290.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','2900.00','N',1,NULL,'20607856428','0.000000','290.000000','','01','','F002-00000001','0.000000'),
 (61,1,75,'BX','5.000000','295.000000','295.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','1475.00','N',1,NULL,'20607856428','0.000000','295.000000','','01','','F001-00000028','0.000000'),
 (62,1,76,'BX','2.000000','300.000000','300.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','600.00','N',1,NULL,'20607856428','0.000000','300.000000','','01','','F001-00000029','0.000000'),
 (63,1,78,'BX','10.000000','290.000000','290.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','2900.00','N',1,NULL,'20607856428','0.000000','290.000000','','01','','F002-00000002','0.000000'),
 (64,1,79,'BX','20.000000','290.000000','290.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','5800.00','N',1,NULL,'20607856428','0.000000','290.000000','','01','','F002-00000003','0.000000'),
 (65,1,77,'BX','2.000000','300.000000','300.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','600.00','N',3,NULL,'20607856428','0.000000','300.000000','','01','','B001-00000012','0.000000'),
 (66,1,80,'BX','3.000000','295.000000','295.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','885.00','N',1,NULL,'20607856428','0.000000','295.000000','','01','','F001-00000030','0.000000'),
 (67,1,81,'BX','4.000000','295.000000','295.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','1180.00','N',1,NULL,'20607856428','0.000000','295.000000','','01','','F001-00000031','0.000000'),
 (70,1,86,'NIU','5.000000','300.000000','300.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','1500.00','N',1,NULL,'20607856428','0.000000','300.000000','','01','','F001-00000033','0.000000'),
 (71,1,87,'NIU','6.000000','36.000000','36.000000',1,'0.000000',0,20,9997,'EXO','VAT','TUBOS COMPLETOS,?26×1.5×1500 PARA MOTOGUADAÑA NTCG520','00024','216.00','N',1,NULL,'20607856428','0.000000','36.000000','','01','','F001-00000034','0.000000'),
 (72,2,87,'NIU','1.000000','26.000000','26.000000',1,'0.000000',0,20,9997,'EXO','VAT','CARBURADOR PARA MOTOGUADAÑA NTCG520','00015','26.00','N',1,NULL,'20607856428','0.000000','26.000000','','01','','F001-00000034','0.000000'),
 (73,1,88,'NIU','6.000000','36.000000','36.000000',1,'0.000000',0,20,9997,'EXO','VAT','TUBOS COMPLETOS,?26×1.5×1500 PARA MOTOGUADAÑA NTCG520','00024','216.00','N',1,NULL,'20607856428','0.000000','36.000000','','01','','F001-00000035','0.000000'),
 (74,2,88,'NIU','6.000000','28.000000','28.000000',1,'0.000000',0,20,9997,'EXO','VAT','CARBURADOR PARA MOTOGUADAÑA NTCG520','00015','168.00','N',1,NULL,'20607856428','0.000000','28.000000','','01','','F001-00000035','0.000000'),
 (75,1,92,'NIU','8.000000','499.000000','499.000000',1,'0.000000',0,20,9997,'EXO','VAT','\"ROLLO DE CADENA CUADRADA, 0.325\"\", 0.058 PARA MOTOSIERRA NT5800\"','00055','3992.00','N',1,NULL,'20607856428','0.000000','499.000000','','01','','F001-00000036','0.000000'),
 (76,1,93,'NIU','5.000000','300.000000','300.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','1500.00','N',1,NULL,'20607856428','0.000000','300.000000','','01','','F001-00000037','0.000000'),
 (77,1,94,'NIU','4.000000','499.000000','499.000000',1,'0.000000',0,20,9997,'EXO','VAT','\"ROLLO DE CADENA, REDONDA, 0.325\"\", 0.058 PARA MOTOSIERRA NT5800\"','00056','1996.00','N',1,NULL,'20607856428','0.000000','499.000000','','01','','F001-00000038','0.000000'),
 (78,1,95,'NIU','5.000000','295.000000','295.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','1475.00','N',1,NULL,'20607856428','0.000000','295.000000','','01','','F001-00000039','0.000000'),
 (79,1,96,'NIU','5.000000','295.000000','295.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','1475.00','N',1,NULL,'20607856428','0.000000','295.000000','','01','','F001-00000040','0.000000'),
 (83,1,98,'NIU','5.000000','295.000000','295.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','1475.00','N',1,NULL,'20607856428','0.000000','295.000000','','01','','F001-00000043','0.000000'),
 (84,2,98,'NIU','5.000000','349.000000','349.000000',1,'0.000000',0,20,9997,'EXO','VAT','FUMIGADOR A MOTOR CRAFTOP NTS768','00006','1745.00','N',1,NULL,'20607856428','0.000000','349.000000','','01','','F001-00000043','0.000000'),
 (85,1,100,'NIU','100.000000','25.000000','25.000000',1,'0.000000',0,20,9997,'EXO','VAT','CARBURADOR PARA MOTOGUADAÑA NTCG520','00015','2500.00','N',1,NULL,'20607856428','0.000000','25.000000','','01','','F001-00000044','0.000000'),
 (86,1,103,'NIU','10.000000','26.000000','26.000000',1,'0.000000',0,20,9997,'EXO','VAT','CARBURADOR PARA MOTOSIERRA NT5800','00049','260.00','N',1,NULL,'20607856428','0.000000','26.000000','','01','','F001-00000045','0.000000'),
 (87,2,103,'NIU','50.000000','2.000000','2.000000',1,'0.000000',0,20,9997,'EXO','VAT','AMORTIGUADOR (CORTO) PARA MOTOSIERRA NT5800','00045','100.00','N',1,NULL,'20607856428','0.000000','2.000000','','01','','F001-00000045','0.000000'),
 (88,3,103,'NIU','50.000000','2.000000','2.000000',1,'0.000000',0,20,9997,'EXO','VAT','AMORTIGUADOR (LARGO) PARA MOTOSIERRA NT5800','00048','100.00','N',1,NULL,'20607856428','0.000000','2.000000','','01','','F001-00000045','0.000000'),
 (89,4,103,'NIU','50.000000','4.000000','4.000000',1,'0.000000',0,20,9997,'EXO','VAT','CUERPO RECOGEDOR PARA MOTOSIERRA NT5800','00046','200.00','N',1,NULL,'20607856428','0.000000','4.000000','','01','','F001-00000045','0.000000'),
 (90,1,104,'NIU','15.000000','295.000000','295.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','4425.00','N',1,NULL,'20607856428','0.000000','295.000000','','01','','F001-00000046','0.000000'),
 (91,2,104,'NIU','100.000000','28.000000','28.000000',1,'0.000000',0,20,9997,'EXO','VAT','\"CADENA DE 24\'\', REDONDA, 0.325\"\", 0.058\"\" PARA MOTOSIERRA NT5800\"','00057','2800.00','N',1,NULL,'20607856428','0.000000','28.000000','','01','','F001-00000046','0.000000'),
 (92,3,104,'NIU','4.000000','339.000000','339.000000',1,'0.000000',0,20,9997,'EXO','VAT','FUMIGADOR A MOTOR CRAFTOP NTS768','00006','1356.00','N',1,NULL,'20607856428','0.000000','339.000000','','01','','F001-00000046','0.000000'),
 (93,1,105,'NIU','24.000000','35.000000','35.000000',1,'0.000000',0,20,9997,'EXO','VAT','TUBOS COMPLETOS,?26×1.5×1500 PARA MOTOGUADAÑA NTCG520','00024','840.00','N',1,NULL,'20607856428','0.000000','35.000000','','01','','F001-00000047','0.000000'),
 (94,2,105,'NIU','24.000000','35.000000','35.000000',1,'0.000000',0,20,9997,'EXO','VAT','CILINDRO CON PISTON COMPLETO PARA MOTOGUADAÑA NTCG520','00013','840.00','N',1,NULL,'20607856428','0.000000','35.000000','','01','','F001-00000047','0.000000'),
 (95,3,105,'NIU','100.000000','2.000000','2.000000',1,'0.000000',0,20,9997,'EXO','VAT','ACEITERO PARA MOTOGUADAÑA NTCG520','00022','200.00','N',1,NULL,'20607856428','0.000000','2.000000','','01','','F001-00000047','0.000000'),
 (96,4,105,'NIU','100.000000','3.000000','3.000000',1,'0.000000',0,20,9997,'EXO','VAT','LLAVE EN T PARA MOTOSIERRA NT5800','00058','300.00','N',1,NULL,'20607856428','0.000000','3.000000','','01','','F001-00000047','0.000000'),
 (97,5,105,'NIU','48.000000','3.000000','3.000000',1,'0.000000',0,20,9997,'EXO','VAT','JUNTA DE CILINDRO COMPLETA PARA MOTOGUADAÑA NTCG520','00014','144.00','N',1,NULL,'20607856428','0.000000','3.000000','','01','','F001-00000047','0.000000'),
 (98,6,105,'NIU','12.000000','80.000000','80.000000',1,'0.000000',0,20,9997,'EXO','VAT','ESPADA DE PUNTA SOLIDA DE 24\'\' PARA MOTOSIERRA NT5800','00063','960.00','N',1,NULL,'20607856428','0.000000','80.000000','','01','','F001-00000047','0.000000'),
 (99,7,105,'NIU','200.000000','28.000000','28.000000',1,'0.000000',0,20,9997,'EXO','VAT','\"CADENA DE 24\'\', REDONDA, 0.325\"\", 0.058\"\" PARA MOTOSIERRA NT5800\"','00057','5600.00','N',1,NULL,'20607856428','0.000000','28.000000','','01','','F001-00000047','0.000000'),
 (100,8,105,'NIU','6.000000','339.000000','339.000000',1,'0.000000',0,20,9997,'EXO','VAT','FUMIGADOR A MOTOR CRAFTOP NTS768','00006','2034.00','N',1,NULL,'20607856428','0.000000','339.000000','','01','','F001-00000047','0.000000'),
 (101,9,105,'NIU','10.000000','499.000000','499.000000',1,'0.000000',0,20,9997,'EXO','VAT','\"ROLLO DE CADENA CUADRADA, 0.325\"\", 0.058 PARA MOTOSIERRA NT5800\"','00055','4990.00','N',1,NULL,'20607856428','0.000000','499.000000','','01','','F001-00000047','0.000000'),
 (102,1,107,'NIU','20.000000','27.000000','27.000000',1,'0.000000',0,20,9997,'EXO','VAT','CARBURADOR PARA MOTOSIERRA NT5800','00049','540.00','N',1,NULL,'20607856428','0.000000','27.000000','','01','','F001-00000048','0.000000'),
 (103,2,107,'NIU','20.000000','35.000000','35.000000',1,'0.000000',0,20,9997,'EXO','VAT','CILINDRO CON PISTON COMPLETO PARA MOTOGUADAÑA NTCG520','00013','700.00','N',1,NULL,'20607856428','0.000000','35.000000','','01','','F001-00000048','0.000000'),
 (104,3,107,'NIU','20.000000','2.000000','2.000000',1,'0.000000',0,20,9997,'EXO','VAT','AMORTIGUADOR (CORTO) PARA MOTOSIERRA NT5800','00045','40.00','N',1,NULL,'20607856428','0.000000','2.000000','','01','','F001-00000048','0.000000'),
 (105,4,107,'NIU','20.000000','2.000000','2.000000',1,'0.000000',0,20,9997,'EXO','VAT','AMORTIGUADOR (LARGO) PARA MOTOSIERRA NT5800','00048','40.00','N',1,NULL,'20607856428','0.000000','2.000000','','01','','F001-00000048','0.000000'),
 (106,5,107,'NIU','20.000000','25.000000','25.000000',1,'0.000000',0,20,9997,'EXO','VAT','CARBURADOR PARA MOTOGUADAÑA NTCG520','00015','500.00','N',1,NULL,'20607856428','0.000000','25.000000','','01','','F001-00000048','0.000000'),
 (107,6,107,'NIU','10.000000','35.000000','35.000000',1,'0.000000',0,20,9997,'EXO','VAT','TUBOS COMPLETOS,?26×1.5×1500 PARA MOTOGUADAÑA NTCG520','00024','350.00','N',1,NULL,'20607856428','0.000000','35.000000','','01','','F001-00000048','0.000000'),
 (108,7,107,'NIU','20.000000','25.000000','25.000000',1,'0.000000',0,20,9997,'EXO','VAT','CONJUNTO DE PLACA DE CONEXION, 9 DIENTES, ?26MM PARA MOTOGUADAÑA NTCG520','00021','500.00','N',1,NULL,'20607856428','0.000000','25.000000','','01','','F001-00000048','0.000000'),
 (109,8,107,'NIU','15.000000','34.000000','34.000000',1,'0.000000',0,20,9997,'EXO','VAT','CILINDRO CON PISTON COMPLETO PARA MOTOSIERRA NT5800','00069','510.00','N',1,NULL,'20607856428','0.000000','34.000000','','01','','F001-00000048','0.000000'),
 (110,9,107,'NIU','15.000000','15.000000','15.000000',1,'0.000000',0,20,9997,'EXO','VAT','CONJUNTO DE TANQUE DE COMBUSTIBLE PARA MOTOGUADAÑA NTCG520','00019','225.00','N',1,NULL,'20607856428','0.000000','15.000000','','01','','F001-00000048','0.000000'),
 (111,10,107,'NIU','15.000000','7.000000','7.000000',1,'0.000000',0,20,9997,'EXO','VAT','BOMBA DE ACEITE PARA MOTOSIERRA NT5800','00037','105.00','N',1,NULL,'20607856428','0.000000','7.000000','','01','','F001-00000048','0.000000'),
 (112,11,107,'NIU','2.000000','499.000000','499.000000',1,'0.000000',0,20,9997,'EXO','VAT','\"ROLLO DE CADENA, REDONDA, 0.325\"\", 0.058 PARA MOTOSIERRA NT5800\"','00056','998.00','N',1,NULL,'20607856428','0.000000','499.000000','','01','','F001-00000048','0.000000'),
 (113,12,107,'NIU','50.000000','12.000000','12.000000',1,'0.000000',0,20,9997,'EXO','VAT','PIÑON CON RUEDA PARA MOTOSIERRA NT5800','00068','600.00','N',1,NULL,'20607856428','0.000000','12.000000','','01','','F001-00000048','0.000000'),
 (114,1,108,'NIU','50.000000','27.000000','27.000000',1,'0.000000',0,20,9997,'EXO','VAT','CARBURADOR PARA MOTOSIERRA NT5800','00049','1350.00','N',1,NULL,'20607856428','0.000000','27.000000','','01','','F001-00000049','0.000000'),
 (115,2,108,'NIU','50.000000','26.000000','26.000000',1,'0.000000',0,20,9997,'EXO','VAT','CARBURADOR PARA MOTOGUADAÑA NTCG520','00015','1300.00','N',1,NULL,'20607856428','0.000000','26.000000','','01','','F001-00000049','0.000000'),
 (116,3,108,'NIU','5.000000','498.000000','498.000000',1,'0.000000',0,20,9997,'EXO','VAT','\"ROLLO DE CADENA, REDONDA, 0.325\"\", 0.058 PARA MOTOSIERRA NT5800\"','00056','2490.00','N',1,NULL,'20607856428','0.000000','498.000000','','01','','F001-00000049','0.000000'),
 (117,4,108,'NIU','10.000000','339.000000','339.000000',1,'0.000000',0,20,9997,'EXO','VAT','FUMIGADOR A MOTOR CRAFTOP NTS768','00006','3390.00','N',1,NULL,'20607856428','0.000000','339.000000','','01','','F001-00000049','0.000000'),
 (118,5,108,'NIU','100.000000','1.500000','1.500000',1,'0.000000',0,20,9997,'EXO','VAT','RESORTE PARA MOTOSIERRA NT5800','00044','150.00','N',1,NULL,'20607856428','0.000000','1.500000','','01','','F001-00000049','0.000000'),
 (124,1,85,'NIU','1.000000','320.000000','320.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','320.00','N',3,NULL,'20607856428','0.000000','320.000000','','01','','B001-00000014','0.000000'),
 (125,1,89,'NIU','10.000000','290.000000','290.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','2900.00','N',3,NULL,'20607856428','0.000000','290.000000','','01','','B001-00000015','0.000000'),
 (126,1,90,'NIU','1.000000','16.500000','16.500000',1,'0.000000',0,20,9997,'EXO','VAT','MANGO COMPLETO EN U PARA MOTOGUADAÑA NTCG520','00028','16.50','N',3,NULL,'20607856428','0.000000','16.500000','','01','','B001-00000016','0.000000'),
 (127,1,91,'NIU','9.000000','16.500000','16.500000',1,'0.000000',0,20,9997,'EXO','VAT','MANGO COMPLETO EN U PARA MOTOGUADAÑA NTCG520','00028','148.50','N',3,NULL,'20607856428','0.000000','16.500000','','01','','B001-00000017','0.000000'),
 (128,1,97,'NIU','50.000000','2.000000','2.000000',1,'0.000000',0,20,9997,'EXO','VAT','ACEITERO PARA MOTOGUADAÑA NTCG520','00022','100.00','N',3,NULL,'20607856428','0.000000','2.000000','','01','','B001-00000018','0.000000'),
 (129,1,99,'NIU','36.000000','5.000000','5.000000',1,'0.000000',0,20,9997,'EXO','VAT','KIT DE FILTRO DE COMBUSTIBLE PARA MOTOGUADAÑA NTCG520','00020','180.00','N',3,NULL,'20607856428','0.000000','5.000000','','01','','B001-00000019','0.000000'),
 (130,2,99,'NIU','12.000000','35.000000','35.000000',1,'0.000000',0,20,9997,'EXO','VAT','TUBOS COMPLETOS,?26×1.5×1500 PARA MOTOGUADAÑA NTCG520','00024','420.00','N',3,NULL,'20607856428','0.000000','35.000000','','01','','B001-00000019','0.000000'),
 (131,3,99,'NIU','12.000000','33.000000','33.000000',1,'0.000000',0,20,9997,'EXO','VAT','TUBOS COMPLETOS,?28×1.5×1500 PARA MOTOGUADAÑA NTCG520','00023','396.00','N',3,NULL,'20607856428','0.000000','33.000000','','01','','B001-00000019','0.000000'),
 (132,4,99,'NIU','9.000000','35.000000','35.000000',1,'0.000000',0,20,9997,'EXO','VAT','CILINDRO CON PISTON COMPLETO PARA MOTOGUADAÑA NTCG520','00013','315.00','N',3,NULL,'20607856428','0.000000','35.000000','','01','','B001-00000019','0.000000'),
 (133,5,99,'NIU','36.000000','13.000000','13.000000',1,'0.000000',0,20,9997,'EXO','VAT','CORREA PARA MOTOGUADAÑA NTCG520','00027','468.00','N',3,NULL,'20607856428','0.000000','13.000000','','01','','B001-00000019','0.000000'),
 (134,6,99,'NIU','40.000000','2.000000','2.000000',1,'0.000000',0,20,9997,'EXO','VAT','ACEITERO PARA MOTOGUADAÑA NTCG520','00022','80.00','N',3,NULL,'20607856428','0.000000','2.000000','','01','','B001-00000019','0.000000'),
 (135,1,101,'NIU','1.000000','295.000000','295.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','295.00','N',3,NULL,'20607856428','0.000000','295.000000','','01','','B001-00000020','0.000000'),
 (136,1,102,'NIU','12.000000','15.000000','15.000000',1,'0.000000',0,20,9997,'EXO','VAT','CONJUNTO DE TANQUE DE COMBUSTIBLE PARA MOTOGUADAÑA NTCG520','00019','180.00','N',3,NULL,'20607856428','0.000000','15.000000','','01','','B001-00000021','0.000000'),
 (137,2,102,'NIU','50.000000','5.000000','5.000000',1,'0.000000',0,20,9997,'EXO','VAT','KIT DE FILTRO DE COMBUSTIBLE PARA MOTOGUADAÑA NTCG520','00020','250.00','N',3,NULL,'20607856428','0.000000','5.000000','','01','','B001-00000021','0.000000'),
 (138,3,102,'NIU','12.000000','7.000000','7.000000',1,'0.000000',0,20,9997,'EXO','VAT','BOMBA DE ACEITE PARA MOTOSIERRA NT5800','00037','84.00','N',3,NULL,'20607856428','0.000000','7.000000','','01','','B001-00000021','0.000000'),
 (139,4,102,'NIU','30.000000','28.500000','28.500000',1,'0.000000',0,20,9997,'EXO','VAT','\"CADENA DE 24\'\', REDONDA, 0.325\"\", 0.058\"\" PARA MOTOSIERRA NT5800\"','00057','855.00','N',3,NULL,'20607856428','0.000000','28.500000','','01','','B001-00000021','0.000000'),
 (140,5,102,'NIU','12.000000','15.000000','15.000000',1,'0.000000',0,20,9997,'EXO','VAT','TANQUE DE COMBUSTIBLE PARA MOTOGUADAÑA NTS768','00060','180.00','N',3,NULL,'20607856428','0.000000','15.000000','','01','','B001-00000021','0.000000'),
 (141,6,102,'NIU','12.000000','20.000000','20.000000',1,'0.000000',0,20,9997,'EXO','VAT','PISTOLA RECTA MEDIA DE 90 CM PARA MOTOGUADAÑA NTS768','00061','240.00','N',3,NULL,'20607856428','0.000000','20.000000','','01','','B001-00000021','0.000000'),
 (142,1,106,'NIU','3.000000','35.000000','35.000000',1,'0.000000',0,20,9997,'EXO','VAT','TUBOS COMPLETOS,?26×1.5×1500 PARA MOTOGUADAÑA NTCG520','00024','105.00','N',3,NULL,'20607856428','0.000000','35.000000','','01','','B001-00000022','0.000000'),
 (143,2,106,'NIU','3.000000','33.000000','33.000000',1,'0.000000',0,20,9997,'EXO','VAT','TUBOS COMPLETOS,?28×1.5×1500 PARA MOTOGUADAÑA NTCG520','00023','99.00','N',3,NULL,'20607856428','0.000000','33.000000','','01','','B001-00000022','0.000000'),
 (144,3,106,'NIU','10.000000','2.000000','2.000000',1,'0.000000',0,20,9997,'EXO','VAT','TUERCA  PARA MOTOGUADAÑA NTCG520','00033','20.00','N',3,NULL,'20607856428','0.000000','2.000000','','01','','B001-00000022','0.000000'),
 (147,1,111,'NIU','3.000000','35.000000','35.000000',1,'0.000000',0,20,9997,'EXO','VAT','TUBOS COMPLETOS,?26×1.5×1500 PARA MOTOGUADAÑA NTCG520','00024','105.00','N',1,NULL,'20607856428','0.000000','35.000000','','01','','F001-00000051','0.000000'),
 (148,2,111,'NIU','3.000000','33.000000','33.000000',1,'0.000000',0,20,9997,'EXO','VAT','TUBOS COMPLETOS,?28×1.5×1500 PARA MOTOGUADAÑA NTCG520','00023','99.00','N',1,NULL,'20607856428','0.000000','33.000000','','01','','F001-00000051','0.000000'),
 (149,3,111,'NIU','2.000000','20.000000','20.000000',1,'0.000000',0,20,9997,'EXO','VAT','PISTOLA RECTA MEDIA DE 90 CM PARA MOTOGUADAÑA NTS768','00061','40.00','N',1,NULL,'20607856428','0.000000','20.000000','','01','','F001-00000051','0.000000'),
 (150,4,111,'NIU','3.000000','27.000000','27.000000',1,'0.000000',0,20,9997,'EXO','VAT','CARBURADOR PARA MOTOGUADAÑA NTCG520','00015','81.00','N',1,NULL,'20607856428','0.000000','27.000000','','01','','F001-00000051','0.000000'),
 (151,1,110,'NIU','2.000000','295.000000','295.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','590.00','N',3,NULL,'20607856428','0.000000','295.000000','','01','','B001-00000023','0.000000'),
 (153,1,1,'NIU','5.000000','295.000000','295.000000',1,'0.000000',0,20,9997,'EXO','VAT','MOTOGUADAÑA CRAFTOP NTCG520','00001','1475.00','N',7,NULL,'20607856428','0.000000','0.000000','','01','','F701-00000002',NULL),
 (154,1,2,'NIU','6.000000','36.000000','36.000000',1,'0.000000',0,20,9997,'EXO','VAT','TUBOS COMPLETOS,?26×1.5×1500 PARA MOTOGUADAÑA NTCG520','00024','216.00','N',7,NULL,'20607856428','0.000000','0.000000','','01','','F701-00000001',NULL),
 (155,2,2,'NIU','1.000000','26.000000','26.000000',1,'0.000000',0,20,9997,'EXO','VAT','CARBURADOR PARA MOTOGUADAÑA NTCG520','00015','26.00','N',7,NULL,'20607856428','0.000000','0.000000','','01','','F701-00000001',NULL);
/*!40000 ALTER TABLE `detalledocumentos` ENABLE KEYS */;


--
-- Definition of table `documentos`
--

DROP TABLE IF EXISTS `documentos`;
CREATE TABLE `documentos` (
  `iddocumento` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `DocEntry` int(10) unsigned DEFAULT NULL,
  `FecEmision` date DEFAULT NULL,
  `RazonSocial` varchar(100) DEFAULT NULL,
  `UbigeoFiscal` mediumint(9) DEFAULT NULL,
  `DireccionFiscal` varchar(100) DEFAULT NULL,
  `ProvinciaFiscal` varchar(4) DEFAULT '',
  `DepartamentoFiscal` varchar(4) DEFAULT '',
  `DistritoFiscal` varchar(200) DEFAULT NULL,
  `CodPaisFiscal` varchar(2) DEFAULT '',
  `NumeroRUC` varchar(20) DEFAULT NULL,
  `TipoDocRuc` tinyint(4) DEFAULT NULL,
  `DocumentoAfectado` varchar(15) DEFAULT NULL,
  `TipoND` tinyint(4) DEFAULT NULL,
  `TipoDoc` tinyint(4) DEFAULT NULL,
  `NroDocumento` varchar(15) DEFAULT NULL,
  `TipoDocAdq` varchar(4) DEFAULT NULL,
  `NroDocAdq` varchar(20) DEFAULT NULL,
  `RazonAdq` varchar(200) DEFAULT NULL,
  `Motivo` varchar(254) DEFAULT '',
  `DireccionAdq` varchar(250) DEFAULT NULL,
  `Moneda` varchar(3) DEFAULT '',
  `CodigoTributo` smallint(6) DEFAULT NULL,
  `NombreTributo` varchar(3) DEFAULT '',
  `CodigoIntTributo` varchar(3) DEFAULT '',
  `CodTotalGravado` smallint(6) DEFAULT NULL,
  `TotalGravado` decimal(18,2) DEFAULT NULL,
  `CodTotalInafecto` smallint(6) DEFAULT NULL,
  `TotalInafecto` decimal(18,2) DEFAULT NULL,
  `CodTotalExonerado` smallint(6) DEFAULT NULL,
  `TotalExonerado` decimal(18,2) DEFAULT NULL,
  `ImporteTotalVenta` decimal(18,2) DEFAULT NULL,
  `DocumentoOrigen` varchar(15) DEFAULT NULL,
  `TipoDocAfectado` tinyint(4) DEFAULT NULL,
  `UblVersion` tinyint(4) DEFAULT NULL,
  `CustomizationID` tinyint(4) DEFAULT NULL,
  `IdLeyenda` smallint(6) DEFAULT NULL,
  `DescripcionLeyenda` varchar(250) DEFAULT NULL,
  `TotalUSD` decimal(18,2) DEFAULT NULL,
  `TotalPEN` decimal(18,2) DEFAULT NULL,
  `MontoIGV` decimal(18,2) DEFAULT NULL,
  `DescriptionNC` varchar(200) DEFAULT NULL,
  `EsDetra` char(1) DEFAULT NULL,
  `MontoDetra` decimal(18,2) DEFAULT NULL,
  `Comentario` varchar(500) DEFAULT NULL,
  `Firma` text,
  `ValorResumen` varchar(250) DEFAULT NULL,
  `EstadoSunat` char(4) NOT NULL DEFAULT '',
  `TipoOp` varchar(2) DEFAULT NULL,
  `FecDocAfecta` date DEFAULT NULL,
  `TotalGratuito` decimal(18,2) DEFAULT '0.00',
  `TotalDscto` decimal(18,2) DEFAULT '0.00',
  `FormaPago` varchar(100) DEFAULT NULL,
  `Vendedor` varchar(100) DEFAULT NULL,
  `GuiaRem` varchar(30) DEFAULT NULL,
  `TelCliente` varchar(50) DEFAULT NULL,
  `CodigoCliente` varchar(20) DEFAULT NULL,
  `TipoDocGR` varchar(4) DEFAULT NULL,
  `GenericoSTR` varchar(400) DEFAULT NULL,
  `GenericoFec` datetime DEFAULT NULL,
  `GenericoDec` decimal(18,2) DEFAULT NULL,
  `GenericoSTR1` varchar(100) DEFAULT NULL,
  `notificado` smallint(5) unsigned DEFAULT '0',
  `fecha_notificacion` datetime DEFAULT NULL,
  `totalanticipo` decimal(18,2) DEFAULT NULL,
  `EnviarCorreo` varchar(1) DEFAULT 'N',
  `tipocambio` decimal(8,3) DEFAULT NULL,
  `fecha_notificacion_baja` datetime DEFAULT NULL,
  `GenericoDec2` decimal(18,2) DEFAULT NULL,
  `PorcDetra` decimal(18,2) DEFAULT NULL,
  `PorcRete` decimal(18,2) DEFAULT NULL,
  `MontoRete` decimal(18,2) DEFAULT NULL,
  PRIMARY KEY (`iddocumento`)
) ENGINE=InnoDB AUTO_INCREMENT=114 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `documentos`
--

/*!40000 ALTER TABLE `documentos` DISABLE KEYS */;
INSERT INTO `documentos` (`iddocumento`,`DocEntry`,`FecEmision`,`RazonSocial`,`UbigeoFiscal`,`DireccionFiscal`,`ProvinciaFiscal`,`DepartamentoFiscal`,`DistritoFiscal`,`CodPaisFiscal`,`NumeroRUC`,`TipoDocRuc`,`DocumentoAfectado`,`TipoND`,`TipoDoc`,`NroDocumento`,`TipoDocAdq`,`NroDocAdq`,`RazonAdq`,`Motivo`,`DireccionAdq`,`Moneda`,`CodigoTributo`,`NombreTributo`,`CodigoIntTributo`,`CodTotalGravado`,`TotalGravado`,`CodTotalInafecto`,`TotalInafecto`,`CodTotalExonerado`,`TotalExonerado`,`ImporteTotalVenta`,`DocumentoOrigen`,`TipoDocAfectado`,`UblVersion`,`CustomizationID`,`IdLeyenda`,`DescripcionLeyenda`,`TotalUSD`,`TotalPEN`,`MontoIGV`,`DescriptionNC`,`EsDetra`,`MontoDetra`,`Comentario`,`Firma`,`ValorResumen`,`EstadoSunat`,`TipoOp`,`FecDocAfecta`,`TotalGratuito`,`TotalDscto`,`FormaPago`,`Vendedor`,`GuiaRem`,`TelCliente`,`CodigoCliente`,`TipoDocGR`,`GenericoSTR`,`GenericoFec`,`GenericoDec`,`GenericoSTR1`,`notificado`,`fecha_notificacion`,`totalanticipo`,`EnviarCorreo`,`tipocambio`,`fecha_notificacion_baja`,`GenericoDec2`,`PorcDetra`,`PorcRete`,`MontoRete`) VALUES 
 (26,32,'2024-09-24','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000001','6','10480264474','FLORES MOZOMBITE BERITA','','SAN ALEJANDRO UCAYALI/PADRE ABAD/IRAZOLA ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'580.00','580.00','',0,2,2,1000,'QUINIENTOS OCHENTA CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','PsyKkbLCMztk7bN8KEWmdtW5vVgIIeFUQIxKSbV7ymplNcnq7K+5ybQJDfrtrYPL66XLSSNolYH0h0uEwAFBU/+VfpSpsrMiItP/lag2r7aFPiB+T8xoytc6TpoYdqA2PUs7KLo8hUHpdydIu0Bu7UI9QZJNOW4rDxTdbL+mNz5GSbzT6QhT950lVS7mgdXRuU1Ef6tnLpwC4hnYkahbRle4YhMBl1RD2Q59AqtroKc/UAyWyUua+ilcpmTBpFBDnCE9gm5RqqneA1hO6t8tz5gCAeiF1sYmOEPdLsPhyZewm/maKCwVhIBuUMs5NCFkkcl5h18VOqNapSrPOKy4/A==','p+qwCTGyk6mNraWrhemA8FD2dMA=','0','01',NULL,'0.00','0.00','CONTADO','JUAN TORRES','','921776527','C10480264474','xx','||002||||0','2024-09-24 00:00:00','0.00','LAN',3,'2024-10-03 08:56:21','0.00','S','3.773',NULL,NULL,NULL,NULL,NULL),
 (27,33,'2024-09-25','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000002','6','10229661243','SALDANA PEREZ LUDENDORFF','','- HUANUCO/LEONCIO PRADO/RUPA-RUPA ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'580.00','580.00','',0,2,2,1000,'QUINIENTOS OCHENTA CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','IoY6P4X+Iyb/bHuUlrFemJjdTXMPg9zUChDBrF2q76Liqmi25e8/0skCilxMpyBB0PMWzv+twpRS02aLu0Gatscp6leLKwiK3LEMoYBJV3Xvj6MnLoYrsyUdAwIRbTOUq20QUCzTz5ULybOcjIjMupi8WV6THuGhwzscMOZxhPkdcrsWzoUWKZSXkvSaeA1w1hFS5UWub+s3WjQkFhqEC4J+ROxFRQDfeUR/K9jG2OvpuYprHbipEHg7RHEVyqAL6E857EFTgEO2aLpjAgCqG/ZSUIw5kbjVyG9CHsYNXFrtcNWUq6w8Qor1DMvxT6zGmN/rh9Cs9QYG8sDg60DEtQ==','eKwe6SA3/VtPNx2N4PTm82+gQ9I=','0','01',NULL,'0.00','0.00','CONTADO','JUAN TORRES','','962547308','C10229661243','xx','||002||||0','2024-09-25 00:00:00','0.00','LAN',3,'2024-10-03 08:59:28','0.00','S','3.768',NULL,NULL,NULL,NULL,NULL),
 (28,34,'2024-09-25','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000003','6','10229630887','SALDANA PEREZ DOWNEY','','AV. ANTONIO RAYMONDI 116 HUANUCO/LEONCIO PRADO/RUPA-RUPA ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'1450.00','1450.00','',0,2,2,1000,'UN MIL CUATROCIENTOS CINCUENTA CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','uOQUaxhfHLxOvM8exvBXnRrgqnNFa3XDoCiWVdfJfiQHc6hsuzrDPjFkQRl+aJY86WvcNsLDvBbtkwcn/Lx0SW1bNQV8xl46N4a5jYPUNBtEdS5UYhQegg1jHwQoVCTUO66XJlxx5h0EhCT9aOfDhjKdnUxuZMkRvu9ZjLe4qIm8+G63gjPP4zj90KVDH5X5RKGhVAWUWsvpGQeCam7VZGgs/i6zHoZUZuQAfGsdpT8t6i4bSIKhfW3DZb7fup/3BF7d/fpxDKVU/H8fbZzIylz2OCKPTZnOwFxP0gQ9kXgzQvy665zRXrcK9oSCIY7bJ5rlffzxJlWZDMbeU4wikw==','t0TzXnbiVX55xc2PDD5sH8G/ikM=','0','01',NULL,'0.00','0.00','CONTADO','JOSE ORTIZ ESPINOZA','','945069309','C10229630887','xx','||002||||0','2024-09-25 00:00:00','0.00','LAN',1,'2024-10-03 09:06:17','0.00','S','3.768',NULL,NULL,NULL,NULL,NULL),
 (29,36,'2024-09-25','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000004','6','10231676070','AQUINO TRINIDAD ANTONIO','','SAN ALEJANDRO UCAYALI/PADRE ABAD/IRAZOLA ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'870.00','870.00','',0,2,2,1000,'OCHOCIENTOS SETENTA CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','lqnBWDn7yZzvbuDTX3bDaiaK5FCfmOXilurCBATLx81dSI7h5yfG7+YJzbK1mZqLnuvXZaHiehAJC+7w8Ip0HfJiUPhKyHuxIq4c54o14JwmJfdNpZvlPv2gU0HA6rKaG0CEj8GZiweQ6DQNoQf4NacYxbhXKqd2HXtAHhuUofoBABwZGhl4A23OkPfTNQPI+q+IC4zymCmokIuOJcEK6qd9EC1PwimCiEuY6UxlhVqRxXUNh1/0KjPSRtmz04Vq5V+PupOy842BIH7eswktMdA43QdFtvvmhb4WF6iYxPIrwMgMOdk18QU761O9HZUVHJT+V+/5beBN5vPBXw9isw==','PocjNRmOR+scIcYqsVCTMTW9qXE=','0','01',NULL,'0.00','0.00','CONTADO','JOSE ORTIZ ESPINOZA','','983305256','C10231676070','xx','||002||||0','2024-09-25 00:00:00','0.00','LAN',1,'2024-10-03 09:11:41','0.00','S','3.768',NULL,NULL,NULL,NULL,NULL),
 (30,37,'2024-09-25','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000005','6','20610579231','EMPRESA SOTO E.I.R.L.','','CAR. FEDERICO BASADRE LT. 4 MZ. 135 - UCAYALI PADRE ABAD PADRE ABAD UCAYALI/PADRE ABAD/PADRE ABAD ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'870.00','870.00','',0,2,2,1000,'OCHOCIENTOS SETENTA CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','wSQb6ISuFm/PcMu6eKln4oLcrBtdGAeMbtrjEgyN0SP9oTY3X1+TdtLAl7BQbky1lz3hX7n4y13lGWMJWYK9LMwyQ4aWhDXhVVV/0Z9L7yj5fkbQjfbqcCEeN/s8EEbcoRNuCbow4fIaK+8y3PWQRib3BBmkMS3NIqk1nKFBCXdHbdjqZYoUzk6dur48quLBGCjfw7S/FfWknCbiy1RIy063PnCAJtXwqhHts00bxS9ChSjLF/4GUE6w1mscvqJtrjnRhn1lgALneZLMQtdtR3Bp1i5AA3qV0SMGQVQieA8i4RET35Q8lHvMMODgg/owEpeUpuC23GrTtcWSRnVpNg==','KvJUVH15OYJZdGofoa23M/68ja4=','0','01',NULL,'0.00','0.00','CONTADO','JUAN TORRES','','954085060','C20610579231','xx','||002||||0','2024-09-25 00:00:00','0.00','LAN',1,'2024-10-03 09:12:55','0.00','S','3.768',NULL,NULL,NULL,NULL,NULL),
 (31,38,'2024-09-25','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000006','6','10482000504','MORI LOZANO JHON LINCOLN','','- UCAYALI/PADRE ABAD/PADRE ABAD ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'1160.00','1160.00','',0,2,2,1000,'UN MIL CIENTO SESENTA CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','1tKOsY14NIAcWgYxq0jMSJJtvxRCS2YninnN2T2vf56s8RWjwwko13eyVz3mNmYG9xBWCNgPsVvO9uG8P+7sQsZIqXN98R6E83kYbLnBRfQnyHYiIjQcCAgVW9q355PTGPj4K63XBCN2q/i4a5mqtDMB7Rcxy/rHavCVApTNr8RrajRC2EDP9HZez19R818yIixKEEZ8CL5onTuYnxg8+HizVdZWneUzr//Nj+ywBQLMIz75wNYqrV4HeuTGKkgQbfYlFNVaqzlW/PrOWPFI5lEMBHSTiZ4XGKUacbTfwh7QTo+BE/efKWCJTMyS9zOQ1vnGewwlHdXYUmDwY3jVIw==','5VU3vS/p4B4smcHrrorg1ORtqbs=','0','01',NULL,'0.00','0.00','CONTADO','JUAN TORRES','','932495573','C10482000504','xx','||002||||0','2024-09-25 00:00:00','0.00','LAN',1,'2024-10-03 09:14:28','0.00','S','3.768',NULL,NULL,NULL,NULL,NULL),
 (32,40,'2024-09-25','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000007','6','10229604151','ARMAS SHAHUANO LOIDI MARITA','','TINGO MARIA HUANUCO/LEONCIO PRADO/RUPA-RUPA ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'5800.00','5800.00','',0,2,2,1000,'CINCO MIL OCHOCIENTOS CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','Xkd74mNwuVMtOKkqQE6PZ8lJAYWacdrJWiEZNZOSoLIXU8l129gG1EuAK6T4QLit62PVij7gWuqw+R1K+ND2azviHORgxKEoZq3EnsLM3QzZDBb+XqF27nq8Rs2YuxSx/ga8TkuixVT+4XhP2UxblJ9zMElcYYOy2rz1dDw0+0kQSjX8h2GTfbQ1shCOIpyPDuR4GLIb/hPd4wfj4n1ELja3wzj6YGqJAugvD/cbFJ03QueqM/C7C2YnS0f5XhRG2sQbgzrdls+sbsp5KvWEPgNBAS43bqm2kZEhJOSeZ37UnM7ePaOlo2r9F0pzdvWiIbYHIo4okdpPhWjhn43t2A==','GgflnwV43fm83vU2a7z/ZJDK7u4=','0','01',NULL,'0.00','0.00','CONTADO','PAULINA QUISPE','','972235420','C10229604151','xx','||002||||0','2024-09-25 00:00:00','0.00','RAF',1,'2024-10-03 09:25:06','0.00','S','3.768',NULL,NULL,NULL,NULL,NULL),
 (33,43,'2024-09-25','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000008','6','20600843410','IMPORTACIONES HERRERA E.I.R.L.','','AV. LAS AMERICAS NRO. 517 C.P. AUCAYACU HUANUCO/LEONCIO PRADO/JOSE CRESPO Y CASTIL ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'885.00','885.00','',0,2,2,1000,'OCHOCIENTOS OCHENTA Y CINCO CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','v6HPlfyGJprf4ti24Kpo0PwA1WjokzfERCvQcXgNUMywL8d6dr1uAAfLHK5VM4ihAMTFwAoV1Jschc5tkrlmObXlR5dwPhIki1b8WwWb6lb5Sh641/alizIIAUKJ8iK/4USvptqF6aQuPOENXxlPQ5NO+Z/mF+5YPBMqInZRpIJfLqMaNYaZtYzCC/38bWhkDex93RpcRKNmITIBwErDCTC7cxlbDAnNAbSDl1/2ps8aS5SH7afI270XQWYws+VP5lF9otfyly2PJIZAo3HWbcx0W4gd6CE/VBzWjcSxqK/A3vETtoU+aYeWcrjDavFxq1FuZ3lBnyTlI5ohhSB+Gg==','rDpyZ61Y07DwNQcvNJT7gAFqQUg=','0','01',NULL,'0.00','0.00','CONTADO','JOSE ORTIZ ESPINOZA','','962856693','C20600843410','xx','||002||||0','2024-09-25 00:00:00','0.00','RAF',1,'2024-10-03 09:25:11','0.00','S','3.768',NULL,NULL,NULL,NULL,NULL),
 (34,46,'2024-09-25','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000009','6','10209623604','CALLUPE PALOMINO NICOLAS','','AUCAYACU HUANUCO/LEONCIO PRADO/DANIEL ALOMIA ROBLES ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'870.00','870.00','',0,2,2,1000,'OCHOCIENTOS SETENTA CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','G1Gr2z7b0x6gBlaQriInD3wVy/16kZY7O1li5IW4EMDypu1U3mgtl+d+J7ZRrPmIemgdd3/rCJxisRFEvGkHsSRLl9WUtg2joNfh/iZlMw3r6KCD0gnPAtKobPZ9CfQX7A+Hq+4dspk7SB2fpRZeJsGBeNk4vmIpdw/3GFuPygxJlBaZ8uPzJk4/hjEMZnRoScXl8s0luu1rr34CdpIN7YfFjh1iIqzy7e2narZvLdJ1Q8FrfMxHnPz8fJmokPBPVa4Ol4cVm4gp8F0ERHEH2JqwgjQ0En07pTjgu25+qolUskvY8RF37CKjm2/oaAyYRCYOwzCjpOk/I+fQAe+Dbg==','VqDvEEOihnCltzSADHwJbzrPuCw=','0','01',NULL,'0.00','0.00','CONTADO','JOSE ORTIZ ESPINOZA','','942881153','C10209623604','xx','||002||||0','2024-09-25 00:00:00','0.00','RAF',1,'2024-10-03 09:25:16','0.00','S','3.768',NULL,NULL,NULL,NULL,NULL),
 (35,35,'2024-09-25','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,3,'B001-00000001','1','76225612','ROJAS POMA JHON','','. UCAYALI/PADRE ABAD/IRAZOLA ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'580.00','580.00','',0,2,2,1000,'QUINIENTOS OCHENTA CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','g8N2AWBkrIGcBq8stk8kzsO0s+Lm8msXL5o2O8mGgrY0usQ9b4wnyTTxVovoQN4ymP5zdMmgNAj2I3UkJdy06l5MWJuPkQd3sQoqV+FUqk7sY7vXaGGs3cqHQ9xEt1oeGhiJ1A/aNfAIENBnVPcMMJcYWZmrcB4Lxj7NPJskMXyzQ7P/7d1oB5DEVNnTvTo2Yrq7QFqbuEbtutSJVl4jGKv3wlNu9jg8pcHABsXH0f3xyKZ5kMtnAjn5bKJpV1LXuA2Jv0fYWRYvUmiu/VpIspfUvPBU8NsZ2s/arC3drpMag0GryvmgVAQH/UN2ddv4gchA5Vdw6xLYAAtidknr1A==','nuZmg8DjVhNGfYsCTZLVHPo6WHw=','0','01',NULL,'0.00','0.00','CONTADO','JUAN TORRES','','904803368','C76225612','xx','','2024-09-25 00:00:00','0.00','LAN',1,'2024-10-03 09:25:20','0.00','S','3.768',NULL,NULL,NULL,NULL,NULL),
 (36,39,'2024-09-25','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,3,'B001-00000002','1','20054848','VERGARA NIETO LUIS','','. SAN MARTIN/TOCACHE/UCHIZA ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'870.00','870.00','',0,2,2,1000,'OCHOCIENTOS SETENTA CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','RWpzhfhFjTTaL4GAuiqBbLd7Iv2bDngCh3oHaHdGgA1swNn3QV0UVnLRCJebzrEr2AWF8h8MmGuc/8GSqn9/N0uYYvQwh+sStksJJYMgpMY0ZTFfd4eco+aOcGeNY/VftJepe4lpx3u5ZQN/eVg56otA0KeKqMIiGwhVGFG/r6ZwVQVhkD2e0iM1H20ZrYWnM+zvx4U4wHiLe1R9PYYIxXRRP8o8GQ1gflsbQd/SnMPQ408QI7wbTc9OfF2elxgACSb8EtiIMW4f0fjOGTURKcZ1SBBmqX5pILf9eBLU0qc8AEQgZMcq6X9ioUZrYUiTgEpf69QvVAeIO6hjMWdtDA==','FiU7kB0t+DiNrE0RtWIBOHOXJ14=','0','01',NULL,'0.00','0.00','CONTADO','JUAN TORRES','','928485705','C20054848','xx','','2024-09-25 00:00:00','0.00','RAF',1,'2024-10-03 09:25:26','0.00','S','3.768',NULL,NULL,NULL,NULL,NULL),
 (37,41,'2024-09-25','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,3,'B001-00000003','1','45828102','SEVILLANO PEREZ LIZ','','. SAN MARTIN/TOCACHE/TOCACHE ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'580.00','580.00','',0,2,2,1000,'QUINIENTOS OCHENTA CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','zcUoVRxyRFIfUpv9so+M0d18NNQOAjn4bkRyMEtAvCDNwGz0PXQ7NsbTY5IUS7lIC8fDMqIF7pxiAhh853s36JFOrWDpbQgAAZOo4kVHlAUdE3g7qQ+UFqb+JddUBWxDFJBbwB6XSBmw55OCBA6Sh9mqOzdjwtNHFnQ7f4dkyy9RRKJmYC2cgABBMWppFtLYCgTlHnrA03oQHV7uMgUsb+4BFoHfdBkxNALtAk3bPHSU/iINE2113BAB4tMCjOT/oPqk/K9TqD6eFvPONpbourOOdAeNRDydvf3oG8xdfsX5KQiV+hPbVeh6Fr7T3Lsk8LgpjS9B2KefBzQJ45zEgw==','KdiOInFjzSMoSJJAe0S8nW2X+Is=','0','01',NULL,'0.00','0.00','CONTADO','JUAN TORRES','','994481549','C45828102','xx','','2024-09-25 00:00:00','0.00','LAN',1,'2024-10-03 09:25:31','0.00','S','3.768',NULL,NULL,NULL,NULL,NULL),
 (38,42,'2024-09-25','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,3,'B001-00000004','1','01014443','ATALAYA DIAZ ELOY','','. SAN MARTIN/TOCACHE/UCHIZA ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'295.00','295.00','',0,2,2,1000,'DOSCIENTOS NOVENTA Y CINCO CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','WbVVRMe+YKnKJ/OGniIY/YgbvXks2Peh52GeFK9FzSN1XxMb0gYrL6F5Q6lou12R674SvIxfvHpejoEUKHgYfRokwjw1/bW6FHVQ2RYeJazf00qqbJeSyuuJcLMBr9HPvsVI6pDHvHJDskQJUIvFG10Ev2TasomklOoA3QiIIyp6ZeVx5NvK4PIECX9Dzz+kGBc2bHZoBB/THs7qrESombszS7upFevCkF22mVhL8QgEZYrUd9sOqEhwf/GQYfIiF7iJeTo6cezXf368HN4xJlX+47xRNKo9lhU8MmRbASaID/s2c03o0Bf2NWrOPj5j1+4KjCux44M0kpNWE0JoaQ==','D+nkk+3tDvcD8Z/v6F8nkrRANnU=','0','01',NULL,'0.00','0.00','CONTADO','JUAN TORRES','','961621189','C01014443','xx','','2024-09-25 00:00:00','0.00','RAF',1,'2024-10-03 09:25:36','0.00','S','3.768',NULL,NULL,NULL,NULL,NULL),
 (39,44,'2024-09-25','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,3,'B001-00000005','1','76801405','TORRES ROJAS JUAN','',' ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'295.00','295.00','',0,2,2,1000,'DOSCIENTOS NOVENTA Y CINCO CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','CnR7FLIub2Ym4GuwN4w05rm7wItgMW8BbNtq8zTlBP70tY3X6SPCJ5oJK6x+/Yld53pmPF4Eyf7vYK+3srLn7XG2wT0RkXJIuo4I7j5qW5bA9sHaPldnwtWRRWXEBqLKjV8fi/KQKkIYDQRSH7jH5xtsULISv8akq/fU+ihUcQMEzlLI821Yk/F8a3xti00+VpNM5vGJUjt3kmfRAWxEryIDuMnucUjP1CcL/kd9lX+Aq/ZOGaOuRrxQuXGI9j8/MA2GrM9gp7d0pk2mH9xA6/AP7LahNTfh2i1iK7bClYbKD/kdQ9cPDfYXQDACQEZrRI9QMyQ1ZRAWueyalWBc9A==','QmRB1C+XVpOuD3m0B58v2QxtVow=','0','01',NULL,'0.00','0.00','CONTADO','JOSE ORTIZ ESPINOZA','','958315920','C76801405','xx','','2024-09-25 00:00:00','0.00','RAF',1,'2024-10-03 09:25:41','0.00','S','3.768',NULL,NULL,NULL,NULL,NULL),
 (40,45,'2024-09-25','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,3,'B001-00000006','1','76801405','TORRES ROJAS JUAN','',' ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'1160.00','1160.00','',0,2,2,1000,'UN MIL CIENTO SESENTA CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','QJ4msXh9eFkbFrNm5+Rzz/zI39CFteM10pES0hyR5zRrZQh7ivrq640aMjNZ2XWry+HWFKBFIlMSSTZza2/mhQcU+emdHVuyWZ1O2mBoEoizes8WEOUy8ecyMPT9LOgT9t+CjO2o+2iUopkMuwzGOcn/nnHXPA8hStCRI2w6YzogRgpbeX2VrjukG1LDslXBy/Lcv/cEuaFkvH0xO+htcX4+jE0OfYdluId7GTEfKAUjMh1yZ4pSgyAI4UnE1Sn8s1xZNZU7YYUCj0kJEk33ANakTkraevNa/E3H7T6ELEtJOerlAzSpeCpMlqxXJkjxkWshDSmiov72C/4kt+6X2Q==','dS6MAY3TEFWLYsJLi+9XlgQAhFw=','0','01',NULL,'0.00','0.00','CONTADO','JUAN TORRES','','958315920','C76801405','xx','','2024-09-25 00:00:00','0.00','RAF',1,'2024-10-03 09:25:46','0.00','S','3.768',NULL,NULL,NULL,NULL,NULL),
 (41,47,'2024-09-25','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,3,'B001-00000007','1','44944701','CHAUPIS CORDOVA MARIOLINA','','SAN ALEJANDRO UCAYALI/PADRE ABAD/IRAZOLA ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'580.00','580.00','',0,2,2,1000,'QUINIENTOS OCHENTA CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','Fra0RZthA9HDzusQQLKEhZe9zOPYzFlXqY/3af4DVxliEAeJusMFE6FaFqDJr6Ga1AOQZd9hlyiMds0iG9BsHAthmbOU1cnbOUAmsag2AuMOai1Rtw7ed08FN6ZlbxeK6jpRH4K1CYsBX/rKzFlOV0N22Md0+8S8M6QkzNwzCrXb+eBiFeaXbWoVA/xsSAtsMqyNghRSLZYAvJzhr5iBeXuT25OB9kYCzzTl9HLyulke85WrlZlqMWc0H3WlmKRwejkYqW/oM80KUK3EzQXYBaVeaHVp9jzSYTsTF7KzG8npgkI3UELWbmpPil7hyv8/3B86XPWy/PfOahTS4TfmQg==','Ru9cunvj51wtH7AQzn6dgqFBwIM=','0','01',NULL,'0.00','0.00','CONTADO','YOSILYN SOTO QUISPE','','924538615','C44944701','xx','','2024-09-25 00:00:00','0.00','LAN',1,'2024-10-03 09:25:50','0.00','S','3.768',NULL,NULL,NULL,NULL,NULL),
 (42,48,'2024-09-25','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,3,'B001-00000008','1','76801405','TORRES ROJAS JUAN','',' ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'580.00','580.00','',0,2,2,1000,'QUINIENTOS OCHENTA CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','L2TZRVb13xLTY1MRrsLFIbQNnklV6tTglqTEii5yS/GXcb5HZoW0IrBiFJUqf/ZvKIo7KsDRbrUWih793cBVkMXAvm5diZ+e9oOdKP53svcv1jMWdjUk16LnRM7ySNES01DgQcE5dNMagDY1qJFbUXy0i8+PygQpGxfVQzx8/nyTlW/+eub2nqN2M+9QZIsTwi3XvhzQqcO2GWTl43r/HQ1j5HwGr4p7KS72+GykIzwrqG8a6s2ZUN4t2qmCU9wBYQSsivKNGTkEZOF2QzgcupnGR9LWQ1Ep87v58NaYaQUGHNcH/r6vGS3gUzkSEs/tt76wE5gPyTC6o03FHkGO6A==','y2u3QspvtyQlpgntOzSExboTeAI=','0','01',NULL,'0.00','0.00','CONTADO','JUAN TORRES','','958315920','C76801405','xx','','2024-09-25 00:00:00','0.00','RAF',1,'2024-10-03 09:30:06','0.00','S','3.768',NULL,NULL,NULL,NULL,NULL),
 (43,49,'2024-09-25','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,3,'B001-00000009','1','76801405','TORRES ROJAS JUAN','',' ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'1450.00','1450.00','',0,2,2,1000,'UN MIL CUATROCIENTOS CINCUENTA CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','fORF8KQQqMEEiUxbAqeNVGub+zDZLWV1YtzjmTLmyEgJGyqh1mmggHcwIiZzpTWiohdxnx/hdW4sq4XFWqqNndsv2yJano32mAExaN9J6g1nFbAEjNrjZQmFGUWg8YnYI9vjN6u6HQ/zxyH+P7mFtYV1wr3Ed2uyHEwDbxDuL20QxFvov0r4erQF6qgkY2w8raXAs/atT3k/jTMmsEEiHDaC1hmR8SuLvmfGoKGzhqoecwETxITzrxhWOmWvZQgR8rIEkRVIPWE5pUMywqVDQoDeKxAyj2Fal7FkshnVeP1ohYaBq3TGXoWcpwP/kKu39+CJ30z+mdsgwPGeCTLi+Q==','MkBbTL1tv8y8nTebh+3o+8hgnXY=','0','01',NULL,'0.00','0.00','CONTADO','JOSE ORTIZ ESPINOZA','','958315920','C76801405','xx','','2024-09-25 00:00:00','0.00','RAF',1,'2024-10-03 09:30:11','0.00','S','3.768',NULL,NULL,NULL,NULL,NULL),
 (44,50,'2024-09-25','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,3,'B001-00000010','1','46542491','MATOS RAFAEL MAYCOL','','. HUANUCO/LEONCIO PRADO/DANIEL ALOMIA ROBLES ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'1450.00','1450.00','',0,2,2,1000,'UN MIL CUATROCIENTOS CINCUENTA CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','ARiBAm16SKDnK3jzedCMMADffK2/Q+O/lz/76Ul0UGr6AWoGSqUK0NjwvxiQ3hQduABzuLfu7ONWyVNNytVXMTspHhtVkWfvrCLhqJMSLMseww/KMw5sL6OJ6I/io860F3RK/Lub60KFSmy9hLN/z4Apv3kuANe/9PkvoT1yc2+NtpyegWFpO49pInB7F1GMec/OHtmVA8g4kvYM7b/fI4fi/cImCntp7+4k2x7L2epAiDw79Y4HxpZOFgZcE8yKvQOKDDd88mZsHSETPLepJeKyNxAWHoC8Lip8h1ITWhie4e/XjsDV3/8V+/usPuMaTeer0XmbQLdqTcNeFoqi4A==','/71pYtI57EykPw9JfpKLVfg9ScE=','0','01',NULL,'0.00','0.00','CONTADO','JUAN TORRES','','942091653','C46542491','xx','','2024-09-25 00:00:00','0.00','RAF',1,'2024-10-03 09:30:15','0.00','S','3.768',NULL,NULL,NULL,NULL,NULL),
 (45,51,'2024-10-01','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000010','6','20608217771','WCM IMPORT SOCIEDAD COMERCIAL DE RESPONSABILIDAD LIMITADA','','OTR. AVENIDA 8 DE SETIEMBRE LT. 20 MZ. CH OTR. ASOCIACION DE VIVIENDA 08 - JUNIN CHANCHAMAYO PERENE ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'2950.00','2950.00','',0,2,2,1000,'DOS MIL NOVECIENTOS CINCUENTA CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','Lj36RZNyx9dPAIAEpFqaMZmS9O/VyiFCcAE6atM8kyzOX74vOxXSzaMC8kvEu382jyYxOkkgRWhgFldT3+SBVli3+qYNaoF3HL0sGm/YWIaDHrGPPWzhJcYQfmqcrwbsYdFHCZBUaLOhrVjJEJBVi2AKCW+I5zL3xcp0HbvPO6hxpF5EQRkPMf4eMURrMaoTrGYT+zD+9dujosE4Vif0c03332e74Cxmegu6Wze9DVOLbe8Gniwt7fo6ZLtW5Cj565x9fBT6c3t2UOwYqreicpKPzvfMHe7jCcm4fJk3SOSIf7uolMTzFY+3KrJEuNTOewPYXirdc32nashhVbpOgQ==','5RYMHj7C21zFhvH8dzUpZfsYTxE=','2108','01',NULL,'0.00','0.00','CREDITO 7 DIAS','YOSILYN SOTO QUISPE','','980361013','C20608217771','xx','||002||||0','2024-10-08 00:00:00','0.00','LAN',0,NULL,'0.00','N',NULL,NULL,NULL,NULL,NULL,NULL),
 (46,52,'2024-10-01','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000011','6','10435900025','LEON DELA CRUZ ELVIRA','','JR 8 DE OCTUBRE BAR BARRIO BUENOS AIRES MZA 15 LOTE 01 UCAYALI/CORONEL PORTILLO/CALLERIA ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'1160.00','1160.00','',0,2,2,1000,'UN MIL CIENTO SESENTA CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','05KXqGRzXj0GtqJYZU2jpaBOTG9jR8pxosCjLL3208qg6nIdrmViKFNOafgSS7CAQB3OPSZNA8sUf8cXfdePg2srJZj+X58v41wJ0nfiT3mHTV/DJpjl0zQChNMdOu5keqSvCYIsRgzyn2hsjYp+O1sPT+L3QW7Oek0pSE2Qc6qOqOSdOWsVySsLspHt97H8rBAgHhZyv+avAexQK7fOvNIVkqV8DPcvxl4JjP3ebLEhPKWD48ry5IQsgcrXnxvAdmiv/i3jx7gQI+l9K8UXvZ5AMHeyaprxzhEFEbIAhspaN/kN/WzlxanlDC+VqE2rUi9rfxpXeEnb+wJqggcmfA==','IdT+ocEI0DAs6hfR+0uCMen+u0w=','2108','01',NULL,'0.00','0.00','CREDITO 15 DIAS','DANIELA FLORES BARBOZA','','950616734','C10435900025','xx','||002||||0','2024-10-16 00:00:00','0.00','LAN',0,NULL,'0.00','N',NULL,NULL,NULL,NULL,NULL,NULL),
 (47,54,'2024-10-03','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000012','6','10201200259','DE LA CRUZ CARHUALLANQUI TEOFILO RUDBYN','','SATIPO JUNIN/SATIPO/SATIPO ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'870.00','870.00','',0,2,2,1000,'OCHOCIENTOS SETENTA CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','OJDj/5JuXK70rX3nLfsubAir7/zfgfyL0KT1bUrrWMF+PB5FT5nPhye12lPLu3Wqf3KPQh3SaHB25magIIOeUyCYYFaD2peS645HyHpjyDShcUfSBSx/2pBbpvLLDF2N6YH5OLbXurvMRn1wNMlfi+sWUrXoSfXnRYGgZlGF/VcBN41PcupEuAnNSugEiBFkhbQDLH7QXE3qxCvbMgQJoNWkSWKswNxZs/VYTD/nsAhB1qJSy+VOuUT/hgix4fh9U5y2raOn9QkzBfqMvtx3N7+M5W/q05ZF/BYY9f8CeqLJnaRe8TyZs/gwj222ISzxMsVjUQc4aTnI9Ph4TY1taw==','iyE5aHtO5fGhW3BqhrMrZuG+4fk=','0','01',NULL,'0.00','0.00','CONTADO','CINTHIA HUIÑAPI HUANSI','','958822292','C10201200259','xx','||002||||0','2024-10-03 00:00:00','0.00','LAN',1,'2024-10-06 07:00:11','0.00','S','3.721',NULL,NULL,NULL,NULL,NULL),
 (48,55,'2024-10-03','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000013','6','20609594625','LAZO MOTORS EMPRESA INDIVIDUAL DE RESPOSABILIDAD LIMITADA','','LT. 3 MZ. F ASC. CATALEYA JUNIN/SATIPO/PANGOA ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'1200.00','1200.00','',0,2,2,1000,'UN MIL DOSCIENTOS CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','AmEppidv1T/Ae0hD8sx7KBH0yOqOcpMgRELgT2vpvvVn2WhGNJDD4g2caTcjAk4WoVchMZsMNdY7HMPD887h/i34X8Syniyl9n4c195UpIz7kVeVgw9uvIcPzHK2ZTe/9zV1T8tNvvRaw2bIoQZt0nKg3ke8oRSab9QTuxRLy2cFuy9Km2XWgSxLQAIA1619nH75jOch18OGe8/HtkSgE8y546fOrmRUytOoc+FaDklxCYfrqJ8VeB6yWMmc4I1APk9Q674/8Ys4Ba9wgiARZvLf/YkXbnyYMQM6qQi6PObtX0e0y0modqIHL+gkwV/GRJ1ECQX/biWokNeRt4dflw==','ugMBdHLHxNijnComoyoEuYPJIRM=','0','01',NULL,'0.00','0.00','CONTADO','HENRI FAYOL RAMIREZ','','927763409','C20609594625','xx','||002||||0','2024-10-03 00:00:00','0.00','RAF',1,'2024-10-06 07:00:16','0.00','S','3.721',NULL,NULL,NULL,NULL,NULL),
 (49,56,'2024-10-04','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000014','6','10761275122','RUIZ GONZALES JUDITH ESTHAYSY','','OXAPAMPA PASCO/OXAPAMPA/OXAPAMPA ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'1450.00','1450.00','',0,2,2,1000,'UN MIL CUATROCIENTOS CINCUENTA CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','dY/637VyBUUOJ+ji8428eMABb6EnJayXbkCSb5DhMDOSrhIjIHZD6Bp8aC1/Ahj3kirgvEGldpuB925RJiOlQL2DCaRRmEynjCXqhO46k33OoCsfEj/ckD4+97ux8T86+CvPDqK291XKgBdByPbkYZBl++8jL/KwL9eOUSGU8KRlnWDA059rhz0dSr7njlGrLKXRvTsnEb83UYE8Fw7yG6Zq3/2jyCUk11YzXTNcmcGPStbonV8UYJYu0BcA+gnIchLGSV59xqgcEc4MrxZgoTb0+lhNveuYBpRIqAmi2uJSouOKQv+dHssXEeuYJZBVZZoTTXotE/KETAjCkjLE3Q==','O9p2qCp59UXcBbOPHdepBCAO0UY=','0','01',NULL,'0.00','0.00','CONTADO','JOSE VELA PINEDO','','997372495','C10761275122','xx','||002||||0','2024-10-04 00:00:00','0.00','RAF',1,'2024-10-06 07:00:22','0.00','S','3.730',NULL,NULL,NULL,NULL,NULL),
 (50,57,'2024-10-04','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000015','6','20612989924','CORPORACION RAMOS CALDERON S.A.C.','','AV. AV. MARGINAL LT. 07 MZ. A OTR. AV. MARGINAL MZA A INT L JUNIN/CHANCHAMAYO/PERENE ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'1160.00','1160.00','',0,2,2,1000,'UN MIL CIENTO SESENTA CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','blNfE9eAzmWXlo4Eq430UFnwxEeSQj80gEeMg4NoMd0BJxt1bVoJYmxYwKKn/Bzov3XJkqzu8sJQnmCfUB080IRyQffu16FDUrY7I8ICwDZUfSzTSsDecxTtCQ8hcluqjyTa3eTznUYwtnH5xvU1MRnnE59laA76xgxpjjh57HIY72De/U2A/acGQN8CgC5klxwdHWyJWk/27WSRX++vKxArO8ac5ZGtDB3ssHTS/1+j1AzlJLiP1GiGVV6eZcULhDJo+D8Xqpywy3e2Se6M5QODOToboiINijX77trMgA/hm31esk19XZakdiIbxuQrVG41bA9XqA2wpXUaQb3ZDA==','gfeB6d+nvb2pvzI1ALJPtItctv4=','0','01',NULL,'0.00','0.00','CONTADO','JOSE VELA PINEDO','','935487759','C20612989924','xx','||002||||0','2024-10-04 00:00:00','0.00','RAF',1,'2024-10-06 07:00:26','0.00','S','3.730',NULL,NULL,NULL,NULL,NULL),
 (51,58,'2024-10-05','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000016','6','10198429185','HUAYLLANI PARI DELFINA','','SATIPO JUNIN/SATIPO/SATIPO ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'590.00','590.00','',0,2,2,1000,'QUINIENTOS NOVENTA CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','yhYLN/jw9R4akKrQC7GsN9W/7D9VUFthpgYQscnJC4dnmqhF80mdOANnp89Z9HKLxtky/DChb3O6wc/mdayClst87A6vVq0BscKWeJdEZuWIkmbHH7biPsNcsdvpN2gfQya3i4VXCd5DdAXO1S5ZgGrzF7ybU97SFTV+CPhZ7pR4vlV3hvqJtn7uF+9qsmpERNOakjIhGJyNuJpH4YpbB4sL+4Zvyb6WqGXhNoNXesrY4R6QA4z+YLHoUgkZhwiIk28RrCp7+d6/WaQMMLEWjmxk5AAn+sJK2njYeqJ+CNBxBLblLHZ1qre4+a1PilXnWCzL7HlFWElgxbve0GfSwQ==','6iuOjEWYZUh59Xb/MJlGXAydXUk=','0','01',NULL,'0.00','0.00','CONTADO','CINTHIA HUIÑAPI HUANSI','','954862603','C10198429185','xx','||002||||0','2024-10-05 00:00:00','0.00','RAF',1,'2024-10-06 07:00:32','0.00','S','3.734',NULL,NULL,NULL,NULL,NULL),
 (52,59,'2024-10-05','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000017','6','10415326888','HUANQUIS HUAYLLANI KELLY KARIN','','MAZAMARI JUNIN/SATIPO/MAZAMARI ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'590.00','590.00','',0,2,2,1000,'QUINIENTOS NOVENTA CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','Rwv0MH9F6Tio95xSGqF5iPQTeZhLtCal7qJLun4z5d644ka4A2maGf6pndXstmlE3PQl2M3KNTJN4F17gzlePFBdtXDTBp9BZ9Ai6Dfes9PK9sn8BD5u1HG8tgwT4oFm10E7OZQi9DUheSCTYDJan0eu9b+3Goe6UcD1agMYxCHkOQPpAYJEIZyDHyj72X6f0fX3hH6fFJIqCqAuZtBIz9dnO1F7zu5qRl7hTbLqEt2AogYN1YGQhredZ8sJAjbhMxsohRBUNkL6XGaZ+DKhiah1/E/DjWJbfdEdt05YPVPQ5zYN2NVsT/SKRBt4oY2gwSO+ZE/qZq0/C6JXGrB/Bw==','rnAuckpQtqiFJIV448sZsomBDJI=','0','01',NULL,'0.00','0.00','CONTADO','CINTHIA HUIÑAPI HUANSI','','921905211','C10415326888','xx','||002||||0','2024-10-05 00:00:00','0.00','RAF',1,'2024-10-06 07:00:39','0.00','S','3.734',NULL,NULL,NULL,NULL,NULL),
 (53,60,'2024-10-07','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000018','6','10411303468','ROMO HUAYLLANI GIOVANNA','','SATIPO JUNIN/SATIPO/SATIPO ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'1180.00','1180.00','',0,2,2,1000,'UN MIL CIENTO OCHENTA CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','F5Ht/zkfoMcUFMYFO1zZih1P9k9TIww5Ip1RiQ8L5TSgEdzxY5GHINtkKKgArg+6KslCRx1yOjEBQD9BY6hCyksp3/oi7yjmptN6BF9nZoB8+GxxlSLrED6qJkpn4esYYbmLycuWUZKQ4nOohABL1vh7KuEK7bTZT35mtRWwMLJokM3kq3frPFRSov/JrLr8ITaHH91CigdCUU3nUJo6vYHfTR+daja5TxGjUxvC58JiPRCourXxQOBVA6k5+ExoaSVpPl3+RlBJGUbZbxMB2bJGUrRACkJGARTBy9kPB+2JA3O5r49YTEb3csnRNO4YOXyLjM3U5/xao44JTRlq7g==','VTHNKP7FXvRiVkZXOSskIeGNLYY=','0','01',NULL,'0.00','0.00','CREDITO 10 DIAS','JOSE ORTIZ ESPINOZA','','950899557','C10411303468','xx','||002||||0','2024-10-17 00:00:00','0.00','RAF',1,'2024-10-07 18:55:07','0.00','S','3.734',NULL,NULL,NULL,NULL,NULL),
 (54,63,'2024-10-07','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000019','6','20608217771','WCM IMPORT SOCIEDAD COMERCIAL DE RESPONSABILIDAD LIMITADA','','OTR. AVENIDA 8 DE SETIEMBRE LT. 20 MZ. CH OTR. ASOCIACION DE VIVIENDA 08 - JUNIN CHANCHAMAYO PERENE ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'2950.00','2950.00','',0,2,2,1000,'DOS MIL NOVECIENTOS CINCUENTA CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','yd91hzv8DWuhAYG0DhZp2LHq9D9ORHPHunBqUPPh/HoffV6D0QgqbI9IHgnc5gtn4bppayKBv8Izd2txzNZFePmTLD+TTg2NSVhTjwuCIQboP8najIDcCdQpkkdDmJxnN7WEQZSOX2ZFTin/ex+fVo8glMvZ2vsazppsWy94x0N3nz7bbyE2JAJ08czLYJhJt9WrULXU7YR5ouGIsjztAY7BQN57rOFtG7tks3Rg6I8sOzRZIdYP1TYpkMbUxiR9pgfZNjsHwKkv7Sau1g6Rzc7aOmxvmwfNO8a7lD4Iy1t8waxBd6yRrPUCiEKPkijMA38En1HiCo6lJVavSan3+A==','6ypSEW6qobQmjZV3hdPXjC7Uthg=','0','01',NULL,'0.00','0.00','CONTADO','YOSILYN SOTO QUISPE','','980361013','C20608217771','xx','||002||||0','2024-10-07 00:00:00','0.00','RAF',1,'2024-10-07 19:30:07','0.00','S','3.734',NULL,NULL,NULL,NULL,NULL),
 (55,64,'2024-10-07','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000020','6','10435900025','LEON DELA CRUZ ELVIRA','','JR 8 DE OCTUBRE BAR BARRIO BUENOS AIRES MZA 15 LOTE 01 UCAYALI/CORONEL PORTILLO/CALLERIA ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'1160.00','1160.00','',0,2,2,1000,'UN MIL CIENTO SESENTA CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','lXHuYOpeU0FLBOjspBbejwO63NtI5UALnInp6ppZwaOYr8C/PK/2uo7EEAasiGPeFIxoelzUtn83PnutsIcjSY1DoHvWjZAZuoU5SWaNFGUZ3G1hdVY0EQzECdXQfF+FrKLok8OJNzxUQxLsjGbPqLrjsmLbHgrAYHOuC8PV78G0IlyfSe7A3Pv8HJMkbFu8aFQGcszxEqc3qYCIadKX2wzdVT69glbascQgyYVUlaLuxyDfzlcp0UnyeIhB2rJXHGEy2qKfYeiqQGwcZaZusqUHW/L7ZTNESE6CpDxCyeo/VGAG34Ja+NTm+3Yk2ODo2RZRYMf+poj/4bQkkNavPg==','uRlDWrx0GAG/vJkgHnPAngS6uH0=','0','01',NULL,'0.00','0.00','CONTADO','DANIELA FLORES BARBOZA','','950616734','C10435900025','xx','||002||||0','2024-10-07 00:00:00','0.00','RAF',1,'2024-10-07 19:30:12','0.00','S','3.734',NULL,NULL,NULL,NULL,NULL),
 (57,66,'2024-10-07','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,3,'B001-00000011','1','21553877','PARDO AGREDA ARTURO','','CANA DE EDEN JUNIN/SATIPO/RIO NEGRO ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'600.00','600.00','',0,2,2,1000,'SEISCIENTOS CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','GqUq5mHXTTdt24zMZnmtB6pFdSZEw0t1Vo7SCz8TTPEJBDGoKssLwSL6nGVrmZP09qPFcftILL7Qzezqr5tJJuE8y/zc3Y0nm8c3x9HBLGU4Mjhx7AvF9EIJtPdzoDYNy9DF4qZ/QBRZgwOZbYoiUA68xdw4TvdM6E9yye+QHRVV1g+TuAN2KhdZuEfsM3Kq0R8NPFyxdyZTXKOkpt2xYQFR+4DGCeIG3S+7aaQrtB+SEwkY12aBU3bkpUKArvzytyMzatjRbT2zzrP1/aKaUAI79ulgvEZflhQqB1eHcjtSe0HHF/3VAdJ6AZF75O58InaIXwSU4+/oiZhR86xC/w==','+eIiKUZdCXJfUfQFWSAUhNVWxcI=','0','01',NULL,'0.00','0.00','CONTADO','DANIELA FLORES BARBOZA','','950567073','C21553877','xx','','2024-10-07 00:00:00','0.00','RAF',1,'2024-10-10 07:00:07','0.00','S','3.734',NULL,NULL,NULL,NULL,NULL),
 (58,67,'2024-10-17','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000021','6','10413616137','CURO ARRIETA JUAN CARLOS','','CAMPO VERDE UCAYALI/PADRE ABAD/PADRE ABAD ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'1180.00','1180.00','',0,2,2,1000,'UN MIL CIENTO OCHENTA CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','NADBrLiXMvJ4Fsd56yyQzTney/JUA+L1xlr9VzclwDrRS8n7VIpa8J4fPqLcikK6BRC7q/vOJl94z8ldxW43J+nVvaSjIt77dCnnMMUBflbEyOK24wyN/PW1MFbPQLfXbvadsNkCQVAVyblQHxBPb00ScYfj/aSfkryG4DDqjf83Cj3rlKeQgdhpuhxsjb+x4IcvHn/b/CVjzstti5K6q5nAh/toEHOdJtoqIFY3bFDNSKzCCb8TZ3Yi/19pbNzRKEASB1EPKfIJJYVL/TpQjAgznBtga1pbGzO8iR+92IP0Jm9n2hnyVQ052CZN4q/cC7U4HawfrtiWmbIHTAbs9w==','npwhXaffkUp41J9bFb8T0BiXtRY=','0','01',NULL,'0.00','0.00','CONTADO','PAULINA QUISPE','TV01-00000010','-','C10413616137','09','01||002||||0','2024-10-17 00:00:00','0.00','RAF',1,'2024-10-17 20:10:07','0.00','S','3.773',NULL,NULL,NULL,NULL,NULL),
 (59,68,'2024-10-17','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000022','6','10078423353','HILARIO SOTO DALMACIA MERCEDES','','NESHUYA UCAYALI/PADRE ABAD/NESHUYA ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'885.00','885.00','',0,2,2,1000,'OCHOCIENTOS OCHENTA Y CINCO CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','Oq+vj7fbMVPM1SruhIcI4C9TUv6CbHAje/tiE6rbKUiCBu8JUUHTYmBIl2/IvUj/RXr73aunI6Kj4oPCqmhA8QM7ZWrr15D7kacFL3nvy7XhnQaclHW/UcucqYhxfjhKgX+7riiIqM9T3B9v2LLZmKWJh0MEBu4hjbHmv/prgxM8WcrfftBQ3qjROpzl4XbYVWKo7S9s/WsNbh8Q5hDsqy5JTAiy5BpfzOo/da6AvxBkoxlqH+pdK1AMxmJolsO9YZUOeEENA4k8W4g4WSuSVSIUSNxEQr7qd0moRPaKP1gG+CswzNkEO9Ocr0fvmd57iC8oE/UuPGM8cGjg1ksJ+g==','OEhEq5Z46NzPln9tN8dhu6Y72uU=','0','01',NULL,'0.00','0.00','CONTADO','PAULINA QUISPE','TV01-00000011','920755905/920755905','C10078423353','09','01||002||||0','2024-10-17 00:00:00','0.00','RAF',1,'2024-10-17 20:10:12','0.00','S','3.773',NULL,NULL,NULL,NULL,NULL),
 (60,69,'2024-10-17','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000023','6','10453884266','CONTRERAS MEGO KATTIA KAREM','','CALLE VICTOR TANTE ATALAYA RAYMONDI UCAYALI/ATALAYA/RAYMONDI ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'2950.00','2950.00','',0,2,2,1000,'DOS MIL NOVECIENTOS CINCUENTA CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','ayYhN3XsToKVCedaJUjLDVDQGqrarB07Owu8ovBp3xaVqWdlD4pSvVeu8d/gGwOM/IHAvFEjM8aXfrsdaS4LxWbe2PEwC6fWzJ0Wwju7bwI1nMdp+aD95icwJsitPrx16IfTszScR9wMtP9VIsXcb5dhLR+WV8HjM+uo2bF6NLgNWBbVW6XJ1woZcU7tuwq5aIqD2SubGdXsl2JbnAAtQfeTXza0XEg4ygFyGOLYFBK4wGyDC+pKiiBVXnF6PJHG3CwAMmSB3vICPJn/nROVwj62o+LRgWrUVi/vXHTMzlPVwk65rSiYwk2+zC9QlyoiY5QycxvdTL4dhHQGeP81Zg==','y/6bDf/398hU0NC6BRwiJbq4mdY=','0','01',NULL,'0.00','0.00','CONTADO','-Ningún empleado del departamento de ventas-','TV01-00000012','961610700/961610700','C10453884266','09','01||002||||0','2024-10-17 00:00:00','0.00','RAF',1,'2024-10-17 20:10:17','0.00','S','3.773',NULL,NULL,NULL,NULL,NULL),
 (61,70,'2024-10-17','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000024','6','20611940719','SERVICIOS GENERALES CHAVELO EMPRESA INDIVIDUAL DE RESPONSABILIDAD LIMITADA','','AV. NESHUYA LT. 8 MZ. 18 ---- J.V. BUENOS AIRES - UCAYALI/PADRE ABAD/NESHUYA ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'1180.00','1180.00','',0,2,2,1000,'UN MIL CIENTO OCHENTA CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','OKmwP9gnCZDImvJ4ByYxcSOCiRyymsMD7V2c7KQePcyFEIOHWcf9/o1r2ePjhclikX1gFvJfUxRLN9G8aj6IJ8aWainQWNlh4sJivXy3BbGeMsIzXeAO/iGWZFJ2pdjA1TTiyW2w8ZZb9g51pvhyO2MdpBzpplLpTgBEr5W5GQV3LGakchmX1Kke79T6tkVaVzU7mNbe9K9fR4j9Ju40HxufEC576eXbR9pl95SxrwjUrYBAj+rbXfl2yR/EQCtrgO8pTM7wPWeNl2LxmKnhMBycl8A2BxEzF2Qw0x4z4aQYv6IV1LNWbn8j1IVzodYlCGbnyCKf7j0ig+ijKpP5lA==','SWAcuy56gwV+ZL7aGd6ulBxaJTc=','0','01',NULL,'0.00','0.00','CONTADO','-Ningún empleado del departamento de ventas-','TV01-00000013','935236543/935236543','C20611940719','09','01||002||||0','2024-10-17 00:00:00','0.00','RAF',1,'2024-10-17 20:10:22','0.00','S','3.773',NULL,NULL,NULL,NULL,NULL),
 (62,71,'2024-10-17','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000025','6','10078423353','HILARIO SOTO DALMACIA MERCEDES','','NESHUYA UCAYALI/PADRE ABAD/NESHUYA ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'295.00','295.00','',0,2,2,1000,'DOSCIENTOS NOVENTA Y CINCO CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','AO5fPrn1khRHCsZ7efTfjC2SNP151IrzLBTkg1PjkELEpa6G6LUCLKn8G1Wgs62mZulyxgf3VKIudqnW9hlHVZAhoS1rCUW+/Zg1qypm7Kp74KW++4OOfKD2fmQh19jLesD96hk8WBtsqybHRlViW4js89JgERMxy+XXcNfy+PshcOjiIrfnhG8iNlGPtyauts6Sco46rWLrI3hOvNC9TcBVODLipmsE/+9LR3cFsSiqTyFzTEnpfYeYeREeqWo0iIETJoSWzOXzzUe7jMwJiwV2E1lr8ZDuKXT4lscMElavPeb8CO+Q2aiOJGU1r9F6U7VgH9f+oXn8R3bBpWnIag==','RhE636dN3GrwLXd+yqOx+pnaYm8=','0','01',NULL,'0.00','0.00','CONTADO','-Ningún empleado del departamento de ventas-','TV01-00000014','920755905/920755905','C10078423353','09','01||002||||0','2024-10-17 00:00:00','0.00','RAF',1,'2024-10-17 20:10:27','0.00','S','3.773',NULL,NULL,NULL,NULL,NULL),
 (63,72,'2024-10-17','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000026','6','20611676213','INVERSIONES GAMARRITA E.I.R.L.','','JR. MODESTO PEREZ NRO. 0 URB. NUEVO PROGRESO SAN MARTIN/TOCACHE/NUEVO PROGRESO ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'590.00','590.00','',0,2,2,1000,'QUINIENTOS NOVENTA CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','Vdlhp5NNq2Kn04gkn4mBfTX8OwyBS2cAwoTz9tdivESq6yVKHOGsuYw2RMARFYc7Gj8TP6M5gwvAmpKL7ePROde68obBeoG52wZwh9An0zWCF3JU5cFOm3f35P3cnIbXaKn4a9g3hRsyGoVlpB/ydDt2MIq98xdXMkjHzq9GGI28me2dpLTUxUmtmUfvyw/D33NAJBlpEm5R4dcDcsQgNSO54oqipkYk7W7RYcipsRTgWg/sjtjrGOZCUA93tOAf5+o86WjRg/FTCfdsRfefrvOZfDHUyIj6sMgPo9Jlqdonv37u3SSylMudh9xc9/4jbF6lQ9/mdvWD+gC29PK7/w==','5U9xFjwpuV3R8zFtq6eNlJn/9zU=','0','01',NULL,'0.00','0.00','CONTADO','DANIELA FLORES BARBOZA','TV01-00000016','987300107','C20611676213','09','01||002||||0','2024-10-17 00:00:00','0.00','RAF',1,'2024-10-17 20:10:32','0.00','S','3.773',NULL,NULL,NULL,NULL,NULL),
 (64,73,'2024-10-17','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000027','6','10701085944','QUISPE SULLCA REYNER EDUARDO','','HUIPOCA UCAYALI/PADRE ABAD/IRAZOLA ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'1770.00','1770.00','',0,2,2,1000,'UN MIL SETECIENTOS SETENTA CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','wkZBIJv48A4uKL3++VDwhiCyfpPXmd5qwpAEby9PgtsR5yDI3Wrjmz8yAadtAnsRAhQ0mw1vxiZ8545YDCOtL0qZ+I3tM12V4cncHCJQHEG80+Qc7MooMWw7S6doAW/K8NUFfV6AzTWeaPiKZEtgkLR8CxFYyVap340pL1ymDvBy0mUvzy3NYzwJEgiZrEgGW42SUawMWg4ykPz4o3yfkIVhIfHPPJ+Q2JXcUHth2iIBLDDLyIZMxap56+R0vaw9+bFdj3xBCEdupLLbRiPNka4KgzTmVmU0GNNDb7Tdo++c+fKgFTctcHaUkJBd8CF54yqKTC6CMecY34Mgrd0N7g==','7d0pOulnZxyzNqyf2bRfffTr4YA=','0','01',NULL,'0.00','0.00','CONTADO','-Ningún empleado del departamento de ventas-','TV01-00000015','929455038/929455038','C10701085944','09','01||002||||0','2024-10-17 00:00:00','0.00','RAF',1,'2024-10-17 20:10:37','0.00','S','3.773',NULL,NULL,NULL,NULL,NULL),
 (65,74,'2024-10-19','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F002-00000001','6','20600712277','INVERSIONES IRIS R & T SRL','','CAL. REQUENA NRO. 249 LORETO/MAYNAS/IQUITOS ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'2900.00','2900.00','',0,2,2,1000,'DOS MIL NOVECIENTOS CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','Z8Cd5lmonDaDc8/B5VCeVZUL3KT0EuCiDhJeQhchKaiNSEHQJ9CUbmZm4KJCyHbJCVG5icwDXVs90b0OvcDEG/+PoOlMUXLMQeqHZh4327VS+VNCuDhvd04Ouonji0gdN20d6On0VGqLsn7KbdrRc4FQhw79oGUpFt6TsfwYz9oprc2NQu6DTbUqFMSLqiM7RfSSuuSGfth7xGjVJON/UuSm8iqMb43DfjJ9b4g6x9zcSmlPmpbC7iXL47BSN65EGAn93ku6ls/OLYTYnb+wdOxekGNhaSzbmb+5uAKwB0Ics/WybQd9lc7pELjDJArr9ACmp/d8kXqsGTEd+Dz2oA==','4RIHuvcf2XU4EDhnTDZzlhBwovc=','0','01',NULL,'0.00','0.00','CONTADO','-Ningún empleado del departamento de ventas-','TV02-00000001','930783674','C20600712277','09','01||002||||0','2024-10-19 00:00:00','0.00','RAF',1,'2024-10-21 21:40:08','0.00','S','3.759',NULL,NULL,NULL,NULL,NULL),
 (66,75,'2024-10-19','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000028','6','10705006356','CABRERA CARBAJAL ANALIZ GABY','','PUERTO BERMUDES PASCO/OXAPAMPA/PUERTO BERMUDEZ ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'1475.00','1475.00','',0,2,2,1000,'UN MIL CUATROCIENTOS SETENTA Y CINCO CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','m5lhHDkSk6in5dhCK5Za8VVmIf82UeAaNDqJWZ5deOHBGhkPH554nkSNPUlmFM2xh6ymCaR4VhS281EwyUAoDFON75uts4pYbtbTbvPpj4/jFLeDEnZP+8jmwbbdQMrgGJMyTxkmOjX//1qJUcab4nU89q4Hu0i9nxyrhwmf0Z9+nctxM94vIUtE469ZNj3X2sUZar1tKCKZSTGeoZNVUlXWT3jEje5MysBDTTCcSWpJeecgojrn/pT/AL60gwOx5teZ7bH4t5OsqWCintxoNri23585NkhziOH/i7PEbtqezKsq6j+4v5vLf6jHU+4S6Ke4qEe7/X+Ae9JvfzwKjg==','1tr58jide9I1t2RAsufoRx2XmIY=','0','01',NULL,'0.00','0.00','CONTADO','DANIELA FLORES BARBOZA','TV01-00000017','969223449/969223449','C10705006356','09','01||002||||0','2024-10-19 00:00:00','0.00','RAF',1,'2024-10-21 21:40:14','0.00','S','3.759',NULL,NULL,NULL,NULL,NULL),
 (67,76,'2024-10-19','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000029','6','20606697610','NEGOCIACIONES MELCHOR EMPRESA INDIVIDUAL DE RESPONSABILIDAD LIMITADA','','AV. MICAELA BASTIDAS NRO. 280 URB. PICHANAKI JUNIN/CHANCHAMAYO/CHANCHAMAYO ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'600.00','600.00','',0,2,2,1000,'SEISCIENTOS CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','RIwp7ahwex+59i8bVfFK7JkQ6/UsAoGiSRebKfRnlhYMHseP67K12sbZuwU25H7rw0xvyYwEjW0/CeLEJdifuyl07YJod9txTNPKikbER/ZyT4ABvD5FzZDI+sGc4XYyMYKnp9Iwzg7i848B9wGYAjnUGABSS5QsJ1OfGXT6tstwizEyLCEedxsi0GtQo21Azk7lqPtWRuDgyDOEBBAlrMuQmjGoNbrR5AxmcaOSvlhywYhiavoLQaJInMGGeuJ28K+V+Oa31R+XOTFEvTXHqc6x7OUOaV7yNC/yjcWTe9+ivUz740G2plZnalURjE0+ulCWejILH1ooLlCPCBVnww==','bmkxlKkJbgly/uFeZOXoS7cZrPk=','0','01',NULL,'0.00','0.00','CREDITO 15 DIAS','DANIELA FLORES BARBOZA','','971111089/971111089','C20606697610','xx','01||002||||0','2024-11-03 00:00:00','0.00','RAF',1,'2024-10-21 21:40:19','0.00','S','3.759',NULL,NULL,NULL,NULL,NULL),
 (68,78,'2024-10-19','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F002-00000002','6','10482016150','LANCHA MAGIPO BENITA','','CALLE REQUENA 321 LORETO/MAYNAS/IQUITOS ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'2900.00','2900.00','',0,2,2,1000,'DOS MIL NOVECIENTOS CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','WdEfkt6Ceoic2B9BoZAaaSC8Kq4CM7tOXfyi5KCxOCvn5yAJTMU/fULNq0g8uqxsK555biqLW2NZvb2KkE3bHNk/TaUa7UxBRWx2CkCVmCrsNvKe+H7ENIV/Hr4xs7iBWDY1d2NqkL9/uOXv/0n8LqMajTCVGjju9WeXLRxlHXufCGe4Lk2gT6IDHrNmTXNM7F5MYIG4c/2sOOnVBbo1H3MphaTM0erq347XC4R2JrKVVZ03TZSywEZEvci+9a2/OBiTCnl+SSPB+b2daXonZx1RptXjGv0d70h9E06TA9n70MpOCie1iuZ9ZDLAnBE++fFM7jm8eJpmR6HYYvvj2g==','XbhGgAcnT+gsQBuAKBWjKCbb3KA=','0','01',NULL,'0.00','0.00','CONTADO','JOSE ORTIZ ESPINOZA','TV02-00000002','945345844','C10482016150','09','01||002||||0','2024-10-19 00:00:00','0.00','RAF',1,'2024-10-21 21:40:24','0.00','S','3.759',NULL,NULL,NULL,NULL,NULL),
 (69,79,'2024-10-19','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F002-00000003','6','20567134335','HERRAMIENTAS AGROINDUSTRIALES JAFID S.A.C.','','CAL. REQUENA NRO. 214 - LORETO MAYNAS IQUITOS LORETO/MAYNAS/IQUITOS ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'5800.00','5800.00','',0,2,2,1000,'CINCO MIL OCHOCIENTOS CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','MJsDP/9urXhQtyB0YxIwHwlJg9GOt6Dj8rIc48e/QLlmZFeuWYqnDWSlYT08rIm/CLJEkPx3HfjfPHgwYtZ65aOgRDgok7sxpnb2wnH5u9sx3NCsZOadidqi9oV7k+EmQCtFmCnA650d5GSNgRw8DZ0XxxWTOYSOztE/1VH6E3g86QoSs2xyU8YqANypy6xlZ1oMzdDpZ8LuUbfC2FF9q2MR+O9ljTa7ckzCiBxhj/Nu6YROdbhmZFfX/RIooK5NmVKier6iFL2Evr1cAlFWRJ6QHl39vxuOQ0RJemSzGI/OAebaYx8VpLXaZ7Rq+CVxrV+zTSCQZWXq7Ne+sirbQg==','8vHfS98PqiF46iaQcbGKupPL6Sw=','0','01',NULL,'0.00','0.00','CONTADO','JOSE ORTIZ ESPINOZA','TV02-00000003','927379909','C20567134335','09','01||002||||0','2024-10-19 00:00:00','0.00','RAF',1,'2024-10-21 21:40:29','0.00','S','3.759',NULL,NULL,NULL,NULL,NULL),
 (70,77,'2024-10-19','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,3,'B001-00000012','1','45177725','TORRES NUNEZ JESUS','','MAZAMARI JUNIN/SATIPO/SATIPO ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'600.00','600.00','',0,2,2,1000,'SEISCIENTOS CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','fs/ZfptpoAa46mMM0uy/2ICsafL1XUP/NSftH2hqgurkq9HT4/D0WLmjKjzDrpPHdY8XVvN43+gLZgGXdNEUd1REP/E5II+MPtIZ9EcuIR9qe1nFrZiCa6EmngJKQw32+hcNddEvZqcyFBgX6PP8etGabVb/LebYeP/3y36SZbr3zMDcev4mJ1As1zEHSPtBkEoGsNTQdhoT/oJ1O2SWF2rHA8dfD2KppV9/azA9qyOAyvzf3NsyLLt6J+t4yBK90AsjauoF0dtpj0FElNGGKTFePM7rbWVV92zvig82YrHcwgfWORRwhXD0t6z4S3jU8WVHfRw7aRUpIX66SxnH+g==','U8pmLMiD/M/WvrE7+fY/d0G67SQ=','0','01',NULL,'0.00','0.00','CONTADO','DANIELA FLORES BARBOZA','','943524446','C45177725','xx','','2024-10-19 00:00:00','0.00','RAF',1,'2024-10-21 21:40:35','0.00','S','3.759',NULL,NULL,NULL,NULL,NULL),
 (71,80,'2024-10-23','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000030','6','10483452441','SOBRADO CASIMIRO BROOLIN','','-CONSTITUCION PASCO/OXAPAMPA/OXAPAMPA ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'885.00','885.00','',0,2,2,1000,'OCHOCIENTOS OCHENTA Y CINCO CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','o4kCW7SG/vzYY6s3DzLQhDK/Ls2HUOVeYsggRlaFcpRED0/TfPmjJbKnPXnI3unmILrejhrxlg/zgnWKH62TQsYr8HRbkuPOOe0hamP7s/9l1YLxc/uIIOQfPxnFAFkYz0MMqjFCFEoLOiqky/tmb2RGRydCi6TCVepXRWYiGyj8foSUFgV9PkwkcWksHxya4LmVIPu8sjNn6aUWwyL8dLqMoRolI0dq9cvG3knmfQPG2eWj7/GkPUvnUocZ2lBD0WOz4qIzxQJ6C7EI/f0u40rWJkNLy8sKRSiOSipDVA9azH5xelS6q7JGyd6/1dnw74wOOM17IZjmA20+cg9gjg==','82g/HxZWSZNx6oR4CjJ/Wxl72ZE=','0','01',NULL,'0.00','0.00','CONTADO','DANIELA FLORES BARBOZA','','987591670/987591670','C10483452441','xx','01||002||||0','2024-10-23 00:00:00','0.00','RAF',1,'2024-10-23 17:30:12','0.00','S','3.759',NULL,NULL,NULL,NULL,NULL),
 (72,81,'2024-10-23','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000031','6','10225230256','MACALUPU CABALLERO CARLOS JOSE','','AV.SARITA COLONIA S/N PASCO/OXAPAMPA/POZUZO ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'1180.00','1180.00','',0,2,2,1000,'UN MIL CIENTO OCHENTA CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','Pp7ulolkmT19PV3pUFu1m/FZWGbM/tGpqICmXP/TbgYRthbbG16V+lt72Qf2gipmG9RXzUghqtkc2pP6MFVNv7xVbd1/Q3BMkh6Pe85SgYSpKvu4liynhBWTf03s9HpSc9ySbR03mzxI8cTb//WIiM8FEbQ3uapTLCNl35FNEVUZDwXHy5R0REQuThvGV2/1AKUehUSLmMwDCG8VBymxt0vr1Il9dvP1CS9n+H1/KAUcguaL7y6ASFNQflFqhSCsARzs72KEV5jpUIdqwsAlafdYMdtWUsFwpZc+OuCO+l3vHruc23qIze5cHlnrEO5KnUYqxxqA3irCj2J8VZG+6g==','e2bD1lWK1m7PuaLPiV5iP5T/Tg8=','0','01',NULL,'0.00','0.00','CONTADO','DANIELA FLORES BARBOZA','','987591670/987591670','C10225230256','xx','01||002||||0','2024-10-23 00:00:00','0.00','RAF',1,'2024-10-23 18:05:08','0.00','S','3.759',NULL,NULL,NULL,NULL,NULL),
 (75,86,'2024-10-29','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000033','6','10427799421','VILLA CRISOSTOMO IRMA VICTORIA','','PICHANAQUI JUNIN/CHANCHAMAYO/PERENE ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'1500.00','1500.00','',0,2,2,1000,'UN MIL QUINIENTOS CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','Daa3PoLmUcIOdiOxUN2yeqdtu2OKt1KzXWh262fxh4nrVCQxM+zIKNXZ0xIh1xDibjkv+E3F4qg7TUKzwmGh2tlU28b4mIFFeUMWt//OYXTAbR3G/V0glVWve/+cEQIUXMDELT/Ma+TDiHSUirpgKmbod9I5olA4M73zFlAbmDXahSdRY//nn83yHt4LnE7t6AuA3dXsYlsArk42L2Tc5zyYhT8SGI+kldfUG5mmNiv9CDhRj/T2X5w1WuScsy2mH17pMpG2NfFBXzWHpe5F1FOrDtrhJzIDlJAKGSC/Gdw7NLi83Fq/xFh3X9G3UvWghef2Pm/6luPFlCk1GYdwTw==','31nFxobA4e4pQuP9/0HQbzwhSVc=','0','01',NULL,'0.00','0.00','CREDITO 2 DIAS','PAULINA QUISPE','TV01-00000021','962844574/962844574','C10427799421','09','01||002||||0','2024-10-31 00:00:00','0.00','RAF',1,'2024-10-30 11:30:08','0.00','S','3.775',NULL,NULL,NULL,NULL,NULL),
 (76,87,'2024-10-29','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000034','6','20609354683','CENTRO FERRETERO SOTO PALOMINO SOCIEDAD ANONIMA CERRADA','','CAL. JOSE SANTOS CHOCANO LT. 9 MZ. 26 C.P. PASCO/OXAPAMPA/OXAPAMPA ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'242.00','242.00','',0,2,2,1000,'DOSCIENTOS CUARENTA Y DOS CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','Qec9l4MEheeqkasHHVFqTl0/Zz4vOAoCAG6NtxIw9/Qm22mxZe/JqMbgXOdQqQ+gQpmEaDKHw4F8L8Wx6+CyoUTJxuBOfiixrI7jj/5a2mL5v9xboEYs6k/r4acoo6vLfDVA7/2sue5tFAamzCdrB/UlfSjdt5vezYuzjROc8oB3cNrWpqjUNlXGtsumSMf1HFB+GUymuQpHu6T4klwErHxW0jh5SBQSX6qzUIb5+aZ9M7NLAnDwuOoUSeWKPRvCVnTDucehXVLFGWIPK2/MU0A6kaE3MzwqMy0DgFQAIMDW3v/k5xl4G8UATRBMTXaA+VXr8MAL433Jd5M0ukJAzA==','syqa/7APRJyHSZvHAtgw1LlUViw=','0','01',NULL,'0.00','0.00','CONTADO','DANIELA FLORES BARBOZA','','932368763/932368763','C20609354683','xx','||025||||0','2024-10-29 00:00:00','0.00','RAF',1,'2024-10-30 11:30:13','0.00','S','3.775',NULL,NULL,NULL,NULL,NULL),
 (77,88,'2024-10-29','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000035','6','20609354683','CENTRO FERRETERO SOTO PALOMINO SOCIEDAD ANONIMA CERRADA','','CAL. JOSE SANTOS CHOCANO LT. 9 MZ. 26 C.P. PASCO/OXAPAMPA/OXAPAMPA ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'384.00','384.00','',0,2,2,1000,'TRESCIENTOS OCHENTA Y CUATRO CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','P8yqZZTYRAJgA1eD9OP72A5ZqB4XzoWaJ2uyRx1Ixk0ByJjIVOrmk/ohc0weWf2BWy8/Ftot1q+FzETBYwN7+fhfGcl8ssYHmK670y8KXT7d8nUggApLEKU7im67WPn5kl6NfhwR5P9pIP7Pkh+AAQm31LbmMwYkZjGz6is1E2l7aMIw990OzB1GhLXosLax2qISq7k2XNrbPB1rbPuLIEh0Zmdp7I/sKGDQKOdZKSXWzWsBUjrdQdbluuW5wS68CLMCrNBXOMbaWTa6tYDMEPP/afborZ8U8iubjae18Da8neHuVTSffx5Zak+VLyE6yRudb5TA08AR8fQXuvoLjQ==','TGG4hh1WxajaJu6G9yWcM4R9m6M=','0','01',NULL,'0.00','0.00','CONTADO','DANIELA FLORES BARBOZA','TI01-00000003','932368763/932368763','C20609354683','09','||025||||0','2024-10-29 00:00:00','0.00','RAF',1,'2024-10-30 11:30:20','0.00','S','3.775',NULL,NULL,NULL,NULL,NULL),
 (78,92,'2024-10-29','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000036','6','20603965885','DJ SELVA IMPORT E.I.R.L.','','JR. 7 DE JUNIO NRO. 820 - UCAYALI CORONEL PORTILLO CALLERIA UCAYALI/CORONEL PORTILLO/CALLERIA ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'3992.00','3992.00','',0,2,2,1000,'TRES MIL NOVECIENTOS NOVENTA Y DOS CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','1egvvnnLAkP8xcMmZyCVd7ngAPt0TCpMcGT6dy1JpXiNO32eAW4gR5AC0zrWFpIIkP0j15zc3l6oS5MzJtCro0cVpWW5nPMGVI3I3CRAc4SWmgZJBYDdbDcaofOBrpU1wIQcPvv+8QhS7ugPQCP7usSw5Ur3AQo0MnxE6Ud2GOBS37cjtj+acdO0NU0OQJIekSxYXQ1CjnxgMyYvAJQCBTAn3uenIR70TL6DxRGGVqc37MrAl9HuT5wSof5yrnsfyv8ylE4qe0o9BHC3ywKc5KCwwJoc23phmmOr8fVMd8pyOA1FKzDoTB4zLOkCskVXNk78deyOxHj0Nz7T3v1nTQ==','Us6fy53Wbkv0AtxeFcURFnojyXU=','0','01',NULL,'0.00','0.00','CONTADO','GINO ESPINOZA','TV01-00000023','984954840/984954840','C20603965885','09','||054||||0','2024-10-29 00:00:00','0.00','RAF',1,'2024-10-30 11:30:25','0.00','S','3.775',NULL,NULL,NULL,NULL,NULL),
 (79,93,'2024-10-29','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000037','6','10427799421','VILLA CRISOSTOMO IRMA VICTORIA','','PICHANAQUI JUNIN/CHANCHAMAYO/PERENE ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'1500.00','1500.00','',0,2,2,1000,'UN MIL QUINIENTOS CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','p7jSowyuNoCqXVPuzMZF8Rh3wNxuHojolDCfeO+UpSidLRIDiKF4uZ5URn8hATx02bhAnNuIDx9At1sjeQabJYLjT2+oYIEU3MMxFVuhyYrcK8ykj/+ffabPQPTSelAj+HM1/XrEyQ/PcCfZ9uLInn+ynFzQOk+6LXqm2fkZEz197INQNwAgywqRxW0naDzDC50Gs4r+d44E0x8inMoj+/X0rEbyGg4aBPkQGxC/sWoI4dE6VfBZT3k4OLqS8Fnwb0CQu1pCj1IS5s5ZWSVKprH+cmQIXNEnynEMcwjIJ/C8sBMbLovb7RN0yhtX7EjwuXP4GHSfKGwC21xJKB+IoQ==','/+SBVy80X+l1k9ofHTxEkBH+BHQ=','0','01',NULL,'0.00','0.00','CREDITO 2 DIAS','PAULINA QUISPE','','962844574/962844574','C10427799421','xx','01||002||||0','2024-10-31 00:00:00','0.00','RAF',1,'2024-10-30 11:30:30','0.00','S','3.775',NULL,NULL,NULL,NULL,NULL),
 (80,94,'2024-10-29','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000038','6','20609072459','INVERSIONES Y SERVICIOS PROSELVA E.I.R.L.','','JR. 7 DE JUNIO NRO. 724 URB. CERCADO DE PUCALLPA - UCAYALI/CORONEL PORTILLO/CALLERIA ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'1996.00','1996.00','',0,2,2,1000,'UN MIL NOVECIENTOS NOVENTA Y SEIS CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','S/njr5NpVajlQ4GDK5kIcS62w6IhDwSZUkoKUAblXahNyL2X2ZHMDISLfVBMlY8yoOa8g+fbBIRQHNhSyNnPiKH1SleRPWgYsLPeay2zMSCNW5Q+UCPtKBwiZwMUAbqnuI9SHqG063TVwNCn+prDcOgHdXJtEAD3duco/NSPqmqzpMlTYO3OM8dW2XBhmQeDW/EuMoG/Sw6tjRn2uXE7w4w9CVqXSfJQfXRcXpPKxcjKiC572S6LEO5+2p8Kzgf1SBrG0fAehiLa9LLGbHD3CTFta+QfV1+ukEBNWzK+dxV5O+SbhJu8DxviChBevBXt17JuSZ9RSNSUTO1aHP+nTA==','a5VyUlcLwL/jrdXuWD0cA6JRwhA=','0','01',NULL,'0.00','0.00','CONTADO','PAULINA QUISPE','TV01-00000024','935855797/935855797','C20609072459','09','||055||||0','2024-10-29 00:00:00','0.00','RAF',1,'2024-10-30 11:30:35','0.00','S','3.775',NULL,NULL,NULL,NULL,NULL),
 (81,95,'2024-10-29','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000039','6','10705006356','CABRERA CARBAJAL ANALIZ GABY','','PUERTO BERMUDES PASCO/OXAPAMPA/PUERTO BERMUDEZ ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'1475.00','1475.00','',0,2,2,1000,'UN MIL CUATROCIENTOS SETENTA Y CINCO CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','xyyUmU60m7m9Dp/O/ziWt5yYXSQB3pbrGSG5J78orHO6DfAXVYKOpiAUXnj2m4plOUQcnFcawdM43BMoUOvPzxkKlT7K1bAOUFvqW5RMHj+H5xe1pqdxCa1jFuyjMBD46V0fZZHqewMinID/WScXhkMNLoSawW1Xz6LUq8YiW0ldrfp4Q08ujS/WTtnTwo2zf2hcRJJSnzaMEdS8Ttpm1hndhfW5m+dW6dRi6p8lginyz3PU6yfXmucQ3fmO2IoAFFGemM3pGnQxlPxnZKphq5ffjG4SLN9P0c4K81ntYNxX1kBN9Yty6ZahXV1AXupSJ5zFN4qLPD1ES63ovLbIDw==','37nTHIIfzAKMXKFDMataTbSAa3U=','0','01',NULL,'0.00','0.00','CONTADO','DANIELA FLORES BARBOZA','','969223449/969223449','C10705006356','xx','01||002||||0','2024-10-29 00:00:00','0.00','RAF',1,'2024-10-30 11:30:42','0.00','S','3.775',NULL,NULL,NULL,NULL,NULL),
 (82,96,'2024-10-29','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000040','6','10705006356','CABRERA CARBAJAL ANALIZ GABY','','PUERTO BERMUDES PASCO/OXAPAMPA/PUERTO BERMUDEZ ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'1475.00','1475.00','',0,2,2,1000,'UN MIL CUATROCIENTOS SETENTA Y CINCO CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','coinQ8ZUayJauJb0o+CKn5azuDc+WJQpyITM2mDTAAWCYGOTFG87Ywz16+IGBPJqJo3K1IB9ZAptu9TM9V0McpAeLbPxSeJgLsqauRJrOC9y5SmrCND1WRB/zRfuRDyQdM7l23OVI3FiZ9RcUuMIYRj8exYIj1ah6RFijjAWddfTjSKRqXIzAMfOYm1JF16HqIyr8wu7d59a+r98sgI4Shi0+uFylB+6Q64HRyIwf5YrWv1ge5MQ538GrznJSbhDIouYwe7ExHVbAh3LEOMxIleMXP0zA9BgievyYXUtN259cIlBp43YlGTpQpn6QUSi+hn+AyuPAhEOBqtXcVbliQ==','d88zOfr+OnF0v6pchu8sTNzS/HM=','0','01',NULL,'0.00','0.00','CREDITO 6 DIAS','DANIELA FLORES BARBOZA','','969223449/969223449','C10705006356','xx','01||002||||0','2024-11-04 00:00:00','0.00','RAF',1,'2024-10-30 11:30:47','0.00','S','3.775',NULL,NULL,NULL,NULL,NULL),
 (86,98,'2024-10-30','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000043','6','20611940719','SERVICIOS GENERALES CHAVELO EMPRESA INDIVIDUAL DE RESPONSABILIDAD LIMITADA','','AV. NESHUYA LT. 8 MZ. 18 ---- J.V. BUENOS AIRES - UCAYALI/PADRE ABAD/NESHUYA ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'3220.00','3220.00','',0,2,2,1000,'TRES MIL DOSCIENTOS VEINTE CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','aXat/rvcpOxnJ7Z7G0lP7m+dFn+RVUtNQLfjyE4yhbFaihwPyTmhaxWWeXmTZfWhqla1zBol41VEtw9MoiWbS4uasv8tFi1W2IXQXLUlX7cmcpqZhaSWjmGpxXMfh0pjSu5oLLfiahTIaq6qQwoeh6aaIAuA6GtRlG8zSo+T2g4SiJWZhywGPXVuul+R0CVsEidGkScV1LuGXogEynLf+XjCLq7FPOaGm8FZGpJ8Of7f+0vDOdhuLYQIMV7Pw5qGYRyO1XjPccQlOUST6wTzuHBgw/zswlnJaR3C2UpOsQom9WMuH2kGeUnyroWOuKmQU1bwwerFxHcO/TLm7bTJ3g==','AU1dbuO7zeB8ryYuKKQVzO2q3QA=','0','01',NULL,'0.00','0.00','CONTADO','DANIELA FLORES BARBOZA','TV01-00000028','935236543/935236543','C20611940719','09','01||002||||0','2024-10-30 00:00:00','0.00','RAF',1,'2024-10-31 10:50:07','0.00','S','3.772',NULL,NULL,NULL,NULL,NULL),
 (87,100,'2024-10-30','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000044','6','20611068442','MAQUINARIAS SILJE S.A.C.','','OTR. JAIME YOSHIYAMA TANAKA LT. 5 MZ. I A.H. ASENTAMIENTO HUMANO PROYE UCAYALI/CORONEL PORTILLO/MANA','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'2500.00','2500.00','',0,2,2,1000,'DOS MIL QUINIENTOS CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','VtTvEzWnFZwXDifOTexvkIU4TnSlNno4i9hRdypieLYR7KCeE+kUcrH/ZSWNTG0qPO5px6R/HXIuyC1n1CQTrEZqBPrf53NrgzsuGI3xntRZhBIKuFFJ0dPiKgEsR35gOrOeVExdNtkyivR445GWmA27fjVVBcWJ9JHxRPd9HhkiJjMNCtnTOZ1pjD29a38bbERHPxDJKnKI38cZu8uVtUhtmmaGvYlfvSsdXm1FsBxwZnPkzU8J+PJTcrHGK5v669/P7zN50HovNu8wXr83wd+J0rvlRVCembtc+2NNt3SfjdOewcdxDP2WkxOBxL9rCFYXNTp+waL72iiSy1rivg==','EO8J6HKVEegNevIpKowSyXuWw5A=','0','01',NULL,'0.00','0.00','CONTADO','GINO ESPINOZA','TV01-00000030','916275058/916275058','C20611068442','09','||016||||0','2024-10-30 00:00:00','0.00','RAF',1,'2024-10-31 10:50:12','0.00','S','3.772',NULL,NULL,NULL,NULL,NULL),
 (88,103,'2024-10-31','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000045','6','10479836626','ALVA RIOS LINDER FRANK','','SAN ALEJANDRO UCAYALI/PADRE ABAD/IRAZOLA ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'660.00','660.00','',0,2,2,1000,'SEISCIENTOS SESENTA CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','No45CDCOkCOv73eT67GjStk55at4lm0wEcWq300EZ1Nu43Lbsv8RHOjFnphiA42uBcf2aZWEhV1H4wrWE89SxypFCUF5GyXcbqaNijrlu/Zym9gK+t6PxIflq9rFnf5a8PAfvTMlqvhsYOHSF5KUDUn10tlUbyiA/q/lRs7AoyKarXyITOPmWW2GvfJbDLpSb1abkkWTARf/+dP5WdrDQMMYXpG6QAkr8C9IM6DUEym6L9qRAvd3QVwXlzwg+33biRkbyhmMApU6fuON2N0IjsZayxhbhsYfsW09XOsVdz6+WTgb+V9AvA/fys0kwEiK3PgThAV+Lj+9jLAWQjNBkg==','eLAQJHvqI3I56pvEmYFQdvmRIzA=','0','01',NULL,'0.00','0.00','CONTADO','GINO ESPINOZA','TV01-00000033','928596466/928596466','C10479836626','09','||069||||0','2024-10-31 00:00:00','0.00','RAF',1,'2024-11-02 10:35:07','0.00','S','3.776',NULL,NULL,NULL,NULL,NULL),
 (89,104,'2024-10-31','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000046','6','20393682001','EXPRESS LOGISTICO SELVA VERDE E.I.R.L.','','JR. RIVAS ARAOS-MANGUAL NRO. S/N - UCAYALI ATALAYA RAYMONDI UCAYALI/ATALAYA/RAYMONDI ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'8581.00','8581.00','',0,2,2,1000,'OCHO MIL QUINIENTOS OCHENTA Y UN CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','k7qPzGXtnKntvYdM62TIOxrH45KYAPYMSGqtAua9l2Mj1p3BB73Q+6MLWF5o603yCoAjpBYW/JVRNOlX8kd50Q9zlqXZ1SFVq/WfJKKnmLiFpF64D6B+zj1hwE5bABigxvNJaS8p0clQf6UXjDiBgvSjLkbs4PXt/GoUrOQWZVmXGwgZ4PvP7Qaeqcj9fJfDZ5U4fakI9NCzRqZTkkjZ9BMTnLSLJtwYlMdpZpItd1Yg0RjomjJeV19fZu/hvwVbZCKwSPu0jN6eAygfTOfk+63syHyc9ZgSva8sMfnnMrA4M+s++mJ1M3UPPPY+PLRhx6f7//lHnvbZ2/oytzJVCw==','3KPqQWVYkBjMEjnXSN/YC/vff2w=','0','01',NULL,'0.00','0.00','CONTADO','GINO ESPINOZA','TV01-00000034','961936605/961936605','C20393682001','09','01||002||||0','2024-10-31 00:00:00','0.00','RAF',1,'2024-11-02 10:35:12','0.00','S','3.776',NULL,NULL,NULL,NULL,NULL),
 (90,105,'2024-10-31','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000047','6','10001520585','CCAHUANA REDONDEZ MARINA','','CAL URUBAMBA MZA 12 LOTE 3A UCAYALI/ATALAYA/RAYMONDI ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'15908.00','15908.00','',0,2,2,1000,'QUINCE MIL NOVECIENTOS OCHO CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','ACKrqg3CyEwmRQ8DLqjGEsXhPg0hlb37RewCfJCnwcRAzU5yAAvYaKf+kHxzH5GbcSukNASdO7GG9211bgZId9q5ubWRmR3ed1T+xwKB5b9JxZBizINCe7pe5XDEW+jzp4M7E9PpTwuZ8OlOMH2CfohcFYMgALJ7c6G7WdNbILbWy2KeKOFhxNJ7rnlVQUN7kv7dAk38h7C8erYemknKg4HY1AvDj0NAa0AJU5Z8yZ2n8dUuYdxhl8I1lf4PBaDsDC4f1nQrlQVJqvuOaAMbeXWtmetApYThH82xMwdcVleUMHura7FTAznYgo9mmtHxGFkZcV2nGYnPHwitDy4eJQ==','BaoShjinCjjDz9sWfqBtcenHzwo=','0','01',NULL,'0.00','0.00','CONTADO','-Ningún empleado del departamento de ventas-','TV01-00000035','954631013','C10001520585','09','||025||||0','2024-10-31 00:00:00','0.00','RAF',1,'2024-11-02 10:35:17','0.00','S','3.776',NULL,NULL,NULL,NULL,NULL),
 (91,107,'2024-10-31','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000048','6','10443951160','GOMEZ CCAHUANA RUTH','','CALLE URUBAMBA MZ A LOTE 3A UCAYALI/ATALAYA/RAYMONDI ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'5108.00','5108.00','',0,2,2,1000,'CINCO MIL CIENTO OCHO CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','lvXZpYuAXZIvQdluO8eazsTCn3Yt5wZN45l3IuIKZYllSWWVBnxodgFLWsvp68K6U0AebOUnM8YIJEZPyoRfnNLsYfFc8LsU4xN6mIzlaf4Dk6eJwKQgoeVaU4yWbbWwalu5TT23aM2q/mjVn3Ue7vvoKopd4GKDKBGl9WUgFZbCkhJVkqp97W/TFQ54pHSr240wVSOfiRdDYJCNNLTREqV6KCPGckpMfP2tg7ByPg3cwQ7I3yXLFYI30zEhjhZg9V54y39AiXJZcr7Dalafnr0+csZ432O5J1oVhTcHiXiIXDsK5BrVxlZu7R+SEGwQB0wprn6ja5zZocjJLjg2jw==','rRx3tBhtzgKsV9FofZxe3rth1iI=','0','01',NULL,'0.00','0.00','CONTADO','-Ningún empleado del departamento de ventas-','TV01-00000037','931570365/931570365','C10443951160','09','||069||||0','2024-10-31 00:00:00','0.00','RAF',1,'2024-11-02 10:35:22','0.00','S','3.776',NULL,NULL,NULL,NULL,NULL),
 (92,108,'2024-10-31','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000049','6','10472160546','VALDIVIA SANCHEZ SILVER DELVIS','','-ATALAYA UCAYALI/ATALAYA/RAYMONDI ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'8680.00','8680.00','',0,2,2,1000,'OCHO MIL SEISCIENTOS OCHENTA CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','DzlvhfcM7Ab0kRjlEURXisZfEK8efby/8SrRgjeZ3gP0omvZ6InWesz01gFUg8t59K6bP8B/AI5s8Pks1fK99vzL2XqD+a9wUKyzQa0ObdS8aqa3stnnuPdc5NYOz38I5dMtmOxj0eSGtRDOhDFvQf/2BhUQhxL3K0uxpxNZIdEdL+I2/xgI5PAJu18qPno8dbwKO6s4LN+dLpXBzNOfGjzszz04Vtnvjzi1hmNzDrnFahd9bgnIns/tvOCwKuOExWTFI1+BpiRyQHI5XQCf8AHoshBwAMC7lRlwilM8U8xvosZHhB2C1l4SEqoBjdCIL2N2x6DzGL8Sv2F5N4mPiw==','tMDddLdjmJXAjJzGXpI2Mgn6kfk=','0','01',NULL,'0.00','0.00','CONTADO','PAULINA QUISPE','TV01-00000038','966191217/966191217','C10472160546','09','||069||||0','2024-10-31 00:00:00','0.00','RAF',1,'2024-11-02 10:35:28','0.00','S','3.776',NULL,NULL,NULL,NULL,NULL),
 (98,85,'2024-10-28','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,3,'B001-00000014','1','00076750','TORRES MENDOZA ADRIA','','NUESTRA SENORA DE GUADALUPE MAK LT2 UCAYALI/CORONEL PORTILLO/MANANTAY ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'320.00','320.00','',0,2,2,1000,'TRESCIENTOS VEINTE CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','rKNQhQC30L2Ci4mbJNqa3HD+3XpYzQcyUXVyFSRCqkfr3EqA260A/REEkUdXXR1o9Bno7DuIZf8sALTKVhQUNrS/X+te2cuvbHpDGbY2ExPypDL23ZSy4X3h7wPU8M87GlS1DA7WBaZgW+mnHmXy6/ZffWUhUyyo2TCzJRp9/JNXx2Rt3yKMriSiiv3tAfQkSMLN+RS8pMlp5xSzyEm8rYejGFSvD0s/am9lXCOpufSHE+xlhjedZnFQbtLFDokJSO3JjaceRpOUaREMT4vwyW2cRH0HSeNsN4hP5LCMxFmjkRsUIi4jUHEaWW7Maf++at9SdetqKEJ2BU75UCkZbg==','rqhRLWQLYaUkF9ksFR1QbixNXIU=','0','01',NULL,'0.00','0.00','CONTADO','DANIELA FLORES BARBOZA','TV01-00000020','940644853/940644853','C00076750','xx','','2024-10-28 00:00:00','0.00','RAF',1,'2024-11-02 10:50:07','0.00','S','3.758',NULL,NULL,NULL,NULL,NULL);
INSERT INTO `documentos` (`iddocumento`,`DocEntry`,`FecEmision`,`RazonSocial`,`UbigeoFiscal`,`DireccionFiscal`,`ProvinciaFiscal`,`DepartamentoFiscal`,`DistritoFiscal`,`CodPaisFiscal`,`NumeroRUC`,`TipoDocRuc`,`DocumentoAfectado`,`TipoND`,`TipoDoc`,`NroDocumento`,`TipoDocAdq`,`NroDocAdq`,`RazonAdq`,`Motivo`,`DireccionAdq`,`Moneda`,`CodigoTributo`,`NombreTributo`,`CodigoIntTributo`,`CodTotalGravado`,`TotalGravado`,`CodTotalInafecto`,`TotalInafecto`,`CodTotalExonerado`,`TotalExonerado`,`ImporteTotalVenta`,`DocumentoOrigen`,`TipoDocAfectado`,`UblVersion`,`CustomizationID`,`IdLeyenda`,`DescripcionLeyenda`,`TotalUSD`,`TotalPEN`,`MontoIGV`,`DescriptionNC`,`EsDetra`,`MontoDetra`,`Comentario`,`Firma`,`ValorResumen`,`EstadoSunat`,`TipoOp`,`FecDocAfecta`,`TotalGratuito`,`TotalDscto`,`FormaPago`,`Vendedor`,`GuiaRem`,`TelCliente`,`CodigoCliente`,`TipoDocGR`,`GenericoSTR`,`GenericoFec`,`GenericoDec`,`GenericoSTR1`,`notificado`,`fecha_notificacion`,`totalanticipo`,`EnviarCorreo`,`tipocambio`,`fecha_notificacion_baja`,`GenericoDec2`,`PorcDetra`,`PorcRete`,`MontoRete`) VALUES 
 (99,89,'2024-10-29','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,3,'B001-00000015','1','70796705','TAYPE MARIN MARUJA MIRIAN','','HONORIA HUANUCO/PUERTO INCA/HONORIA ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'2900.00','2900.00','',0,2,2,1000,'DOS MIL NOVECIENTOS CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','heY7HR5295WEi6b1Ob2Ofk25p9o2phhvxOi2ZE6eN6/RtxErOTbx8sFsxeccoXDrUmnDs3HoCmFfTBpiBJDcq7Wi8aAKjrCsf2RbsIBFImQa2jGB1h1I+bxRic9dNZjV/gMzjO1qvyXGac/ILsGu61KWPO5PWH3NMtMkB5H2BE2GH3uH+EYnnEeCioGvRHPTicSro3nZ0M8Mzt5CJjrZx0loC6qY8/BZCZ4znMOAzKvihaV7mdjKmPc3jDBoCPkFoAymw2UUSGvSvUyoZXXzA694WIpuPiM+qILBEAHPAX9MDZ9QpXa9sOtw++PwhKAqom9iJ34ajViWgp5on49b3w==','QRnibu8KEAUOcwP4wiH7McV05oo=','0','01',NULL,'0.00','0.00','CONTADO','DANIELA FLORES BARBOZA','TV01-00000022','988247655/988247655','C70796705','xx','','2024-10-29 00:00:00','0.00','RAF',1,'2024-11-02 10:50:12','0.00','S','3.775',NULL,NULL,NULL,NULL,NULL),
 (100,90,'2024-10-29','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,3,'B001-00000016','1','70796705','TAYPE MARIN MARUJA MIRIAN','','HONORIA HUANUCO/PUERTO INCA/HONORIA ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'16.50','16.50','',0,2,2,1000,'DIECISEIS CON 50/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','Qajt1Q0WEJ6bEp12bLPhBMiezWc/MYAd2moQfgvGR8MRtEqUVP9U049WkOBbpI1VseoVocAQXzc1XxIul2aR/egv4RkL4HU2LiLCxgobGun2psiRQhbgXSwkA1OBMeTQQMK5Sv6RgZGuHR6AWlHnxUpyeU3BAvr5ptOL4I4r7N7tdNHdevoL7YnkhFaWZjdkLCkF4tpFQNSZcl0yOqK+rEr+aqu/BIeHArs1OqEpiYfPSHPNr7/NVMzQNvSr4I8NP0ylGFv3KoiP1wjFDf8YyBUIjKimD/9fad6QarXFMyP3dycoxnwg/9IG9g9nt4KV9IMZgY7hLxYO9OhOqNY/Ag==','HoEVyl/5Tj5DsSjdgG+Jl20fukU=','0','01',NULL,'0.00','0.00','CONTADO','DANIELA FLORES BARBOZA','TV01-00000025','988247655/988247655','C70796705','xx','','2024-10-29 00:00:00','0.00','RAF',1,'2024-11-02 10:50:18','0.00','S','3.775',NULL,NULL,NULL,NULL,NULL),
 (101,91,'2024-10-29','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,3,'B001-00000017','1','70796705','TAYPE MARIN MARUJA MIRIAN','','HONORIA HUANUCO/PUERTO INCA/HONORIA ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'148.50','148.50','',0,2,2,1000,'CIENTO CUARENTA Y OCHO CON 50/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','zQZH7PwwodcNpyb+K3KQJUPssNqi7cdc0+k809kw6EvUU1NpclkKjYyjgpvHTegv4gBtFq5Q5Ga+S62AcAbSBfvrLMuTAiL+1mQpuLqONjmvhsyLEb3ZuPidqU2xJS2QZdklGAyWMS8gGWzghxPf8ZQ3BUWglo8z/WbIEFCyDSe29cFTWJ5/1skzWGxM4yjL5Wkum7J5uRrPu9LQ3WVeJCsctZRXrByYaPu8mK70nv8UspUuHsPKmeMShFOsEgIWjAmKxNb/heGkpr5Srq+YRLnT0BEve03TJ7lFOJOyLq1A+RGeTrvohUI3qN65102tzrTKpptH2MBoyd36tFmLQw==','vKGwYJc7e5Qd1rGqc+dqkxzkL94=','0','01',NULL,'0.00','0.00','CONTADO','DANIELA FLORES BARBOZA','TV01-00000026','988247655/988247655','C70796705','xx','','2024-10-29 00:00:00','0.00','RAF',1,'2024-11-02 10:50:22','0.00','S','3.775',NULL,NULL,NULL,NULL,NULL),
 (102,97,'2024-10-30','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,3,'B001-00000018','1','60597958','NAVARRO VASQUEZ JUAN CARLOS','','JR LOS ELECHOS MZCC LT37 UCAYALI/CORONEL PORTILLO/YARINACOCHA ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'100.00','100.00','',0,2,2,1000,'CIENTO CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','Py+OLsHqIl3oJKgSPS4zJzpEIwtC02CST/OT4mq2Yd/EusSpasHZQj63+A4C1o9ceysildhXV5qYzj/hi6VavmFBnMmuD/IjMNaMcHTqT9YmEmpNk15zSKcO5IfKR5NHLgOWpywqSJt0tlmeZaNv6yMO4/QuGu3YVU2uO5HU8HC2bz+iSXsMl4Mw24aRkFqZc5/BupCqJYuT/sWvE0cqFIUV+U8kpnjmFLIGuntW6yBBF5HURrvXrx3Rxh9z9Wqax90xR+pEZZPuJmUKyfizGJyDeoPO4JLRvHAZgVkqgnl0fuzr/jAAfGvZ0Y9kLSlIr4er8OXfqDYiAGRumAtC/w==','1eYfiQ/cplXFWTsogiCTHfhLeKc=','0','01',NULL,'0.00','0.00','CONTADO','DANIELA FLORES BARBOZA','TV01-00000027','957392475/957392475','C60597958','xx','','2024-10-30 00:00:00','0.00','RAF',1,'2024-11-02 10:50:28','0.00','S','3.772',NULL,NULL,NULL,NULL,NULL),
 (103,99,'2024-10-30','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,3,'B001-00000019','1','74143781','PONCE DURAN ROSMERY 935637354','','CURIMANA UCAYALI/PADRE ABAD/CURIMANA ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'1859.00','1859.00','',0,2,2,1000,'UN MIL OCHOCIENTOS CINCUENTA Y NUEVE CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','D7PCf1505IGtYoVCSCEDqVe2aE91GrSZnGJ2Q/hJes8NoY/kACF3b/0EZW6R9wmr2RBs9QDIqLDRnYl4QPnDWEdXnBo4BWbKHkpznwQZk/tqHK5t+QvBLHxekRVniejU7aJoK8+Y6CyOL6EyNl6DnBMsyhNv25F8wS/FWZBb/MtTftH1A27QNrUqQ9LO48pUPCxguhsJlYWVrNn5WXOobnwsaQeoiBwJ9Za4q+EB27SlLhEKaOgyU8x9MIKbGqc5WY9RABzYGObtoFsNEugwpH/gWPKHy5h0KASeKblGzBEEr1KFXEEgRTaHAgLt8DQcX7aOolw9+fBRZYYgc0wVzA==','Kx0uIFP3fBpfs8NARMeOhH8npzg=','0','01',NULL,'0.00','0.00','CONTADO','-Ningún empleado del departamento de ventas-','TV01-00000029','935637354','C74143781','xx','','2024-10-30 00:00:00','0.00','RAF',1,'2024-11-02 10:50:33','0.00','S','3.772',NULL,NULL,NULL,NULL,NULL),
 (104,101,'2024-10-31','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,3,'B001-00000020','1','44723350','MARCELO GENTE LUCAS','','CAMPO  VERDE UCAYALI/CORONEL PORTILLO/CAMPOVERDE ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'295.00','295.00','',0,2,2,1000,'DOSCIENTOS NOVENTA Y CINCO CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','015RJGNAAZZjzatoJeDy3XMMA0PSI0Wb1Kg7BmeRBCbuuQRU1npde8VBesUrWY0xB3+yWgOs84nvnPIp2BCTFNa/UVo0W90mKIijV3miyD8PKZGtnyrvR2ifaH2tJyVYhwSzhv1LnNpLIrPziItxp5F5uV6xOIIJzrYDGVreulcHXF1VL+1zDXJo4lodLndc3zb4lOU5NjgWJO83nUUUft0KpIWew2TVgzQSgjNJ2F1bc7Wfi7u9U0kCbJeZJZ3HOPR0XRZRsg46nj6KdB9liLWCSYnUwYZApkhR+xhBrv3fk6kCM886KYW0ZsmIDatSM6GLXodlYzPTXSVuE1m3qg==','IJ7VGQFZVBXaiTKGtOCRf7MHj9Q=','0','01',NULL,'0.00','0.00','CONTADO','DANIELA FLORES BARBOZA','TV01-00000031','984753207/984753207','C44723350','xx','','2024-10-31 00:00:00','0.00','RAF',1,'2024-11-02 10:50:38','0.00','S','3.776',NULL,NULL,NULL,NULL,NULL),
 (105,102,'2024-10-31','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,3,'B001-00000021','1','40575289','AQUINO DURAND ROGER','','AGUAYTIA UCAYALI/PADRE ABAD/PADRE ABAD ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'1789.00','1789.00','',0,2,2,1000,'UN MIL SETECIENTOS OCHENTA Y NUEVE CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','sNuKUR8Gm8jGG1dH2jwl/mexn8huDcrKhruDGgr/TsIrbq8fHW3DHS2lwjOkGKvV7bvVB4J0kAR7Pq8VC83CimNEytCpqK7qVVOOHhVX7KMHIq52eebyaUT6ARbmrte2f+GDTAKRNF7up9Qm+WW0Q2G9miPaBaqH5j7dsBsQv/mRMhwlRm2OpOdISmjvrYuHXCQ6K0drqXNEQW5Kg3WDdrsCNlbu+gJaf1QUZuF8JAa4ikqsodTzyLTg1Z1lHYnGdRheJ3kkwSOnV/DbkqnIQQjB6TGVkzJaliVsSlkmKXNTDzdjcuNbKCkcyLFNhCK0g7Fc4ch35LFduiWbFxXDXQ==','PnC6+mU5a17z6GvK/I/KVEb0FNA=','0','01',NULL,'0.00','0.00','CONTADO','PAULINA QUISPE','TV01-00000032','932266306/932266306','C40575289','xx','','2024-10-31 00:00:00','0.00','RAF',1,'2024-11-02 10:50:43','0.00','S','3.776',NULL,NULL,NULL,NULL,NULL),
 (106,106,'2024-10-31','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,3,'B001-00000022','1','42983548','DEL AGUILA TORRES ROCKY FRANS','','JR LA SELVA  655 ALT MUNICIPALIDAD UCAYALI/CORONEL PORTILLO/YARINACOCHA ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'224.00','224.00','',0,2,2,1000,'DOSCIENTOS VEINTICUATRO CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','ILbKaoDH+yfsmqBI/aZRuNmZw89BWpdCeW8rRUWaYwYSMWAjx8XZtqD3N/79yUABinTKH8MW3g2+FlY4J+S0VH3H1pZXzccRzCQJfw6QynqNuktkiw1UkvoRAKBpsLGexqBfuI/H/7ej00fanFT5yMhaZV80ANT+nVbU/mjNdMsRH7KvilIIXsQMlqdJANLnr7EV7ji7tox5lq78jU3eKYAPqQ/viuxmWrEZCXmvtsA6qWLOkgznbQLe6cYH+Lc21iF73BpRevTZSfWaAA7yKoRMTLuFL32KH6ElYUR0Y3rbkiNk2eN+N9BcaKfIJDjmilhm9ZqsPS01MtjqUTeIVA==','WZ8jlD4F4jyHqYZSsLAEtYZu6Go=','0','01',NULL,'0.00','0.00','CONTADO','-Ningún empleado del departamento de ventas-','TV01-00000036','924132929/924132929','C42983548','xx','','2024-10-31 00:00:00','0.00','RAF',1,'2024-11-02 10:50:48','0.00','S','3.776',NULL,NULL,NULL,NULL,NULL),
 (109,111,'2024-11-02','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,1,'F001-00000051','6','10430416397','CHAHUA TOLENTINO YUDE YANITA','','AV. 1 DE JUNIO MZA 45 LOTE 01 FRENTE AL PARADERO DE CAMPO VERDE UCAYALI/CORONEL PORTILLO/CAMPOVERDE ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'325.00','325.00','',0,2,2,1000,'TRESCIENTOS VEINTICINCO CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','Jhdkgb/jrcxWsGtjXqtPW1KTmKVOsCUU3+HSUmrIKW3+AYbzxcN7UOwy5X1rjCPUM433Z9lJCd5NmTqXYuiXcZ5I/D3w7aan+TrMqByvsvE9wTkdrcZVwr20rA0YYsAbi48pBSOeg5HaifSx4hDurWc0XsRgT62BBgg31hM1VQz7DD0SjCFHLuvApFw2NQA2jVnkoLCO2kEIiyxVKJdxYlFz7wG4zRi6LHdbdaTgxQshEf8MEo4Ka0sim2Py3YL+yp0VeKC8RVPcD8iJNNTFr8NJ1vt8Ea6+1xiyOY+USfAEE6ab2X3OKOOgehUnuJTQ5N/YzpTURm3mMS5fqtjN1w==','1M/FqbKx0gkRtP1BaH50diWefAM=','0','01',NULL,'0.00','0.00','CONTADO','DANIELA FLORES BARBOZA','','955664900','C10430416397','xx','||025||||0','2024-11-02 00:00:00','0.00','RAF',1,'2024-11-02 13:00:07','0.00','S','3.755',NULL,NULL,NULL,NULL,NULL),
 (110,110,'2024-11-02','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'',0,3,'B001-00000023','1','43842645','ALBORNOZ CRUZ ABDEL','','CAMPO VERDE UCAYALI/CORONEL PORTILLO/CAMPOVERDE ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'590.00','590.00','',0,2,2,1000,'QUINIENTOS NOVENTA CON 00/100 SOLES',NULL,NULL,'0.00','',NULL,NULL,' * ','pWXmL1ixv6AMa4UCutwXVgnBAJzSguwViPODxffGatqjyaQ/RnxqWpQqRqA4srH+JvSHbUBSePl2ftgE+1X220bNgS/nlI4m4i3Xn/63lNj9N/64TL+hmUfNMEKdM6kXwnj6i4ahrCNVbiVXi3y6D17/WkNePDs33676beN47pat70RYjAieg4NaYjmJ8aQyTMQnSUbdiOVrf3vYUt42nk1S6g75+akzfmEW+VGEVCuEdHWVdmp0kqbQ09+2JHs7wakfRdyf+VM8wDMu1+RpxKp/M+Px+Z59zqnzPQOssivfZbeBc5tsRkanT6BbZchBnWtc9dgXEXmOH77pHJcNGw==','YRSPQe8+E8laVlVqbZnlbbgrpFE=','0','01',NULL,'0.00','0.00','CONTADO','DANIELA FLORES BARBOZA','TV01-00000040','955664900/955664900','C43842645','xx','','2024-11-02 00:00:00','0.00','RAF',1,'2024-11-02 13:00:13','0.00','S','3.755',NULL,NULL,NULL,NULL,NULL),
 (112,1,'2024-10-29','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'F001-00000039',6,7,'F701-00000002','6','10705006356','CABRERA CARBAJAL ANALIZ GABY','','PUERTO BERMUDES PASCO/OXAPAMPA/PUERTO BERMUDEZ ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'1475.00','1475.00','F001-00000039',1,2,2,1000,'UN MIL CUATROCIENTOS SETENTA Y CINCO CON 00/100 SOLES',NULL,NULL,'0.00','ERROR DE CANTIDAD',NULL,NULL,'','E/RbNHJdSA/fiDkdwlYiuZj9YBe9RGm8BFOt5h+JcGgneigH+CGQkW6EpGvNWjfZr4TkATAtwJJ00awR0zI5DZHVevgm8d/K9P8jd/3dMyyuUvDIuHHuU659dKum0ZTKBrAwViqn3jEwvShG8JanU/C7uGMklgrSp1P8NPATvwZX0dHg0BlUVrFV4Bssbd4Ai/Wj0fXtTjpDV0B7k5SER9WfXXtkSWF/rICJUu4rDV6wdvMN8iu7tZRqBgsYoyiw2XOydiI9lrXddQsVxEk5FCDIOyI11I5BX9WRNytHc3h8tYMmcvHIwy65x/9Bgd6nJE126hVrRlIYcZgEAWcEmQ==','XX/sR6KBYpk4t+DhUXSwgOArjgU=','0','01','2024-10-29','0.00','0.00','CONTADO','DANIELA FLORES BARBOZA','','969223449/969223449','C10705006356','xx','','2024-10-29 00:00:00','0.00','RAF',1,'2024-11-02 13:00:18',NULL,'S','3.775',NULL,'0.00',NULL,NULL,NULL),
 (113,2,'2024-10-29','LAN ELECTRONICS PERU S.A.C.',150105,'JR. ANTONIO RAIMONDI\r\r150105 PUCALLPA\rPERU','','','Pucallpa','PE','20607856428',6,'F001-00000034',6,7,'F701-00000001','6','20609354683','CENTRO FERRETERO SOTO PALOMINO SOCIEDAD ANONIMA CERRADA','','CAL. JOSE SANTOS CHOCANO LT. 9 MZ. 26 C.P. PASCO/OXAPAMPA/OXAPAMPA ','PEN',1000,'IGV','VAT',1001,'0.00',1002,'0.00',1003,'242.00','242.00','F001-00000034',1,2,2,1000,'DOSCIENTOS CUARENTA Y DOS CON 00/100 SOLES',NULL,NULL,'0.00','DEVOLUCION TOTAL',NULL,NULL,'','Yq3BFnh43pshQolJi5rTDk065ejw9HWqFJzsY5CMnS1U1tQHvvqkFLc6ThY30Ensl14bZloAxkVCR5JWF2F0OMnF5FeaLwVQF0mRoDm57Qxp4Q9tHENqijXpTWov5T+pd9VIWLei2LPBl+nBX3cQ/bXByb7PY+e8YLY75UI3+vrUxvDAqOdI3gUKXQGt9zRI3RtuUAwJFeyizLDhajOnPtI+CT5hyzWlr8hwG+UX/D50vvxoHAEoL/QExm20kABvD5stJOVIkjUAPsMbPcPvT1c2w1O2NMEvlO1zLym7golPvMGbxpLCUEvzUUgbp9ES6zmJR4Fj2XF1R18o/LV7tw==','tu2a+TvsPkRWdJmGVRJnbXxDUCs=','0','01','2024-10-29','0.00','0.00','CONTADO','DANIELA FLORES BARBOZA','','932368763/932368763','C20609354683','xx','','2024-10-29 00:00:00','0.00','RAF',1,'2024-11-02 13:00:24',NULL,'S','3.775',NULL,'0.00',NULL,NULL,NULL);
/*!40000 ALTER TABLE `documentos` ENABLE KEYS */;


--
-- Definition of table `email`
--

DROP TABLE IF EXISTS `email`;
CREATE TABLE `email` (
  `idemail` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(100) CHARACTER SET utf8 NOT NULL,
  `Name` varchar(100) CHARACTER SET utf8 NOT NULL,
  `subjet` varchar(300) CHARACTER SET utf8 NOT NULL,
  `fecha` datetime NOT NULL,
  `uid` int(10) unsigned NOT NULL,
  `attachments` int(10) unsigned NOT NULL,
  `leido` char(2) NOT NULL,
  `mensaje` text,
  `idemp_prov` int(10) unsigned NOT NULL,
  `filename` varchar(150) DEFAULT NULL,
  PRIMARY KEY (`idemail`) USING BTREE,
  KEY `FK_provedor_email_1` (`idemp_prov`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `email`
--

/*!40000 ALTER TABLE `email` DISABLE KEYS */;
/*!40000 ALTER TABLE `email` ENABLE KEYS */;


--
-- Definition of table `empresa`
--

DROP TABLE IF EXISTS `empresa`;
CREATE TABLE `empresa` (
  `idempresa` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `nombre` varchar(150) NOT NULL,
  `direccionweb` varchar(150) NOT NULL,
  `logo` varchar(45) NOT NULL,
  `nombrecarpeta` varchar(45) NOT NULL,
  `ruc` varchar(11) NOT NULL,
  `email` varchar(150) NOT NULL,
  `pswd` varchar(250) NOT NULL,
  `direccion` varchar(250) NOT NULL,
  `provincia` varchar(150) NOT NULL,
  `telefono` varchar(45) NOT NULL,
  `ctacorriente` varchar(255) DEFAULT NULL,
  `rsagente` varchar(45) DEFAULT NULL,
  `resolucion` varchar(45) DEFAULT NULL,
  `ctacorriente2` varchar(255) DEFAULT NULL,
  `resol_contribuyente` varchar(45) DEFAULT NULL,
  `rpm_ventas` varchar(90) DEFAULT NULL,
  `rpm_creditos` varchar(90) DEFAULT NULL,
  `telefax` varchar(145) DEFAULT NULL,
  `atencion_cliente` varchar(45) DEFAULT NULL,
  `email_contacto` varchar(150) DEFAULT NULL,
  `tiempo` smallint(5) NOT NULL,
  `fecha_registro` datetime NOT NULL,
  `codigo_usuario` varchar(45) NOT NULL,
  PRIMARY KEY (`idempresa`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `empresa`
--

/*!40000 ALTER TABLE `empresa` DISABLE KEYS */;
INSERT INTO `empresa` (`idempresa`,`nombre`,`direccionweb`,`logo`,`nombrecarpeta`,`ruc`,`email`,`pswd`,`direccion`,`provincia`,`telefono`,`ctacorriente`,`rsagente`,`resolucion`,`ctacorriente2`,`resol_contribuyente`,`rpm_ventas`,`rpm_creditos`,`telefax`,`atencion_cliente`,`email_contacto`,`tiempo`,`fecha_registro`,`codigo_usuario`) VALUES 
 (1,'LAN ELECTRONIC','http://www.lanelectronics.com.pe','logo_lanelectronic','LanElectronic','20607856428','tiendasoroverde@hotmail.com','103.118.70.84.122.107.102.78.99.72.102.108','Jr. Raymondi Nº 650 Ucayali-C.Portillo-Calleria-Pucallpa','Calleria - Coronel Portillo - Ucayali','Cel. 961658106 - 950015043',' ','',' ','BANCO              SOLES        DOLARES / BCP  CTA CTE      480-9290031-0-79     480-9827383-1-87 / BCP CCI  00248000929003107925   00248000982738318729 /','152-005-0000045',NULL,'943801820 / 992802222','Jr. Prospero N° 335 - Sector 4 - Loreto-Maynas-Iquitos (065) 231740      Cel. 920673225 - 961658106','061-575144','administracion@hafidmotos.com',10,'2024-09-25 09:43:22','admin');
/*!40000 ALTER TABLE `empresa` ENABLE KEYS */;


--
-- Definition of trigger `update_Empresa`
--

DROP TRIGGER /*!50030 IF EXISTS */ `update_Empresa`;

DELIMITER $$

CREATE DEFINER = `root`@`localhost` TRIGGER `update_Empresa` BEFORE UPDATE ON `empresa` FOR EACH ROW BEGIN
INSERT INTO empresa_historial
(direccionweb,email,pswd,direccion,provincia,telefono,ctacorriente,rsagente,resolucion,ctacorriente2,resol_contribuyente,
 rpm_ventas,rpm_creditos,telefax,atencion_cliente,email_contacto,tiempo,fecha_registro,codigo_usuario)
VALUES (OLD.direccionweb,OLD.email,OLD.pswd,OLD.direccion,OLD.provincia,OLD.telefono,OLD.ctacorriente,OLD.rsagente,
          OLD.resolucion,OLD.ctacorriente2,OLD.resol_contribuyente,OLD.rpm_ventas,OLD.rpm_creditos,OLD.telefax,
          OLD.atencion_cliente,OLD.email_contacto,OLD.tiempo,OLD.fecha_registro,OLD.codigo_usuario);

END $$

DELIMITER ;

--
-- Definition of table `empresa_cliente`
--

DROP TABLE IF EXISTS `empresa_cliente`;
CREATE TABLE `empresa_cliente` (
  `idemp_clie` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `idempresa` int(10) unsigned NOT NULL,
  `idcliente` int(10) unsigned NOT NULL,
  `estado` char(2) NOT NULL DEFAULT '1',
  `email` varchar(150) CHARACTER SET utf8 NOT NULL,
  `notificacion_credenciales` smallint(5) unsigned DEFAULT '0',
  `fecha_notificacion` datetime DEFAULT NULL,
  PRIMARY KEY (`idemp_clie`),
  KEY `FK_empresa_cliente_1` (`idempresa`),
  KEY `FK_empresa_cliente_2` (`idcliente`),
  CONSTRAINT `FK_empresa_cliente_1` FOREIGN KEY (`idempresa`) REFERENCES `empresa` (`idempresa`),
  CONSTRAINT `FK_empresa_cliente_2` FOREIGN KEY (`idcliente`) REFERENCES `clientes` (`idcliente`)
) ENGINE=InnoDB AUTO_INCREMENT=67 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `empresa_cliente`
--

/*!40000 ALTER TABLE `empresa_cliente` DISABLE KEYS */;
INSERT INTO `empresa_cliente` (`idemp_clie`,`idempresa`,`idcliente`,`estado`,`email`,`notificacion_credenciales`,`fecha_notificacion`) VALUES 
 (1,1,1,'1','web_master@xxx.com',0,NULL),
 (2,1,2,'1','web_master@xxx.com',0,NULL),
 (3,1,3,'0','prueba@hotmail.com',0,NULL),
 (4,1,3,'0','webmaster@xxx.com',0,NULL),
 (5,1,3,'1','prueba@hotmail.com',0,NULL),
 (6,1,4,'0','webmaster@xxx.com',0,NULL),
 (7,1,4,'1','OROVERDEFRACTURACION1@GMAIL.COM',0,NULL),
 (8,1,5,'1','OROVERDEFRACTURACION1@GMAIL.COM',0,NULL),
 (9,1,6,'1','OROVERDEFACTURACION1@GMAIL.COM',1,'2024-10-03 09:06:17'),
 (10,1,7,'1','OROVERDEFACTURACION1@GMAIL.COM',1,'2024-10-03 09:11:41'),
 (11,1,8,'1','OROVERDEFRACTURACION1@GMAIL.COM',1,'2024-10-03 09:12:56'),
 (12,1,9,'1','OROVERDEFRACTURACION1@GMAIL.COM',1,'2024-10-03 09:14:28'),
 (13,1,10,'1','OROVERDEFACTURACION1@GMAIL.COM',1,'2024-10-03 09:25:06'),
 (14,1,11,'1','OROVERDEFACTURACION1@GMAIL.COM',1,'2024-10-03 09:25:11'),
 (15,1,12,'1','OROVERDEFACTURACION1@GMAIL.COM',1,'2024-10-03 09:25:16'),
 (16,1,13,'1','OROVERDEFRACTURACION1@GMAIL.COM',1,'2024-10-03 09:25:20'),
 (17,1,14,'1','OROVERDEFRACTURACION1@GMAIL.COM',1,'2024-10-03 09:25:26'),
 (18,1,15,'1','OROVERDEFRACTURACION1@GMAIL.COM',1,'2024-10-03 09:25:31'),
 (19,1,16,'1','OROVERDEFRACTURACION1@GMAIL.COM',1,'2024-10-03 09:25:36'),
 (20,1,17,'1','JUANRAP986@GMAIL.COM',1,'2024-10-03 09:25:41'),
 (21,1,18,'1','OROVERDEFACTURACION1@GMAIL.COM',1,'2024-10-03 09:25:50'),
 (22,1,19,'1','OROVERDEFRACTURACION1@GMAIL.COM',1,'2024-10-03 09:30:16'),
 (23,1,20,'1','OROVERDEFACTURACION1@GMAIL.COM',1,'2024-10-07 19:30:07'),
 (24,1,21,'1','OROVERDEFACTURACION1@GMAIL.COM',1,'2024-10-07 19:30:12'),
 (25,1,22,'1','OROVERDEFACTURACION1@GMAIL.COM',1,'2024-10-06 07:00:11'),
 (26,1,23,'1','OROVERDEFACTURACION1@GMAIL.COM',1,'2024-10-06 07:00:16'),
 (27,1,24,'1','OROVERDEFACTURACION1@GMAIL.COM',1,'2024-10-06 07:00:22'),
 (28,1,25,'1','OROVERDEFACTURACION1@GMAIL.COM',1,'2024-10-06 07:00:27'),
 (29,1,26,'1','OROVERDEFACTURACION1@GMAIL.COM',1,'2024-10-06 07:00:32'),
 (30,1,27,'1','OROVERDEFACTURACION1@GMAIL.COM',1,'2024-10-06 07:00:39'),
 (31,1,28,'1','OROVERDEFACTURACION1@GMAIL.COM',1,'2024-10-07 18:55:07'),
 (32,1,29,'1','OROVERDEFACTURACION1@GMAIL.COM',1,'2024-10-07 19:55:07'),
 (33,1,30,'1','OROVERDEFACTURACION@GMAIL.COM',1,'2024-10-17 20:10:07'),
 (34,1,31,'1','OROVERDEFACTUCION1@GMAIL.COM',1,'2024-10-17 20:10:12'),
 (35,1,32,'1','OROVERDEFACTURACION1@GMAIL.COM',1,'2024-10-17 20:10:17'),
 (36,1,33,'1','OROVERDEFACTURACION1@GMAIL.COM',1,'2024-10-17 20:10:22'),
 (37,1,34,'1','OROVERDEFACTURACION1@GMAIL.COM',1,'2024-10-17 20:10:32'),
 (38,1,35,'1','OROVERDEFACTURACION1@GMAIL.COM',1,'2024-10-17 20:10:37'),
 (39,1,36,'1','DIANA.TARMA1994@GMAIL.COM',1,'2024-10-21 21:40:08'),
 (40,1,37,'1','OROVERDEFACTURACION1@GMAIL.COM',1,'2024-10-21 21:40:14'),
 (41,1,38,'1','OROVERDEFACTURACION1@GMAIL.COM',1,'2024-10-21 21:40:19'),
 (42,1,39,'1','FACTURACIONOROVERDE1@GMAIL.COM',1,'2024-10-21 21:40:25'),
 (43,1,40,'1','JOSE.CAYCHOG@GMAIL.COM',1,'2024-10-21 21:40:29'),
 (44,1,41,'1','OROVERDEFACTURACION1@GMAIL.COM',1,'2024-10-21 21:40:35'),
 (45,1,42,'1','OROVERDEFACTURACION1@GMAIL.COM',1,'2024-10-23 17:30:12'),
 (46,1,43,'1','OROVERDEFACTURACION1@GMAIL.COM',1,'2024-10-23 18:05:08'),
 (47,1,44,'1','OROVERDEFACTURACION1@GMAIL.COM',0,NULL),
 (48,1,45,'1','OROVERDEFACTURACION1@GMAIL.COM',1,'2024-10-30 11:30:08'),
 (49,1,46,'1','OROVERDEFACTURACION1@GMAIL.COM',1,'2024-10-30 11:30:13'),
 (50,1,47,'1','djselvaimport18@gmail.com',1,'2024-10-30 11:30:25'),
 (51,1,48,'1','OROVERDEFACTURACION1@GMAIL.COM',1,'2024-10-30 11:30:35'),
 (52,1,49,'1','contabilidad.maquinariassilje@gmail.com',1,'2024-10-31 10:50:12'),
 (53,1,50,'1','cpccfrankalva@gmail.com',1,'2024-11-02 10:35:07'),
 (54,1,51,'1','actualizar@gmail.com',1,'2024-11-02 10:35:12'),
 (55,1,52,'1','OROVERDEFACTURACION1@GMAIL.COM',1,'2024-11-02 10:35:17'),
 (56,1,53,'1','Ruthgomezccahuana@gmail.com',1,'2024-11-02 10:35:22'),
 (57,1,54,'1','tiendasoroverde@hotmail.com',1,'2024-11-02 10:35:28'),
 (58,1,55,'1','OROVERDEFACTURACION1@GMAIL.COM',1,'2024-11-02 10:50:07'),
 (59,1,56,'1','OROVERDEFACTURACION1@GMAIL.COM',1,'2024-11-02 10:50:12'),
 (60,1,57,'1','NAVASJUANCA24@GMAIL.COM',1,'2024-11-02 10:50:28'),
 (61,1,58,'1','TEINDASOROFACTURACION1@GMAIL.COM',1,'2024-11-02 10:50:33'),
 (62,1,59,'1','OROVERDEFACTURACION1@MAIL.COM',1,'2024-11-02 10:50:38'),
 (63,1,60,'1','OROVERDEFACTURACION1@GMAIL.COM',1,'2024-11-02 10:50:43'),
 (64,1,61,'1','OROVERDEFACTURACION1@MAIL.COM',1,'2024-11-02 10:50:48'),
 (65,1,62,'1','OROVERDEFACTURACION1@GMAIL.COM',1,'2024-11-02 13:00:07'),
 (66,1,63,'1','OROVERDEFACTURACION1@GMAIL.COM',1,'2024-11-02 13:00:13');
/*!40000 ALTER TABLE `empresa_cliente` ENABLE KEYS */;


--
-- Definition of table `empresa_historial`
--

DROP TABLE IF EXISTS `empresa_historial`;
CREATE TABLE `empresa_historial` (
  `idempresa_historial` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `direccionweb` varchar(150) NOT NULL,
  `email` varchar(150) NOT NULL,
  `pswd` varchar(250) NOT NULL,
  `direccion` varchar(250) NOT NULL,
  `provincia` varchar(150) NOT NULL,
  `telefono` varchar(45) NOT NULL,
  `ctacorriente` varchar(255) DEFAULT NULL,
  `rsagente` varchar(45) DEFAULT NULL,
  `resolucion` varchar(45) DEFAULT NULL,
  `ctacorriente2` varchar(255) DEFAULT NULL,
  `resol_contribuyente` varchar(45) DEFAULT NULL,
  `rpm_ventas` varchar(90) DEFAULT NULL,
  `rpm_creditos` varchar(90) DEFAULT NULL,
  `telefax` varchar(45) DEFAULT NULL,
  `atencion_cliente` varchar(45) DEFAULT NULL,
  `email_contacto` varchar(150) DEFAULT NULL,
  `tiempo` smallint(5) NOT NULL,
  `fecha_registro` datetime NOT NULL,
  `codigo_usuario` varchar(45) NOT NULL,
  PRIMARY KEY (`idempresa_historial`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `empresa_historial`
--

/*!40000 ALTER TABLE `empresa_historial` DISABLE KEYS */;
INSERT INTO `empresa_historial` (`idempresa_historial`,`direccionweb`,`email`,`pswd`,`direccion`,`provincia`,`telefono`,`ctacorriente`,`rsagente`,`resolucion`,`ctacorriente2`,`resol_contribuyente`,`rpm_ventas`,`rpm_creditos`,`telefax`,`atencion_cliente`,`email_contacto`,`tiempo`,`fecha_registro`,`codigo_usuario`) VALUES 
 (1,'https://www.hafidmotos.com/es/','facturacion@grupolacachina.pe','103.118.70.84.122.107.102.78.99.72.102.108','Av. Centenario Nro. 453 - Urb. Cercado de Pucallpa','Calleria - Coronel Portillo - Ucayali','061-575144 Cel: 943801820',' ','',' ','BANCO              SOLES        DOLARES / BCP  CTA CTE      480-9290031-0-79     480-9827383-1-87 / BCP CCI  00248000929003107925   00248000982738318729 /',NULL,NULL,'943801820 / 992802222',NULL,'061-575144','administracion@hafidmotos.com',10,'2024-01-26 22:01:30','admin'),
 (2,'https://www.sunat.gob.pe','importaciones.hakim@gmail.com','103.118.70.84.122.107.102.78.99.72.102.108','Jr. 7 de Junio Nro. 865 Urb. Cercado de Pucallpa','Calleria - Coronel Portillo - Ucayali','061-575144 Cel: 950017665',' ','',' ','BANCO SCOTIABANK (SOL): 0679906  / CCI  : 009-322-000000679906-98 /  ',NULL,NULL,'061-571508 / 061-574430',NULL,'061-575144','importaciones.hakim@gmail.com',10,'2023-08-18 09:18:22','admin'),
 (3,'www.sunat.gob.pe','facturacion@hafidmotos.com','72.54.101.118.119.116.54.101.51.50.112.97.52.50.52.51','Jr. Padre Aguerizabal Nro. 102','Pucallpa','(61) 951908376',' ','',' ','BANCO DE CREDITO (USD): 193-2481851-1-10  /  BANCO CONTINENTAL (USD): 0011-0178-0100051337 / BANCO CONTINENTAL (SOL): 0011-0178-0100048131',NULL,NULL,'989254142 / 986134534',NULL,'7190100','Maria_17_vic@hotmail.com',10,'2022-01-24 21:18:20','admin'),
 (4,'www.sunat.gob.pe','facturacion@hafidmotos.com','72.54.101.118.119.116.54.101.51.50.112.97.52.50.52.51','Cal. Isaac Recavarren Nro. 183 Dpto. 3 - Urb. Los Ficus','Santa Anita - Lima','(01) 7150-162',' ','',' ','BANCO DE CREDITO (USD): 193-2481851-1-10  /  BANCO CONTINENTAL (USD): 0011-0178-0100051337 / BANCO CONTINENTAL (SOL): 0011-0178-0100048131',NULL,NULL,'989254142 / 986134534',NULL,'7190100','ventas@hafidmotos.com',10,'2022-02-16 22:01:20','admin'),
 (5,'www.sunat.gob.pe','facturacion@hafidmotos.com','72.54.101.118.119.116.54.101.51.50.112.97.52.50.52.51','Av. Centenario Nro. 431 Calleria -','Coronel Portillo - Ucayali','944985691',' ','',' ','BANCO DE CREDITO (USD): 193-2481851-1-10  /  BANCO CONTINENTAL (USD): 0011-0178-0100051337 / BANCO CONTINENTAL (SOL): 0011-0178-0100048131',NULL,NULL,'944985691',NULL,'944985691','maqagricpathrossac@gmail.com',10,'2022-02-16 22:01:41','admin'),
 (6,'https://www.hafidmotos.com/es/','facturacion@grupolacachina.pe','103.118.70.84.122.107.102.78.99.72.102.108','Av. Centenario Nro. 453 - Urb. Cercado de Pucallpa','Calleria - Coronel Portillo - Ucayali','061-575144 Cel: 943801820',' ','',' ','BANCO              SOLES        DOLARES / BCP  CTA CTE      480-9290031-0-79     480-9827383-1-87 / BCP CCI  00248000929003107925   00248000982738318729 /',NULL,NULL,'943801820 / 992802222',NULL,'061-575144','administracion@hafidmotos.com',10,'2024-01-26 22:01:30','admin'),
 (7,'https://www.hafidmotos.com/es/','tiendasoroverde@hotmail.com','103.118.70.84.122.107.102.78.99.72.102.108','Jr. Raymondi Nro. 670 - Ucayali-C. Portillo-Calleria - Pucallpa','Calleria - Coronel Portillo - Ucayali','Telf.: (061)594666 Cel. 961658106',' ','',' ','BANCO              SOLES        DOLARES / BCP  CTA CTE      480-9290031-0-79     480-9827383-1-87 / BCP CCI  00248000929003107925   00248000982738318729 /',NULL,NULL,'943801820 / 992802222',NULL,'061-575144','administracion@hafidmotos.com',10,'2024-01-26 22:01:30','admin'),
 (8,'https://www.hafidmotos.com/es/','tiendasoroverde@hotmail.com','103.118.70.84.122.107.102.78.99.72.102.108','Jr. Raymondi Nro. 670 - Ucayali-C. Portillo-Calleria - Pucallpa','Calleria - Coronel Portillo - Ucayali','Telf.: (061)594666 Cel. 961658106',' ','',' ','BANCO              SOLES        DOLARES / BCP  CTA CTE      480-9290031-0-79     480-9827383-1-87 / BCP CCI  00248000929003107925   00248000982738318729 /',NULL,NULL,'943801820 / 992802222','Jr. Prospero N° 349 - Sector 4 - Loreto-Mayna','061-575144','administracion@hafidmotos.com',10,'2024-01-26 22:01:30','admin'),
 (9,'https://www.hafidmotos.com/es/','tiendasoroverde@hotmail.com','103.118.70.84.122.107.102.78.99.72.102.108','Jr. Raymondi N° 670 - Ucayali-C. Portillo-Calleria - Pucallpa','Calleria - Coronel Portillo - Ucayali','Telf.: (061)594666 Cel. 961658106',' ','',' ','BANCO              SOLES        DOLARES / BCP  CTA CTE      480-9290031-0-79     480-9827383-1-87 / BCP CCI  00248000929003107925   00248000982738318729 /',NULL,NULL,'943801820 / 992802222','Jr. Prospero N° 349 - Sector 4 - Loreto-Mayna','061-575144','administracion@hafidmotos.com',10,'2024-01-26 22:01:30','admin'),
 (10,'https://www.hafidmotos.com/es/','tiendasoroverde@hotmail.com','103.118.70.84.122.107.102.78.99.72.102.108','Jr. Raymondi N° 670 - Ucayali-C. Portillo-Calleria - Pucallpa','Calleria - Coronel Portillo - Ucayali','Telf.: (061)594666 Cel. 961658106',' ','',' ','BANCO              SOLES        DOLARES / BCP  CTA CTE      480-9290031-0-79     480-9827383-1-87 / BCP CCI  00248000929003107925   00248000982738318729 /','152-005-0000045',NULL,'943801820 / 992802222','Jr. Prospero N° 349 - Sector 4 - Loreto-Mayna','061-575144','administracion@hafidmotos.com',10,'2024-01-26 22:01:30','admin'),
 (11,'https://www.hafidmotos.com/es/','tiendasoroverde@hotmail.com','103.118.70.84.122.107.102.78.99.72.102.108',' ','Calleria - Coronel Portillo - Ucayali','Cel. 950015043',' ','',' ','BANCO              SOLES        DOLARES / BCP  CTA CTE      480-9290031-0-79     480-9827383-1-87 / BCP CCI  00248000929003107925   00248000982738318729 /','152-005-0000045',NULL,'943801820 / 992802222','Jr. Prospero N° 349 - Sector 4 - Loreto-Mayna','061-575144','administracion@hafidmotos.com',10,'2024-09-25 09:36:37','admin'),
 (12,'https://www.hafidmotos.com/es/','tiendasoroverde@hotmail.com','103.118.70.84.122.107.102.78.99.72.102.108',' Jr. Raymondi Nº 650 Ucayali - C.Portillo - Calleria - Pucallpa','Calleria - Coronel Portillo - Ucayali','Cel. 950015043',' ','',' ','BANCO              SOLES        DOLARES / BCP  CTA CTE      480-9290031-0-79     480-9827383-1-87 / BCP CCI  00248000929003107925   00248000982738318729 /','152-005-0000045',NULL,'943801820 / 992802222','Jr. Prospero N° 349 - Sector 4 - Loreto-Mayna','061-575144','administracion@hafidmotos.com',10,'2024-09-25 09:39:36','admin'),
 (13,'http://www.lanelectronics.com.pe','tiendasoroverde@hotmail.com','103.118.70.84.122.107.102.78.99.72.102.108','Jr. Raymondi Nº 650 Ucayali - C.Portillo - Calleria - Pucallpa','Calleria - Coronel Portillo - Ucayali','Cel. 950015043',' ','',' ','BANCO              SOLES        DOLARES / BCP  CTA CTE      480-9290031-0-79     480-9827383-1-87 / BCP CCI  00248000929003107925   00248000982738318729 /','152-005-0000045',NULL,'943801820 / 992802222','Jr. Prospero N° 349 - Sector 4 - Loreto-Mayna','061-575144','administracion@hafidmotos.com',10,'2024-09-25 09:43:22','admin'),
 (14,'http://www.lanelectronics.com.pe','tiendasoroverde@hotmail.com','103.118.70.84.122.107.102.78.99.72.102.108','Jr. Raymondi Nº 650 Ucayali - C.Portillo - Calleria - Pucallpa','Calleria - Coronel Portillo - Ucayali','Cel. 950015043',' ','',' ','BANCO              SOLES        DOLARES / BCP  CTA CTE      480-9290031-0-79     480-9827383-1-87 / BCP CCI  00248000929003107925   00248000982738318729 /','152-005-0000045',NULL,'943801820 / 992802222','Jr. Prospero N° 335 - Sector 4 - Loreto-Mayna','061-575144','administracion@hafidmotos.com',10,'2024-09-25 09:43:22','admin'),
 (15,'http://www.lanelectronics.com.pe','tiendasoroverde@hotmail.com','103.118.70.84.122.107.102.78.99.72.102.108','Jr. Raymondi Nº 650 Ucayali - C.Portillo - Calleria - Pucallpa','Calleria - Coronel Portillo - Ucayali','Cel. 950015043',' ','',' ','BANCO              SOLES        DOLARES / BCP  CTA CTE      480-9290031-0-79     480-9827383-1-87 / BCP CCI  00248000929003107925   00248000982738318729 /','152-005-0000045',NULL,'943801820 / 992802222','Jr. Prospero N° 335 - Sector 4 - Loreto - May','061-575144','administracion@hafidmotos.com',10,'2024-09-25 09:43:22','admin'),
 (16,'http://www.lanelectronics.com.pe','tiendasoroverde@hotmail.com','103.118.70.84.122.107.102.78.99.72.102.108','Jr. Raymondi Nº 650 Ucayali - C.Portillo - Calleria - Pucallpa','Calleria - Coronel Portillo - Ucayali','Cel. 950015043',' ','',' ','BANCO              SOLES        DOLARES / BCP  CTA CTE      480-9290031-0-79     480-9827383-1-87 / BCP CCI  00248000929003107925   00248000982738318729 /','152-005-0000045',NULL,'943801820 / 992802222','Jr. Prospero N° 335 - Sector 4 - Loreto - May','061-575144','administracion@hafidmotos.com',10,'2024-09-25 09:43:22','admin'),
 (17,'http://www.lanelectronics.com.pe','tiendasoroverde@hotmail.com','103.118.70.84.122.107.102.78.99.72.102.108','Jr. Raymondi Nº 650 Ucayali - C.Portillo - Calleria - Pucallpa','Calleria - Coronel Portillo - Ucayali','Cel. 950015043',' ','',' ','BANCO              SOLES        DOLARES / BCP  CTA CTE      480-9290031-0-79     480-9827383-1-87 / BCP CCI  00248000929003107925   00248000982738318729 /','152-005-0000045',NULL,'943801820 / 992802222','Jr. Prospero N° 335 - Sector 4 - Loreto - May','061-575144','administracion@hafidmotos.com',10,'2024-09-25 09:43:22','admin'),
 (18,'Web: http://www.lanelectronics.com.pe','tiendasoroverde@hotmail.com','103.118.70.84.122.107.102.78.99.72.102.108','Jr. Raymondi Nº 650 Ucayali - C.Portillo - Calleria - Pucallpa','Calleria - Coronel Portillo - Ucayali','Cel. 950015043',' ','',' ','BANCO              SOLES        DOLARES / BCP  CTA CTE      480-9290031-0-79     480-9827383-1-87 / BCP CCI  00248000929003107925   00248000982738318729 /','152-005-0000045',NULL,'943801820 / 992802222','Jr. Prospero N° 335 - Sector 4 - Loreto - May','061-575144','administracion@hafidmotos.com',10,'2024-09-25 09:43:22','admin'),
 (19,'http://www.lanelectronics.com.pe','tiendasoroverde@hotmail.com','103.118.70.84.122.107.102.78.99.72.102.108','Jr. Raymondi Nº 650 Ucayali - C.Portillo - Calleria - Pucallpa','Calleria - Coronel Portillo - Ucayali','Cel. 950015043',' ','',' ','BANCO              SOLES        DOLARES / BCP  CTA CTE      480-9290031-0-79     480-9827383-1-87 / BCP CCI  00248000929003107925   00248000982738318729 /','152-005-0000045',NULL,'943801820 / 992802222','Jr. Prospero N° 335 - Sector 4 - Loreto - May','061-575144','administracion@hafidmotos.com',10,'2024-09-25 09:43:22','admin'),
 (20,'http://www.lanelectronics.com.pe','tiendasoroverde@hotmail.com             Web: www.lanelectronics.com.pe','103.118.70.84.122.107.102.78.99.72.102.108','Jr. Raymondi Nº 650 Ucayali - C.Portillo - Calleria - Pucallpa','Calleria - Coronel Portillo - Ucayali','Cel. 950015043',' ','',' ','BANCO              SOLES        DOLARES / BCP  CTA CTE      480-9290031-0-79     480-9827383-1-87 / BCP CCI  00248000929003107925   00248000982738318729 /','152-005-0000045',NULL,'943801820 / 992802222','Jr. Prospero N° 335 - Sector 4 - Loreto - May','061-575144','administracion@hafidmotos.com',10,'2024-09-25 09:43:22','admin'),
 (21,'http://www.lanelectronics.com.pe','tiendasoroverde@hotmail.com             Web: www.lanelectronics.com.pe','103.118.70.84.122.107.102.78.99.72.102.108','Jr. Raymondi Nº 650 Ucayali - C.Portillo - Calleria - Pucallpa','Calleria - Coronel Portillo - Ucayali','Cel. 950015043-961658106',' ','',' ','BANCO              SOLES        DOLARES / BCP  CTA CTE      480-9290031-0-79     480-9827383-1-87 / BCP CCI  00248000929003107925   00248000982738318729 /','152-005-0000045',NULL,'943801820 / 992802222','Jr. Prospero N° 335 - Sector 4 - Loreto - May','061-575144','administracion@hafidmotos.com',10,'2024-09-25 09:43:22','admin'),
 (22,'http://www.lanelectronics.com.pe','tiendasoroverde@hotmail.com             Web: www.lanelectronics.com.pe','103.118.70.84.122.107.102.78.99.72.102.108','Jr. Raymondi Nº 650 Ucayali-C.Portillo-Calleria-Pucallpa','Calleria - Coronel Portillo - Ucayali','Cel. 950015043-961658106',' ','',' ','BANCO              SOLES        DOLARES / BCP  CTA CTE      480-9290031-0-79     480-9827383-1-87 / BCP CCI  00248000929003107925   00248000982738318729 /','152-005-0000045',NULL,'943801820 / 992802222','Jr. Prospero N° 335 - Sector 4 - Loreto-Mayna','061-575144','administracion@hafidmotos.com',10,'2024-09-25 09:43:22','admin'),
 (23,'http://www.lanelectronics.com.pe','tiendasoroverde@hotmail.com             Web: www.lanelectronics.com.pe','103.118.70.84.122.107.102.78.99.72.102.108','Jr. Raymondi Nº 650 Ucayali-C.Portillo-Calleria-Pucallpa','Calleria - Coronel Portillo - Ucayali','Cel. 961658106 - 950015043',' ','',' ','BANCO              SOLES        DOLARES / BCP  CTA CTE      480-9290031-0-79     480-9827383-1-87 / BCP CCI  00248000929003107925   00248000982738318729 /','152-005-0000045',NULL,'943801820 / 992802222','Jr. Prospero N° 335 - Sector 4 - Loreto-Mayna','061-575144','administracion@hafidmotos.com',10,'2024-09-25 09:43:22','admin');
/*!40000 ALTER TABLE `empresa_historial` ENABLE KEYS */;


--
-- Definition of table `empresa_proveedor`
--

DROP TABLE IF EXISTS `empresa_proveedor`;
CREATE TABLE `empresa_proveedor` (
  `idemp_prov` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `idempresa` int(10) unsigned NOT NULL,
  `idproveedor` int(10) unsigned NOT NULL,
  `estado` char(2) NOT NULL DEFAULT '1',
  `email` varchar(150) CHARACTER SET utf8 NOT NULL,
  PRIMARY KEY (`idemp_prov`),
  KEY `FK_empresa_proveedor_1` (`idempresa`),
  KEY `FK_empresa_proveedor_2` (`idproveedor`),
  CONSTRAINT `FK_empresa_proveedor_1` FOREIGN KEY (`idempresa`) REFERENCES `empresa` (`idempresa`),
  CONSTRAINT `FK_empresa_proveedor_2` FOREIGN KEY (`idproveedor`) REFERENCES `proveedores` (`idproveedor`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `empresa_proveedor`
--

/*!40000 ALTER TABLE `empresa_proveedor` DISABLE KEYS */;
/*!40000 ALTER TABLE `empresa_proveedor` ENABLE KEYS */;


--
-- Definition of table `guia_cab`
--

DROP TABLE IF EXISTS `guia_cab`;
CREATE TABLE `guia_cab` (
  `DocEntry` int(10) unsigned NOT NULL DEFAULT '0',
  `Fecha_Emision` datetime DEFAULT NULL,
  `TipoDoc` varchar(5) DEFAULT NULL,
  `NroDocumento` varchar(15) DEFAULT NULL,
  `NroDocumentoRef` varchar(50) DEFAULT NULL,
  `Razon_Social_Co` varchar(100) DEFAULT NULL,
  `RUC_Co` varchar(15) NOT NULL DEFAULT '',
  `Razon_Social_Desti` varchar(100) DEFAULT NULL,
  `RUC_Desti` varchar(15) DEFAULT NULL,
  `Razon_Social_Terce` varchar(100) DEFAULT NULL,
  `RUC_Terce` varchar(15) DEFAULT NULL,
  `DesMotTraslado` varchar(150) DEFAULT NULL,
  `IndiTransbordo` tinyint(1) DEFAULT NULL,
  `PesoBruto_Tot` decimal(12,3) DEFAULT NULL,
  `NumBienes_Tot` int(10) unsigned DEFAULT NULL,
  `UM_PesoBruto_Tot` varchar(5) DEFAULT NULL,
  `Tipo_Traslado` varchar(45) DEFAULT NULL,
  `FecIni_Traslado` datetime DEFAULT NULL,
  `Razon_Social_Transpo` varchar(100) DEFAULT NULL,
  `Ruc_Transpo` varchar(15) DEFAULT NULL,
  `DocIden_Condu` varchar(15) DEFAULT NULL,
  `TipoDoc_Condu` varchar(2) DEFAULT NULL,
  `Placa` varchar(10) DEFAULT NULL,
  `PPartida_GR` varchar(100) DEFAULT NULL,
  `Ubi_PPartida_GR` varchar(10) DEFAULT NULL,
  `PLlegada_GR` varchar(100) DEFAULT NULL,
  `Ubi_PLlegada_GR` varchar(10) DEFAULT NULL,
  `GenericoSTR1` varchar(500) DEFAULT NULL,
  `GenericoSTR2` varchar(500) DEFAULT NULL,
  `GenericoDec1` decimal(18,6) DEFAULT NULL,
  `GenericoDec2` decimal(18,6) DEFAULT NULL,
  `GenericoFec1` datetime DEFAULT NULL,
  `GenericoFec2` datetime DEFAULT NULL,
  `Objeto` varchar(5) NOT NULL,
  `Firma` text,
  `ValorResumen` text,
  `EstadoSunat` varchar(5) DEFAULT NULL,
  `T1_RucTransportista` varchar(45) DEFAULT NULL,
  `T1_RazonSocial` varchar(100) DEFAULT NULL,
  `T1_PuntoLlegada` varchar(150) DEFAULT NULL,
  `T1_Observacion` varchar(2000) DEFAULT NULL,
  `T2_PuntoPartida` varchar(150) DEFAULT NULL,
  `T2_RucTransportista` varchar(45) DEFAULT NULL,
  `T2_RazonSocial` varchar(100) DEFAULT NULL,
  `T2_PuntoLlegada` varchar(150) DEFAULT NULL,
  `T2_Observacion` varchar(2000) DEFAULT NULL,
  `T3_PuntoPartida` varchar(150) DEFAULT NULL,
  `T3_RucTransportista` varchar(45) DEFAULT NULL,
  `T3_RazonSocial` varchar(100) DEFAULT NULL,
  `T3_Observacion` varchar(2000) DEFAULT NULL,
  `Licencia_Condu` varchar(20) DEFAULT NULL,
  `Placa_Tolva` varchar(20) DEFAULT NULL,
  `Tipo_Bulto` varchar(50) DEFAULT NULL,
  `Nom_Conductor` varchar(250) DEFAULT NULL,
  `CDR` text,
  `RegistroMTC` varchar(20) DEFAULT NULL,
  `Contenedor` varchar(20) DEFAULT NULL,
  `Precinto` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`DocEntry`,`Objeto`,`RUC_Co`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `guia_cab`
--

/*!40000 ALTER TABLE `guia_cab` DISABLE KEYS */;
INSERT INTO `guia_cab` (`DocEntry`,`Fecha_Emision`,`TipoDoc`,`NroDocumento`,`NroDocumentoRef`,`Razon_Social_Co`,`RUC_Co`,`Razon_Social_Desti`,`RUC_Desti`,`Razon_Social_Terce`,`RUC_Terce`,`DesMotTraslado`,`IndiTransbordo`,`PesoBruto_Tot`,`NumBienes_Tot`,`UM_PesoBruto_Tot`,`Tipo_Traslado`,`FecIni_Traslado`,`Razon_Social_Transpo`,`Ruc_Transpo`,`DocIden_Condu`,`TipoDoc_Condu`,`Placa`,`PPartida_GR`,`Ubi_PPartida_GR`,`PLlegada_GR`,`Ubi_PLlegada_GR`,`GenericoSTR1`,`GenericoSTR2`,`GenericoDec1`,`GenericoDec2`,`GenericoFec1`,`GenericoFec2`,`Objeto`,`Firma`,`ValorResumen`,`EstadoSunat`,`T1_RucTransportista`,`T1_RazonSocial`,`T1_PuntoLlegada`,`T1_Observacion`,`T2_PuntoPartida`,`T2_RucTransportista`,`T2_RazonSocial`,`T2_PuntoLlegada`,`T2_Observacion`,`T3_PuntoPartida`,`T3_RucTransportista`,`T3_RazonSocial`,`T3_Observacion`,`Licencia_Condu`,`Placa_Tolva`,`Tipo_Bulto`,`Nom_Conductor`,`CDR`,`RegistroMTC`,`Contenedor`,`Precinto`) VALUES 
 (1,'2024-09-24 00:00:00','09','TI01-00000001','-','LAN ELECTRONICS PERU S.A.C.','20607856428','FLORES MOZOMBITE BERITA','10480264474','','','VENTA',0,'14.000',4,'KGM','Publico','2024-09-24 00:00:00','','','-','0','-','SIN DEFINIR','250101','SAN ALEJANDRO UCAYALI/PADRE ABAD/IRAZOLA','250101','01 - F001-00000001','','0.000000','0.000000','2024-09-24 00:00:00','2024-09-24 00:00:00','15','S7HJbJ1o76pT1bK7tjI77r277onGs5O9wgje5T0DqkPkdNS4BmPS/7JXbRv19OWeg8IFfPJT8Y0CEzeF413wTuvb5RpK7sPIoLmba7lcSBmIMnueVTB95wNj+H2PG197p/8bm8QGQB06jIsGV55i8+t8dCXY0zt4QFFVjS6ewWLreJmPVgRAPU94DGLUP2Pvo5Nq+QzYLTa9ILKs+0z/f1Sq50GHxD37HbzQdTVxOMy6Pry92/LdWGQXg4nAUTGICxdFHvKSfU2KKGL7v7w4Do768h+msN7YnXwCi7gMqS/PindBzvf4V2IuddPNAtE8KYylGN0adYhlhegLMroA6w==','S7HJbJ1o76pT1bK7tjI77r277onGs5O9wgje5T0DqkPkdNS4BmPS/7JXbRv19OWeg8IFfPJT8Y0CEzeF413wTuvb5RpK7sPIoLmba7lcSBmIMnueVTB95wNj+H2PG197p/8bm8QGQB06jIsGV55i8+t8dCXY0zt4QFFVjS6ewWLreJmPVgRAPU94DGLUP2Pvo5Nq+QzYLTa9ILKs+0z/f1Sq50GHxD37HbzQdTVxOMy6Pry92/LdWGQXg4nAUTGICxdFHvKSfU2KKGL7v7w4Do768h+msN7YnXwCi7gMqS/PindBzvf4V2IuddPNAtE8KYylGN0adYhlhegLMroA6w==','0','','','','','','','','SAN ALEJANDRO UCAYALI/PADRE ABAD/IRAZOLA','','','','','LAN','','','','','https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=8UNrXqz2F2ob7BJk573xJDShbcUn6wuwHrXjAfyWLqtu14sneM0nrPfoFEC9ltfTi2K/sOOtpNIZk2rd3EdMWQ==',NULL,' ',''),
 (1,'2024-09-28 00:00:00','09','TI01-00000002','-','LAN ELECTRONICS PERU S.A.C.','20607856428','LAN ELECTRONICS PERU S.A.C','20607856428','','','TRASLADO ENTRE ESTABLECIMIENTOS DE UNA MISMA EMPRESA',0,'525.000',70,'KGM','Publico','2024-09-28 00:00:00','TRANSPORTES FLUVIAL LA FATIMA E.I.R.L.','20607558656','-','0','-','JR. ANTONIO RAIMONDI 650  CALLERIA-CORONEL PORTILLO-UCAYALI','250101','JR. PROSPERO NRO. 335 LORETO - MAYNAS - IQUITOS','160101','','','0.000000','0.000000','2024-09-28 00:00:00','2024-09-28 00:00:00','67','S7HJbJ1o76pT1bK7tjI77r277onGs5O9wgje5T0DqkPkdNS4BmPS/7JXbRv19OWeg8IFfPJT8Y0CEzeF413wTuvb5RpK7sPIoLmba7lcSBmIMnueVTB95wNj+H2PG197p/8bm8QGQB06jIsGV55i8+t8dCXY0zt4QFFVjS6ewWLreJmPVgRAPU94DGLUP2Pvo5Nq+QzYLTa9ILKs+0z/f1Sq50GHxD37HbzQdTVxOMy6Pry92/LdWGQXg4nAUTGICxdFHvKSfU2KKGL7v7w4Do768h+msN7YnXwCi7gMqS/PindBzvf4V2IuddPNAtE8KYylGN0adYhlhegLMroA6w==','S7HJbJ1o76pT1bK7tjI77r277onGs5O9wgje5T0DqkPkdNS4BmPS/7JXbRv19OWeg8IFfPJT8Y0CEzeF413wTuvb5RpK7sPIoLmba7lcSBmIMnueVTB95wNj+H2PG197p/8bm8QGQB06jIsGV55i8+t8dCXY0zt4QFFVjS6ewWLreJmPVgRAPU94DGLUP2Pvo5Nq+QzYLTa9ILKs+0z/f1Sq50GHxD37HbzQdTVxOMy6Pry92/LdWGQXg4nAUTGICxdFHvKSfU2KKGL7v7w4Do768h+msN7YnXwCi7gMqS/PindBzvf4V2IuddPNAtE8KYylGN0adYhlhegLMroA6w==','0','','','','','','','','','','','','','LAN','','','','','https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=8UNrXqz2F2ob7BJk573xJKsFgG3/6ymTtQN3XsrpWui7Ye1rWYJDwkiFV7/ipRvNImVNB2ZHEU6ZlCJ9xF9JSJ2t2iTCWhCOYjxl0eC0sD4=',NULL,' ',''),
 (2,'2024-10-01 00:00:00','09','TV01-00000001','-','LAN ELECTRONICS PERU S.A.C.','20607856428','PARDO AGREDA ARTURO','21553877','','','VENTA',0,'15.000',4,'KGM','Publico','2024-10-01 00:00:00','','','-','0','-','JR. RAIMONDI 650 URB. CERCADO DE PUCALLPA CALLERIA-CORONEL PORTILLO-UCAYALI','250101','CANA DE EDEN RIO NEGRO - SATIPO','120607','03 - B001-00000011','','0.000000','0.000000','2024-10-01 00:00:00','2024-10-01 00:00:00','15','S7HJbJ1o76pT1bK7tjI77r277onGs5O9wgje5T0DqkPkdNS4BmPS/7JXbRv19OWeg8IFfPJT8Y0CEzeF413wTuvb5RpK7sPIoLmba7lcSBmIMnueVTB95wNj+H2PG197p/8bm8QGQB06jIsGV55i8+t8dCXY0zt4QFFVjS6ewWLreJmPVgRAPU94DGLUP2Pvo5Nq+QzYLTa9ILKs+0z/f1Sq50GHxD37HbzQdTVxOMy6Pry92/LdWGQXg4nAUTGICxdFHvKSfU2KKGL7v7w4Do768h+msN7YnXwCi7gMqS/PindBzvf4V2IuddPNAtE8KYylGN0adYhlhegLMroA6w==','S7HJbJ1o76pT1bK7tjI77r277onGs5O9wgje5T0DqkPkdNS4BmPS/7JXbRv19OWeg8IFfPJT8Y0CEzeF413wTuvb5RpK7sPIoLmba7lcSBmIMnueVTB95wNj+H2PG197p/8bm8QGQB06jIsGV55i8+t8dCXY0zt4QFFVjS6ewWLreJmPVgRAPU94DGLUP2Pvo5Nq+QzYLTa9ILKs+0z/f1Sq50GHxD37HbzQdTVxOMy6Pry92/LdWGQXg4nAUTGICxdFHvKSfU2KKGL7v7w4Do768h+msN7YnXwCi7gMqS/PindBzvf4V2IuddPNAtE8KYylGN0adYhlhegLMroA6w==','0','','','','','','','','CANA DE EDEN JUNIN/SATIPO/RIO NEGRO','','','','','RAF','','','','','https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=8UNrXqz2F2ob7BJk573xJNXTljY0ygVLRNMHz2E0jX3QrCbOxnQ25zP+IvZZf1DPEbhjH0g2qJK34h0/0S15XQ==',NULL,' ',''),
 (3,'2024-10-03 00:00:00','09','TV01-00000002','-','LAN ELECTRONICS PERU S.A.C.','20607856428','DE LA CRUZ CARHUALLANQUI TEOFILO RUDBYN','10201200259','','','VENTA',0,'16.000',4,'KGM','Publico','2024-10-03 00:00:00','','','-','0','-','JR. ANTONIO RAIMONDI NRO. 650 UCAYALI - CORONEL PORTILLO - CALLERIA','250101','SATIPO JUNIN/SATIPO/SATIPO','120601','01 - F001-00000012','','0.000000','0.000000','2024-10-03 00:00:00','2024-10-03 00:00:00','15','joFw6gFH6O2Is5Puf2RWpQr/C0rFNiO5JrK9p1X/og59Om67M0BvSCDLisuzn3LRegPDdB6NfCv0ldaWMBnGINATzAZUSaCCwGjuimAinGockyCWkq0WPxSWzUBK3WH0V4/xcD0O0uoBBM+RDi06bRAGQU9xQI4zM1mAXecBcQmMEjgW/9gMf8q9uBXoI8QDd589zCbyD+tOL2uXOKrt9rBnLYQHgRXOEM8CUOU6D/bA9k60dVrujzi0YjwBka6EwnmahLk7r63YSmKOpYAzru7rM62m4Y3ByYy9rbL8+d+37eboiJ4iEekUnLOBP62XL6+zthktZmEDxn8/LFJw2g==','joFw6gFH6O2Is5Puf2RWpQr/C0rFNiO5JrK9p1X/og59Om67M0BvSCDLisuzn3LRegPDdB6NfCv0ldaWMBnGINATzAZUSaCCwGjuimAinGockyCWkq0WPxSWzUBK3WH0V4/xcD0O0uoBBM+RDi06bRAGQU9xQI4zM1mAXecBcQmMEjgW/9gMf8q9uBXoI8QDd589zCbyD+tOL2uXOKrt9rBnLYQHgRXOEM8CUOU6D/bA9k60dVrujzi0YjwBka6EwnmahLk7r63YSmKOpYAzru7rM62m4Y3ByYy9rbL8+d+37eboiJ4iEekUnLOBP62XL6+zthktZmEDxn8/LFJw2g==','0','','','','','','','','SATIPO JUNIN/SATIPO/SATIPO','','','','','LAN','','','','','https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=8UNrXqz2F2ob7BJk573xJNeUa1Kg/w9gIaZBUOCXACjZ7E1rC4hdq0bqfjRd1kP5UAG46I81CRJH98ES7K9AKQ==','-',' ',''),
 (4,'2024-10-03 00:00:00','09','TV01-00000003','-','LAN ELECTRONICS PERU S.A.C.','20607856428','LAZO MOTORS EMPRESA INDIVIDUAL DE RESPOSABILIDAD LIMITADA','20609594625','','','VENTA',0,'30.000',8,'KGM','Privado','2024-10-03 00:00:00','TIENDAS ORO VERDE SOCIEDAD ANONIMA CERRADA','20393376229','42988521','1','CAF929','JR. ANTONIO RAIMONDI NRO. 650 UCAYALI - CORONEL PORTILLO - CALLERIA','250101','LT. 3 MZ. F ASC. CATALEYA JUNIN/SATIPO/PANGOA','120606','01 - F001-00000013','','0.000000','0.000000','2024-10-03 00:00:00','2024-10-03 00:00:00','15','S7HJbJ1o76pT1bK7tjI77r277onGs5O9wgje5T0DqkPkdNS4BmPS/7JXbRv19OWeg8IFfPJT8Y0CEzeF413wTuvb5RpK7sPIoLmba7lcSBmIMnueVTB95wNj+H2PG197p/8bm8QGQB06jIsGV55i8+t8dCXY0zt4QFFVjS6ewWLreJmPVgRAPU94DGLUP2Pvo5Nq+QzYLTa9ILKs+0z/f1Sq50GHxD37HbzQdTVxOMy6Pry92/LdWGQXg4nAUTGICxdFHvKSfU2KKGL7v7w4Do768h+msN7YnXwCi7gMqS/PindBzvf4V2IuddPNAtE8KYylGN0adYhlhegLMroA6w==','S7HJbJ1o76pT1bK7tjI77r277onGs5O9wgje5T0DqkPkdNS4BmPS/7JXbRv19OWeg8IFfPJT8Y0CEzeF413wTuvb5RpK7sPIoLmba7lcSBmIMnueVTB95wNj+H2PG197p/8bm8QGQB06jIsGV55i8+t8dCXY0zt4QFFVjS6ewWLreJmPVgRAPU94DGLUP2Pvo5Nq+QzYLTa9ILKs+0z/f1Sq50GHxD37HbzQdTVxOMy6Pry92/LdWGQXg4nAUTGICxdFHvKSfU2KKGL7v7w4Do768h+msN7YnXwCi7gMqS/PindBzvf4V2IuddPNAtE8KYylGN0adYhlhegLMroA6w==','0','','','','','','','','LT. 3 MZ. F ASC. CATALEYA JUNIN/SATIPO/PANGOA','','','','','RAF','Y42988521','','','PINEDA ROJAS LESTER ALEXANDER','https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=8UNrXqz2F2ob7BJk573xJC0lHFfs+b+xhrQLIM1AewGCQ5ai42aNLDbKpyxTANMv/ET6GU/dgBGUTpPEkLXZn1uEe7B/xEMJcD1zU82lGiI=',NULL,' ',''),
 (5,'2024-10-04 00:00:00','09','TV01-00000004','-','LAN ELECTRONICS PERU S.A.C.','20607856428','CORPORACION RAMOS CALDERON S.A.C.','20612989924','','','VENTA',0,'30.000',8,'KGM','Publico','2024-10-04 00:00:00','TIENDAS ORO VERDE SOCIEDAD ANONIMA CERRADA','20393376229','42988521','1','CAF929','JR. ANTONIO RAIMONDI NRO. 650 UCAYALI - CORONEL PORTILLO - CALLERIA','250101','AV. AV. MARGINAL LT. 07 MZ. A OTR. AV. MARGINAL MZA A INT L JUNIN/CHANCHAMAYO/PERENE','120302','01 - F001-00000015','','0.000000','0.000000','2024-10-04 00:00:00','2024-10-04 00:00:00','15','S7HJbJ1o76pT1bK7tjI77r277onGs5O9wgje5T0DqkPkdNS4BmPS/7JXbRv19OWeg8IFfPJT8Y0CEzeF413wTuvb5RpK7sPIoLmba7lcSBmIMnueVTB95wNj+H2PG197p/8bm8QGQB06jIsGV55i8+t8dCXY0zt4QFFVjS6ewWLreJmPVgRAPU94DGLUP2Pvo5Nq+QzYLTa9ILKs+0z/f1Sq50GHxD37HbzQdTVxOMy6Pry92/LdWGQXg4nAUTGICxdFHvKSfU2KKGL7v7w4Do768h+msN7YnXwCi7gMqS/PindBzvf4V2IuddPNAtE8KYylGN0adYhlhegLMroA6w==','S7HJbJ1o76pT1bK7tjI77r277onGs5O9wgje5T0DqkPkdNS4BmPS/7JXbRv19OWeg8IFfPJT8Y0CEzeF413wTuvb5RpK7sPIoLmba7lcSBmIMnueVTB95wNj+H2PG197p/8bm8QGQB06jIsGV55i8+t8dCXY0zt4QFFVjS6ewWLreJmPVgRAPU94DGLUP2Pvo5Nq+QzYLTa9ILKs+0z/f1Sq50GHxD37HbzQdTVxOMy6Pry92/LdWGQXg4nAUTGICxdFHvKSfU2KKGL7v7w4Do768h+msN7YnXwCi7gMqS/PindBzvf4V2IuddPNAtE8KYylGN0adYhlhegLMroA6w==','0','','','','','','','','AV. AV. MARGINAL LT. 07 MZ. A OTR. AV. MARGINAL MZA A INT L JUNIN/CHANCHAMAYO/PERENE','','','','','RAF','Y42988521','','','PINEDA ROJAS LESTER ALEXANDER','https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=8UNrXqz2F2ob7BJk573xJIR30Yw+N2Pxrjqm9yh72yoS2L3ODsia23Qzg/qPHg4gaq4IqJ5ww18Y4EUb3abniVdXykqDhVEWD7pa8SLw5EE=',NULL,' ',''),
 (6,'2024-10-05 00:00:00','09','TV01-00000005','-','LAN ELECTRONICS PERU S.A.C.','20607856428','HUAYLLANI PARI DELFINA','10198429185','','','VENTA',0,'15.000',4,'KGM','Publico','2024-10-05 00:00:00','TIENDAS ORO VERDE SOCIEDAD ANONIMA CERRADA','20393376229','-','0','-','JR. ANTONIO RAIMONDI NRO. 650','250101','SATIPO JUNIN/SATIPO/SATIPO','120601','01 - F001-00000016','','0.000000','0.000000','2024-10-05 00:00:00','2024-10-05 00:00:00','15','mOkxAGNX7xl5xZCgGshQCyls91vritlY2foyfI1fPWC/exKIiCJ5OKe9d+1GwD9xt+cRRiV+smpvfh6lAouIXOJuq4VdA7TKw9fxBbDpzb5EvNA0P3KCIUMlMLtrkInsE2x6Vdi20wmxImvvcuUYVirI8oJGc5QGd21bgb58Fu4sKM2HZMyy6YKFlmmEhNXUcPfggQ3NpL7HI3iL1h1hzENZozBEIyavZPjB8MGyLmxMOOywZyaBWDU1/yEhY8KISy7SIEUwNfelzSiuG082MUCkpUE282VooX7fEJEQxdTQUgpu+Hv02PWDXykcStmVbHjzzqLshQqsz+c1FfivcQ==','mOkxAGNX7xl5xZCgGshQCyls91vritlY2foyfI1fPWC/exKIiCJ5OKe9d+1GwD9xt+cRRiV+smpvfh6lAouIXOJuq4VdA7TKw9fxBbDpzb5EvNA0P3KCIUMlMLtrkInsE2x6Vdi20wmxImvvcuUYVirI8oJGc5QGd21bgb58Fu4sKM2HZMyy6YKFlmmEhNXUcPfggQ3NpL7HI3iL1h1hzENZozBEIyavZPjB8MGyLmxMOOywZyaBWDU1/yEhY8KISy7SIEUwNfelzSiuG082MUCkpUE282VooX7fEJEQxdTQUgpu+Hv02PWDXykcStmVbHjzzqLshQqsz+c1FfivcQ==','0','','','JUNIN/SATIPO/SATIPO','SE ENTREGO CORRECTAMENTE TODOS LOS PRODUCTOS','UCAYALI/CORONEL PORTILLO/CALLERIA','','','SATIPO JUNIN/SATIPO/SATIPO','','','','','RAF','','','','','https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=8UNrXqz2F2ob7BJk573xJI+s+7Ad93Bdu2K8zcDrmu5jaPVGBKP4C73uOrIgUlWp+yfJUj7GGRpp2x/KI48TQldXykqDhVEWD7pa8SLw5EE=','-',' ',''),
 (7,'2024-10-05 00:00:00','09','TV01-00000006','-','LAN ELECTRONICS PERU S.A.C.','20607856428','HUANQUIS HUAYLLANI KELLY KARIN','10415326888','','','VENTA',0,'15.000',4,'KGM','Publico','2024-10-05 00:00:00','TIENDAS ORO VERDE SOCIEDAD ANONIMA CERRADA','20393376229','42988521','1','CAF929','JR. ANTONIO RAIMONDI NRO. 650','250101','MAZAMARI','120604','01 - F001-00000017','','0.000000','0.000000','2024-10-05 00:00:00','2024-10-05 00:00:00','15','zmwnpglxIf+YnHfWJqLm8Ljo3qprUBomLz7F7SwO6vnwEdxVhZPp1zTcuI4xlmmDn2YIVvPCrUExc+EPNXMi54HF4Y92Cgf2d3H0MzYyvnWqapXic9oMo37rk4cBvZS9Wc+P7862AH1VpYcIe1TQnifS+xtYJRKDoqYH25R3nMdZzO+mduR1OSAGh8Qh1pE/UP7JGZ3vimK7m7LtdamRiTJjVRozNHh4wmvf3DJx83DVSWhkaoe3qYFkhQkj9K1JPYc66nj3rpN1LrU8VYxbYbuq2HCI9OnH0qjHJqpET5YFAMr6yzP+kpLEXgNhMsmEt7sQf93cAUzqeItTRNwESg==','zmwnpglxIf+YnHfWJqLm8Ljo3qprUBomLz7F7SwO6vnwEdxVhZPp1zTcuI4xlmmDn2YIVvPCrUExc+EPNXMi54HF4Y92Cgf2d3H0MzYyvnWqapXic9oMo37rk4cBvZS9Wc+P7862AH1VpYcIe1TQnifS+xtYJRKDoqYH25R3nMdZzO+mduR1OSAGh8Qh1pE/UP7JGZ3vimK7m7LtdamRiTJjVRozNHh4wmvf3DJx83DVSWhkaoe3qYFkhQkj9K1JPYc66nj3rpN1LrU8VYxbYbuq2HCI9OnH0qjHJqpET5YFAMr6yzP+kpLEXgNhMsmEt7sQf93cAUzqeItTRNwESg==','0','','','JUNIN/SATIPO/MAZAMARI','SE ENTREGO CORRECTAMENTE','UCAYALI/CORONEL PORTILLO/CALLERIA','','','MAZAMARI JUNIN/SATIPO/MAZAMARI','','','','','RAF','Y42988521','','','PINEDA ROJAS LESTER ALEXANDER','https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=8UNrXqz2F2ob7BJk573xJOL6m7DquqLgaA4sgdkdwM99dpCSE3wnPrmKWqCeFF3P+yfJUj7GGRpp2x/KI48TQldXykqDhVEWD7pa8SLw5EE=','-',' ',''),
 (8,'2024-10-07 00:00:00','09','TV01-00000007','-','LAN ELECTRONICS PERU S.A.C.','20607856428','ROMO HUAYLLANI GIOVANNA','10411303468','','','VENTA',0,'30.000',8,'KGM','Publico','2024-10-07 00:00:00','TIENDAS ORO VERDE SOCIEDAD ANONIMA CERRADA','20393376229','42988521','1','CAF929','JR. ANTONIO RAIMONDI NRO. 650','250101','SATIPO','120601','01 - F001-00000018','','0.000000','0.000000','2024-10-07 00:00:00','2024-10-07 00:00:00','15','1GON442shR9D6gtRXyWiP38bFYe4kaXBJo3XXYQYJg5KuktHKcAXMcpcPUlWg7e9/Lz+zEFoHXiyu65Pz14vgD75UW0PLHmCH1lqcoOE5vLWnHObIbCXoVbPc2xe72K2d1GfEPaM6xZfImBsAyksrUjIROHNn9nnWJU32frF/gmu4v9Z9+a6P55fC41RpZoRjiaCB46UV9hzcxH9lgwCO/K4ShF84ClKjCd+CLnditIZ3u/qrWPltJbR8KlYLnEIZVBMzVNO/7zCFLJRjyYqufBX6UtirW17Z9ISaIovivWvSEyRbDIN5uYjfRTc9mGeakT212A5iV+uJ77KoYyH4g==','1GON442shR9D6gtRXyWiP38bFYe4kaXBJo3XXYQYJg5KuktHKcAXMcpcPUlWg7e9/Lz+zEFoHXiyu65Pz14vgD75UW0PLHmCH1lqcoOE5vLWnHObIbCXoVbPc2xe72K2d1GfEPaM6xZfImBsAyksrUjIROHNn9nnWJU32frF/gmu4v9Z9+a6P55fC41RpZoRjiaCB46UV9hzcxH9lgwCO/K4ShF84ClKjCd+CLnditIZ3u/qrWPltJbR8KlYLnEIZVBMzVNO/7zCFLJRjyYqufBX6UtirW17Z9ISaIovivWvSEyRbDIN5uYjfRTc9mGeakT212A5iV+uJ77KoYyH4g==','0','','','JUNIN/SATIPO/SATIPO','SE ENTREGO TODOS LOS BULTOS EN PERFECTO ESTADO','UCAYALI/CORONEL PORTILLO/CALLERIA','','','SATIPO JUNIN/SATIPO/SATIPO','','','','','RAF','Y42988521','','','PINEDA ROJAS LESTER ALEXANDER','https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=8UNrXqz2F2ob7BJk573xJGbhTCqVZ0Em6OMTJuES2EpsDrGcM50bq7H0QlrHiCq8aq4IqJ5ww18Y4EUb3abniVdXykqDhVEWD7pa8SLw5EE=','-',' ',''),
 (9,'2024-10-07 00:00:00','09','TV01-00000008','-','LAN ELECTRONICS PERU S.A.C.','20607856428','WCM IMPORT SOCIEDAD COMERCIAL DE RESPONSABILIDAD LIMITADA','20608217771','','','VENTA',0,'75.000',20,'KGM','Publico','2024-10-07 00:00:00','','','-','0','-','JR. ANTONIO RAIMONDI NRO. 650','250101','OTR. AVENIDA 8 DE SETIEMBRE LT. 20 MZ. CH OTR. ASOCIACION DE VIVIENDA 08','120302','01 - F001-00000019','','0.000000','0.000000','2024-10-07 00:00:00','2024-10-07 00:00:00','15','QSuCq4Z6jx+Og4EzQN/Q3y15l+ep3EfK37bpjS7imT4Ob5Z84SIzzkXheiJnLUCM0wMU1LBtomwIdzkF1VvamXCdBNbL0FVWpf62I4Gx0TJTpDp8luwoe+d1eMf87SR+HSOKbrc1hdHKAmslJW6IpgQjEk+UNFriW3Izz14+w1T/loTwKMG6Rb+m9ovUt5eB2aFznxoFbXoB2stUqdYkfkIpUAqJwySSsg3qGdsMG9XY3YHdpH/puyeSYJGfiQjI18olrzCqDA/n1tNRibxOiBWiZTElKxRa8+lkXfmelEyUsdAZJKUwPvvM3JBEsTOLzGBk3m3Xd7Wukb7ed+cmcg==','QSuCq4Z6jx+Og4EzQN/Q3y15l+ep3EfK37bpjS7imT4Ob5Z84SIzzkXheiJnLUCM0wMU1LBtomwIdzkF1VvamXCdBNbL0FVWpf62I4Gx0TJTpDp8luwoe+d1eMf87SR+HSOKbrc1hdHKAmslJW6IpgQjEk+UNFriW3Izz14+w1T/loTwKMG6Rb+m9ovUt5eB2aFznxoFbXoB2stUqdYkfkIpUAqJwySSsg3qGdsMG9XY3YHdpH/puyeSYJGfiQjI18olrzCqDA/n1tNRibxOiBWiZTElKxRa8+lkXfmelEyUsdAZJKUwPvvM3JBEsTOLzGBk3m3Xd7Wukb7ed+cmcg==','0','','','JUNIN/CHANCHAMAYO/PERENE','SE ENTREGO CORRECTAMENTE LOS PRODUCTOS','UCAYALI/CORONEL PORTILLO/CALLERIA','','','OTR. AVENIDA 8 DE SETIEMBRE LT. 20 MZ. CH OTR. ASOCIACION DE VIVIENDA 08 - JUNÍN CHANCHAMAYO PERENE JUNIN/CHANCHAMAYO/PICHANAQUI','','','','','RAF','','','','','https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=8UNrXqz2F2ob7BJk573xJIHgStR/sj3jB4t7tN73Bbp1rxeHDn16fzsOdkogtofVHSM1oivJQ75p8kB7+Uo1RA==','-',' ',''),
 (10,'2024-10-07 00:00:00','09','TV01-00000009','-','LAN ELECTRONICS PERU S.A.C.','20607856428','LEON DELA CRUZ ELVIRA','10435900025','','','VENTA',0,'30.000',8,'KGM','Publico','2024-10-07 00:00:00','TIENDAS ORO VERDE SOCIEDAD ANONIMA CERRADA','20393376229','42988521','1','CAF929','JR. ANTONIO RAIMONDI NRO. 650','250101','JR 8 DE OCTUBRE BAR BARRIO BUENOS AIRES MZA 15 LOTE 01','250101','01 - F001-00000020','','0.000000','0.000000','2024-10-07 00:00:00','2024-10-07 00:00:00','15','O+VUzKaKsGXz6xffrEesEw0FoRK6IweSyr9gnSZyqvBkyhprXrQc5GP3o9d3lMeaMGHbyeNlYsuMzNcZUxJdJWRr+P+goGqKPvy8AOHud7oRaAk20c4xYC5/wXEkoOteJ97xo1li0JEf7m3CH8eg6XEfjaQ7079UbzM92REFKWzQEy4juMIDmYVkYHO9tdO693u4o0OVLkXKlhKMlGOtBLXU0r8zOffv6j/a07FePp4IT0N1mKftMuLrYFdtKWPKRuPWNHwHdwvO/dsYGmjDNgAbX3glRViYlJsWthRuFTO39Rw3061YA6jpVWnjhhUHGLxI5dApSEOGwZ+579dIlA==','O+VUzKaKsGXz6xffrEesEw0FoRK6IweSyr9gnSZyqvBkyhprXrQc5GP3o9d3lMeaMGHbyeNlYsuMzNcZUxJdJWRr+P+goGqKPvy8AOHud7oRaAk20c4xYC5/wXEkoOteJ97xo1li0JEf7m3CH8eg6XEfjaQ7079UbzM92REFKWzQEy4juMIDmYVkYHO9tdO693u4o0OVLkXKlhKMlGOtBLXU0r8zOffv6j/a07FePp4IT0N1mKftMuLrYFdtKWPKRuPWNHwHdwvO/dsYGmjDNgAbX3glRViYlJsWthRuFTO39Rw3061YA6jpVWnjhhUHGLxI5dApSEOGwZ+579dIlA==','0','','','UCAYALI/CORONEL PORTILLO/CALLERIA','-','UCAYALI/CORONEL PORTILLO/CALLERIA','','','JR 8 DE OCTUBRE BAR BARRIO BUENOS AIRES MZA 15 LOTE 01 UCAYALI/CORONEL PORTILLO/CALLERIA','','','','','RAF','Y42988521','','','PINEDA ROJAS LESTER ALEXANDER','https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=8UNrXqz2F2ob7BJk573xJH0ImfW8KhDXt/tR7aD5FPWDHl0iptO3rR61DJjXRQiHaq4IqJ5ww18Y4EUb3abniVdXykqDhVEWD7pa8SLw5EE=','-',' ',''),
 (12,'2024-10-17 00:00:00','09','TV01-00000010','-','LAN ELECTRONICS PERU S.A.C.','20607856428','CURO ARRIETA JUAN CARLOS','10413616137','','','VENTA',0,'30.000',8,'KGM','Publico','2024-10-17 00:00:00','TIENDAS ORO VERDE SOCIEDAD ANONIMA CERRADA','20393376229','42988521','1','CAF929','JR. ANTONIO RAIMONDI NRO. 650','250101','CAMPO VERDE UCAYALI/PADRE ABAD/PADRE ABAD','250301','01 - F001-00000021','','0.000000','0.000000','2024-10-17 00:00:00','2024-10-17 00:00:00','15','fu1T4s0I1xH9qwBKv4AgXkLhgug4C+7NAdukP6g6+kLOv1b2mGoU5MTAwkvw14TVjzXSbu6IRRt+1Glz2eEPeJ1JkOgW4GABezRFOoIJY5tELyuCk59aU5RGlogPOsHZ/yzr2SKIkukPVaE5WrTavnjI6Yb7lmcTg1pboOE676xz1f5uHcjqxdYfHaxRCv3ntN+cwmNZp6hn92x057Kk8C51LATX1gQzCYQYsNZgXAJnkk2UqYtQvaD0dxkbNAOOYdvz7xQsrhmUOkh+Ya22te3MUH1dxzuVIads6OBAgcutqoo587p8dXN2i1GbDNy9Bms42Swmm/f1sLcsXeXWGQ==','fu1T4s0I1xH9qwBKv4AgXkLhgug4C+7NAdukP6g6+kLOv1b2mGoU5MTAwkvw14TVjzXSbu6IRRt+1Glz2eEPeJ1JkOgW4GABezRFOoIJY5tELyuCk59aU5RGlogPOsHZ/yzr2SKIkukPVaE5WrTavnjI6Yb7lmcTg1pboOE676xz1f5uHcjqxdYfHaxRCv3ntN+cwmNZp6hn92x057Kk8C51LATX1gQzCYQYsNZgXAJnkk2UqYtQvaD0dxkbNAOOYdvz7xQsrhmUOkh+Ya22te3MUH1dxzuVIads6OBAgcutqoo587p8dXN2i1GbDNy9Bms42Swmm/f1sLcsXeXWGQ==','0','','','UCAYALI/PADRE ABAD/PADRE ABAD','-','UCAYALI/CORONEL PORTILLO/CALLERIA','','','CAMPO VERDE UCAYALI/PADRE ABAD/PADRE ABAD','','','','','RAF','Y42988521','','','PINEDA ROJAS LESTER ALEXANDER','https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=8UNrXqz2F2ob7BJk573xJD6q+maUojqtigVqjLzlA2VjKAWQU2mbPfWx+K0EENI9aq4IqJ5ww18Y4EUb3abniVdXykqDhVEWD7pa8SLw5EE=','-',' ',''),
 (13,'2024-10-17 00:00:00','09','TV01-00000011','-','LAN ELECTRONICS PERU S.A.C.','20607856428','HILARIO SOTO DALMACIA MERCEDES','10078423353','','','VENTA',0,'22.500',6,'KGM','Publico','2024-10-17 00:00:00','','','-','0','-','JR. ANTONIO RAIMONDI NRO. 650','250101','NESHUYA UCAYALI/PADRE ABAD/NESHUYA','250304','01 - F001-00000022','','0.000000','0.000000','2024-10-17 00:00:00','2024-10-17 00:00:00','15','G3ggOgb4lf9BfQSCnwiYWhB094gp8Ij/M9PrPUUqSfz1AUja6dX/nzdAbkUKJnji2/sF4FAOIuCLSl2uuKPjFvoGDp+3B0ig8mXfPetVzFK9REMQQ1ZXnLtvzZMxWapD3QOFitQJbB5zjsGRGlhuV9B7002e/5tvbjmoG+FIMeqnXqAD3f0en+2QfpNvSpgIUC+dxl1bzuxM5XAIcUThSzOeG/52v5tIEzyG1SNrUugWpFP8btrOJdSDfQUT8eHwBL7n8+JT3F2Rcjtv27G078v9vFsXwIZRzrF6Ck1auWmOUMmXLtY/26mxCdJnFGV74aMKA+61RXE8vMldBEtCZw==','G3ggOgb4lf9BfQSCnwiYWhB094gp8Ij/M9PrPUUqSfz1AUja6dX/nzdAbkUKJnji2/sF4FAOIuCLSl2uuKPjFvoGDp+3B0ig8mXfPetVzFK9REMQQ1ZXnLtvzZMxWapD3QOFitQJbB5zjsGRGlhuV9B7002e/5tvbjmoG+FIMeqnXqAD3f0en+2QfpNvSpgIUC+dxl1bzuxM5XAIcUThSzOeG/52v5tIEzyG1SNrUugWpFP8btrOJdSDfQUT8eHwBL7n8+JT3F2Rcjtv27G078v9vFsXwIZRzrF6Ck1auWmOUMmXLtY/26mxCdJnFGV74aMKA+61RXE8vMldBEtCZw==','0','','','UCAYALI/PADRE ABAD/NESHUYA','SE ENTRGO CORRECTAMENTE','UCAYALI/CORONEL PORTILLO/CALLERIA','','','NESHUYA UCAYALI/PADRE ABAD/NESHUYA','','','','','RAF','','','','','https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=8UNrXqz2F2ob7BJk573xJJu6zJTDeqNYCXbF6XEGEZiXXVKLTgLs9zQafeIDClm7sB6rZ4c/UyHRZPyiUQdhCw==','-',' ',''),
 (14,'2024-10-17 00:00:00','09','TV01-00000012','-','LAN ELECTRONICS PERU S.A.C.','20607856428','CONTRERAS MEGO KATTIA KAREM','10453884266','','','VENTA',0,'75.000',20,'KGM','Publico','2024-10-17 00:00:00','','','-','0','-','JR. ANTONIO RAIMONDI NRO. 650','250101','CALLE VICTOR TANTE ATALAYA RAYMONDI UCAYALI/ATALAYA/RAYMONDI','250201','01 - F001-00000023','','0.000000','0.000000','2024-10-17 00:00:00','2024-10-17 00:00:00','15','FnfTS+zxX7mxSuzGLukS7W+ZVugyhOWOQRprXOB+CARRXDK+citOlV6W7m3eUnDV2bMwKtRVnDD9yekEXNdO0J3WOrzF0ecS4hAtNp5KupIrBAZFdwK453vHfnkp1e+ia6MhEexM6GlYkoassEMv6Xd4cTD9XONPsJyY1cwArC5kT9Ht/z1IJZ8xdavC/Oe/FUDM9UPGpwMPyDinPLiDyi+dzn98m1VwQg0gc8Hh+nW6iSuNUfc07s32c4ljkllb2kOjawsEMM9zdLj84O4tvRXSVMk6PviPUnCrXtUBui8ZpBEI4aw5VqaRG8OStldYCje4mZw0KiUX/9CNj3E1EA==','FnfTS+zxX7mxSuzGLukS7W+ZVugyhOWOQRprXOB+CARRXDK+citOlV6W7m3eUnDV2bMwKtRVnDD9yekEXNdO0J3WOrzF0ecS4hAtNp5KupIrBAZFdwK453vHfnkp1e+ia6MhEexM6GlYkoassEMv6Xd4cTD9XONPsJyY1cwArC5kT9Ht/z1IJZ8xdavC/Oe/FUDM9UPGpwMPyDinPLiDyi+dzn98m1VwQg0gc8Hh+nW6iSuNUfc07s32c4ljkllb2kOjawsEMM9zdLj84O4tvRXSVMk6PviPUnCrXtUBui8ZpBEI4aw5VqaRG8OStldYCje4mZw0KiUX/9CNj3E1EA==','0','','','UCAYALI/ATALAYA/RAYMONDI','-','UCAYALI/CORONEL PORTILLO/CALLERIA','','','CALLE VICTOR TANTE ATALAYA RAYMONDI UCAYALI/ATALAYA/RAYMONDI','','','','','RAF','','','','','https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=8UNrXqz2F2ob7BJk573xJIECJ6qWzQRmS9wvJQ1y7pSMEFeI4HQ0i1cQ362U4tVHHSM1oivJQ75p8kB7+Uo1RA==','-',' ',''),
 (15,'2024-10-17 00:00:00','09','TV01-00000013','-','LAN ELECTRONICS PERU S.A.C.','20607856428','SERVICIOS GENERALES CHAVELO EMPRESA INDIVIDUAL DE RESPONSABILIDAD LIMITADA','20611940719','','','VENTA',0,'30.000',8,'KGM','Publico','2024-10-17 00:00:00','','','-','0','-','JR. ANTONIO RAIMONDI NRO. 650','250304','AV. NESHUYA LT. 8 MZ. 18 ---- J.V. BUENOS AIRES - UCAYALI/PADRE ABAD/NESHUYA','250304','01 - F001-00000024','','0.000000','0.000000','2024-10-17 00:00:00','2024-10-17 00:00:00','15','PuyVD0kVA9mxQgaUASfCOFm3sLKNgIulHMabI0ttTk5ntEcr/YQQuClQYXGlFj8Def+eSkR7lUrNmQQMrlEX6WYUO8zqCx/tPdcrjx+xfygXnEKVaQ9osX67r9fN2al1m/GpyqMRU8gWBE7vED7zsbfaRqyZd6mxq1ww+RM4ZX03HiFtNPDP9cjkA1+/e7nVKglzf+MzBLGrSPK+fcp5cMhMrnfLxvyyFAPPaaCrdjr6lvMHbPPGrLGVF0CGLOdO7A/SP66o2JGqvQMRmS43/Xnj3+N8/+GeWQVxy71Hw3oZqmOk6z0dM5Y7A2P94aKE1TjtOWTDfkWN7PT7T34byQ==','PuyVD0kVA9mxQgaUASfCOFm3sLKNgIulHMabI0ttTk5ntEcr/YQQuClQYXGlFj8Def+eSkR7lUrNmQQMrlEX6WYUO8zqCx/tPdcrjx+xfygXnEKVaQ9osX67r9fN2al1m/GpyqMRU8gWBE7vED7zsbfaRqyZd6mxq1ww+RM4ZX03HiFtNPDP9cjkA1+/e7nVKglzf+MzBLGrSPK+fcp5cMhMrnfLxvyyFAPPaaCrdjr6lvMHbPPGrLGVF0CGLOdO7A/SP66o2JGqvQMRmS43/Xnj3+N8/+GeWQVxy71Hw3oZqmOk6z0dM5Y7A2P94aKE1TjtOWTDfkWN7PT7T34byQ==','0','','','UCAYALI/PADRE ABAD/NESHUYA','-','UCAYALI/PADRE ABAD/NESHUYA','','','AV. NESHUYA LT. 8 MZ. 18 ---- J.V. BUENOS AIRES - UCAYALI/PADRE ABAD/NESHUYA','','','','','RAF','','','','','https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=8UNrXqz2F2ob7BJk573xJB9sO/PT3LabiEY7PXVLvEEEB5Sbaq3TpRwH3UQnpDxw31fo1E12G03vX8GyO0XZgA==','-',' ',''),
 (16,'2024-10-17 00:00:00','09','TV01-00000014','-','LAN ELECTRONICS PERU S.A.C.','20607856428','HILARIO SOTO DALMACIA MERCEDES','10078423353','','','VENTA',0,'7.500',2,'KGM','Publico','2024-10-17 00:00:00','','','-','0','-','JR. ANTONIO RAIMONDI NRO. 650','250101','NESHUYA UCAYALI/PADRE ABAD/NESHUYA','250304','01 - F001-00000025','','0.000000','0.000000','2024-10-17 00:00:00','2024-10-17 00:00:00','15','mZtK19Fn0AybOdZN+my87PXni3n3hBeT9TiQfOJJ8DaS86IJH15OC6jLZblzyxVCcYO7PA6AmT93FoXehuq4pJ/oXKq3yg0vX8dnd1VHjVQdzS0lYIWk4ySUYZVC+YovTIhVZUbme5qRk+GBKdpZneAAoe0RI3vwwgyYd4RcPQyYuBIwI4hwClJNoF7F35H7Byz55MmtvRucynoHTQR/mecVgWqxu+oWV6dlMFZE/ovZ8jDyXvG7yFv1+DCpVTXAj41tkJOqjnf/xOMSj4IHX+cyHNtNSyFZouGSaGoIhWt2BIVeRsrhqm0kuL1SAEjAdmCGPzMF1rn8zHRQobK96A==','mZtK19Fn0AybOdZN+my87PXni3n3hBeT9TiQfOJJ8DaS86IJH15OC6jLZblzyxVCcYO7PA6AmT93FoXehuq4pJ/oXKq3yg0vX8dnd1VHjVQdzS0lYIWk4ySUYZVC+YovTIhVZUbme5qRk+GBKdpZneAAoe0RI3vwwgyYd4RcPQyYuBIwI4hwClJNoF7F35H7Byz55MmtvRucynoHTQR/mecVgWqxu+oWV6dlMFZE/ovZ8jDyXvG7yFv1+DCpVTXAj41tkJOqjnf/xOMSj4IHX+cyHNtNSyFZouGSaGoIhWt2BIVeRsrhqm0kuL1SAEjAdmCGPzMF1rn8zHRQobK96A==','0','','','UCAYALI/PADRE ABAD/NESHUYA','-','UCAYALI/CORONEL PORTILLO/CALLERIA','','','NESHUYA UCAYALI/PADRE ABAD/NESHUYA','','','','','RAF','','','','','https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=8UNrXqz2F2ob7BJk573xJJdcorlg86F443YeO9d7o52XXVKLTgLs9zQafeIDClm7BkEzRKNq6R/I44H5Wajyyg==','-',' ',''),
 (17,'2024-10-17 00:00:00','09','TV01-00000015','-','LAN ELECTRONICS PERU S.A.C.','20607856428','QUISPE SULLCA REYNER EDUARDO','10701085944','','','VENTA',0,'45.000',12,'KGM','Publico','2024-10-17 00:00:00','','','-','0','-','JR. ANTONIO RAIMONDI NRO. 650','250101','HUIPOCA UCAYALI/PADRE ABAD/IRAZOL','250302','01 - F001-00000027','','0.000000','0.000000','2024-10-17 00:00:00','2024-10-17 00:00:00','15','1gG9Qz6zVe39Oa7OFWo1LwCwuENCrnDmvYK3n/UJ5NHXZriHVToZXOQ3MwvB7BhoLrc+D7mhwMkB7Y02x4rRZ3ly2Gr6ci7667uGNPS9e6Cc32V18mo+T6Q33vOHxEgebCbW00j0mMKAgOJnyjPmBhFT00JZrMNtf8gN4yNsghpX9l8coW8mO/eNXTnPVLAu9VfkuWbT3Crz42EC5/sqRo4zLJXBva2r1Uip16W70YEKXyuey3zz1o52i1m1iSltqSLH5etqHTBOpffuYjUdg2XI7hP0W1e/JQ+hwhj4DZDbS/1UaHoGVjOZSN3J/nKeDFr7kNYVibmoFu9N+1lV1g==','1gG9Qz6zVe39Oa7OFWo1LwCwuENCrnDmvYK3n/UJ5NHXZriHVToZXOQ3MwvB7BhoLrc+D7mhwMkB7Y02x4rRZ3ly2Gr6ci7667uGNPS9e6Cc32V18mo+T6Q33vOHxEgebCbW00j0mMKAgOJnyjPmBhFT00JZrMNtf8gN4yNsghpX9l8coW8mO/eNXTnPVLAu9VfkuWbT3Crz42EC5/sqRo4zLJXBva2r1Uip16W70YEKXyuey3zz1o52i1m1iSltqSLH5etqHTBOpffuYjUdg2XI7hP0W1e/JQ+hwhj4DZDbS/1UaHoGVjOZSN3J/nKeDFr7kNYVibmoFu9N+1lV1g==','0','','','UCAYALI/PADRE ABAD/IRAZOLA','-','UCAYALI/CORONEL PORTILLO/CALLERIA','','','HUIPOCA UCAYALI/PADRE ABAD/IRAZOLA','','','','','RAF','','','','','https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=8UNrXqz2F2ob7BJk573xJJ/c6qWaz4z4HtHsmQbggt86/y1DF4yAOE6iP2hN02+6c57pPvrOo9W83i7y2/95Tg==','-',' ',''),
 (18,'2024-10-17 00:00:00','09','TV01-00000016','-','LAN ELECTRONICS PERU S.A.C.','20607856428','INVERSIONES GAMARRITA E.I.R.L.','20611676213','','','VENTA',0,'15.000',4,'KGM','Publico','2024-10-17 00:00:00','','','-','0','-','JR. ANTONIO RAIMONDI NRO. 650','250101','JR. MODESTO PEREZ NRO. 0 URB. NUEVO PROGRESO SAN MARTIN/TOCACHE/NUEVO PROGRESO','221001','01 - F001-00000026','','0.000000','0.000000','2024-10-17 00:00:00','2024-10-17 00:00:00','15','PPaOUkqq/Y+ujNiTRqiVtXdAv0XT5vE6IHx9QR5pUN5KnRIoom1Gkf5XnvZRPYExkdV0iXshfx8wqxO+fD7YNqbFk9Q+QeWX0sEUzrUi8RYQ8vwGtIq56Aejm4qRIjY4Xs3lKAt+MUWbHUlaPfbwmbEemuuepfUMSmBAdsqYQFIe0aCjLFJ2reGTRHK34Ct4o2DNs9wZo2ZsRo6mKkkttre4YrAwwurxQiKNt5+m/Al7MueRVWAUAHNleqS2WFrj2MJWP0kmOBIKW6LbDWHingiHYc5CfQkQNQvqwuQ7vrdcUbbHRDs+T723V4+zbNLVZkATnwXqLjT0BvO2oDl/qA==','PPaOUkqq/Y+ujNiTRqiVtXdAv0XT5vE6IHx9QR5pUN5KnRIoom1Gkf5XnvZRPYExkdV0iXshfx8wqxO+fD7YNqbFk9Q+QeWX0sEUzrUi8RYQ8vwGtIq56Aejm4qRIjY4Xs3lKAt+MUWbHUlaPfbwmbEemuuepfUMSmBAdsqYQFIe0aCjLFJ2reGTRHK34Ct4o2DNs9wZo2ZsRo6mKkkttre4YrAwwurxQiKNt5+m/Al7MueRVWAUAHNleqS2WFrj2MJWP0kmOBIKW6LbDWHingiHYc5CfQkQNQvqwuQ7vrdcUbbHRDs+T723V4+zbNLVZkATnwXqLjT0BvO2oDl/qA==','0','','','SAN MARTIN/TOCACHE/TOCACHE','-','UCAYALI/CORONEL PORTILLO/CALLERIA','','','JR. MODESTO PEREZ NRO. 0 URB. NUEVO PROGRESO SAN MARTIN/TOCACHE/NUEVO PROGRESO','','','','','RAF','','','','','https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=8UNrXqz2F2ob7BJk573xJK5B8uSCZ+mfo7cbqJrmJB8MECQmR9z+hyalYeam0zBvNNQgYaPPRM4Y9jXjYWPg7w==','-',' ',''),
 (19,'2024-10-19 00:00:00','09','TV02-00000001','-','LAN ELECTRONICS PERU S.A.C.','20607856428','INVERSIONES IRIS R & T SRL','20600712277','','','VENTA',0,'75.000',30,'KGM','Publico','2024-10-19 00:00:00','','','-','0','-','JR. PROSPERO NRO. 335','160101','CAL. REQUENA NRO. 249 LORETO/MAYNAS/IQUITOS','160101','01 - F002-00000001','','0.000000','0.000000','2024-10-19 00:00:00','2024-10-19 00:00:00','15','Mooae9BZeRYMFhhwMov5svCm4ayT1mjnTID0dzzTZCYyufaVkfuMdl44jcD/d9kBDmHLnWL9KbROTXJUubV3hsGrgY04jon8MrgyUrbW29LjQd+low2vgEMO0H8AKgDU2L8TffIXbVHCXzgdIwddi2e4MaNjxFmT7RlUnwLB9fJaxwYQazAlTQfcvZK7wAGkggSLOuDxEwImzHkJeOao1TajCiddedBVAulMX4tM+Kx5/Yp/bEN27nEcDxbiLLsRWti6YY4mU2SkLSrn/eEoVgf6pHlQ6RNG2S6itHhJ8V4pGe8CD6RwlifcgeI53Qj3fNgy2ffS4+hONBBrCIBJnQ==','Mooae9BZeRYMFhhwMov5svCm4ayT1mjnTID0dzzTZCYyufaVkfuMdl44jcD/d9kBDmHLnWL9KbROTXJUubV3hsGrgY04jon8MrgyUrbW29LjQd+low2vgEMO0H8AKgDU2L8TffIXbVHCXzgdIwddi2e4MaNjxFmT7RlUnwLB9fJaxwYQazAlTQfcvZK7wAGkggSLOuDxEwImzHkJeOao1TajCiddedBVAulMX4tM+Kx5/Yp/bEN27nEcDxbiLLsRWti6YY4mU2SkLSrn/eEoVgf6pHlQ6RNG2S6itHhJ8V4pGe8CD6RwlifcgeI53Qj3fNgy2ffS4+hONBBrCIBJnQ==','0','','','LORETO/MAYNAS/IQUITOS','SE ENTREGO TODO OK','LORETO/MAYNAS/IQUITOS','','','CAL. REQUENA NRO. 249 LORETO/MAYNAS/IQUITOS','','','','','RAF','','','','','https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=8UNrXqz2F2ob7BJk573xJPfjBH25ESYSmHtsYXeldRsf3qXEl41GvPo+95izXd1dHSM1oivJQ75p8kB7+Uo1RA==','-',' ',''),
 (20,'2024-10-19 00:00:00','09','TV01-00000017','-','LAN ELECTRONICS PERU S.A.C.','20607856428','CABRERA CARBAJAL ANALIZ GABY','10705006356','','','VENTA',0,'37.500',11,'KGM','Publico','2024-10-19 00:00:00','','','-','0','-','JR. ANTONIO RAIMONDI NRO. 650','250101','TERMINAL TERRESTRE PUCALLPA','250101','01 - F001-00000028','','0.000000','0.000000','2024-10-19 00:00:00','2024-10-19 00:00:00','15','r2qQXADMbkOxWiS2obDVTc9zuPksklVJ8BU+UVXGjRRzmg0ewG3u3HKPt5NlZ45Uv2/i79CTgJMCuOYbDqxe+bTbfz+TLXoz8fNRr5FPsePiNf/cRrEzfu2+WXFLwFWC3kiQtgxpP5oMiwh7keXoiFiCptVfq3JKt4HLQApbFJyzliJIbbQJw9W/6TRKWm2PIcf2tcfSDNk5P6hRnQ6RST5b48qPKKnsmPDGyVxee/B02r6sTKOHKZ/q5+BmmnIPAnT+iPOKDtXSt4wu+31nnblKrGEe15nhy9FshiGInn6Lj7GlNnRu2RXk3aMGbpjy84dE5fAUAcrzugRqgkSAGA==','r2qQXADMbkOxWiS2obDVTc9zuPksklVJ8BU+UVXGjRRzmg0ewG3u3HKPt5NlZ45Uv2/i79CTgJMCuOYbDqxe+bTbfz+TLXoz8fNRr5FPsePiNf/cRrEzfu2+WXFLwFWC3kiQtgxpP5oMiwh7keXoiFiCptVfq3JKt4HLQApbFJyzliJIbbQJw9W/6TRKWm2PIcf2tcfSDNk5P6hRnQ6RST5b48qPKKnsmPDGyVxee/B02r6sTKOHKZ/q5+BmmnIPAnT+iPOKDtXSt4wu+31nnblKrGEe15nhy9FshiGInn6Lj7GlNnRu2RXk3aMGbpjy84dE5fAUAcrzugRqgkSAGA==','0','','','UCAYALI/CORONEL PORTILLO/CALLERIA','-','UCAYALI/CORONEL PORTILLO/CALLERIA','','','PUERTO BERMUDES PASCO/OXAPAMPA/PUERTO BERMUDEZ','','','','','RAF','','','','','https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=8UNrXqz2F2ob7BJk573xJIXAblOpVLL089U4I36wfuT6h0f/ZrnRmGZ1EPubzwfCl56CGH9xyu2kQVOqU3kmqQ==','-',' ',''),
 (21,'2024-10-19 00:00:00','09','TV02-00000002','-','LAN ELECTRONICS PERU S.A.C.','20607856428','LANCHA MAGIPO BENITA','10482016150','','','VENTA',0,'75.000',30,'KGM','Publico','2024-10-19 00:00:00','','','-','0','-','JR. PROSPERO NRO. 335','160101','CALLE REQUENA 321 LORETO/MAYNAS/IQUITOS','160101','01 - F002-00000002','','0.000000','0.000000','2024-10-20 00:00:00','2024-10-20 00:00:00','15','iZq1i6GwgkloE/TA73jTYXOPx+Xq+rrge7U6mwVUyAGdVkB5ilAUI1WlOVsgbziCAWOof//sa4VEh3bL5+wUXMCmh/XOWWNtietuz1gGRKKHou22USSWNIFUx3ZJot4vxnIkfdm9svwM38KEyz8mGFitHx15jEWvIUQRzRQo5by2Ilx92UjFMTBrx7DmqZFHnYbOtLRbTCTQFzQGgb5k9E/2ARPIJSK3WXMFBWl1j40xMVdO0zapUtnQMbk7/XOLTD6yiKIPnfvrHx+Q/kpwJw47uJVnJO4r0fuR+U/CLoviGDxtYZAHqutP87TNyVLqxs7ewiVdHeDYgh/u4b+BZA==','iZq1i6GwgkloE/TA73jTYXOPx+Xq+rrge7U6mwVUyAGdVkB5ilAUI1WlOVsgbziCAWOof//sa4VEh3bL5+wUXMCmh/XOWWNtietuz1gGRKKHou22USSWNIFUx3ZJot4vxnIkfdm9svwM38KEyz8mGFitHx15jEWvIUQRzRQo5by2Ilx92UjFMTBrx7DmqZFHnYbOtLRbTCTQFzQGgb5k9E/2ARPIJSK3WXMFBWl1j40xMVdO0zapUtnQMbk7/XOLTD6yiKIPnfvrHx+Q/kpwJw47uJVnJO4r0fuR+U/CLoviGDxtYZAHqutP87TNyVLqxs7ewiVdHeDYgh/u4b+BZA==','0','','','LORETO/MAYNAS/IQUITOS','-','LORETO/MAYNAS/IQUITOS','','','CALLE REQUENA 321 LORETO/MAYNAS/IQUITOS','','','','','RAF','','','','','https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=8UNrXqz2F2ob7BJk573xJP/3auieCZVvA1fJ8wlVomWtenTLOSaU4m3b3sPBwdeqHSM1oivJQ75p8kB7+Uo1RA==','-',' ',''),
 (22,'2024-10-19 00:00:00','09','TV02-00000003','-','LAN ELECTRONICS PERU S.A.C.','20607856428','HERRAMIENTAS AGROINDUSTRIALES JAFID S.A.C.','20567134335','','','VENTA',0,'150.000',60,'KGM','Publico','2024-10-19 00:00:00','','','-','0','-','JR. PROSPERO NRO. 335','160101','CAL. REQUENA NRO. 214 - LORETO MAYNAS IQUITOS LORETO/MAYNAS/IQUITOS','160101','01 - F002-00000003','','0.000000','0.000000','2024-10-20 00:00:00','2024-10-20 00:00:00','15','uakV1tN2SUASEWRfnf7vf/BlOx+PBeiJ9gAJntGTauHV66173gHoIjJn5P+dxXtjSwSyF3vovq30dgREEI2AlTK9jn9FxN699FS39HMipoovvSWz9UbpnpH2Ffr/xnxlSfNPtZQ9IDZFsAU4VnYyorA3rDTuOjdTe68tVbPg2hm1SM3+rnuHTMjXuVF4dgqDuFHv3nRtaVaT0qIgCqdu+ocfJ+0TiOTrKcrdC7ngRSen0pjWkqqDo7+O6+/89YCx89h9GF90BTIzuxa5loiEkUN/DtPIKaMmueoiqQ2d/hdny74lrZW2G8oNZ8X/bejKtsgTRKPqAxbKsbHCec5V7g==','uakV1tN2SUASEWRfnf7vf/BlOx+PBeiJ9gAJntGTauHV66173gHoIjJn5P+dxXtjSwSyF3vovq30dgREEI2AlTK9jn9FxN699FS39HMipoovvSWz9UbpnpH2Ffr/xnxlSfNPtZQ9IDZFsAU4VnYyorA3rDTuOjdTe68tVbPg2hm1SM3+rnuHTMjXuVF4dgqDuFHv3nRtaVaT0qIgCqdu+ocfJ+0TiOTrKcrdC7ngRSen0pjWkqqDo7+O6+/89YCx89h9GF90BTIzuxa5loiEkUN/DtPIKaMmueoiqQ2d/hdny74lrZW2G8oNZ8X/bejKtsgTRKPqAxbKsbHCec5V7g==','0','','','LORETO/MAYNAS/IQUITOS','-','LORETO/MAYNAS/IQUITOS','','','CAL. REQUENA NRO. 214 - LORETO MAYNAS IQUITOS LORETO/MAYNAS/IQUITOS','','','','','RAF','','','','','https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=8UNrXqz2F2ob7BJk573xJO81IXLZ1PF2yNVDKSqEeRBjaokoSkEjBXPVzVq5YDUhfSrpXC//trnF2LJMH8saLg==','-',' ',''),
 (23,'2024-10-24 00:00:00','09','TV01-00000018','-','LAN ELECTRONICS PERU S.A.C.','20607856428','QUISPE CHOQUECONDO DIONISIO','05869060','','','VENTA',0,'15.000',4,'KGM','Publico','2024-10-24 00:00:00','','','-','0','-','JR. ANTONIO RAIMONDI NRO. 650','250101','INAHUAYA LORETO/UCAYALI/INAHUAYA','160602','03 - B001-00000013','','0.000000','0.000000','2024-10-25 00:00:00','2024-10-25 00:00:00','15','OroYFa2xzQwbkbweIMELXqcJ/qZz8A7c/PBEJfCj/GNbR0uok0SZKguHw9o7f/80jU/dIF69i175vsCVBrDxYMstaCnp8fsbFOfceCa7BX00q0cG6iPQUpU2xndFs9BB+dKMoMT5TNb1JeX038B+KOnOHHo9Gfa9jRj2m1fbBmSK2zUvRQ7S+5dm2RC8Fq/HwivrBF1vRHkmhhghp3y8l1NDK52CQj7BO0E7f20m5MN26Y+LLUOg6yn5W4FgaNAKp5Tub8CiMrNjAFvbCNVrqDrMaLMr+H3NvcFEBEckerDENZEI7rFiQSXuLTqrqzIJD283R19iPvwHBfLngo1X6w==','OroYFa2xzQwbkbweIMELXqcJ/qZz8A7c/PBEJfCj/GNbR0uok0SZKguHw9o7f/80jU/dIF69i175vsCVBrDxYMstaCnp8fsbFOfceCa7BX00q0cG6iPQUpU2xndFs9BB+dKMoMT5TNb1JeX038B+KOnOHHo9Gfa9jRj2m1fbBmSK2zUvRQ7S+5dm2RC8Fq/HwivrBF1vRHkmhhghp3y8l1NDK52CQj7BO0E7f20m5MN26Y+LLUOg6yn5W4FgaNAKp5Tub8CiMrNjAFvbCNVrqDrMaLMr+H3NvcFEBEckerDENZEI7rFiQSXuLTqrqzIJD283R19iPvwHBfLngo1X6w==','0','','','LORETO/UCAYALI/INAHUAYA','-','UCAYALI/CORONEL PORTILLO/CALLERIA','','','INAHUAYA LORETO/UCAYALI/INAHUAYA','','','','','RAF','','','','','https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=8UNrXqz2F2ob7BJk573xJHPKBvlbUciyoJKhEAgHbzeh5bhz+ZKgLBpG7EeJe+tXEbhjH0g2qJK34h0/0S15XQ==','-',' ',''),
 (24,'2024-10-25 00:00:00','09','TV02-00000004','-','LAN ELECTRONICS PERU S.A.C.','20607856428','HERRAMIENTAS AGROINDUSTRIALES JAFID S.A.C.','20567134335','','','VENTA',0,'225.000',90,'KGM','Publico','2024-10-25 00:00:00','','','-','0','-','JR. PROSPERO NRO. 335','160101','CAL. REQUENA NRO. 214 - LORETO MAYNAS IQUITOS LORETO/MAYNAS/IQUITOS','160101','01 - F002-00000004','','0.000000','0.000000','2024-10-25 00:00:00','2024-10-25 00:00:00','15','gcUepfkvH+e18tWTm2cVmhqR/ihUHeqas/tWjZyUOinmlDWxFoBEC5MDljmCXdek56Y2m7qt28E+m0cli1hLmQdeyx6RLKlxFiz+aSDxXEBOFLBXcLCJxNRNtGdGEaCU8hY6vzieKeekmF8edeaezDBUYcg/00HTrweZUMGYT0AqKgpPRIethSM8DQNVZskM+sn8fL7yenX8p4An2EUfGEAy2RVkVHXJckta3ctMbKkErsYjTkm9dJmF/nyjkwKvauvgU+/r5dSRAwZPSCCX1VShDPqgNVZ1BlKttmmsww8Z1mk6C3GXM2KZHE1Wu1kOlv7e0H43G9v8jOMZYHkWYg==','gcUepfkvH+e18tWTm2cVmhqR/ihUHeqas/tWjZyUOinmlDWxFoBEC5MDljmCXdek56Y2m7qt28E+m0cli1hLmQdeyx6RLKlxFiz+aSDxXEBOFLBXcLCJxNRNtGdGEaCU8hY6vzieKeekmF8edeaezDBUYcg/00HTrweZUMGYT0AqKgpPRIethSM8DQNVZskM+sn8fL7yenX8p4An2EUfGEAy2RVkVHXJckta3ctMbKkErsYjTkm9dJmF/nyjkwKvauvgU+/r5dSRAwZPSCCX1VShDPqgNVZ1BlKttmmsww8Z1mk6C3GXM2KZHE1Wu1kOlv7e0H43G9v8jOMZYHkWYg==','0','','','LORETO/MAYNAS/IQUITOS','-','LORETO/MAYNAS/IQUITOS','','','CAL. REQUENA NRO. 214 - LORETO MAYNAS IQUITOS LORETO/MAYNAS/IQUITOS','','','','','RAF','','','','','https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=8UNrXqz2F2ob7BJk573xJJ6kXUuDKxh+V15X99uAJ4pjaokoSkEjBXPVzVq5YDUh3OEqidqDm1GlUx4fut9UXg==','-',' ',''),
 (25,'2024-10-25 00:00:00','09','TV01-00000019','-','LAN ELECTRONICS PERU S.A.C.','20607856428','D & Y INVERSIONES QKENDALL SOCIEDAD ANONIMA CERRADA','20612938751','','','VENTA',0,'75.000',20,'KGM','Publico','2024-10-25 00:00:00','','','-','0','-','JR. ANTONIO RAIMONDI NRO. 650','250101','PJ. ALEJANDRO CALDERON NRO. SN - PASCO/OXAPAMPA/PUERTO BERMUDEZ','190306','01 - F001-00000032','','0.000000','0.000000','2024-10-25 00:00:00','2024-10-25 00:00:00','15','cYIRiU6Bf6MNA4BgAauFKWEuPw9FmRn1L5DpDA5HV92jblLF6E7/pkyrZAZG8nu9KrypscUl2kurkFZahfZ4khcqhU8K5kGD+DSojAJjM1S3rwb0U6vYpeEBSo1za4mJ3uSDNGPRaXxMvUZ2ji9m2YJ8fNInijesIJDMdx7vQHmefNw/4q/x07dPqTF41gs5z6xRJ+/EcTFRZEXpOVZ/gS9Dmtu7TdpIfORuprqHx3IJp4+Sg5N0QzE67sfAWjTnFKC+ltGKaF2bbRC7fyOaC/pkCHsBSsRnCQmvqs1GSGPLhm14cvDEWXU2Jry5u3eU024Uf3iaFaM/dk2D3fUi9A==','cYIRiU6Bf6MNA4BgAauFKWEuPw9FmRn1L5DpDA5HV92jblLF6E7/pkyrZAZG8nu9KrypscUl2kurkFZahfZ4khcqhU8K5kGD+DSojAJjM1S3rwb0U6vYpeEBSo1za4mJ3uSDNGPRaXxMvUZ2ji9m2YJ8fNInijesIJDMdx7vQHmefNw/4q/x07dPqTF41gs5z6xRJ+/EcTFRZEXpOVZ/gS9Dmtu7TdpIfORuprqHx3IJp4+Sg5N0QzE67sfAWjTnFKC+ltGKaF2bbRC7fyOaC/pkCHsBSsRnCQmvqs1GSGPLhm14cvDEWXU2Jry5u3eU024Uf3iaFaM/dk2D3fUi9A==','0','','','PASCO/OXAPAMPA/PUERTO BERMUDEZ','-','UCAYALI/CORONEL PORTILLO/CALLERIA','','','PJ. ALEJANDRO CALDERON NRO. SN - PASCO/OXAPAMPA/PUERTO BERMUDEZ','','','','','RAF','','','','','https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=8UNrXqz2F2ob7BJk573xJLyaSEiWr06gj11xNsDddgZDgfGFsf7d4AhfUqjWTcIjHSM1oivJQ75p8kB7+Uo1RA==','-',' ',''),
 (26,'2024-10-28 00:00:00','09','TV01-00000020','-','LAN ELECTRONICS PERU S.A.C.','20607856428','TORRES MENDOZA ADRIA','00076750','','','VENTA',0,'7.500',2,'KGM','Publico','2024-10-28 00:00:00','','','-','0','-','JR. ANTONIO RAIMONDI NRO. 650','250101','NUESTRA SENORA DE GUADALUPE MAK LT2 UCAYALI/CORONEL PORTILLO/MANANTAY','250107','03 - B001-00000014','','0.000000','0.000000','2024-11-02 00:00:00','2024-11-02 00:00:00','15','vy8yT+9KIjSkwtHXfSmNdx5HrFXCqyAcLCw/qx5J9hSpIDRmjf/0+/rGXPHO0pEJtWSjVlvFCeDj/6u/bbhh1KK25PMKFDpNqtrrP1KLgZNJHSwUcUjgzt3SRdEXVnF7WFxWFC6MGw42zNA0mOojnKtdnIJg268y82TRNHgEDrPzIfo6s8pq6NBXeq8LBa6zJkZb/cRZ8lefhGobmNBSDUuuF+1KtYdR+UFdMktqHhUHtNGqDs9ALdCaVLFggim1KhJuP6Z8YVaen0tE/WKGpBIlYWrm2wdxe2u4GJ1QQqKL7pcC2SrEeRmsxxJ0dq/ioCa/SC3EfBdloHT7aYXOqg==','vy8yT+9KIjSkwtHXfSmNdx5HrFXCqyAcLCw/qx5J9hSpIDRmjf/0+/rGXPHO0pEJtWSjVlvFCeDj/6u/bbhh1KK25PMKFDpNqtrrP1KLgZNJHSwUcUjgzt3SRdEXVnF7WFxWFC6MGw42zNA0mOojnKtdnIJg268y82TRNHgEDrPzIfo6s8pq6NBXeq8LBa6zJkZb/cRZ8lefhGobmNBSDUuuF+1KtYdR+UFdMktqHhUHtNGqDs9ALdCaVLFggim1KhJuP6Z8YVaen0tE/WKGpBIlYWrm2wdxe2u4GJ1QQqKL7pcC2SrEeRmsxxJ0dq/ioCa/SC3EfBdloHT7aYXOqg==','98','','','UCAYALI/CORONEL PORTILLO/MANANTAY','-','UCAYALI/CORONEL PORTILLO/CALLERIA','','','NUESTRA SEÑORA DE GUADALUPE MAK LT2 UCAYALI/CORONEL PORTILLO/MANANTAY','','','','','RAF','','','','',NULL,'-',' ',''),
 (27,'2024-10-29 00:00:00','09','TV01-00000021','-','LAN ELECTRONICS PERU S.A.C.','20607856428','VILLA CRISOSTOMO IRMA VICTORIA','10427799421','','','VENTA',0,'37.500',10,'KGM','Publico','2024-10-29 00:00:00','','','-','0','-','JR. ANTONIO RAIMONDI NRO. 650','250101','PICHANAQUI JUNIN/CHANCHAMAYO/PERENE','120302','01 - F001-00000033','','0.000000','0.000000','2024-10-30 00:00:00','2024-10-30 00:00:00','15','ipux9LI4z42PFItUNDdU89EMGhl0OCX/NYbBq407jXgWQDjn6Aw6IyDerWZTGT57HKlt61QLk2vZ3/cjlpRw0iyifY39E9gMiij+oVeYHhldikP5HVn8DlEolBbNYqRFiOQNhCvCJWgJX5AV2JyOGagXhnKA4ELpbuoxA8cLOU7Em9MbG8UmhCJ++MpsLmPf8tJWukjuYFAQcn6rOMtQiqVbPFGMbzxPJOT2x3fjw/rKHJi3/rXOiUy3jgyW0dYisBnLx6CDO9/MMmHuVbryXLRw1pglijKLUrv2Dgz9qOEae7Sys8cMlZH7FOR1teRNdWcPuAnl9tQDwYqBm+uyWQ==','ipux9LI4z42PFItUNDdU89EMGhl0OCX/NYbBq407jXgWQDjn6Aw6IyDerWZTGT57HKlt61QLk2vZ3/cjlpRw0iyifY39E9gMiij+oVeYHhldikP5HVn8DlEolBbNYqRFiOQNhCvCJWgJX5AV2JyOGagXhnKA4ELpbuoxA8cLOU7Em9MbG8UmhCJ++MpsLmPf8tJWukjuYFAQcn6rOMtQiqVbPFGMbzxPJOT2x3fjw/rKHJi3/rXOiUy3jgyW0dYisBnLx6CDO9/MMmHuVbryXLRw1pglijKLUrv2Dgz9qOEae7Sys8cMlZH7FOR1teRNdWcPuAnl9tQDwYqBm+uyWQ==','0','','','JUNIN/CHANCHAMAYO/PERENE','-','UCAYALI/CORONEL PORTILLO/CALLERIA','','','PICHANAQUI JUNIN/CHANCHAMAYO/PERENE','','','','','RAF','','','','','https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=8UNrXqz2F2ob7BJk573xJFPUaVPPTi7rYAtZXgHnEBaewfKrAZWfyA5EfkMPlidil56CGH9xyu2kQVOqU3kmqQ==',NULL,' ',''),
 (28,'2024-10-29 00:00:00','09','TI01-00000003','-','LAN ELECTRONICS PERU S.A.C.','20607856428','CENTRO FERRETERO SOTO PALOMINO SOCIEDAD ANONIMA CERRADA','20609354683','','','VENTA',0,'8.870',12,'KGM','Publico','2024-10-29 00:00:00','','','-','0','-','JR. ANTONIO RAIMONDI NRO. 650','250101','CAL. JOSE SANTOS CHOCANO LT. 9 MZ. 26 C.P. PASCO/OXAPAMPA/OXAPAMPA','190301','01 - F001-00000035','','0.000000','0.000000','2024-10-30 00:00:00','2024-10-30 00:00:00','15','m/ulx0cVpI9STltvbU2ogNslSZPbHCw9ri4FozdADIhNm4qaYqfG62I0cBUQhauli2IZmfg/GSJCNfGnFnnBvdHPkC43ehpqwNYflon0UAA46Q7p8yq57/n1cQGDMtFJuohERLWfxJfnHF9hiWu2vZSy2tyOXuolyU3+UNYST22qi786w8VahptbZ2Y7cqVv7nqcCpEyjR19yTX6ufjbTS1R+FNpRr/84G6dS3PC3/iDCNZNNiySYeFUbRQ+m+9dwTqm9cxFlF1HnfX1kH/1Q4Zqm9q2xzXXgA3tmZe7hGtUhCe8cDk7MqlfOuqV/bvZVe2qi7liCIc4oRyglHFrmw==','m/ulx0cVpI9STltvbU2ogNslSZPbHCw9ri4FozdADIhNm4qaYqfG62I0cBUQhauli2IZmfg/GSJCNfGnFnnBvdHPkC43ehpqwNYflon0UAA46Q7p8yq57/n1cQGDMtFJuohERLWfxJfnHF9hiWu2vZSy2tyOXuolyU3+UNYST22qi786w8VahptbZ2Y7cqVv7nqcCpEyjR19yTX6ufjbTS1R+FNpRr/84G6dS3PC3/iDCNZNNiySYeFUbRQ+m+9dwTqm9cxFlF1HnfX1kH/1Q4Zqm9q2xzXXgA3tmZe7hGtUhCe8cDk7MqlfOuqV/bvZVe2qi7liCIc4oRyglHFrmw==','0','','','PASCO/OXAPAMPA/OXAPAMPA','-','UCAYALI/CORONEL PORTILLO/CALLERIA','','','CAL. JOSE SANTOS CHOCANO LT. 9 MZ. 26 C.P. PASCO/OXAPAMPA/OXAPAMPA','','','','','RAF','','','','','https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=8UNrXqz2F2ob7BJk573xJEyXnrEWqGP1dPf097poEi5LhIeVomtZhdd4VqjIzYHNjsuoDtef5BRyVPk6ql1e6Q==','-',' ',''),
 (29,'2024-10-29 00:00:00','09','TV01-00000022','-','LAN ELECTRONICS PERU S.A.C.','20607856428','TAYPE MARIN MARUJA MIRIAN','70796705','','','VENTA',0,'65.000',20,'KGM','Publico','2024-10-29 00:00:00','','','-','0','-','JR. ANTONIO RAIMONDI NRO. 650','250101','HONORIA HUANUCO/PUERTO INCA/HONORIA','100903','03 - B001-00000015','','0.000000','0.000000','2024-10-30 00:00:00','2024-10-30 00:00:00','15','asbXwBsRe8qjbNmojkmibPUEpBx+LwIjFq1E97CkO36GyS2LgMfEOZUXrgRUFgcRbPgbPCGP9XvThsOrfe32G07iBEArPFj/kJpwVInB39LbET3wDV/csn1tuCVg4MY+JwzWgKJp7MYj22GZe/If/ef0cfppj4yCWkEoRPMov3YVElxotI+ZsT/FsbKW0cb0fqWe1dictF4rDebtkUyUBea9lWvBb6VvnXHXcAeL/W0DWhvxqEtWrfGn2N6eBdpTSK8TXm9kOmqzDQkdcrUg+Yt8WfmcXDDbqNo11x8cXhWRNaCq5hDqPwf61rT/hTvVAsbRNCsGwQqrXyVLxpy3pw==','asbXwBsRe8qjbNmojkmibPUEpBx+LwIjFq1E97CkO36GyS2LgMfEOZUXrgRUFgcRbPgbPCGP9XvThsOrfe32G07iBEArPFj/kJpwVInB39LbET3wDV/csn1tuCVg4MY+JwzWgKJp7MYj22GZe/If/ef0cfppj4yCWkEoRPMov3YVElxotI+ZsT/FsbKW0cb0fqWe1dictF4rDebtkUyUBea9lWvBb6VvnXHXcAeL/W0DWhvxqEtWrfGn2N6eBdpTSK8TXm9kOmqzDQkdcrUg+Yt8WfmcXDDbqNo11x8cXhWRNaCq5hDqPwf61rT/hTvVAsbRNCsGwQqrXyVLxpy3pw==','0','','','HUANUCO/PUERTO INCA/HONORIA','-','UCAYALI/CORONEL PORTILLO/CALLERIA','','','HONORIA HUANUCO/PUERTO INCA/HONORIA','','','','','RAF','','','','',NULL,'-',' ',''),
 (30,'2024-10-29 00:00:00','09','TV01-00000023','-','LAN ELECTRONICS PERU S.A.C.','20607856428','DJ SELVA IMPORT E.I.R.L.','20603965885','','','VENTA',0,'71.000',8,'KGM','Publico','2024-10-29 00:00:00','','','-','0','-','JR. ANTONIO RAIMONDI NRO. 650','250101','JR. 7 DE JUNIO NRO. 820 -  UCAYALI/CORONEL PORTILLO/CALLERIA','250101','01 - F001-00000036','','0.000000','0.000000','2024-10-30 00:00:00','2024-10-30 00:00:00','15','EjTcUnLOxe0MAGcXZ19K+b0HNTerTVVmdyAjYZA2bncXCmH15Y5LE6y80YsAF3eosCHoWuh86EUhb+PiUWvkkpskGwY5zjUfDV7kmBxcTeoAoBEMv3ttt0jiOWq5Z0ih+ipfj1xJbF8WHT2LJg0wwDfOAdP5zWKeekS8yBRsyDyOoEy0UWPexJz1sar+p7P/lZRO4DVeRgWq9FZrM8s358OZutdM2MjcqMKbeICYYO5o9pgKYEQJJaMn6S3rdOL1gL5OhB8uGVSKEHzDIXZ75Gc8p+P4ujBPdj4AJDDsDdkxE1GsduTCumUNyEWbFaefGg6w42oUZ65QQPAT/5r5Zg==','EjTcUnLOxe0MAGcXZ19K+b0HNTerTVVmdyAjYZA2bncXCmH15Y5LE6y80YsAF3eosCHoWuh86EUhb+PiUWvkkpskGwY5zjUfDV7kmBxcTeoAoBEMv3ttt0jiOWq5Z0ih+ipfj1xJbF8WHT2LJg0wwDfOAdP5zWKeekS8yBRsyDyOoEy0UWPexJz1sar+p7P/lZRO4DVeRgWq9FZrM8s358OZutdM2MjcqMKbeICYYO5o9pgKYEQJJaMn6S3rdOL1gL5OhB8uGVSKEHzDIXZ75Gc8p+P4ujBPdj4AJDDsDdkxE1GsduTCumUNyEWbFaefGg6w42oUZ65QQPAT/5r5Zg==','0','','','UCAYALI/CORONEL PORTILLO/CALLERIA','-','UCAYALI/CORONEL PORTILLO/CALLERIA','','','JR. 7 DE JUNIO NRO. 820 - UCAYALI CORONEL PORTILLO CALLERIA UCAYALI/CORONEL PORTILLO/CALLERIA','','','','','RAF','','','','',NULL,'-',' ',''),
 (31,'2024-10-29 00:00:00','09','TV01-00000024','-','LAN ELECTRONICS PERU S.A.C.','20607856428','INVERSIONES Y SERVICIOS PROSELVA E.I.R.L.','20609072459','','','VENTA',0,'35.500',4,'KGM','Publico','2024-10-29 00:00:00','','','-','0','-','JR. ANTONIO RAIMONDI NRO. 650','250101','JR. 7 DE JUNIO NRO. 724 URB. CERCADO DE PUCALLPA -','250101','01 - F001-00000038','','0.000000','0.000000','2024-10-30 00:00:00','2024-10-30 00:00:00','15','g+UkTOW1tg83cfPZRfHFPoB9uGlIRUNx3s3vwwdNE2yzoW0KQjgz+5KZZ5kAcRfN+YkEFzKWyccuJYBVBjtPfVsfcugDvWgFiwiQXSob85uJoyiUj6Xrv7P+CoAQWBthXGiERNPkD142ANefK5VaPBbjwzjf4ydlmEiZJqBtetvE+O5zaZ9h+BNMsdX2s1AOzvioZ4xGXoUHSDXKneH7yTkgx6Cu9qmjj/dKrqfYM+ZS0LIiCVjPO4zufzgl1mlsKfAWLCfEDVho1qogWGV3xfUuVayokbwJZGmM0toNGkMeVxLZGNDo+MbTMmacDrK0iil8PH2AiTPONW5eKFp8hw==','g+UkTOW1tg83cfPZRfHFPoB9uGlIRUNx3s3vwwdNE2yzoW0KQjgz+5KZZ5kAcRfN+YkEFzKWyccuJYBVBjtPfVsfcugDvWgFiwiQXSob85uJoyiUj6Xrv7P+CoAQWBthXGiERNPkD142ANefK5VaPBbjwzjf4ydlmEiZJqBtetvE+O5zaZ9h+BNMsdX2s1AOzvioZ4xGXoUHSDXKneH7yTkgx6Cu9qmjj/dKrqfYM+ZS0LIiCVjPO4zufzgl1mlsKfAWLCfEDVho1qogWGV3xfUuVayokbwJZGmM0toNGkMeVxLZGNDo+MbTMmacDrK0iil8PH2AiTPONW5eKFp8hw==','0','','','UCAYALI/CORONEL PORTILLO/CALLERIA','-','UCAYALI/CORONEL PORTILLO/CALLERIA','','','JR. 7 DE JUNIO NRO. 724 URB. CERCADO DE PUCALLPA - UCAYALI/CORONEL PORTILLO/CALLERIA','','','','','RAF','','','','',NULL,'-',' ',''),
 (32,'2024-10-29 00:00:00','09','TV01-00000025','-','LAN ELECTRONICS PERU S.A.C.','20607856428','TAYPE MARIN MARUJA MIRIAN','70796705','','','VENTA',0,'0.340',1,'KGM','Publico','2024-10-29 00:00:00','','','-','0','-','JR. ANTONIO RAIMONDI NRO. 650','250101','HONORIA HUANUCO/PUERTO INCA/HONORIA','100903','03 - B001-00000016','','0.000000','0.000000','2024-10-30 00:00:00','2024-10-30 00:00:00','15','aCPGFJcq+jTadowAUSl/nWLHgu8SoltMbpDKLLm5taOlp/XCDp24j0UrMLhhjdbG8FYA8LD0RzWlsaw/TnDfXbLtk/zvYD7kRBVwIafnE92sxm2LHsNq1RCX6P+s5QGLzTtfw6Cp2ashJzhDrM0ykH63t0dfpFAdkz7r0ZYq4n/sdFx4T35uDyV2Fgg1gTBTI4jzMWrKDlKCkpuhcdDqZ91vsOdu25ZBtUcmy+dlYqU3dUeX2QNMqJqS71ZTIp5zQLIhLdG0g3oCxRO9OcdnzP97xjUeYTKJ7n1Y6AT2UuraeRD5czFQHHA1lQ543ayG8kdsQHBqwi2bRnisPaVLhg==','aCPGFJcq+jTadowAUSl/nWLHgu8SoltMbpDKLLm5taOlp/XCDp24j0UrMLhhjdbG8FYA8LD0RzWlsaw/TnDfXbLtk/zvYD7kRBVwIafnE92sxm2LHsNq1RCX6P+s5QGLzTtfw6Cp2ashJzhDrM0ykH63t0dfpFAdkz7r0ZYq4n/sdFx4T35uDyV2Fgg1gTBTI4jzMWrKDlKCkpuhcdDqZ91vsOdu25ZBtUcmy+dlYqU3dUeX2QNMqJqS71ZTIp5zQLIhLdG0g3oCxRO9OcdnzP97xjUeYTKJ7n1Y6AT2UuraeRD5czFQHHA1lQ543ayG8kdsQHBqwi2bRnisPaVLhg==',NULL,'','','HUANUCO/PUERTO INCA/HONORIA','-','UCAYALI/CORONEL PORTILLO/CALLERIA','','','HONORIA HUANUCO/PUERTO INCA/HONORIA','','','','','RAF','','','','',NULL,'-',' ',''),
 (33,'2024-10-29 00:00:00','09','TV01-00000026','-','LAN ELECTRONICS PERU S.A.C.','20607856428','TAYPE MARIN MARUJA MIRIAN','70796705','','','VENTA',0,'3.020',9,'KGM','Publico','2024-10-29 00:00:00','','','-','0','-','JR. ANTONIO RAIMONDI NRO. 650','250101','HONORIA HUANUCO/PUERTO INCA/HONORIA','100903','03 - B001-00000017','','0.000000','0.000000','2024-10-30 00:00:00','2024-10-30 00:00:00','15','zd4ZuB/WRMkirpMkdNWFYTeSDsUCaP2RGrLXezKU8zrzfXcCPucg6ENgI/Qrsk0fU3nKbJ5Zw9klIrg29Oth/AGFSYQscwr/AXDXhAnLh/WO4fCrNiBMifGXC/nVIXrft7kkkR4Cj9mVDZhdF/+7Mrz5PjmDgPjX2CY1kLBgdLLu8Rud6ozNWkgAnk48KQPB1ruG8PLP5eS/KSLGS6vZ5zvJJ81SA9lbr3xP0LmFsXXSS18AFGPpX+3cVFKIpbWap6NbsFwbfiDcZ8TMo8mu5dGhjTR/rVmUj3k+96GBeqT4V/qzJczOHUn/WVLcL8gxbOKEQdTe1IMrD/+/TMR7kg==','zd4ZuB/WRMkirpMkdNWFYTeSDsUCaP2RGrLXezKU8zrzfXcCPucg6ENgI/Qrsk0fU3nKbJ5Zw9klIrg29Oth/AGFSYQscwr/AXDXhAnLh/WO4fCrNiBMifGXC/nVIXrft7kkkR4Cj9mVDZhdF/+7Mrz5PjmDgPjX2CY1kLBgdLLu8Rud6ozNWkgAnk48KQPB1ruG8PLP5eS/KSLGS6vZ5zvJJ81SA9lbr3xP0LmFsXXSS18AFGPpX+3cVFKIpbWap6NbsFwbfiDcZ8TMo8mu5dGhjTR/rVmUj3k+96GBeqT4V/qzJczOHUn/WVLcL8gxbOKEQdTe1IMrD/+/TMR7kg==','0','','','HUANUCO/PUERTO INCA/HONORIA','-','UCAYALI/CORONEL PORTILLO/CALLERIA','','','HONORIA HUANUCO/PUERTO INCA/HONORIA','','','','','RAF','','','','','https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=8UNrXqz2F2ob7BJk573xJJv/ojYg/P6HnjVmoRRGivUUK9LSyI46nQu/gqkyPzey4dRUXhUqVnSO8PaDHb6/FA==','-',' ',''),
 (34,'2024-10-30 00:00:00','09','TV01-00000027','-','LAN ELECTRONICS PERU S.A.C.','20607856428','NAVARRO VASQUEZ JUAN CARLOS','60597958','','','VENTA',0,'0.800',50,'KGM','Publico','2024-10-30 00:00:00','','','-','0','-','JR. ANTONIO RAIMONDI NRO. 650','250101','JR LOS ELECHOS MZCC LT37 UCAYALI/CORONEL PORTILLO/YARINACOCHA','250105','03 - B001-00000018','','0.000000','0.000000','2024-10-31 00:00:00','2024-10-31 00:00:00','15','tSkaggort+ACaYvKR25ZuVYO7aRTFIUCnIJ6qZLEj+KqQbMTUfdenoPGrqaUU2QE30WBqOHwJN+OHb+gaVhUuw40Xu9XuYTaNGQQFySCtDnyBx8CKi+D0wMLcwbbqXkHGgpVGal2hIIxE1aaWVuVDWW6+SVV2JT0GZ6LrOQlFNUIaLK2ayoyylVZCxzt5eiYoKVcsd3m4UHySZt8NapCAKI1v0fbetmNkH4D7OQq29mkpKPCdL18sftVuztc0cpHZsgLph9CiK/cLtjlLRM11J9Et9mHsHsX36hzEChMwR6IJwys0u1iw8wcGkujM2Mg4NFFA1duAYcWkjOJvGNZ5Q==','tSkaggort+ACaYvKR25ZuVYO7aRTFIUCnIJ6qZLEj+KqQbMTUfdenoPGrqaUU2QE30WBqOHwJN+OHb+gaVhUuw40Xu9XuYTaNGQQFySCtDnyBx8CKi+D0wMLcwbbqXkHGgpVGal2hIIxE1aaWVuVDWW6+SVV2JT0GZ6LrOQlFNUIaLK2ayoyylVZCxzt5eiYoKVcsd3m4UHySZt8NapCAKI1v0fbetmNkH4D7OQq29mkpKPCdL18sftVuztc0cpHZsgLph9CiK/cLtjlLRM11J9Et9mHsHsX36hzEChMwR6IJwys0u1iw8wcGkujM2Mg4NFFA1duAYcWkjOJvGNZ5Q==','0','','','UCAYALI/CORONEL PORTILLO/YARINACOCHA','-','UCAYALI/CORONEL PORTILLO/CALLERIA','','','JR LOS ELECHOS MZCC LT37 UCAYALI/CORONEL PORTILLO/YARINACOCHA','','','','','RAF','','','','','https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=8UNrXqz2F2ob7BJk573xJHRogneXsp5OdVmv0cvZvd1RZURwpjw4gxW5FszhhO5sRcAg4T0ECAGAMzCPNZJyYA==','-',' ',''),
 (35,'2024-10-30 00:00:00','09','TV01-00000028','-','LAN ELECTRONICS PERU S.A.C.','20607856428','SERVICIOS GENERALES CHAVELO EMPRESA INDIVIDUAL DE RESPONSABILIDAD LIMITADA','20611940719','','','VENTA',0,'32.500',15,'KGM','Publico','2024-10-30 00:00:00','','','-','0','-','JR. ANTONIO RAIMONDI NRO. 650','250101','AV. NESHUYA LT. 8 MZ. 18 ---- J.V. BUENOS AIRES - UCAYALI/PADRE ABAD/NESHUYA','250304','01 - F001-00000043','','0.000000','0.000000','2024-10-31 00:00:00','2024-10-31 00:00:00','15','O3+ny/WfZMfS9uDVbqdNuOp9thqDOCyHxwrswssNdAFoj9y16m6TuJJ0KV1hYvoXhsSBU9AN9wKXwe7TO6g/pPGVysW9MSH1Qj3Qp0/2BF6EeEUHF1f8+R6l6wilE0g0bhQYswT9LkJI5w7a0LEI/QX8Gprmwci8Ylz8/pIhDwWCsutjNTRhT3PJUJYexHxrK9zLPTZDjYB6eG41DwcZZ43RJP/QlJAOf0f0BlIS3JQsxMYEfoCJvjXqaVt+ERiel3RD07EWGGGPJh3koFDew2V63tdQcXjPXpZHgu4g+kioOCX7sFoPHxxwbLInj9ZIsWnmdRYbumhcltObplnA1A==','O3+ny/WfZMfS9uDVbqdNuOp9thqDOCyHxwrswssNdAFoj9y16m6TuJJ0KV1hYvoXhsSBU9AN9wKXwe7TO6g/pPGVysW9MSH1Qj3Qp0/2BF6EeEUHF1f8+R6l6wilE0g0bhQYswT9LkJI5w7a0LEI/QX8Gprmwci8Ylz8/pIhDwWCsutjNTRhT3PJUJYexHxrK9zLPTZDjYB6eG41DwcZZ43RJP/QlJAOf0f0BlIS3JQsxMYEfoCJvjXqaVt+ERiel3RD07EWGGGPJh3koFDew2V63tdQcXjPXpZHgu4g+kioOCX7sFoPHxxwbLInj9ZIsWnmdRYbumhcltObplnA1A==','0','','','UCAYALI/PADRE ABAD/NESHUYA','-','UCAYALI/CORONEL PORTILLO/CALLERIA','','','AV. NESHUYA LT. 8 MZ. 18 ---- J.V. BUENOS AIRES - UCAYALI/PADRE ABAD/NESHUYA','','','','','RAF','','','','','https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=8UNrXqz2F2ob7BJk573xJHKtKPWSzK3x75Ak8eN7HmsEB5Sbaq3TpRwH3UQnpDxwdr3+IdPFdYJdcyr7sF/3cg==','-',' ',''),
 (36,'2024-10-30 00:00:00','09','TV01-00000029','-','LAN ELECTRONICS PERU S.A.C.','20607856428','PONCE DURAN ROSMERY 935637354','74143781','','','VENTA',0,'51.230',180,'KGM','Publico','2024-10-30 00:00:00','','','-','0','-','JR. ANTONIO RAIMONDI NRO. 650','250101','CURIMANA UCAYALI/PADRE ABAD/CURIMANA','250303','03 - B001-00000019','','0.000000','0.000000','2024-10-31 00:00:00','2024-10-31 00:00:00','15','DbvV64/vk1g17tb9VO4qneebCPk6le/M+8GAzOI1IJ8nCrS4r6Gx4tx56Pptp3+r4Pmb35eOHJPfvXhaTiUgngnomgIOO3dmDWikApjufMja758fUdtcyaYwiNQUwJVT1bv7zUEWhb8WS+uemqlMLwfKbcOaUxVObxOMN3xure7L3sSgZxrF0TBZGKqgjfsiNmMGL5zdYPPwCRdMuOHkjAgEob4jdQr9WJ0np23udw2SFwO2ztlNdiSzehI5R6rnAoQ3Ik62P5p+9VVynX0/14nXlJOo+AsOuZYyW5qT58ogf6b++fMzjdjQITkb2wHGQ7k32vsQgM4Mfp0OSKRfqQ==','DbvV64/vk1g17tb9VO4qneebCPk6le/M+8GAzOI1IJ8nCrS4r6Gx4tx56Pptp3+r4Pmb35eOHJPfvXhaTiUgngnomgIOO3dmDWikApjufMja758fUdtcyaYwiNQUwJVT1bv7zUEWhb8WS+uemqlMLwfKbcOaUxVObxOMN3xure7L3sSgZxrF0TBZGKqgjfsiNmMGL5zdYPPwCRdMuOHkjAgEob4jdQr9WJ0np23udw2SFwO2ztlNdiSzehI5R6rnAoQ3Ik62P5p+9VVynX0/14nXlJOo+AsOuZYyW5qT58ogf6b++fMzjdjQITkb2wHGQ7k32vsQgM4Mfp0OSKRfqQ==','0','','','UCAYALI/PADRE ABAD/CURIMANA','-','UCAYALI/CORONEL PORTILLO/CALLERIA','','','CURIMANA UCAYALI/PADRE ABAD/CURIMANA','','','','','RAF','','','','',NULL,'-',' ',''),
 (37,'2024-10-30 00:00:00','09','TV01-00000030','-','LAN ELECTRONICS PERU S.A.C.','20607856428','MAQUINARIAS SILJE S.A.C.','20611068442','','','VENTA',0,'14.000',1,'KGM','Publico','2024-10-30 00:00:00','','','-','0','-','JR. ANTONIO RAIMONDI NRO. 650','250101','OTR. JAIME YOSHIYAMA TANAKA LT. 5 MZ. I A.H. ASENTAMIENTO HUMANO PROYE','250107','01 - F001-00000044','','0.000000','0.000000','2024-11-02 00:00:00','2024-11-02 00:00:00','15','Xy+mc3U5RFqpDn4/zCRX13yErdUWGLwzsiKeGRXzla41kHmh0RW4cbhLRbuPoo9H/DE+n4ILr5T7+N2kfedd/d07LnO0ZdhTtP7Mp5TstZYXa6oOXoaatLYNGwiPAFymbmY6Bz+Q6NuWF/jMzsv+R0kjNh2JXF809zdWj8Mx6Ezj3PK/2SB3lGHxzXjJQebrq9IwLS/8Qbd4FQ0aNs1yjtHAIBPIS0BFj9yl78kIElTi/4igSNhHTvtsqOhs/QugpyP+38gOGTyiChATTNU3Y2EpUohZc53ogHv9jOrpjTJu6WrTAqRO96bd1DLWtwnG6Iwx2nVh8yXtf5u3hPnGKw==','Xy+mc3U5RFqpDn4/zCRX13yErdUWGLwzsiKeGRXzla41kHmh0RW4cbhLRbuPoo9H/DE+n4ILr5T7+N2kfedd/d07LnO0ZdhTtP7Mp5TstZYXa6oOXoaatLYNGwiPAFymbmY6Bz+Q6NuWF/jMzsv+R0kjNh2JXF809zdWj8Mx6Ezj3PK/2SB3lGHxzXjJQebrq9IwLS/8Qbd4FQ0aNs1yjtHAIBPIS0BFj9yl78kIElTi/4igSNhHTvtsqOhs/QugpyP+38gOGTyiChATTNU3Y2EpUohZc53ogHv9jOrpjTJu6WrTAqRO96bd1DLWtwnG6Iwx2nVh8yXtf5u3hPnGKw==','98','','','UCAYALI/CORONEL PORTILLO/MANANTAY','-','UCAYALI/CORONEL PORTILLO/CALLERIA','','','OTR. JAIME YOSHIYAMA TANAKA LT. 5 MZ. I A.H. ASENTAMIENTO HUMANO PROYE UCAYALI/CORONEL PORTILLO/MANANTAY','','','','','RAF','','','','',NULL,'-',' ',''),
 (38,'2024-10-31 00:00:00','09','TV01-00000031','-','LAN ELECTRONICS PERU S.A.C.','20607856428','MARCELO GENTE LUCAS','44723350','','','VENTA',0,'6.500',2,'KGM','Publico','2024-10-31 00:00:00','','','-','0','-','JR. ANTONIO RAIMONDI NRO. 650','250101','CAMPO  VERDE UCAYALI/CORONEL PORTILLO/CAMPOVERDE','250102','03 - B001-00000020','','0.000000','0.000000','2024-11-02 00:00:00','2024-11-02 00:00:00','15','rL88FZcmmAkHNKtn7P6vHVmOGdKPuHZtmZlZjd8SsqQBT2lUEDZ5B/9FRR5+sXaNxqLR/IpzgehFmXNzW27iMf0ruSOZ+j8ssbiTPCCKXwp5MaEBzyK+2F+WxiKu45Vg277Nvf/ndq3tw0HBBB770oZpaVYn9pcO7VpP/FQFJyJr7wawh/L9MN67ZBl/RHQDvMcHi7Hqv+07w3vpXSHSe6RMkJGb52LmTDIuYLLjeTBwd+r0hgakFKjDFzm8ry76tk1g/HTBo2d43oR6zfXrvKu15+ngM26G6+KMr6DA6hihD7UXMpNXMefbzcXbKf+n4mgJUV9jXJa331nYmMdK+A==','rL88FZcmmAkHNKtn7P6vHVmOGdKPuHZtmZlZjd8SsqQBT2lUEDZ5B/9FRR5+sXaNxqLR/IpzgehFmXNzW27iMf0ruSOZ+j8ssbiTPCCKXwp5MaEBzyK+2F+WxiKu45Vg277Nvf/ndq3tw0HBBB770oZpaVYn9pcO7VpP/FQFJyJr7wawh/L9MN67ZBl/RHQDvMcHi7Hqv+07w3vpXSHSe6RMkJGb52LmTDIuYLLjeTBwd+r0hgakFKjDFzm8ry76tk1g/HTBo2d43oR6zfXrvKu15+ngM26G6+KMr6DA6hihD7UXMpNXMefbzcXbKf+n4mgJUV9jXJa331nYmMdK+A==','98','','','UCAYALI/CORONEL PORTILLO/CAMPOVERDE','-','UCAYALI/CORONEL PORTILLO/CALLERIA','','','CAMPO  VERDE UCAYALI/CORONEL PORTILLO/CAMPOVERDE','','','','','RAF','','','','',NULL,'-',' ',''),
 (39,'2024-10-31 00:00:00','09','TV01-00000032','-','LAN ELECTRONICS PERU S.A.C.','20607856428','AQUINO DURAND ROGER','40575289','','','VENTA',0,'24.250',128,'KGM','Publico','2024-10-31 00:00:00','','','-','0','-','JR. ANTONIO RAIMONDI NRO. 650','250101','AGUAYTIA UCAYALI/PADRE ABAD/PADRE ABAD','250301','03 - B001-00000021','','0.000000','0.000000','2024-11-02 00:00:00','2024-11-02 00:00:00','15','v909hf8aixW+OfXK7EhSDa2pn5poEx3uRdBIow40ESLK+6q2pFRmorvbc0TUayTTE2R0kibhBxS797o5do6IQoH5dAKyPITFwzckSU5BD3M6h6lGFiDOuZK6bsPWIiEmP6K9S5T8VG4v4ByAb7Ioq6ef/Xu5wQamkP+qNaZDPzKA3aLRqbiAhAJiNovhAm8HPDElMRudGZjGViZfGOcTnmVWHecPDagA7meMU/UogXW0ANMucERcz8+38rOZhV3bPNVEGymRiMGmHSu+bjM/xrEnOKUVNMajXfArWyuPlJL+pLAuHtrwyuTyIPW/GFj7h9KesO/JfqOIb8CYkEeNaw==','v909hf8aixW+OfXK7EhSDa2pn5poEx3uRdBIow40ESLK+6q2pFRmorvbc0TUayTTE2R0kibhBxS797o5do6IQoH5dAKyPITFwzckSU5BD3M6h6lGFiDOuZK6bsPWIiEmP6K9S5T8VG4v4ByAb7Ioq6ef/Xu5wQamkP+qNaZDPzKA3aLRqbiAhAJiNovhAm8HPDElMRudGZjGViZfGOcTnmVWHecPDagA7meMU/UogXW0ANMucERcz8+38rOZhV3bPNVEGymRiMGmHSu+bjM/xrEnOKUVNMajXfArWyuPlJL+pLAuHtrwyuTyIPW/GFj7h9KesO/JfqOIb8CYkEeNaw==','98','','','UCAYALI/PADRE ABAD/PADRE ABAD','-','UCAYALI/CORONEL PORTILLO/CALLERIA','','','AGUAYTIA UCAYALI/PADRE ABAD/PADRE ABAD','','','','','RAF','','','','',NULL,'-',' ',''),
 (40,'2024-10-31 00:00:00','09','TV01-00000033','-','LAN ELECTRONICS PERU S.A.C.','20607856428','ALVA RIOS LINDER FRANK','10479836626','','','VENTA',0,'3.300',160,'KGM','Publico','2024-10-31 00:00:00','','','-','0','-','JR. ANTONIO RAIMONDI NRO. 650','250101','SAN ALEJANDRO UCAYALI/PADRE ABAD/IRAZOLA','250302','01 - F001-00000045','','0.000000','0.000000','2024-11-02 00:00:00','2024-11-02 00:00:00','15','c3pi583TKrsFKOOMgoxhinUFAUytjHRX1cgZunyiExup8eYe0Z05F7sewaGLxMVE1U81ZiwZxQZoxQHEjGNxywWpThTQtkKBKIhUyMU14MebgmDkNj+lcjXziYtOU48a+rz4iDPDSe4e8dMouB4tJ/MtqU6CsDDDITnzvhLUYF6xlZvx1YuN9N88GJ9HHZDdJU1BnwdBCqUEES/7LDZVFXgFJqjaxrLnKdohvlK/nlxQJhrsD+URzh89CDHKXBNs2kqeMzuSG0WUZGN/iMqGcAAo16ZxM7EOgdwT9ttWbPyXmBBmQ4LOyjwJRXIDsqO5D+cXFpSguF/cAhy+TBM7nA==','c3pi583TKrsFKOOMgoxhinUFAUytjHRX1cgZunyiExup8eYe0Z05F7sewaGLxMVE1U81ZiwZxQZoxQHEjGNxywWpThTQtkKBKIhUyMU14MebgmDkNj+lcjXziYtOU48a+rz4iDPDSe4e8dMouB4tJ/MtqU6CsDDDITnzvhLUYF6xlZvx1YuN9N88GJ9HHZDdJU1BnwdBCqUEES/7LDZVFXgFJqjaxrLnKdohvlK/nlxQJhrsD+URzh89CDHKXBNs2kqeMzuSG0WUZGN/iMqGcAAo16ZxM7EOgdwT9ttWbPyXmBBmQ4LOyjwJRXIDsqO5D+cXFpSguF/cAhy+TBM7nA==','98','','','UCAYALI/PADRE ABAD/IRAZOLA','-','UCAYALI/CORONEL PORTILLO/CALLERIA','','','SAN ALEJANDRO UCAYALI/PADRE ABAD/IRAZOLA','','','','','RAF','','','','',NULL,'-',' ',''),
 (41,'2024-10-31 00:00:00','09','TV01-00000034','-','LAN ELECTRONICS PERU S.A.C.','20607856428','EXPRESS LOGISTICO SELVA VERDE E.I.R.L.','20393682001','','','VENTA',0,'137.500',10,'KGM','Publico','2024-10-31 00:00:00','','','-','0','-','JR. ANTONIO RAIMONDI NRO. 650','250101','JR. RIVAS ARAOS-MANGUAL NRO. S/N - UCAYALI ATALAYA RAYMONDI UCAYALI/ATALAYA/RAYMONDI','250201','01 - F001-00000046','','0.000000','0.000000','2024-11-02 00:00:00','2024-11-02 00:00:00','15','nJFcchXZA5KDgLbjfUP937TMJT1TLrl0nt1gEMmVp7uhkAzI74HY4VZXQe0Vq1X762hhfwvG1p15CDeDd6TN1JUtOOTw6RPUnnUXJoNRAiU7qVqejox2QgTe2L+72mtvRkdLDWFfMZnZ7HQcbkQo1glivr+4KBbq769pLu56oa7f5QLQxayMVnKHh6ZA4G9F8d4g3jqI9XVRpZVLM5PFEZr/jgMHrpjLgtuby3be3X8ZR9TN2cM3aR0DymBZJsrMQh8q92GhvjLutOuEq7hVH4t7S3I+VJI3BBUniV/W7e+RNYBxf6w2PAh5QCTsURLhiU8ON/YOZoxNp58tC6qzjA==','nJFcchXZA5KDgLbjfUP937TMJT1TLrl0nt1gEMmVp7uhkAzI74HY4VZXQe0Vq1X762hhfwvG1p15CDeDd6TN1JUtOOTw6RPUnnUXJoNRAiU7qVqejox2QgTe2L+72mtvRkdLDWFfMZnZ7HQcbkQo1glivr+4KBbq769pLu56oa7f5QLQxayMVnKHh6ZA4G9F8d4g3jqI9XVRpZVLM5PFEZr/jgMHrpjLgtuby3be3X8ZR9TN2cM3aR0DymBZJsrMQh8q92GhvjLutOuEq7hVH4t7S3I+VJI3BBUniV/W7e+RNYBxf6w2PAh5QCTsURLhiU8ON/YOZoxNp58tC6qzjA==','98','','','UCAYALI/ATALAYA/RAYMONDI','-','UCAYALI/CORONEL PORTILLO/CALLERIA','','','JR. RIVAS ARAOS-MANGUAL NRO. S/N - UCAYALI ATALAYA RAYMONDI UCAYALI/ATALAYA/RAYMONDI','','','','','RAF','','','','',NULL,'-',' ',''),
 (42,'2024-10-31 00:00:00','09','TV01-00000035','-','LAN ELECTRONICS PERU S.A.C.','20607856428','CCAHUANA REDONDEZ MARINA','10001520585','','','VENTA',0,'232.560',10,'KGM','Publico','2024-10-31 00:00:00','','','-','0','-','JR. ANTONIO RAIMONDI NRO. 650','250101','CAL URUBAMBA MZA 12 LOTE 3A UCAYALI/ATALAYA/RAYMONDI','250201','01 - F001-00000047','','0.000000','0.000000','2024-11-02 00:00:00','2024-11-02 00:00:00','15','tyYkHAabdMQLgsW6XmqR1BNayv4yRF3/D08eRtk+mGxeTLnrSoSiWIC3ACBszJrEuU6sK5HWDHLJeBsvRAkq79NdtH6n8MzBONp1MyHoyXCGv+LWPQe+8KpbjTBFl3VtgR8TiYDTmtLLcr+Oll3aPRGReg4VLx022fCfbH6qRtFi9fKCAsiSzsLofnPiRP2nEEzqH5CUqAsCENTu5uxd4JDPm9pxbpldJsa8dH20f4nzzaHHWH6XiVXQ1hbXCKSy1U27tVn/0EkR51NWmAQzRjt1efPVywOEPw9xlWEq7oohIPgCTzGuhHPlZd6q0gPq7MxcogT9V2YUWTaEFMV+1Q==','tyYkHAabdMQLgsW6XmqR1BNayv4yRF3/D08eRtk+mGxeTLnrSoSiWIC3ACBszJrEuU6sK5HWDHLJeBsvRAkq79NdtH6n8MzBONp1MyHoyXCGv+LWPQe+8KpbjTBFl3VtgR8TiYDTmtLLcr+Oll3aPRGReg4VLx022fCfbH6qRtFi9fKCAsiSzsLofnPiRP2nEEzqH5CUqAsCENTu5uxd4JDPm9pxbpldJsa8dH20f4nzzaHHWH6XiVXQ1hbXCKSy1U27tVn/0EkR51NWmAQzRjt1efPVywOEPw9xlWEq7oohIPgCTzGuhHPlZd6q0gPq7MxcogT9V2YUWTaEFMV+1Q==','98','','','UCAYALI/ATALAYA/RAYMONDI','-','UCAYALI/CORONEL PORTILLO/CALLERIA','','','CAL URUBAMBA MZA 12 LOTE 3A UCAYALI/ATALAYA/RAYMONDI','','','','','RAF','','','','',NULL,'-',' ',''),
 (43,'2024-10-31 00:00:00','09','TV01-00000036','-','LAN ELECTRONICS PERU S.A.C.','20607856428','DEL AGUILA TORRES ROCKY FRANS','42983548','','','VENTA',0,'8.290',16,'KGM','Publico','2024-10-31 00:00:00','','','-','0','-','JR. ANTONIO RAIMONDI NRO. 650','250101','LA SELVA  655 ALT MUNICIPALIDAD UCAYALI/CORONEL PORTILLO/YARINACOCHA','250105','03 - B001-00000022','','0.000000','0.000000','2024-11-02 00:00:00','2024-11-02 00:00:00','15','ot+/DtU/9j7qjN7sJ+YIxcEbOSbwru4FM2492Ae0rwHNEqS5lkANFDuo4jLm2rgkKgtN0myJ0Fcmj7tR9zM04MyantSAZoZQU+8rRctwegsVVcdfRpjSHyHAdDpCS01Ec5qzLO/26fhvbbtLCVs+TLmdpNwqjsmbb1e9wBn20go94Tgplcy666AaJcfIvuZR+wxNHyYzCXc+FgW5M0vzNhrW/cxUCvibiO+Pmk85aTF63zrB6ThCDePlgOFZZVzFdymeKzd2yjFxbRAvwGfuVF+fSQJhHtxUBSKh4R9UBU1qpmfp5hr9Mt45DUE1Rn1S6xtL1DG9pBgxc08FymJnAA==','ot+/DtU/9j7qjN7sJ+YIxcEbOSbwru4FM2492Ae0rwHNEqS5lkANFDuo4jLm2rgkKgtN0myJ0Fcmj7tR9zM04MyantSAZoZQU+8rRctwegsVVcdfRpjSHyHAdDpCS01Ec5qzLO/26fhvbbtLCVs+TLmdpNwqjsmbb1e9wBn20go94Tgplcy666AaJcfIvuZR+wxNHyYzCXc+FgW5M0vzNhrW/cxUCvibiO+Pmk85aTF63zrB6ThCDePlgOFZZVzFdymeKzd2yjFxbRAvwGfuVF+fSQJhHtxUBSKh4R9UBU1qpmfp5hr9Mt45DUE1Rn1S6xtL1DG9pBgxc08FymJnAA==','98','','','UCAYALI/CORONEL PORTILLO/YARINACOCHA','-','UCAYALI/CORONEL PORTILLO/CALLERIA','','','JR LA SELVA  655 ALT MUNICIPALIDAD UCAYALI/CORONEL PORTILLO/YARINACOCHA','','','','','RAF','','','','',NULL,'-',' ',''),
 (44,'2024-10-31 00:00:00','09','TV01-00000037','-','LAN ELECTRONICS PERU S.A.C.','20607856428','GOMEZ CCAHUANA RUTH','10443951160','','','VENTA',0,'65.750',4,'KGM','Publico','2024-10-31 00:00:00','','','-','0','-','JR. ANTONIO RAIMONDI NRO. 650','250101','CALLE URUBAMBA MZ A LOTE 3A UCAYALI/ATALAYA/RAYMONDI','250201','01 - F001-00000048','','0.000000','0.000000','2024-11-02 00:00:00','2024-11-02 00:00:00','15','p2Mt8DjJcWt2F83soXNZUu4s27ytNJKfMzwzA0JHK9B6KgwzdN+HKaQ8XsvuObv/mCa4Kfibjt9xnIHEVhc4E4Cge7dmca71+hfc13lEAurXF/AcrDkREZJpW/XBZJj8VtRDGAPXYNYRP8p4IoA/DNakGXrvu/MLVFh+ExtDcqaHnDtJxLz+epvmv//pFAuCyHPe9ha/LvwjhFS4zE2cx90A6dNk+ZSjuiBkRd/XSXLwfSJyfs+SznUq87vhi+BMIBOcJoyxFrriCZXUG5DX9+Z+X61RDUUFxhBOQiC6JQJi3qgZQkr123dubso8E7Erc4yIR99Z3VxgLQjmzjG6nw==','p2Mt8DjJcWt2F83soXNZUu4s27ytNJKfMzwzA0JHK9B6KgwzdN+HKaQ8XsvuObv/mCa4Kfibjt9xnIHEVhc4E4Cge7dmca71+hfc13lEAurXF/AcrDkREZJpW/XBZJj8VtRDGAPXYNYRP8p4IoA/DNakGXrvu/MLVFh+ExtDcqaHnDtJxLz+epvmv//pFAuCyHPe9ha/LvwjhFS4zE2cx90A6dNk+ZSjuiBkRd/XSXLwfSJyfs+SznUq87vhi+BMIBOcJoyxFrriCZXUG5DX9+Z+X61RDUUFxhBOQiC6JQJi3qgZQkr123dubso8E7Erc4yIR99Z3VxgLQjmzjG6nw==','98','','','UCAYALI/ATALAYA/RAYMONDI','-','UCAYALI/CORONEL PORTILLO/CALLERIA','','','CALLE URUBAMBA MZ A LOTE 3A UCAYALI/ATALAYA/RAYMONDI','','','','','RAF','','','','',NULL,'-',' ',''),
 (45,'2024-10-31 00:00:00','09','TV01-00000038','-','LAN ELECTRONICS PERU S.A.C.','20607856428','VALDIVIA SANCHEZ SILVER DELVIS','10472160546','','','VENTA',0,'59.530',7,'KGM','Publico','2024-10-31 00:00:00','','','-','0','-','JR. ANTONIO RAIMONDI NRO. 650','250101','-ATALAYA UCAYALI/ATALAYA/RAYMOND','250201','01 - F001-00000049','','0.000000','0.000000','2024-11-02 00:00:00','2024-11-02 00:00:00','15','gubCzhe2fTjX9cvqWzt3LG0YTCS05ID2ddzt2Stit4u6OeBhKPdBiajOGXPokLSqS+B+3+pSVHvi0tek6QESmvmgVBHCg3IFOCEAg2Gz7vUvlmPB1GULGhdlqA+TcMToK2b5axcLiIngR4ZDKhsM5sBcYzxvdsuHIrmSzV9jen+1SHqDoY6KoXskCQwtlS4vYQcEFxvUtN1+z6Hkm4aE6KFu0HLm82wiEOQlKDobMnL1cZoa0boXX+2Cd5aE+8jGXmf+fT4OrSa+CKDISQPJ4tkXswfuCunljPC0ImP7ZdR4XNB+RarV1QF1QeGvzqJG9ej28xaQ+pxjhUPnzSs+XQ==','gubCzhe2fTjX9cvqWzt3LG0YTCS05ID2ddzt2Stit4u6OeBhKPdBiajOGXPokLSqS+B+3+pSVHvi0tek6QESmvmgVBHCg3IFOCEAg2Gz7vUvlmPB1GULGhdlqA+TcMToK2b5axcLiIngR4ZDKhsM5sBcYzxvdsuHIrmSzV9jen+1SHqDoY6KoXskCQwtlS4vYQcEFxvUtN1+z6Hkm4aE6KFu0HLm82wiEOQlKDobMnL1cZoa0boXX+2Cd5aE+8jGXmf+fT4OrSa+CKDISQPJ4tkXswfuCunljPC0ImP7ZdR4XNB+RarV1QF1QeGvzqJG9ej28xaQ+pxjhUPnzSs+XQ==','98','','','UCAYALI/ATALAYA/RAYMONDI','-','UCAYALI/CORONEL PORTILLO/CALLERIA','','','-ATALAYA UCAYALI/ATALAYA/RAYMONDI','','','','','RAF','','','','',NULL,'-',' ','');
INSERT INTO `guia_cab` (`DocEntry`,`Fecha_Emision`,`TipoDoc`,`NroDocumento`,`NroDocumentoRef`,`Razon_Social_Co`,`RUC_Co`,`Razon_Social_Desti`,`RUC_Desti`,`Razon_Social_Terce`,`RUC_Terce`,`DesMotTraslado`,`IndiTransbordo`,`PesoBruto_Tot`,`NumBienes_Tot`,`UM_PesoBruto_Tot`,`Tipo_Traslado`,`FecIni_Traslado`,`Razon_Social_Transpo`,`Ruc_Transpo`,`DocIden_Condu`,`TipoDoc_Condu`,`Placa`,`PPartida_GR`,`Ubi_PPartida_GR`,`PLlegada_GR`,`Ubi_PLlegada_GR`,`GenericoSTR1`,`GenericoSTR2`,`GenericoDec1`,`GenericoDec2`,`GenericoFec1`,`GenericoFec2`,`Objeto`,`Firma`,`ValorResumen`,`EstadoSunat`,`T1_RucTransportista`,`T1_RazonSocial`,`T1_PuntoLlegada`,`T1_Observacion`,`T2_PuntoPartida`,`T2_RucTransportista`,`T2_RazonSocial`,`T2_PuntoLlegada`,`T2_Observacion`,`T3_PuntoPartida`,`T3_RucTransportista`,`T3_RazonSocial`,`T3_Observacion`,`Licencia_Condu`,`Placa_Tolva`,`Tipo_Bulto`,`Nom_Conductor`,`CDR`,`RegistroMTC`,`Contenedor`,`Precinto`) VALUES 
 (46,'2024-11-02 00:00:00','09','TV01-00000039','-','LAN ELECTRONICS PERU S.A.C.','20607856428','ROMAN ROBLES MARIELA NIDIA','10484719077','','','VENTA',0,'50.000',5,'KGM','Publico','2024-11-02 00:00:00','','','-','0','-','JR. ANTONIO RAIMONDI NRO. 650','250101','JR: 07  DE JUNIO 802 UCAYALI/CORONEL PORTILLO/CALLERIA','250101','01 - F001-00000050','','0.000000','0.000000','2024-11-02 00:00:00','2024-11-02 00:00:00','15','cc1WBMGdMU1Cjy+hL+g++K4bYvv1WjVemxMvWavIa01WVNcr9Rv8dRvWQwMhjfFbfkJg//kGKkFZhOREOrN5oWGSVzsxUqM6DEI35LWmecRu+fgYSh+Fbgud7wwKQTKRZtK+3DiUkkrUDgZyYgVTBHV0F28ZDoCaUCK6/ZLF+oTqCoWtHUdT642MOGheznamxV0h1Ptm0LTlNrjSK9y1Wt8+cuj5GZmwToQ/3JlljgizFRSetvpSOl33LrDElvSFxXytAErBJwM0VDvZYm6GqhVnrrsImzkuiKcsT6u3LWneI/Eu1H8+VM9gAugz18lJLZa8rKJKBdxPGm4WVpu3Yw==','cc1WBMGdMU1Cjy+hL+g++K4bYvv1WjVemxMvWavIa01WVNcr9Rv8dRvWQwMhjfFbfkJg//kGKkFZhOREOrN5oWGSVzsxUqM6DEI35LWmecRu+fgYSh+Fbgud7wwKQTKRZtK+3DiUkkrUDgZyYgVTBHV0F28ZDoCaUCK6/ZLF+oTqCoWtHUdT642MOGheznamxV0h1Ptm0LTlNrjSK9y1Wt8+cuj5GZmwToQ/3JlljgizFRSetvpSOl33LrDElvSFxXytAErBJwM0VDvZYm6GqhVnrrsImzkuiKcsT6u3LWneI/Eu1H8+VM9gAugz18lJLZa8rKJKBdxPGm4WVpu3Yw==','0','','','UCAYALI/CORONEL PORTILLO/CALLERIA','-','UCAYALI/CORONEL PORTILLO/CALLERIA','','','JR: 07  DE JUNIO 802 UCAYALI/CORONEL PORTILLO/CALLERIA','','','','','RAF','','','','','https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=8UNrXqz2F2ob7BJk573xJIovoAhxj/OXtnpYd0T9CFE9px3H/uk5/YxqDLtHFPIF+8YkpKZR6+flsxE3mjH4dA==','-',' ',''),
 (47,'2024-11-02 00:00:00','09','TV01-00000040','-','LAN ELECTRONICS PERU S.A.C.','20607856428','ALBORNOZ CRUZ ABDEL','43842645','','','VENTA',0,'13.000',4,'KGM','Publico','2024-11-02 00:00:00','','','-','0','-','JR. ANTONIO RAIMONDI NRO. 650','250101','CAMPO VERDE UCAYALI/CORONEL PORTILLO/CAMPOVERDE','250102','03 - B001-00000023','','0.000000','0.000000','2024-11-02 00:00:00','2024-11-02 00:00:00','15','ph4Wn7ooUOquecM5ccTUudFEJAhv3T1kH/X7mLaTdGcIf7M2zR6ms3wsXBUx99S98dRjwxoPkHIFrYFiMDMiNqORdv0aCDnI4LdT9RFl2ZaPmGRH0BPYReOFJm8wZD28aAqPhMtMbG2Cd2VfH3ecYSezlzW9ByeQrHZZrFLld9tzW0jema+2892eDfgIN1oaPyYnFBOMA+2BVJ1QzId3oX5Iy+ya/rAEJk+ARn2SWymRyHq65M1Zj0++9xlQaFisUWvJy8OQQVkBoHwFntiTxe+4C3zywb4FZ2oP9bG3ofcrQJjOqby73jxm08Zot31hZJvf+cOaYHbO4gGQ0ytKRw==','ph4Wn7ooUOquecM5ccTUudFEJAhv3T1kH/X7mLaTdGcIf7M2zR6ms3wsXBUx99S98dRjwxoPkHIFrYFiMDMiNqORdv0aCDnI4LdT9RFl2ZaPmGRH0BPYReOFJm8wZD28aAqPhMtMbG2Cd2VfH3ecYSezlzW9ByeQrHZZrFLld9tzW0jema+2892eDfgIN1oaPyYnFBOMA+2BVJ1QzId3oX5Iy+ya/rAEJk+ARn2SWymRyHq65M1Zj0++9xlQaFisUWvJy8OQQVkBoHwFntiTxe+4C3zywb4FZ2oP9bG3ofcrQJjOqby73jxm08Zot31hZJvf+cOaYHbO4gGQ0ytKRw==','0','','','UCAYALI/CORONEL PORTILLO/CAMPOVERDE','-','UCAYALI/CORONEL PORTILLO/CALLERIA','','','CAMPO VERDE UCAYALI/CORONEL PORTILLO/CAMPOVERDE','','','','','RAF','','','','','https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=8UNrXqz2F2ob7BJk573xJINrNkRdK8PSQnuD8EzRrt03z3aq2+dqNThv21TEP/dCAbTHNTXjlVYvhNyZpcrqRA==','-',' ',''),
 (48,'2024-11-02 00:00:00','09','TV01-00000041','-','LAN ELECTRONICS PERU S.A.C.','20607856428','NEGOCIACIONES MELCHOR EMPRESA INDIVIDUAL DE RESPONSABILIDAD LIMITADA','20606697610','','','VENTA',0,'13.000',4,'KGM','Publico','2024-11-02 00:00:00','','','-','0','-','JR. ANTONIO RAIMONDI NRO. 650','250101','AV. MICAELA BASTIDAS NRO. 280 URB. PICHANAKI JUNIN/CHANCHAMAYO/CHANCHAMAYO','120301','01 - F001-00000029','','0.000000','0.000000','2024-11-02 00:00:00','2024-11-02 00:00:00','15','c3VIs+oHNuh17DhyVtOlr3eX0nCdLg31ioV0CzEFbC6yf1vCu9iqVzN+Dou78cofIcGBju4CtmiDPcdjqWq/QRKIu/cNbHuawKfoC6l6cwVKhLzKMVx6EAtLmWRHxIGsHXLn4bTRcWnIBshmRvMcDdoDz4rrLZDOLlBvRnwNpwuLZdofrS8pf/PNmYUU8C6Z/SKBXX3MCbMjzB4nFYeQK/pjU0ZhvFa1+6a+K1lN8bQam5w2zVDh75SP75kUBQeJyOvD/wXzHD2i8jKQsptAtb5zAknogUEpVYWAwG+9P8M/FbrC9tJztEQkWDdkbEWn6zNmT6dOAPuLP/YSPJ3UBA==','c3VIs+oHNuh17DhyVtOlr3eX0nCdLg31ioV0CzEFbC6yf1vCu9iqVzN+Dou78cofIcGBju4CtmiDPcdjqWq/QRKIu/cNbHuawKfoC6l6cwVKhLzKMVx6EAtLmWRHxIGsHXLn4bTRcWnIBshmRvMcDdoDz4rrLZDOLlBvRnwNpwuLZdofrS8pf/PNmYUU8C6Z/SKBXX3MCbMjzB4nFYeQK/pjU0ZhvFa1+6a+K1lN8bQam5w2zVDh75SP75kUBQeJyOvD/wXzHD2i8jKQsptAtb5zAknogUEpVYWAwG+9P8M/FbrC9tJztEQkWDdkbEWn6zNmT6dOAPuLP/YSPJ3UBA==','0','','','JUNIN/CHANCHAMAYO/CHANCHAMAYO','-','UCAYALI/CORONEL PORTILLO/CALLERIA','','','AV. MICAELA BASTIDAS NRO. 280 URB. PICHANAKI JUNIN/CHANCHAMAYO/CHANCHAMAYO','','','','','RAF','','','','','https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=8UNrXqz2F2ob7BJk573xJDOSjhY8OcRUEShPn1yJqqYsFlc4Qng23L7YePheW8bvMIHjEmgVDr9wlt6FX3vxXg==','-',' ',''),
 (49,'2024-11-02 00:00:00','09','TV01-00000042','-','LAN ELECTRONICS PERU S.A.C.','20607856428','CHAHUA TOLENTINO YUDE YANITA','10430416397','','','VENTA',0,'9.100',11,'KGM','Publico','2024-11-02 00:00:00','','','-','0','-','JR. ANTONIO RAIMONDI NRO. 650','250101','AV. 1 DE JUNIO MZA 45 LOTE 01 FRENTE AL PARADERO DE CAMPO VERDE UCAYALI/CORONEL','250102','01 - F001-00000051','','0.000000','0.000000','2024-11-02 00:00:00','2024-11-02 00:00:00','15','jtAxFFSmlXzawkS1HvRybPp78n7FydNlX46Litpc2FyxqirnX1xPwzmTIEHlbcQNBFSkOWn5QZdBkoEw8fGkw9LmSSHeQmh0rPYw4Rz3w97A9sqcDWJAKm0NHDj2wWW/yZvo6rjeO4n9j2OCp8N0T/EmpgZes094dhyA/Ny9qV8uDPfO5IY1d2XgdYI9/ywrDpbmVis6kE5wpKBfy1WFthddbvcFnAKWv7aCkR+7w5XiTpf4pCnoNeLXff7k8u+4jSJqfrcRrYPbHuvNelbhxUYoxH/mO5ZJ2QkLzFfTItxpzzaNfO6l2RoBXEKQfB8i9WKCh+ci7roBc6EnN+/RcQ==','jtAxFFSmlXzawkS1HvRybPp78n7FydNlX46Litpc2FyxqirnX1xPwzmTIEHlbcQNBFSkOWn5QZdBkoEw8fGkw9LmSSHeQmh0rPYw4Rz3w97A9sqcDWJAKm0NHDj2wWW/yZvo6rjeO4n9j2OCp8N0T/EmpgZes094dhyA/Ny9qV8uDPfO5IY1d2XgdYI9/ywrDpbmVis6kE5wpKBfy1WFthddbvcFnAKWv7aCkR+7w5XiTpf4pCnoNeLXff7k8u+4jSJqfrcRrYPbHuvNelbhxUYoxH/mO5ZJ2QkLzFfTItxpzzaNfO6l2RoBXEKQfB8i9WKCh+ci7roBc6EnN+/RcQ==','0','','','UCAYALI/CORONEL PORTILLO/CAMPOVERDE','-','UCAYALI/CORONEL PORTILLO/CALLERIA','','','AV. 1 DE JUNIO MZA 45 LOTE 01 FRENTE AL PARADERO DE CAMPO VERDE UCAYALI/CORONEL PORTILLO/CAMPOVERDE','','','','','RAF','','','','','https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=8UNrXqz2F2ob7BJk573xJEgY+AD0eZnzcvwtScDYAqJligqYRJdANYiGWBRiOg4GEfsgr6pM6WOypPZdMtkJkw==','-',' ',''),
 (50,'2024-11-02 00:00:00','09','TV01-00000043','-','LAN ELECTRONICS PERU S.A.C.','20607856428','TOLENTINO ORBEZO CHEMO','70174979','','','VENTA',0,'13.000',4,'KGM','Publico','2024-11-02 00:00:00','','','-','0','-','JR. ANTONIO RAIMONDI NRO. 650','250101','CURIMANA','250303','03 - B001-00000024','','0.000000','0.000000','2024-11-02 00:00:00','2024-11-02 00:00:00','15','1WY4Y37j3wCgsmlqJdYG525UuhxGG4estzYBMt0iwWhzIA1V+EH5zDJ04bMfolS5z+/MDfA6yDF8LzS/jXMyutvXQAPJk4uNQAV8dVmHJAqKlLVzG/xzoHFuK9PaVCsLbNpIZ34v+ontfNMfmx/xMaUKbsjmBtJBhuhlhII+8+R/g2cT7HtN5h5vaSI4mCn0ygNBa0L9x0MASVfhyfMlTm0gNSkZuudncPfmrbv+9TkkIGNMQ1oUU7Q+JV9UpmIQkJFOTIbOMesrP8+iYBntwTuQZ9HX0G/BCaO0+zo1xNEfq7jSclJ/SqtH8bVv4P1Ou2BYIdaSK2Zp3wuQvfY9tw==','1WY4Y37j3wCgsmlqJdYG525UuhxGG4estzYBMt0iwWhzIA1V+EH5zDJ04bMfolS5z+/MDfA6yDF8LzS/jXMyutvXQAPJk4uNQAV8dVmHJAqKlLVzG/xzoHFuK9PaVCsLbNpIZ34v+ontfNMfmx/xMaUKbsjmBtJBhuhlhII+8+R/g2cT7HtN5h5vaSI4mCn0ygNBa0L9x0MASVfhyfMlTm0gNSkZuudncPfmrbv+9TkkIGNMQ1oUU7Q+JV9UpmIQkJFOTIbOMesrP8+iYBntwTuQZ9HX0G/BCaO0+zo1xNEfq7jSclJ/SqtH8bVv4P1Ou2BYIdaSK2Zp3wuQvfY9tw==','0','','','UCAYALI/PADRE ABAD/CURIMANA','-','UCAYALI/CORONEL PORTILLO/CALLERIA','','','CURIMANA UCAYALI/CORONEL PORTILLO/CALLERIA','','','','','RAF','','','','','https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=8UNrXqz2F2ob7BJk573xJPUZmBhA1KLM1mIGWqlxP5X64JJpbGPHVjhvW8gTq9QNAbTHNTXjlVYvhNyZpcrqRA==','-',' ',''),
 (51,'2024-11-02 00:00:00','09','TV01-00000044','-','LAN ELECTRONICS PERU S.A.C.','20607856428','RODRIGUEZ PASMINO CLAUDIA','77537198','','','VENTA',0,'32.500',10,'KGM','Publico','2024-11-02 00:00:00','','','-','0','-','JR. ANTONIO RAIMONDI NRO. 650','250101','CURIMANA UCAYALI/PADRE ABAD/CURIMANA','250303','03 - B001-00000025','','0.000000','0.000000','2024-11-02 00:00:00','2024-11-02 00:00:00','15','I0ZFOKONTPseCjp0wdsPiz5WvVz7goJt5OD5HQ3INZcYbMsNme1svEVtJzkBO9nHbxdy1WQqqpe3WPP/blrOchm2j15gQCa0fYlvZ0G3IVVDxnBQWJJJuskbZnS25VK57GhBr+X+S8ejIkw8JkG4dWgvZyQzRVbi5w01k2fBIVeN2sNNeeFI/wcPo6oKvx6r0lr8tns4+L5BQbvVlCjQ6Zh8O7ioY5+kmpslLJDVwNFCxlCHgXOK/sOzLlg+3Pudkx4BtoTvumSXw8AL23YsB2KvYAQW+YBeyIV2ECgnKOZfeFkRlWuvAzHHD3N+LaOMBZ8rdWPMTgKqQ6/w4YK6uw==','I0ZFOKONTPseCjp0wdsPiz5WvVz7goJt5OD5HQ3INZcYbMsNme1svEVtJzkBO9nHbxdy1WQqqpe3WPP/blrOchm2j15gQCa0fYlvZ0G3IVVDxnBQWJJJuskbZnS25VK57GhBr+X+S8ejIkw8JkG4dWgvZyQzRVbi5w01k2fBIVeN2sNNeeFI/wcPo6oKvx6r0lr8tns4+L5BQbvVlCjQ6Zh8O7ioY5+kmpslLJDVwNFCxlCHgXOK/sOzLlg+3Pudkx4BtoTvumSXw8AL23YsB2KvYAQW+YBeyIV2ECgnKOZfeFkRlWuvAzHHD3N+LaOMBZ8rdWPMTgKqQ6/w4YK6uw==','0','','','UCAYALI/PADRE ABAD/CURIMANA','-','UCAYALI/CORONEL PORTILLO/CALLERIA','','','CURIMANA UCAYALI/PADRE ABAD/CURIMANA','','','','','RAF','','','','','https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=8UNrXqz2F2ob7BJk573xJIWt4cfBocESGttC6+sskBiAOykbHqlz8p5hw4cmTKFFof6x/slN92L6+gjOQcYvpA==','-',' ','');
/*!40000 ALTER TABLE `guia_cab` ENABLE KEYS */;


--
-- Definition of table `guia_det`
--

DROP TABLE IF EXISTS `guia_det`;
CREATE TABLE `guia_det` (
  `DocEntry` int(10) unsigned NOT NULL DEFAULT '0',
  `CodArticulo_Itm` varchar(20) NOT NULL,
  `Descripcion_Itm` varchar(250) NOT NULL,
  `UM_Itm` varchar(5) DEFAULT NULL,
  `Cantidad_Itm` decimal(18,2) DEFAULT NULL,
  `InformacionAdi1` varchar(250) DEFAULT NULL,
  `InformacionAdi2` varchar(250) DEFAULT NULL,
  `InformacionDec1` decimal(18,2) DEFAULT NULL,
  `InformacionDec2` decimal(18,2) DEFAULT NULL,
  `InformacionFec1` datetime DEFAULT NULL,
  `InformacionFec2` datetime DEFAULT NULL,
  `Objeto` varchar(5) NOT NULL,
  `RUC_Co` varchar(15) NOT NULL DEFAULT '',
  `NroItem` int(10) unsigned NOT NULL,
  `Tipo_Bulto` varchar(50) DEFAULT NULL,
  `NroDocumento` varchar(45) DEFAULT NULL,
  PRIMARY KEY (`DocEntry`,`NroItem`,`CodArticulo_Itm`,`Descripcion_Itm`,`Objeto`,`RUC_Co`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `guia_det`
--

/*!40000 ALTER TABLE `guia_det` DISABLE KEYS */;
INSERT INTO `guia_det` (`DocEntry`,`CodArticulo_Itm`,`Descripcion_Itm`,`UM_Itm`,`Cantidad_Itm`,`InformacionAdi1`,`InformacionAdi2`,`InformacionDec1`,`InformacionDec2`,`InformacionFec1`,`InformacionFec2`,`Objeto`,`RUC_Co`,`NroItem`,`Tipo_Bulto`,`NroDocumento`) VALUES 
 (1,'00001','MOTOGUADAÑA CRAFTOP NTCG520','BX','2.00','','','2.00','0.00','2024-09-24 00:00:00','2024-09-24 00:00:00','15','20607856428',1,'0.00 ','TI01-00000001'),
 (1,'00001','MOTOGUADAÑA CRAFTOP NTCG520','BX','70.00','','','70.00','0.00','2024-09-28 00:00:00','2024-09-28 00:00:00','67','20607856428',1,'0.00 ','TI01-00000002'),
 (2,'00001','MOTOGUADAÑA CRAFTOP NTCG520','BX','2.00','','','2.00','0.00','2024-10-01 00:00:00','2024-10-01 00:00:00','15','20607856428',1,'0.00 ','TV01-00000001'),
 (3,'00001','MOTOGUADAÑA CRAFTOP NTCG520','BX','3.00','','','3.00','0.00','2024-10-03 00:00:00','2024-10-03 00:00:00','15','20607856428',1,'0.00 ','TV01-00000002'),
 (4,'00001','MOTOGUADAÑA CRAFTOP NTCG520','BX','4.00','','','4.00','0.00','2024-10-03 00:00:00','2024-10-03 00:00:00','15','20607856428',1,'0.00 ','TV01-00000003'),
 (5,'00001','MOTOGUADAÑA CRAFTOP NTCG520','BX','4.00','','','0.00','0.00','2024-10-04 00:00:00','2024-10-04 00:00:00','15','20607856428',1,'0.00 ','TV01-00000004'),
 (6,'00001','MOTOGUADAÑA CRAFTOP NTCG520','BX','2.00','','','15.00','0.00','2024-10-05 00:00:00','2024-10-05 00:00:00','15','20607856428',1,'0.00 ','TV01-00000005'),
 (7,'00001','MOTOGUADAÑA CRAFTOP NTCG520','BX','2.00','','','15.00','0.00','2024-10-05 00:00:00','2024-10-05 00:00:00','15','20607856428',1,'0.00 ','TV01-00000006'),
 (8,'00001','MOTOGUADAÑA CRAFTOP NTCG520','BX','4.00','','','30.00','0.00','2024-10-07 00:00:00','2024-10-07 00:00:00','15','20607856428',1,'0.00 ','TV01-00000007'),
 (9,'00001','MOTOGUADAÑA CRAFTOP NTCG520','BX','10.00','','','75.00','0.00','2024-10-07 00:00:00','2024-10-07 00:00:00','15','20607856428',1,'0.00 ','TV01-00000008'),
 (10,'00001','MOTOGUADAÑA CRAFTOP NTCG520','BX','4.00','','','30.00','0.00','2024-10-07 00:00:00','2024-10-07 00:00:00','15','20607856428',1,'0.00 ','TV01-00000009'),
 (12,'00001','MOTOGUADAÑA CRAFTOP NTCG520','BX','4.00','','','30.00','0.00','2024-10-17 00:00:00','2024-10-17 00:00:00','15','20607856428',1,'0.00 ','TV01-00000010'),
 (13,'00001','MOTOGUADAÑA CRAFTOP NTCG520','BX','3.00','','','22.50','0.00','2024-10-17 00:00:00','2024-10-17 00:00:00','15','20607856428',1,'0.00 ','TV01-00000011'),
 (14,'00001','MOTOGUADAÑA CRAFTOP NTCG520','BX','10.00','','','75.00','0.00','2024-10-17 00:00:00','2024-10-17 00:00:00','15','20607856428',1,'0.00 ','TV01-00000012'),
 (15,'00001','MOTOGUADAÑA CRAFTOP NTCG520','BX','4.00','','','30.00','0.00','2024-10-17 00:00:00','2024-10-17 00:00:00','15','20607856428',1,'0.00 ','TV01-00000013'),
 (16,'00001','MOTOGUADAÑA CRAFTOP NTCG520','BX','1.00','','','7.50','0.00','2024-10-17 00:00:00','2024-10-17 00:00:00','15','20607856428',1,'0.00 ','TV01-00000014'),
 (17,'00001','MOTOGUADAÑA CRAFTOP NTCG520','BX','6.00','','','45.00','0.00','2024-10-17 00:00:00','2024-10-17 00:00:00','15','20607856428',1,'0.00 ','TV01-00000015'),
 (18,'00001','MOTOGUADAÑA CRAFTOP NTCG520','BX','2.00','','','15.00','0.00','2024-10-17 00:00:00','2024-10-17 00:00:00','15','20607856428',1,'0.00 ','TV01-00000016'),
 (19,'00001','MOTOGUADAÑA CRAFTOP NTCG520','BX','10.00','','','75.00','0.00','2024-10-19 00:00:00','2024-10-19 00:00:00','15','20607856428',1,'0.00 ','TV02-00000001'),
 (20,'00001','MOTOGUADAÑA CRAFTOP NTCG520','BX','5.00','','','37.50','0.00','2024-10-19 00:00:00','2024-10-19 00:00:00','15','20607856428',1,'0.00 ','TV01-00000017'),
 (21,'00001','MOTOGUADAÑA CRAFTOP NTCG520','BX','10.00','','','75.00','0.00','2024-10-20 00:00:00','2024-10-20 00:00:00','15','20607856428',1,'0.00 ','TV02-00000002'),
 (22,'00001','MOTOGUADAÑA CRAFTOP NTCG520','BX','20.00','','','150.00','0.00','2024-10-20 00:00:00','2024-10-20 00:00:00','15','20607856428',1,'0.00 ','TV02-00000003'),
 (23,'00001','MOTOGUADAÑA CRAFTOP NTCG520','BX','2.00','','','15.00','0.00','2024-10-25 00:00:00','2024-10-25 00:00:00','15','20607856428',1,'0.00 ','TV01-00000018'),
 (24,'00001','MOTOGUADAÑA CRAFTOP NTCG520','BX','30.00','','','225.00','0.00','2024-10-25 00:00:00','2024-10-25 00:00:00','15','20607856428',1,'0.00 ','TV02-00000004'),
 (25,'00001','MOTOGUADAÑA CRAFTOP NTCG520','BX','10.00','','','75.00','0.00','2024-10-25 00:00:00','2024-10-25 00:00:00','15','20607856428',1,'0.00 ','TV01-00000019'),
 (26,'00001','MOTOGUADAÑA CRAFTOP NTCG520','NIU','1.00','','','6.50','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',1,'0.00 ','TV01-00000020'),
 (27,'00001','MOTOGUADAÑA CRAFTOP NTCG520','NIU','5.00','','','32.50','0.00','2024-10-30 00:00:00','2024-10-30 00:00:00','15','20607856428',1,'0.00 ','TV01-00000021'),
 (28,'00024','TUBOS COMPLETOS,?26×1.5×1500 PARA MOTOGUADAÑA NTCG520','NIU','6.00','','','8.03','0.00','2024-10-30 00:00:00','2024-10-30 00:00:00','15','20607856428',1,'0.00 ','TI01-00000003'),
 (28,'00015','CARBURADOR PARA MOTOGUADAÑA NTCG520','NIU','6.00','','','0.84','0.00','2024-10-30 00:00:00','2024-10-30 00:00:00','15','20607856428',2,'0.00 ','TI01-00000003'),
 (29,'00001','MOTOGUADAÑA CRAFTOP NTCG520','NIU','10.00','','','65.00','0.00','2024-10-30 00:00:00','2024-10-30 00:00:00','15','20607856428',1,'0.00 ','TV01-00000022'),
 (30,'00055','\"ROLLO DE CADENA CUADRADA, 0.325\"\", 0.058 PARA MOTOSIERRA NT5800\"','NIU','8.00','','','71.00','0.00','2024-10-30 00:00:00','2024-10-30 00:00:00','15','20607856428',1,'0.00 ','TV01-00000023'),
 (31,'00056','\"ROLLO DE CADENA, REDONDA, 0.325\"\", 0.058 PARA MOTOSIERRA NT5800\"','NIU','4.00','','','35.50','0.00','2024-10-30 00:00:00','2024-10-30 00:00:00','15','20607856428',1,'0.00 ','TV01-00000024'),
 (32,'00028','MANGO COMPLETO EN U PARA MOTOGUADAÑA NTCG520','NIU','1.00','','','0.34','0.00','2024-10-30 00:00:00','2024-10-30 00:00:00','15','20607856428',1,'0.00 ','TV01-00000025'),
 (33,'00028','MANGO COMPLETO EN U PARA MOTOGUADAÑA NTCG520','NIU','9.00','','','3.02','0.00','2024-10-30 00:00:00','2024-10-30 00:00:00','15','20607856428',1,'0.00 ','TV01-00000026'),
 (34,'00022','ACEITERO PARA MOTOGUADAÑA NTCG520','NIU','50.00','','','0.80','0.00','2024-10-31 00:00:00','2024-10-31 00:00:00','15','20607856428',1,'0.00 ','TV01-00000027'),
 (35,'00001','MOTOGUADAÑA CRAFTOP NTCG520','NIU','5.00','','','32.50','0.00','2024-10-31 00:00:00','2024-10-31 00:00:00','15','20607856428',1,'0.00 ','TV01-00000028'),
 (35,'00006','FUMIGADOR A MOTOR CRAFTOP NTS768','NIU','5.00','','','0.00','0.00','2024-10-31 00:00:00','2024-10-31 00:00:00','15','20607856428',2,'0.00 ','TV01-00000028'),
 (36,'00020','KIT DE FILTRO DE COMBUSTIBLE PARA MOTOGUADAÑA NTCG520','NIU','36.00','','','1.04','0.00','2024-10-31 00:00:00','2024-10-31 00:00:00','15','20607856428',1,'0.00 ','TV01-00000029'),
 (36,'00024','TUBOS COMPLETOS,?26×1.5×1500 PARA MOTOGUADAÑA NTCG520','NIU','12.00','','','16.07','0.00','2024-10-31 00:00:00','2024-10-31 00:00:00','15','20607856428',2,'0.00 ','TV01-00000029'),
 (36,'00023','TUBOS COMPLETOS,?28×1.5×1500 PARA MOTOGUADAÑA NTCG520','NIU','12.00','','','16.39','0.00','2024-10-31 00:00:00','2024-10-31 00:00:00','15','20607856428',3,'0.00 ','TV01-00000029'),
 (36,'00013','CILINDRO CON PISTON COMPLETO PARA MOTOGUADAÑA NTCG520','NIU','9.00','','','3.40','0.00','2024-10-31 00:00:00','2024-10-31 00:00:00','15','20607856428',4,'0.00 ','TV01-00000029'),
 (36,'00027','CORREA PARA MOTOGUADAÑA NTCG520','NIU','36.00','','','13.68','0.00','2024-10-31 00:00:00','2024-10-31 00:00:00','15','20607856428',5,'0.00 ','TV01-00000029'),
 (36,'00022','ACEITERO PARA MOTOGUADAÑA NTCG520','NIU','40.00','','','0.64','0.00','2024-10-31 00:00:00','2024-10-31 00:00:00','15','20607856428',6,'0.00 ','TV01-00000029'),
 (37,'00015','CARBURADOR PARA MOTOGUADAÑA NTCG520','NIU','100.00','','','14.00','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',1,'0.00 ','TV01-00000030'),
 (38,'00001','MOTOGUADAÑA CRAFTOP NTCG520','NIU','1.00','','','6.50','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',1,'0.00 ','TV01-00000031'),
 (39,'00019','CONJUNTO DE TANQUE DE COMBUSTIBLE PARA MOTOGUADAÑA NTCG520','NIU','12.00','','','4.08','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',1,'0.00 ','TV01-00000032'),
 (39,'00020','KIT DE FILTRO DE COMBUSTIBLE PARA MOTOGUADAÑA NTCG520','NIU','50.00','','','1.45','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',2,'0.00 ','TV01-00000032'),
 (39,'00037','BOMBA DE ACEITE PARA MOTOSIERRA NT5800','NIU','12.00','','','1.08','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',3,'0.00 ','TV01-00000032'),
 (39,'00057','\"CADENA DE 24\'\', REDONDA, 0.325\"\", 0.058\"\" PARA MOTOSIERRA NT5800\"','NIU','30.00','','','12.00','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',4,'0.00 ','TV01-00000032'),
 (39,'00060','TANQUE DE COMBUSTIBLE PARA MOTOGUADAÑA NTS768','NIU','12.00','','','2.28','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',5,'0.00 ','TV01-00000032'),
 (39,'00061','PISTOLA RECTA MEDIA DE 90 CM PARA MOTOGUADAÑA NTS768','NIU','12.00','','','3.36','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',6,'0.00 ','TV01-00000032'),
 (40,'00049','CARBURADOR PARA MOTOSIERRA NT5800','NIU','10.00','','','1.35','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',1,'0.00 ','TV01-00000033'),
 (40,'00045','AMORTIGUADOR (CORTO) PARA MOTOSIERRA NT5800','NIU','50.00','','','0.50','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',2,'0.00 ','TV01-00000033'),
 (40,'00048','AMORTIGUADOR (LARGO) PARA MOTOSIERRA NT5800','NIU','50.00','','','0.50','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',3,'0.00 ','TV01-00000033'),
 (40,'00046','CUERPO RECOGEDOR PARA MOTOSIERRA NT5800','NIU','50.00','','','0.95','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',4,'0.00 ','TV01-00000033'),
 (41,'00001','MOTOGUADAÑA CRAFTOP NTCG520','NIU','15.00','','','97.50','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',1,'0.00 ','TV01-00000034'),
 (41,'00057','\"CADENA DE 24\'\', REDONDA, 0.325\"\", 0.058\"\" PARA MOTOSIERRA NT5800\"','NIU','100.00','','','40.00','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',2,'0.00 ','TV01-00000034'),
 (41,'00006','FUMIGADOR A MOTOR CRAFTOP NTS768','NIU','4.00','','','40.00','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',3,'0.00 ','TV01-00000034'),
 (42,'00024','TUBOS COMPLETOS,?26×1.5×1500 PARA MOTOGUADAÑA NTCG520','NIU','24.00','','','32.14','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',1,'0.00 ','TV01-00000035'),
 (42,'00013','CILINDRO CON PISTON COMPLETO PARA MOTOGUADAÑA NTCG520','NIU','24.00','','','9.07','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',2,'0.00 ','TV01-00000035'),
 (42,'00022','ACEITERO PARA MOTOGUADAÑA NTCG520','NIU','100.00','','','1.60','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',3,'0.00 ','TV01-00000035'),
 (42,'00058','LLAVE EN T PARA MOTOSIERRA NT5800','NIU','100.00','','','5.40','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',4,'0.00 ','TV01-00000035'),
 (42,'00014','JUNTA DE CILINDRO COMPLETA PARA MOTOGUADAÑA NTCG520','NIU','48.00','','','1.20','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',5,'0.00 ','TV01-00000035'),
 (42,'00063','ESPADA DE PUNTA SOLIDA DE 24\'\' PARA MOTOSIERRA NT5800','NIU','12.00','','','14.40','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',6,'0.00 ','TV01-00000035'),
 (42,'00057','\"CADENA DE 24\'\', REDONDA, 0.325\"\", 0.058\"\" PARA MOTOSIERRA NT5800\"','NIU','200.00','','','80.00','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',7,'0.00 ','TV01-00000035'),
 (42,'00006','FUMIGADOR A MOTOR CRAFTOP NTS768','NIU','6.00','','','60.00','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',8,'0.00 ','TV01-00000035'),
 (42,'00055','\"ROLLO DE CADENA CUADRADA, 0.325\"\", 0.058 PARA MOTOSIERRA NT5800\"','NIU','10.00','','','88.75','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',9,'0.00 ','TV01-00000035'),
 (43,'00024','TUBOS COMPLETOS,?26×1.5×1500 PARA MOTOGUADAÑA NTCG520','NIU','3.00','','','4.02','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',1,'0.00 ','TV01-00000036'),
 (43,'00023','TUBOS COMPLETOS,?28×1.5×1500 PARA MOTOGUADAÑA NTCG520','NIU','3.00','','','4.10','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',2,'0.00 ','TV01-00000036'),
 (43,'00033','TUERCA  PARA MOTOGUADAÑA NTCG520','NIU','10.00','','','0.17','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',3,'0.00 ','TV01-00000036'),
 (44,'00049','CARBURADOR PARA MOTOSIERRA NT5800','NIU','20.00','','','2.70','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',1,'0.00 ','TV01-00000037'),
 (44,'00013','CILINDRO CON PISTON COMPLETO PARA MOTOGUADAÑA NTCG520','NIU','20.00','','','7.56','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',2,'0.00 ','TV01-00000037'),
 (44,'00045','AMORTIGUADOR (CORTO) PARA MOTOSIERRA NT5800','NIU','20.00','','','0.20','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',3,'0.00 ','TV01-00000037'),
 (44,'00048','AMORTIGUADOR (LARGO) PARA MOTOSIERRA NT5800','NIU','20.00','','','0.20','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',4,'0.00 ','TV01-00000037'),
 (44,'00015','CARBURADOR PARA MOTOGUADAÑA NTCG520','NIU','20.00','','','2.80','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',5,'0.00 ','TV01-00000037'),
 (44,'00024','TUBOS COMPLETOS,?26×1.5×1500 PARA MOTOGUADAÑA NTCG520','NIU','10.00','','','13.39','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',6,'0.00 ','TV01-00000037'),
 (44,'00021','CONJUNTO DE PLACA DE CONEXION, 9 DIENTES, ?26MM PARA MOTOGUADAÑA NTCG520','NIU','20.00','','','10.20','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',7,'0.00 ','TV01-00000037'),
 (44,'00069','CILINDRO CON PISTON COMPLETO PARA MOTOSIERRA NT5800','NIU','15.00','','','0.00','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',8,'0.00 ','TV01-00000037'),
 (44,'00019','CONJUNTO DE TANQUE DE COMBUSTIBLE PARA MOTOGUADAÑA NTCG520','NIU','15.00','','','5.10','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',9,'0.00 ','TV01-00000037'),
 (44,'00037','BOMBA DE ACEITE PARA MOTOSIERRA NT5800','NIU','15.00','','','1.35','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',10,'0.00 ','TV01-00000037'),
 (44,'00056','\"ROLLO DE CADENA, REDONDA, 0.325\"\", 0.058 PARA MOTOSIERRA NT5800\"','NIU','2.00','','','17.75','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',11,'0.00 ','TV01-00000037'),
 (44,'00068','PIÑON CON RUEDA PARA MOTOSIERRA NT5800','NIU','50.00','','','4.50','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',12,'0.00 ','TV01-00000037'),
 (45,'00049','CARBURADOR PARA MOTOSIERRA NT5800','NIU','50.00','','','6.75','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',1,'0.00 ','TV01-00000038'),
 (45,'00015','CARBURADOR PARA MOTOGUADAÑA NTCG520','NIU','50.00','','','7.00','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',2,'0.00 ','TV01-00000038'),
 (45,'00056','\"ROLLO DE CADENA, REDONDA, 0.325\"\", 0.058 PARA MOTOSIERRA NT5800\"','NIU','5.00','','','44.38','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',3,'0.00 ','TV01-00000038'),
 (45,'00006','FUMIGADOR A MOTOR CRAFTOP NTS768','NIU','10.00','','','100.00','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',4,'0.00 ','TV01-00000038'),
 (45,'00044','RESORTE PARA MOTOSIERRA NT5800','NIU','100.00','','','1.40','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',5,'0.00 ','TV01-00000038'),
 (46,'00006','FUMIGADOR A MOTOR CRAFTOP NTS768','NIU','5.00','','','50.00','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',1,'0.00 ','TV01-00000039'),
 (47,'00001','MOTOGUADAÑA CRAFTOP NTCG520','NIU','2.00','','','13.00','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',1,'0.00 ','TV01-00000040'),
 (48,'00001','MOTOGUADAÑA CRAFTOP NTCG520','NIU','2.00','','','13.00','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',1,'0.00 ','TV01-00000041'),
 (49,'00024','TUBOS COMPLETOS,?26×1.5×1500 PARA MOTOGUADAÑA NTCG520','NIU','3.00','','','4.02','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',1,'0.00 ','TV01-00000042'),
 (49,'00023','TUBOS COMPLETOS,?28×1.5×1500 PARA MOTOGUADAÑA NTCG520','NIU','3.00','','','4.10','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',2,'0.00 ','TV01-00000042'),
 (49,'00061','PISTOLA RECTA MEDIA DE 90 CM PARA MOTOGUADAÑA NTS768','NIU','2.00','','','0.56','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',3,'0.00 ','TV01-00000042'),
 (49,'00015','CARBURADOR PARA MOTOGUADAÑA NTCG520','NIU','3.00','','','0.42','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',4,'0.00 ','TV01-00000042'),
 (50,'00001','MOTOGUADAÑA CRAFTOP NTCG520','NIU','2.00','','','13.00','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',1,'0.00 ','TV01-00000043'),
 (51,'00001','MOTOGUADAÑA CRAFTOP NTCG520','NIU','5.00','','','32.50','0.00','2024-11-02 00:00:00','2024-11-02 00:00:00','15','20607856428',1,'0.00 ','TV01-00000044');
/*!40000 ALTER TABLE `guia_det` ENABLE KEYS */;


--
-- Definition of table `historial_sesiones`
--

DROP TABLE IF EXISTS `historial_sesiones`;
CREATE TABLE `historial_sesiones` (
  `idsesion` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `fechainicio` date NOT NULL,
  `fechafin` date DEFAULT NULL,
  `ip` varchar(45) NOT NULL,
  `agente` varchar(15) NOT NULL,
  `iduser` int(10) unsigned NOT NULL,
  PRIMARY KEY (`idsesion`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `historial_sesiones`
--

/*!40000 ALTER TABLE `historial_sesiones` DISABLE KEYS */;
/*!40000 ALTER TABLE `historial_sesiones` ENABLE KEYS */;


--
-- Definition of table `proveedores`
--

DROP TABLE IF EXISTS `proveedores`;
CREATE TABLE `proveedores` (
  `idproveedor` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `razonsocial` varchar(200) NOT NULL,
  `ruc` varchar(11) NOT NULL,
  `estado` char(2) NOT NULL DEFAULT '1',
  PRIMARY KEY (`idproveedor`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `proveedores`
--

/*!40000 ALTER TABLE `proveedores` DISABLE KEYS */;
/*!40000 ALTER TABLE `proveedores` ENABLE KEYS */;


--
-- Definition of table `reset_password`
--

DROP TABLE IF EXISTS `reset_password`;
CREATE TABLE `reset_password` (
  `idreset` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `fecha` datetime NOT NULL,
  `token` varchar(15) NOT NULL,
  `expirado` char(1) NOT NULL DEFAULT '0',
  `email` varchar(150) NOT NULL,
  `idempresa` int(10) unsigned NOT NULL,
  PRIMARY KEY (`idreset`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `reset_password`
--

/*!40000 ALTER TABLE `reset_password` DISABLE KEYS */;
/*!40000 ALTER TABLE `reset_password` ENABLE KEYS */;


--
-- Definition of table `retencion_cab`
--

DROP TABLE IF EXISTS `retencion_cab`;
CREATE TABLE `retencion_cab` (
  `idretencion` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `FecEmiRet` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `SerieRet` varchar(4) NOT NULL DEFAULT '',
  `NumRet` varchar(8) NOT NULL DEFAULT '',
  `RucEmisor` varchar(20) NOT NULL DEFAULT '',
  `RazonSocialEmisor` varchar(100) NOT NULL DEFAULT '',
  `DireccionFiscalEmisor` varchar(100) NOT NULL DEFAULT '',
  `ProvinciaFiscalEmisor` varchar(45) NOT NULL DEFAULT '',
  `DepartamentoFiscalEmisor` varchar(45) NOT NULL DEFAULT '',
  `DistritoFiscalEmisor` varchar(45) NOT NULL DEFAULT '',
  `RucProveedor` varchar(20) NOT NULL DEFAULT '',
  `RazonSocialProveedor` varchar(100) NOT NULL DEFAULT '',
  `DireccionFiscalProveedor` varchar(100) NOT NULL DEFAULT '',
  `TasaRet` decimal(3,2) NOT NULL DEFAULT '0.00',
  `ImporteTotalRetenidoSOL` decimal(18,2) NOT NULL DEFAULT '0.00',
  `MonedaTotalRetenido` varchar(3) NOT NULL DEFAULT '',
  `ImporteTotalPagadoSOL` decimal(18,2) NOT NULL DEFAULT '0.00',
  `MonedaTotalPagado` varchar(3) NOT NULL DEFAULT '',
  `DocNum` int(11) NOT NULL DEFAULT '0',
  `tipo_doc` varchar(2) NOT NULL DEFAULT '',
  `EstadoSunat` varchar(4) DEFAULT NULL,
  `DescripcionLeyenda` varchar(250) DEFAULT NULL,
  `Firma` text,
  `ValorResumen` varchar(250) DEFAULT NULL,
  `EnviarCorreo` varchar(1) DEFAULT 'N',
  `notificado` smallint(5) unsigned NOT NULL DEFAULT '0',
  `fecha_notificacion` datetime DEFAULT NULL,
  `fecha_notificacion_baja` datetime DEFAULT NULL,
  PRIMARY KEY (`idretencion`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `retencion_cab`
--

/*!40000 ALTER TABLE `retencion_cab` DISABLE KEYS */;
/*!40000 ALTER TABLE `retencion_cab` ENABLE KEYS */;


--
-- Definition of table `retencion_det`
--

DROP TABLE IF EXISTS `retencion_det`;
CREATE TABLE `retencion_det` (
  `iddetalleretencion` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `TipoDocRelacionado` varchar(2) NOT NULL DEFAULT '',
  `SerieDocRelacionado` varchar(4) NOT NULL DEFAULT '',
  `NumDocRelacionado` varchar(10) NOT NULL DEFAULT '',
  `FecDocRelacionado` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `ImporteTotalDocRelacionado` decimal(18,2) NOT NULL DEFAULT '0.00',
  `MonedaDocRelacionado` varchar(3) NOT NULL DEFAULT '',
  `FechaPago` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `NumeroPago` int(10) unsigned NOT NULL DEFAULT '0',
  `ImportePago` decimal(18,2) NOT NULL DEFAULT '0.00',
  `MonedaImportePago` varchar(3) NOT NULL DEFAULT '',
  `ImporteRetenidoSOL` decimal(18,2) NOT NULL DEFAULT '0.00',
  `MonedaImporteRetenido` varchar(3) NOT NULL DEFAULT '',
  `FechaRetencion` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `NetoPagarSOL` decimal(18,2) NOT NULL DEFAULT '0.00',
  `MonedaMontoNeto` varchar(3) NOT NULL DEFAULT '',
  `MonedaDocReferencia` varchar(3) NOT NULL DEFAULT '',
  `TipoCambioAplicado` decimal(12,6) NOT NULL DEFAULT '0.000000',
  `FechaTCAplicado` varchar(10) NOT NULL DEFAULT '',
  `DocNum` int(10) unsigned NOT NULL DEFAULT '0',
  `tipo_doc` varchar(2) NOT NULL DEFAULT '',
  `ImportePago_Print` decimal(18,2) NOT NULL DEFAULT '0.00',
  `RucEmisor` varchar(30) DEFAULT NULL,
  PRIMARY KEY (`iddetalleretencion`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `retencion_det`
--

/*!40000 ALTER TABLE `retencion_det` DISABLE KEYS */;
/*!40000 ALTER TABLE `retencion_det` ENABLE KEYS */;


--
-- Definition of table `users`
--

DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
  `iduser` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `username` varchar(45) NOT NULL,
  `pasword` varchar(60) NOT NULL,
  `estado` char(2) NOT NULL DEFAULT '1',
  `lastvisit` datetime DEFAULT NULL,
  `lastuserchange` varchar(45) DEFAULT 'U',
  `idemp_clie` int(10) unsigned NOT NULL,
  PRIMARY KEY (`iduser`),
  KEY `FK_users_1` (`idemp_clie`),
  CONSTRAINT `FK_users_1` FOREIGN KEY (`idemp_clie`) REFERENCES `empresa_cliente` (`idemp_clie`)
) ENGINE=InnoDB AUTO_INCREMENT=67 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `users`
--

/*!40000 ALTER TABLE `users` DISABLE KEYS */;
INSERT INTO `users` (`iduser`,`username`,`pasword`,`estado`,`lastvisit`,`lastuserchange`,`idemp_clie`) VALUES 
 (1,'10250095631','19b312f6703e1ad55faa25e5bf42bd22','1','2024-09-19 23:56:13','U',1),
 (2,'10402499732','02740fa0ecf87f04789b6d64bd49b911','1','2024-09-20 00:08:48','U',2),
 (3,'20610822216','2ea5b00923e6d7a3d5a266e5e2b8210a','1','2024-09-22 00:43:15','U',3),
 (4,'20610822216','2ea5b00923e6d7a3d5a266e5e2b8210a','1','2024-09-22 17:25:05','U',4),
 (5,'20610822216','2ea5b00923e6d7a3d5a266e5e2b8210a','1','2024-09-22 17:26:00','U',5),
 (6,'10480264474','c50d06449f13ffc04e9805370fc44da6','1','2024-09-24 18:23:36','U',6),
 (7,'10480264474','c50d06449f13ffc04e9805370fc44da6','1','2024-09-24 18:33:22','U',7),
 (8,'10229661243','7f1e168f36f086b72662f6b8974acf0e','1','2024-09-27 18:22:38','U',8),
 (9,'10229630887','936f62d49ea3f4e330d990e644b044b6','1','2024-09-27 18:22:42','U',9),
 (10,'10231676070','b6dab7f2d5b9c0f421fe8082ea91f99d','1','2024-09-27 18:22:47','U',10),
 (11,'20610579231','647aa8ec49605febed92f6ac6dc88bce','1','2024-09-27 18:22:51','U',11),
 (12,'10482000504','8120f091bc8b7fdb75e74ece3d2c9ebe','1','2024-09-27 18:22:54','U',12),
 (13,'10229604151','f1379eb805650f2c58132ecd02a9868f','1','2024-09-27 18:22:59','U',13),
 (14,'20600843410','de8e89a30e95f7642a8319e5028cb1d5','1','2024-09-27 18:23:03','U',14),
 (15,'10209623604','68ed3041ecab27a25007cf62b3ed6005','1','2024-09-27 18:23:08','U',15),
 (16,'76225612','71153d0277b7cb1797628b940a89330a','1','2024-09-27 18:23:54','U',16),
 (17,'20054848','9abc5b37ea9e3ec1f4c411fddb8632e1','1','2024-09-27 18:23:58','U',17),
 (18,'45828102','a4c3ed143c0702a042bdaf01c8a1d7c6','1','2024-09-27 18:24:03','U',18),
 (19,'01014443','e5f25f8171a624f40a2cf233ff7327c9','1','2024-09-27 18:24:06','U',19),
 (20,'76801405','dbfbee75993895c08477c78a00356eb5','1','2024-09-27 18:24:10','U',20),
 (21,'44944701','978b392294093a2db67389b1a63987a9','1','2024-09-27 18:24:18','U',21),
 (22,'46542491','f479aa2a654563d746b10d0eecd74fdf','1','2024-09-27 18:24:32','U',22),
 (23,'20608217771','19bbdd24619776e2e7e6a56b2c0e98a1','1','2024-10-05 23:03:35','U',23),
 (24,'10435900025','8e42d8a34fb68ce7f92b19fe8d213f50','1','2024-10-05 23:03:39','U',24),
 (25,'10201200259','5dc558c5e9dba02b73430d1185941813','1','2024-10-05 23:03:43','U',25),
 (26,'20609594625','7bfef90db1d84251c154d39d9de59a9f','1','2024-10-05 23:03:49','U',26),
 (27,'10761275122','d093e21c4749cbc894f4c81f8cea2da2','1','2024-10-05 23:03:52','U',27),
 (28,'20612989924','0bebeb1f2fbdbf79a8a5f135375efe72','1','2024-10-05 23:03:56','U',28),
 (29,'10198429185','138efc0ebd11fe81a4f31426a4efd7df','1','2024-10-05 23:04:01','U',29),
 (30,'10415326888','d3b38f6959309de65600857cad6b4ea5','1','2024-10-05 23:04:08','U',30),
 (31,'10411303468','c3cd307ec50ffbcf3d537ffe3ff3f6e5','1','2024-10-07 18:54:10','U',31),
 (32,'21553877','e6c26f0760967fdbd314711c36e29543','1','2024-10-07 19:54:19','U',32),
 (33,'10413616137','e2bd2ce63ec1bce77f0a5a485051bed9','1','2024-10-17 20:09:00','U',33),
 (34,'10078423353','30689d8db68794a8b81687a830d1a27a','1','2024-10-17 20:09:04','U',34),
 (35,'10453884266','683b0c57947d26319472323b2ccf6335','1','2024-10-17 20:09:08','U',35),
 (36,'20611940719','f6e6f95bd26ca582f391a7bb8e9539dc','1','2024-10-17 20:09:12','U',36),
 (37,'20611676213','3178662de7278813db74c6d599e64196','1','2024-10-17 20:09:20','U',37),
 (38,'10701085944','95539df47721e2ce680b6911da06522c','1','2024-10-17 20:09:24','U',38),
 (39,'20600712277','f9aa04ba871b20725bc04dcc8ccc0eb1','1','2024-10-21 21:38:19','U',39),
 (40,'10705006356','ed20530e62bb0006bf0b4c6d36709420','1','2024-10-21 21:38:25','U',40),
 (41,'20606697610','13894d3b0a58619175c188a0e449509f','1','2024-10-21 21:38:30','U',41),
 (42,'10482016150','8e951781953fdf154bc1eac962d2e138','1','2024-10-21 21:38:34','U',42),
 (43,'20567134335','fa6428c991bd24f4d0367ebd67a8ddcf','1','2024-10-21 21:38:39','U',43),
 (44,'45177725','a844d5beaca0324ded7df6d76a101884','1','2024-10-21 21:39:14','U',44),
 (45,'10483452441','7c0bc017bf6dce1c27cc16ce24aeb447','1','2024-10-23 17:28:07','U',45),
 (46,'10225230256','83716d3235a2b6a88cc97c74d3f84ddd','1','2024-10-23 18:04:33','U',46),
 (47,'20612938751','33699c43bc60f7e1a1f1cb7a4bad548c','1','2024-10-30 11:25:02','U',47),
 (48,'10427799421','48301f868d1d6ea43043da6ed19c6fd1','1','2024-10-30 11:25:08','U',48),
 (49,'20609354683','89da43b6e4fb25b571a4197cbac52bc4','1','2024-10-30 11:25:13','U',49),
 (50,'20603965885','5de799b6319e631b118c2fb9468c3d80','1','2024-10-30 11:25:24','U',50),
 (51,'20609072459','0901e9c919e2c0468eb261fe178bcdda','1','2024-10-30 11:25:33','U',51),
 (52,'20611068442','c3b201444b47e80ad465b7691fcfd70a','1','2024-10-31 10:49:29','U',52),
 (53,'10479836626','f5fc4eeacd0b783b9d01b4acd4892390','1','2024-11-02 10:33:23','U',53),
 (54,'20393682001','82a7ebb2f4edc03ced42727b00b710c1','1','2024-11-02 10:33:27','U',54),
 (55,'10001520585','164274c81a22556e724b4e5dbf19b7a1','1','2024-11-02 10:33:32','U',55),
 (56,'10443951160','73ba8d3adfbe4583ef28e62c811bbdc1','1','2024-11-02 10:33:37','U',56),
 (57,'10472160546','9d1c84186c63027623b34990f4a266b2','1','2024-11-02 10:33:42','U',57),
 (58,'00076750','53521632fed052b878bd8bed29daada2','1','2024-11-02 10:49:06','U',58),
 (59,'70796705','086b18e6967302a03e97a923ce1b4a01','1','2024-11-02 10:49:09','U',59),
 (60,'60597958','17f83a49c285cd4e2f8aa2b258536c96','1','2024-11-02 10:49:19','U',60),
 (61,'74143781','097436426ff5f24a465383dd4980798f','1','2024-11-02 10:49:24','U',61),
 (62,'44723350','9759faeafe8b8fd1ae8f84289c52f79c','1','2024-11-02 10:49:28','U',62),
 (63,'40575289','2e865a4a0649d3bb0a5412c82b97dbea','1','2024-11-02 10:49:33','U',63),
 (64,'42983548','aae255d0ed04ef8f2a653b5af5a6051a','1','2024-11-02 10:49:37','U',64),
 (65,'10430416397','27cbd7ef5f4f3cb57cc79a1ebbd28d90','1','2024-11-02 12:56:57','U',65),
 (66,'43842645','5721907ba5d102805735e1c84b51132f','1','2024-11-02 12:57:36','U',66);
/*!40000 ALTER TABLE `users` ENABLE KEYS */;

--
-- Create schema intranet
--

CREATE DATABASE IF NOT EXISTS intranet;
USE intranet;

--
-- Definition of table `accesos`
--

DROP TABLE IF EXISTS `accesos`;
CREATE TABLE `accesos` (
  `idacceso` int(11) NOT NULL AUTO_INCREMENT,
  `idusuario` int(11) NOT NULL,
  `idopcion` int(11) NOT NULL,
  `estado` smallint(5) unsigned NOT NULL DEFAULT '1',
  PRIMARY KEY (`idacceso`),
  UNIQUE KEY `idacceso_UNIQUE` (`idacceso`),
  KEY `FK_accesos_1` (`idusuario`),
  KEY `FK_accesos_2` (`idopcion`),
  CONSTRAINT `FK_accesos_1` FOREIGN KEY (`idusuario`) REFERENCES `usuarios` (`idusuario`),
  CONSTRAINT `FK_accesos_2` FOREIGN KEY (`idopcion`) REFERENCES `opciones` (`idopcion`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `accesos`
--

/*!40000 ALTER TABLE `accesos` DISABLE KEYS */;
INSERT INTO `accesos` (`idacceso`,`idusuario`,`idopcion`,`estado`) VALUES 
 (1,1,1,1),
 (2,1,2,1),
 (3,1,3,1),
 (4,2,1,1);
/*!40000 ALTER TABLE `accesos` ENABLE KEYS */;


--
-- Definition of table `modulos`
--

DROP TABLE IF EXISTS `modulos`;
CREATE TABLE `modulos` (
  `idmodulo` int(11) NOT NULL AUTO_INCREMENT,
  `codigo` varchar(4) DEFAULT NULL,
  `descripcion` varchar(150) DEFAULT NULL,
  `orden` int(11) DEFAULT NULL,
  `creaidusuario` int(11) DEFAULT NULL,
  `creafecha` datetime DEFAULT NULL,
  `modi_idusuario` int(11) DEFAULT NULL,
  `modifecha` datetime DEFAULT NULL,
  PRIMARY KEY (`idmodulo`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `modulos`
--

/*!40000 ALTER TABLE `modulos` DISABLE KEYS */;
INSERT INTO `modulos` (`idmodulo`,`codigo`,`descripcion`,`orden`,`creaidusuario`,`creafecha`,`modi_idusuario`,`modifecha`) VALUES 
 (1,'CNTA','Módulo de Facturación Electrónica',1,1,'2016-08-12 09:31:08',1,'2016-08-12 09:31:08'),
 (2,'SIST','Módulo de Accesos',2,1,'2016-08-12 09:31:12',1,'2016-08-12 09:31:12');
/*!40000 ALTER TABLE `modulos` ENABLE KEYS */;


--
-- Definition of table `opciones`
--

DROP TABLE IF EXISTS `opciones`;
CREATE TABLE `opciones` (
  `idopcion` int(11) NOT NULL AUTO_INCREMENT,
  `idmodulo` int(11) NOT NULL,
  `codigo` varchar(150) DEFAULT NULL,
  `descripcion` varchar(150) DEFAULT NULL,
  `tipo` char(1) DEFAULT NULL,
  `orden` int(11) DEFAULT NULL,
  `creaidusuario` int(11) DEFAULT NULL,
  `creafecha` datetime DEFAULT NULL,
  `modi_idusuario` int(11) DEFAULT NULL,
  `modifecha` datetime DEFAULT NULL,
  `estado` char(1) DEFAULT '1',
  PRIMARY KEY (`idopcion`),
  UNIQUE KEY `idopcion_UNIQUE` (`idopcion`),
  KEY `FK_opciones_1` (`idmodulo`),
  CONSTRAINT `FK_opciones_1` FOREIGN KEY (`idmodulo`) REFERENCES `modulos` (`idmodulo`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `opciones`
--

/*!40000 ALTER TABLE `opciones` DISABLE KEYS */;
INSERT INTO `opciones` (`idopcion`,`idmodulo`,`codigo`,`descripcion`,`tipo`,`orden`,`creaidusuario`,`creafecha`,`modi_idusuario`,`modifecha`,`estado`) VALUES 
 (1,1,'CNTA_VENTA','Venta','C',1,1,'2016-08-12 09:33:00',1,'2016-08-12 09:33:00','1'),
 (2,1,'CNTA_COMPRAS','Compras','C',2,1,'2016-08-12 09:33:14',1,'2016-08-12 09:33:14','1'),
 (3,2,'SIST_USUARIOS','Usuarios y Opciones','C',1,1,'2016-08-12 09:34:39',1,'2016-08-12 09:34:39','1');
/*!40000 ALTER TABLE `opciones` ENABLE KEYS */;


--
-- Definition of table `registromodificaciones`
--

DROP TABLE IF EXISTS `registromodificaciones`;
CREATE TABLE `registromodificaciones` (
  `idregistro` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `idusuario` int(10) unsigned NOT NULL,
  `idopcion` int(10) unsigned NOT NULL,
  `fecha` datetime NOT NULL,
  `idcreador` int(10) unsigned NOT NULL,
  `estado` char(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`idregistro`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `registromodificaciones`
--

/*!40000 ALTER TABLE `registromodificaciones` DISABLE KEYS */;
INSERT INTO `registromodificaciones` (`idregistro`,`idusuario`,`idopcion`,`fecha`,`idcreador`,`estado`) VALUES 
 (1,2,1,'2022-03-08 17:01:53',1,'1'),
 (2,2,1,'2024-09-27 19:11:22',1,'1');
/*!40000 ALTER TABLE `registromodificaciones` ENABLE KEYS */;


--
-- Definition of table `usuarios`
--

DROP TABLE IF EXISTS `usuarios`;
CREATE TABLE `usuarios` (
  `idusuario` int(11) NOT NULL AUTO_INCREMENT,
  `codigo` varchar(50) DEFAULT NULL,
  `nombre` varchar(150) DEFAULT NULL,
  `apellidos` varchar(45) DEFAULT NULL,
  `email` varchar(45) DEFAULT NULL,
  `pswd` varchar(45) DEFAULT NULL,
  `estado` char(2) DEFAULT '1',
  `lastchange_user` varchar(1) NOT NULL DEFAULT 'A',
  `creaidusuario` int(11) DEFAULT NULL,
  `creafecha` datetime DEFAULT NULL,
  `modi_idusuario` int(11) DEFAULT NULL,
  `modifecha` datetime DEFAULT NULL,
  PRIMARY KEY (`idusuario`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `usuarios`
--

/*!40000 ALTER TABLE `usuarios` DISABLE KEYS */;
INSERT INTO `usuarios` (`idusuario`,`codigo`,`nombre`,`apellidos`,`email`,`pswd`,`estado`,`lastchange_user`,`creaidusuario`,`creafecha`,`modi_idusuario`,`modifecha`) VALUES 
 (1,'admin','Admin','Admin','palvaquilcat0@gmail.com','0192023a7bbd73250516f069df18b500','1','U',1,'2018-07-28 01:07:51',1,'2018-08-17 01:07:51'),
 (2,'pucallpa.lan','PUCALLPA','LAN','e.mayorgacueva@gmail.com',NULL,'1','A',1,'2024-09-27 19:11:22',1,'2024-09-27 19:11:22');
/*!40000 ALTER TABLE `usuarios` ENABLE KEYS */;

--
-- Create schema ptovtalan
--

CREATE DATABASE IF NOT EXISTS ptovtalan;
USE ptovtalan;

--
-- Definition of function `fn_CNTA_AgruparPorDia`
--

DROP FUNCTION IF EXISTS `fn_CNTA_AgruparPorDia`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` FUNCTION `fn_CNTA_AgruparPorDia`(fecha DATETIME) RETURNS varchar(25) CHARSET utf8
BEGIN

  DECLARE grupo NVARCHAR(25);
  SET grupo=
    CASE
      WHEN (WEEK(NOW())-WEEK(fecha))=0 THEN
         CASE
          WHEN DATEDIFF(NOW(),fecha)=0 THEN "Hoy"
          WHEN DATEDIFF(NOW(),fecha)=1 THEN "Ayer"
          WHEN DATEDIFF(NOW(),fecha)=2 THEN fn_CNTA_ObtenerDia(fecha)
          WHEN DATEDIFF(NOW(),fecha)=3 THEN fn_CNTA_ObtenerDia(fecha)
          WHEN DATEDIFF(NOW(),fecha)=4 THEN fn_CNTA_ObtenerDia(fecha)
          WHEN DATEDIFF(NOW(),fecha)=5 THEN fn_CNTA_ObtenerDia(fecha)
          WHEN DATEDIFF(NOW(),fecha)=6 THEN fn_CNTA_ObtenerDia(fecha)
        END
      WHEN (WEEK(NOW())-WEEK(fecha))=1 THEN "La Semana Pasada"
      WHEN (WEEK(NOW())-WEEK(fecha))=2 THEN "Hace Dos Semanas"
      WHEN (WEEK(NOW())-WEEK(fecha))=3 THEN "Hace Tres Semanas"
      ELSE "Antiguo"
    END;



    RETURN grupo;
END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of function `fn_CNTA_ObtenerDia`
--

DROP FUNCTION IF EXISTS `fn_CNTA_ObtenerDia`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` FUNCTION `fn_CNTA_ObtenerDia`(fecha DATETIME) RETURNS varchar(10) CHARSET utf8
BEGIN

  DECLARE dia NVARCHAR(10);

  SET dia=

  CASE
    WHEN date_format(fecha,'%w')=0 THEN "Domingo"
    WHEN date_format(fecha,'%w')=1 THEN "Lunes"
    WHEN date_format(fecha,'%w')=2 THEN "Martes"
    WHEN date_format(fecha,'%w')=3 THEN "Miércoles"
    WHEN date_format(fecha,'%w')=4 THEN "Jueves"
    WHEN date_format(fecha,'%w')=5 THEN "Viernes"
    WHEN date_format(fecha,'%w')=6 THEN "Sábado"
  END;

RETURN dia;
END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of function `fn_CNTA_OrdenarPorDia`
--

DROP FUNCTION IF EXISTS `fn_CNTA_OrdenarPorDia`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` FUNCTION `fn_CNTA_OrdenarPorDia`(fecha DATETIME) RETURNS int(11)
BEGIN
  DECLARE numord INT DEFAULT 0;

  SET numord=
  CASE
   WHEN (WEEK(NOW())-WEEK(fecha))=0 THEN
     CASE
        WHEN DATEDIFF(NOW(),fecha)=0 THEN 1
        WHEN DATEDIFF(NOW(),fecha)=1 THEN 2
        WHEN DATEDIFF(NOW(),fecha)=2 THEN 3
        WHEN DATEDIFF(NOW(),fecha)=3 THEN 4
        WHEN DATEDIFF(NOW(),fecha)=4 THEN 5
      END
    WHEN (WEEK(NOW())-WEEK(fecha))=1 THEN 6
    WHEN (WEEK(NOW())-WEEK(fecha))=2 THEN 7
    WHEN (WEEK(NOW())-WEEK(fecha))=3 THEN 8
    ELSE 9
  END;



    RETURN numord;
END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_ActualizarDocumentoNotificado`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_ActualizarDocumentoNotificado`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_ActualizarDocumentoNotificado`(IN iddoc INT,IN opc SMALLINT,IN idclie_emp INT,IN isret SMALLINT)
BEGIN

  IF (isret=2) THEN
    UPDATE documentos
    SET notificado=opc,
      fecha_notificacion=NOW()
    WHERE iddocumento=iddoc;
  ELSE
    UPDATE retencion_cab
    SET notificado=opc,
      fecha_notificacion=NOW()
    WHERE idretencion=iddoc;
  END IF;

  IF(idclie_emp>0)THEN
    UPDATE empresa_cliente
    SET notificacion_credenciales=1,
        fecha_notificacion=NOW()
    WHERE idemp_clie=idclie_emp;
  END IF;



END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_ActualizarDocumento_Baja`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_ActualizarDocumento_Baja`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_ActualizarDocumento_Baja`(IN entrydoc INT, IN doctip SMALLINT,IN docnro VARCHAR(15),IN rucnro NVARCHAR(20))
BEGIN

UPDATE documentos
SET EnviarCorreo='N',
    notificado=0
WHERE DocEntry=entrydoc AND TipoDoc=doctip AND NroDocumento=docnro AND NumeroRUC=rucnro;

END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_ActualizarEstadoNotificacion`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_ActualizarEstadoNotificacion`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_ActualizarEstadoNotificacion`(IN iddoc INT,IN estate NVARCHAR(2),IN tipdoc INT,IN usuario NVARCHAR(25))
BEGIN
IF(tipdoc=20)THEN
  UPDATE retencion_cab
  SET EnviarCorreo=estate,
    fecha_notificacion_baja=NOW(),
    notificado=1
  WHERE idretencion=iddoc;
ELSE
  UPDATE documentos
  SET EnviarCorreo=estate,
    fecha_notificacion_baja=NOW(),
    notificado=1
  WHERE iddocumento=iddoc;

END IF;
END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_ActualizarMensajeEmail`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_ActualizarMensajeEmail`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_ActualizarMensajeEmail`(IN message TEXT,IN emailid INT)
BEGIN
  UPDATE email
  SET mensaje=message
  WHERE idemail=emailid;
END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_BuscarDocumentoFE`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_BuscarDocumentoFE`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_BuscarDocumentoFE`(IN tipo_factura SMALLINT,IN docentry INT,IN nroruc VARCHAR(11))
BEGIN
  SELECT d.DocEntry,d.FecEmision,d.Razonsocial,d.NumeroRuc,d.ProvinciaFiscal,d.DepartamentoFiscal,d.DistritoFiscal,d.DireccionFiscal,
					   d.TipoDoc,d.NroDocumento,d.TipoDocAdq,d.NroDocAdq,d.RazonAdq,d.Motivo,d.DireccionAdq,d.Moneda,d.ImporteTotalVenta,
					   d.DescripcionLeyenda,d.TotalUSD,d.TotalGravado,d.TotalInafecto,d.TotalExonerado,d.TotalPEN,d.MontoIGV,
					   d.EsDetra,d.Comentario,d.DocumentoAfectado,d.Firma,d.ValorResumen,d.EstadoSunat,d.DescriptionNC,d.TipoDocAfectado,d.FecDocAfecta,d.TotalGratuito,
             IFNULL(d.TotalDscto,0) AS Descuento,UPPER(d.FormaPago)AS FormaPago,d.Vendedor,d.GuiaRem,d.TelCliente,d.CodigoCliente,d.GenericoFec,d.GenericoSTR,
             d.GenericoDec,d.GenericoSTR1,d.totalanticipo,d.TipoOp
					FROM documentos d
	WHERE d.TipoDoc=tipo_factura AND d.DocEntry=docentry AND d.NumeroRuc=nroruc;
END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_BuscarDocumentoFERetencion`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_BuscarDocumentoFERetencion`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_BuscarDocumentoFERetencion`(IN tipo_factura SMALLINT,IN docentry INT,IN nroruc VARCHAR(11))
BEGIN
  SELECT *,CONCAT(r.SerieRet,'-',r.NumRet)AS Serie
  FROM retencion_cab r
  WHERE r.tipo_doc=tipo_factura AND r.DocNum=docentry AND r.RucEmisor=nroruc;
END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_BuscarEmail`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_BuscarEmail`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_BuscarEmail`(IN emailid INT)
BEGIN

  SELECT mensaje
  FROM email
  WHERE idemail=emailid;

END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_BuscarEmailCliente`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_BuscarEmailCliente`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_BuscarEmailCliente`(IN mail NVARCHAR(100),IN tokn VARCHAR(15),IN rucempresa NVARCHAR(11))
BEGIN

  DECLARE idempr INTEGER DEFAULT 0;
  DECLARE idempcli INTEGER DEFAULT 0;
  DECLARE ruccli NVARCHAR(11);
  DECLARE idcli INTEGER DEFAULT 0;

  SET idempr=(SELECT idempresa FROM empresa WHERE ruc=rucempresa);

  IF(EXISTS(SELECT c.razonsocial
            FROM clientes c
            INNER JOIN empresa_cliente ec
            ON c.idcliente=ec.idcliente
            WHERE ec.email=mail AND ec.idempresa=idempr AND ec.estado=1))THEN
    INSERT INTO reset_password(fecha,token,email,idempresa)VALUES(CURRENT_TIMESTAMP(),tokn,mail,idempr);
  END IF;

  SET idempcli=(SELECT empcli.idemp_clie
                FROM empresa_cliente empcli
                WHERE empcli.idempresa=idempr AND empcli.estado=1 AND empcli.email=mail);



  SET idcli=(SELECT empcli.idcliente
                FROM empresa_cliente empcli
                WHERE empcli.idempresa=idempr AND empcli.estado=1 AND empcli.email=mail);


  SET ruccli=(SELECT ruc
           FROM clientes
           WHERE idcliente=idcli);

  

  UPDATE users
    SET pasword=MD5(ruccli)
  WHERE idemp_clie=idempcli;

  SELECT ec.idemp_clie,emp.nombre,cli.razonsocial,cli.ruc
  FROM empresa_cliente ec
  INNER JOIN empresa emp
  ON emp.idempresa=ec.idempresa
  INNER JOIN clientes cli
  ON cli.idcliente=ec.idcliente
  WHERE ec.email=mail AND ec.estado=1 AND emp.idempresa=idempr;

END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_BuscarEmailProveedor`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_BuscarEmailProveedor`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_BuscarEmailProveedor`(IN mail NVARCHAR(100),IN tokn VARCHAR(15))
BEGIN
  IF(EXISTS(SELECT razonsocial FROM proveedores WHERE email=mail))THEN
    INSERT INTO reset_password(fecha,token,email)VALUES(CURRENT_TIMESTAMP(),tokn,mail);
  END IF;

  SELECT razonsocial FROM proveedores WHERE email=mail;

END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_CambiarPassword`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_CambiarPassword`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_CambiarPassword`(IN tokn NVARCHAR(15),IN newpass NVARCHAR(60))
BEGIN

  DECLARE mail NVARCHAR(150) DEFAULT '';
  DECLARE idemp INT DEFAULT 0;
  DECLARE actualizado CHAR(1) DEFAULT '1';

  SET mail=(SELECT email FROM reset_password WHERE token=tokn AND expirado=0);
  SET idemp=(SELECT idempresa FROM reset_password WHERE token=tokn AND expirado=0);

  IF(mail IS NOT NULL)THEN
    UPDATE users
      SET pasword=newpass,
          estado=1,
          lastuserchange='U'
    WHERE idemp_clie=(SELECT idemp_clie FROM empresa_cliente WHERE email=mail AND idempresa=idemp AND estado=1);
    UPDATE reset_password
      SET expirado='2'
    WHERE email=mail AND token=tokn;
  ELSE
    SET actualizado='0';
  END IF;

  SELECT actualizado;

END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_Cerrar_Sesion`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_Cerrar_Sesion`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_Cerrar_Sesion`(IN sesion VARCHAR(15))
BEGIN
  UPDATE historial_sesiones
    SET fechafin=NOW()
	WHERE agente=sesion;
END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_ChangePassword`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_ChangePassword`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_ChangePassword`(IN idusuario INT,IN newpass NVARCHAR(60))
BEGIN

  DECLARE actualizado CHAR(1) DEFAULT '1';

  UPDATE users
    SET pasword=MD5(newpass),
        estado=1,
        lastuserchange='U'  
  WHERE iduser=idusuario;

  SELECT actualizado;

END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_ConsultarClientePorRuc`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_ConsultarClientePorRuc`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_ConsultarClientePorRuc`(IN cliruc NVARCHAR(20),IN empruc NVARCHAR(11))
BEGIN

  SELECT count(*) AS nroregistros,ec.email AS emailcliente,ec.notificacion_credenciales,ec.idemp_clie,c.*,e.*
  FROM empresa_cliente ec
  INNER JOIN clientes c
  ON c.idcliente=ec.idcliente
  INNER JOIN empresa e
  ON e.idempresa=ec.idempresa
  WHERE c.ruc=cliruc AND e.ruc=empruc AND ec.estado=1;

END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_ConsultarClienteRegistrado`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_ConsultarClienteRegistrado`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_ConsultarClienteRegistrado`(IN clieruc VARCHAR(20),IN clierazsoc NVARCHAR(200),IN cliemail NVARCHAR(150),IN rucempresa NVARCHAR(11),IN opcion SMALLINT)
BEGIN
  DECLARE registrado BOOLEAN DEFAULT FALSE;
  DECLARE idclie INTEGER DEFAULT 0;
  DECLARE idempr INTEGER DEFAULT 0;
  DECLARE idempresa_cliente INTEGER DEFAULT 0;

  SET idempr=(SELECT idempresa FROM empresa WHERE ruc=rucempresa );

  IF (opcion=1) THEN

    IF (NOT EXISTS(SELECT *
                  FROM clientes c
                  INNER JOIN empresa_cliente ec
                  ON c.idcliente=ec.idcliente
                  WHERE c.ruc=clieruc AND ec.idempresa=idempr AND ec.estado=1 AND email=cliemail)) THEN


      IF(NOT EXISTS(SELECT idcliente FROM clientes WHERE ruc=clieruc AND estado=1))THEN
        INSERT INTO clientes(razonsocial,ruc)
        VALUES(clierazsoc,clieruc);

        SET idclie= LAST_INSERT_ID();
      ELSE
        SET idclie=(SELECT idcliente FROM clientes WHERE ruc=clieruc AND estado=1);
      END IF;


      INSERT INTO empresa_cliente(idempresa,idcliente,email)
      VALUES(idempr,idclie,cliemail);

      SET idempresa_cliente=LAST_INSERT_ID();

      INSERT INTO users(username,pasword,lastvisit,lastuserchange,idemp_clie)
      VALUES (clieruc,MD5(clieruc),NOW(),'U',idempresa_cliente);

      SET registrado=TRUE;
    END IF;
  ELSE
    IF (opcion=2) THEN

      SET idclie=(SELECT idcliente FROM clientes WHERE ruc=clieruc AND estado=1);

      UPDATE empresa_cliente
      SET estado=0
      WHERE idcliente=idclie;

      INSERT INTO empresa_cliente(idempresa,idcliente,email)
      VALUES(idempr,idclie,cliemail);

      SET idempresa_cliente=LAST_INSERT_ID();

      INSERT INTO users(username,pasword,lastvisit,lastuserchange,idemp_clie)
      VALUES (clieruc,MD5(clieruc),NOW(),'U',idempresa_cliente);

    SET registrado=TRUE;
    END IF;
  END IF;


  SELECT idempresa,nombre,direccionweb,logo,registrado,email
  FROM empresa WHERE idempresa=idempr;
END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_ConsultarDatosAutentificacionEmail`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_ConsultarDatosAutentificacionEmail`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_ConsultarDatosAutentificacionEmail`(IN empruc NVARCHAR(11))
BEGIN

  SELECT email,pswd
   FROM empresa e
 WHERE e.ruc=empruc;

END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_ConsultarProveedorRegistrado`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_ConsultarProveedorRegistrado`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_ConsultarProveedorRegistrado`(IN provruc VARCHAR(11),IN provrazsoc NVARCHAR(200),IN provemail NVARCHAR(150),IN rucempresa NVARCHAR(11))
BEGIN
  DECLARE registrado BOOLEAN DEFAULT FALSE;
  DECLARE idprov INTEGER DEFAULT 0;
  DECLARE idempr INTEGER DEFAULT 0;

  SET idempr=(SELECT idempresa FROM empresa WHERE ruc=rucempresa);

  IF (NOT EXISTS(SELECT *
                  FROM proveedores p
                  INNER JOIN users u
                  ON u.idproveedor=p.idproveedor
                  INNER JOIN empresa e
                  ON e.idempresa=u.idempresa
                  WHERE p.ruc=provruc AND e.idempresa=idempr)) THEN
    INSERT INTO proveedores(razonsocial,ruc,email)
    VALUES(provrazsoc,provruc,provemail);

    SET idprov= LAST_INSERT_ID();

    INSERT INTO users(username,pasword,lastvisit,lastuserchange,idproveedor,idempresa)
    VALUES (provruc,MD5(provruc),NOW(),'A',idprov,idempr);

    SET registrado=TRUE;
  END IF;

  SELECT nombre,direccionweb,logo,registrado
  FROM empresa WHERE idempresa=idempr;
END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_DetallesDocumentosElectronicosDuplicados_Listado`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_DetallesDocumentosElectronicosDuplicados_Listado`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_DetallesDocumentosElectronicosDuplicados_Listado`(IN ruc NVARCHAR(11),IN tipo INT, IN docnro NVARCHAR(25))
BEGIN
    SELECT   DATE_FORMAT( `FecEmision` , '%d-%m-%Y' ) AS FecEmision,NroDocumento,TipoDoc,RazonAdq,
      IF(Moneda='PEN',ImporteTotalVenta,0) AS Soles,IF(Moneda='USD',ImporteTotalVenta,0) AS Dolares,Moneda,
      Case EstadoSunat WHEN '0' THEN 'Aprobada' WHEN "B" THEN 'Baja' ELSE 'Rechazada' END AS  EstadoSunat,DocEntry,
      NroDocAdq,TotalGravado,TotalInafecto,TotalExonerado,MontoIGV,TotalGratuito,DocEntry
    FROM documentos
    WHERE NroDocumento
    IN (
      SELECT NroDocumento
      FROM documentos
      WHERE NumeroRUC=ruc AND TipoDoc=tipo
      GROUP BY NroDocumento
      HAVING count( NroDocumento ) >1
    )
    AND NumeroRUC=ruc AND TipoDoc=tipo
    ORDER BY DocEntry;
END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_DetallesDocumentosElectronicos_Listado`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_DetallesDocumentosElectronicos_Listado`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_DetallesDocumentosElectronicos_Listado`(IN ruc VARCHAR(11), IN tipo INT,IN fechaini DATE,IN fechafin DATE)
BEGIN
 IF (tipo!=20) THEN

    SELECT   DATE_FORMAT( `FecEmision` , '%d-%m-%Y' ) AS FecEmision,NroDocumento,TipoDoc,RazonAdq,
      IF(Moneda='PEN',ImporteTotalVenta,0) AS Soles,IF(Moneda='USD',ImporteTotalVenta,0) AS Dolares,Moneda,
      Case EstadoSunat WHEN '0' THEN 'Aprobada' WHEN "B" THEN 'Baja' WHEN "P" THEN 'Imprimir' ELSE 'Rechazada' END AS  EstadoSunat,DocEntry,
      NroDocAdq,TotalGravado,TotalInafecto,TotalExonerado,MontoIGV,TotalGratuito,EnviarCorreo,notificado,tipocambio,iddocumento,DATE_FORMAT( `fecha_notificacion` , '%d-%m-%Y %H:%i') AS FecNotificacion,
      DATE_FORMAT( `fecha_notificacion_baja` , '%d-%m-%Y %H:%i') AS FecNotificacionBaja
    FROM documentos
    WHERE  TipoDoc=tipo AND FecEmision>=fechaini AND FecEmision<DATE_ADD(fechafin,INTERVAL 1 DAY) AND NumeroRUC=ruc
    ORDER BY NroDocumento DESC,FecEmision DESC;

  ELSE

    SELECT DATE_FORMAT( FecEmiRet , '%d-%m-%Y' ) AS FecEmision,CONCAT(SerieRet,'-',NumRet)AS NroDocumento,tipo_doc AS TipoDoc,RazonSocialProveedor AS RazonAdq,
       ImporteTotalPagadoSOL AS Soles,ImporteTotalRetenidoSOL AS Dolares,
       MonedaTotalPagado AS Moneda,
       Case EstadoSunat WHEN '0' THEN 'Aprobada' WHEN "B" THEN 'Baja' WHEN "P" THEN 'Imprimir' ELSE 'Rechazada' END AS  EstadoSunat,
       DocNum AS DocEntry,RucProveedor AS NroDocAdq,0 AS TotalGravado,0 AS TotalInafecto,0 AS TotalExonerado,0 AS MontoIGV,0 AS TotalGratuito,EnviarCorreo,notificado,0 AS tipocambio,idretencion AS  iddocumento,
       DATE_FORMAT( `fecha_notificacion` , '%d-%m-%Y %H:%i') AS FecNotificacion,
       DATE_FORMAT( `fecha_notificacion_baja` , '%d-%m-%Y %H:%i') AS FecNotificacionBaja
    FROM  retencion_cab
    WHERE  tipo_doc=tipo AND FecEmiRet>=fechaini AND FecEmiRet<DATE_ADD(fechafin,INTERVAL 1 DAY) AND RUCEmisor=ruc
    ORDER BY NroDocumento DESC,FecEmiRet DESC;

  END IF;
END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_Eliminar_Documento_Duplicado`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_Eliminar_Documento_Duplicado`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_Eliminar_Documento_Duplicado`(IN ruc NVARCHAR(11),IN entrydoc INT)
BEGIN
  DELETE
  FROM documentos
  WHERE DocEntry=entrydoc AND NumeroRUC=ruc;
END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_Guardar_Configuracion_Por_Empresa`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_Guardar_Configuracion_Por_Empresa`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_Guardar_Configuracion_Por_Empresa`(IN empid INT,IN resolsunat VARCHAR(45),
                    IN resolcontr VARCHAR(45),IN domicilio VARCHAR(250),IN ubigeo VARCHAR(150),IN tel VARCHAR(45),
                    IN atecli VARCHAR(45),IN ventasrpm VARCHAR(90),IN creditorpm VARCHAR(90),IN web VARCHAR(150),
                    IN contactoemail VARCHAR(150),IN cta1 VARCHAR(250),IN cta2 VARCHAR(250),IN correo VARCHAR(150),
                    IN clave VARCHAR(250),IN tim SMALLINT,IN coduser NVARCHAR(45))
BEGIN

  UPDATE empresa
  SET  resolucion=resolsunat,
       resol_contribuyente=resolcontr,
       direccion=domicilio,
       provincia=ubigeo,
       telefono=tel,
       atencion_cliente=atecli,
       rpm_ventas=ventasrpm,
       rpm_creditos=creditorpm,
       direccionweb=web,
       email_contacto=contactoemail,
       ctacorriente=cta1,
       ctacorriente2=cta2,
       email=correo,
       pswd=clave,
       tiempo=tim,
       fecha_registro=NOW(),
       codigo_usuario=coduser
  WHERE idempresa=empid;

END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_Guardar_Proveedor`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_Guardar_Proveedor`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_Guardar_Proveedor`(IN idprov INT,IN rucprov NVARCHAR(11),IN razsoc NVARCHAR(200),IN emailprov NVARCHAR(150),IN idemp INT)
BEGIN

  
  DECLARE provid INT DEFAULT 0;
  DECLARE emp_provid INT DEFAULT 0;

 
  SET emp_provid=(SELECT idemp_prov
                  FROM empresa_proveedor
                  WHERE idempresa=idemp AND idproveedor=idprov AND estado=1 AND email!=emailprov);

  IF(idprov>0)THEN
    SET provid=idprov;
    UPDATE proveedores
      SET razonsocial=razsoc,
          ruc=rucprov
    WHERE idproveedor=idprov;
    SELECT emp_provid;
    IF(emp_provid>0)THEN
      UPDATE empresa_proveedor
        SET estado=0
      WHERE idemp_prov=emp_provid;
      INSERT INTO empresa_proveedor(idempresa,idproveedor,email)
      VALUES(idemp,idprov,emailprov);
    END IF;
  ELSE
    INSERT INTO proveedores(razonsocial,ruc)
    VALUES (razsoc,rucprov);
    SET provid=@@IDENTITY;
    INSERT INTO  empresa_proveedor(idempresa,idproveedor,email)
    VALUES(idemp,provid,emailprov);
  END IF;
  SELECT provid AS idproveedor;
END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_InsertarCabeceraRegistroCPE`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_InsertarCabeceraRegistroCPE`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_InsertarCabeceraRegistroCPE`(IN DocEnt INT,IN FecEmi DATE,IN RazSoc VARCHAR(100),IN UbiFis MEDIUMINT,IN DirFis VARCHAR(100),
    IN ProvFis VARCHAR(4),IN DepFis VARCHAR(4),IN DisFis VARCHAR(200),IN CodPaiFis VARCHAR(2),IN NumRUC VARCHAR(20),IN TipDocRuc TINYINT,IN DocAfec VARCHAR(15),
    IN TipND TINYINT,IN TipDoc TINYINT,IN NroDoc VARCHAR(15),IN TipDocAdq VARCHAR(4),IN NroDocAdq VARCHAR(20),IN RazAdq VARCHAR(200),IN Motiv VARCHAR(254),IN DirAdq VARCHAR(250),
    IN Money VARCHAR(3),IN CodTrib SMALLINT,IN NomTrib VARCHAR(3),IN CodIntTrib VARCHAR(3),IN CodTotGrav SMALLINT,IN TotGrav DECIMAL(18,2),IN CodTotInaf SMALLINT ,IN TotInaf DECIMAL(18,2),
    IN CodTotExon SMALLINT,IN TotExon DECIMAL(18,2),IN ImpTotVen DECIMAL(18,2),IN DocOrigen VARCHAR(15),IN TipDocAfec TINYINT,IN UblVers TINYINT,IN CustoID TINYINT,IN IdLey SMALLINT,
    IN DescripLey VARCHAR(250),IN TotUSD DECIMAL(18,2),IN TotPEN DECIMAL(18,2),IN MontIGV DECIMAL(18,2),IN DescripNC VARCHAR(100),IN EsDetra CHAR(1),IN MontDetra DECIMAL(18,2),
    IN Comentario VARCHAR(254),IN Firma TEXT,IN ValRes VARCHAR(250), IN EstSunat CHAR(4),IN TipOp VARCHAR(2),IN FecDocAfec DATE,IN TotGrat DECIMAL(18,2))
BEGIN

  INSERT INTO documentos(DocEntry,FecEmision,RazonSocial,UbigeoFiscal,DireccionFiscal,ProvinciaFiscal,DepartamentoFiscal,DistritoFiscal,CodPaisFiscal,
    NumeroRUC,TipoDocRuc,DocumentoAfectado,TipoND,TipoDoc,NroDocumento,TipoDocAdq,NroDocAdq,RazonAdq,Motivo,DireccionAdq,Moneda,CodigoTributo,
   NombreTributo,CodigoIntTributo,CodTotalGravado,TotalGravado,CodTotalInafecto,TotalInafecto,CodTotalExonerado,TotalExonerado,ImporteTotalVenta,
   DocumentoOrigen,TipoDocAfectado,UblVersion,CustomizationID,IdLeyenda,DescripcionLeyenda,TotalUSD,TotalPEN,MontoIGV,DescriptionNC,EsDetra,MontoDetra,
   Comentario,Firma,ValorResumen,EstadoSunat,TipoOp,FecDocAfecta,TotalGratuito)

  VALUES(DocEnt,FecEmi,RazSoc,UbiFis,DirFis,ProvFis,DepFis,DisFis,CodPaiFis,NumRUC,TipDocRuc,DocAfec,TipND,TipDoc,NroDoc,TipDocAdq,NroDocAdq,RazAdq,Motiv,DirAdq,
   Money,CodTrib,NomTrib,CodIntTrib,CodTotGrav,TotGrav,CodTotInaf,TotInaf,CodTotExon,TotExon,ImpTotVen,DocOrigen,TipDocAfec,UblVers,CustoID,IdLey,DescripLey,
   TotUSD,TotPEN,MontIGV,DescripNC,EsDetra,MontDetra,Comentario,Firma,ValRes,EstSunat,TipOp,FecDocAfec,TotGrat);

  SELECT LAST_INSERT_ID() AS idnew;

END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_InsertarCabeceraRegistroCRE`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_InsertarCabeceraRegistroCRE`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_InsertarCabeceraRegistroCRE`(IN FecEmi DATE,IN SerRet VARCHAR(4),IN RetNum VARCHAR(8),
       IN RucEmi VARCHAR(20),IN RazSocEmi VARCHAR(100),IN DirFisEmi VARCHAR(100),IN ProvFisEmi VARCHAR(45),IN DepFisEmi VARCHAR(45),
       IN DisFisEmi VARCHAR(45),IN RucProv VARCHAR(20),IN RazSocProv VARCHAR(100),IN DirFisProv VARCHAR(100),IN TasRet DECIMAL(18,2),
       IN ImpTotRetSOL DECIMAL(18,2),IN MonTotRet VARCHAR(3),IN ImpTotPagSOL DECIMAL(18,2),IN MonTotPag VARCHAR(3),IN NumDoc INT,
       IN tipdoc VARCHAR(2),IN EstSunat VARCHAR(4),IN DescripLey VARCHAR(250),IN Firma TEXT,IN ValRes VARCHAR(250))
BEGIN

  INSERT INTO retencion_cab (FecEmiRet,SerieRet,NumRet,RucEmisor,RazonSocialEmisor,DireccionFiscalEmisor,ProvinciaFiscalEmisor,
                             DepartamentoFiscalEmisor,DistritoFiscalEmisor,RucProveedor,RazonSocialProveedor,DireccionFiscalProveedor,
                             TasaRet,ImporteTotalRetenidoSOL,MonedaTotalRetenido,ImporteTotalPagadoSOL,MonedaTotalPagado,DocNum,
                             tipo_doc,EstadoSunat,DescripcionLeyenda,Firma,ValorResumen)

  VALUES (FecEmi,SerRet,RetNum,RucEmi,RazSocEmi,DirFisEmi,ProvFisEmi,DepFisEmi,DisFisEmi,RucProv,RazSocProv,DirFisProv,TasRet,
          ImpTotRetSOL,MonTotRet,ImpTotPagSOL,MonTotPag,NumDoc,tipdoc,EstSunat,DescripLey,Firma,ValRes);

  SELECT LAST_INSERT_ID() AS idnewcre;

END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_InsertarDetalleRegistroCPE`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_InsertarDetalleRegistroCPE`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_InsertarDetalleRegistroCPE`(IN fila TINYINT,IN DocEnt INT,IN Um VARCHAR(3),IN Quant DECIMAL(18,6),
            IN price DECIMAL(18,6),IN PreConIgv DECIMAL(18,6),IN PriTypCod TINYINT,IN MontIgv DECIMAL(18,6),IN Igv INT,IN ExempReaCod TINYINT,
            IN TaxSch_ID SMALLINT,IN TaxSch_Name VARCHAR(6),IN TaxSch_TaxTypCod VARCHAR(4),IN Dscription VARCHAR(150),IN IteCod VARCHAR(50),
            IN LinTotSinIGV DECIMAL(18,2),IN OperGrat VARCHAR(50),IN TipDoc TINYINT(4),IN ley DECIMAL(6,2))
BEGIN

  INSERT INTO detalledocumentos(Fila,DocEntry,UM,Quantity,Price,PrecioConIGV,PriceTypeCode,MontoIGv,IGV,ExemptionReasonCode,
                               TaxScheme_ID,TaxScheme_Name,TaxScheme_TaxTypeCode,Dscription,ItemCode,LineaTotalSinIGV,
                               OperacionGratuita,TipoDoc,ley)

  VALUES(fila,DocEnt,Um,Quant,price,PreConIgv,PriTypCod,MontIgv,Igv,ExempReaCod,TaxSch_ID,TaxSch_Name,
         TaxSch_TaxTypCod,Dscription,IteCod,LinTotSinIGV,OperGrat,TipDoc,ley);

   SELECT LAST_INSERT_ID() AS idnewdet;

END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_InsertarDetalleRegistroCRE`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_InsertarDetalleRegistroCRE`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_InsertarDetalleRegistroCRE`(IN TipDocRel VARCHAR(2),IN SerieDocRel VARCHAR(4),IN NumDocRel VARCHAR(10),
          IN FecDocRel DATE,IN ImpTotDocRel DECIMAL(18,2),IN MonDocRel VARCHAR(3),IN FechPag DATE,IN NumPag INT,IN ImpPag DECIMAL(18,2),
          IN MonImpPag VARCHAR(3),IN ImpRetSOL DECIMAL(18,2),IN MonImpRet VARCHAR(3),IN FecRet DATE,IN NetPagSOL DECIMAL(18,2),IN MonMonNet VARCHAR(3),
          IN MonDocRef VARCHAR(3),IN TipCamApli DECIMAL(12,6),IN FecTCApli VARCHAR(10),IN NumDoc INT,IN tipdoc VARCHAR(2),IN ImpPagPrint DECIMAL(18,2))
BEGIN

  INSERT INTO retencion_det(TipoDocRelacionado,SerieDocRelacionado,NumDocRelacionado,FecDocRelacionado,ImporteTotalDocRelacionado,
                           MonedaDocRelacionado,FechaPago,NumeroPago,ImportePago,MonedaImportePago,ImporteRetenidoSOL,MonedaImporteRetenido,
                           FechaRetencion,NetoPagarSOL,MonedaMontoNeto,MonedaDocReferencia,TipoCambioAplicado,FechaTCAplicado,DocNum,tipo_doc,
                           ImportePago_Print)

  VALUES(TipDocRel,SerieDocRel,NumDocRel,FecDocRel,ImpTotDocRel,MonDocRel,FechPag,NumPag,ImpPag,MonImpPag,ImpRetSOL,MonImpRet,
          FecRet,NetPagSOL,MonMonNet,MonDocRef,TipCamApli,FecTCApli,NumDoc,tipdoc,ImpPagPrint);

  SELECT LAST_INSERT_ID() AS idnewdetcre;


END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_ListarDocumentosPorNotificar`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_ListarDocumentosPorNotificar`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`%` PROCEDURE `sp_CNTA_ListarDocumentosPorNotificar`(IN rucempresa NVARCHAR(11))
BEGIN
    DECLARE idemp INTEGER DEFAULT 1;

--    IF(rucempresa = '20606811625' )THEN
    SET idemp = (SELECT idempresa FROM empresa WHERE ruc = rucempresa);
 --   END IF;0



   SELECT
    (SELECT email FROM clientes cli
    INNER JOIN empresa_cliente empcli
    ON cli.idcliente=empcli.idcliente
    WHERE empcli.estado=1 AND cli.ruc=doc.NroDocAdq AND empcli.email IS NOT NULL AND empcli.idempresa = idemp)AS EmailCliente,doc.RazonAdq,doc.NroDocAdq,doc.NroDocumento,doc.TipoDoc,
    doc.ImporteTotalVenta,doc.FecEmision,doc.Moneda,doc.iddocumento,doc.notificado,doc.EnviarCorreo

   FROM documentos doc
   WHERE notificado=0  AND EnviarCorreo='S' AND EstadoSunat=0 AND NumeroRUC = rucempresa
   LIMIT 50
  UNION ALL
   SELECT
     (SELECT email FROM clientes cli
     INNER JOIN empresa_cliente empcli
     ON cli.idcliente=empcli.idcliente
     WHERE empcli.estado=1 AND cli.ruc=ret.RucProveedor AND empcli.email IS NOT NULL)AS EmailCliente,
     ret.RazonSocialProveedor AS RazonAdq,ret.RucProveedor AS NroDocAdq,CONCAT(SerieRet,'-',NumRet) AS NroDocumento,ret.tipo_doc AS TipoDoc,
     ret.ImporteTotalRetenidoSOL AS ImporteTotalVenta,
     ret.FecEmiRet AS FecEmision,
     ret.MonedaTotalRetenido AS Moneda,
     ret.idretencion AS iddocumento,
     ret.notificado,ret.EnviarCorreo

   FROM retencion_cab ret
   WHERE ret.notificado=0  AND ret.EnviarCorreo='S' AND ret.EstadoSunat='0'
   LIMIT 10;
END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_ListarDocumentosPorRangoFechas`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_ListarDocumentosPorRangoFechas`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_ListarDocumentosPorRangoFechas`(IN ruc VARCHAR(11), IN tipo INT,IN fechaini DATE,IN fechafin DATE,IN EmisorRuc NVARCHAR(11))
BEGIN

  IF(tipo!=20)THEN
    SELECT   DATE_FORMAT( `FecEmision` , '%d-%m-%Y' ) AS FecEmision,NroDocumento,TipoDoc,RazonAdq,
      IF(Moneda='PEN',ImporteTotalVenta,0) AS Soles,IF(Moneda='USD',ImporteTotalVenta,0) AS Dolares,Moneda,
      Case EstadoSunat WHEN '0' THEN 'Aprobada' WHEN "B" THEN 'Baja' ELSE 'Rechazada' END AS  EstadoSunat,DocEntry,
      NroDocAdq,TotalGravado,TotalInafecto,TotalExonerado,MontoIGV,TotalGratuito,CONCAT('0',TipoDoc,'-',NroDocumento) AS ruta
    FROM documentos
    WHERE  TipoDoc=tipo AND FecEmision>=fechaini AND FecEmision<DATE_ADD(fechafin,INTERVAL 1 DAY) AND NroDocAdq=ruc AND EstadoSunat=0 AND NumeroRUC=EmisorRuc
    ORDER BY NroDocumento DESC,FecEmision DESC;
  ELSE
    SELECT DATE_FORMAT( `FecEmiRet` , '%d-%m-%Y' ) AS FecEmision,CONCAT(SerieRet,'-',NumRet) AS NroDocumento,tipo_doc AS TipoDoc, RazonSocialProveedor AS RazonAdq,
     IF(MonedaTotalRetenido='PEN',ImporteTotalPagadoSOL,0) AS Soles,IF(MonedaTotalRetenido='USD',ImporteTotalPagadoSOL,0) AS Dolares,MonedaTotalRetenido AS Moneda,
     Case EstadoSunat WHEN '0' THEN 'Aprobada' WHEN "B" THEN 'Baja' ELSE 'Rechazada' END AS  EstadoSunat,DocNum AS DocEntry,
     RucProveedor AS NroDocAdq,ImporteTotalPagadoSOL AS TotalGravado,0 AS TotalInafecto,0 AS TotalExonerado,0 AS MontoIGV,0 AS TotalGratuito,CONCAT(tipo_doc,'-',SerieRet,'-',NumRet) AS ruta

    FROM retencion_cab
     WHERE  tipo_doc=tipo AND FecEmiRet>=fechaini AND FecEmiRet<DATE_ADD(fechafin,INTERVAL 1 DAY) AND RucProveedor=ruc AND EstadoSunat=0 AND RucEmisor=EmisorRuc
    ORDER BY NroDocumento DESC,FecEmision DESC;
  END IF;

 
END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_ListarEmailsRegistrados`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_ListarEmailsRegistrados`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_ListarEmailsRegistrados`(IN idprov INT,IN idemp INT )
BEGIN

   DECLARE __select VARCHAR(50000) DEFAULT '';

  SET  __select=CONCAT('SELECT idemail,email,Name,subjet,fecha,uid,attachments,fn_CNTA_AgruparPorDia(fecha) AS groupday,
                       fn_CNTA_OrdenarPorDia(fecha) AS orderday,leido,filename
                      FROM email
                      WHERE idemp_prov IN (SELECT idemp_prov FROM empresa_proveedor WHERE idempresa=',idemp);

  IF(idprov>0)THEN
    SET __select=CONCAT(__select,' AND idproveedor=',idprov,')  ORDER BY  orderday;');
  ELSE
    SET __select=CONCAT(__select,' )  ORDER BY  orderday;');
  END IF;

  SET @__sql =__select;
  PREPARE sentencia FROM @__sql;
  EXECUTE sentencia;
	DEALLOCATE PREPARE sentencia;

END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_ListarGuiasElectronicas`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_ListarGuiasElectronicas`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_ListarGuiasElectronicas`(IN ruc VARCHAR(11), IN tipo INT,IN fechaini DATE,IN fechafin DATE)
BEGIN

    SELECT DocEntry, DATE_FORMAT( `Fecha_Emision` , '%d-%m-%Y' ) AS Fecha_Emision,TipoDoc,NroDocumento,Ruc_Transpo,
           Razon_Social_Transpo,DocIden_Condu,Placa,RUC_Co,Razon_Social_Co,RUC_Desti,Razon_Social_Desti,RUC_Terce,
           Razon_Social_Terce,NumBienes_Tot,PesoBruto_Tot,UM_PesoBruto_Tot,Tipo_Traslado,
           DATE_FORMAT( `FecIni_Traslado` , '%d-%m-%Y' ) AS FecIni_Traslado,PPartida_GR,PLlegada_GR,
            Case EstadoSunat WHEN '0' THEN 'Aprobada' WHEN "B" THEN 'Baja' WHEN "P" THEN 'Imprimir' ELSE 'Rechazada' END AS  EstadoSunat 
    FROM guia_cab
    WHERE  TipoDoc=tipo AND Fecha_Emision>=fechaini AND Fecha_Emision<DATE_ADD(fechafin,INTERVAL 1 DAY) AND RUC_Co=ruc
    ORDER BY NroDocumento DESC,Fecha_Emision DESC;


END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_ListarModificacionesEmpresas`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_ListarModificacionesEmpresas`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_ListarModificacionesEmpresas`()
BEGIN
  SELECT * FROM empresa_historial e;
END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_Listar_Clientes`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_Listar_Clientes`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_Listar_Clientes`(IN ruc VARCHAR(11),IN tipo INT,IN fechaini DATE,IN fechafin DATE)
BEGIN
  SELECT DISTINCT(RazonAdq) FROM documentos
  WHERE  NumeroRUC=ruc AND TipoDoc=tipo AND FecEmision>=fechaini AND FecEmision<DATE_ADD(fechafin,INTERVAL 1 DAY) AND EstadoSunat=0;
END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_Listar_Empresas`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_Listar_Empresas`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_Listar_Empresas`()
BEGIN
  SELECT *
  FROM empresa
 ORDER BY 2;
END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_Listar_Proveedores`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_Listar_Proveedores`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_Listar_Proveedores`()
BEGIN
  SELECT p.idproveedor,p.razonsocial,p.ruc,ep.email,p.estado
  FROM proveedores p
  INNER JOIN empresa_proveedor ep
  ON p.idproveedor=ep.idproveedor
  WHERE ep.estado=1;
END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_Listar_Proveedores_Por_Empresa`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_Listar_Proveedores_Por_Empresa`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_Listar_Proveedores_Por_Empresa`(IN idemp INT,IN ptodos INT)
BEGIN

  DECLARE __select VARCHAR(50000) DEFAULT '';

  SET  __select=CONCAT('SELECT p.idproveedor,p.razonsocial,p.ruc,ep.email,p.estado,0 AS orden
    FROM empresa_proveedor ep
    INNER JOIN proveedores p
    ON ep.idproveedor=p.idproveedor
    WHERE ep.estado=1 AND ep.idempresa=',idemp);

  IF(ptodos>0)THEN
    SET __select=CONCAT(__select,' UNION  SELECT -1,"TODOS","00000000001","","1",1');
  END IF;
  SET __select=CONCAT(__select,' ORDER BY 6 desc,2 asc;');

  SET @__sql =__select;
 	PREPARE sentencia FROM @__sql;
    	EXECUTE sentencia;
		DEALLOCATE PREPARE sentencia;

END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_Listar_Usuarios_Por_Empresa`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_Listar_Usuarios_Por_Empresa`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_Listar_Usuarios_Por_Empresa`()
BEGIN
  SELECT usu.iduser,emp.nombre,empcli.email,usu.username,cli.razonsocial
  FROM users usu
  INNER JOIN empresa_cliente empcli
  ON usu.idemp_clie=empcli.idemp_clie
  INNER JOIN empresa emp
  ON emp.idempresa=empcli.idempresa
  INNER JOIN clientes cli
  ON cli.idcliente=empcli.idcliente
  ORDER BY emp.nombre,empcli.email;
END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_ObtenerCabGuia`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_ObtenerCabGuia`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_ObtenerCabGuia`(IN tipo_factura TINYINT,IN nro_doc VARCHAR(15),IN fecha_emsion DATE,IN nroruc VARCHAR(20))
BEGIN
  SELECT DocEntry,RUC_Co,NroDocumento,Razon_Social_Co,Fecha_Emision,FecIni_Traslado,PPartida_GR,PLlegada_GR,Razon_Social_Transpo,
        Ruc_Transpo,DocIden_Condu,Placa,Razon_Social_Desti,RUC_Desti,DesMotTraslado,EstadoSunat,PesoBruto_Tot,NumBienes_Tot,
        T1_RucTransportista,T1_RazonSocial,T1_Puntollegada,T1_Observacion,
        T2_PuntoPartida,T2_RucTransportista,T2_RazonSocial,T2_Puntollegada,T2_Observacion,
        T3_PuntoPartida,T3_RucTransportista,T3_RazonSocial,T3_Observacion,GenericoSTR1,Licencia_Condu,
        Placa_Tolva,Tipo_Bulto,Nom_Conductor,Objeto, Tipo_Traslado
	FROM guia_cab d
	WHERE d.TipoDoc=tipo_factura AND d.NroDocumento=nro_doc AND d.Fecha_Emision=fecha_emsion AND d.RUC_Co=nroruc;
END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_ObtenerDetalleDocumentoFE`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_ObtenerDetalleDocumentoFE`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_ObtenerDetalleDocumentoFE`(IN entryDoc INT,IN emisorRuc NVARCHAR(11),IN tipdoc SMALLINT)
BEGIN

  SELECT d.UM,d.Quantity,d.Price,d.PrecioConIGV,d.ItemCode,d.Dscription,d.MontoIGv,d.LineaTotalSinIGV,
        IFNULL(DsctoLinea,0) AS DescuentoLinea,IFNULL(PrecioSinDscto,0) AS PrecioSinDscto,SerieLote,
        TipoOp
  FROM detalledocumentos d
  WHERE d.DocEntry=entryDoc AND d.RucEmisor=emisorRuc AND d.TipoDoc=tipdoc;

END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_ObtenerDetalleDocumentoFERetencion`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_ObtenerDetalleDocumentoFERetencion`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_ObtenerDetalleDocumentoFERetencion`(IN numDoc INT,IN emisorRuc NVARCHAR(11))
BEGIN
  SELECT d.TipoDocRelacionado,
  CASE TipoDocRelacionado
	  WHEN '01' THEN CONCAT('FACTURA ',SerieDocRelacionado,'-',NumDocRelacionado)
	  WHEN '07' THEN CONCAT('NOTA DE CRÉDITO ',SerieDocRelacionado,'-',NumDocRelacionado)
	  WHEN '08' THEN CONCAT('NOTA DE DÉBITO ',SerieDocRelacionado,'-',NumDocRelacionado)
	END AS Serie,
	d.NumeroPago,d.MonedaDocRelacionado,d.ImporteTotalDocRelacionado,
	d.MonedaImportePago,d.ImportePago_Print,d.MonedaImporteRetenido,d.ImporteRetenidoSOL,
	d.MonedaMontoNeto,d.NetoPagarSOL,d.FecDocRelacionado,
	IF(d.TipoCambioAplicado=1,'',d.TipoCambioAplicado) AS TC,DATE(d.FechaPago) AS FechaPago
	FROM retencion_det d WHERE d.DocNum=numDoc AND d.RucEmisor=emisorRuc;
END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_ObtenerDetalleEmpresa`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_ObtenerDetalleEmpresa`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_ObtenerDetalleEmpresa`(IN rucemisor NVARCHAR(11))
BEGIN
  SELECT UPPER(nombre) AS nombre,direccionweb,direccion,provincia,telefono,ctacorriente,ctacorriente2,rsagente,
        resolucion,email,pswd,resol_contribuyente,rpm_ventas,rpm_creditos,telefax,atencion_cliente,email_contacto,
        tiempo
  FROM empresa
  WHERE ruc=rucemisor;
END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_ObtenerDetalleGuiaFE`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_ObtenerDetalleGuiaFE`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_ObtenerDetalleGuiaFE`(IN docent INT,IN nroruc VARCHAR(20),IN tipo_factura SMALLINT,IN object INT)
BEGIN
  SELECT NroItem,CodArticulo_Itm,Descripcion_Itm,UM_Itm,Cantidad_Itm,InformacionAdi1,InformacionDec1,Tipo_Bulto,
    (SELECT GenericoSTR2 FROM guia_cab
      WHERE docentry = docent AND RUC_Co = nroruc And Objeto=object) AS GenericoSTR2,
    (SELECT GenericoSTR1 FROM guia_cab
      WHERE docentry = docent AND RUC_Co = nroruc And Objeto=object) AS GenericoSTR1,
    (SELECT CDR FROM guia_cab
      WHERE docentry = docent AND RUC_Co = nroruc And Objeto=object) AS CDR
	FROM guia_det d
	WHERE d.DocEntry=docent AND d.RUC_Co=nroruc AND Objeto = object;
END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_ObtenerDocumentoFE`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_ObtenerDocumentoFE`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_ObtenerDocumentoFE`(IN tipo_factura TINYINT,IN nro_doc VARCHAR(15),IN fecha_emsion DATE,IN monto DECIMAL(18,2),IN nroruc VARCHAR(20))
BEGIN
  SELECT d.DocEntry,d.FecEmision,d.Razonsocial,d.NumeroRuc,d.ProvinciaFiscal,d.DepartamentoFiscal,d.DistritoFiscal,d.DireccionFiscal,
					   d.TipoDoc,d.NroDocumento,d.TipoDocAdq,d.NroDocAdq,d.RazonAdq,d.Motivo,d.DireccionAdq,d.Moneda,d.ImporteTotalVenta,
					   d.DescripcionLeyenda,d.TotalUSD,d.TotalGravado,d.TotalInafecto,d.TotalExonerado,d.TotalPEN,d.MontoIGV,
					   d.EsDetra,d.Comentario,d.DocumentoAfectado,d.Firma,d.ValorResumen,d.EstadoSunat,d.DescriptionNC,d.TipoDocAfectado,d.FecDocAfecta,d.TotalGratuito,
             IFNULL(d.TotalDscto,0) AS Descuento,UPPER(d.FormaPago)AS FormaPago,d.Vendedor,d.GuiaRem,d.TelCliente,d.CodigoCliente,d.GenericoFec,d.GenericoSTR,
             d.GenericoDec,d.GenericoSTR1,d.totalanticipo,d.TipoOp,d.TipoND
					FROM documentos d
					WHERE d.TipoDoc=tipo_factura AND d.NroDocumento=nro_doc AND d.FecEmision=fecha_emsion AND d.ImporteTotalVenta=monto AND d.NumeroRuc=nroruc;
END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_ObtenerDocumentoFERetencion`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_ObtenerDocumentoFERetencion`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_ObtenerDocumentoFERetencion`(IN tipo_factura TINYINT,IN serie VARCHAR(4),IN nroret VARCHAR(8),IN fecha_emision DATE,IN monto DECIMAL(18,2),IN nroruc VARCHAR(11))
BEGIN

  SELECT  CONCAT(d.SerieRet,'-',d.NumRet)AS Serie,DATE(d.FecEmiRet)AS FecEmiRet,d.RazonSocialProveedor,
    d.RucProveedor,d.TasaRet,d.MonedaTotalRetenido,d.ImporteTotalRetenidoSOL,d.MonedaTotalPagado,
    d.ImporteTotalPagadoSOL,d.DocNum,d.EstadoSunat,d.DescripcionLeyenda,d.Firma,d.RucEmisor
	FROM retencion_cab d
	WHERE d.tipo_doc=tipo_factura AND d.SerieRet=serie AND d.NumRet=nroret AND d.FecEmiRet=fecha_emision AND d.ImporteTotalPagadoSOL=monto AND d.RucEmisor=nroruc;

END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_ObtenerEmailCliente`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_ObtenerEmailCliente`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_ObtenerEmailCliente`(IN cliruc NVARCHAR(11))
BEGIN
  SELECT empcli.email AS E_mail
  FROM clientes cli
  INNER JOIN empresa_cliente empcli
  ON cli.idcliente=empcli.idcliente
  WHERE empcli.estado=1 AND ruc=cliruc;
END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_ObtenerEmailsProveedoresPorEmpresa`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_ObtenerEmailsProveedoresPorEmpresa`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_ObtenerEmailsProveedoresPorEmpresa`(IN empid INT, IN provid INT)
BEGIN

  DECLARE __sqlconsult NVARCHAR(8000) DEFAULT '';

  SET __sqlconsult=CONCAT('SELECT email FROM empresa_proveedor WHERE estado=1 AND idempresa=',empid);

  IF (provid>0) THEN SET __sqlconsult=CONCAT(__sqlconsult,' AND idproveedor=',provid,';'); ELSE SET __sqlconsult=CONCAT(__sqlconsult,';'); END IF;

  SET @__sql =__sqlconsult;

	PREPARE sentencia FROM @__sql;

	EXECUTE sentencia;

	DEALLOCATE PREPARE sentencia;

END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_RegistrarEmailRecibido`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_RegistrarEmailRecibido`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_RegistrarEmailRecibido`(IN fromAddr NVARCHAR(100),IN fromName NVARCHAR(100),
       IN asunto NVARCHAR(300),IN fech DATETIME,IN idu INTEGER,IN adjuntos SMALLINT,IN reading CHAR(2),
       IN idemp INT,IN namefile NVARCHAR(150))
BEGIN

  DECLARE emp_provid INT DEFAULT 0;

  SET emp_provid=(SELECT idemp_prov FROM empresa_proveedor WHERE idempresa=idemp AND email=fromAddr AND estado=1);

  IF (NOT EXISTS (SELECT * FROM email WHERE uid=idu))THEN
    INSERT INTO email(email,Name,subjet,fecha,uid,attachments,leido,idemp_prov,filename)
    VALUES(fromAddr,fromName,asunto,fech,idu,adjuntos,reading,emp_provid,namefile);

    SELECT LAST_INSERT_ID() AS id;
  END IF;

END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_Registrar_Sesion`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_Registrar_Sesion`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_Registrar_Sesion`(IN userid INT,IN ipaddres VARCHAR(15),IN agente VARCHAR(65))
BEGIN
  	INSERT INTO historial_sesiones (fechainicio,ip,iduser,agente)
    VALUES (NOW(),ipaddres,userid,agente);
END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_VerificarToken`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_VerificarToken`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_VerificarToken`(IN tokn VARCHAR(15),IN empresaid INT)
BEGIN

 SELECT  IF(TIMEDIFF(NOW(),res.fecha)<='72:00:00',false,true) AS expirado,usu.lastuserchange,clie.razonsocial
  FROM reset_password res
  INNER JOIN empresa_cliente ec
  ON res.email=ec.email AND ec.estado=1
  INNER JOIN clientes clie
  ON ec.idcliente=clie.idcliente
  INNER JOIN users usu
  ON ec.idemp_clie=usu.idemp_clie
  WHERE token=tokn AND expirado =0 AND ec.idempresa=empresaid;

END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `sp_CNTA_VerificarUsuario`
--

DROP PROCEDURE IF EXISTS `sp_CNTA_VerificarUsuario`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_CNTA_VerificarUsuario`(IN nameuser NVARCHAR(45),IN passuser NVARCHAR(60),IN rucempresa NVARCHAR(11))
BEGIN
  SELECT u.iduser,u.username,u.lastvisit,c.razonsocial,u.estado,u.lastuserchange,emp.nombre,emp.nombrecarpeta,emp.idempresa
  FROM empresa_cliente ec
  INNER JOIN users u
  ON ec.idemp_clie=u.idemp_clie
	INNER JOIN clientes c
	ON c.idcliente=ec.idcliente
  INNER JOIN empresa emp
  ON emp.idempresa=ec.idempresa
	WHERE u.username=nameuser AND u.pasword=passuser AND emp.ruc=rucempresa AND ec.estado=1;
END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `SP_Listar_Opciones_Sistemas_Por_Usuario`
--

DROP PROCEDURE IF EXISTS `SP_Listar_Opciones_Sistemas_Por_Usuario`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `SP_Listar_Opciones_Sistemas_Por_Usuario`(IN iduser INT)
BEGIN
  SELECT acc.idusuarios,opc.descripcion
  FROM accesos acc
  INNER JOIN opciones opc
  ON acc.idopciones=opc.idopciones
  WHERE acc.idusuarios=iduser;
END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;
--
-- Create schema intranet
--

CREATE DATABASE IF NOT EXISTS intranet;
USE intranet;

--
-- Definition of procedure `SP_ActualizarPassword`
--

DROP PROCEDURE IF EXISTS `SP_ActualizarPassword`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `SP_ActualizarPassword`(IN newpswd NVARCHAR(50),IN username NVARCHAR(25),IN changelast NVARCHAR(1))
BEGIN

  UPDATE usuarios
  SET pswd=newpswd,
      lastchange_user=changelast
  WHERE codigo=username;

END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `SP_CambiarPassword`
--

DROP PROCEDURE IF EXISTS `SP_CambiarPassword`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `SP_CambiarPassword`(IN usuarioid INT,IN contrasena NVARCHAR(60))
BEGIN

  UPDATE usuarios
  SET pswd=contrasena,
     lastchange_user='U'
  WHERE idusuario=usuarioid;

END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `SP_EliminarUsuario`
--

DROP PROCEDURE IF EXISTS `SP_EliminarUsuario`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `SP_EliminarUsuario`(IN usuarioid INT,IN eliminarid INT)
BEGIN
  UPDATE usuarios usu
  SET usu.estado=0
  WHERE idusuario=usuarioid;
END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `SP_GuardarUsuario`
--

DROP PROCEDURE IF EXISTS `SP_GuardarUsuario`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `SP_GuardarUsuario`(IN code NVARCHAR(100),IN name NVARCHAR(25),IN ape NVARCHAR(25),IN mail NVARCHAR(50),IN idcrea INT,IN opcions NVARCHAR(150))
BEGIN

  DECLARE posicion INT;
  DECLARE parametro NVARCHAR(100);
  DECLARE idusu INT;
  DECLARE idopcion INT;

  INSERT INTO usuarios(codigo,nombre,apellidos,email,creaidusuario,creafecha,modi_idusuario,modifecha)
  VALUES( LOWER(code),UPPER(name),UPPER(ape),mail,idcrea,NOW(),idcrea,NOW());

  SET idusu=LAST_INSERT_ID();

  WHILE (LENGTH(opcions)>0) DO

    SET posicion =  LOCATE(',', opcions);

    SET parametro=SUBSTRING(opcions,1,posicion-1);
    SET opcions=SUBSTRING(opcions,posicion+1,LENGTH(opcions));

    SET idopcion=(SELECT opc.idopcion FROM opciones opc WHERE opc.descripcion=parametro);

    INSERT INTO accesos(idusuario,idopcion)
    VALUES(idusu,idopcion);


    INSERT INTO registromodificaciones(idusuario,idopcion,fecha,idcreador)
    VALUES(idusu,idopcion,NOW(),idcrea);

  END WHILE;

  SELECT idusu AS idnewuser;
END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `SP_GuardarUsuarioModificado`
--

DROP PROCEDURE IF EXISTS `SP_GuardarUsuarioModificado`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `SP_GuardarUsuarioModificado`(IN userid INT ,IN code NVARCHAR(100),IN name NVARCHAR(25),IN ape NVARCHAR(25),IN mail NVARCHAR(50),IN idmodi INT)
BEGIN

  UPDATE usuarios
  SET codigo=code,
    nombre=name,
    apellidos=ape,
    email=mail,
    modi_idusuario=idmodi,
    modifecha=NOW()
  WHERE idusuario=userid;


END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `SP_ListarAccesosPorUsuario`
--

DROP PROCEDURE IF EXISTS `SP_ListarAccesosPorUsuario`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `SP_ListarAccesosPorUsuario`(IN idUsuario NVARCHAR(150))
BEGIN

  SELECT opc.idopcion ,opc.codigo AS opciones_cod,opc.descripcion AS opcciones_des,modu.descripcion AS modulo_des
  FROM accesos acc
  INNER JOIN opciones opc
  ON acc.idopcion=opc.idopcion AND opc.estado=1
  INNER JOIN modulos modu
  ON modu.idmodulo=opc.idmodulo
  INNER JOIN usuarios usu
  ON usu.idusuario=acc.idusuario
  WHERE usu.idusuario=idUsuario AND acc.estado=1
 ORDER BY modulo_des;

END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `SP_ListarAccesosPorUsuario2`
--

DROP PROCEDURE IF EXISTS `SP_ListarAccesosPorUsuario2`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `SP_ListarAccesosPorUsuario2`(IN iduser INT)
BEGIN
  SELECT acc.idusuario,opc.descripcion
  FROM accesos acc
  INNER JOIN opciones opc
  ON acc.idopcion=opc.idopcion
 WHERE acc.idusuario=iduser AND acc.estado=1;
END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `SP_ListarHistorialModificacionesPorUsuario`
--

DROP PROCEDURE IF EXISTS `SP_ListarHistorialModificacionesPorUsuario`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `SP_ListarHistorialModificacionesPorUsuario`(IN iduser INT)
BEGIN

  SELECT reg.idusuario,opc.descripcion,reg.estado,DATE_FORMAT(reg.fecha,'%d/%m/%Y') AS FechaModificacion,
          (SELECT nombre FROM usuarios u WHERE u.idusuario=reg.idcreador)AS nombre
  FROM registromodificaciones reg
  INNER JOIN usuarios usu
  ON reg.idusuario=usu.idusuario
  INNER JOIN opciones opc
  ON reg.idopcion=opc.idopcion
  WHERE usu.idusuario=iduser;
END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `SP_ListarOpcionesPorModulo`
--

DROP PROCEDURE IF EXISTS `SP_ListarOpcionesPorModulo`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `SP_ListarOpcionesPorModulo`()
BEGIN
  SELECT modu.idmodulo,modu.codigo AS Codigo,opc.idopcion AS IdOpcion ,opc.descripcion AS Descripcion, "" AS Detalle
  FROM modulos modu
  INNER JOIN opciones opc
  ON modu.idmodulo=opc.idmodulo
  GROUP BY modu.idmodulo,modu.codigo,opc.idopcion,opc.descripcion
  ORDER BY modu.Codigo;
END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `SP_ListarUsuarios`
--

DROP PROCEDURE IF EXISTS `SP_ListarUsuarios`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `SP_ListarUsuarios`()
BEGIN
  SELECT *
  FROM usuarios usu
  
  ORDER BY usu.nombre;
END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `SP_ModificarAccesosPorUsuario`
--

DROP PROCEDURE IF EXISTS `SP_ModificarAccesosPorUsuario`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `SP_ModificarAccesosPorUsuario`(IN operacion INT,IN iduser INT,IN descrip NVARCHAR(100),IN creadorid INT)
BEGIN
  DECLARE opcionid INT;
  DECLARE result SMALLINT;

  SET opcionid=(SELECT opc.idopcion FROM opciones opc WHERE opc.descripcion=descrip);

  IF(operacion<2)THEN 
    INSERT INTO accesos(idusuario,idopcion)VALUES(iduser,opcionid);
    
    INSERT INTO registromodificaciones(idusuario,idopcion,fecha,idcreador)
    VALUES(iduser,opcionid,NOW(),creadorid);
    SET result=1;
  ELSE 
    INSERT INTO registromodificaciones(idusuario,idopcion,fecha,idcreador,estado)
    VALUES(iduser,opcionid,NOW(),creadorid,'0');
    
    UPDATE accesos
    SET estado=0
    WHERE idusuario=iduser AND idopcion=opcionid;
    SET result=0;
  END IF;

  SELECT result;
END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;

--
-- Definition of procedure `SP_VerificarUsuario`
--

DROP PROCEDURE IF EXISTS `SP_VerificarUsuario`;

DELIMITER $$

/*!50003 SET @TEMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `SP_VerificarUsuario`(IN cod NVARCHAR(100),IN psw NVARCHAR(100))
BEGIN
  SELECT *
	FROM usuarios usu
	WHERE usu.codigo = cod AND pswd=psw AND usu.estado=1;
END $$
/*!50003 SET SESSION SQL_MODE=@TEMP_SQL_MODE */  $$

DELIMITER ;



/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
