(2418,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2419,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2420,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2426,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2427,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2428,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2429,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2432,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2433,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2436,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2437,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2437,'SRV',0,'001','PR','0010000000',222.874,222.874,0,'UND',100.0000,118.0000,0,0.00,0,0.00,0.0000,22287.40,26299.13,0.0000,0,0,-1,0.000,222.874,222.874,0,'SERVICIO DE TRANSPORTE DE PRODUCTOS GLORIA DE CHICLAYO\r\nHASTA JAEN SEGÚN NÚMEROS DE TRANSPORTE:\r\n10931232,10931280,10931303,10931306,10938953,10938954,10956095,10958280,10958388,10958389,10958954,10958955,10960071,10974515,10974578,10974786,10977473,10979298,10995431,10995433,10995436,11004743,11004744,11016046,11016619,11034646,11034647,11034799,11037349\r\n\r\n                                             VALOR REFERENCIAL S/ 34,236.256',NULL,NULL,2,NULL,0),(2442,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2443,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2444,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2445,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2446,'SRV',1761,'001','PR','0010000000',0.000,0.000,0,'UND',1250.0000,1250.0000,0,0.00,0,0.00,0.0000,1250.00,1250.00,0.0000,0,0,0,0.000,1,1,0,'SERVICIO DE MOVILIZACIÓN DE EXCAVADORA DESDE CHACHAPOYAS - SAN ISIDRO DE MAINO',NULL,NULL,1,NULL,0),(2448,'SRV',1689,'001','PR','0010000000',0.000,0.000,0,'TM.',115.0000,135.7000,0,0.00,0,0.00,0.0000,9768.79,11527.17,0.0000,0,0,0,0.000,84.946,84.946,0,'SERVICIO DE TRANSPORTE DE PRODUCTOS GLORIA DE CHICLAYO \r\nCHACHAPOYAS SEGÚN NÚMEROS DE TRANSPORTE:\r\n10876227,10878608,10916912,10919481\r\n\r\n                          VALOR REFERENCIAL S/ 20,849.092',NULL,NULL,1,NULL,0),(2448,'SRV',1689,'001','PR','0010000000',0.000,0.000,0,'TM.',100.0000,118.0000,0,0.00,0,0.00,0.0000,10061.40,11872.45,0.0000,0,0,0,0.000,100.614,100.614,0,'SERVICIO DE TRANSPORTE DE PRODUCTOS GLORIA DE CHICLAYO \r\nJAEN SEGÚN NÚMEROS DE TRANSPORTE:\r\n10886567,10892067,10898936,10898937,10898938,10899886,10907072,10919325,10919482\r\n\r\n                           VALOR REFERENCIAL S/ 15,433.574',NULL,NULL,2,NULL,0),(2449,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2452,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2453,'SRV',1766,'001','PR','0010000000',0.000,0.000,0,'UND',400.0000,400.0000,0,0.00,0,0.00,0.0000,400.00,400.00,0.0000,0,0,0,0.000,1,1,0,'SERVICIO DE ALQUILER DE CAMION GRUA PARA LA DESESTIBA DE RECLOSER EN LA CENTRAL TECNICA DE CHACHAPOYAS ',NULL,NULL,1,NULL,0),(2454,'SRV',1766,'001','PR','0010000000',0.000,0.000,0,'UND',400.0000,400.0000,0,0.00,0,0.00,0.0000,400.00,400.00,0.0000,0,0,0,0.000,1,1,0,'SERVICIO DE ALQUILER DE CAMION GRUA PARA LA DESESTIBA DE RECLOSER EN LA CENTRAL TECNICA DE CHACHAPOYAS ',NULL,NULL,1,NULL,0),(2457,'SRV',1762,'001','PR','0010000000',356.000,356.000,0,'SCO.',2.3805,2.8090,0,0.00,0,0.00,0.0000,847.46,1000.00,0.0000,0,0,-1,0.000,356,356,0,'SERVICIO DE TRANSPORTE DE ARROZ CASCARA DESDE RIOJA HASTA LAMBAYEQUE \r\nREMITIDOS POR EL MISMO SEGÚN GRR N° 002-770',NULL,NULL,1,NULL,0),(2458,'SRV',1764,'001','PR','0010000000',350.000,350.000,0,'SCO.',2.4213,2.8571,0,0.00,0,0.00,0.0000,847.46,1000.00,0.0000,0,0,-1,0.000,350,350,0,'SERVICIO DE TRANSPORTE DE ARROZ CASCARA DESDE BAGUA HASTA CHIMBOTE \r\nREMITIDOS POR EL MISMO SEGÚN GRR N° 002-440',NULL,NULL,1,NULL,0),(2459,'SRV',1764,'001','PR','0010000000',350.000,350.000,0,'SCO.',2.4213,2.8571,0,0.00,0,0.00,0.0000,847.46,1000.00,0.0000,0,0,-1,0.000,350,350,0,'SERVICIO DE TRANSPORTE DE ARROZ CASCARA DESDE BAGUA HASTA CHIMBOTE \r\nREMITIDOS POR EL MISMO SEGÚN GRR N° 002-440',NULL,NULL,1,NULL,0),(2464,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2465,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2468,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2469,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2471,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2473,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2474,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2475,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2477,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2478,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2482,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2486,'SRV',1775,'001','PR','0010000000',26.160,26.160,0,'TM.',210.2446,248.0886,0,0.00,0,0.00,0.0000,5500.00,6490.00,0.0000,0,0,-1,0.000,26.16,26.16,0,'SERVICIO DE TRANSPORTE DE CHATARRA DESDE LA CIUDAD DE CHACHAPOYAS HASTA LA\r\nCIUDAD DE CHIMBOTE, REMITIDOS POR RECICLADORA ECOLOGICA DEYBI E.I.R.L.\r\nSEGUN GRR # 001-389',NULL,NULL,1,NULL,0),(2487,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2488,'SRV',1775,'001','PR','0010000000',26.160,26.160,0,'TM.',210.2446,248.0886,0,0.00,0,0.00,0.0000,5500.00,6490.00,0.0000,0,0,-1,0.000,26.16,26.16,0,'SERVICIO DE TRANSPORTE DE CHATARRA DESDE LA CIUDAD DE CHACHAPOYAS HASTA LA\r\nCIUDAD DE CHIMBOTE, REMITIDOS POR RECICLADORA ECOLOGICA DEYBI E.I.R.L.\r\nSEGUN GRR # 001-389',NULL,NULL,1,NULL,0),(2489,'SRV',1775,'001','PR','0010000000',26.160,26.160,0,'TM.',210.2446,248.0886,0,0.00,0,0.00,0.0000,5500.00,6490.00,0.0000,0,0,-1,0.000,26.16,26.16,0,'SERVICIO DE TRANSPORTE DE CHATARRA DESDE LA CIUDAD DE CHACHAPOYAS HASTA LA\r\nCIUDAD DE CHIMBOTE, REMITIDOS POR RECICLADORA ECOLOGICA DEYBI E.I.R.L.\r\nSEGUN GRR # 001-389',NULL,NULL,1,NULL,0),(2492,'SRV',1786,'001','PR','0010000000',0.000,0.000,0,'UND',3500.0000,3500.0000,0,0.00,0,0.00,0.0000,3500.00,3500.00,0.0000,0,0,0,0.000,1,1,0,'SERVICIO DE TRANSPORTE DE BOBINAS DE CABLE Y OTRAS FERRETERIAS DESDE CHACHAPOYAS HASTA JAEN\r\nREMITIDOS POR E MISMO SEGÚN GRR N° 087-1401',NULL,NULL,1,NULL,0),(2493,'SRV',1786,'001','PR','0010000000',0.000,0.000,0,'UND',3500.0000,3500.0000,0,0.00,0,0.00,0.0000,3500.00,3500.00,0.0000,0,0,0,0.000,1,1,0,'SERVICIO DE TRANSPORTE DE BOBINAS DE CABLE Y OTRAS FERRETERIAS DESDE CHACHAPOYAS HASTA JAEN\r\nREMITIDOS POR E MISMO SEGÚN GRR N° 087-1401',NULL,NULL,1,NULL,0),(2494,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2497,'SRV',1718,'001','PR','0010000000',0.000,0.000,0,'UND',850.0000,1003.0000,0,0.00,0,0.00,0.0000,850.00,1003.00,0.0000,0,0,0,0.000,1,1,0,'SERVICIO POR DESESTIBA \r\nRUTA: CHIMBOTE - JAEN\r\nOC:4517861448\r\nGRR:001 - 604451\r\n\r\n                                            VALOR REFERNCIAL: S/ 1003.00 ',NULL,NULL,1,NULL,0),(2499,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2502,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2503,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2503,'SRV',0,'001','PR','0010000000',31.705,31.705,0,'TM.',100.0000,118.0000,0,0.00,0,0.00,0.0000,3170.50,3741.19,0.0000,0,0,1,0.000,31.705,31.705,0,'SERVICIO DE TRANSPORTE DE PRODUCTOS GLORIA DE CHICLAYO\r\nHASTA JAEN SEGÚN NÚMEROS DE TRANSPORTE:\r\n11051661,11051662,11051597,11051598\r\n\r\n                                             VALOR REFERENCIAL S/ 4,863.54',NULL,NULL,2,NULL,0),(2505,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2506,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2508,'NTC',0,'001','PR','0010000000',1.000,1.000,0,'UND',1800.0000,1800.0000,0,0.00,0,0.00,0.0000,1800.00,1800.00,0.0000,0,0,-1,0.000,1,1,0,'SERVICIO DE TRANSPORTE DE UNA EXCAVADORA MARCA CAT MODELO 320 DESDE HUANCAS HASTA LUYA',NULL,NULL,52,NULL,0),(2509,'NTC',0,'001','PR','0010000000',1.000,1.000,0,'UND',1800.0000,1800.0000,0,0.00,0,0.00,0.0000,1800.00,1800.00,0.0000,0,0,-1,0.000,1,1,0,'SERVICIO DE TRANSPORTE DE UNA EXCAVADORA MARCA CAT MODELO 320 DESDE HUANCAS HASTA LUYA',NULL,NULL,53,NULL,0),(2512,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2513,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2517,'SRV',1796,'001','PR','0010000000',0.000,0.000,0,'TM.',115.0000,135.7000,0,0.00,0,0.00,0.0000,3539.93,4177.12,0.0000,0,0,0,0.000,30.782,30.782,0,'SERVICIO DE TRANSPORTE DE PRODUCTOS GLORIA DE CHICLAYO\r\nHASTA CHACHAPOYAS SEGÚN NÚMEROS DE TRANSPORTE:\r\n11048426\r\n\r\n                                             VALOR REFERENCIAL S/ 7,918.922',NULL,NULL,1,NULL,0),(2517,'SRV',1796,'001','PR','0010000000',0.000,0.000,0,'TM.',100.0000,118.0000,0,0.00,0,0.00,0.0000,3170.50,3741.19,0.0000,0,0,0,0.000,31.705,31.705,0,'SERVICIO DE TRANSPORTE DE PRODUCTOS GLORIA DE CHICLAYO\r\nHASTA JAEN SEGÚN NÚMEROS DE TRANSPORTE:\r\n11051661,11051662,11051597,11051598\r\n\r\n                                             VALOR REFERENCIAL S/ 4,863.54',NULL,NULL,2,NULL,0),(2521,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2522,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2530,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2534,'SRV',1812,'001','PR','0010000000',0.000,0.000,0,'TM.',135.5932,160.0000,0,0.00,0,0.00,0.0000,406.78,480.00,0.0000,0,0,0,0.000,3,3,0,'SERVICIOS DE TRANSPORTE DE FERTILIZANTE DESDE PIURA HASTA RIOJA\r\nREMITIDOS POR EL MISMO SEGÚN GRER EG07-39',NULL,NULL,1,NULL,0),(2542,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2546,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2546,'SRV',0,'001','PR','0010000000',71.200,71.200,0,'TM.',100.0000,118.0000,0,0.00,0,0.00,0.0000,7120.00,8401.60,0.0000,0,0,1,0.000,71.2,71.2,0,'SERVICIO DE TRANSPORTE DE PRODUCTOS GLORIA DE CHICLAYO \r\nJAEN SEGÚN NÚMEROS DE TRANSPORTE:\r\n11079106,11079107,11079108,11079132,11079437,11099362,11099363,11099364,11099365,11101485,11101802 \r\n\r\n\r\n                                       VALOR REFERENCIAL S/ 10,921.492',NULL,NULL,2,NULL,0),(2547,'SRV',1817,'001','PR','0010000000',0.000,0.000,0,'TM.',115.0000,135.7000,0,0.00,0,0.00,0.0000,15947.05,18817.52,0.0000,0,0,0,0.000,138.67,138.67,0,'SERVICIO DE TRANSPORTE DE PRODUCTOS GLORIA DE CHICLAYO \r\nCHACHAPOYAS SEGÚN NÚMEROS DE TRANSPORTE:\r\n11083420,11088769,11089394,11111651,11111659,11111745 \r\n\r\n\r\n                                       VALOR REFERENCIAL S/ 21,272.498',NULL,NULL,1,NULL,0),(2547,'SRV',1817,'001','PR','0010000000',0.000,0.000,0,'TM.',100.0000,118.0000,0,0.00,0,0.00,0.0000,7120.00,8401.60,0.0000,0,0,0,0.000,71.2,71.2,0,'SERVICIO DE TRANSPORTE DE PRODUCTOS GLORIA DE CHICLAYO \r\nJAEN SEGÚN NÚMEROS DE TRANSPORTE:\r\n11079106,11079107,11079108,11079132,11079437,11099362,11099363,11099364,11099365,11101485,11101802 \r\n\r\n\r\n                                       VALOR REFERENCIAL S/ 10,921.492',NULL,NULL,2,NULL,0),(2554,'SRV',1815,'001','PR','0010000000',0.000,0.000,0,'UND',4150.0000,4150.0000,0,0.00,0,0.00,0.0000,4150.00,4150.00,0.0000,0,0,0,0.000,1,1,0,'SERVICIO DE ALQUILER DE CAMION GRUA PARA EL TRANSPORTE E IZAJE DE 5 POSTES DE CONCRETO DE 12 METROS DESDE JAZAN BONGARA HASTA MILPUE RODRIGUEZ DE MENDOZA REMITIDOS POR A & POSTES DEL ORIENTE E.I.R.L. SEGUN GRR 001 - 238',NULL,NULL,1,NULL,0),(2558,'SRV',1819,'001','PR','0010000000',0.000,0.000,0,'HOR',233.3333,233.3333,0,0.00,0,0.00,0.0000,700.00,700.00,0.0000,0,0,0,0.000,3,3,0,'SERVICIO DE ALQUILER DE CAMIÓN GRÚA PARA REALIZAR MOVIMIENTO DE TRANSFORMADORES EN LA CENTRAL TERMICA',NULL,NULL,1,NULL,0),(2562,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2563,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2564,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2565,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2567,'SRV',1815,'001','PR','0010000000',0.000,0.000,0,'UND',4150.0000,4150.0000,0,0.00,0,0.00,0.0000,4150.00,4150.00,0.0000,0,0,0,0.000,1,1,0,'SERVICIO DE ALQUILER DE CAMION GRUA PARA EL TRANSPORTE E IZAJE DE 5 POSTES DE CONCRETO DE 12 METROS DESDE JAZAN BONGARA HASTA MILPUE RODRIGUEZ DE MENDOZA REMITIDOS POR A & POSTES DEL ORIENTE E.I.R.L. SEGUN GRR 001 - 238',NULL,NULL,1,NULL,0),(2568,'NTC',1818,'001','','0010000000',0.000,0.000,0,'UND',4150.0000,4150.0000,0,0.00,0,0.00,0.0000,4150.00,4150.00,0.0000,0,0,0,0.000,1,1,0,'SERVICIO DE ALQUILER DE CAMION GRUA PARA EL TRANSPORTE E IZAJE DE 5 POSTES DE CONCRETO DE 12 METROS DESDE JAZAN BONGARA HASTA MILPUE RODRIGUEZ DE MENDOZA REMITIDOS POR A & POSTES DEL ORIENTE E.I.R.L. SEGUN GRR 001 - 238',NULL,NULL,54,1,1),(2569,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2571,'SRV',1822,'001','PR','0010000000',1.000,1.000,0,'UND',3000.0000,3000.0000,0,0.00,0,0.00,0.0000,3000.00,3000.00,0.0000,0,0,-1,0.000,1,1,0,'SERVICIO DE TRANSPORTE DE 8 POSTES DE 15 METROS DESDE PEDRO RUIZ HASTA JAÉN, REMITIDOS POR A&S POSTES DEL ORIENTE E.I.R.L. PARA MANUEL OLANO S.A.C. SEGÚN GRR N° 0001-240\r\nINCLUYE DESESTIBA',NULL,NULL,1,NULL,0),(2574,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2574,'SRV',0,'001','PR','0010000000',12.500,12.500,0,'TM.',135.5932,160.0000,0,0.00,0,0.00,0.0000,1694.92,2000.00,0.0000,0,0,-1,0.000,12.5,12.5,0,'SERVICIO DE TRANSPORTE DE FERTILIZANTE DESDE TRUJILLO HASTA RIOJA\r\nREMITIDOS POREL MISMO SEGÚN GRER EG07-16/17',NULL,NULL,2,NULL,0),(2575,'SRV',1831,'001','PR','0010000000',10.000,10.000,0,'TM.',135.5932,160.0000,0,0.00,0,0.00,0.0000,1355.93,1600.00,0.0000,0,0,-1,0.000,10,10,0,'SERVICIO DE TRANSPORTE DE FERTILIZANTE DESDE TRUJILLO HASTA RIOJA\r\nREMITIDOS POR INKA AGRI SEGUN GRR N° 009-6025',NULL,NULL,1,NULL,0),(2578,'SRV',1821,'001','PR','0010000000',0.000,0.000,0,'UND',3500.0000,3500.0000,0,0.00,0,0.00,0.0000,3500.00,3500.00,0.0000,0,0,0,0.000,1,1,0,'SERVICIO DE TRANSPORTE DE UNA EXCAVADORA DESDE OLLEROS HASTA MANGALPA',NULL,NULL,1,NULL,0),(2580,'SRV',1821,'001','PR','0010000000',0.000,0.000,0,'UND',3500.0000,3500.0000,0,0.00,0,0.00,0.0000,3500.00,3500.00,0.0000,0,0,0,0.000,1,1,0,'SERVICIO DE TRANSPORTE DE UNA EXCAVADORA DESDE OLLEROS HASTA MANGALPA',NULL,NULL,1,NULL,0),(2581,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2583,'SRV',1838,'001','PR','0010000000',1.000,1.000,0,'UND',2000.0000,2000.0000,0,0.00,0,0.00,0.0000,2000.00,2000.00,0.0000,0,0,-1,0.000,1,1,0,'SERVICIO DE TRANSPORTE DE UNA RETRO EXCAVADORA DESDE BAGUAHASTA NOGALCUCHO',NULL,NULL,1,NULL,0),(2585,'NTC',1840,'001','','0010000000',0.000,0.000,0,'TM.',155.0000,182.9000,0,0.00,0,0.00,0.0000,5293.25,6246.03,0.0000,0,0,0,0.000,34.15,34.15,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # 001 - 610043 / 610044 \r\n\r\n                                                          VALOR REFERENCIAL: S/. 7,135.64',NULL,NULL,55,1,0),(2585,'SRV',1726,'001','PR','0010000000',0.000,0.000,0,'TM.',155.0000,182.9000,0,0.00,0,0.00,0.0000,5156.54,6084.72,0.0000,0,0,0,0.000,33.268,33.268,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # 001 - 604877\r\n\r\n                                                   VALOR REFERENCIAL : S/ 6,950.93',NULL,NULL,1,NULL,0),(2589,'NTC',1844,'001','','0010000000',31.200,31.200,0,'UND',165.0000,194.7000,0,0.00,0,0.00,0.0000,5148.00,6074.64,0.0000,0,0,0,0.000,31.2,31.2,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE TARAPOTO SEGUN GRR # 001 - 610661.\r\n\r\n                                                      VALOR REFERENCIAL: S/. 6,074.64.',NULL,NULL,56,NULL,0),(2590,'SRV',1846,'001','PR','0010000000',0.000,0.000,0,'UND',150.0000,177.0000,0,0.00,0,0.00,0.0000,4987.50,5885.25,0.0000,0,0,0,0.000,33.25,33.25,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE BAGUA GRANDE SEGUN GRR # 001 - 494\r\n\r\n                                                          VALOR REFERENCIAL: S/. 4,620.10.',NULL,NULL,1,NULL,0),(2593,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2594,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2597,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2598,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2599,'SRV',1852,'001','PR','0010000000',0.000,0.000,0,'UND',1700.0000,1700.0000,0,0.00,0,0.00,0.0000,1700.00,1700.00,0.0000,0,0,0,0.000,1,1,0,'SERVICIO DE TRANSPORTE DE UN RODILLO DESDE CHACHAPOYAS HASTA PENGOTE',NULL,NULL,1,NULL,0),(2600,'SRV',1852,'001','PR','0010000000',0.000,0.000,0,'UND',1700.0000,1700.0000,0,0.00,0,0.00,0.0000,1700.00,1700.00,0.0000,0,0,0,0.000,1,1,0,'SERVICIO DE TRANSPORTE DE UN RODILLO DESDE CHACHAPOYAS HASTA PENGOTE',NULL,NULL,1,NULL,0),(2601,'SRV',1850,'001','PR','0010000000',1.000,1.000,0,'UND',2200.0000,2200.0000,0,0.00,0,0.00,0.0000,2200.00,2200.00,0.0000,0,0,-1,0.000,1,1,0,'SERVICIO DE TRANSPORTE DE UNA EXCAVADORA HYUNDAI 260 DESDE CHACHAPOYAS HASTA CHETO\r\nREMITIDOS POR EL MISMO SEGUN GRER EG07-1',NULL,NULL,1,NULL,0),(2603,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2604,'SRV',1853,'001','PR','0010000000',0.000,0.000,0,'TM.',135.5932,160.0000,0,0.00,0,0.00,0.0000,5423.73,6400.00,0.0000,0,0,0,0.000,40,40,0,'SERVICIO DE TRANSPORTE DE FERTILIZANTE DESDE TRUJILLO HASTA RIOJA\r\nREMITIDOS POR EL MISMO SEGÚN GRER T001-2091',NULL,NULL,1,NULL,0),(2607,'SRV',1831,'001','PR','0010000000',0.000,0.000,0,'TM.',135.5932,160.0000,0,0.00,0,0.00,0.0000,1355.93,1600.00,0.0000,0,0,0,0.000,10,10,0,'SERVICIO DE TRANSPORTE DE FERTILIZANTE DESDE TRUJILLO HASTA RIOJA\r\nREMITIDOS POR INKA AGRI SEGUN GRR N° 009-6025',NULL,NULL,1,NULL,0),(2608,'SRV',1830,'001','PR','0010000000',0.000,0.000,0,'TM.',135.5932,160.0000,0,0.00,0,0.00,0.0000,2372.88,2800.00,0.0000,0,0,0,0.000,17.5,17.5,0,'SERVICIO DE TRANSPORTE DE FERTILIZANTE DESDE TRUJILLO HASTA RIOJA\r\nREMITIDOS POR INKA AGRI SEGUN GRR N° 009-6025',NULL,NULL,1,NULL,0),(2608,'SRV',1830,'001','PR','0010000000',0.000,0.000,0,'TM.',135.5932,160.0000,0,0.00,0,0.00,0.0000,1694.92,2000.00,0.0000,0,0,0,0.000,12.5,12.5,0,'SERVICIO DE TRANSPORTE DE FERTILIZANTE DESDE TRUJILLO HASTA RIOJA\r\nREMITIDOS POREL MISMO SEGÚN GRER EG07-16/17',NULL,NULL,2,NULL,0),(2609,'SRV',1793,'001','PR','0010000000',0.000,0.000,0,'UND',2000.0000,2000.0000,0,0.00,0,0.00,0.0000,2000.00,2000.00,0.0000,0,0,0,0.000,1,1,0,'SERVICIO DE TRANSPORTE DE UNA EXCAVADORA 323 DESDE CHACHAPOYAS HASTA MANGALPA ',NULL,NULL,1,NULL,0),(2606,'SRV',1815,'001','PR','0010000000',0.000,0.000,0,'UND',4150.0000,4150.0000,0,0.00,0,0.00,0.0000,4150.00,4150.00,0.0000,0,0,0,0.000,1,1,0,'SERVICIO DE ALQUILER DE CAMION GRUA PARA EL TRANSPORTE E IZAJE DE 5 POSTES DE CONCRETO DE 12 METROS DESDE JAZAN BONGARA HASTA MILPUE RODRIGUEZ DE MENDOZA REMITIDOS POR A & POSTES DEL ORIENTE E.I.R.L. SEGUN GRR 001 - 238',NULL,NULL,1,NULL,0),(2611,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2612,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2613,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2614,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2616,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2617,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2618,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2620,'SRV',1780,'001','PR','0010000000',33.294,33.294,0,'TM.',130.0000,153.4000,0,0.00,0,0.00,0.0000,4328.22,5107.30,0.0000,0,0,-1,0.000,33.294,33.294,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE JAEN SEGUN GRR # 001 - 607823.\r\n\r\n                                                      VALOR REFERENCIAL: S/. 5,107.30',NULL,NULL,1,NULL,0),(2621,'SRV',1780,'001','PR','0010000000',33.294,33.294,0,'TM.',130.0000,153.4000,0,0.00,0,0.00,0.0000,4328.22,5107.30,0.0000,0,0,-1,0.000,33.294,33.294,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE JAEN SEGUN GRR # 001 - 607823.\r\n\r\n                                                      VALOR REFERENCIAL: S/. 5,107.30',NULL,NULL,1,NULL,0),(2622,'SRV',1780,'001','PR','0010000000',33.294,33.294,0,'TM.',130.0000,153.4000,0,0.00,0,0.00,0.0000,4328.22,5107.30,0.0000,0,0,-1,0.000,33.294,33.294,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE JAEN SEGUN GRR # 001 - 607823.\r\n\r\n                                                      VALOR REFERENCIAL: S/. 5,107.30',NULL,NULL,1,NULL,0),(2623,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2624,'SRV',1860,'001','PR','0010000000',0.000,0.000,0,'TM.',155.0000,182.9000,0,0.00,0,0.00,0.0000,5138.25,6063.14,0.0000,0,0,0,0.000,33.15,33.15,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # 001 - 607341.\r\n\r\n                                                      VALOR REFERENCIAL: S/. 6,926.70',NULL,NULL,1,NULL,0),(2625,'SRV',1860,'001','PR','0010000000',0.000,0.000,0,'TM.',155.0000,182.9000,0,0.00,0,0.00,0.0000,5138.25,6063.14,0.0000,0,0,0,0.000,33.15,33.15,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # 001 - 607341.\r\n\r\n                                                      VALOR REFERENCIAL: S/. 6,926.70',NULL,NULL,1,NULL,0),(2626,'SRV',1860,'001','PR','0010000000',0.000,0.000,0,'TM.',155.0000,182.9000,0,0.00,0,0.00,0.0000,5138.25,6063.14,0.0000,0,0,0,0.000,33.15,33.15,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # 001 - 607341.\r\n\r\n                                                      VALOR REFERENCIAL: S/. 6,926.70',NULL,NULL,1,NULL,0),(2627,'SRV',1860,'001','PR','0010000000',0.000,0.000,0,'TM.',155.0000,182.9000,0,0.00,0,0.00,0.0000,5138.25,6063.14,0.0000,0,0,0,0.000,33.15,33.15,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # 001 - 607341.\r\n\r\n                                                      VALOR REFERENCIAL: S/. 6,926.70',NULL,NULL,1,NULL,0),(2629,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2628,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2630,'SRV',1860,'001','PR','0010000000',0.000,0.000,0,'TM.',155.0000,182.9000,0,0.00,0,0.00,0.0000,5138.25,6063.14,0.0000,0,0,0,0.000,33.15,33.15,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # 001 - 607341.\r\n\r\n                                                      VALOR REFERENCIAL: S/. 6,926.70',NULL,NULL,1,NULL,0),(2631,'SRV',1860,'001','PR','0010000000',0.000,0.000,0,'TM.',155.0000,182.9000,0,0.00,0,0.00,0.0000,5138.25,6063.14,0.0000,0,0,0,0.000,33.15,33.15,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # 001 - 607341.\r\n\r\n                                                      VALOR REFERENCIAL: S/. 6,926.70',NULL,NULL,1,NULL,0),(2632,'SRV',1860,'001','PR','0010000000',0.000,0.000,0,'TM.',155.0000,182.9000,0,0.00,0,0.00,0.0000,5138.25,6063.14,0.0000,0,0,0,0.000,33.15,33.15,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # 001 - 607341.\r\n\r\n                                                      VALOR REFERENCIAL: S/. 6,926.70',NULL,NULL,1,NULL,0),(2633,'SRV',1860,'001','PR','0010000000',0.000,0.000,0,'TM.',155.0000,182.9000,0,0.00,0,0.00,0.0000,5138.25,6063.14,0.0000,0,0,0,0.000,33.15,33.15,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # 001 - 607341.\r\n\r\n                                                      VALOR REFERENCIAL: S/. 6,926.70',NULL,NULL,1,NULL,0),(2634,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2636,'SRV',1860,'001','PR','0010000000',0.000,0.000,0,'TM.',155.0000,182.9000,0,0.00,0,0.00,0.0000,5138.25,6063.14,0.0000,0,0,0,0.000,33.15,33.15,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # 001 - 607341.\r\n\r\n                                                      VALOR REFERENCIAL: S/. 6,926.70',NULL,NULL,1,NULL,0),(2637,'SRV',1861,'001','PR','0010000000',1.000,1.000,0,'UND',0.8475,1.0000,0,0.00,0,0.00,0.0000,0.85,1.00,0.0000,0,0,-1,0.000,1,1,0,'XXXXX',NULL,NULL,1,NULL,0),(2639,'SRV',1861,'001','PR','0010000000',0.000,0.000,0,'UND',0.8475,1.0000,0,0.00,0,0.00,0.0000,0.85,1.00,0.0000,0,0,0,0.000,1,1,0,'XXXXX',NULL,NULL,1,NULL,0),(2638,'SRV',1861,'001','PR','0010000000',0.000,0.000,0,'UND',0.8475,1.0000,0,0.00,0,0.00,0.0000,0.85,1.00,0.0000,0,0,0,0.000,1,1,0,'XXXXX',NULL,NULL,1,NULL,0),(2640,'SRV',596,'001','PR','0010000000',0.000,0.000,0,'SCO.',3.0159,3.5588,0,0.00,0,0.00,0.0000,1025.42,1210.00,0.0000,0,0,0,0.000,340,340,0,'SERVICIO DE TRANSPORTE DE ARROZ CASCARA DESDE RIOJA HASTA PACASMAYO, REMITIDOS PARA MOLINERA DEL VALLE SRL SEGUN GRR # 001-1819',NULL,NULL,1,NULL,0),(2641,'SRV',595,'001','PR','0010000000',0.000,0.000,0,'HOR',169.4915,200.0000,0,0.00,0,0.00,0.0000,593.22,700.00,0.0000,0,0,0,0.000,3.5,3.5,0,'SERVICIO DE ALQUILER DE CAMIÓN GRÚA PRA EL IZAJE DE UN \r\nTECHO DE ESTRUCTURA METALICA.',NULL,NULL,1,NULL,1),(2642,'SRV',595,'001','PR','0010000000',0.000,0.000,0,'HOR',169.4915,200.0000,0,0.00,0,0.00,0.0000,593.22,700.00,0.0000,0,0,0,0.000,3.5,3.5,0,'SERVICIO DE ALQUILER DE CAMIÓN GRÚA PRA EL IZAJE DE UN \r\nTECHO DE ESTRUCTURA METALICA.',NULL,NULL,1,NULL,1),(2643,'SRV',595,'001','PR','0010000000',0.000,0.000,0,'HOR',169.4915,200.0000,0,0.00,0,0.00,0.0000,593.22,700.00,0.0000,0,0,0,0.000,3.5,3.5,0,'SERVICIO DE ALQUILER DE CAMIÓN GRÚA PRA EL IZAJE DE UN \r\nTECHO DE ESTRUCTURA METALICA.',NULL,NULL,1,NULL,1),(2644,'SRV',595,'001','PR','0010000000',0.000,0.000,0,'HOR',169.4915,200.0000,0,0.00,0,0.00,0.0000,593.22,700.00,0.0000,0,0,0,0.000,3.5,3.5,0,'SERVICIO DE ALQUILER DE CAMIÓN GRÚA PRA EL IZAJE DE UN \r\nTECHO DE ESTRUCTURA METALICA.',NULL,NULL,1,NULL,1),(2645,'SRV',595,'001','PR','0010000000',0.000,0.000,0,'HOR',169.4915,200.0000,0,0.00,0,0.00,0.0000,593.22,700.00,0.0000,0,0,0,0.000,3.5,3.5,0,'SERVICIO DE ALQUILER DE CAMIÓN GRÚA PRA EL IZAJE DE UN \r\nTECHO DE ESTRUCTURA METALICA.',NULL,NULL,1,NULL,1),(2646,'SRV',595,'001','PR','0010000000',0.000,0.000,0,'HOR',169.4915,200.0000,0,0.00,0,0.00,0.0000,593.22,700.00,0.0000,0,0,0,0.000,3.5,3.5,0,'SERVICIO DE ALQUILER DE CAMIÓN GRÚA PRA EL IZAJE DE UN \r\nTECHO DE ESTRUCTURA METALICA.',NULL,NULL,1,NULL,1),(2647,'SRV',595,'001','PR','0010000000',0.000,0.000,0,'HOR',169.4915,200.0000,0,0.00,0,0.00,0.0000,593.22,700.00,0.0000,0,0,0,0.000,3.5,3.5,0,'SERVICIO DE ALQUILER DE CAMIÓN GRÚA PRA EL IZAJE DE UN \r\nTECHO DE ESTRUCTURA METALICA.',NULL,NULL,1,NULL,1),(2648,'SRV',595,'001','PR','0010000000',0.000,0.000,0,'HOR',169.4915,200.0000,0,0.00,0,0.00,0.0000,593.22,700.00,0.0000,0,0,0,0.000,3.5,3.5,0,'SERVICIO DE ALQUILER DE CAMIÓN GRÚA PRA EL IZAJE DE UN \r\nTECHO DE ESTRUCTURA METALICA.',NULL,NULL,1,NULL,1),(2649,'SRV',595,'001','PR','0010000000',0.000,0.000,0,'HOR',169.4915,200.0000,0,0.00,0,0.00,0.0000,593.22,700.00,0.0000,0,0,0,0.000,3.5,3.5,0,'SERVICIO DE ALQUILER DE CAMIÓN GRÚA PRA EL IZAJE DE UN \nTECHO DE ESTRUCTURA METALICA.',NULL,NULL,1,NULL,1),(2649,'SRV',595,'001','PR','0010000000',0.000,0.000,0,'HOR',169.4915,200.0000,0,0.00,0,0.00,0.0000,593.22,700.00,0.0000,0,0,0,0.000,3.5,3.5,0,'SERVICIO DE ALQUILER DE CAMIÓN GRÚA PRA EL IZAJE DE UN \r\nTECHO DE ESTRUCTURA METALICA.',NULL,NULL,1,NULL,1),(2650,'SRV',595,'001','PR','0010000000',0.000,0.000,0,'HOR',169.4915,200.0000,0,0.00,0,0.00,0.0000,593.22,700.00,0.0000,0,0,0,0.000,3.5,3.5,0,'SERVICIO DE ALQUILER DE CAMIÓN GRÚA PRA EL IZAJE DE UN \nTECHO DE ESTRUCTURA METALICA.',NULL,NULL,1,NULL,0),(2650,'SRV',595,'001','PR','0010000000',0.000,0.000,0,'HOR',169.4915,200.0000,0,0.00,0,0.00,0.0000,593.22,700.00,0.0000,0,0,0,0.000,3.5,3.5,0,'SERVICIO DE ALQUILER DE CAMIÓN GRÚA PRA EL IZAJE DE UN \r\nTECHO DE ESTRUCTURA METALICA.',NULL,NULL,1,NULL,0),(2652,'SRV',595,'001','PR','0010000000',0.000,0.000,0,'HOR',169.4915,200.0000,0,0.00,0,0.00,0.0000,593.22,700.00,0.0000,0,0,0,0.000,3.5,3.5,0,'SERVICIO DE ALQUILER DE CAMIÓN GRÚA PRA EL IZAJE DE UN \nTECHO DE ESTRUCTURA METALICA.',NULL,NULL,1,NULL,0),(2652,'SRV',595,'001','PR','0010000000',0.000,0.000,0,'HOR',169.4915,200.0000,0,0.00,0,0.00,0.0000,593.22,700.00,0.0000,0,0,0,0.000,3.5,3.5,0,'SERVICIO DE ALQUILER DE CAMIÓN GRÚA PRA EL IZAJE DE UN \r\nTECHO DE ESTRUCTURA METALICA.',NULL,NULL,1,NULL,0),(2653,'SRV',595,'001','PR','0010000000',0.000,0.000,0,'HOR',169.4915,200.0000,0,0.00,0,0.00,0.0000,593.22,700.00,0.0000,0,0,0,0.000,3.5,3.5,0,'SERVICIO DE ALQUILER DE CAMIÓN GRÚA PRA EL IZAJE DE UN \nTECHO DE ESTRUCTURA METALICA.',NULL,NULL,1,NULL,0),(2653,'SRV',595,'001','PR','0010000000',0.000,0.000,0,'HOR',169.4915,200.0000,0,0.00,0,0.00,0.0000,593.22,700.00,0.0000,0,0,0,0.000,3.5,3.5,0,'SERVICIO DE ALQUILER DE CAMIÓN GRÚA PRA EL IZAJE DE UN \r\nTECHO DE ESTRUCTURA METALICA.',NULL,NULL,1,NULL,0),(2655,'SRV',1860,'001','PR','0010000000',0.000,0.000,0,'TM.',155.0000,182.9000,0,0.00,0,0.00,0.0000,5138.25,6063.14,0.0000,0,0,0,0.000,33.15,33.15,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # 001 - 607341.\r\n\r\n                                                      VALOR REFERENCIAL: S/. 6,926.70',NULL,NULL,1,NULL,0),(2658,'SRV',1860,'001','PR','0010000000',0.000,0.000,0,'TM.',155.0000,182.9000,0,0.00,0,0.00,0.0000,5138.25,6063.14,0.0000,0,0,0,0.000,33.15,33.15,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # 001 - 607341.\r\n\r\n                                                      VALOR REFERENCIAL: S/. 6,926.70',NULL,NULL,1,NULL,0),(2659,'SRV',1860,'001','PR','0010000000',0.000,0.000,0,'TM.',155.0000,182.9000,0,0.00,0,0.00,0.0000,5138.25,6063.14,0.0000,0,0,0,0.000,33.15,33.15,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # 001 - 607341.\r\n\r\n                                                      VALOR REFERENCIAL: S/. 6,926.70',NULL,NULL,1,NULL,0),(2672,'SRV',1848,'001','PR','0010000000',0.000,0.000,0,'UND',850.0000,1003.0000,0,0.00,0,0.00,0.0000,850.00,1003.00,0.0000,0,0,0,0.000,1,1,0,'SERVICIO POR DESESTIBA \r\nRUTA: CHIMBOTE - JAÉN\r\nOC:4518384926\r\nGRR:001 - 596\r\n\r\n                                                      VALOR REFERNCIAL: S/ 1,003.00',NULL,NULL,1,NULL,0),(2676,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2677,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2678,'SRV',1758,'001','PR','0010000000',0.000,0.000,0,'TM.',115.0000,135.7000,0,0.00,0,0.00,0.0000,22572.78,26635.88,0.0000,0,0,0,0.000,196.285,196.285,0,'SERVICIO DE TRANSPORTE DE PRODUCTOS GLORIA DE CHICLAYO\r\nHASTA CHACHAPOYAS SEGÚN NÚMEROS DE TRANSPORTE:\r\n10950909,10966080,10966302,10966711,10974784,11010639,11032187,11035103,11045559,11045594\r\n\r\n                                             VALOR REFERENCIAL S/ 48,402.922',NULL,NULL,1,NULL,0),(2678,'SRV',1758,'001','PR','0010000000',0.000,0.000,0,'TM.',100.0000,118.0000,0,0.00,0,0.00,0.0000,22287.40,26299.13,0.0000,0,0,0,0.000,222.874,222.874,0,'SERVICIO DE TRANSPORTE DE PRODUCTOS GLORIA DE CHICLAYO\r\nHASTA JAEN SEGÚN NÚMEROS DE TRANSPORTE:\r\n10931232,10931280,10931303,10931306,10938953,10938954,10956095,10958280,10958388,10958389,10958954,10958955,10960071,10974515,10974578,10974786,10977473,10979298,10995431,10995433,10995436,11004743,11004744,11016046,11016619,11034646,11034647,11034799,11037349\r\n\r\n                                             VALOR REFERENCIAL S/ 34,236.256',NULL,NULL,2,NULL,0),(2685,'SRV',1807,'001','PR','0010000000',0.000,0.000,0,'UND',875.0000,1032.5000,0,0.00,0,0.00,0.0000,875.00,1032.50,0.0000,0,0,0,0.000,1,1,0,'SERVICIO POR DESESTIBA \r\nRUTA: CHIMBOTE - CHACHAPOYAS\r\nOC:4518239308\r\nGRR:001 - 609423\r\n\r\n                                            VALOR REFERNCIAL: S/ 1032.50',NULL,NULL,1,NULL,0),(2685,'NTC',1844,'001','','0010000000',0.000,0.000,0,'UND',165.0000,194.7000,0,0.00,0,0.00,0.0000,5148.00,6074.64,0.0000,0,0,0,0.000,31.2,31.2,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE TARAPOTO SEGUN GRR # 001 - 610661.\r\n\r\n                                                      VALOR REFERENCIAL: S/. 6,074.64.',NULL,NULL,57,1,0),(2686,'SRV',1859,'001','PR','0010000000',350.000,350.000,0,'SCO.',2.6635,3.1429,0,0.00,0,0.00,0.0000,932.20,1100.00,0.0000,0,0,-1,0.000,350,350,0,'SERVICIO DE TRANSPORTE DE ARROZ CASCARA DESDE RIOJA HASTA LAMBAYEQUE \r\nREMITIDOS POR EL MISMO SEGÚN GRR N° 002-833',NULL,NULL,1,NULL,0),(2687,'SRV',1859,'001','PR','0010000000',350.000,350.000,0,'SCO.',2.6635,3.1429,0,0.00,0,0.00,0.0000,932.20,1100.00,0.0000,0,0,-1,0.000,350,350,0,'SERVICIO DE TRANSPORTE DE ARROZ CASCARA DESDE RIOJA HASTA LAMBAYEQUE \r\nREMITIDOS POR EL MISMO SEGÚN GRR N° 002-833',NULL,NULL,1,NULL,0),(2688,'SRV',1860,'001','PR','0010000000',0.000,0.000,0,'TM.',155.0000,182.9000,0,0.00,0,0.00,0.0000,5138.25,6063.14,0.0000,0,0,0,0.000,33.15,33.15,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # 001 - 607341.\r\n\r\n                                                      VALOR REFERENCIAL: S/. 6,926.70',NULL,NULL,1,NULL,0),(2689,'SRV',1861,'001','PR','0010000000',0.000,0.000,0,'UND',0.8475,1.0000,0,0.00,0,0.00,0.0000,0.85,1.00,0.0000,0,0,0,0.000,1,1,0,'XXXXX',NULL,NULL,1,NULL,0),(2691,'SRV',1859,'001','PR','0010000000',350.000,350.000,0,'SCO.',2.6635,3.1429,0,0.00,0,0.00,0.0000,932.20,1100.00,0.0000,0,0,-1,0.000,350,350,0,'SERVICIO DE TRANSPORTE DE ARROZ CASCARA DESDE RIOJA HASTA LAMBAYEQUE \r\nREMITIDOS POR EL MISMO SEGÚN GRR N° 002-833',NULL,NULL,1,NULL,0),(2690,'SRV',1858,'001','PR','0010000000',350.000,350.000,0,'SCO.',2.6635,3.1429,0,0.00,0,0.00,0.0000,932.22,1100.02,0.0000,0,0,-1,0.000,350,350,0,'SERVICIO DE TRANSPORTE DE ARROZ CASCARA DESDE EL MILAGRO HASTA CHIMBOTE \r\nREMITIDOS POR EL MISMO SEGÚN GRR N° 001-1186',NULL,NULL,1,NULL,0),(2693,'SRV',1858,'001','PR','0010000000',350.000,350.000,0,'SCO.',2.6635,3.1429,0,0.00,0,0.00,0.0000,932.22,1100.02,0.0000,0,0,-1,0.000,350,350,0,'SERVICIO DE TRANSPORTE DE ARROZ CASCARA DESDE EL MILAGRO HASTA CHIMBOTE \r\nREMITIDOS POR EL MISMO SEGÚN GRR N° 001-1186',NULL,NULL,1,NULL,0),(2703,'SRV',1862,'001','PR','0010000000',54.773,54.773,0,'TM.',115.0000,135.7000,0,0.00,0,0.00,0.0000,6298.90,7432.70,0.0000,0,0,-1,0.000,54.773,54.773,0,'SERVICIO DE TRANSPORTE DE PRODUCTOS GLORIA DE CHICLAYO\r\nHASTA CHACHAPOYAS SEGÚN NÚMEROS DE TRANSPORTE:\r\n11211424, 11257664\r\n\r\n                                             VALOR REFERENCIAL S/ 7,918.922',NULL,NULL,1,NULL,0),(2703,'SRV',1862,'001','PR','0010000000',33.420,33.420,0,'TM.',100.0000,118.0000,0,0.00,0,0.00,0.0000,3342.00,3943.56,0.0000,0,0,-1,0.000,33.42,33.42,0,'SERVICIO DE TRANSPORTE DE PRODUCTOS GLORIA DE CHICLAYO\r\nHASTA JAEN SEGÚN NÚMEROS DE TRANSPORTE:\r\n11248786,11248787\r\n\r\n                                             VALOR REFERENCIAL S/ 4,732.922',NULL,NULL,2,NULL,0),(2706,'SRV',1866,'001','PR','0010000000',1.000,1.000,0,'UND',850.0000,1003.0000,0,0.00,0,0.00,0.0000,850.00,1003.00,0.0000,0,0,-1,0.000,1,1,0,'SERVICIO POR DESESTIBA \r\nRUTA: CHIMBOTE - CHACHAPOYAS\r\nOC:4518639949\r\nGRR: T001 - 4187 / 4188\r\n\r\n                                                         VALOR REFERNCIAL: S/ 1,003.00',NULL,NULL,1,NULL,0),(2708,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2709,'SRV',1832,'001','PR','0010000000',0.000,0.000,0,'TM.',96.9082,114.3517,0,0.00,0,0.00,0.0000,2100.00,2478.00,0.0000,0,0,0,0.000,21.67,21.67,0,'SERVICIO DE TRANSPORTE DE CHATARRA DESDE LA CIUDAD DE BAGUA HASTA\r\nCIUDAD DE CHIMBOTE, REMITIDOS POR VEGA LOZADA LUIS RAFAEL\r\nSEGUN GRER N° EG07-19',NULL,NULL,1,NULL,0),(2711,'SRV',1775,'001','PR','0010000000',0.000,0.000,0,'TM.',210.2446,248.0886,0,0.00,0,0.00,0.0000,5500.00,6490.00,0.0000,0,0,0,0.000,26.16,26.16,0,'SERVICIO DE TRANSPORTE DE CHATARRA DESDE LA CIUDAD DE CHACHAPOYAS HASTA LA\r\nCIUDAD DE CHIMBOTE, REMITIDOS POR RECICLADORA ECOLOGICA DEYBI E.I.R.L.\r\nSEGUN GRR # 001-389',NULL,NULL,1,NULL,0),(2713,'NTC',1798,'001','','0010000000',0.000,0.000,0,'UND',1800.0000,1800.0000,0,0.00,0,0.00,0.0000,1800.00,1800.00,0.0000,0,0,0,0.000,1,1,0,'SERVICIO DE TRANSPORTE DE UNA EXCAVADORA MARCA CAT MODELO 320 DESDE HUANCAS HASTA LUYA',NULL,NULL,54,1,0),(2713,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2716,'SRV',1874,'001','PR','0010000000',27.550,27.550,0,'TM.',135.5932,160.0000,0,0.00,0,0.00,0.0000,3735.59,4408.00,0.0000,0,0,-1,0.000,27.55,27.55,0,'SERVICIO DE TRANSPORTE DE LADRILLO KING KONG ESTANDAR DESDE LA CIUDAD DE CHICLAYO HASTA TUETA SEGUN GRR: EG07 - 104',NULL,NULL,1,NULL,0),(2716,'SRV',1874,'001','PR','0010000000',10.150,10.150,0,'TM.',93.2203,110.0000,0,0.00,0,0.00,0.0000,946.19,1116.50,0.0000,0,0,1,0.000,10.15,10.15,0,'SERVICIO DE TRANSPORTE DE LADRILLO KING KONG ESTANDAR DESDE LA CIUDAD DE CHICLAYO HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR: EG07 - 104',NULL,NULL,2,NULL,0),(2720,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2722,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2724,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2725,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2729,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2730,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2731,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2732,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2733,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2734,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2735,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2736,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2737,'SRV',1808,'001','PR','0010000000',0.000,0.000,0,'UND',900.0000,900.0000,0,0.00,0,0.00,0.0000,900.00,900.00,0.0000,0,0,0,0.000,1,1,0,'SERVICIO DE TRANSPORTE DE UN RODILLO DESDE CHACHAPOYAS HASTA YAMBRASBAMBA REMITIDOS POR NEGOCIACIONES AMAZONAS CORP PARA POLCONSA INGENIERIA Y CONSTRUCCIÓN',NULL,NULL,1,NULL,0),(2740,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2741,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2743,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'UND',155.0000,182.9000,0,0.00,0,0.00,0.0000,5177.00,6108.86,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # T001 - 5334 / 5335\r\n\r\n                                                          VALOR REFERENCIAL: S/. 6,978.93.',NULL,NULL,1,NULL,0),(2746,'SRV',1838,'001','PR','0010000000',0.000,0.000,0,'TM.',155.0000,182.9000,0,0.00,0,0.00,0.0000,5293.25,6246.03,0.0000,0,0,0,0.000,34.15,34.15,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE CHACHAPOYAS SEGUN GRR # 001 - 610043 / 610044 \r\n\r\n                                                          VALOR REFERENCIAL: S/. 7,135.64',NULL,NULL,1,NULL,0),(2751,'SRV',1899,'001','PR','0010000000',0.000,0.000,0,'UND',6000.0000,6000.0000,0,0.00,0,0.00,0.0000,6000.00,6000.00,0.0000,0,0,0,0.000,1,1,0,'SERVICIO DE TRANSPORTE DE UNA EXCAVADORA MARCA CAT MODELO 323 DESDE MOYOBAMBA HASTA CHACHAPOYAS REMITIDOS POR EL MISMO ',NULL,NULL,1,NULL,0),(2754,'SRV',1893,'001','PR','0010000000',0.000,0.000,0,'UND',1100.0000,1100.0000,0,0.00,0,0.00,0.0000,1100.00,1100.00,0.0000,0,0,0,0.000,1,1,0,'SERVICIO DE TRANSPORTE DE FIERRO DESDE CHACHAPOYAS HASTA SAN PEDRO, REMITIDOS POR EL MISMO SEGÚN GRR N° 001-13',NULL,NULL,1,NULL,0),(2756,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'TM.',221.1000,260.8980,0,0.00,0,0.00,0.0000,7384.74,8713.99,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE TARAPOTO SEGUN GRR # T001 - 5809\r\n\r\n                                                          VALOR REFERENCIAL: S/. 9,244.12.',NULL,NULL,1,NULL,0),(2760,'SRV',1901,'001','PR','0010000000',0.000,0.000,0,'TM.',221.1000,260.8980,0,0.00,0,0.00,0.0000,7384.74,8713.99,0.0000,0,0,0,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE TARAPOTO SEGUN GRR # T001 - 5809\r\n\r\n                                                          VALOR REFERENCIAL: S/. 9,244.12.',NULL,NULL,1,NULL,0),(2762,'NTC',1910,'001','','0010000000',0.000,0.000,0,'TM.',221.1000,260.8980,0,0.00,0,0.00,0.0000,7384.74,8713.99,0.0000,0,0,0,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE TARAPOTO SEGUN GRR # T001 - 5809\r\n\r\n                                                          VALOR REFERENCIAL: S/. 9,244.12.',NULL,NULL,58,1,0),(2763,'SRV',0,'001','PR','0010000000',33.400,33.400,0,'TM.',221.1000,260.8980,0,0.00,0,0.00,0.0000,7384.74,8713.99,0.0000,0,0,-1,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE TARAPOTO SEGUN GRR # T001 - 5809\r\n\r\n                                                          VALOR REFERENCIAL: S/. 9,244.12.',NULL,NULL,1,NULL,0),(2764,'NTC',1910,'001','','0010000000',0.000,0.000,0,'TM.',221.1000,260.8980,0,0.00,0,0.00,0.0000,7384.74,8713.99,0.0000,0,0,0,0.000,33.4,33.4,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE TARAPOTO SEGUN GRR # T001 - 5809\r\n\r\n                                                          VALOR REFERENCIAL: S/. 9,244.12.',NULL,NULL,58,1,0),(2765,'SRV',0,'001','PR','0010000000',340.000,340.000,0,'SCO.',2.9910,3.5294,0,0.00,0,0.00,0.0000,1016.95,1200.00,0.0000,0,0,-1,0.000,340,340,0,'SERVICIO DE TRANSPORTE DE ARROZ CASCARA DESDE BAGUA GRANDE HASTA CHIMBOTE\r\nREMITIDOS POR EL MISMO SEGÚN GRR N° 001-330',NULL,NULL,1,NULL,0),(2766,'SRV',0,'001','PR','0010000000',340.000,340.000,0,'SCO.',2.9910,3.5294,0,0.00,0,0.00,0.0000,1016.95,1200.00,0.0000,0,0,-1,0.000,340,340,0,'SERVICIO DE TRANSPORTE DE ARROZ CASCARA DESDE BAGUA HASTA CHIMBOTE\r\nREMITIDOS POR EL MISMO SEGUN GRR N° 001-330',NULL,NULL,1,NULL,0),(2767,'SRV',0,'001','PR','0010000000',340.000,340.000,0,'SCO.',2.9910,3.5294,0,0.00,0,0.00,0.0000,1016.95,1200.00,0.0000,0,0,-1,0.000,340,340,0,'SERVICIO DE TRANSPORTE DE ARROZ CASCARA DESDE BAGUA HASTA CHIMBOTE\r\nREMITIDOS POR EL MISMO SEGUN GRR N° 001-330',NULL,NULL,1,NULL,0),(2768,'SRV',0,'001','PR','0010000000',340.000,340.000,0,'SCO.',2.9910,3.5294,0,0.00,0,0.00,0.0000,1016.95,1200.00,0.0000,0,0,-1,0.000,340,340,0,'SERVICIO DE TRANSPORTE DE ARROZ CASCARA DESDE BAGUA HASTA CHIMBOTE\r\nREMITIDOS POR EL MISMO SEGUN GRR N° 001-269',NULL,NULL,1,NULL,0),(2769,'SRV',0,'001','PR','0010000000',340.000,340.000,0,'SCO.',2.9910,3.5294,0,0.00,0,0.00,0.0000,1016.95,1200.00,0.0000,0,0,-1,0.000,340,340,0,'SERVICIO DE TRANSPORTE DE ARROZ CASCARA DESDE BAGUA HASTA CHIMBOTE\r\nREMITIDOS POR EL MISMO SEGUN GRR N° 001-282',NULL,NULL,1,NULL,0),(2770,'SRV',0,'001','PR','0010000000',340.000,340.000,0,'SCO.',2.9910,3.5294,0,0.00,0,0.00,0.0000,1016.95,1200.00,0.0000,0,0,-1,0.000,340,340,0,'SERVICIO DE TRANSPORTE DE ARROZ CASCARA DESDE BAGUA HASTA CHIMBOTE\r\nREMITIDOS POR EL MISMO SEGUN GRR N° 001-551',NULL,NULL,1,NULL,0),(2771,'SRV',0,'001','PR','0010000000',1.000,1.000,0,'UND',1000.0000,1000.0000,0,0.00,0,0.00,0.0000,1000.00,1000.00,0.0000,0,0,-1,0.000,1,1,0,'SERVICIO DE TRANSPORTE DE UNA EXCAVADORA HYUNDAI DEDE EL PUNTE D COLCAMAR HASTA COLCAMAR',NULL,NULL,1,NULL,0),(2772,'SRV',1916,'001','PR','0010000000',1.000,1.000,0,'UND',1200.0000,1200.0000,0,0.00,0,0.00,0.0000,1200.00,1200.00,0.0000,0,0,-1,0.000,1,1,0,'SERVICIO DE TRANSPORTE DE UNA RETRO EXCAVADORA CAT 420F2 DEDE EL CHACHAPOYAS HASTA COLCAMAR',NULL,NULL,1,NULL,0),(2774,'SRV',0,'001','PR','0010000000',1.000,1.000,0,'UND',4300.0000,4300.0000,0,0.00,0,0.00,0.0000,4300.00,4300.00,0.0000,0,0,-1,0.000,1,1,0,'SERVICIO DE TRANSPORTE DE UN RODILLO VIBRADOR INGERSOL RAND REMITIDOS POR EL MISMO SEGUN GRR EG07 - 2',NULL,NULL,1,NULL,0),(2775,'SRV',0,'001','PR','0010000000',1.000,1.000,0,'UND',4300.0000,4300.0000,0,0.00,0,0.00,0.0000,4300.00,4300.00,0.0000,0,0,-1,0.000,1,1,0,'SERVICIO DE TRANSPORTE DE UN RODILLO VIBRADOR INGERSOL RAND DESDE CHOTA HASTA LUYA REMITIDOS POR EL MISMO SEGUN GRR EG07 - 2',NULL,NULL,1,NULL,0),(2780,'SRV',0,'001','PR','0010000000',1.000,1.000,0,'UND',300.0000,300.0000,0,0.00,0,0.00,0.0000,300.00,300.00,0.0000,0,0,-1,0.000,1,1,0,'TRASBORDO DE 64 PLANCHAS DE ALUCIN PARA TECHO, DE LA VÍA DE AVITAMIENTO A SAN CARLOS DE MURCIA',NULL,NULL,1,NULL,0),(2782,'SRV',0,'001','PR','0010000000',1.000,1.000,0,'UND',2000.0000,2000.0000,0,0.00,0,0.00,0.0000,2000.00,2000.00,0.0000,0,0,-1,0.000,1,1,0,'SERVICIO DE TRANSPORTE DE UNA EXCAVADORA MARCA CAT MODELO 323 DESDE MANGALPA HASTA MARIA',NULL,NULL,1,NULL,0),(2783,'SRV',0,'001','PR','0010000000',1.000,1.000,0,'UND',2000.0000,2000.0000,0,0.00,0,0.00,0.0000,2000.00,2000.00,0.0000,0,0,-1,0.000,1,1,0,'SERVICIO DE TRANSPORTE DE UNA EXCAVADORA MARCA CAT MODELO 323 DESDE MANGALPA HASTA MARIA',NULL,NULL,1,NULL,0),(2784,'SRV',0,'001','PR','0010000000',1.000,1.000,0,'UND',4300.0000,4300.0000,0,0.00,0,0.00,0.0000,4300.00,4300.00,0.0000,0,0,-1,0.000,1,1,0,'SERVICIO DE TRANSPORTE DE POSTES INCLUIDA DEESTIBA CON GRUA DESDE PEDRO RUIZ HASTA EL TINGO REMITIDOS POR PREFABRICADOS EN CONCRETO Y METALES PEDRO RUIZ S.A.C. PARA CONSORCIO VIAL KUELAP SEGUN GRR: 001 - 1602 ',NULL,NULL,1,NULL,0),(2787,'SRV',0,'001','PR','0010000000',1.000,1.000,0,'UND',1500.0000,1500.0000,0,0.00,0,0.00,0.0000,1500.00,1500.00,0.0000,0,0,-1,0.000,1,1,0,'SERVICIO DE TRANSPORTE DE UNA EXCAVADORA MARCA CAT MODELO 320 DESDE EL MAINO HASTA CHACHAPOYAS',NULL,NULL,1,NULL,0),(2788,'SRV',0,'001','PR','0010000000',1.000,1.000,0,'UND',1500.0000,1500.0000,0,0.00,0,0.00,0.0000,1500.00,1500.00,0.0000,0,0,-1,0.000,1,1,0,'SERVICIO DE TRANSPORTE DE UNA EXCAVADORA MARCA CAT MODELO 320 DESDE EL MAINO HASTA CHACHAPOYAS ',NULL,NULL,1,NULL,0),(2789,'SRV',1923,'001','PR','0010000000',33.310,33.310,0,'TM.',150.0000,177.0000,0,0.00,0,0.00,0.0000,4996.50,5895.87,0.0000,0,0,-1,0.000,33.31,33.31,0,'SERVICIO DE TRANSPORTE DE FIERRO DE CONSTRUCCIÓN DESDE LA CIUDAD DE CHIMBOTE HASTA LA CIUDAD DE BAGUA GRANDE SEGUN GRR: T001 - 6845\r\n\r\n                                                        VALOR REFERNCIAL: S/ 4,628.42',NULL,NULL,1,NULL,0),(2790,'SRV',1925,'001','PR','0010000000',0.000,0.000,0,'UND',4450.0000,4450.0000,0,0.00,0,0.00,0.0000,4450.00,4450.00,0.0000,0,0,0,0.000,1,1,0,'SERVICIO DE TRANSPORTE DE POSTES INCLUIDA DEESTIBA CON GRUA DESDE PEDRO RUIZ HASTA CHACHAPOYAS REMITIDOS POR PREFABRICADOS EN CONCRETO Y METALES PEDRO RUIZ S.A.C. PARA CONSORCIO VIAL KUELAP SEGUN GRR: 001 - 1600 / 1601',NULL,NULL,1,NULL,0),(2791,'SRV',0,'001','PR','0010000000',1.000,1.000,0,'UND',3000.0000,3000.0000,0,0.00,0,0.00,0.0000,3000.00,3000.00,0.0000,0,0,-1,0.000,1,1,0,'SERVICIO DE MOVILIZACION DE UNA MOTONIVELADORA Y UN RODILLO DESDE CHACHAPOYAS HASTA CRUZ PATA PARA MANTENIMIENTO DE DE CALLES PARA REPARACION DE VIAS EN CRUZ PATA (DISTRITO DE TRITA)',NULL,NULL,1,NULL,0),(2792,'SRV',0,'001','PR','0010000000',1.000,1.000,0,'UND',3000.0000,3000.0000,0,0.00,0,0.00,0.0000,3000.00,3000.00,0.0000,0,0,-1,0.000,1,1,0,'SERVICIO DE MOVILIZACION DE UNA MOTONIVELADORA Y UN RODILLO DESDE CHACHAPOYAS HASTA CRUZ PATA PARA MANTENIMIENTO DE CALLES Y PARA REPARACION DE VIAS EN CRUZ PATA (DISTRITO DE TRITA)',NULL,NULL,1,NULL,0),(2794,'SRV',0,'001','PR','0010000000',1.000,1.000,0,'UND',2200.0000,2200.0000,0,0.00,0,0.00,0.0000,2200.00,2200.00,0.0000,0,0,-1,0.000,1,1,0,'SERVICIO DE TRANSPORTE DE UNA EXCAVADORA HYUNDAI 260 DESDE HUACAPAMPA HASTA CHACHAPOYAS ',NULL,NULL,1,NULL,0),(2796,'SRV',0,'001','PR','0010000000',1.000,1.000,0,'UND',1800.0000,1800.0000,0,0.00,0,0.00,0.0000,1800.00,1800.00,0.0000,0,0,-1,0.000,1,1,0,'SERVICIO DE TRANPORTE DE UNA EXCAVADORA CAT 323 DESDE LEYMEBAMBA HASTA SAN VILLO',NULL,NULL,1,NULL,0),(2798,'SRV',0,'001','PR','0010000000',1.000,1.000,0,'UND',4000.0000,4000.0000,0,0.00,0,0.00,0.0000,4000.00,4000.00,0.0000,0,0,-1,0.000,1,1,0,'\"Creación del Sistema de Agua Potable y Alcantarillado de las Localidades de Huaychopampa y Corazón de Jesús, Distrito de Luya - Provincia de Luya - Departamento de Amazonas\" CUI: 2456140',NULL,NULL,1,NULL,0),(2799,'SRV',0,'001','PR','0010000000',1.000,1.000,0,'UND',4000.0000,4000.0000,0,0.00,0,0.00,0.0000,4000.00,4000.00,0.0000,0,0,-1,0.000,1,1,0,'\"Creación del Sistema de Agua Potable y Alcantarillado de las Localidades de Huaychopampa y Corazón de Jesús, Distrito de Luya - Provincia de Luya - Departamento de Amazonas\" CUI: 2456140',NULL,NULL,1,NULL,0),(2800,'SRV',0,'001','PR','0010000000',1.000,1.000,0,'UND',4000.0000,4000.0000,0,0.00,0,0.00,0.0000,4000.00,4000.00,0.0000,0,0,-1,0.000,1,1,0,'\"CREACIÓN DEL SISTEMA DE AGUA POTABLE Y ALCANTARILLADO DE LAS LOCALIDADES DE HUAYCHOPAMPA Y CORAZÓN DE JESÚS, DISTRITO DE LUYA - PROVINCIA DE LUYA - DEPARTAMENTO DE AMAZONAS\" CUI: 2456140',NULL,NULL,1,NULL,0),(2801,'SRV',0,'001','PR','0010000000',1.000,1.000,0,'UND',4000.0000,4000.0000,0,0.00,0,0.00,0.0000,4000.00,4000.00,0.0000,0,0,-1,0.000,1,1,0,'CREACIÓN DEL SISTEMA DE AGUA POTABLE Y ALCANTARILLADO DE LAS LOCALIDADES DE HUAYCHOPAMPA Y CORAZÓN DE JESÚS, DISTRITO DE LUYA - PROVINCIA DE LUYA - DEPARTAMENTO DE AMAZONAS\r\nCUI: 2456140',NULL,NULL,1,NULL,0),(2802,'SRV',0,'001','PR','0010000000',1.000,1.000,0,'UND',4000.0000,4000.0000,0,0.00,0,0.00,0.0000,4000.00,4000.00,0.0000,0,0,-1,0.000,1,1,0,'CREACIÓN DEL SISTEMA DE AGUA POTABLE Y ALCANTARILLADO DE LAS LOCALIDADES DE HUAYCHOPAMPA Y CORAZÓN DE JESÚS, DISTRITO DE LUYA - PROVINCIA DE LUYA - DEPARTAMENTO DE AMAZONAS\r\nCUI: 2456140\r\n',NULL,NULL,1,NULL,0),(2809,'SRV',1938,'001','PR','0010000000',0.000,0.000,0,'UND',1500.0000,1500.0000,0,0.00,0,0.00,0.0000,1500.00,1500.00,0.0000,0,0,0,0.000,1,1,0,'SERVICIO DE TRANSPORTE DE UNA MOTONIVELADORA KOMATSU GD-555 DESDE CHACHAPOYAS HASTA YAMBRASBAMBA',NULL,NULL,1,NULL,0),(2811,'SRV',1932,'001','PR','0010000000',0.000,0.000,0,'UND',4000.0000,4000.0000,0,0.00,0,0.00,0.0000,4000.00,4000.00,0.0000,0,0,0,0.000,1,1,0,'CREACIÓN DEL SISTEMA DE AGUA POTABLE Y ALCANTARILLADO DE LAS LOCALIDADES DE HUAYCHOPAMPA Y CORAZÓN DE JESÚS, DISTRITO DE LUYA - PROVINCIA DE LUYA - DEPARTAMENTO DE AMAZONAS\r\nCUI: 2456140\r\n',NULL,NULL,1,NULL,0);

--
-- Table structure for table `td_guiar`
--

CREATE TABLE `td_guiar` (
  `IdSesion` int(11) NOT NULL,
  `IdWindow` varchar(3) NOT NULL,
  `IdGuia` int(11) NOT NULL,
  `IdTienda` varchar(3) NOT NULL,
  `IdAlmacen` varchar(2) NOT NULL,
  `IdProducto` varchar(10) NOT NULL,
  `Cantidad` double(14,3) NOT NULL DEFAULT '0.000',
  `CapaPrec` double NOT NULL,
  `DescriPrec` varchar(30) NOT NULL,
  `Peso` double(10,3) NOT NULL DEFAULT '0.000',
  `Precio` double(10,4) NOT NULL DEFAULT '0.0000',
  `SubTotal` double(12,2) NOT NULL DEFAULT '0.00',
  `Costo` double(10,4) NOT NULL DEFAULT '0.0000',
  `Margen` double(10,4) NOT NULL DEFAULT '0.0000',
  `Unid` double NOT NULL DEFAULT '0',
  `IdVta_Rel` int(11) DEFAULT NULL,
  `GEL` tinyint(1) NOT NULL,
  `IdTiendaD` varchar(3) DEFAULT NULL,
  `IdAlmacenD` varchar(2) DEFAULT NULL,
  `NItem` int(11) NOT NULL DEFAULT '0',
  `IdUsuario` smallint(6) NOT NULL,
  `Eliminado` tinyint(1) NOT NULL DEFAULT '0',
  KEY `IdSesion` (`IdSesion`,`IdWindow`),
  KEY `IdGuia` (`IdGuia`),
  KEY `IdTienda` (`IdTienda`),
  KEY `IdAlmacen` (`IdAlmacen`),
  KEY `IdProducto` (`IdProducto`),
  KEY `Eliminado` (`Eliminado`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `td_guiar`
--

INSERT INTO `td_guiar` VALUES (805,'GRE',21,'002','TP','0000000195',50.000,1,'KLS',0.000,10.6000,530.00,0.0000,0.0000,50,NULL,0,'001','PR',1,4,0);

--
-- Table structure for table `td_ordenalm`
--

CREATE TABLE `td_ordenalm` (
  `IdSesion` int(11) NOT NULL,
  `IdWindow` varchar(3) NOT NULL,
  `IdOrden` int(11) NOT NULL,
  `IdTienda` varchar(3) NOT NULL,
  `IdAlmacen` varchar(2) NOT NULL,
  `IdProducto` varchar(10) NOT NULL,
  `Cantidad` double(14,3) NOT NULL DEFAULT '0.000',
  `CapaPrec` double NOT NULL,
  `DescriPrec` varchar(30) NOT NULL,
  `Peso` double(10,3) NOT NULL DEFAULT '0.000',
  `Precio` double(10,4) NOT NULL DEFAULT '0.0000',
  `SubTotal` double(12,2) NOT NULL DEFAULT '0.00',
  `Costo` double(10,4) NOT NULL DEFAULT '0.0000',
  `Margen` double(10,4) NOT NULL DEFAULT '0.0000',
  `Unid` double NOT NULL DEFAULT '0',
  `IdVta_Rel` int(11) DEFAULT NULL,
  `GEL` tinyint(1) NOT NULL,
  `IdAlmacenD` varchar(2) DEFAULT NULL,
  `NItem` int(11) NOT NULL DEFAULT '0',
  `IdUsuario` smallint(6) NOT NULL,
  `Eliminado` tinyint(1) NOT NULL DEFAULT '0',
  KEY `IdSesion` (`IdSesion`,`IdWindow`),
  KEY `IdGuia` (`IdOrden`),
  KEY `IdTienda` (`IdTienda`),
  KEY `IdAlmacen` (`IdAlmacen`),
  KEY `IdProducto` (`IdProducto`),
  KEY `Eliminado` (`Eliminado`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `td_ordenalm`
--

INSERT INTO `td_ordenalm` VALUES (501,'GRE',0,'001','PR','0010000007',12.000,12,'CJA',0.000,380.0000,380.00,250.0000,130.0000,1,NULL,-1,NULL,1,1,0);

--
-- Table structure for table `td_ordencompra`
--

CREATE TABLE `td_ordencompra` (
  `IdSesion` int(11) NOT NULL,
  `IdWindow` varchar(3) NOT NULL,
  `IdOrden_Cmp` int(11) NOT NULL,
  `IdTienda` varchar(3) NOT NULL,
  `IdAlmacen` varchar(2) NOT NULL,
  `IdProducto` varchar(10) NOT NULL,
  `Cantidad` double(14,3) NOT NULL DEFAULT '0.000',
  `CapaPrec` double NOT NULL DEFAULT '1',
  `DescriPrec` varchar(30) NOT NULL,
  `Precio` double(10,4) NOT NULL DEFAULT '0.0000',
  `PrecioIGV` double(10,4) NOT NULL DEFAULT '0.0000',
  `Margen` double(10,4) DEFAULT '0.0000',
  `SubTotal` double(12,2) NOT NULL DEFAULT '0.00',
  `SubTotalIGV` double(12,2) NOT NULL DEFAULT '0.00',
  `Costo` double(10,4) NOT NULL DEFAULT '0.0000',
  `GEL` tinyint(4) NOT NULL,
  `Peso` double(10,3) DEFAULT '0.000',
  `Unid` double NOT NULL DEFAULT '0',
  `Bonificacion` tinyint(1) DEFAULT '0',
  `Observacion` longtext,
  `NItem` int(11) NOT NULL DEFAULT '0',
  `IdUsuario` smallint(6) NOT NULL,
  `Eliminado` tinyint(1) NOT NULL DEFAULT '0',
  KEY `IdTienda` (`IdTienda`),
  KEY `IdAlmacen` (`IdAlmacen`),
  KEY `IdProducto` (`IdProducto`),
  KEY `Eliminado` (`Eliminado`),
  KEY `IdSesion` (`IdSesion`,`IdWindow`),
  KEY `IdProforma` (`IdOrden_Cmp`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `td_ordencompra`
--


--
-- Table structure for table `td_proforma`
--

CREATE TABLE `td_proforma` (
  `IdSesion` int(11) NOT NULL,
  `IdWindow` varchar(3) NOT NULL,
  `IdProforma` int(11) NOT NULL,
  `IdTienda` varchar(3) NOT NULL,
  `IdAlmacen` varchar(2) NOT NULL,
  `IdProducto` varchar(10) NOT NULL,
  `Cantidad` double(14,3) NOT NULL DEFAULT '0.000',
  `CapaPrec` double NOT NULL DEFAULT '1',
  `DescriPrec` varchar(30) NOT NULL,
  `Precio` double(10,4) NOT NULL DEFAULT '0.0000',
  `PrecioIGV` double(10,4) NOT NULL DEFAULT '0.0000',
  `Margen` double(10,4) DEFAULT '0.0000',
  `SubTotal` double(12,2) NOT NULL DEFAULT '0.00',
  `SubTotalIGV` double(12,2) NOT NULL DEFAULT '0.00',
  `Costo` double(10,4) NOT NULL DEFAULT '0.0000',
  `GEL` tinyint(4) NOT NULL,
  `Peso` double(10,3) DEFAULT '0.000',
  `Unid` double NOT NULL DEFAULT '0',
  `Bonificacion` tinyint(1) DEFAULT '0',
  `Observacion` longtext,
  `IdVta_Rel` int(11) DEFAULT NULL,
  `NItem` int(11) NOT NULL DEFAULT '0',
  `IdUsuario` smallint(6) NOT NULL,
  `Eliminado` tinyint(1) NOT NULL DEFAULT '0',
  KEY `IdTienda` (`IdTienda`),
  KEY `IdAlmacen` (`IdAlmacen`),
  KEY `IdProducto` (`IdProducto`),
  KEY `Eliminado` (`Eliminado`),
  KEY `IdSesion` (`IdSesion`,`IdWindow`),
  KEY `IdProforma` (`IdProforma`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `td_proforma`
--

INSERT INTO `td_proforma` VALUES (1743,'VTA',0,'001','PR','0010000001',10.000,12,'CJA',78.0000,92.0400,170.4000,780.00,920.40,75.0000,1,63.559,10,0,NULL,NULL,1,0,0),(1743,'VTA',0,'001','PR','0010000001',10.000,12,'CJA',78.0000,92.0400,170.4000,780.00,920.40,75.0000,1,63.559,10,0,NULL,NULL,2,0,0),(1743,'PRF',1,'001','PR','0010000001',120.000,12,'CJA',78.0000,92.0400,170.4000,780.00,920.40,75.0000,0,0.000,10,0,NULL,NULL,1,0,0),(1743,'PRF',1,'001','PR','0010000001',120.000,12,'CJA',78.0000,92.0400,170.4000,780.00,920.40,75.0000,0,0.000,10,0,NULL,NULL,2,0,0),(1745,'PRF',3,'001','PR','0010000001',60.000,12,'CJA',78.0000,92.0400,85.2000,390.00,460.20,75.0000,0,0.000,5,0,NULL,NULL,3,0,0),(2625,'PRF',3,'001','PR','0010000001',60.000,12,'CJA',78.0000,92.0400,85.2000,390.00,460.20,75.0000,0,0.000,5,0,NULL,NULL,3,0,0),(3044,'PRF',0,'001','PR','0010000001',1.000,12,'CJA',78.0000,92.0400,92.0400,78.00,92.04,0.0000,1,1.674,1,0,NULL,NULL,3,0,0),(4198,'PRF',8,'001','PR','0010000009',1000.000,10,'BLS',70.0000,70.0000,0.0000,7000.00,7000.00,70.0000,0,0.000,100,0,NULL,NULL,4,0,0),(4575,'PRF',10,'001','PR','0010000009',100.000,10,'BLS',72.0000,72.0000,20.0000,720.00,720.00,70.0000,0,0.000,10,0,NULL,NULL,1,0,0),(4575,'PRF',10,'001','PR','0010000008',500.000,50,'BLS',84.0000,84.0000,160.0000,840.00,840.00,68.0000,0,0.000,10,0,NULL,NULL,2,0,0),(85,'PRF',2,'001','PR','0010000004',10.000,1,'UND',5.0000,5.0000,50.0000,50.00,50.00,0.0000,1,0.000,10,0,NULL,NULL,1,0,0),(85,'PRF',2,'001','PR','0010000003',2.000,1,'UND',3.0000,3.0000,6.0000,6.00,6.00,0.0000,1,0.000,2,0,NULL,NULL,2,0,0),(105,'PRF',2,'001','PR','0010000004',10.000,1,'UND',5.0000,5.0000,50.0000,50.00,50.00,0.0000,1,0.000,10,0,NULL,NULL,1,0,0),(105,'PRF',2,'001','PR','0010000003',2.000,1,'UND',3.0000,3.0000,6.0000,6.00,6.00,0.0000,1,0.000,2,0,NULL,NULL,2,0,0),(468,'PRF',0,'001','PR','0010001351',1.000,1,'SET',15.0000,15.0000,0.8400,15.00,15.00,14.1600,1,0.000,1,0,NULL,NULL,1,1,0),(560,'PRF',0,'001','PR','0010001351',2.000,1,'SET',15.0000,15.0000,1.6800,30.00,30.00,14.1600,1,0.000,2,0,NULL,NULL,1,1,0),(561,'PRF',0,'001','PR','0010001351',10.000,1,'SET',15.0000,15.0000,8.4000,150.00,150.00,14.1600,1,0.000,10,0,NULL,NULL,1,1,0),(562,'PRF',0,'001','PR','0010001806',1.000,1,'UND',0.7000,0.7000,0.1000,0.70,0.70,0.6000,1,0.000,1,0,NULL,NULL,1,1,0),(563,'PRF',0,'001','PR','0010001806',1.000,1,'UND',0.7000,0.7000,0.1000,0.70,0.70,0.6000,1,0.000,1,0,NULL,NULL,1,1,0),(564,'PRF',0,'001','PR','0010001806',1.000,1,'UND',0.7000,0.7000,0.1000,0.70,0.70,0.6000,1,0.000,1,0,NULL,NULL,1,1,0),(564,'PRF',0,'001','PR','0010000030',2.000,1,'UND',1.0000,1.0000,0.8000,2.00,2.00,0.6000,1,0.000,2,0,NULL,NULL,2,1,0),(568,'PRF',0,'001','PR','0010000965',1.000,1,'SET',10.0000,10.0000,9.4000,10.00,10.00,0.6000,1,0.000,1,0,NULL,NULL,1,1,0),(570,'PRF',0,'001','PR','0010001806',1.000,1,'UND',0.5000,0.5000,0.2900,0.50,0.50,0.2100,1,0.000,1,0,NULL,NULL,1,1,0),(625,'PRF',2,'001','PR','0010000660',1.000,1,'UND',5.5000,5.5000,0.7800,5.50,5.50,4.7200,0,0.000,1,0,NULL,NULL,1,1,0),(55,'PRF',0,'001','PR','0000000011',2.000,6,'UND',22.0000,22.0000,2.3600,44.00,44.00,20.8200,1,0.000,2,0,NULL,NULL,1,3,0);

--
-- Table structure for table `td_puntovta`
--

CREATE TABLE `td_puntovta` (
  `IdSesion` int(11) NOT NULL,
  `IdWindow` varchar(3) NOT NULL,
  `IdPuntoVta` int(11) NOT NULL,
  `IdTienda` varchar(3) NOT NULL,
  `IdAlmacen` varchar(2) NOT NULL,
  `IdProducto` varchar(10) NOT NULL,
  `Cantidad` double(14,3) NOT NULL DEFAULT '0.000',
  `Recogido` double(14,3) NOT NULL DEFAULT '0.000',
  `CapaPrec` double NOT NULL DEFAULT '1',
  `DescriPrec` varchar(30) NOT NULL,
  `Precio` double(10,4) NOT NULL DEFAULT '0.0000',
  `PrecioIGV` double(10,4) NOT NULL DEFAULT '0.0000',
  `PDcto` double DEFAULT '0',
  `Dcto` double(10,2) DEFAULT '0.00',
  `PPercepcion` double DEFAULT '0',
  `Percepcion` double(10,2) DEFAULT '0.00',
  `Margen` double(10,4) DEFAULT '0.0000',
  `SubTotal` double(12,2) NOT NULL DEFAULT '0.00',
  `SubTotalIGV` double(12,2) NOT NULL DEFAULT '0.00',
  `Costo` double(10,4) NOT NULL DEFAULT '0.0000',
  `IAR` double DEFAULT '0',
  `ISC` double DEFAULT '0',
  `GEL` tinyint(4) NOT NULL,
  `Peso` double(10,3) DEFAULT '0.000',
  `Unid` double NOT NULL DEFAULT '0',
  `Unid_Reco` double NOT NULL DEFAULT '0',
  `Bonificacion` tinyint(1) DEFAULT '0',
  `Descripcion` longtext,
  `IdDocFis_Rel` tinyint(4) DEFAULT NULL,
  `IdDoc_Rel` int(11) DEFAULT NULL,
  `NItem` int(11) NOT NULL DEFAULT '0',
  `IdUsuario` smallint(6) NOT NULL,
  `Eliminado` tinyint(1) NOT NULL DEFAULT '0',
  KEY `IdSesion` (`IdSesion`,`IdWindow`),
  KEY `IdTienda` (`IdTienda`),
  KEY `IdAlmacen` (`IdAlmacen`),
  KEY `IdProducto` (`IdProducto`),
  KEY `IdVenta` (`IdPuntoVta`),
  KEY `Eliminado` (`Eliminado`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `td_puntovta`
--

INSERT INTO `td_puntovta` VALUES (4283,'VTA',0,'001','PR','0010000007',242.000,242.000,1,'KLS',2.5424,3.0000,0,0.00,0,0.00,7.0800,1565.08,1846.80,0.0000,0,0,1,128.418,22,22,0,NULL,NULL,NULL,2,0,1),(4285,'VTA',0,'001','PR','0010000007',241.000,241.000,1,'KLS',2.5424,3.0000,0,0.00,0,0.00,3.5400,1562.54,1843.80,0.0000,0,0,1,128.418,21,21,0,NULL,NULL,NULL,2,0,1),(4287,'VTA',0,'001','PR','0010000007',241.000,241.000,1,'KLS',2.5424,3.0000,0,0.00,0,0.00,3.5400,1562.54,1843.80,0.0000,0,0,1,128.418,21,21,0,NULL,NULL,NULL,2,0,1),(4287,'VTA',0,'001','PR','0010000007',241.000,241.000,1,'KLS',2.5424,3.0000,0,0.00,0,0.00,3.5400,1562.54,1843.80,0.0000,0,0,1,128.418,21,21,0,NULL,NULL,NULL,4,0,0),(4289,'VTA',0,'001','PR','0010000007',243.000,243.000,1,'KLS',2.5424,3.0000,0,0.00,0,0.00,10.6200,1567.63,1849.80,0.0000,0,0,1,128.418,23,23,0,NULL,NULL,NULL,3,0,0),(4329,'PVT',0,'001','PR','0010000007',241.000,241.000,1,'KLS',2.5424,3.0000,0,0.00,0,0.00,3.5400,1562.54,1843.80,0.0000,0,0,1,128.418,21,21,0,NULL,NULL,NULL,1,0,0),(4334,'PVT',0,'001','PR','0010000007',241.000,241.000,1,'KLS',2.5424,3.0000,0,0.00,0,0.00,3.5400,1562.54,1843.80,0.0000,0,0,1,128.418,21,21,0,NULL,NULL,NULL,1,0,0),(4757,'PVT',0,'001','PR','0010000001',1.000,1.000,1,'UND',2.9661,3.5000,0,0.00,0,0.00,2.1700,2.97,3.50,1.9583,0,0,1,0.000,1,1,0,NULL,NULL,NULL,1,0,0),(72,'PVT',0,'001','PR','0010000002',1.000,1.000,48,'CJA',42.0000,42.0000,0,0.00,0,0.00,4.0000,42.00,42.00,38.0000,0,0,1,0.000,1,1,0,NULL,NULL,NULL,1,0,0),(72,'PVT',0,'001','PR','0010000001',1.000,1.000,24,'CJA',40.0000,40.0000,0,0.00,0,0.00,1.0000,40.00,40.00,39.0000,0,0,1,0.000,1,1,0,NULL,NULL,NULL,2,0,0),(72,'PVT',0,'001','PR','0010000001',1.000,1.000,24,'CJA',0.0000,0.0000,0,0.00,0,0.00,-39.0000,0.00,0.00,39.0000,0,0,1,0.000,1,1,0,NULL,NULL,NULL,3,0,1),(73,'PVT',0,'001','PR','0010000002',1.000,1.000,48,'CJA',40.0000,40.0000,0,0.00,0,0.00,2.0000,40.00,40.00,38.0000,0,0,1,0.000,1,1,0,NULL,NULL,NULL,1,0,0),(73,'PVT',0,'001','PR','0010000001',2.000,2.000,24,'CJA',40.0000,40.0000,0,0.00,0,0.00,2.0000,80.00,80.00,39.0000,0,0,1,0.000,2,2,0,NULL,NULL,NULL,2,0,0),(73,'PVT',0,'001','PR','0010000002',3.000,3.000,48,'CJA',40.0000,40.0000,0,0.00,0,0.00,6.0000,120.00,120.00,38.0000,0,0,1,0.000,3,3,0,NULL,NULL,NULL,3,0,1),(75,'PVT',3,'001','PR','0010000004',1.000,1.000,1,'UND',5.0000,5.0000,0,0.00,0,0.00,5.0000,5.00,5.00,0.0000,0,0,0,0.000,1,1,0,NULL,0,0,1,0,0),(75,'PVT',3,'001','PR','0010000003',2.000,2.000,1,'UND',3.0000,3.0000,0,0.00,0,0.00,6.0000,6.00,6.00,0.0000,0,0,0,0.000,2,2,0,NULL,0,0,2,0,0),(112,'PVT',4,'001','PR','0010000005',1.000,1.000,1,'UND',18.0000,18.0000,0,0.00,0,0.00,18.0000,18.00,18.00,0.0000,0,0,0,0.000,1,1,0,NULL,NULL,0,1,0,0),(112,'PVT',4,'001','PR','0010000007',2.000,2.000,12,'CJA',380.0000,380.0000,0,0.00,0,0.00,760.0000,760.00,760.00,0.0000,0,0,1,0.000,2,2,0,NULL,NULL,0,2,0,0),(113,'PVT',4,'001','PR','0010000005',1.000,1.000,1,'UND',18.0000,18.0000,0,0.00,0,0.00,18.0000,18.00,18.00,0.0000,0,0,0,0.000,1,1,0,NULL,NULL,0,1,0,0),(113,'PVT',4,'001','PR','0010000007',2.000,2.000,12,'CJA',380.0000,380.0000,0,0.00,0,0.00,760.0000,760.00,760.00,0.0000,0,0,1,0.000,2,2,0,NULL,NULL,0,2,0,0),(150,'PVT',5,'001','PR','0010000007',96.000,96.000,12,'CJA',380.0000,380.0000,0,0.00,0,0.00,3040.0000,3040.00,3040.00,0.0000,0,0,0,0.000,8,8,0,NULL,0,0,1,0,0),(178,'PVT',6,'001','PR','0010000001',240.000,240.000,24,'CJA',42.0000,42.0000,0,0.00,0,0.00,30.0000,420.00,420.00,39.0000,0,0,0,0.000,10,10,0,NULL,0,0,1,0,0),(68,'PVT',0,'001','PR','0010003965',5.000,5.000,1,'UND',22.0000,22.0000,0,0.00,0,0.00,110.0000,110.00,110.00,0.0000,0,0,1,0.000,5,5,0,NULL,NULL,NULL,1,1,0),(70,'PVT',0,'001','PR','0010003969',12.000,12.000,1,'UND',33.0000,33.0000,0,0.00,0,0.00,396.0000,396.00,396.00,0.0000,0,0,1,0.000,12,12,0,NULL,NULL,NULL,1,1,1),(70,'PVT',0,'001','PR','0010003971',12.000,12.000,1,'UND',33.0000,33.0000,0,0.00,0,0.00,396.0000,396.00,396.00,0.0000,0,0,1,0.000,12,12,0,NULL,NULL,NULL,2,1,1),(70,'PVT',0,'001','PR','0010003966',24.000,24.000,1,'UND',18.0000,18.0000,0,0.00,0,0.00,432.0000,432.00,432.00,0.0000,0,0,1,0.000,24,24,0,NULL,NULL,NULL,3,1,0),(70,'PVT',0,'001','PR','0010003719',5.000,5.000,1,'UND',35.0000,35.0000,0,0.00,0,0.00,175.0000,175.00,175.00,0.0000,0,0,1,0.000,5,5,0,NULL,NULL,NULL,4,1,0),(119,'PVT',0,'001','PR','0010005985',1.000,1.000,1,'UND',117.0000,117.0000,0,0.00,0,0.00,117.0000,117.00,117.00,0.0000,0,0,1,0.000,1,1,0,NULL,NULL,NULL,1,1,1),(791,'PVT',3,'001','PR','0010001909',1.000,1.000,1,'LTS',15.0000,15.0000,0,0.00,0,0.00,3.0900,15.00,15.00,11.9067,0,0,0,0.000,1,1,0,NULL,0,0,1,1,0),(792,'PVT',3,'001','PR','0010001909',1.000,1.000,1,'LTS',15.0000,15.0000,0,0.00,0,0.00,3.0900,15.00,15.00,11.9067,0,0,0,0.000,1,1,0,NULL,NULL,0,1,1,0),(795,'PVT',3,'001','PR','0010001909',1.000,1.000,1,'LTS',15.0000,15.0000,0,0.00,0,0.00,3.0900,15.00,15.00,11.9067,0,0,0,0.000,1,1,0,NULL,NULL,0,1,1,0),(797,'PVT',3,'001','PR','0010001909',1.000,1.000,1,'LTS',15.0000,15.0000,0,0.00,0,0.00,3.0900,15.00,15.00,11.9067,0,0,0,0.000,1,1,0,NULL,NULL,0,1,1,0),(798,'PVT',3,'001','PR','0010001909',1.000,1.000,1,'LTS',15.0000,15.0000,0,0.00,0,0.00,3.0900,15.00,15.00,11.9067,0,0,0,0.000,1,1,0,NULL,NULL,0,1,1,0),(103,'PVT',0,'001','PR','0000000435',30.000,30.000,1,'UND',98.7500,98.7500,0,0.00,0,0.00,576.9000,2962.50,2962.50,79.5200,0,0,1,0.000,30,30,0,NULL,NULL,NULL,1,2,0),(111,'PVT',9,'001','PR','0000000435',80.000,80.000,1,'UND',98.7500,98.7500,0,0.00,0,0.00,1538.4000,7900.00,7900.00,79.5200,0,0,0,0.000,80,80,0,NULL,0,0,1,1,0),(566,'PVT',0,'001','PR','0000000250',8.000,8.000,1,'UND',26.0000,26.0000,0,0.00,0,0.00,48.3400,208.00,208.00,19.9571,0,0,1,0.000,8,8,0,NULL,NULL,NULL,1,2,0),(566,'PVT',0,'001','PR','0000000249',8.000,8.000,1,'UND',20.0000,20.0000,0,0.00,0,0.00,29.4000,160.00,160.00,16.3251,0,0,1,0.000,8,8,0,NULL,NULL,NULL,2,2,0),(566,'PVT',0,'001','PR','0000000256',3.000,3.000,1,'UND',9.0000,9.0000,0,0.00,0,0.00,6.3000,27.00,27.00,6.9012,0,0,1,0.000,3,3,0,NULL,NULL,NULL,3,2,0),(566,'PVT',0,'001','PR','0000000255',2.000,2.000,1,'UND',4.5000,4.5000,0,0.00,0,0.00,2.7600,9.00,9.00,3.1200,0,0,1,0.000,2,2,0,NULL,NULL,NULL,4,2,0),(566,'PVT',0,'001','PR','0000000561',1.000,1.000,1,'UND',80.0000,80.0000,0,0.00,0,0.00,15.8800,80.00,80.00,64.1200,0,0,1,0.000,1,1,0,NULL,NULL,NULL,5,2,0),(566,'PVT',0,'001','PR','0000000050',6.000,6.000,6,'UND',30.0000,30.0000,0,0.00,0,0.00,5.8800,30.00,30.00,24.1244,0,0,1,0.000,1,1,0,NULL,NULL,NULL,6,2,0),(31,'PVT',1,'001','PR','0000000794',1.000,1.000,1,'UND',12.0000,12.0000,0,0.00,0,0.00,5.4500,12.00,12.00,6.5500,0,0,0,0.000,1,1,0,NULL,NULL,0,3,4,0),(31,'PVT',1,'001','PR','0000002367',1.000,1.000,1,'UND',8.0000,8.0000,0,0.00,0,0.00,3.4500,8.00,8.00,4.5500,0,0,0,0.000,1,1,0,NULL,NULL,0,4,4,0),(195,'PVT',71,'001','PR','0000004674',1.000,1.000,1,'PAR',38.0000,38.0000,0,0.00,0,0.00,13.0000,38.00,38.00,25.0000,0,0,1,0.000,1,1,0,NULL,NULL,NULL,1,4,0),(221,'PVT',0,'001','PR','0000006089',19.000,19.000,1,'UND',38.0000,38.0000,0,0.00,0,0.00,172.9000,722.00,722.00,28.9000,0,0,1,0.000,19,19,0,NULL,NULL,NULL,1,1,0),(221,'PVT',0,'001','PR','0000002634',13.000,13.000,1,'KLS',8.0000,8.0000,0,0.00,0,0.00,42.2400,104.00,104.00,4.7507,0,0,1,0.000,13,13,0,NULL,NULL,NULL,2,1,0),(237,'PVT',0,'001','PR','0000002305',5.000,5.000,1,'UND',18.0000,18.0000,0,0.00,0,0.00,90.0000,90.00,90.00,0.0000,0,0,1,0.000,5,5,0,NULL,NULL,NULL,1,1,0),(237,'PVT',0,'001','PR','0000005972',5.000,5.000,1,'UND',24.0000,24.0000,0,0.00,0,0.00,53.4000,120.00,120.00,13.3209,0,0,1,0.000,5,5,0,NULL,NULL,NULL,2,1,0),(237,'PVT',0,'001','PR','0000003628',12.000,12.000,1,'UND',1.0000,1.0000,0,0.00,0,0.00,4.8600,12.00,12.00,0.5953,0,0,1,0.000,12,12,0,NULL,NULL,NULL,3,1,0),(237,'PVT',0,'001','PR','0000005014',6.000,6.000,1,'UND',10.5000,10.5000,0,0.00,0,0.00,13.5500,63.00,63.00,8.2420,0,0,1,0.000,6,6,0,NULL,NULL,NULL,4,1,0),(237,'PVT',0,'001','PR','0000001410',12.000,12.000,1,'UND',1.0000,1.0000,0,0.00,0,0.00,9.1500,12.00,12.00,0.2379,0,0,1,0.000,12,12,0,NULL,NULL,NULL,5,1,0),(237,'PVT',0,'001','PR','0000006207',4.000,4.000,1,'UND',10.0000,10.0000,0,0.00,0,0.00,25.5600,40.00,40.00,3.6100,0,0,1,0.000,4,4,0,NULL,NULL,NULL,6,1,0),(237,'PVT',0,'001','PR','0000001436',6.000,6.000,1,'UND',1.0000,1.0000,0,0.00,0,0.00,3.8700,6.00,6.00,0.3542,0,0,1,0.000,6,6,0,NULL,NULL,NULL,7,1,0),(237,'PVT',0,'001','PR','0000003960',50.000,50.000,1,'UND',1.8000,1.8000,0,0.00,0,0.00,30.0000,90.00,90.00,1.2000,0,0,1,0.000,50,50,0,NULL,NULL,NULL,8,1,0),(249,'PVT',217,'001','PR','0010006997',15.000,15.000,1,'UND',145.0000,145.0000,0,0.00,0,0.00,784.5000,2175.00,2175.00,92.7000,0,0,0,0.000,15,15,0,NULL,NULL,0,1,1,0),(249,'PVT',217,'001','PR','0010006999',14.000,14.000,1,'UND',25.0000,25.0000,0,0.00,0,0.00,113.4000,350.00,350.00,16.9000,0,0,0,0.000,14,14,0,NULL,NULL,0,2,1,0),(249,'PVT',217,'001','PR','0000003641',10.000,10.000,1,'UND',75.0000,75.0000,0,0.00,0,0.00,250.0000,750.00,750.00,50.0000,0,0,0,0.000,10,10,0,NULL,NULL,0,4,1,0),(249,'PVT',217,'001','PR','0000006703',4.000,4.000,1,'UND',95.0000,95.0000,0,0.00,0,0.00,108.0000,380.00,380.00,68.0000,0,0,0,0.000,4,4,0,NULL,NULL,0,5,1,0),(249,'PVT',217,'001','PR','0010007001',2.000,2.000,1,'UND',495.0000,495.0000,0,0.00,0,0.00,210.0000,990.00,990.00,390.0000,0,0,0,0.000,2,2,0,NULL,NULL,0,6,1,0),(249,'PVT',217,'001','PR','0000004465',10.000,10.000,1,'UND',50.0000,50.0000,0,0.00,0,0.00,130.0000,500.00,500.00,37.0000,0,0,0,0.000,10,10,0,NULL,NULL,0,7,1,0),(249,'PVT',217,'001','PR','0000004941',40.000,40.000,1,'PQT.',13.0000,13.0000,0,0.00,0,0.00,168.0000,520.00,520.00,8.8000,0,0,0,0.000,40,40,0,NULL,NULL,0,8,1,0),(251,'PVT',225,'001','PR','0000006717',1.000,1.000,1,'UND',9.0000,9.0000,0,0.00,0,0.00,3.5600,9.00,9.00,5.4403,0,0,0,0.000,1,1,0,NULL,0,0,1,1,0),(271,'PVT',0,'001','PR','0000000197',2.000,2.000,1,'UND',115.0000,115.0000,0,0.00,0,0.00,54.0000,230.00,230.00,88.0000,0,0,1,0.000,2,2,0,NULL,NULL,NULL,1,1,0),(268,'PVT',260,'001','PR','0000004852',2.000,2.000,1,'UND',870.0000,870.0000,0,0.00,0,0.00,254.7400,1740.00,1740.00,742.6291,0,0,1,0.000,2,2,0,NULL,NULL,NULL,1,2,0),(290,'PVT',273,'001','PR','0000004925',4.000,4.000,1,'UND',7.0000,7.0000,0,0.00,0,0.00,17.4900,28.00,28.00,2.6281,0,0,0,0.000,4,4,0,NULL,0,0,1,2,0),(303,'PVT',0,'001','PR','0000003016',200.000,200.000,1,'UND',2.4000,2.4000,0,0.00,0,0.00,114.0000,480.00,480.00,1.8300,0,0,1,0.000,200,200,0,NULL,NULL,NULL,1,1,0),(303,'PVT',0,'001','PR','0000000170',36.000,36.000,1,'KLS',2.5000,2.5000,0,0.00,0,0.00,20.7600,90.00,90.00,1.9234,0,0,1,0.000,36,36,0,NULL,NULL,NULL,2,1,1),(303,'PVT',0,'001','PR','0000004814',140.000,70.000,1,'UND',1.5500,1.5500,0,0.00,0,0.00,35.2800,217.00,217.00,1.2980,0,0,1,0.000,140,70,0,NULL,NULL,NULL,3,1,0),(303,'PVT',0,'001','PR','0000000170',36.000,36.000,1,'KLS',2.5000,2.5000,0,0.00,0,0.00,20.7600,90.00,90.00,1.9234,0,0,1,0.000,36,36,0,NULL,NULL,NULL,4,1,0),(314,'PVT',0,'001','PR','0000001243',1.000,1.000,1,'UND',16.0000,16.0000,0,0.00,0,0.00,3.9900,16.00,16.00,12.0113,0,0,1,0.000,1,1,0,NULL,NULL,NULL,1,3,0),(314,'PVT',0,'001','PR','0000002710',1.000,1.000,1,'BLS',5.0000,5.0000,0,0.00,0,0.00,2.7000,5.00,5.00,2.3000,0,0,1,0.000,1,1,0,NULL,NULL,NULL,2,3,0),(317,'PVT',323,'001','PR','0000003682',3.000,3.000,1,'UND',15.0000,15.0000,0,0.00,0,0.00,10.6900,45.00,45.00,11.4363,0,0,1,0.000,3,3,0,NULL,NULL,NULL,1,4,1),(318,'PVT',322,'001','PR','0000002657',18.000,18.000,1,'UND',2.5000,2.5000,0,0.00,0,0.00,16.9500,45.00,45.00,1.5583,0,0,1,0.000,18,18,0,NULL,NULL,NULL,1,1,0),(318,'PVT',322,'001','PR','0000002356',0.100,0.100,1,'KLS',10.0000,10.0000,0,0.00,0,0.00,0.1500,1.00,1.00,8.5000,0,0,1,0.000,0.1,0.1,0,NULL,NULL,NULL,2,1,0),(332,'PVT',0,'001','PR','0000000938',1.000,1.000,1,'UND',13.0000,13.0000,0,0.00,0,0.00,7.9700,13.00,13.00,5.0268,0,0,1,0.000,1,1,0,NULL,NULL,NULL,1,1,0),(329,'PVT',359,'001','PR','0000000300',1.000,1.000,1,'GLNS',29.0000,29.0000,0,0.00,0,0.00,3.9800,29.00,29.00,25.0178,0,0,1,0.000,1,1,0,NULL,NULL,NULL,1,4,1),(329,'PVT',359,'001','PR','0000000303',1.000,1.000,1,'GLNS',28.0000,28.0000,0,0.00,0,0.00,3.6600,28.00,28.00,24.3428,0,0,1,0.000,1,1,0,NULL,NULL,NULL,2,4,1),(337,'PVT',0,'001','PR','0000006969',5.000,5.000,1,'KLS',4.0000,4.0000,0,0.00,0,0.00,3.0000,20.00,20.00,3.4001,0,0,1,0.000,5,5,0,NULL,NULL,NULL,1,1,1),(337,'PVT',0,'001','PR','0000005933',2.000,2.000,1,'UND',52.0000,52.0000,0,0.00,0,0.00,28.3400,104.00,104.00,37.8301,0,0,1,0.000,2,2,0,NULL,NULL,NULL,2,1,0),(337,'PVT',0,'001','PR','0000005936',2.000,2.000,1,'UND',65.0000,65.0000,0,0.00,0,0.00,46.6000,130.00,130.00,41.7000,0,0,1,0.000,2,2,0,NULL,NULL,NULL,3,1,0),(341,'PVT',0,'001','PR','0000005934',2.000,2.000,1,'UND',38.0000,38.0000,0,0.00,0,0.00,25.9400,76.00,76.00,25.0302,0,0,1,0.000,2,2,0,NULL,NULL,NULL,1,1,0),(341,'PVT',0,'001','PR','0000005936',2.000,2.000,1,'UND',65.0000,65.0000,0,0.00,0,0.00,46.6000,130.00,130.00,41.7000,0,0,1,0.000,2,2,0,NULL,NULL,NULL,2,1,0),(347,'PVT',381,'001','PR','0000002592',8.000,8.000,1,'UND',46.5000,46.5000,0,0.00,0,0.00,23.5200,372.00,372.00,43.5600,0,0,1,0.000,8,8,0,NULL,NULL,NULL,1,2,0),(347,'PVT',381,'001','PR','0000002243',52.000,52.000,1,'UND',16.8000,16.8000,0,0.00,0,0.00,56.8500,873.60,873.60,15.7067,0,0,1,0.000,52,52,0,NULL,NULL,NULL,2,2,0),(347,'PVT',381,'001','PR','0000000800',368.000,368.000,1,'BLS',29.0000,29.0000,0,0.00,0,0.00,1980.4700,10672.00,10672.00,23.6183,0,0,1,0.000,368,368,0,NULL,NULL,NULL,3,2,0),(349,'PVT',386,'001','PR','0000005466',50.000,50.000,1,'MTS',12.9700,12.9700,0,0.00,0,0.00,454.6300,648.50,648.50,3.8775,0,0,1,0.000,50,50,0,NULL,NULL,NULL,1,2,0),(359,'PVT',0,'001','PR','0000003688',100.000,100.000,1,'UND',38.0000,38.0000,0,0.00,0,0.00,158.5200,3800.00,3800.00,36.4148,0,0,1,0.000,100,100,0,NULL,NULL,NULL,1,2,0),(358,'PVT',427,'001','PR','0000006568',1.000,1.000,1,'UND',240.0000,240.0000,0,0.00,0,0.00,62.0000,240.00,240.00,178.0000,0,0,0,0.000,1,1,0,NULL,0,0,1,1,0),(362,'PVT',430,'001','PR','0000000598',1.000,1.000,1,'UND',12.0000,12.0000,0,0.00,0,0.00,4.5000,12.00,12.00,7.5000,0,0,0,0.000,1,1,0,NULL,0,0,1,3,0),(368,'PVT',0,'001','PR','0000000800',4.000,4.000,1,'BLS',24.3000,24.3000,0,0.00,0,0.00,0.7300,97.20,97.20,24.1183,0,0,1,0.000,4,4,0,NULL,NULL,NULL,1,1,1),(381,'PVT',472,'001','PR','0010006988',3.000,3.000,1,'UND',45.0000,45.0000,0,0.00,0,0.00,45.0000,135.00,135.00,30.0000,0,0,1,0.000,3,3,0,NULL,NULL,NULL,1,4,0),(388,'PVT',478,'001','PR','0000002680',2.000,2.000,1,'KLS',13.0000,13.0000,0,0.00,0,0.00,3.2000,26.00,26.00,11.4000,0,0,0,0.000,2,2,0,NULL,0,0,1,1,0),(390,'PVT',0,'001','PR','0000005541',2.000,2.000,1,'UND',30.0000,30.0000,0,0.00,0,0.00,27.8700,60.00,60.00,16.0666,0,0,1,0.000,2,2,0,NULL,NULL,NULL,1,3,0),(391,'PVT',494,'001','PR','0000002940',4.250,4.250,1,'KLS',8.5012,8.5012,0,0.00,0,0.00,8.9800,36.13,36.13,6.3886,0,0,1,0.000,4.25,4.25,0,NULL,NULL,NULL,1,4,0),(394,'PVT',0,'001','PR','0000002940',4.250,4.250,1,'KLS',8.5012,8.5012,0,0.00,0,0.00,8.9800,36.13,36.13,6.3886,0,0,1,0.000,4.25,4.25,0,NULL,NULL,NULL,1,4,1),(407,'PVT',0,'001','PR','0000000253',2.000,2.000,1,'GLNS',20.0000,20.0000,0,0.00,0,0.00,9.8700,40.00,40.00,15.0656,0,0,1,0.000,2,2,0,NULL,NULL,NULL,1,4,1),(415,'PVT',518,'001','PR','0000000800',22.000,22.000,1,'BLS',25.0000,25.0000,0,0.00,0,0.00,30.4000,550.00,550.00,23.6183,0,0,0,0.000,22,22,0,NULL,0,0,1,3,0),(415,'PVT',518,'001','PR','0000006507',8.000,8.000,1,'UND',290.0000,290.0000,0,0.00,0,0.00,880.1600,2320.00,2320.00,179.9800,0,0,0,0.000,8,8,0,NULL,0,0,2,3,0),(415,'PVT',518,'001','PR','0000002635',30.000,30.000,1,'KLS',4.0000,4.0000,0,0.00,0,0.00,30.0000,120.00,120.00,3.0000,0,0,0,0.000,30,30,0,NULL,0,0,3,3,0),(416,'PVT',518,'001','PR','0000000800',22.000,22.000,1,'BLS',25.0000,25.0000,0,0.00,0,0.00,30.4000,550.00,550.00,23.6183,0,0,0,0.000,22,22,0,NULL,0,0,1,1,0),(416,'PVT',518,'001','PR','0000006507',8.000,8.000,1,'UND',290.0000,290.0000,0,0.00,0,0.00,880.1600,2320.00,2320.00,179.9800,0,0,0,0.000,8,8,0,NULL,0,0,2,1,0),(416,'PVT',518,'001','PR','0000002635',30.000,30.000,1,'KLS',4.0000,4.0000,0,0.00,0,0.00,30.0000,120.00,120.00,3.0000,0,0,0,0.000,30,30,0,NULL,0,0,3,1,0),(428,'PVT',577,'001','PR','0000004505',1.000,1.000,1,'UND',30.0000,30.0000,0,0.00,0,0.00,8.7400,30.00,30.00,21.2615,0,0,0,0.000,1,1,0,NULL,0,0,1,1,0),(430,'PVT',584,'001','PR','0000003687',1.000,1.000,1,'KLS',6.5000,6.5000,0,0.00,0,0.00,2.7000,6.50,6.50,3.8000,0,0,1,0.000,1,1,0,NULL,NULL,NULL,1,4,0),(432,'PVT',600,'001','PR','0000003277',1.000,1.000,1,'UND',135.0000,135.0000,0,0.00,0,0.00,38.4000,135.00,135.00,96.5998,0,0,0,0.000,1,1,0,NULL,0,0,1,2,0),(432,'PVT',600,'001','PR','0000002496',400.000,400.000,1,'MTS',2.0000,2.0000,0,0.00,0,0.00,233.1600,800.00,800.00,1.4171,0,0,0,0.000,400,400,0,NULL,0,0,2,2,0),(432,'PVT',600,'001','PR','0000003312',8.000,8.000,1,'UND',17.0000,17.0000,0,0.00,0,0.00,33.9100,136.00,136.00,12.7611,0,0,0,0.000,8,8,0,NULL,0,0,3,2,0),(432,'PVT',600,'001','PR','0000003676',1.000,1.000,1,'UND',24.0000,24.0000,0,0.00,0,0.00,8.1500,24.00,24.00,15.8533,0,0,0,0.000,1,1,0,NULL,0,0,4,2,0),(432,'PVT',600,'001','PR','0000002253',1.000,1.000,1,'UND',5.0000,5.0000,0,0.00,0,0.00,3.1700,5.00,5.00,1.8309,0,0,0,0.000,1,1,0,NULL,0,0,5,2,0),(432,'PVT',600,'001','PR','0000002247',1.000,1.000,1,'UND',7.5000,7.5000,0,0.00,0,0.00,7.5000,7.50,7.50,0.0000,0,0,0,0.000,1,1,0,NULL,0,0,6,2,0),(432,'PVT',600,'001','PR','0000001436',8.000,8.000,1,'UND',1.0000,1.0000,0,0.00,0,0.00,5.1700,8.00,8.00,0.3542,0,0,0,0.000,8,8,0,NULL,0,0,7,2,0),(432,'PVT',600,'001','PR','0000000885',3.000,3.000,1,'UND',5.0000,5.0000,0,0.00,0,0.00,6.9800,15.00,15.00,2.6720,0,0,0,0.000,3,3,0,NULL,0,0,8,2,0),(432,'PVT',600,'001','PR','0000004924',8.000,8.000,1,'UND',6.5000,6.5000,0,0.00,0,0.00,20.5100,52.00,52.00,3.9358,0,0,0,0.000,8,8,0,NULL,0,0,9,2,0),(432,'PVT',600,'001','PR','0000003852',10.000,10.000,1,'UND',2.5000,2.5000,0,0.00,0,0.00,14.5100,25.00,25.00,1.0493,0,0,0,0.000,10,10,0,NULL,0,0,10,2,0),(432,'PVT',600,'001','PR','0000003927',6.000,6.000,1,'UND',14.0000,14.0000,0,0.00,0,0.00,24.9300,84.00,84.00,9.8447,0,0,0,0.000,6,6,0,NULL,0,0,11,2,0),(432,'PVT',600,'001','PR','0000003585',1.000,1.000,1,'KLS',23.0000,23.0000,0,0.00,0,0.00,8.0000,23.00,23.00,15.0000,0,0,0,0.000,1,1,0,NULL,0,0,12,2,0),(432,'PVT',600,'001','PR','0000002263',1.000,1.000,1,'UND',6.0000,6.0000,0,0.00,0,0.00,6.0000,6.00,6.00,0.0000,0,0,0,0.000,1,1,0,NULL,0,0,13,2,0),(432,'PVT',600,'001','PR','0000001400',1.000,1.000,1,'UND',3.0000,3.0000,0,0.00,0,0.00,1.5000,3.00,3.00,1.5000,0,0,0,0.000,1,1,0,NULL,0,0,14,2,0),(432,'PVT',600,'001','PR','0000001431',1.000,1.000,1,'UND',2.5000,2.5000,0,0.00,0,0.00,1.6900,2.50,2.50,0.8062,0,0,0,0.000,1,1,0,NULL,0,0,15,2,0),(432,'PVT',600,'001','PR','0000005984',1.000,1.000,1,'UND',13.5000,13.5000,0,0.00,0,0.00,4.7400,13.50,13.50,8.7607,0,0,0,0.000,1,1,0,NULL,0,0,16,2,0),(432,'PVT',600,'001','PR','0000000888',1.000,1.000,1,'UND',22.0000,22.0000,0,0.00,0,0.00,7.2000,22.00,22.00,14.7960,0,0,0,0.000,1,1,0,NULL,0,0,17,2,0),(438,'PVT',633,'001','PR','0000000242',17.000,17.000,1,'GLNS',20.0000,20.0000,0,0.00,0,0.00,83.8100,340.00,340.00,15.0700,0,0,0,0.000,17,17,0,NULL,0,0,1,1,0),(438,'PVT',633,'001','PR','0000000255',8.000,8.000,1,'GLNS',22.0000,22.0000,0,0.00,0,0.00,11.5600,176.00,176.00,20.5550,0,0,0,0.000,8,8,0,NULL,0,0,2,1,0),(438,'PVT',633,'001','PR','0000000658',7.000,7.000,1,'UND',35.0000,35.0000,0,0.00,0,0.00,91.0000,245.00,245.00,22.0000,0,0,0,0.000,7,7,0,NULL,0,0,4,1,0),(444,'PVT',647,'001','PR','0000004708',3.000,3.000,1,'KLS',3.0000,3.0000,0,0.00,0,0.00,5.4000,9.00,9.00,1.2001,0,0,1,0.000,3,3,0,NULL,NULL,NULL,1,4,0),(449,'PVT',0,'001','PR','0000003959',100.000,100.000,1,'UND',1.0000,1.0000,0,0.00,0,0.00,45.0000,100.00,100.00,0.5500,0,0,1,0.000,100,100,0,NULL,NULL,NULL,1,4,0),(466,'PVT',0,'001','PR','0000000800',4.000,4.000,1,'BLS',24.3000,24.3000,0,0.00,0,0.00,0.7300,97.20,97.20,24.1183,0,0,1,0.000,4,4,0,NULL,NULL,NULL,1,1,1),(468,'PVT',0,'001','PR','0000003920',50.000,50.000,1,'UND',12.0000,12.0000,0,0.00,0,0.00,165.4500,600.00,600.00,8.6910,0,0,1,0.000,50,50,0,NULL,NULL,NULL,1,1,1),(473,'PVT',0,'001','PR','0000003920',50.000,50.000,1,'UND',12.0000,12.0000,0,0.00,0,0.00,165.4500,600.00,600.00,8.6910,0,0,1,0.000,50,50,0,NULL,NULL,NULL,1,1,1),(501,'PVT',794,'001','PR','0000006595',6.000,6.000,1,'MTS',18.0000,18.0000,0,0.00,0,0.00,46.0100,108.00,108.00,10.3320,0,0,1,0.000,6,6,0,NULL,NULL,NULL,1,4,0),(504,'PVT',807,'001','PR','0000003228',4.000,4.000,1,'UND',2.0000,2.0000,0,0.00,0,0.00,5.2000,8.00,8.00,0.7000,0,0,0,0.000,4,4,0,NULL,0,0,3,1,0),(504,'PVT',807,'001','PR','0000002470',3.000,3.000,1,'UND',1.0000,1.0000,0,0.00,0,0.00,1.5600,3.00,3.00,0.4800,0,0,0,0.000,3,3,0,NULL,0,0,4,1,0),(530,'PVT',873,'001','PR','0000000584',1.000,1.000,1,'UND',8.5000,8.5000,0,0.00,0,0.00,1.0000,8.50,8.50,7.5000,0,0,0,0.000,1,1,0,NULL,0,0,1,1,0),(530,'PVT',873,'001','PR','0000000586',1.000,1.000,1,'UND',8.5000,8.5000,0,0.00,0,0.00,1.0000,8.50,8.50,7.5000,0,0,0,0.000,1,1,0,NULL,0,0,2,1,0),(530,'PVT',873,'001','PR','0000000585',1.000,1.000,1,'UND',8.5000,8.5000,0,0.00,0,0.00,1.0000,8.50,8.50,7.5000,0,0,0,0.000,1,1,0,NULL,0,0,3,1,0),(530,'PVT',873,'001','PR','0000004937',1.000,1.000,1,'UND',8.5000,8.5000,0,0.00,0,0.00,1.0000,8.50,8.50,7.5000,0,0,0,0.000,1,1,0,NULL,0,0,4,1,0),(530,'PVT',873,'001','PR','0000004411',1.000,1.000,1,'UND',8.5000,8.5000,0,0.00,0,0.00,1.0000,8.50,8.50,7.5000,0,0,0,0.000,1,1,0,NULL,0,0,5,1,0),(533,'PVT',0,'001','PR','0010007100',1.000,1.000,1,'UND',255.0000,255.0000,0,0.00,0,0.00,255.0000,255.00,255.00,0.0000,0,0,1,0.000,1,1,0,NULL,NULL,NULL,1,1,0),(543,'PVT',0,'001','PR','0000006632',1.000,1.000,1,'UND',630.0000,630.0000,0,0.00,0,0.00,168.7700,630.00,630.00,461.2266,0,0,1,0.000,1,1,0,NULL,NULL,NULL,1,1,0),(547,'PVT',1258,'001','PR','0000002081',1.000,1.000,1,'UND',52.0000,52.0000,0,0.00,0,0.00,15.6600,52.00,52.00,36.3361,0,0,1,0.000,1,1,0,NULL,NULL,NULL,1,1,0),(552,'PVT',943,'001','PR','0000004766',7.000,7.000,1,'KLS',6.0000,6.0000,0,0.00,0,0.00,19.2000,42.00,42.00,3.2568,0,0,0,0.000,7,7,0,NULL,0,0,1,1,0),(575,'PVT',0,'001','PR','0000005893',100.000,100.000,1,'UND',6.5000,6.5000,0,0.00,0,0.00,183.0000,650.00,650.00,4.6700,0,0,1,0.000,100,100,0,NULL,NULL,NULL,1,3,0),(592,'PVT',1027,'001','PR','0000005514',1.000,0.000,1,'UND',25.0000,25.0000,0,0.00,0,0.00,13.3000,25.00,25.00,11.7000,0,0,0,0.000,1,0,0,NULL,0,0,1,1,0),(592,'PVT',1027,'001','PR','0000005196',6.000,6.000,1,'UND',3.0000,3.0000,0,0.00,0,0.00,10.5000,18.00,18.00,1.2500,0,0,0,0.000,6,6,0,NULL,0,0,2,1,0),(592,'PVT',1027,'001','PR','0000004920',1.000,1.000,1,'UND',40.0000,40.0000,0,0.00,0,0.00,4.6100,40.00,40.00,35.3858,0,0,0,0.000,1,1,0,NULL,0,0,3,1,0),(592,'PVT',1027,'001','PR','0000006016',7.000,7.000,1,'UND',15.0000,15.0000,0,0.00,0,0.00,38.4400,105.00,105.00,9.5079,0,0,0,0.000,7,7,0,NULL,0,0,4,1,0),(592,'PVT',1027,'001','PR','0000005604',6.000,6.000,1,'UND',4.0000,4.0000,0,0.00,0,0.00,12.0000,24.00,24.00,2.0000,0,0,0,0.000,6,6,0,NULL,0,0,5,1,0),(604,'PVT',1057,'001','PR','0000000103',2.000,2.000,1,'UND',9.0000,9.0000,0,0.00,0,0.00,10.7200,18.00,18.00,3.6399,0,0,1,0.000,2,2,0,NULL,0,0,1,2,0),(604,'PVT',1057,'001','PR','0000006461',1.000,1.000,1,'UND',1.5000,1.5000,0,0.00,0,0.00,1.0600,1.50,1.50,0.4433,0,0,0,0.000,1,1,0,NULL,0,0,2,2,0),(604,'PVT',1057,'001','PR','0000004465',3.000,3.000,1,'UND',48.0000,48.0000,0,0.00,0,0.00,33.0000,144.00,144.00,37.0000,0,0,0,0.000,3,3,0,NULL,0,0,3,2,0),(604,'PVT',1057,'001','PR','0000000716',2.000,2.000,1,'UND',28.0000,28.0000,0,0.00,0,0.00,9.6200,56.00,56.00,23.1890,0,0,0,0.000,2,2,0,NULL,0,0,4,2,0),(604,'PVT',1057,'001','PR','0000003225',1.000,1.000,1,'GLNS',16.0000,16.0000,0,0.00,0,0.00,3.8000,16.00,16.00,12.2000,0,0,0,0.000,1,1,0,NULL,0,0,5,2,0),(604,'PVT',1057,'001','PR','0000003079',1.000,1.000,1,'UND',10.0000,10.0000,0,0.00,0,0.00,6.0100,10.00,10.00,3.9918,0,0,0,0.000,1,1,0,NULL,0,0,6,2,0),(604,'PVT',1057,'001','PR','0000004851',1.000,1.000,1,'UND',480.0000,480.0000,0,0.00,0,0.00,138.5600,480.00,480.00,341.4424,0,0,0,0.000,1,1,0,NULL,0,0,7,2,0),(606,'PVT',1060,'001','PR','0000003687',30.000,30.000,1,'KLS',6.8000,6.8000,0,0.00,0,0.00,90.0000,204.00,204.00,3.8000,0,0,1,0.000,30,30,0,NULL,NULL,NULL,1,2,0),(606,'PVT',1060,'001','PR','0000002989',70.000,70.000,1,'MTS',7.4286,7.4286,0,0.00,0,0.00,208.1500,520.00,520.00,4.4550,0,0,1,0.000,70,70,0,NULL,NULL,NULL,2,2,0),(606,'PVT',1060,'001','PR','0000003026',4.000,4.000,1,'ROLL',53.0000,53.0000,0,0.00,0,0.00,212.0000,212.00,212.00,0.0000,0,0,1,0.000,4,4,0,NULL,NULL,NULL,3,2,0),(608,'PVT',1043,'001','PR','0000000276',1.000,1.000,1,'GLNS',30.0000,30.0000,0,0.00,0,0.00,30.0000,30.00,30.00,0.0000,0,0,0,0.000,1,1,0,NULL,0,0,1,3,0),(610,'PVT',0,'001','PR','0000002190',1.000,1.000,1,'UND',8.0000,8.0000,0,0.00,0,0.00,3.7500,8.00,8.00,4.2499,0,0,1,0.000,1,1,0,NULL,NULL,NULL,1,2,1),(610,'PVT',0,'001','PR','0000002190',1.000,1.000,1,'UND',10.5000,10.5000,0,0.00,0,0.00,6.2500,10.50,10.50,4.2499,0,0,1,0.000,1,1,0,NULL,NULL,NULL,2,2,0),(610,'PVT',0,'001','PR','0000002190',1.000,1.000,1,'UND',11.0000,11.0000,0,0.00,0,0.00,6.7500,11.00,11.00,4.2499,0,0,1,0.000,1,1,0,NULL,NULL,NULL,3,2,0),(610,'PVT',0,'001','PR','0000003844',1.000,1.000,1,'UND',6.0000,6.0000,0,0.00,0,0.00,1.2400,6.00,6.00,4.7554,0,0,1,0.000,1,1,0,NULL,NULL,NULL,4,2,0),(610,'PVT',0,'001','PR','0000006354',1.000,1.000,1,'UND',1.0000,1.0000,0,0.00,0,0.00,0.6500,1.00,1.00,0.3500,0,0,1,0.000,1,1,0,NULL,NULL,NULL,5,2,0),(610,'PVT',0,'001','PR','0000000884',1.000,1.000,1,'UND',2.0000,2.0000,0,0.00,0,0.00,0.8700,2.00,2.00,1.1332,0,0,1,0.000,1,1,0,NULL,NULL,NULL,6,2,0),(610,'PVT',0,'001','PR','0000005824',1.000,1.000,1,'UND',5.0000,5.0000,0,0.00,0,0.00,5.0000,5.00,5.00,0.0000,0,0,1,0.000,1,1,0,NULL,NULL,NULL,7,2,0),(624,'PVT',0,'001','PR','0000006350',1.000,1.000,1,'UND',10.0000,10.0000,0,0.00,0,0.00,4.0000,10.00,10.00,6.0000,0,0,1,0.000,1,1,0,NULL,NULL,NULL,1,1,0),(635,'PVT',1131,'001','PR','0000002648',11.000,11.000,1,'UND',395.0000,395.0000,0,0.00,0,0.00,220.0000,4345.00,4345.00,375.0000,0,0,0,0.000,11,11,0,NULL,NULL,0,1,2,0),(635,'PVT',1131,'001','PR','0000002647',13.000,13.000,1,'UND',330.0000,330.0000,0,0.00,0,0.00,897.0000,4290.00,4290.00,261.0000,0,0,0,0.000,13,13,0,NULL,NULL,0,2,2,0),(651,'PVT',1147,'001','PR','0010007073',1.000,1.000,1,'UND',48.0000,48.0000,0,0.00,0,0.00,14.5300,48.00,48.00,33.4661,0,0,0,0.000,1,1,0,NULL,0,0,1,2,0),(651,'PVT',1147,'001','PR','0000006477',1.000,1.000,1,'UND',2.5000,2.5000,0,0.00,0,0.00,1.0900,2.50,2.50,1.4083,0,0,0,0.000,1,1,0,NULL,0,0,2,2,0),(651,'PVT',1147,'001','PR','0000003383',2.000,2.000,1,'UND',3.0000,3.0000,0,0.00,0,0.00,2.6000,6.00,6.00,1.7025,0,0,0,0.000,2,2,0,NULL,0,0,3,2,0),(655,'PVT',1172,'001','PR','0000005861',200.000,200.000,1,'MTS',0.5000,0.5000,0,0.00,0,0.00,48.0000,100.00,100.00,0.2600,0,0,0,0.000,200,200,0,NULL,0,0,1,4,0),(662,'PVT',0,'001','PR','0000002931',1.000,1.000,1,'UND',22.0000,22.0000,0,0.00,0,0.00,12.0100,22.00,22.00,9.9900,0,0,1,0.000,1,1,0,NULL,NULL,NULL,1,4,0),(666,'PVT',0,'001','PR','0000002931',1.000,1.000,1,'UND',22.0000,22.0000,0,0.00,0,0.00,12.0100,22.00,22.00,9.9900,0,0,1,0.000,1,1,0,NULL,NULL,NULL,1,4,0),(665,'PVT',0,'001','PR','0000001559',100.000,100.000,1,'UND',0.2800,0.2800,0,0.00,0,0.00,21.0000,28.00,28.00,0.0700,0,0,1,0.000,100,100,0,NULL,NULL,NULL,1,1,0),(665,'PVT',0,'001','PR','0000002024',100.000,100.000,1,'UND',0.1200,0.1200,0,0.00,0,0.00,10.0500,12.00,12.00,0.0195,0,0,1,0.000,100,100,0,NULL,NULL,NULL,2,1,0),(672,'PVT',0,'001','PR','0000003181',3.000,3.000,1,'UND',10.0000,10.0000,0,0.00,0,0.00,8.1800,30.00,30.00,7.2750,0,0,1,0.000,3,3,0,NULL,NULL,NULL,1,2,0),(672,'PVT',0,'001','PR','0000002474',1.000,1.000,1,'UND',14.0000,14.0000,0,0.00,0,0.00,4.2300,14.00,14.00,9.7703,0,0,1,0.000,1,1,0,NULL,NULL,NULL,2,2,0),(672,'PVT',0,'001','PR','0000003024',1.000,1.000,1,'UND',3.5000,3.5000,0,0.00,0,0.00,0.8000,3.50,3.50,2.7000,0,0,1,0.000,1,1,0,NULL,NULL,NULL,3,2,0),(672,'PVT',0,'001','PR','0000002025',50.000,50.000,1,'UND',0.2000,0.2000,0,0.00,0,0.00,8.7900,10.00,10.00,0.0243,0,0,1,0.000,50,50,0,NULL,NULL,NULL,4,2,0),(672,'PVT',0,'001','PR','0010007134',1.000,1.000,1,'UND',7.0000,7.0000,0,0.00,0,0.00,2.8000,7.00,7.00,4.2008,0,0,1,0.000,1,1,0,NULL,NULL,NULL,5,2,0),(672,'PVT',0,'001','PR','0000002300',1.000,1.000,1,'UND',4.5000,4.5000,0,0.00,0,0.00,1.7500,4.50,4.50,2.7500,0,0,1,0.000,1,1,0,NULL,NULL,NULL,6,2,0),(672,'PVT',0,'001','PR','0000000906',16.000,16.000,1,'MTS',2.8750,2.8750,0,0.00,0,0.00,46.0000,46.00,46.00,0.0000,0,0,1,0.000,16,16,0,NULL,NULL,NULL,7,2,0),(672,'PVT',0,'001','PR','0000000606',1.000,1.000,1,'UND',20.0000,20.0000,0,0.00,0,0.00,7.0000,20.00,20.00,13.0000,0,0,1,0.000,1,1,0,NULL,NULL,NULL,8,2,0),(672,'PVT',0,'001','PR','0000002639',1.000,1.000,1,'GLNS',30.0000,30.0000,0,0.00,0,0.00,4.9800,30.00,30.00,25.0180,0,0,1,0.000,1,1,0,NULL,NULL,NULL,9,2,0),(672,'PVT',0,'001','PR','0000002657',3.000,3.000,1,'UND',2.5000,2.5000,0,0.00,0,0.00,2.8300,7.50,7.50,1.5583,0,0,1,0.000,3,3,0,NULL,NULL,NULL,10,2,0),(672,'PVT',0,'001','PR','0000001652',1.000,1.000,1,'UND',8.0000,8.0000,0,0.00,0,0.00,4.7000,8.00,8.00,3.3000,0,0,1,0.000,1,1,0,NULL,NULL,NULL,11,2,0),(672,'PVT',0,'001','PR','0000005603',3.000,3.000,1,'UND',10.0000,10.0000,0,0.00,0,0.00,22.8400,30.00,30.00,2.3883,0,0,1,0.000,3,3,0,NULL,NULL,NULL,12,2,0),(672,'PVT',0,'001','PR','0000002078',2.000,2.000,1,'UND',6.0000,6.0000,0,0.00,0,0.00,3.0000,12.00,12.00,4.5000,0,0,1,0.000,2,2,0,NULL,NULL,NULL,13,2,0),(672,'PVT',0,'001','PR','0000002462',3.000,3.000,1,'UND',8.0000,8.0000,0,0.00,0,0.00,7.4900,24.00,24.00,5.5023,0,0,1,0.000,3,3,0,NULL,NULL,NULL,14,2,0),(672,'PVT',0,'001','PR','0000006712',3.000,3.000,1,'UND',35.0000,35.0000,0,0.00,0,0.00,47.5800,105.00,105.00,19.1390,0,0,1,0.000,3,3,0,NULL,NULL,NULL,15,2,0),(672,'PVT',0,'001','PR','0000003318',2.000,2.000,1,'UND',15.5000,15.5000,0,0.00,0,0.00,13.4000,31.00,31.00,8.8000,0,0,1,0.000,2,2,0,NULL,NULL,NULL,16,2,0),(672,'PVT',0,'001','PR','0000006922',1.000,1.000,1,'UND',18.0000,18.0000,0,0.00,0,0.00,5.5000,18.00,18.00,12.5000,0,0,1,0.000,1,1,0,NULL,NULL,NULL,17,2,0),(672,'PVT',0,'001','PR','0000003082',1.000,1.000,1,'UND',20.0000,20.0000,0,0.00,0,0.00,7.1100,20.00,20.00,12.8935,0,0,1,0.000,1,1,0,NULL,NULL,NULL,18,2,0),(672,'PVT',0,'001','PR','0000005808',1.000,1.000,1,'UND',45.0000,45.0000,0,0.00,0,0.00,13.5900,45.00,45.00,31.4140,0,0,1,0.000,1,1,0,NULL,NULL,NULL,19,2,0),(680,'PVT',1222,'001','PR','0000005605',5.000,5.000,1,'UND',6.5000,6.5000,0,0.00,0,0.00,4.4700,32.50,32.50,5.6070,0,0,1,0.000,5,5,0,NULL,NULL,NULL,1,4,0),(680,'PVT',1222,'001','PR','0000005013',5.000,5.000,1,'UND',3.0000,3.0000,0,0.00,0,0.00,5.2300,15.00,15.00,1.9548,0,0,1,0.000,5,5,0,NULL,NULL,NULL,2,4,0),(680,'PVT',1222,'001','PR','0000006034',18.000,18.000,1,'UND',2.0000,2.0000,0,0.00,0,0.00,34.2100,36.00,36.00,0.0994,0,0,1,0.000,18,18,0,NULL,NULL,NULL,3,4,0),(680,'PVT',1222,'001','PR','0000002170',6.000,6.000,1,'UND',0.5000,0.5000,0,0.00,0,0.00,1.4500,3.00,3.00,0.2583,0,0,1,0.000,6,6,0,NULL,NULL,NULL,4,4,0),(680,'PVT',1222,'001','PR','0000001360',6.000,6.000,1,'UND',5.0000,5.0000,0,0.00,0,0.00,21.6000,30.00,30.00,1.4000,0,0,1,0.000,6,6,0,NULL,NULL,NULL,5,4,0),(680,'PVT',1222,'001','PR','0000006804',1.000,1.000,1,'UND',3.0000,3.0000,0,0.00,0,0.00,1.9200,3.00,3.00,1.0758,0,0,1,0.000,1,1,0,NULL,NULL,NULL,6,4,0),(680,'PVT',1222,'001','PR','0000001670',1.000,1.000,1,'UND',8.0000,8.0000,0,0.00,0,0.00,8.0000,8.00,8.00,0.0000,0,0,1,0.000,1,1,0,NULL,NULL,NULL,7,4,0),(680,'PVT',1222,'001','PR','0000005698',1.000,1.000,1,'UND',11.5000,11.5000,0,0.00,0,0.00,4.8000,11.50,11.50,6.7004,0,0,1,0.000,1,1,0,NULL,NULL,NULL,8,4,0),(710,'PVT',1290,'001','PR','0000006700',4.000,4.000,1,'UND',28.0000,28.0000,0,0.00,0,0.00,52.7100,112.00,112.00,14.8225,0,0,1,0.000,4,4,0,NULL,NULL,NULL,1,1,0),(710,'PVT',1290,'001','PR','0000003225',2.000,2.000,1,'GLNS',16.0000,16.0000,0,0.00,0,0.00,7.6000,32.00,32.00,12.2000,0,0,1,0.000,2,2,0,NULL,NULL,NULL,2,1,0),(710,'PVT',1290,'001','PR','0000006970',200.000,200.000,1,'UND',4.5000,4.5000,0,0.00,0,0.00,300.0000,900.00,900.00,3.0000,0,0,1,0.000,200,200,0,NULL,NULL,NULL,3,1,0),(771,'PVT',1363,'001','PR','0000000802',1.000,1.000,1,'BLS',27.0000,27.0000,0,0.00,0,0.00,1.1800,27.00,27.00,25.8188,0,0,0,0.000,1,1,0,NULL,0,0,1,2,0),(772,'PVT',1370,'001','PR','0000003628',3.000,3.000,1,'UND',1.0000,1.0000,0,0.00,0,0.00,1.2100,3.00,3.00,0.5956,0,0,0,0.000,3,3,0,NULL,0,0,1,2,0),(772,'PVT',1370,'001','PR','0000001434',8.000,8.000,1,'UND',1.0000,1.0000,0,0.00,0,0.00,5.1300,8.00,8.00,0.3584,0,0,0,0.000,8,8,0,NULL,0,0,2,2,0),(772,'PVT',1370,'001','PR','0000006963',1.000,1.000,1,'UND',3.0000,3.0000,0,0.00,0,0.00,1.9400,3.00,3.00,1.0626,0,0,0,0.000,1,1,0,NULL,0,0,3,2,0),(772,'PVT',1370,'001','PR','0000003563',1.000,1.000,1,'UND',8.0000,8.0000,0,0.00,0,0.00,2.9100,8.00,8.00,5.0941,0,0,0,0.000,1,1,0,NULL,0,0,4,2,0),(773,'PVT',1370,'001','PR','0000003628',3.000,3.000,1,'UND',1.0000,1.0000,0,0.00,0,0.00,1.2100,3.00,3.00,0.5956,0,0,0,0.000,3,3,0,NULL,0,0,1,2,0),(773,'PVT',1370,'001','PR','0000001434',8.000,8.000,1,'UND',1.0000,1.0000,0,0.00,0,0.00,5.1300,8.00,8.00,0.3584,0,0,0,0.000,8,8,0,NULL,0,0,2,2,0),(773,'PVT',1370,'001','PR','0000006963',1.000,1.000,1,'UND',3.0000,3.0000,0,0.00,0,0.00,1.9400,3.00,3.00,1.0626,0,0,0,0.000,1,1,0,NULL,0,0,3,2,0),(773,'PVT',1370,'001','PR','0000003563',1.000,1.000,1,'UND',8.0000,8.0000,0,0.00,0,0.00,2.9100,8.00,8.00,5.0941,0,0,0,0.000,1,1,0,NULL,0,0,4,2,0),(774,'PVT',1370,'001','PR','0000003628',3.000,3.000,1,'UND',1.0000,1.0000,0,0.00,0,0.00,1.2100,3.00,3.00,0.5956,0,0,0,0.000,3,3,0,NULL,0,0,1,2,0),(774,'PVT',1370,'001','PR','0000001434',8.000,8.000,1,'UND',1.0000,1.0000,0,0.00,0,0.00,5.1300,8.00,8.00,0.3584,0,0,0,0.000,8,8,0,NULL,0,0,2,2,0),(774,'PVT',1370,'001','PR','0000006963',1.000,1.000,1,'UND',3.0000,3.0000,0,0.00,0,0.00,1.9400,3.00,3.00,1.0626,0,0,0,0.000,1,1,0,NULL,0,0,3,2,0),(774,'PVT',1370,'001','PR','0000003563',1.000,1.000,1,'UND',8.0000,8.0000,0,0.00,0,0.00,2.9100,8.00,8.00,5.0941,0,0,0,0.000,1,1,0,NULL,0,0,4,2,0),(775,'PVT',1370,'001','PR','0000003628',3.000,3.000,1,'UND',1.0000,1.0000,0,0.00,0,0.00,1.2100,3.00,3.00,0.5956,0,0,0,0.000,3,3,0,NULL,0,0,1,2,0),(775,'PVT',1370,'001','PR','0000001434',8.000,8.000,1,'UND',1.0000,1.0000,0,0.00,0,0.00,5.1300,8.00,8.00,0.3584,0,0,0,0.000,8,8,0,NULL,0,0,2,2,0),(775,'PVT',1370,'001','PR','0000006963',1.000,1.000,1,'UND',3.0000,3.0000,0,0.00,0,0.00,1.9400,3.00,3.00,1.0626,0,0,0,0.000,1,1,0,NULL,0,0,3,2,0),(775,'PVT',1370,'001','PR','0000003563',1.000,1.000,1,'UND',8.0000,8.0000,0,0.00,0,0.00,2.9100,8.00,8.00,5.0941,0,0,0,0.000,1,1,0,NULL,0,0,4,2,0),(776,'PVT',1363,'001','PR','0000000802',1.000,1.000,1,'BLS',27.0000,27.0000,0,0.00,0,0.00,1.1800,27.00,27.00,25.8188,0,0,0,0.000,1,1,0,NULL,0,0,1,2,0),(777,'PVT',1374,'001','PR','0000005199',1.000,0.000,1,'BLS',25.0000,25.0000,0,0.00,0,0.00,10.0000,25.00,25.00,15.0000,0,0,0,0.000,1,0,0,NULL,0,0,1,2,0),(779,'PVT',1376,'001','PR','0000002094',1.000,1.000,1,'UND',32.0000,32.0000,0,0.00,0,0.00,32.0000,32.00,32.00,0.0000,0,0,0,0.000,1,1,0,NULL,0,0,1,2,0),(781,'PVT',1377,'001','PR','0000002094',1.000,1.000,1,'UND',32.0000,32.0000,0,0.00,0,0.00,32.0000,32.00,32.00,0.0000,0,0,0,0.000,1,1,0,NULL,NULL,0,1,2,0),(782,'PVT',1377,'001','PR','0000002094',1.000,1.000,1,'UND',32.0000,32.0000,0,0.00,0,0.00,32.0000,32.00,32.00,0.0000,0,0,0,0.000,1,1,0,NULL,NULL,0,1,2,0),(783,'PVT',1377,'001','PR','0000002094',1.000,1.000,1,'UND',32.0000,32.0000,0,0.00,0,0.00,32.0000,32.00,32.00,0.0000,0,0,0,0.000,1,1,0,NULL,NULL,0,1,2,0),(784,'PVT',1377,'001','PR','0000002094',1.000,1.000,1,'UND',32.0000,32.0000,0,0.00,0,0.00,32.0000,32.00,32.00,0.0000,0,0,0,0.000,1,1,0,NULL,NULL,0,1,2,0),(785,'PVT',1377,'001','PR','0000002094',1.000,1.000,1,'UND',32.0000,32.0000,0,0.00,0,0.00,32.0000,32.00,32.00,0.0000,0,0,0,0.000,1,1,0,NULL,NULL,0,1,2,0),(786,'PVT',1377,'001','PR','0000002094',1.000,1.000,1,'UND',32.0000,32.0000,0,0.00,0,0.00,32.0000,32.00,32.00,0.0000,0,0,0,0.000,1,1,0,NULL,NULL,0,1,2,0),(787,'PVT',1377,'001','PR','0000002094',1.000,1.000,1,'UND',32.0000,32.0000,0,0.00,0,0.00,32.0000,32.00,32.00,0.0000,0,0,0,0.000,1,1,0,NULL,NULL,0,1,2,0),(790,'PVT',0,'001','PR','0000002094',1.000,0.000,1,'UND',32.0000,32.0000,0,0.00,0,0.00,32.0000,32.00,32.00,0.0000,0,0,1,0.000,1,0,0,NULL,NULL,NULL,1,2,1),(790,'PVT',0,'001','PR','0000005108',1.000,1.000,1,'UND',13.0000,13.0000,0,0.00,0,0.00,5.0000,13.00,13.00,8.0000,0,0,1,0.000,1,1,0,NULL,NULL,NULL,2,2,0),(21,'PVT',2,'001','PR','0000000002',1.000,1.000,1,'UND',2.3500,2.3500,0,0.00,0,0.00,0.3900,2.35,2.35,1.9588,0,0,0,0.000,1,1,0,NULL,0,0,1,2,0),(22,'PVT',2,'001','PR','0000000002',1.000,1.000,1,'UND',2.3500,2.3500,0,0.00,0,0.00,0.3900,2.35,2.35,1.9588,0,0,0,0.000,1,1,0,NULL,NULL,0,1,2,0),(23,'PVT',2,'001','PR','0000000002',1.000,1.000,1,'UND',2.3500,2.3500,0,0.00,0,0.00,0.3900,2.35,2.35,1.9588,0,0,0,0.000,1,1,0,NULL,NULL,0,1,2,0),(33,'PVT',1,'001','PR','0000000001',1.000,1.000,1,'UND',142.8700,142.8700,0,0.00,0,0.00,22.8700,142.87,142.87,120.0000,0,0,0,0.000,1,1,0,NULL,0,0,1,2,0),(26,'PVT',0,'001','PR','0010001410',100.000,0.000,100,'CNT',20.0000,20.0000,0,0.00,0,0.00,-5.0000,20.00,20.00,25.0000,0,0,1,0.000,1,0,0,NULL,NULL,NULL,1,1,0),(47,'PVT',0,'001','PR','0010002609',1.000,1.000,1,'UND',1.0000,1.0000,0,0.00,0,0.00,0.1800,1.00,1.00,0.8200,0,0,-1,0.000,1,1,0,NULL,NULL,NULL,1,1,0),(52,'PVT',0,'001','PR','0010000846',1.000,1.000,1,'UND',8.0000,8.0000,0,0.00,0,0.00,4.1500,8.00,8.00,3.8500,0,0,-1,0.000,1,1,0,NULL,NULL,NULL,1,1,0),(57,'PVT',5,'001','PR','0010001038',1.000,1.000,1,'UND',22.0000,22.0000,0,0.00,0,0.00,2.0000,22.00,22.00,20.0000,0,0,0,0.000,1,1,0,NULL,0,0,1,1,0);

--
-- Table structure for table `tdmedio_cobro`
--

CREATE TABLE `tdmedio_cobro` (
  `IdSesion` int(11) NOT NULL,
  `IdWindow` varchar(3) NOT NULL,
  `IdMedio_Pago` int(11) NOT NULL,
  `IdTienda` varchar(3) NOT NULL,
  `IdCliPro` varchar(8) NOT NULL,
  `NDocPago` varchar(12) NOT NULL,
  `NroLetra` varchar(12) NOT NULL,
  `NSerie` varchar(4) NOT NULL,
  `NDocumento` varchar(20) NOT NULL,
  `IdDocFis` tinyint(4) NOT NULL,
  `Fecha` date NOT NULL,
  `Monto` double(12,2) NOT NULL DEFAULT '0.00',
  `Moneda` smallint(6) NOT NULL DEFAULT '0',
  `TC` double DEFAULT '0',
  `IdUsuario` smallint(6) NOT NULL,
  `Eliminado` tinyint(1) NOT NULL DEFAULT '0',
  KEY `Fecha` (`Fecha`),
  KEY `IdCliPro` (`IdCliPro`),
  KEY `IdDocFis` (`IdDocFis`),
  KEY `IdTienda` (`IdTienda`),
  KEY `NDocPago` (`NDocPago`),
  KEY `NroLetra` (`NroLetra`),
  KEY `NSerie` (`NSerie`),
  KEY `NDocumento` (`NDocumento`),
  KEY `Eliminado` (`Eliminado`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `tdmedio_cobro`
--

INSERT INTO `tdmedio_cobro` VALUES (237,'COB',1,'001','00100001','RI-000000001','0','0001','000000000010',3,'2017-07-18',380.00,0,3.55,0,0),(238,'COB',1,'001','00100001','RI-000000001','0','0001','000000000010',3,'2017-07-18',380.00,0,3.55,0,0),(245,'COB',1,'001','00100001','RI-000000001','0','0001','000000000010',3,'2017-07-18',380.00,0,3.55,0,0),(249,'COB',1,'001','00100001','RI-000000001','0','0001','000000000010',3,'2017-07-18',380.00,0,3.55,0,0),(251,'COB',1,'001','00100001','RI-000000001','0','0001','000000000010',3,'2017-07-18',380.00,0,3.55,0,0),(253,'COB',1,'001','00100001','RI-000000001','0','0001','000000000010',3,'2017-07-18',380.00,0,3.55,0,0),(259,'COB',2,'001','00100001',' RI-00000000','0','0001','000000000011',3,'2017-07-19',100.00,0,3.55,0,0),(274,'COB',4,'001','00100001','RI-000000002','0','0001','000000000011',3,'2017-07-19',100.00,0,3.55,0,0),(288,'COB',0,'001','00100001',' RI-00000000','0','0001','000000000011',3,'2017-07-19',100.00,0,3.55,0,0),(290,'COB',0,'001','00100001',' RI-00000000','0','0001','000000000011',3,'2017-07-19',100.00,0,3.55,0,0);

--
-- Table structure for table `tdmedio_pago`
--

CREATE TABLE `tdmedio_pago` (
  `IdSesion` int(11) NOT NULL,
  `IdWindow` varchar(3) NOT NULL,
  `IdMedio_Pago` int(11) NOT NULL,
  `IdTienda` varchar(3) NOT NULL,
  `IdCliPro` varchar(8) NOT NULL,
  `NDocPago` varchar(12) NOT NULL,
  `NroLetra` varchar(20) NOT NULL,
  `NroUnico` varchar(20) NOT NULL,
  `NSerie` varchar(4) NOT NULL,
  `NDocumento` varchar(20) NOT NULL,
  `IdDocFis` tinyint(4) NOT NULL,
  `Fecha` date NOT NULL,
  `Monto` double(12,2) NOT NULL DEFAULT '0.00',
  `Moneda` smallint(6) NOT NULL DEFAULT '0',
  `TC` double DEFAULT '0',
  `IdUsuario` smallint(6) NOT NULL,
  `Eliminado` tinyint(1) NOT NULL DEFAULT '0',
  KEY `IdTienda` (`IdTienda`),
  KEY `NDocPago` (`NDocPago`),
  KEY `NroLetra` (`NroLetra`),
  KEY `Eliminado` (`Eliminado`),
  KEY `IdSesion` (`IdSesion`,`IdWindow`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `tdmedio_pago`
--

INSERT INTO `tdmedio_pago` VALUES (2623,'PAG',2,'001','001P0001','RE-000000002','0','','0501','000000022345',1,'2017-04-02',2500.00,0,3.55,0,0),(3044,'PAG',0,'001','001P0001',' RE-00000000','0','','0501','000000022345',1,'2017-06-03',15500.00,0,3.55,0,0),(4205,'PAG',2,'001','001P0001','RE-000000002','0','','0501','000000022345',1,'2017-04-02',2500.00,0,3.55,0,0),(314,'PAG',0,'001','001P0002',' RE-00000000','0','','0220','000000002343',1,'2017-07-20',50.00,0,3.55,0,0),(315,'PAG',1,'001','001P0002','RE-000000001','0','','0220','000000002343',1,'2017-07-20',50.00,0,3.55,0,0),(394,'PAG',3,'001','001P0002','RE-000000003','0','','0220','000000002343',1,'2017-07-21',100.00,0,3.55,1,0),(520,'PAG',2,'001','001P0002','RE-000000002','0','','0220','000000002343',1,'2017-07-20',50.00,0,3.55,1,0);

--
-- Table structure for table `temp_codigobarras`
--

CREATE TABLE `temp_codigobarras` (
  `Id_01` varchar(12) DEFAULT NULL,
  `NP_01` varchar(255) DEFAULT NULL,
  `Id_02` varchar(12) DEFAULT NULL,
  `NP_02` varchar(255) DEFAULT NULL,
  `Id_03` varchar(12) DEFAULT NULL,
  `NP_03` varchar(255) DEFAULT NULL,
  `Id_04` varchar(12) DEFAULT NULL,
  `NP_04` varchar(255) DEFAULT NULL,
  `Id_05` varchar(12) DEFAULT NULL,
  `NP_05` varchar(255) DEFAULT NULL,
  `Fila` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `temp_codigobarras`
--

INSERT INTO `temp_codigobarras` VALUES ('*0010006552*','ABRAZ\'ADERA 1\" 1/2 TAIWAN','*0010006552*','ABRAZ\'ADERA 1\" 1/2 TAIWAN','*0010006552*','ABRAZ\'ADERA 1\" 1/2 TAIWAN','*0010006552*','ABRAZ\'ADERA 1\" 1/2 TAIWAN','*0010006552*','ABRAZ\'ADERA 1\" 1/2 TAIWAN',1),('*0010006552*','ABRAZ\'ADERA 1\" 1/2 TAIWAN','*0010006552*','ABRAZ\'ADERA 1\" 1/2 TAIWAN','*0010006552*','ABRAZ\'ADERA 1\" 1/2 TAIWAN','*0010006552*','ABRAZ\'ADERA 1\" 1/2 TAIWAN','*0010006552*','ABRAZ\'ADERA 1\" 1/2 TAIWAN',2),('*0010006551*','ABRAZADERA 1\" TAIWAN',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,3);

--
-- Table structure for table `temp_credxcob`
--

CREATE TABLE `temp_credxcob` (
  `IdCliPro` varchar(8) DEFAULT NULL,
  `NomCliPro` varchar(150) DEFAULT NULL,
  `Direccion` varchar(150) DEFAULT NULL,
  `Fecha` date DEFAULT NULL,
  `FechaVenc` date DEFAULT NULL,
  `DiasCre` int(11) DEFAULT NULL,
  `IdDocFis` tinyint(4) DEFAULT NULL,
  `Abrev` varchar(5) DEFAULT NULL,
  `NSerie` varchar(4) DEFAULT NULL,
  `NDocumento` varchar(20) DEFAULT NULL,
  `NLetra` varchar(20) DEFAULT NULL,
  `Soles` double(14,3) DEFAULT '0.000',
  `Dolar` double(14,3) DEFAULT '0.000',
  `Amortizacion` double(14,3) DEFAULT '0.000',
  `Saldo_Soles` double(14,3) DEFAULT '0.000',
  `Saldo_Dolar` double(14,3) DEFAULT '0.000',
  `Moneda` smallint(6) DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `temp_credxcob`
--

INSERT INTO `temp_credxcob` VALUES ('00101940','CONSORCIO AMAZONAS','AV.DEL EJERCITO N° 1864 - IQUITOS','2018-04-30','2018-04-30',-2147483648,1,'F/v','0002','00036537',NULL,920.000,0.000,0.000,920.000,0.000,0),('00101940','CONSORCIO AMAZONAS','AV.DEL EJERCITO N° 1864 - IQUITOS','2018-04-30','2018-04-30',-2147483648,1,'F/v','0002','00036539',NULL,60.000,0.000,0.000,60.000,0.000,0),('00101940','CONSORCIO AMAZONAS','AV.DEL EJERCITO N° 1864 - IQUITOS','2018-05-31','2018-06-30',-2147483648,1,'F/v','0002','00036760',NULL,14120.000,0.000,0.000,14120.000,0.000,0),('00101940','CONSORCIO AMAZONAS','AV.DEL EJERCITO N° 1864 - IQUITOS','2018-05-31','2018-06-30',-2147483648,1,'F/v','0002','00036759',NULL,2690.000,0.000,0.000,2690.000,0.000,0),('00101940','CONSORCIO AMAZONAS','AV.DEL EJERCITO N° 1864 - IQUITOS','2018-05-31','2018-06-30',-2147483648,1,'F/v','0002','00036758',NULL,1535.000,0.000,0.000,1535.000,0.000,0),('00101940','CONSORCIO AMAZONAS','AV.DEL EJERCITO N° 1864 - IQUITOS','2018-05-31','2018-06-30',-2147483648,1,'F/v','0002','00036757',NULL,3005.000,0.000,0.000,3005.000,0.000,0),('00101940','CONSORCIO AMAZONAS','AV.DEL EJERCITO N° 1864 - IQUITOS','2018-05-31','2018-06-30',-2147483648,1,'F/v','0002','00036756',NULL,8639.000,0.000,0.000,8639.000,0.000,0),('00101940','CONSORCIO AMAZONAS','AV.DEL EJERCITO N° 1864 - IQUITOS','2018-05-31','2018-06-30',-2147483648,1,'F/v','0002','00036755',NULL,7016.000,0.000,0.000,7016.000,0.000,0),('00101940','CONSORCIO AMAZONAS','AV.DEL EJERCITO N° 1864 - IQUITOS','2018-05-31','2018-06-30',-2147483648,1,'F/v','0002','00036750',NULL,1044.000,0.000,0.000,1044.000,0.000,0),('00101940','CONSORCIO AMAZONAS','AV.DEL EJERCITO N° 1864 - IQUITOS','2018-06-30','2018-06-30',-2147483648,1,'F/v','0002','00037019',NULL,6019.000,0.000,0.000,6019.000,0.000,0),('00101940','CONSORCIO AMAZONAS','AV.DEL EJERCITO N° 1864 - IQUITOS','2018-06-30','2018-06-30',-2147483648,1,'F/v','0002','00037018',NULL,6683.000,0.000,0.000,6683.000,0.000,0),('00101940','CONSORCIO AMAZONAS','AV.DEL EJERCITO N° 1864 - IQUITOS','2018-06-30','2018-06-30',-2147483648,1,'F/v','0002','00037017',NULL,3229.000,0.000,0.000,3229.000,0.000,0),('00101940','CONSORCIO AMAZONAS','AV.DEL EJERCITO N° 1864 - IQUITOS','2018-06-30','2018-06-30',-2147483648,1,'F/v','0002','00037016',NULL,4728.000,0.000,0.000,4728.000,0.000,0),('00101940','CONSORCIO AMAZONAS','AV.DEL EJERCITO N° 1864 - IQUITOS','2018-06-30','2018-06-30',-2147483648,1,'F/v','0002','00037015',NULL,5722.000,0.000,0.000,5722.000,0.000,0),('00101940','CONSORCIO AMAZONAS','AV.DEL EJERCITO N° 1864 - IQUITOS','2018-06-30','2018-07-02',-2147483648,1,'F/v','0002','00037030',NULL,180.000,0.000,0.000,180.000,0.000,0),('00101940','CONSORCIO AMAZONAS','AV.DEL EJERCITO N° 1864 - IQUITOS','2018-06-30','2018-06-30',-2147483648,1,'F/v','0002','00037021',NULL,1925.000,0.000,0.000,1925.000,0.000,0),('00101940','CONSORCIO AMAZONAS','AV.DEL EJERCITO N° 1864 - IQUITOS','2018-06-30','2018-06-30',-2147483648,1,'F/v','0002','00037020',NULL,2327.000,0.000,0.000,2327.000,0.000,0);

--
-- Table structure for table `temp_credxpag`
--

CREATE TABLE `temp_credxpag` (
  `IdCliPro` varchar(8) DEFAULT NULL,
  `NomCliPro` varchar(150) DEFAULT NULL,
  `Direccion` varchar(150) DEFAULT NULL,
  `Fecha` date DEFAULT NULL,
  `FechaVenc` date DEFAULT NULL,
  `DiasCre` int(11) DEFAULT NULL,
  `IdDocFis` tinyint(4) DEFAULT NULL,
  `Abrev` varchar(5) DEFAULT NULL,
  `NSerie` varchar(4) DEFAULT NULL,
  `NDocumento` varchar(20) DEFAULT NULL,
  `NLetra` varchar(20) DEFAULT NULL,
  `Soles` double(14,3) DEFAULT '0.000',
  `Dolar` double(14,3) DEFAULT '0.000',
  `Amortizacion` double(14,3) DEFAULT '0.000',
  `Saldo_Soles` double(14,3) DEFAULT '0.000',
  `Saldo_Dolar` double(14,3) DEFAULT '0.000',
  `Moneda` smallint(6) DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `temp_credxpag`
--


--
-- Table structure for table `temp_estadistica`
--

CREATE TABLE `temp_estadistica` (
  `IdUsuario` smallint(6) NOT NULL,
  `Anno` int(11) NOT NULL,
  `Mes` int(11) NOT NULL,
  `NomMes` varchar(11) NOT NULL,
  `Monto_Soles` double(14,2) NOT NULL DEFAULT '0.00',
  `Monto_Dolar` double(14,2) DEFAULT '0.00'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `temp_estadistica`
--

INSERT INTO `temp_estadistica` VALUES (2,2018,1,'Enero',37286.46,0.00),(2,2018,2,'Febrero',23464.03,0.00),(2,2018,3,'Marzo',11334.77,0.00);

--
-- Table structure for table `temp_estcta_clte`
--

CREATE TABLE `temp_estcta_clte` (
  `IdCliPro` varchar(8) DEFAULT NULL,
  `NomCliPro` varchar(150) DEFAULT NULL,
  `Direccion` varchar(150) DEFAULT NULL,
  `RUC` varchar(11) DEFAULT NULL,
  `DNI` varchar(8) DEFAULT NULL,
  `AbrevDocFis` varchar(4) DEFAULT NULL,
  `NSerie` varchar(4) DEFAULT NULL,
  `NDocumento` varchar(20) DEFAULT NULL,
  `Fecha` date DEFAULT NULL,
  `FechaVenc` date DEFAULT NULL,
  `NDocPago` varchar(12) DEFAULT NULL,
  `NomProducto` varchar(255) DEFAULT NULL,
  `Cant_Und` double(14,3) DEFAULT '0.000',
  `Cant_Fra` double(14,3) DEFAULT '0.000',
  `DescriPrec` varchar(30) DEFAULT NULL,
  `Precio` double(10,4) DEFAULT '0.0000',
  `SubTotal` double(12,2) DEFAULT '0.00',
  `Importe_Soles` double(12,2) DEFAULT '0.00',
  `Importe_Dolar` double(12,2) DEFAULT '0.00',
  `IdFPago` tinyint(4) DEFAULT NULL,
  `NOperacion` varchar(15) DEFAULT NULL,
  `Banco` varchar(15) DEFAULT NULL,
  `Lugar` varchar(30) DEFAULT NULL,
  `DescMedio_Pago` varchar(255) DEFAULT NULL,
  `Moneda` smallint(6) DEFAULT NULL,
  `TC` double(10,3) DEFAULT '0.000'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `temp_estcta_clte`
--

INSERT INTO `temp_estcta_clte` VALUES ('00102280','CONSORCIO CONSTRUCTOR UTCUBAMBA',NULL,NULL,NULL,NULL,NULL,'SALDO ANTERIOR','2018-01-31',NULL,NULL,NULL,0.000,0.000,NULL,0.0000,0.00,10398.50,0.00,2,NULL,NULL,NULL,NULL,NULL,0.000),('00102280','CONSORCIO CONSTRUCTOR UTCUBAMBA','JR.LIBERTAD N° 1236 CHACHAPOYAS','20602322972','','F/v','0002','00036040','2018-02-28','2018-02-28',NULL,NULL,0.000,0.000,NULL,0.0000,0.00,5667.00,0.00,2,NULL,NULL,NULL,NULL,0,0.000),('00102280','CONSORCIO CONSTRUCTOR UTCUBAMBA','JR.LIBERTAD N° 1236 CHACHAPOYAS','20602322972','','F/v','0002','00036044','2018-02-28','2018-02-28',NULL,NULL,0.000,0.000,NULL,0.0000,0.00,2537.00,0.00,2,NULL,NULL,NULL,NULL,0,0.000),('00102280','CONSORCIO CONSTRUCTOR UTCUBAMBA','JR.LIBERTAD N° 1236 CHACHAPOYAS','20602322972','','F/v','0002','00036036','2018-02-28','2018-02-28',NULL,NULL,0.000,0.000,NULL,0.0000,0.00,3166.00,0.00,2,NULL,NULL,NULL,NULL,0,0.000),('00102280','CONSORCIO CONSTRUCTOR UTCUBAMBA','JR.LIBERTAD N° 1236 CHACHAPOYAS','20602322972','','F/v','0002','00036037','2018-02-28','2018-02-28',NULL,NULL,0.000,0.000,NULL,0.0000,0.00,5197.00,0.00,2,NULL,NULL,NULL,NULL,0,0.000),('00102280','CONSORCIO CONSTRUCTOR UTCUBAMBA','JR.LIBERTAD N° 1236 CHACHAPOYAS','20602322972','','F/v','0002','00036038','2018-02-28','2018-02-28',NULL,NULL,0.000,0.000,NULL,0.0000,0.00,9160.00,0.00,2,NULL,NULL,NULL,NULL,0,0.000),('00102280','CONSORCIO CONSTRUCTOR UTCUBAMBA','JR.LIBERTAD N° 1236 CHACHAPOYAS','20602322972','','F/v','0002','00036039','2018-02-28','2018-02-28',NULL,NULL,0.000,0.000,NULL,0.0000,0.00,1812.00,0.00,2,NULL,NULL,NULL,NULL,0,0.000),('00102280','CONSORCIO CONSTRUCTOR UTCUBAMBA','JR.LIBERTAD N° 1236 CHACHAPOYAS','20602322972','','F/v','0002','00036043','2018-02-28','2018-02-28',NULL,NULL,0.000,0.000,NULL,0.0000,0.00,5522.00,0.00,2,NULL,NULL,NULL,NULL,0,0.000),('00102280','CONSORCIO CONSTRUCTOR UTCUBAMBA','JR.LIBERTAD N° 1236 CHACHAPOYAS','20602322972','','F/v','0002','00036050','2018-02-28','2018-02-28',NULL,NULL,0.000,0.000,NULL,0.0000,0.00,1437.00,0.00,2,NULL,NULL,NULL,NULL,0,0.000),('00102280','CONSORCIO CONSTRUCTOR UTCUBAMBA','JR.LIBERTAD N° 1236 CHACHAPOYAS','20602322972','','F/v','0002','00036091','2018-03-06','2018-03-06',NULL,NULL,0.000,0.000,NULL,0.0000,0.00,1568.00,0.00,2,NULL,NULL,NULL,NULL,0,0.000),('00102280','CONSORCIO CONSTRUCTOR UTCUBAMBA','JR.LIBERTAD N° 1236 CHACHAPOYAS','20602322972','','F/v','0002','00036276','2018-03-28','2018-03-28',NULL,NULL,0.000,0.000,NULL,0.0000,0.00,2070.00,0.00,2,NULL,NULL,NULL,NULL,0,0.000),('00102280','CONSORCIO CONSTRUCTOR UTCUBAMBA','JR.LIBERTAD N° 1236 CHACHAPOYAS','20602322972','','F/v','0002','00036259','2018-03-31','2018-03-31',NULL,NULL,0.000,0.000,NULL,0.0000,0.00,371.25,0.00,2,NULL,NULL,NULL,NULL,0,0.000),('00102280','CONSORCIO CONSTRUCTOR UTCUBAMBA','JR.LIBERTAD N° 1236 CHACHAPOYAS','20602322972','','F/v','0002','00036267','2018-03-31','2018-03-31',NULL,NULL,0.000,0.000,NULL,0.0000,0.00,1778.00,0.00,2,NULL,NULL,NULL,NULL,0,0.000),('00102280','CONSORCIO CONSTRUCTOR UTCUBAMBA','JR.LIBERTAD N° 1236 CHACHAPOYAS','20602322972','','F/v','0002','00036280','2018-03-31','2018-03-31',NULL,NULL,0.000,0.000,NULL,0.0000,0.00,713.00,0.00,2,NULL,NULL,NULL,NULL,0,0.000),('00102280','CONSORCIO CONSTRUCTOR UTCUBAMBA','JR.LIBERTAD N° 1236 CHACHAPOYAS','20602322972','','F/v','0002','00036278','2018-03-31','2018-03-31',NULL,NULL,0.000,0.000,NULL,0.0000,0.00,2059.50,0.00,2,NULL,NULL,NULL,NULL,0,0.000),('00102280','CONSORCIO CONSTRUCTOR UTCUBAMBA','JR.LIBERTAD N° 1236 CHACHAPOYAS','20602322972','','F/v','0002','00036281','2018-03-31','2018-03-31',NULL,NULL,0.000,0.000,NULL,0.0000,0.00,45.00,0.00,2,NULL,NULL,NULL,NULL,0,0.000),('00102280','CONSORCIO CONSTRUCTOR UTCUBAMBA','JR.LIBERTAD N° 1236 CHACHAPOYAS','20602322972','','F/v','0002','00036279','2018-03-31','2018-03-31',NULL,NULL,0.000,0.000,NULL,0.0000,0.00,607.00,0.00,2,NULL,NULL,NULL,NULL,0,0.000),('00102280','CONSORCIO CONSTRUCTOR UTCUBAMBA','JR.LIBERTAD N° 1236 CHACHAPOYAS','20602322972','','F/v','0002','00036284','2018-03-31','2018-03-31',NULL,NULL,0.000,0.000,NULL,0.0000,0.00,630.00,0.00,2,NULL,NULL,NULL,NULL,0,0.000),('00102280','CONSORCIO CONSTRUCTOR UTCUBAMBA','JR.LIBERTAD N° 1236 CHACHAPOYAS','20602322972','','F/v','0002','00036266','2018-03-31','2018-03-31',NULL,NULL,0.000,0.000,NULL,0.0000,0.00,346.60,0.00,2,NULL,NULL,NULL,NULL,0,0.000),('00102280','CONSORCIO CONSTRUCTOR UTCUBAMBA','JR.LIBERTAD N° 1236 CHACHAPOYAS','20602322972','','F/v','0002','00036265','2018-03-31','2018-03-31',NULL,NULL,0.000,0.000,NULL,0.0000,0.00,1025.00,0.00,2,NULL,NULL,NULL,NULL,0,0.000),('00102280','CONSORCIO CONSTRUCTOR UTCUBAMBA','JR.LIBERTAD N° 1236 CHACHAPOYAS','20602322972','','F/v','0002','00036264','2018-03-31','2018-03-31',NULL,NULL,0.000,0.000,NULL,0.0000,0.00,877.90,0.00,2,NULL,NULL,NULL,NULL,0,0.000),('00102280','CONSORCIO CONSTRUCTOR UTCUBAMBA','JR.LIBERTAD N° 1236 CHACHAPOYAS','20602322972','','F/v','0002','00036275','2018-03-31','2018-03-31',NULL,NULL,0.000,0.000,NULL,0.0000,0.00,2817.00,0.00,2,NULL,NULL,NULL,NULL,0,0.000),('00102280','CONSORCIO CONSTRUCTOR UTCUBAMBA','JR.LIBERTAD N° 1236 CHACHAPOYAS','20602322972','','F/v','0002','00036261','2018-03-31','2018-03-31',NULL,NULL,0.000,0.000,NULL,0.0000,0.00,487.70,0.00,2,NULL,NULL,NULL,NULL,0,0.000),('00102280','CONSORCIO CONSTRUCTOR UTCUBAMBA','JR.LIBERTAD N° 1236 CHACHAPOYAS','20602322972','','F/v','0002','00036268','2018-03-31','2018-03-31',NULL,NULL,0.000,0.000,NULL,0.0000,0.00,2883.60,0.00,2,NULL,NULL,NULL,NULL,0,0.000),('00102280','CONSORCIO CONSTRUCTOR UTCUBAMBA','JR.LIBERTAD N° 1236 CHACHAPOYAS','20602322972','','F/v','0002','00036274','2018-03-31','2018-03-31',NULL,NULL,0.000,0.000,NULL,0.0000,0.00,3935.50,0.00,2,NULL,NULL,NULL,NULL,0,0.000),('00102280','CONSORCIO CONSTRUCTOR UTCUBAMBA','JR.LIBERTAD N° 1236 CHACHAPOYAS','20602322972','','F/v','0002','00036277','2018-03-31','2018-03-31',NULL,NULL,0.000,0.000,NULL,0.0000,0.00,543.00,0.00,2,NULL,NULL,NULL,NULL,0,0.000),('00102280','CONSORCIO CONSTRUCTOR UTCUBAMBA','JR.LIBERTAD N° 1236 CHACHAPOYAS','20602322972','','F/v','0002','00036437','2018-04-20','2018-04-20',NULL,NULL,0.000,0.000,NULL,0.0000,0.00,646.50,0.00,2,NULL,NULL,NULL,NULL,0,0.000),('00102280','CONSORCIO CONSTRUCTOR UTCUBAMBA','JR.LIBERTAD N° 1236 CHACHAPOYAS','20602322972','','F/v','0002','00036438','2018-04-20','2018-04-20',NULL,NULL,0.000,0.000,NULL,0.0000,0.00,544.00,0.00,2,NULL,NULL,NULL,NULL,0,0.000),('00102280','CONSORCIO CONSTRUCTOR UTCUBAMBA','JR.LIBERTAD N° 1236 CHACHAPOYAS','20602322972','','F/v','0002','00036439','2018-04-20','2018-04-20',NULL,NULL,0.000,0.000,NULL,0.0000,0.00,251.90,0.00,2,NULL,NULL,NULL,NULL,0,0.000),('00102280','CONSORCIO CONSTRUCTOR UTCUBAMBA','JR.LIBERTAD N° 1236 CHACHAPOYAS','20602322972','','F/v','0002','00036436','2018-04-20','2018-04-20',NULL,NULL,0.000,0.000,NULL,0.0000,0.00,1797.00,0.00,2,NULL,NULL,NULL,NULL,0,0.000),('00102280','CONSORCIO CONSTRUCTOR UTCUBAMBA','JR.LIBERTAD N° 1236 CHACHAPOYAS','20602322972','','F/v','0002','00036440','2018-04-20','2018-04-20',NULL,NULL,0.000,0.000,NULL,0.0000,0.00,235.75,0.00,2,NULL,NULL,NULL,NULL,0,0.000),('00102280','CONSORCIO CONSTRUCTOR UTCUBAMBA','JR.LIBERTAD N° 1236 CHACHAPOYAS','20602322972','','F/v','0002','00036549','2018-04-30','2018-04-30',NULL,NULL,0.000,0.000,NULL,0.0000,0.00,1390.00,0.00,2,NULL,NULL,NULL,NULL,0,0.000),('00102280','CONSORCIO CONSTRUCTOR UTCUBAMBA',NULL,NULL,NULL,'RI','-','000000754','2018-05-30',NULL,'RI-000000754',NULL,0.000,0.000,NULL,0.0000,0.00,-9160.00,0.00,2,NULL,NULL,NULL,NULL,0,0.000),('00102280','CONSORCIO CONSTRUCTOR UTCUBAMBA',NULL,NULL,NULL,'RI','-','000000754','2018-05-30',NULL,'RI-000000754',NULL,0.000,0.000,NULL,0.0000,0.00,-5667.00,0.00,2,NULL,NULL,NULL,NULL,0,0.000),('00102280','CONSORCIO CONSTRUCTOR UTCUBAMBA',NULL,NULL,NULL,'RI','-','000000754','2018-05-30',NULL,'RI-000000754',NULL,0.000,0.000,NULL,0.0000,0.00,-1437.00,0.00,2,NULL,NULL,NULL,NULL,0,0.000);

--
-- Table structure for table `temp_estcta_prov`
--

CREATE TABLE `temp_estcta_prov` (
  `IdCliPro` varchar(8) DEFAULT NULL,
  `NomCliPro` varchar(150) DEFAULT NULL,
  `Direccion` varchar(150) DEFAULT NULL,
  `RUC` varchar(11) DEFAULT NULL,
  `DNI` varchar(8) DEFAULT NULL,
  `AbrevDocFis` varchar(4) DEFAULT NULL,
  `NSerie` varchar(4) DEFAULT NULL,
  `NDocumento` varchar(20) DEFAULT NULL,
  `Fecha` date DEFAULT NULL,
  `FechaVenc` date DEFAULT NULL,
  `NDocPago` varchar(12) DEFAULT NULL,
  `NomProducto` varchar(255) DEFAULT NULL,
  `Cant_Und` double(14,3) DEFAULT '0.000',
  `Cant_Fra` double(14,3) DEFAULT '0.000',
  `DescriPrec` varchar(30) DEFAULT NULL,
  `Precio` double(10,4) DEFAULT '0.0000',
  `SubTotal` double(12,2) DEFAULT '0.00',
  `Importe_Soles` double(12,2) DEFAULT '0.00',
  `Importe_Dolar` double(12,2) DEFAULT '0.00',
  `IdFPago` tinyint(4) DEFAULT NULL,
  `NOperacion` varchar(15) DEFAULT NULL,
  `Banco` varchar(15) DEFAULT NULL,
  `Lugar` varchar(30) DEFAULT NULL,
  `DescMedio_Pago` varchar(255) DEFAULT NULL,
  `Moneda` smallint(6) DEFAULT NULL,
  `TC` double(10,3) DEFAULT '0.000'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `temp_estcta_prov`
--

INSERT INTO `temp_estcta_prov` VALUES (' ','',NULL,NULL,NULL,NULL,NULL,'SALDO ANTERIOR','2018-06-18',NULL,NULL,NULL,0.000,0.000,NULL,0.0000,0.00,0.00,0.00,2,NULL,NULL,NULL,NULL,NULL,0.000);

--
-- Table structure for table `temp_letraxpag`
--

CREATE TABLE `temp_letraxpag` (
  `IdCliPro` varchar(8) DEFAULT NULL,
  `NomCliPro` varchar(150) DEFAULT NULL,
  `Direccion` varchar(150) DEFAULT NULL,
  `Fecha` date DEFAULT NULL,
  `FechaVenc` date DEFAULT NULL,
  `DiasCre` int(11) DEFAULT NULL,
  `IdDocFis` tinyint(4) DEFAULT NULL,
  `Abrev` varchar(5) DEFAULT NULL,
  `NSerie` varchar(4) DEFAULT NULL,
  `NDocumento` varchar(20) DEFAULT NULL,
  `NLetra` varchar(20) DEFAULT NULL,
  `NUnico` varchar(20) DEFAULT NULL,
  `Soles` double(14,3) DEFAULT '0.000',
  `Dolar` double(14,3) DEFAULT '0.000',
  `Amortizacion` double(14,3) DEFAULT '0.000',
  `Saldo_Soles` double(14,3) DEFAULT '0.000',
  `Saldo_Dolar` double(14,3) DEFAULT '0.000',
  `Moneda` smallint(6) DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `temp_letraxpag`
--


--
-- Table structure for table `temp_stock`
--

CREATE TABLE `temp_stock` (
  `IdProducto` varchar(10) DEFAULT NULL,
  `NomProducto` varchar(255) DEFAULT NULL,
  `NomMarca` varchar(30) DEFAULT NULL,
  `Stock_Act` double(14,3) DEFAULT '0.000',
  `Stock_Disp` double(14,3) DEFAULT '0.000',
  `Abrev` varchar(4) DEFAULT NULL,
  `AbrevF` varchar(4) DEFAULT NULL,
  `Costo` double(14,4) DEFAULT '0.0000',
  `Total` double(14,3) DEFAULT '0.000',
  `Capacidad` double DEFAULT NULL,
  `Peso` double(10,3) DEFAULT '0.000',
  `IdLinea` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `temp_stock`
--

INSERT INTO `temp_stock` VALUES ('0000000001','ADAPTADOR CONVERSOR HDMI A VGA','GENERICO',0.000,0.000,'UND','UND',120.0000,0.000,1,0.000,18),('0000000002','ADAPTADOR SATRA EN T 24X14 A 39X18MM 2211082439','SATRA',13.000,13.000,'UND','UND',1.9600,0.000,1,0.000,15),('0000000004','AGENDA KP 2018 MEDIANA CLASICA','KOOPE',2.000,2.000,'UND','UND',24.7800,0.000,1,0.000,24),('0000000005','AGENDA KP 2018 MEDIANA MUJER','KOOPE',3.000,3.000,'UND','UND',21.0000,0.000,1,0.000,24),('0000000009','ANTIVIRUS ESET NOD32 VER. 2018','ESET',2.000,2.000,'UND','UND',31.2080,0.000,1,0.000,20),('0000000010','ANTIVIRUS ESET NOD32 VER. 2018 LICX3','ESET',2.000,2.000,'UND','UND',105.9412,0.000,1,0.000,20),('0000000011','ANTIVIRUS ESET NOD32 VER. 2018 LICX5','ESET',0.000,0.000,'UND','UND',156.0400,0.000,1,0.000,20),('0000000016','ARCHIVADOR AR-0014 OFICIO LOMO ANCHO NEGRO','ARTESCO',50.000,50.000,'UND','UND',3.1400,0.000,1,0.000,24),('0000000019','ARCHIVADOR AR-556 OFICIO LOMO ANCHO AZUL','ARTESCO',2.000,2.000,'UND','UND',3.0000,0.000,1,0.000,24),('0000000021','ARCHIVADOR NIKEL MEDIO OFICIO LOMO ANCHO','NIKEL',319.000,319.000,'UND','UND',3.3000,0.000,1,0.000,24),('0000000022','ARCHIVADOR NIKEL OFICIO LOMO ANCHO AMARILLO','NIKEL',34.000,34.000,'UND','UND',3.1500,0.000,1,0.000,24),('0000000023','ARCHIVADOR NIKEL OFICIO LOMO ANCHO AZUL OSCURO','NIKEL',19.000,19.000,'UND','UND',3.3000,0.000,1,0.000,24),('0000000024','ARCHIVADOR NIKEL OFICIO LOMO ANCHO CELESTE','NIKEL',37.000,37.000,'UND','UND',3.1500,0.000,1,0.000,24),('0000000025','ARCHIVADOR NIKEL OFICIO LOMO ANCHO FUCSIA','NIKEL',48.000,48.000,'UND','UND',3.1500,0.000,1,0.000,24),('0000000026','ARCHIVADOR NIKEL OFICIO LOMO ANCHO NARANJA','NIKEL',65.000,65.000,'UND','UND',3.1500,0.000,1,0.000,24),('0000000027','ARCHIVADOR NIKEL OFICIO LOMO ANCHO NEGRO','NIKEL',57.000,57.000,'UND','UND',3.0500,0.000,1,0.000,24),('0000000029','ARCHIVADOR NIKEL OFICIO LOMO ANCHO ROJO','NIKEL',59.000,59.000,'UND','UND',3.1500,0.000,1,0.000,24),('0000000030','ARCHIVADOR NIKEL OFICIO LOMO ANCHO ROSADO','NIKEL',38.000,38.000,'UND','UND',3.3000,0.000,1,0.000,24),('0000000031','ARCHIVADOR NIKEL OFICIO LOMO ANCHO TURQUEZA','NIKEL',8.000,8.000,'UND','UND',3.1500,0.000,1,0.000,24),('0000000032','ARCHIVADOR NIKEL OFICIO LOMO ANCHO VERDE LIMON','NIKEL',98.000,98.000,'UND','UND',3.1500,0.000,1,0.000,24),('0000000033','ARCHIVADOR NIKEL OFICIO LOMO ANGOSTO NEGRO','GENERICO',24.000,24.000,'UND','UND',3.2500,0.000,1,0.000,24),('0000000035','BANDEJA DE 2 PISOS MALLA METALICA C/NEGRO JA-009','GENERICO',11.000,11.000,'UND','UND',16.3400,0.000,1,0.000,25),('0000000036','BANDEJA DE 3 PISOS MALLA METALICA C/NEGRO AR-010','GENERICO',1.000,1.000,'UND','UND',20.9300,0.000,1,0.000,25),('0000000038','BATERIA HP DV2000','HP',1.000,1.000,'UND','UND',323.5672,0.000,1,0.000,22),('0000000046','BORRADOR KOOPE BLANCO USB X 24 COD:15270','KOOPE',630.000,630.000,'UND','UND',0.7200,0.000,1,0.000,25),('0000000047','BORRADOR KOOPE NEGRO X 20 COD:13457','KOOPE',35.000,35.000,'UND','UND',0.3800,0.000,1,0.000,25),('0000000048','BORRADOR KOOPE NEON MEDIANO X 80 COD:13456','KOOPE',570.000,570.000,'UND','UND',0.3800,0.000,1,0.000,25),('0000000049','CABEZAL HP 711 = C1Q10A  T120/T520','HP',1.000,1.000,'UND','UND',630.8000,0.000,1,0.000,23),('0000000050','CABEZAL LX-300+  F078010','GENERICO',1.000,1.000,'UND','UND',332.0000,0.000,1,0.000,26),('0000000051','CABLE DE RED SATRA CAT5 CJA X 305MT','SATRA',1.000,1.000,'UND','UND',961.8040,0.000,1,0.000,14),('0000000052','CABLE DE RED SATRA CAT5 X METRO','SATRA',343.000,343.000,'UND','UND',3.1540,0.000,1,0.000,14),('0000000053','CABLE DE RED SATRA CAT6 X 305MT CJA VERDE','SATRA',18.000,18.000,'UND','UND',308.4280,0.000,1,0.000,14),('0000000054','CABLE DE RED SATRA CAT6 X METRO','SATRA',956.000,956.000,'UND','UND',1.0113,0.000,1,0.000,14),('0000000056','CABLE DE SEGURIDAD TARGUS CONBINATION LOCK 0019908','TARGUS',3.000,3.000,'UND','UND',32.2040,0.000,1,0.000,18),('0000000058','CABLE MICRO USB WITH LIGTH TEROS TE-1409  P/TABLET','TEROS',13.000,13.000,'UND','UND',4.6812,0.000,1,0.000,22),('0000000060','CABLE PODER TREBOL P/CARGADOR, IMPRESORA','GENERICO',4.000,4.000,'UND','UND',11.6200,0.000,1,0.000,22),('0000000061','CABLE USB EXTENSION 1.8MTS DOBLE FILTRO TZ-100-311','GENERICO',1.000,1.000,'UND','UND',11.6200,0.000,1,0.000,22),('0000000063','CABLE USB IMPRESORA 1.8 MTS','GENERICO',5.000,5.000,'UND','UND',5.9760,0.000,1,0.000,22),('0000000064','CABLE VIDEO HDMI - HDMI 1.5MTS  DOBLE FILTRO FULL HD','GENERICO',4.000,4.000,'UND','UND',9.2960,0.000,1,0.000,22),('0000000065','CABLE VIDEO HDMI - HDMI 10MTS DOBLE FILTRO FULL HD','GENERICO',1.000,1.000,'UND','UND',117.5280,0.000,1,0.000,22),('0000000066','CABLE VIDEO HDMI - HDMI 3MTS DOBLE FILTRO FULL HD','GENERICO',3.000,3.000,'UND','UND',11.2880,0.000,1,0.000,22),('0000000067','CABLE VIDEO HDMI - HDMI 5.MTS DOBLE FILTRO FULL HD','GENERICO',2.000,2.000,'UND','UND',17.9280,0.000,1,0.000,22),('0000000068','CABLE VIDEO VGA - VGA 1.80M (MONITOR/PROYECTOR)','GENERICO',5.000,5.000,'UND','UND',6.6400,0.000,1,0.000,22),('0000000069','CABLE VIDEO VGA - VGA 3.00M (MONITOR/PROYECTOR)','GENERICO',2.000,2.000,'UND','UND',11.9520,0.000,1,0.000,22),('0000000071','CAJA ADOSABLE 2X4X1.45 BLANCA SATRA SB-S1/ SA-401002','SATRA',54.000,54.000,'UND','UND',10.7236,0.000,1,0.000,14),('0000000072','CAJA ADOSABLE 2X4X1.89 BLANCA SATRA SB-S2/ SA-401011','SATRA',102.000,102.000,'UND','UND',2.9880,0.000,1,0.000,14),('0000000074','CALCULADORA CASIO FX-82MS CIENTIFICA','CASIO',3.000,3.000,'UND','UND',28.1700,0.000,1,0.000,25),('0000000075','CALCULADORA CASIO MS-20NC COLORES (ESCRITORIO)','CASIO',10.000,10.000,'UND','UND',23.5300,0.000,1,0.000,25),('0000000076','CALCULADORA CASIO MX-8B DE ESCRITORIO','CASIO',9.000,9.000,'UND','UND',13.5900,0.000,1,0.000,25),('0000000080','CANALETA DE PISO 20G SATRA 1 CABLES','SATRA',12.000,12.000,'UND','UND',47.9740,0.000,1,0.000,15),('0000000081','CANALETA DE PISO 50G SATRA 3 CABLES  1203060050','SATRA',23.000,23.000,'UND','UND',20.3184,0.000,1,0.000,15),('0000000082','CANALETA DE PISO 70G SATRA 7 CABLES','SATRA',13.000,13.000,'UND','UND',130.0444,0.000,1,0.000,15),('0000000083','CANALETA PARED 100X60MM SATRA  1201019960','SATRA',24.000,24.000,'UND','UND',14.0436,0.000,1,0.000,15),('0000000084','CANALETA PARED 15X10MM SATRA C/ADHESIVO 1202011510','SATRA',71.000,71.000,'UND','UND',1.2948,0.000,1,0.000,15),('0000000085','CANALETA PARED 24X14MM SATRA BLANCO','SATRA',1.000,1.000,'UND','UND',6.6068,0.000,1,0.000,15),('0000000086','CANALETA PARED 24X14MM SATRA C/ADHESIVO 2202012414','SATRA',440.000,440.000,'UND','UND',1.5604,0.000,1,0.000,15),('0000000087','CANALETA PARED 39X19MM SATRA C/ADHESIVO 2202013919','SATRA',297.000,297.000,'UND','UND',2.9880,0.000,1,0.000,15),('0000000088','CANALETA PARED 59X22MM SATRA  1201015922','SATRA',52.000,52.000,'UND','UND',5.2456,0.000,1,0.000,15),('0000000089','CANALETA PARED 60X40MM SATRA  1201016040','SATRA',15.000,15.000,'UND','UND',7.1048,0.000,1,0.000,15),('0000000090','CAPUCHA SATRA PARA CONECTOR RJ45','SATRA',812.000,812.000,'UND','UND',0.3320,0.000,1,0.000,14),('0000000091','CARD READER INTERNO TEROS N1','TEROS',5.000,5.000,'UND','UND',7.6360,0.000,1,0.000,18),('0000000094','CARGADOR LAPTOP HP CONECTOR AGUJA 18.5V 3.5A','HP',2.000,2.000,'UND','UND',132.8000,0.000,1,0.000,22),('0000000095','CARGADOR LAPTOP HP CONECTOR AMARILLO 18.5V 3.5A','HP',3.000,3.000,'UND','UND',132.8000,0.000,1,0.000,22),('0000000096','CARGADOR LAPTOP HP ENVY CONECTOR CELESTE','HP',4.000,4.000,'UND','UND',132.8000,0.000,1,0.000,22),('0000000098','CARGADOR LAPTOP LENOVO CONECTOR AGUJA AMARILLA','LENOVO',2.000,2.000,'UND','UND',152.4212,0.000,1,0.000,22),('0000000099','CARGADOR LAPTOP LENOVO CONECTOR MARRON \"L\"','LENOVO',2.000,2.000,'UND','UND',153.0852,0.000,1,0.000,22),('0000000100','CARGADOR LAPTOP LENOVO CONECTOR MARRON DELGADO','LENOVO',3.000,3.000,'UND','UND',132.8000,0.000,1,0.000,22),('0000000101','CARGADOR LAPTOP LENOVO CONECTOR USB','LENOVO',3.000,3.000,'UND','UND',132.8000,0.000,1,0.000,22),('0000000102','CARGADOR LAPTOP SONY VAIO 19.5V 3.9A 76W 6.5*4.4','SONY',2.000,2.000,'UND','UND',132.8000,0.000,1,0.000,22),('0000000104','CARGADOR LAPTOP TOSHIBA ADAPTER 19V, 3.42A','TOSHIBA',4.000,4.000,'UND','UND',106.9153,0.000,1,0.000,22),('0000000106','CARGADOR LAPTOP TOSHIBA ADAPTER 19V, 4.74A','TOSHIBA',2.000,2.000,'UND','UND',132.8000,0.000,1,0.000,22),('0000000110','CARTULINA A4 OPALINA','GENERICO',180.000,180.000,'UND','UND',0.1000,0.000,1,0.000,24),('0000000111','CARTULINA COLORES CANSON','CANSON',28.000,28.000,'UND','UND',1.0000,0.000,1,0.000,24),('0000000113','CARTULINA PLASTIFICADA','GENERICO',3.000,3.000,'UND','UND',0.8000,0.000,1,0.000,24),('0000000117','CASE HALION GAMER GAMEMAX KINGLIGHT 3X15LED','HALION',1.000,1.000,'UND','UND',118.1588,0.000,1,0.000,5),('0000000119','CASE HALION GAMER SCORPION 5906 400W REAL','HALION',5.000,5.000,'UND','UND',98.4768,0.000,1,0.000,5),('0000000121','CASE HALION SLIM MICRO ATX SUPRA S607/8','HALION',6.000,6.000,'UND','UND',90.0384,0.000,1,0.000,5),('0000000124','CASE HALION SLIM MICRO ATX TC512BK 600W','HALION',1.000,1.000,'UND','UND',87.9800,0.000,1,0.000,5),('0000000126','CHINCHE WARRIOR COLOR X100','WARRIOR',25.000,25.000,'UND','UND',1.2800,0.000,1,0.000,25),('0000000127','CINTA COLGANTE P/FOTOCHECK CON GANCHO METAL  AR-1020','GENERICO',45.000,45.000,'UND','UND',0.5300,0.000,1,0.000,25),('0000000128','CINTA COLGANTE P/FOTOCHECK NACIONAL','GENERICO',569.000,569.000,'UND','UND',0.4400,0.000,1,0.000,25),('0000000130','CINTA EMBALAJE STANDARD X 90 YDS','GENERICO',27.000,27.000,'UND','UND',2.0000,0.000,1,0.000,25),('0000000131','CINTA EPSON S015329 FX-890','EPSON',1.000,1.000,'UND','UND',20.8496,0.000,1,0.000,23),('0000000133','CINTA EPSON S015631 LX-350','EPSON',6.000,6.000,'UND','UND',13.5124,0.000,1,0.000,23),('0000000134','CINTA EPSON SO15337 LQ-590','EPSON',2.000,2.000,'UND','UND',34.3620,0.000,1,0.000,23),('0000000135','CINTA EPSON TMU200/370/375 ERC-38B','EPSON',15.000,15.000,'UND','UND',6.6400,0.000,1,0.000,23),('0000000136','CINTA FILM CRISTAL X 500MT JA-111-1','GENERICO',6.000,6.000,'UND','UND',16.9400,0.000,1,0.000,25),('0000000137','CINTA PEGAFAN 1/2 X 50  CRISTAL/TRANSPARENTE','PEGAFAN',37.000,37.000,'UND','UND',0.9900,0.000,1,0.000,25),('0000000139','CLIP TWINS 33MM COLORES','TWINS',7.000,7.000,'UND','UND',0.6500,0.000,1,0.000,25),('0000000140','CONECTOR SATRA JACK RJ45 CAT. 5E','SATRA',32.000,32.000,'UND','UND',17.4964,0.000,1,0.000,14),('0000000141','CONECTOR SATRA JACK RJ45 CAT. 6E','SATRA',74.000,74.000,'UND','UND',7.6692,0.000,1,0.000,14),('0000000142','CONECTOR SATRA RJ45 CAT5E','SATRA',1981.000,1981.000,'UND','UND',0.3320,0.000,1,0.000,14),('0000000143','CONECTOR SATRA RJ45 CAT6E','SATRA',2046.000,2046.000,'UND','UND',0.5976,0.000,1,0.000,14),('0000000144','CONTOMETRO AUTOCOPIATIVO 76X13X2 30MTS BCO-AMAR','GENERICO',5.000,5.000,'UND','UND',0.5890,0.000,1,0.000,24),('0000000145','CONTOMETRO AUTOCOPIATIVO 76X13X3 21MTS BCO/RDO/AMAR','GENERICO',26.000,26.000,'UND','UND',2.3500,0.000,1,0.000,24),('0000000146','CONTOMETRO TERMICO 55GR 0.80X0.80X13','GENERICO',90.000,90.000,'UND','UND',0.9576,0.000,1,0.000,24),('0000000147','COOLER P/LAPTOP AVATEC CCL2031','AVATEC',1.000,1.000,'UND','UND',32.3700,0.000,1,0.000,33),('0000000148','COOLER P/LAPTOP AVATEC CCL2033','AVATEC',3.000,3.000,'UND','UND',33.7976,0.000,1,0.000,33),('0000000149','COOLER P/LAPTOP AVATEC CCL2053B','AVATEC',2.000,2.000,'UND','UND',26.7260,0.000,1,0.000,33),('0000000150','COOLER P/LAPTOP AVATEC CCL2058B','AVATEC',2.000,2.000,'UND','UND',28.1204,0.000,1,0.000,33),('0000000151','COOLER P/LAPTOP AVATEC CCL2060B','AVATEC',2.000,2.000,'UND','UND',33.7312,0.000,1,0.000,33),('0000000154','COOLER P/LAPTOP CYBERCOOL HA-09','CYBERCOOL',2.000,2.000,'UND','UND',23.2400,0.000,1,0.000,33),('0000000156','CORRECTOR FABER CASTELL T/LAPICERO ERGONOMICO','FABER CASTELL',29.000,29.000,'UND','UND',1.4333,0.000,1,0.000,25),('0000000158','CUADERNO CARGOS X 200 GYR','GENERICO',5.000,5.000,'UND','UND',4.8200,0.000,1,0.000,24),('0000000160','CUADERNO ESCOLAR CUADRICULADO','GENERICO',20.000,20.000,'UND','UND',1.2000,0.000,1,0.000,24),('0000000161','CUADERNO OBRAS AUTOCOPIATIVO X 100','GENERICO',13.000,13.000,'UND','UND',37.2500,0.000,1,0.000,24),('0000000162','CUADERNO OBRAS AUTOCOPIATIVO X 50','GENERICO',8.000,8.000,'UND','UND',20.0700,0.000,1,0.000,24),('0000000163','CUCHILLA P/BIXOLON SRP270D','GENERICO',2.000,2.000,'UND','UND',116.2000,0.000,1,0.000,26),('0000000164','CURVA PLANA 100X60MM SATRA  1201019960','SATRA',10.000,10.000,'UND','UND',7.6028,0.000,1,0.000,15),('0000000165','CURVA PLANA 15X10MM SATRA 2211011510','SATRA',50.000,50.000,'UND','UND',0.3320,0.000,1,0.000,15),('0000000166','CURVA PLANA 24X14MM SATRA 2211012414','SATRA',82.000,82.000,'UND','UND',0.3320,0.000,1,0.000,15),('0000000167','CURVA PLANA 39X18MM SATRA 2211013918','SATRA',86.000,86.000,'UND','UND',0.6640,0.000,1,0.000,15),('0000000168','CURVA PLANA 60X22MM SATRA 2211016022','SATRA',26.000,26.000,'UND','UND',4.4820,0.000,1,0.000,15),('0000000169','CURVA PLANA 60X40MM SATRA  1211016040','SATRA',10.000,10.000,'UND','UND',2.3572,0.000,1,0.000,15),('0000000171','CUTTER ACRILICA 18MM MANGO PLASTICO 89','GENERICO',82.000,82.000,'UND','UND',1.2000,0.000,1,0.000,25),('0000000175','DISCO CD-R SONY 700MB (CONOX50)','SONY',2.000,2.000,'UND','UND',27.5000,0.000,1,0.000,25),('0000000176','DISCO DURO EXTERNO 4 TB SEAGATE','SEAGATE',1.000,1.000,'UND','UND',163.0120,0.000,1,0.000,6),('0000000177','DISCO DURO EXTERNO TOSHIBA 1TB CANVIO BASIC USB 3.0','TOSHIBA',2.000,2.000,'UND','UND',156.0400,0.000,1,0.000,6),('0000000178','DISCO DURO EXTERNO TOSHIBA 2TB CANVIO BASIC USB 3.0','TOSHIBA',2.000,2.000,'UND','UND',209.1600,0.000,1,0.000,6),('0000000180','DISCO DURO INTERNO SEAGATE 1TB 7200RPM BARRACUDA','SEAGATE',4.000,4.000,'UND','UND',132.8000,0.000,1,0.000,6),('0000000181','DISCO DURO INTERNO SEAGATE 2TB BARRACUDA 64MB SATA','SEAGATE',2.000,2.000,'UND','UND',182.6000,0.000,1,0.000,6),('0000000182','DISCO DURO INTERNO SEAGATE 500GB 7200RPM 16MB','SEAGATE',1.000,1.000,'UND','UND',132.8000,0.000,1,0.000,6),('0000000183','DISCO DURO INTERNO WD 1TB PURPLE 64MB SATA','WESTER DIGITAL',3.000,3.000,'UND','UND',148.0720,0.000,1,0.000,6),('0000000184','DISCO DURO INTERNO WD 2TB PURPLE 64MB SATA','WESTER DIGITAL',3.000,3.000,'UND','UND',214.0404,0.000,1,0.000,6),('0000000185','DISCO DURO INTERNO WD 3TB PURPLE 64MB SATA','WESTER DIGITAL',2.000,2.000,'UND','UND',288.1096,0.000,1,0.000,6),('0000000186','DISCO DURO INTERNO WD 4TB PURPLE SATA','WESTER DIGITAL',1.000,1.000,'UND','UND',377.6168,0.000,1,0.000,6),('0000000188','DISCO DURO LAPTOP TOSHIBA 1TB','WESTER DIGITAL',3.000,3.000,'UND','UND',142.7600,0.000,1,0.000,6),('0000000189','DISCO DURO LAPTOP TOSHIBA 500GB L200 2.5-INCH','TOSHIBA',1.000,1.000,'UND','UND',116.2000,0.000,1,0.000,6),('0000000191','DISCO DURO SOLIDO SSD KIGSTON DIGITAL 2.5\" 120GB UV400 C2C','KINGSTON',2.000,2.000,'UND','UND',109.7592,0.000,1,0.000,6),('0000000192','DISCO DVD-R PRINCO 4.7GB','PRINCO',150.000,150.000,'UND','UND',0.6988,0.000,1,0.000,25),('0000000193','ECRAM ID 178X178CM BLANCO MATE','GENERICO',1.000,1.000,'UND','UND',394.6152,0.000,1,0.000,11),('0000000195','ENGRANAJE 12.5 SPUR GEAR LX-350 PEQ. 1574523','GENERICO',2.000,2.000,'UND','UND',6.6400,0.000,1,0.000,26),('0000000196','ENGRANAJE COMBINATION GEAR,8.5,31.5 LX-350 1574524','GENERICO',2.000,2.000,'UND','UND',26.1616,0.000,1,0.000,26),('0000000197','ENGRANAJE DE REBOBINADOR P/BIXOLON SRP270D','GENERICO',5.000,5.000,'UND','UND',26.5600,0.000,1,0.000,26),('0000000199','ENGRAPADOR KOOPE NEON 2202 TIRA CORTA','KOOPE',3.000,3.000,'UND','UND',5.5500,0.000,1,0.000,25),('0000000200','ENGRAPADOR KOOPE NEON 2302 TIRA LARGA','KOOPE',5.000,5.000,'UND','UND',6.8300,0.000,1,0.000,25),('0000000201','ESPIRALADORA EP-K ESPIRAMAQ/ESPIRAMAK','ESPIRAMAQ',1.000,1.000,'UND','UND',1603.5600,0.000,1,0.000,18),('0000000202','ESQUINERO 15X10MM SATRA 2211031510','SATRA',60.000,60.000,'UND','UND',0.3320,0.000,1,0.000,15),('0000000203','ESQUINERO 24X14MM SATRA  1211032414','SATRA',30.000,30.000,'UND','UND',0.3320,0.000,1,0.000,15),('0000000204','ESQUINERO 39X18MM SATRA 2211033918','SATRA',53.000,53.000,'UND','UND',0.6640,0.000,1,0.000,15),('0000000205','ESQUINERO 60X22MM SATRA','SATRA',30.000,30.000,'UND','UND',4.6812,0.000,1,0.000,15),('0000000206','ESQUINERO 60X40MM SATRA  1211036040','SATRA',6.000,6.000,'UND','UND',2.3572,0.000,1,0.000,15),('0000000207','ESTABILIZADOR CDP R2C-AVR1008I 1000VA/720W 8 SALIDAS','CDP',17.000,17.000,'UND','UND',32.5360,0.000,1,0.000,7),('0000000208','ESTABILIZADOR CDP R2CU-AVR1008I 1000VA 8 SALIDAS 4 USB','CDP',9.000,9.000,'UND','UND',45.1520,0.000,1,0.000,7),('0000000209','ESTABILIZADOR CDP R-AVR1808I PRO 1800VA/1000W 8 SALIDAS 4 USB','CDP',1.000,1.000,'UND','UND',67.7280,0.000,1,0.000,7),('0000000210','ESTABILIZADOR CDP RU-AVR604I 600VA/720W 4 SALIDAS 4 USB','CDP',12.000,12.000,'UND','UND',35.8560,0.000,1,0.000,7),('0000000211','ESTILOGRAFO 0.2','GENERICO',1.000,1.000,'UND','UND',4.0000,0.000,1,0.000,25),('0000000212','ETIQUETA PEGAFAN 23.5X76X100 FILE BCO/COLOR NEON','PEGAFAN',16.000,16.000,'UND','UND',1.6900,0.000,1,0.000,24),('0000000213','FASTENER  ARTESCO ECONOMICO X 50 PZAS','ARTESCO',1.000,1.000,'UND','UND',2.2000,0.000,1,0.000,25),('0000000214','FASTENER DELFIN X 50 PZAS  AR-00400','DELFIN',50.000,50.000,'UND','UND',2.0000,0.000,1,0.000,25),('0000000217','FOLDER MANILA A4 - GALLOCOPY','GALLOCOPY',0.180,0.180,'UND','UND',16.7000,0.000,1,0.000,24),('0000000218','FOLDER MANILA A4 - GRAPHOS','GRAPHOS',0.040,0.040,'UND','UND',16.2000,0.000,1,0.000,24),('0000000219','FUENTE PODER AVATEC BOX F600W','AVATEC',11.000,11.000,'UND','UND',29.0500,0.000,1,0.000,7),('0000000220','FUENTE PODER EVGA 550W REAL .N1 ATX-80PL 12V 2.3','EVGA',2.000,2.000,'UND','UND',142.7600,0.000,1,0.000,7),('0000000223','FUENTE PODER HALION MICRO ATX 600W CAJA BOBLE BOBINA','HALION',9.000,9.000,'UND','UND',41.5000,0.000,1,0.000,7),('0000000224','FUENTE PODER TEROS ATX 350W REAL','HALION',2.000,2.000,'UND','UND',35.8560,0.000,1,0.000,7),('0000000225','FUENTE PODER TEROS ATX 450W REAL','TEROS',2.000,2.000,'UND','UND',64.7400,0.000,1,0.000,7),('0000000229','FUNDA PARA LAPTOP 14\" SKILL SLEEVE ORIGAMI (PN LS329-14) 0019384','SKILL',3.000,3.000,'UND','UND',12.6160,0.000,1,0.000,28),('0000000230','FUNDA PARA LAPTOP 14\" SKILL SLEEVE SQUARES (LS3310-14)','SKILL',3.000,3.000,'UND','UND',11.6200,0.000,1,0.000,28),('0000000231','FUNDA PARA LAPTOP 14\"/15\" GENERICA','GENERICO',2.000,2.000,'UND','UND',46.4800,0.000,1,0.000,28),('0000000232','FUNDA PARA LAPTOP 15.4\" KOLKE KAF-154 ROSA A CUADRITOS','KOLKE',2.000,2.000,'UND','UND',21.9120,0.000,1,0.000,28),('0000000234','FUNDA PARA LAPTOP 15.6\" TARGUS TRAX SLEEVE','TARGUS',2.000,2.000,'UND','UND',15.2720,0.000,1,0.000,28),('0000000236','FUNDA PORTAPAPEL TOP A-4','GENERICO',85.000,85.000,'UND','UND',0.2800,0.000,1,0.000,25),('0000000237','GABINETE DE PARED 6 RU 33X53X53CM INCLUYE TUERCA','SATRA',1.000,1.000,'UND','UND',561.0800,0.000,1,0.000,17),('0000000238','GABINETE DE PARED 8 RU 42X53X53CM. INCLUYE TUERCA','SATRA',1.000,1.000,'UND','UND',630.8000,0.000,1,0.000,17),('0000000240','GOMA ARTESCO STICKY C/DOSIF. 3 ONZAS','ARTESCO',1.000,1.000,'UND','UND',1.2000,0.000,1,0.000,25),('0000000243','GOMA EN BARRA VINIFAN 40 GR','VINIFAN',2.000,2.000,'UND','UND',2.6000,0.000,1,0.000,25),('0000000245','GOMA VIKINGOC/APLICADOR X 250GR','VIKINGO',2.000,2.000,'UND','UND',2.1000,0.000,1,0.000,25),('0000000246','GORRO BLUETOOTH IBLUE URBAN FM LANA ESCUDO','IBLUE',1.000,1.000,'UND','UND',29.2160,0.000,1,0.000,28),('0000000248','GRAPA KP 26/6 X 5000','KOOPE',12.000,12.000,'UND','UND',1.5300,0.000,1,0.000,25),('0000000249','GRASA PARA IMPRESORAS G26/G63 40G H1080614 1218235','GENERICO',1.000,1.000,'UND','UND',41.8320,0.000,1,0.000,26),('0000000250','GUILLOTINA FOSKA A4 H801C 30X25CM','FOSKA',1.000,1.000,'UND','UND',74.5200,0.000,1,0.000,25),('0000000251','GUILLOTINA METALICA PESADA A3 AR-039-3','GENERICO',1.000,1.000,'UND','UND',96.0800,0.000,1,0.000,25),('0000000253','HUB USB IBLUE 4 PORT 2.0 RED (PN 52054)','IBLUE',3.000,3.000,'UND','UND',9.2960,0.000,1,0.000,18),('0000000254','HUB USB TARGUS 4 PORT 3.0 BUS POWER ACH124US 0024118','TARGUS',2.000,2.000,'UND','UND',56.4400,0.000,1,0.000,18),('0000000256','IMPRESORA LASER HP PRO M102W 23 PPM 600X600 DPI, WIFI/USB2.0 MONOCROMATICA','HP',2.000,2.000,'UND','UND',326.9868,0.000,1,0.000,19),('0000000260','IMPRESORA MULTIF. BROTHER DCP-T500W WIFI','BROTHER',1.000,1.000,'UND','UND',511.0476,0.000,1,0.000,19),('0000000261','IMPRESORA MULTIF. BROTHER DCP-T510W WIFI','BROTHER',16.000,16.000,'UND','UND',515.7952,0.000,1,0.000,19),('0000000262','IMPRESORA MULTIF. BROTHER DCP-T710W WIFI','BROTHER',4.000,4.000,'UND','UND',625.2224,0.000,1,0.000,19),('0000000263','IMPRESORA MULTIF. BROTHER MFC-T910DW WIFI','BROTHER',1.000,1.000,'UND','UND',940.1908,0.000,1,0.000,19),('0000000264','IMPRESORA MULTIF. CANON G2100 SISTEMA  CONTINUO','CANON',1.000,1.000,'UND','UND',398.2008,0.000,1,0.000,19),('0000000265','IMPRESORA MULTIF. EPSON L380 SISTEMA  CONTINUO','EPSON',5.000,5.000,'UND','UND',464.8000,0.000,1,0.000,19),('0000000266','IMPRESORA MULTIF. EPSON L395 SISTEMA CONTINUO','EPSON',9.000,9.000,'UND','UND',547.8000,0.000,1,0.000,19),('0000000267','IMPRESORA MULTIF. EPSON L575 SISTEMA  CONTINUO','EPSON',3.000,3.000,'UND','UND',763.6000,0.000,1,0.000,19),('0000000269','INSTALERS KIT SATRA (HERRAMIENTAS PARA REDES LAN) 2502020000','SATRA',2.000,2.000,'UND','UND',249.0000,0.000,1,0.000,16),('0000000271','KIT DE LIMPIEZA IBLUE P/PANTALLA LCD CS-1003 0023251','IBLUE',10.000,10.000,'UND','UND',4.9800,0.000,1,0.000,32),('0000000274','LAMINA P/ENMICADO 175MC X 100  (A4) AR-027','GENERICO',2.500,2.500,'UND','UND',56.0000,0.000,1,0.000,25),('0000000276','LAMINA P/ENMICADO 67 X 98MM 200MC (FOTOCHECK)','GENERICO',1.000,1.000,'UND','UND',8.4100,0.000,1,0.000,25),('0000000277','LAMINA SKIN 15-17\" PARA LAPTOP','GENERICO',40.000,40.000,'UND','UND',6.6400,0.000,1,0.000,22),('0000000279','LAPICERO FABER CASTELL 031','FABER CASTELL',11.000,11.000,'UND','UND',0.3000,0.000,1,0.000,25),('0000000280','LAPICERO FABER CASTELL 034','FABER CASTELL',122.000,122.000,'UND','UND',0.2700,0.000,1,0.000,25),('0000000281','LAPICERO FABER CASTELL 035F','FABER CASTELL',10.000,10.000,'UND','UND',0.3300,0.000,1,0.000,25),('0000000282','LAPICERO KOOPE U-KNOCK DON-GA 0.5 RET. T/LIQUIDA','KOOPE',426.000,426.000,'UND','UND',1.4000,0.000,1,0.000,25),('0000000283','LAPICERO KP RETRACTIL ANY BALL 0.7MM','KOOPE',561.000,561.000,'UND','UND',0.9300,0.000,1,0.000,25),('0000000284','LAPICERO KP TINTA SECA PERFECTO AZ/NG/RJ','KOOPE',406.000,406.000,'UND','UND',0.2600,0.000,1,0.000,25),('0000000285','LAPICERO KP TINTA SECA TRION COLORES','KOOPE',1612.000,1612.000,'UND','UND',0.4000,0.000,1,0.000,25),('0000000286','LAPICERO PILOT 0.7 ORTOPEDICO','PILOT',26.000,26.000,'UND','UND',1.9167,0.000,1,0.000,25),('0000000287','LAPICERO PILOT BPS SIMPLE','PILOT',74.000,74.000,'UND','UND',1.5667,0.000,1,0.000,25),('0000000289','LAPIZ KOOPE HEXAGONAL 2B CON BORRADOR BLANCO','KOOPE',215.000,215.000,'UND','UND',0.2700,0.000,1,0.000,25),('0000000290','LAPIZ KOOPE TRIANGULAR CHEQUEO ROJO CON BORRADOR','KOOPE',85.000,85.000,'UND','UND',0.2800,0.000,1,0.000,25),('0000000291','LAPTOP ASUS CI3-7100U 2.4GHZ 4GB/1TB/15.6\" X540UA-GO311 MC: 260003','ASUS',1.000,1.000,'UND','UND',1181.9200,0.000,1,0.000,21),('0000000294','LAPTOP ASUS CI5-7200U 2.5GHZ 4GB/1TB/15.6\" X507UB-BR161 MC:257248','ASUS',1.000,1.000,'UND','UND',1756.2800,0.000,1,0.000,21),('0000000295','LAPTOP HP CI3-6006U 2.0GHZ/4GB/1TB/DVD/14\" 1LQ03LA 240 G6','HP',1.000,1.000,'UND','UND',1162.0000,0.000,1,0.000,21),('0000000296','LAPTOP HP CI3-7020U 2.3GHZ 4GB/1TB/15.6\" DA0008LA','HP',1.000,1.000,'UND','UND',1138.7600,0.000,1,0.000,21),('0000000297','LAPTOP HP CI5-7200U 2.5GHZ 4GB/1TB/15.6\" 250 G6 MC:230555','HP',1.000,1.000,'UND','UND',1371.1600,0.000,1,0.000,21),('0000000303','LIBRO ACTAS 100FOLIOS X 60GR. RAYADO 100H','GENERICO',26.000,26.000,'UND','UND',3.7000,0.000,1,0.000,25),('0000000304','LIBRO ACTAS 200FOLIOS X 60 GR. RAYADO 100H','GENERICO',1.000,1.000,'UND','UND',4.5000,0.000,1,0.000,24),('0000000307','LIMPIA LCD - LIMPIA TODO 0000000142','GENERICO',3.000,3.000,'UND','UND',6.6400,0.000,1,0.000,32),('0000000308','MALETIN PARA PROYECTOR','GENERICO',3.000,3.000,'UND','UND',33.3660,0.000,1,0.000,28),('0000000311','MASKINTAPE 1 X 40 PEGAFAN','MASKINTAPE',7.000,7.000,'UND','UND',2.9500,0.000,1,0.000,25),('0000000313','MB. ASUS INTEL B360M-A S/V/R HDMI/VGA/DVI/PCI-E/1151 DDR4 8VA GEN','ASUS',1.000,1.000,'UND','UND',240.4344,0.000,1,0.000,2),('0000000315','MB. ASUS INTEL H110M-P S/V/R LGA 1151 DDR4 7/6TA GEN','ASUS',1.000,1.000,'UND','UND',150.8276,0.000,1,0.000,2),('0000000316','MB. ASUS INTEL H310M S/V/R HDMI/VGA/PCI LGA 1151 DDR4 8VA GEN','ASUS',1.000,1.000,'UND','UND',193.2240,0.000,1,0.000,2),('0000000322','MEMORIA DIMM 4GB DDR4 B2133GHZ ADATA','ADATA',1.000,1.000,'UND','UND',338.6732,0.000,1,0.000,3),('0000000324','MEMORIA DIMM 4GB DDR4 B2400 PC 19200 OEM','OEM',1.000,1.000,'UND','UND',131.4720,0.000,1,0.000,3),('0000000325','MEMORIA DIMM 4GB DDR4 B2400 PC19200 ADATA C/DISIPADOR','ADATA',4.000,4.000,'UND','UND',136.1200,0.000,1,0.000,3),('0000000326','MEMORIA DIMM 8GB DDR4 B2400 PC19200 ADATA C/DISIPADOR','ADATA',2.000,2.000,'UND','UND',235.7200,0.000,1,0.000,3),('0000000329','MEMORIA MICRO SD 08GB KINGSTON CLASE 4 C/ADAPTADOR','KINGSTON',11.000,11.000,'UND','UND',11.9520,0.000,1,0.000,3),('0000000330','MEMORIA MICRO SD 16GB KINGSTON CLASE 4 C/ADAPTADOR','KINGSTON',9.000,9.000,'UND','UND',13.0144,0.000,1,0.000,3),('0000000331','MEMORIA MICRO SD 32GB KINGSTON CLASE 4 C/ADAPTADOR','KINGSTON',6.000,6.000,'UND','UND',38.3460,0.000,1,0.000,3),('0000000332','MEMORIA SODIMM 4GB DDR4/B2133 ADATA P/LAPTOP','ADATA',1.000,1.000,'UND','UND',126.7576,0.000,1,0.000,3),('0000000333','MEMORIA SODIMM 8GB DDR4/B2400 CRUCIAL P/LAPTOP','CRUCIAL',2.000,2.000,'UND','UND',244.5844,0.000,1,0.000,3),('0000000334','MEMORIA USB 16GB HP V152W VER 2.0','HP',2.000,2.000,'UND','UND',20.5840,0.000,1,0.000,3),('0000000335','MEMORIA USB 16GB HP V250W VER 2.0','HP',1.000,1.000,'UND','UND',28.5520,0.000,1,0.000,3),('0000000336','MEMORIA USB 16GB HP V257W VER 2.0','HP',2.000,2.000,'UND','UND',21.2480,0.000,1,0.000,3),('0000000337','MEMORIA USB 16GB HP V285W VER 2.0','HP',2.000,2.000,'UND','UND',28.5520,0.000,1,0.000,3),('0000000338','MEMORIA USB 16GB HP V295W VER 2.0','HP',1.000,1.000,'UND','UND',23.2400,0.000,1,0.000,3),('0000000339','MEMORIA USB 16GB HP X755W VER 3.0','HP',2.000,2.000,'UND','UND',23.2400,0.000,1,0.000,3),('0000000340','MEMORIA USB 16GB KINGSTON DT101G2 COLOR 2.0','KINGSTON',24.000,24.000,'UND','UND',12.6492,0.000,1,0.000,3),('0000000342','MEMORIA USB 16GB KINGSTON DTSE9H VER 2.0','KINGSTON',8.000,8.000,'UND','UND',13.7780,0.000,1,0.000,3),('0000000343','MEMORIA USB 16GB SANDISK CRUZER METAL CZ71','SANDISK',11.000,11.000,'UND','UND',13.9772,0.000,1,0.000,3),('0000000344','MEMORIA USB 32GB SANDISK CRUZER METAL CZ71','SANDISK',5.000,5.000,'UND','UND',28.4856,0.000,1,0.000,3),('0000000345','MEMORIA USB 8GB KINGSTON DT50 VER 3.0','KINGSTON',10.000,10.000,'UND','UND',13.9440,0.000,1,0.000,3),('0000000346','MEMORIA USB 8GB KINGSTON DTIG4 VER 3.0','KINGSTON',12.000,12.000,'UND','UND',13.9440,0.000,1,0.000,3),('0000000348','MEMORIA USB 8GB SANDISK CRUZER METAL CDCZ71-008G-B35','SANDISK',12.000,12.000,'UND','UND',13.2800,0.000,1,0.000,3),('0000000350','MICROFONO AURICULAR GENIUS HS-200C','GENIUS',2.000,2.000,'UND','UND',12.6160,0.000,1,0.000,11),('0000000351','MICROFONO AURICULAR GENIUS HS-M200C','GENIUS',1.000,1.000,'UND','UND',9.6280,0.000,1,0.000,11),('0000000352','MICROFONO AURICULAR HALION T-3','HALION',4.000,4.000,'UND','UND',14.6080,0.000,1,0.000,11),('0000000353','MICROFONO AURICULAR HALION T-30','HALION',11.000,11.000,'UND','UND',12.3836,0.000,1,0.000,11),('0000000355','MICROFONO AURICULAR TEROS TE-S82','TEROS',1.000,1.000,'UND','UND',11.6200,0.000,1,0.000,11),('0000000356','MOCHILA HP P/LAPTOP','HP',1.000,1.000,'UND','UND',0.0000,0.000,1,0.000,28),('0000000357','MOCHILA SKILL BACKPACK 15.6\"  (PN EB9019) 0023247','SKILL',2.000,2.000,'UND','UND',28.2200,0.000,1,0.000,28),('0000000358','MOCHILA SKILL BACKPACK 15.6\" (PN EB9099) 0021422','SKILL',1.000,1.000,'UND','UND',28.2200,0.000,1,0.000,28),('0000000359','MOCHILA TARGUS GROOVE 17\" (CVR617) 0020612','TARGUS',1.000,1.000,'UND','UND',84.6600,0.000,1,0.000,28),('0000000360','MOCHILA TARGUS LEGEND IQ 15.6\" BLACK (TSB705US) 0014976','TARGUS',1.000,1.000,'UND','UND',106.2400,0.000,1,0.000,28),('0000000361','MOCHILA TARGUS SPORT 15.6\"  (TSB89102US) 0023073','TARGUS',1.000,1.000,'UND','UND',49.8000,0.000,1,0.000,28),('0000000362','MOCHILA TARGUS SPORT 15.6\"  (TSB89103DI) 0023074','TARGUS',1.000,1.000,'UND','UND',49.8000,0.000,1,0.000,28),('0000000364','MOCHILA TARGUS SPORT 15.6\" KIT L/E/M 0024467-0024466','TARGUS',2.000,2.000,'UND','UND',70.3508,0.000,1,0.000,28),('0000000365','MOCHILA TARGUS STRATA PRO 15.6\" CAMO HEXA (TSB93601DI) 0024455','TARGUS',1.000,1.000,'UND','UND',66.6656,0.000,1,0.000,28),('0000000366','MOCHILA TARGUS STRATA PRO 15.6\" GREY (TSB93604GL) 0024557','TARGUS',1.000,1.000,'UND','UND',84.6932,0.000,1,0.000,28),('0000000367','MOCHILA TARGUS STRATA PRO 15.6\" MANDALA (TSB93602DI) 0024456','TARGUS',1.000,1.000,'UND','UND',66.6656,0.000,1,0.000,28),('0000000368','MOCHILA TARGUS STRATA PRO 15.6\" TRIANGULOS (TSB93605DI) 0024457','TARGUS',1.000,1.000,'UND','UND',66.6656,0.000,1,0.000,28),('0000000373','MONITOR AOC LED 19.5\" E2070SWHN HDMI/VGA','AOC',2.000,2.000,'UND','UND',238.7080,0.000,1,0.000,13),('0000000374','MONITOR AOC LED 21.5\" E2270SWHN FULL HD/HDMI/VGA/AUDIO','AOC',2.000,2.000,'UND','UND',285.1880,0.000,1,0.000,13),('0000000375','MONITOR HP LED 18.5\"  V194','HP',1.000,1.000,'UND','UND',255.2416,0.000,1,0.000,13),('0000000378','MONITOR LG LED 21.5\" 22M38H','LG',1.000,1.000,'UND','UND',290.8320,0.000,1,0.000,13),('0000000379','MONITOR LG LED 21.5\" 22MP58VQ','LG',3.000,3.000,'UND','UND',339.3040,0.000,1,0.000,13),('0000000381','MONOPOD SELFIE SKILL BLACK P/SMARTPHONE (PN ST-M20)','SKILL',1.000,1.000,'UND','UND',12.6160,0.000,1,0.000,18),('0000000382','MONOPOD SELFIE SKILL BLUETOOTH (PN M-04)','SKILL',2.000,2.000,'UND','UND',25.8960,0.000,1,0.000,18),('0000000383','MONOPOD SELFIE SKILL CON CABLE 3.5MM P/SMARTPHONE (PN M-06)','SKILL',5.000,5.000,'UND','UND',8.6320,0.000,1,0.000,18),('0000000384','MOTTA ARTESCO P/PIZARRA','ARTESCO',11.000,11.000,'UND','UND',1.8000,0.000,1,0.000,25),('0000000385','MOUSE + AUDIFONO GENIUS HS-M320 MH-8100 WIRELESS','GENIUS',2.000,2.000,'UND','UND',45.8160,0.000,1,0.000,10),('0000000386','MOUSE + PAD MOUSE + PARLANTE KMPP - 100','GENIUS',1.000,1.000,'UND','UND',98.0728,0.000,1,0.000,10),('0000000387','MOUSE DATAONE USB DAT-316 CAJA','DATAONE',3.000,3.000,'UND','UND',7.4700,0.000,1,0.000,10),('0000000388','MOUSE GENIUS USB MICRO TRAVELER 9000R WIRELESS','GENIUS',3.000,3.000,'UND','UND',47.1440,0.000,1,0.000,10),('0000000390','MOUSE GENIUS USB MICRO TRAVELER V2 RETRACTIL','GENIUS',21.000,21.000,'UND','UND',17.2640,0.000,1,0.000,10),('0000000391','MOUSE GENIUS USB NETSCROLL DX-110 NEGRO','GENIUS',12.000,12.000,'UND','UND',9.7940,0.000,1,0.000,10),('0000000392','MOUSE GENIUS USB NX-7000 WIRELESS','GENIUS',6.000,6.000,'UND','UND',20.9160,0.000,1,0.000,10),('0000000393','MOUSE GENIUS USB NX-7010 WIRELESS','GENIUS',4.000,4.000,'UND','UND',22.9080,0.000,1,0.000,10),('0000000394','MOUSE GENIUS USB NX-7015 WIRELESS','GENIUS',5.000,5.000,'UND','UND',22.9080,0.000,1,0.000,10),('0000000395','MOUSE GENIUS X-G200 GAMING USB BACKLIT','GENIUS',2.000,2.000,'UND','UND',16.6000,0.000,1,0.000,10),('0000000396','MOUSE HALION USB HA-2138 APACHE WIRELESS','HALION',1.000,1.000,'UND','UND',26.5600,0.000,1,0.000,10),('0000000398','MOUSE HALION USB HA-M318 LOGIC','HALION',1.000,1.000,'UND','UND',11.0556,0.000,1,0.000,10),('0000000399','MOUSE HALION USB HA-M319 BLAZER','HALION',4.000,4.000,'UND','UND',10.4580,0.000,1,0.000,10),('0000000402','MOUSE HALION USB HA-M358 ANIMALITOS','HALION',2.000,2.000,'UND','UND',39.6408,0.000,1,0.000,10),('0000000404','MOUSE HALION USB M1858 HERMES MINI RETRACTIL','HALION',4.000,4.000,'UND','UND',9.8471,0.000,1,0.000,10),('0000000405','MOUSE LOGITECH USB M170 BLUE','LOGITECH',2.000,2.000,'UND','UND',11.6200,0.000,1,0.000,10),('0000000406','MOUSE LOGITECH USB M90','LOGITECH',21.000,21.000,'UND','UND',11.6200,0.000,1,0.000,10),('0000000407','MULTIGRABADOR EXTERNO INTENSE DEVICES ID-ECD819-SU3','GENERICO',3.000,3.000,'UND','UND',55.7760,0.000,1,0.000,29),('0000000409','MULTIGRABADOR INTERNO LG DVD-RW 24X, SATA GH24NSD1','LG',9.000,9.000,'UND','UND',34.8600,0.000,1,0.000,29),('0000000411','NOTA ADHESIVA 3X3 21133/64/66/67 21209/21210','GENERICO',30.000,30.000,'UND','UND',1.8000,0.000,1,0.000,24),('0000000412','NOTA ADHESIVA 3X3X100H 21551','GENERICO',5.000,5.000,'UND','UND',1.3100,0.000,1,0.000,24),('0000000413','NOTA ADHESIVA BANDERITAS X5 COLORES  AR-05D PET','GENERICO',7.000,7.000,'UND','UND',2.4000,0.000,1,0.000,24),('0000000414','NOTA ADHESIVA DIFERENTES FIGURAS 100 H X 5 COLORES AR-503','GENERICO',21.000,21.000,'UND','UND',1.5800,0.000,1,0.000,24),('0000000415','NOTA ADHESIVA FLECHA X 5  AR-125-1','GENERICO',1.000,1.000,'UND','UND',1.8500,0.000,1,0.000,24),('0000000416','NOTA AUTOADHESIVAS FOSKA 3X3X500H SURT.','GENERICO',7.000,7.000,'UND','UND',7.3000,0.000,1,0.000,24),('0000000418','PAD MOUSE ALMOHADILLA CUADRADA TELA','GENERICO',5.000,5.000,'UND','UND',28.0540,0.000,1,0.000,22),('0000000419','PAD MOUSE CON DISEÑO 122','GENERICO',32.000,32.000,'UND','UND',3.3200,0.000,1,0.000,22),('0000000421','PAD MOUSE ERGONOMICO CON GEL MTX-0018','GENERICO',2.000,2.000,'UND','UND',26.5600,0.000,1,0.000,22),('0000000422','PAD MOUSE IBLUE GRANDE MP372 C/DESCAN. COLOR 0023220','IBLUE',6.000,6.000,'UND','UND',9.9600,0.000,1,0.000,22),('0000000423','PAD MOUSE IBLUE GRANDE MP372 C/DESCAN. ESCUDO','IBLUE',3.000,3.000,'UND','UND',13.2800,0.000,1,0.000,22),('0000000426','PANTALLA LAPTOP 15.6\" LED','GENERICO',1.000,1.000,'UND','UND',763.6000,0.000,1,0.000,26),('0000000428','PANTALLA LAPTOP LTN N15.6\" LED 6TT105 VAIO','GENERICO',1.000,1.000,'UND','UND',763.6000,0.000,1,0.000,26),('0000000429','PAPEL ADHESIVO STICKERS A4 BLANCO GLOSSY X 100H AR-00757','GENERICO',5.000,5.000,'UND','UND',23.0000,0.000,1,0.000,24),('0000000430','PAPEL BOND A3 75GR. GALLOCOPY','GALLOCOPY',22.000,22.000,'UND','UND',19.3000,0.000,1,0.000,24),('0000000431','PAPEL BOND A4 75GR REPORT','REPORT',0.500,0.500,'UND','UND',21.0000,0.000,1,0.000,24),('0000000432','PAPEL BOND A4 75GR. GALLOCOPY','GALLOCOPY',48.500,48.500,'UND','UND',16.8100,0.000,1,0.000,24),('0000000434','PAPEL BOND A4 80GR ARCO IRIS X10 COLORES 100HJS AR-525-1','ARCO IRIS',32.790,32.790,'UND','UND',4.6100,0.000,1,0.000,24),('0000000435','PAPEL BOND A4 80GR. GALLOCOPY','GALLOCOPY',8.000,8.000,'UND','UND',18.6900,0.000,1,0.000,24),('0000000440','PAPEL SABANA','GENERICO',935.000,935.000,'UND','UND',0.1500,0.000,1,0.000,24),('0000000441','PARLANTE BT CAFINI CN-S2205 FM-BT 3W C/BLUETOOTH','HALION',3.000,3.000,'UND','UND',129.4800,0.000,1,0.000,31),('0000000442','PARLANTE CYBERTEL SPUTNIK 2W  CYB-S101','CYBERTEL',2.000,2.000,'UND','UND',83.0000,0.000,1,0.000,31),('0000000443','PARLANTE GENIUS SP-U115 USB POWER 3W','GENIUS',20.000,20.000,'UND','UND',18.2600,0.000,1,0.000,11),('0000000444','PARLANTE HALION AJAX HA-825BT 2.1 USB/SD/FM/RC RMS90W','HALION',3.000,3.000,'UND','UND',115.3590,0.000,1,0.000,31),('0000000445','PARLANTE HALION EMERSON HA-261BT 2.1 USB/FM/CR RMS80W','HALION',1.000,1.000,'UND','UND',81.6056,0.000,1,0.000,31),('0000000446','PARLANTE HALION HA-155BT AZ/RJ BLUETOOTH','HALION',1.000,1.000,'UND','UND',135.7880,0.000,1,0.000,31),('0000000447','PARLANTE HALION MECANO HA-827 BT/USB/SD/FM R60W AZUL','HALION',3.000,3.000,'UND','UND',120.9808,0.000,1,0.000,31),('0000000448','PARLANTE HALION RAPTOP HA-266BT BT/USB/SD/FM 80W','HALION',1.000,1.000,'UND','UND',104.1152,0.000,1,0.000,31),('0000000449','PARLANTE HALION SCORPION HA-290BT 2.1 USB/FM/SD/CR RMS 45W','HALION',1.000,1.000,'UND','UND',135.0576,0.000,1,0.000,31),('0000000451','PARLANTE MICRONICS VOYAGER 1  MIC-S101','MICRONICS',2.000,2.000,'UND','UND',76.3600,0.000,1,0.000,31),('0000000452','PARLANTE SKILL BARRIL BLUETOOTH USB POWER','SKILL',1.000,1.000,'UND','UND',123.3048,0.000,1,0.000,31),('0000000453','PATCH CORD CAT5E 2MT SATRA AZUL','SATRA',56.000,56.000,'UND','UND',26.2944,0.000,1,0.000,14),('0000000454','PATCH CORD CAT5E 3MT SATRA','SATRA',3.000,3.000,'UND','UND',40.0060,0.000,1,0.000,14),('0000000455','PATCH CORD CAT6 1MT AZUL SATRA (CTD-CPU)','SATRA',25.000,25.000,'UND','UND',31.3740,0.000,1,0.000,14),('0000000456','PATCH CORD CAT6 2MT SATRA','SATRA',16.000,16.000,'UND','UND',39.4084,0.000,1,0.000,14),('0000000457','PATCH CORD CAT6 3MT SATRA','SATRA',15.000,15.000,'UND','UND',52.6884,0.000,1,0.000,14),('0000000458','PERFORADOR KOOPE 1250 PREMIUM GRANDE 25H','KOOPE',24.000,24.000,'UND','UND',8.5400,0.000,1,0.000,25),('0000000459','PERFORADOR KOOPE 2152 NEON MEDIANO','KOOPE',7.000,7.000,'UND','UND',5.9100,0.000,1,0.000,25),('0000000460','PERFORADOR KOOPE 2252 NEON GRANDE','KOOPE',26.000,26.000,'UND','UND',8.2600,0.000,1,0.000,25),('0000000461','PLACA PARED IDENTIKIT 1PTO SATRA FPA-W01 SA-403011 - 1111030101','SATRA',71.000,71.000,'UND','UND',2.4900,0.000,1,0.000,14),('0000000462','PLACA PARED IDENTIKIT 2PTO SATRA A4039 SA-403021 P/CAJA ADOSABLE','SATRA',109.000,109.000,'UND','UND',2.4900,0.000,1,0.000,14),('0000000463','PLACA PARED SIMPLE 2 PTO SATRA WP-N2 P/CAJA ADOSABLE','SATRA',59.000,59.000,'UND','UND',7.7688,0.000,1,0.000,14),('0000000464','PLACA PARED SIMPLE 3 PTO SATRA WP-N3 P/CAJA ADOSABLE','SATRA',28.000,28.000,'UND','UND',9.0636,0.000,1,0.000,14),('0000000465','PLACA PARED SIMPLE 4 PTO SATRA WP-N4 P/CAJA ADOSABLE','SATRA',10.000,10.000,'UND','UND',10.9892,0.000,1,0.000,14),('0000000466','PLACA PRINCIPAL C/BIOS EPSON FX-890','EPSON',1.000,1.000,'UND','UND',241.0320,0.000,1,0.000,26),('0000000467','PLASTILINA KOOPE JUMBO X 12','KOOPE',7.000,7.000,'UND','UND',2.9000,0.000,1,0.000,25),('0000000468','PLUMON ARTLINE 854 INDELEBLE PUNTA FINA','ARTLINE',32.000,32.000,'UND','UND',2.8400,0.000,1,0.000,25),('0000000470','PLUMON FABER CASTELL 123 P/PIZARRA ACRILICA','FABER CASTELL',20.000,20.000,'UND','UND',3.0000,0.000,1,0.000,25),('0000000472','PLUMON FABER CASTELL 47 COLORES','FABER CASTELL',21.000,21.000,'UND','UND',1.2000,0.000,1,0.000,25),('0000000473','PLUMON KOOPE DONG-A NAME CD PEN','KOOPE',32.000,32.000,'UND','UND',0.9800,0.000,1,0.000,25),('0000000474','PLUMON KOOPE DONG-A PLUS CD PEN INDELEBLE','KOOPE',9.000,9.000,'UND','UND',0.9700,0.000,1,0.000,25),('0000000475','PLUMON KOOPE MARCADOR OHP DOBLE PUNTA COD:13600','KOOPE',17.000,17.000,'UND','UND',0.9000,0.000,1,0.000,25),('0000000476','PORTA CD SOBRE PLASTICO COLORES','GENERICO',201.000,201.000,'UND','UND',0.0549,0.000,1,0.000,25),('0000000477','PORTA LAPIZ CIRCULAR MALLA METALICA NEGRO AR-011','GENERICO',6.000,6.000,'UND','UND',2.1600,0.000,1,0.000,25),('0000000478','PORTA LAPIZ CUADRADA MALLA METALICA  AR-017','GENERICO',2.000,2.000,'UND','UND',2.1600,0.000,1,0.000,25),('0000000479','PORTA TACO MALLA METALICA NEGRO AR-012','GENERICO',15.000,15.000,'UND','UND',4.1900,0.000,1,0.000,25),('0000000480','PORTA TARJETERO DE MALLA METALICA AR-015','GENERICO',12.000,12.000,'UND','UND',2.1800,0.000,1,0.000,25),('0000000481','PORTADOCUMENTO CON BROCHE A3 JA-043','GENERICO',6.000,6.000,'UND','UND',2.6600,0.000,1,0.000,25),('0000000482','PORTADOCUMENTO CON BROCHE A4 JA-045-2 AR-045-2','GENERICO',31.000,31.000,'UND','UND',0.9300,0.000,1,0.000,25),('0000000483','PORTAPLANO EXTENSIBLE COLOR NEGRO','GENERICO',1.000,1.000,'UND','UND',11.6000,0.000,1,0.000,25),('0000000484','PORTAPLANO EXTENSIBLE COLOR PY-8203C','GENERICO',1.000,1.000,'UND','UND',10.0800,0.000,1,0.000,25),('0000000487','PROCESADOR INTEL I3-8100 3.6GHZ, LGA 1151','INTEL',1.000,1.000,'UND','UND',366.8600,0.000,1,0.000,4),('0000000488','PROCESADOR INTEL I5-7400 3.0GHZ, LGA 1151 65W','INTEL',1.000,1.000,'UND','UND',647.3004,0.000,1,0.000,4),('0000000491','PROCESADOR INTEL I7-8700 3.2GHZ, LGA 1151','INTEL',1.000,1.000,'UND','UND',996.0000,0.000,1,0.000,4),('0000000492','PROTECTOR DE PANTALLA 7\"','GENERICO',1.000,1.000,'UND','UND',12.9148,0.000,1,0.000,22),('0000000493','PROTECTOR DE PANTALLA P/LAPTOP 10\"','GENERICO',7.000,7.000,'UND','UND',12.9148,0.000,1,0.000,22),('0000000494','PROTECTOR DE PANTALLA P/LAPTOP 14\"','GENERICO',8.000,8.000,'UND','UND',4.6480,0.000,1,0.000,22),('0000000495','PROTECTOR DE PANTALLA P/LAPTOP 15\"','GENERICO',5.000,5.000,'UND','UND',4.9800,0.000,1,0.000,22),('0000000496','PROTECTOR DE PANTALLA P/LAPTOP 17\"','GENERICO',4.000,4.000,'UND','UND',39.8400,0.000,1,0.000,22),('0000000497','PROTECTOR DE TECLADO P/LAPTOP 14\"','GENERICO',9.000,9.000,'UND','UND',2.3240,0.000,1,0.000,22),('0000000498','PROTECTOR DE TECLADO P/LAPTOP 15\"','GENERICO',5.000,5.000,'UND','UND',2.6560,0.000,1,0.000,22),('0000000499','PROYECTOR EPSON POWER LITE X41+, 3600 L/1024X768/XGA/WIRELESS','EPSON',1.000,1.000,'UND','UND',1905.2152,0.000,1,0.000,27),('0000000502','PROYECTOR EPSON POWERLITE S39 3300','EPSON',1.000,1.000,'UND','UND',1191.8800,0.000,1,0.000,27),('0000000505','RACK DE PARED 4RU X 12 SATRA','SATRA',1.000,1.000,'UND','UND',83.0000,0.000,1,0.000,17),('0000000506','RACK DE PARED 6RU X 12 SATRA','SATRA',1.000,1.000,'UND','UND',96.2800,0.000,1,0.000,17),('0000000507','RADIO RELOJ PARLANTE DESPERTADOR INHALAMBRICO KOLKE','KOLKE',3.000,3.000,'UND','UND',63.0800,0.000,1,0.000,31),('0000000508','REDUCTOR SATRA 24X14 A 15X10MM 2211072415','SATRA',8.000,8.000,'UND','UND',1.3280,0.000,1,0.000,15),('0000000509','REDUCTOR SATRA 39X18 A 24X14MM 2211073924','SATRA',49.000,49.000,'UND','UND',1.9588,0.000,1,0.000,15),('0000000510','REDUCTOR SATRA EN T 39X18 A 24X14MM 2211093924','SATRA',7.000,7.000,'UND','UND',1.9588,0.000,1,0.000,15),('0000000511','REDUCTOR SATRA EN T 60X22 A 24X14MM 2211076024','SATRA',36.000,36.000,'UND','UND',3.1872,0.000,1,0.000,15),('0000000512','REDUCTOR SATRA EN T 60X22 A 39X18MM 2211096039','SATRA',8.000,8.000,'UND','UND',3.9176,0.000,1,0.000,15),('0000000513','REPETIDOR WIFFI MAX 300M MOD:SA-RE300A','SATRA',5.000,5.000,'UND','UND',116.2000,0.000,1,0.000,16),('0000000514','RESALTADOR ARTLINE VIVIX','ARTLINE',46.000,46.000,'UND','UND',2.6100,0.000,1,0.000,25),('0000000515','RESALTADOR FABER CASTELL N° 48','FABER CASTELL',30.000,30.000,'UND','UND',1.9900,0.000,1,0.000,25),('0000000516','RESALTADOR KOOPE ERGONOMICO AM/CL/NJ/RS/VD','KOOPE',103.000,103.000,'UND','UND',1.1700,0.000,1,0.000,25),('0000000517','RINCONERO 15X10MM SATRA 2211021510','SATRA',20.000,20.000,'UND','UND',1.3280,0.000,1,0.000,15),('0000000518','RINCONERO 24X14MM SATRA  1211022414','SATRA',31.000,31.000,'UND','UND',0.3320,0.000,1,0.000,15),('0000000519','RINCONERO 39X18MM SATRA 2211023918','SATRA',41.000,41.000,'UND','UND',0.6640,0.000,1,0.000,15),('0000000520','RINCONERO 60X22MM SATRA','SATRA',36.000,36.000,'UND','UND',4.1168,0.000,1,0.000,15),('0000000521','RINCONERO 60X40MM SATRA 1211026040','SATRA',6.000,6.000,'UND','UND',2.3572,0.000,1,0.000,15),('0000000522','ROSETA 1 PTO (CAJA TOMADATOS) SATRA BEIGE','SATRA',18.000,18.000,'UND','UND',6.4740,0.000,1,0.000,14),('0000000523','ROSETA 1PTO (CAJA TOMADATOS) SATRA BLANCO','SATRA',66.000,66.000,'UND','UND',6.4740,0.000,1,0.000,14),('0000000524','ROSETA 2 PTO (CAJA TOMADATOS) SATRA BLANCO','SATRA',108.000,108.000,'UND','UND',7.0384,0.000,1,0.000,15),('0000000525','ROUTER WIRELESS WAN 300MBPS SATRA','SATRA',9.000,9.000,'UND','UND',42.8280,0.000,1,0.000,16),('0000000526','SACAGRAPA FABER P949 NEGRO','FABER CASTELL',1.000,1.000,'UND','UND',1.1800,0.000,1,0.000,25),('0000000527','SACAGRAPA KANGARO SR-45T 24/6 - 26/6','KANGARO',3.000,3.000,'UND','UND',1.9500,0.000,1,0.000,25),('0000000528','SILICONA SPRAY PREMIO','PREMIO',6.000,6.000,'UND','UND',24.9000,0.000,1,0.000,32),('0000000530','SOBRE MANILA A4 GALLO','GALLO',3.810,3.810,'UND','UND',13.0000,0.000,1,0.000,24),('0000000531','SOBRE MANILA MEDIO OFICIO GALLO','GALLO',29.000,29.000,'UND','UND',0.1000,0.000,1,0.000,24),('0000000532','SOBRE MANILA OFICIO GALLO','GALLO',22.800,22.800,'UND','UND',16.0000,0.000,1,0.000,24),('0000000533','SOBRE MANILA RADIOGRAFIA','GALLO',200.000,200.000,'UND','UND',0.4700,0.000,1,0.000,24),('0000000535','SOPORTE DE GUIA DE PAPEL LX-300','GENERICO',3.000,3.000,'UND','UND',34.4948,0.000,1,0.000,26),('0000000537','SWICHT D-LINK 16 PUERTOS 10/100 DES1016AB','D-LINK',2.000,2.000,'UND','UND',69.3880,0.000,1,0.000,16),('0000000538','SWICHT D-LINK 16 PUERTOS GIGABIT 10/100/1000 DGS1016D','D-LINK',2.000,2.000,'UND','UND',232.4000,0.000,1,0.000,16),('0000000539','SWICHT D-LINK 5 PUERTOS 10/100 DES1005A','D-LINK',4.000,4.000,'UND','UND',22.7420,0.000,1,0.000,16),('0000000540','SWITCH SATRA 08 PUERTOS 10/100 DESKTOP  1301080000','SATRA',7.000,7.000,'UND','UND',24.0700,0.000,1,0.000,16),('0000000541','SWITCH SATRA 08 PUERTOS 10/100/1000 GIGA DESKTOP','SATRA',9.000,9.000,'UND','UND',53.1200,0.000,1,0.000,16),('0000000542','SWITCH SATRA 24 PUERTOS 10/100 RACKMOUNT','SATRA',4.000,4.000,'UND','UND',506.3996,0.000,1,0.000,16),('0000000546','TACHITO MALLA METALICA CIRCULAR MEDIANO NEGRO 5002','GENERICO',2.000,2.000,'UND','UND',10.2700,0.000,1,0.000,25),('0000000547','TAJADOR ARTESCO METAL X 20','ARTESCO',17.000,17.000,'UND','UND',0.5000,0.000,1,0.000,25),('0000000548','TAJADOR KOOPE CLASICO 970 (POTE X 48) 12698','KOOPE',405.000,405.000,'UND','UND',0.3800,0.000,1,0.000,25),('0000000549','TAJADOR KOOPE CON DEPOSITO DOBLE (CX18) 15268','KOOPE',2.000,2.000,'UND','UND',1.5700,0.000,1,0.000,25),('0000000550','TAJADOR KOOPE CON DEPOSITO SIMPLE (CX18) 15269','KOOPE',35.000,35.000,'UND','UND',1.3800,0.000,1,0.000,24),('0000000551','TAPA FINAL 15X10MM SATRA 1211061510','SATRA',30.000,30.000,'UND','UND',0.3320,0.000,1,0.000,15),('0000000552','TAPA FINAL 24X14MM SATRA 2211062414','SATRA',72.000,72.000,'UND','UND',0.3320,0.000,1,0.000,15),('0000000553','TAPA FINAL 39X18MM SATRA 2211063918','SATRA',32.000,32.000,'UND','UND',0.6640,0.000,1,0.000,15),('0000000554','TAPA FINAL 60X22MM SATRA','SATRA',64.000,64.000,'UND','UND',4.1500,0.000,1,0.000,15),('0000000555','TAPA FINAL 60X40MM SATRA  1211066040','SATRA',5.000,5.000,'UND','UND',2.3572,0.000,1,0.000,15),('0000000556','TARJ. RED TP-LINK WIRELESS PCI 150MBPS TL-WN751ND','TP-LINK',2.000,2.000,'UND','UND',122.9396,0.000,1,0.000,16),('0000000558','TARJ. RED TP-LINK WIRELESS PCI-EX 300N TL-WN881ND','TP-LINK',1.000,1.000,'UND','UND',46.1480,0.000,1,0.000,16),('0000000561','TE PLANA 15X10MM SATRA 1211041510','SATRA',30.000,30.000,'UND','UND',0.3320,0.000,1,0.000,15),('0000000562','TE PLANA 24X14MM SATRA','SATRA',56.000,56.000,'UND','UND',1.3280,0.000,1,0.000,15),('0000000563','TE PLANA 39X18MM SATRA  1211043918','SATRA',47.000,47.000,'UND','UND',0.6640,0.000,1,0.000,15),('0000000564','TE PLANA 60X22MM SATRA','SATRA',108.000,108.000,'UND','UND',4.6812,0.000,1,0.000,15),('0000000565','TE PLANA 60X40MM SATRA 1211046040','SATRA',9.000,9.000,'UND','UND',2.3572,0.000,1,0.000,15),('0000000567','TECLADO + MOUSE GENIUS 8006 SLIMSTAR WIRELESS','GENIUS',1.000,1.000,'UND','UND',43.1600,0.000,1,0.000,9),('0000000568','TECLADO + MOUSE GENIUS 8008 SLIMSTAR SMART WIRELESS','GENIUS',1.000,1.000,'UND','UND',44.8200,0.000,1,0.000,9),('0000000569','TECLADO + MOUSE GENIUS C130 USB SP','GENIUS',3.000,3.000,'UND','UND',30.5440,0.000,1,0.000,9),('0000000570','TECLADO + MOUSE GENIUS KM-130 USB SP','GENIUS',6.000,6.000,'UND','UND',27.2240,0.000,1,0.000,9),('0000000571','TECLADO + MOUSE GENIUS KM-210 USB','GENIUS',5.000,5.000,'UND','UND',33.8640,0.000,1,0.000,9),('0000000573','TECLADO + MOUSE HALION KM-2011 + MO-040 USB','HALION',10.000,10.000,'UND','UND',18.8510,0.000,1,0.000,9),('0000000575','TECLADO + MOUSE IBLUE USB 74014-BK BASICO','IBLUE',2.000,2.000,'UND','UND',11.9520,0.000,1,0.000,9),('0000000577','TECLADO + MOUSE LOGITECH USB MK120','LOGITECH',7.000,7.000,'UND','UND',32.3368,0.000,1,0.000,9),('0000000578','TECLADO + MOUSE TEROS TE-CM 3000 GAMING + PAD/PARLANTE','TEROS',1.000,1.000,'UND','UND',34.6940,0.000,1,0.000,9),('0000000579','TECLADO GENIUS USB K6 GX SCORPION GAMING PLUGER SWITCH','GENIUS',2.000,2.000,'UND','UND',49.8000,0.000,1,0.000,9),('0000000582','TECLADO GENIUS USB KB-125 USB SP','GENIUS',1.000,1.000,'UND','UND',18.2600,0.000,1,0.000,9),('0000000583','TECLADO GENIUS USB KB-128 USB','GENIUS',2.000,2.000,'UND','UND',18.5920,0.000,1,0.000,9),('0000000584','TECLADO GENIUS USB KB-M225C0 USB','GENIUS',1.000,1.000,'UND','UND',23.2400,0.000,1,0.000,9),('0000000585','TECLADO HALION HA-613 USB NEGRO','HALION',10.000,10.000,'UND','UND',13.2236,0.000,1,0.000,9),('0000000586','TECLADO IBLUE FLEXIBLE USB PN 73112 0023244','IBLUE',3.000,3.000,'UND','UND',16.6000,0.000,1,0.000,9),('0000000587','TECLADO IBLUE USB 79013M-BK MULTIMEDIA','IBLUE',10.000,10.000,'UND','UND',11.9520,0.000,1,0.000,9),('0000000588','TECLADO LOGITECH USB K120 ESPAÑOL','LOGITECH',1.000,1.000,'UND','UND',23.2400,0.000,1,0.000,9),('0000000597','TECLADO PARA LAPTOP TOSHIBA S55T INTERNO','TOSHIBA',1.000,1.000,'UND','UND',298.8000,0.000,1,0.000,9),('0000000599','TIJERA FOSKA MOD. YG9041-B (8.5\")','FOSKA',54.000,54.000,'UND','UND',3.4400,0.000,1,0.000,25),('0000000600','TINTA ARTESCO PARA TAMPON','ARTESCO',6.000,6.000,'UND','UND',1.3800,0.000,1,0.000,25),('0000000601','TINTA BROTHER BT5001C = CYAN DCP-T300/T500W/700W','BROTHER',5.000,5.000,'UND','UND',22.4100,0.000,1,0.000,23),('0000000602','TINTA BROTHER BT5001M = MAGENTA DCP-T300/T500W/700W','BROTHER',5.000,5.000,'UND','UND',22.4100,0.000,1,0.000,23),('0000000603','TINTA BROTHER BT5001Y = YELLOW DCP-T300/T500W/700W','BROTHER',5.000,5.000,'UND','UND',22.4100,0.000,1,0.000,23),('0000000604','TINTA BROTHER BT6001BK = BLACK DCP-T300/T500W/700W','BROTHER',9.000,9.000,'UND','UND',25.4312,0.000,1,0.000,23),('0000000605','TINTA BROTHER BTD60BK =BLACK DCP-T310/T510W/710W/910DW','BROTHER',4.000,4.000,'UND','UND',25.4312,0.000,1,0.000,23),('0000000606','TINTA BROTHER LC-505C = CYAN DCPJ100/J105/J200','BROTHER',6.000,6.000,'UND','UND',25.9292,0.000,1,0.000,23),('0000000607','TINTA BROTHER LC-505M = MAGENTA DCPJ100/J105/J200','BROTHER',4.000,4.000,'UND','UND',25.9292,0.000,1,0.000,23),('0000000608','TINTA BROTHER LC-505Y = YELLOW DCPJ100/J105/J200','BROTHER',4.000,4.000,'UND','UND',25.9292,0.000,1,0.000,23),('0000000609','TINTA BROTHER LC-509BK = BLACK DCPJ100/J105/J200','BROTHER',3.000,3.000,'UND','UND',28.3196,0.000,1,0.000,23),('0000000610','TINTA CANON 190BK = GI-190 BLACK G1100/G2100/G3100/G3102','CANON',1.000,1.000,'UND','UND',21.8456,0.000,1,0.000,23),('0000000611','TINTA CANON 190C = GI-190 CYAN G1100/G2100/G3100/G3102','CANON',1.000,1.000,'UND','UND',21.6796,0.000,1,0.000,23),('0000000612','TINTA CANON 190M = GI-190 MAGENTA G1100/G2100/G3100/G3102','CANON',2.000,2.000,'UND','UND',21.6796,0.000,1,0.000,23),('0000000613','TINTA CANON 190Y = GI-190 YELLOW G1100/G2100/G3100/G3102','CANON',2.000,2.000,'UND','UND',21.6464,0.000,1,0.000,23),('0000000614','TINTA CANON CL-141 COLOR (9ML)','CANON',2.000,2.000,'UND','UND',50.2980,0.000,1,0.000,23),('0000000615','TINTA CANON CL-146 COLOR (9ML)','CANON',3.000,3.000,'UND','UND',50.8956,0.000,1,0.000,23),('0000000616','TINTA CANON CL-211 COLOR MP480/240','CANON',1.000,1.000,'UND','UND',55.1120,0.000,1,0.000,23),('0000000617','TINTA CANON PG-140 BLACK (8ML)','CANON',2.000,2.000,'UND','UND',41.0020,0.000,1,0.000,23),('0000000618','TINTA CANON PG-145 BLACK (8ML)','CANON',3.000,3.000,'UND','UND',41.0352,0.000,1,0.000,23),('0000000619','TINTA CANON PG-210 BLACK MP 480/240','CANON',3.000,3.000,'UND','UND',42.2636,0.000,1,0.000,23),('0000000620','TINTA EPSON L200 = T664120 BLACK L110/210/350/355/555','EPSON',59.000,59.000,'UND','UND',22.4432,0.000,1,0.000,23),('0000000621','TINTA EPSON L200 = T664220 CYAN L110/210/350/355/555','EPSON',9.000,9.000,'UND','UND',22.4432,0.000,1,0.000,23),('0000000622','TINTA EPSON L200 = T664320 MAGENTA L110/210/350/355/555','EPSON',9.000,9.000,'UND','UND',22.4432,0.000,1,0.000,23),('0000000623','TINTA EPSON L200 = T664420 YELOW L110/210/350/355/555 L200','EPSON',9.000,9.000,'UND','UND',22.4432,0.000,1,0.000,23),('0000000624','TINTA EPSON L800 = T673120 BLACK','EPSON',2.000,2.000,'UND','UND',31.1748,0.000,1,0.000,23),('0000000625','TINTA EPSON L800 = T673220 CYAN','EPSON',1.000,1.000,'UND','UND',31.1748,0.000,1,0.000,23),('0000000626','TINTA EPSON L800 = T673320 MAGENTA','EPSON',1.000,1.000,'UND','UND',31.1748,0.000,1,0.000,23),('0000000627','TINTA EPSON L800 = T673420 YELLOW','EPSON',1.000,1.000,'UND','UND',31.1748,0.000,1,0.000,23),('0000000628','TINTA EPSON L800 = T673520 LIGHT CYAN L800','EPSON',2.000,2.000,'UND','UND',31.1748,0.000,1,0.000,23),('0000000629','TINTA EPSON L800 = T673520 LIGHT MAGENTA L800','EPSON',2.000,2.000,'UND','UND',31.1748,0.000,1,0.000,23),('0000000630','TINTA FABER CASTELL P/PLUMON ACRILICO (PIZARRA) 306','FABER CASTELL',19.000,19.000,'UND','UND',6.7500,0.000,1,0.000,25),('0000000631','TINTA HP 122 = CH561HL BLACK, 1000/2000/2050','HP',2.000,2.000,'UND','UND',32.8016,0.000,1,0.000,23),('0000000632','TINTA HP 122 = CH562HL COLOR, HP 1000/2000/2050','HP',1.000,1.000,'UND','UND',40.4044,0.000,1,0.000,23),('0000000633','TINTA HP 122XL = CH564HL COLOR, HP 1000/2000/2050','HP',1.000,1.000,'UND','UND',94.5536,0.000,1,0.000,23),('0000000634','TINTA HP 662 = CZ103AL BLACK DJ ADVANTAGE 2515/3515','HP',2.000,2.000,'UND','UND',28.3528,0.000,1,0.000,23),('0000000635','TINTA HP 662 = CZ103AL TRICOLOR DJ ADVANTAGE 2515/3515','HP',2.000,2.000,'UND','UND',28.3528,0.000,1,0.000,23),('0000000636','TINTA HP 664 = F6V28AL COLOR ADVANTAGE 2135/3635/1115','HP',4.000,4.000,'UND','UND',28.5188,0.000,1,0.000,23),('0000000637','TINTA HP 664 = F6V29AL BLACK ADVANTAGE 2135/3635/1115','HP',4.000,4.000,'UND','UND',28.5188,0.000,1,0.000,23),('0000000638','TINTA HP 711 = CZ129A BLACK DJ T120/T520 38ML','HP',4.000,4.000,'UND','UND',89.1420,0.000,1,0.000,23),('0000000639','TINTA HP 711 = CZ130A CYAN DJ T120/T520 29ML','HP',1.000,1.000,'UND','UND',73.3388,0.000,1,0.000,23),('0000000640','TINTA HP 711 = CZ131A MAGENTA DJ T120/T520 29ML','HP',1.000,1.000,'UND','UND',73.3388,0.000,1,0.000,23),('0000000641','TINTA HP 711 = CZ132A YELLOW DJ T120/T520 29ML','HP',1.000,1.000,'UND','UND',74.1356,0.000,1,0.000,23),('0000000642','TINTA HP 711 = CZ133A BLACK DJ T120/T520 80ML','HP',2.000,2.000,'UND','UND',144.4532,0.000,1,0.000,23),('0000000643','TINTA HP 711 = CZ134A CYAN DJ T120/T520 29ML PACK3','HP',3.000,3.000,'UND','UND',51.8030,0.000,1,0.000,23),('0000000644','TINTA HP 711 = CZ135A MAGENTA DJ T120/T520 29ML PACK3','HP',2.000,2.000,'UND','UND',51.8030,0.000,1,0.000,23),('0000000645','TINTA HP 711 = CZ136A YELLOW DJ T120/T520 29ML PACK3','HP',3.000,3.000,'UND','UND',51.8030,0.000,1,0.000,23),('0000000646','TINTA HP 82 = CH565A BLACK, HP 500/800C','HP',1.000,1.000,'UND','UND',120.6488,0.000,1,0.000,23),('0000000647','TINTA HP GT51 BLACK GT 5810/5820 5000 PAG.','HP',5.000,5.000,'UND','UND',20.9492,0.000,1,0.000,23),('0000000648','TINTA HP GT52 CYAN GT 5810/5820 8000 PAG.','HP',1.000,1.000,'UND','UND',21.3808,0.000,1,0.000,23),('0000000649','TINTA HP GT52 MAGENTA GT 5810/5820 8000 PAG.','HP',1.000,1.000,'UND','UND',21.3808,0.000,1,0.000,23),('0000000650','TINTA HP GT52 YELLOW GT 5810/5820 8000 PAG.','HP',1.000,1.000,'UND','UND',21.3808,0.000,1,0.000,23),('0000000651','TONER BROTHER TN-1060 HL-1112 DCP/1512','BROTHER',1.000,1.000,'UND','UND',98.9692,0.000,1,0.000,23),('0000000652','TONER BROTHER TN-580 HI-5240/HI-5250DN (7000PAG)','BROTHER',1.000,1.000,'UND','UND',979.4000,0.000,1,0.000,23),('0000000653','TONER COMPATIBLE AR-CF210A BLACK M251N/M276N','ARECOLOR',1.000,1.000,'UND','UND',275.5600,0.000,1,0.000,23),('0000000654','TONER COMPATIBLE AR-CF211A CYAN M251N/M276N','ARECOLOR',1.000,1.000,'UND','UND',275.5600,0.000,1,0.000,23),('0000000655','TONER COMPATIBLE AR-CF211A MAGENTA M251N/M276N','ARECOLOR',1.000,1.000,'UND','UND',275.5600,0.000,1,0.000,23),('0000000656','TONER COMPATIBLE AR-CF211A YELOW M251N/M276N','ARECOLOR',1.000,1.000,'UND','UND',275.5600,0.000,1,0.000,23),('0000000657','TONER COMPATIBLE ICOLOR 05X/80X = 505X/280X -  05020','ICOLOR',6.000,6.000,'UND','UND',53.1200,0.000,1,0.000,23),('0000000658','TONER COMPATIBLE ICOLOR 12A = Q2612A - 1010/1012/1015 09503','ICOLOR',3.000,3.000,'UND','UND',31.9826,0.000,1,0.000,23),('0000000659','TONER COMPATIBLE ICOLOR 17A = CF217','ICOLOR',2.000,2.000,'UND','UND',132.8000,0.000,1,0.000,23),('0000000660','TONER COMPATIBLE ICOLOR 17A = CF217 -  01266 CON CHIP 1600PAG.','ICOLOR',3.000,3.000,'UND','UND',131.1400,0.000,1,0.000,23),('0000000661','TONER COMPATIBLE ICOLOR 26A = CCF226A PAG. 3100 05040','ICOLOR',3.000,3.000,'UND','UND',131.1400,0.000,1,0.000,23),('0000000662','TONER COMPATIBLE ICOLOR 30A = CF230A','ICOLOR',3.000,3.000,'UND','UND',126.1600,0.000,1,0.000,23),('0000000663','TONER COMPATIBLE ICOLOR 78A = CE278A -  05008','ICOLOR',10.000,10.000,'UND','UND',33.0340,0.000,1,0.000,23),('0000000664','TONER COMPATIBLE ICOLOR 83A = CF283A - 05013 HP PRO M127FN/M127FW','ICOLOR',15.000,15.000,'UND','UND',33.0430,0.000,1,0.000,23),('0000000666','TONER COMPATIBLE ICOLOR 85A = CF285A/435A/436A - 05015','ICOLOR',20.000,20.000,'UND','UND',28.2200,0.000,1,0.000,23),('0000000667','TONER COMPATIBLE MILLENIUM 36A (HP P1505)','MILENIUM',1.000,1.000,'UND','UND',149.4000,0.000,1,0.000,23),('0000000668','TONER FOT. IMAGE 205A/B DI 2010/2015/2020/2510  X420 GR.  3010249','IMAGE',4.000,4.000,'UND','UND',109.5600,0.000,1,0.000,23),('0000000670','TONER FOT. IMAGE TN211-311 BIZHUB 200/250  X 360 GR.','IMAGE',2.000,2.000,'UND','UND',116.2000,0.000,1,0.000,23),('0000000671','TONER FOT. IMAGE TN414-217 BIZHUB 363/423 223/283 X 512GR.','IMAGE',2.000,2.000,'UND','UND',156.0400,0.000,1,0.000,23),('0000000672','TONER FOT. IMAGE TN511 BZ 360/361/420/421/500/501  X 676GR.','IMAGE',1.000,1.000,'UND','UND',249.0000,0.000,1,0.000,23),('0000000673','TONER HP 01A = Q6001A,  2600NU CYAN','HP',1.000,1.000,'UND','UND',845.9692,0.000,1,0.000,23),('0000000674','TONER HP 12AD = Q2612AD HP LJ 1000/3000','HP',2.000,2.000,'UND','UND',203.0180,0.000,1,0.000,23),('0000000675','TONER HP 17A = CF217A PRO M102/M130FW','HP',3.000,3.000,'UND','UND',179.5456,0.000,1,0.000,23),('0000000676','TONER HP 30A = CF230A  LJ M203DW/M22FDW','HP',3.000,3.000,'UND','UND',182.2016,0.000,1,0.000,23),('0000000677','TONER HP 35AD = CB435AD LJ P1005/P1006','HP',3.000,3.000,'UND','UND',177.6200,0.000,1,0.000,23),('0000000678','TONER HP 49X','HP',1.000,1.000,'UND','UND',1593.6000,0.000,1,0.000,23),('0000000680','TONER HP 78AD = CE278AD','HP',4.000,4.000,'UND','UND',203.4662,0.000,1,0.000,23),('0000000682','TONER HP 83A = CF283A LJ PRO M127FN','HP',2.000,2.000,'UND','UND',168.3406,0.000,1,0.000,23),('0000000683','TONER HP 83AD = CF283AD PRO M127FN','HP',2.000,2.000,'UND','UND',168.3406,0.000,1,0.000,23),('0000000684','TONER HP 85A = CE285AD  LJ P1102/P1102W','HP',2.000,2.000,'UND','UND',179.4294,0.000,1,0.000,23),('0000000685','TONER HP 92 = C4092A LJ  1100/3200','HP',1.000,1.000,'UND','UND',534.9848,0.000,1,0.000,23),('0000000686','TONER XEROX 106R01485 (2K) 3220/3210','XEROX',1.000,1.000,'UND','UND',904.6336,0.000,1,0.000,23),('0000000688','UNION 10X15MM SATRA 1211051510','SATRA',30.000,30.000,'UND','UND',0.3320,0.000,1,0.000,15),('0000000689','UNION 24X14MM SATRA  1211052414','SATRA',152.000,152.000,'UND','UND',0.3320,0.000,1,0.000,15),('0000000690','UNION 39X18MM SATRA  1211053918','SATRA',55.000,55.000,'UND','UND',0.6640,0.000,1,0.000,15),('0000000691','UNION 60X22MM SATRA','SATRA',293.000,293.000,'UND','UND',4.1168,0.000,1,0.000,15),('0000000692','UNION 60X40MM SATRA  1211056040','SATRA',6.000,6.000,'UND','UND',2.3572,0.000,1,0.000,15),('0000000693','UPS APC BK650EI 650VA, 400W 7A 230V DB-9 RS-232/USB MC: 26403','APC',1.000,1.000,'UND','UND',191.8960,0.000,1,0.000,7),('0000000694','UPS APC BR500CI-AS INTERACTIVO 500VA/300W/230V/3 TOMAS MOD: UPS RC 500','APC',3.000,3.000,'UND','UND',139.1412,0.000,1,0.000,7),('0000000697','VINIFORRO OFICIO','GENERICO',4.000,4.000,'UND','UND',4.0000,0.000,1,0.000,25),('0000000698','WASHING - ABSOLUTE CLEANER UNIVERSAL','GENERICO',3.000,3.000,'UND','UND',41.5000,0.000,1,0.000,32);

--
-- Table structure for table `temp_tarkar`
--

CREATE TABLE `temp_tarkar` (
  `Tipo` varchar(1) DEFAULT NULL,
  `Abrev` varchar(5) DEFAULT NULL,
  `NSerie` varchar(4) DEFAULT NULL,
  `NDocumento` varchar(20) DEFAULT NULL,
  `IdDocFis` varchar(2) DEFAULT NULL,
  `IdProducto` varchar(10) DEFAULT NULL,
  `NomProducto` varchar(255) DEFAULT NULL,
  `IdTienda` varchar(3) DEFAULT NULL,
  `IdAlmacen` varchar(2) DEFAULT NULL,
  `Fecha` date DEFAULT NULL,
  `Entrada` double(14,3) DEFAULT '0.000',
  `PreEnt` double(10,4) DEFAULT '0.0000',
  `TotEnt` double(10,4) DEFAULT '0.0000',
  `Salida` double(14,3) DEFAULT '0.000',
  `PreSal` double(10,4) DEFAULT '0.0000',
  `TotSal` double(10,4) DEFAULT '0.0000',
  `Saldo` double(14,3) DEFAULT '0.000',
  `SubSaldo` double(14,3) DEFAULT '0.000',
  `Costo` double(10,4) DEFAULT '0.0000',
  `TotSaldo` double(10,4) DEFAULT '0.0000',
  `IdCliPro` varchar(8) DEFAULT NULL,
  `RazSoc` varchar(150) DEFAULT NULL,
  `RUC` varchar(11) DEFAULT NULL,
  `DNI` varbinary(8) DEFAULT NULL,
  `IdUnd` varchar(2) DEFAULT NULL,
  `AbrevU` varchar(4) DEFAULT NULL,
  `IdFra` varchar(2) DEFAULT NULL,
  `AbrevF` varchar(4) DEFAULT NULL,
  `Capacidad` double DEFAULT NULL,
  `PC` double(10,4) DEFAULT '0.0000',
  `UltimoCosto` double(10,4) DEFAULT '0.0000',
  `NProcesado` varchar(15) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `temp_tarkar`
--


--
-- Table structure for table `tienda`
--

CREATE TABLE `tienda` (
  `IdTienda` varchar(3) NOT NULL,
  `NomTienda` varchar(150) NOT NULL,
  `DirTienda` varchar(150) DEFAULT NULL,
  `RUC` varchar(11) DEFAULT NULL,
  `IdAlmacenPri` varchar(2) DEFAULT NULL,
  `Fono1` varchar(15) DEFAULT NULL,
  `Fono2` varchar(15) DEFAULT NULL,
  `RepreLegal` varchar(150) DEFAULT NULL,
  `UseISC` tinyint(1) NOT NULL,
  `DT` datetime NOT NULL DEFAULT '1753-01-01 00:00:00',
  `Eliminado` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`IdTienda`),
  KEY `NomTienda` (`NomTienda`),
  KEY `RUC` (`RUC`),
  KEY `Eliminado` (`Eliminado`),
  KEY `NomTienda_Eli` (`NomTienda`,`Eliminado`),
  KEY `RUC_Eli` (`RUC`,`Eliminado`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `tienda`
--

INSERT INTO `tienda` VALUES ('001','RAMOS VERGARAY JULIO GILBERTO','JR. SALAMANCA N° 730- CHACHAPOYAS - CHACHAPOYAS - AMAZONAS','10334082542','PR','','','',0,'2014-09-07 16:51:18',0);

--
-- Table structure for table `tipo_cuenta`
--

CREATE TABLE `tipo_cuenta` (
  `IdTipoCuenta` varchar(2) NOT NULL,
  `NomTipoCuenta` varchar(30) NOT NULL,
  `OfSystem` tinyint(1) NOT NULL DEFAULT '0',
  `DT` datetime NOT NULL,
  `Eliminado` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`IdTipoCuenta`),
  KEY `NomTipoCuenta` (`NomTipoCuenta`),
  KEY `Eliminado` (`Eliminado`),
  KEY `NomTipoCuenta_Eli` (`NomTipoCuenta`,`Eliminado`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tipo_cuenta`
--

INSERT INTO `tipo_cuenta` VALUES ('AF','ACTIVO FIJO',1,'2016-12-28 11:10:00',0),('AJ','AJUSTE',1,'2016-12-28 11:10:00',0),('AM','ALMACEN',1,'2016-12-28 11:10:00',0),('AN','OTROS ACTIVOS NO CORRIENTES',1,'2016-12-28 11:10:00',0),('BN','BANCOS',1,'2016-12-28 11:10:00',0),('CA','CAPITAL',1,'2016-12-28 11:10:00',0),('CJ','CAJA',1,'2016-12-28 11:10:00',0),('CL','CLIENTES',0,'2016-12-28 11:10:00',0),('DA','DEUDOR / ACREEDOR',1,'2016-12-28 11:10:00',0),('EM','EMPLEADO',1,'2016-12-28 11:10:00',0),('GA','GASTOS ADMINISTRATIVOS',1,'2016-12-28 11:10:00',0),('GF','GASTOS FINACIEROS',1,'2016-12-28 11:10:00',0),('GT','GASTOS DE TRANSPORTE',0,'2016-12-28 11:10:00',0),('GV','GASTOS DE VENTAS',1,'2016-12-28 11:10:00',0),('ME','MERCADERIA',0,'2016-12-28 11:10:00',0),('OG','OTROS GASTOS',0,'2016-12-28 11:10:00',0),('PA','PARTICIPACIONES',1,'2016-12-28 11:10:00',0),('PR','PROVEEDOR',0,'2016-12-28 11:10:00',0),('TP','TRIBUTOS POR PAGAR',1,'2016-12-28 11:10:00',0),('TR','TRANSPORTISTA',0,'2016-12-28 11:10:00',0),('XX','XXXXX',0,'2017-06-27 21:36:26',1),('XY','XXX',0,'2017-06-27 21:43:23',1);

--
-- Table structure for table `tipo_documento`
--

CREATE TABLE `tipo_documento` (
  `IdTipo` int(11) NOT NULL AUTO_INCREMENT,
  `NomTipo` varchar(30) NOT NULL,
  PRIMARY KEY (`IdTipo`),
  KEY `NomTipo` (`NomTipo`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tipo_documento`
--

INSERT INTO `tipo_documento` VALUES (2,'DNI'),(1,'RUC');

--
-- Table structure for table `tipo_mediopago`
--

CREATE TABLE `tipo_mediopago` (
  `IdMedioPago` smallint(6) NOT NULL DEFAULT '0',
  `DescMedioPago` varchar(255) DEFAULT NULL,
  `Eliminado` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`IdMedioPago`),
  KEY `MedioPago` (`IdMedioPago`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `tipo_mediopago`
--

INSERT INTO `tipo_mediopago` VALUES (1,'DEPOSITO EN CUENTA',0),(2,'GIRO',0),(3,'TRANSFERENCIA DE FONDOS',0),(4,'ORDEN DE PAGO',0),(5,'TARJETA DE DEBITO',0),(6,'TARJETA DE CREDITO',0),(7,'CHEQUES CON LA CLAUSULA DE \"NO NEGOCIABLE\", \"INTRANFERIBLES\", \"NO A LA ORDEN\" U OTRA EQUIVALENTE, A QUE SE REFIERE EL INCISO F) DEL ARTICULO 5° DEL DECRETO LEGISLATIVO',0),(8,'EFECTIVO, POR OPERACIONES EN LAS QUE NO EXITE OBLIGACION DE UTILIZAR MEDIOS DE PAGO',0),(9,'EFECTIVO, EN LOS DEMAS CASOS',0),(10,'MEDIOS DE PAGO DE COMERCIO EXTERIOR',0),(11,'LETRAS DE CAMBIO',0),(101,'TRANSFERENCIAS - COMERCIO EXTERIOR',0),(102,'CHEQUES BANCARIOS - COMERCIO EXTERIOR',0),(103,'ORDEN DE PAGO SIMPLE - COMERCIO EXTERIOR',0),(104,'ORDEN DE PAGO DOCUMENTARIO - COMERCIO EXTERIOR',0),(105,'REMESA SIMPLE - COMERCIO EXTERIOR',0),(106,'REMESA DOCUMENTARIA - COMERCIO EXTERIOR',0),(107,'CARTA DE CREDITO SIMPLE - COMERCIO EXTERIOR',0),(108,'CARTA DE CREDITO DOCUMENTARIO - COMERCIO EXTERIOR',0),(999,'OTROS MEDIOS DE PAGO (ESPECIFICAR)',0);

--
-- Table structure for table `tipo_moneda`
--

CREATE TABLE `tipo_moneda` (
  `IdMoneda` tinyint(4) NOT NULL AUTO_INCREMENT,
  `Moneda` varchar(8) NOT NULL,
  PRIMARY KEY (`IdMoneda`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tipo_moneda`
--

INSERT INTO `tipo_moneda` VALUES (1,'TODO'),(2,'SOLES'),(3,'DOLAR');

--
-- Table structure for table `tipo_precio`
--

CREATE TABLE `tipo_precio` (
  `IdPrecio` int(11) NOT NULL AUTO_INCREMENT,
  `NomPrecio` varchar(30) NOT NULL,
  PRIMARY KEY (`IdPrecio`),
  KEY `NomPrecio` (`NomPrecio`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tipo_precio`
--

INSERT INTO `tipo_precio` VALUES (1,'CONTADO'),(2,'CREDITO'),(7,'DISTRIBUIDOR'),(4,'EXCLUSIVO'),(6,'MAYORISTA'),(3,'POR UNIDAD'),(5,'POR UNIDAD GENERAL');

--
-- Table structure for table `transportista`
--

CREATE TABLE `transportista` (
  `IdTransportista` int(11) NOT NULL,
  `RazonSoc` varchar(150) NOT NULL,
  `RUC` varchar(11) DEFAULT NULL,
  `DNI` varchar(8) DEFAULT NULL,
  `Eliminado` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`IdTransportista`),
  KEY `Nombre` (`RazonSoc`),
  KEY `RUC` (`RUC`),
  KEY `DNI` (`DNI`),
  KEY `RazonSoc_Eli` (`RazonSoc`,`Eliminado`),
  KEY `RUC_Eli` (`RUC`,`Eliminado`),
  KEY `DNI_Eli` (`DNI`,`Eliminado`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `transportista`
--

INSERT INTO `transportista` VALUES (1,'MARTIN PERALTA ALVIS','10451493839','',0),(2,'DE MI TIERRA TOURS E.I.R.L','20572239790','',0),(3,'UPNER AV. TOURS DE LA SELVA E.I.R.L.','20531553676','',0),(4,'INVERSIONES \"SUSALUZ\" S.R.L.','20494149860','',0);

--
-- Table structure for table `unidad`
--

CREATE TABLE `unidad` (
  `IdUnidad` int(11) NOT NULL,
  `Unidades` varchar(30) NOT NULL,
  `Abrev` varchar(4) NOT NULL,
  `DT` datetime DEFAULT NULL,
  `Eliminado` tinyint(1) NOT NULL DEFAULT '0',
  `Cod_Ant` int(11) DEFAULT NULL,
  `Abrev_Univ` varchar(4) DEFAULT NULL,
  `Vta_Serv` varchar(1) DEFAULT NULL,
  PRIMARY KEY (`IdUnidad`),
  KEY `Abrev` (`Abrev`),
  KEY `Unidades` (`Unidades`),
  KEY `Eliminado` (`Eliminado`),
  KEY `Und_Eli` (`Unidades`,`Eliminado`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `unidad`
--

INSERT INTO `unidad` VALUES (1,'KILOGRAMOS ','KLS','2017-11-26 09:55:58',0,5,'KGM','V'),(2,'LIBRAS','LBS','2017-11-26 09:55:58',0,10,'NIU','V'),(3,'TONELADAS LARGAS ','TL.','2017-11-26 09:55:58',0,0,'LTN','V'),(4,'TONELADAS METRICAS','TM.','2017-11-26 09:55:58',0,0,'TNE','A'),(5,'TONELADAS CORTAS','TMC.','2017-11-26 09:55:59',0,0,'STN','V'),(6,'GRAMOS','GRS','2017-11-26 09:55:59',0,0,'GRM','V'),(7,'UNIDADES','UND','2017-11-26 09:55:59',0,1,'NIU','A'),(8,'LITROS','LTS.','2017-11-26 09:55:59',0,0,'LTR','V'),(9,'GALONES','GLNS','2017-11-26 09:55:59',0,6,'GLL','V'),(10,'BARRILES','BRLS','2017-11-26 09:55:59',0,0,'BLL','V'),(11,'LATAS','LTA','2017-11-26 09:55:59',0,0,'CA','V'),(12,'CAJAS','CJA','2017-11-26 09:55:59',0,2,'BX','V'),(13,'MILLARES','MMLL','2017-11-26 09:56:00',0,3,'MLD','A'),(14,'METROS CUBICOS','M3','2017-11-26 09:56:00',0,0,'MTQ','V'),(15,'METROS','MTS','2017-11-26 09:56:00',0,11,'MTR','V'),(16,'DISPLEY','DSP','2017-11-26 09:56:00',0,0,'DS','V'),(17,'PAQUETE','PQT.','2017-11-26 09:56:00',0,8,'PK','A'),(18,'SACOS','SCO.','2017-11-26 09:56:00',0,0,'SA','A'),(19,'BOLSAS','BLS','2017-11-26 09:56:00',0,17,'BG','V'),(20,'BIDON','BID','2017-11-26 09:56:00',0,0,'DR','V'),(21,'BALDE','BLD','2017-11-26 09:56:00',0,0,'PL','V'),(22,'VUELTAS','VUEL','2017-11-26 09:56:01',0,0,'NIU','V'),(23,'DOCENA','DOC','2017-11-26 09:56:01',0,12,'DZN','V'),(24,'TIRA','TIRA','2017-11-26 09:56:01',0,0,'SR','V'),(25,'BOTELLA','BOT.','2017-11-26 09:56:01',0,0,'BO','V'),(26,'JAVAS','JAVA','2017-11-26 09:56:01',0,0,'NIU','V'),(27,'SOCALOS','SOC.','2017-11-26 09:56:01',0,0,'NIU','V'),(28,'CIENTO ','CNT','2017-11-26 09:56:01',0,4,'CEN','V'),(29,'KIT','KIT','2017-11-26 09:56:01',0,0,'KT','V'),(30,'PIEZA','PZA.','2017-11-26 09:56:01',0,0,'NIU','V'),(31,'VARILLA','VAR.','2017-11-26 09:56:01',0,0,'NIU','V'),(32,'PAR','PAR','2017-11-26 09:56:01',0,16,'PR','V'),(33,'FRASCO','FRA.','2017-11-26 09:56:01',0,0,'JR','V'),(34,'ROLLO','ROLL','2017-11-26 09:56:01',0,13,'RO','V'),(35,'CILINDRO','CIL.','2017-11-26 09:56:01',0,0,'CY','V'),(36,'SET','SET','2017-11-26 09:56:01',0,0,'SET','V'),(37,'BLISTER','BLT','2017-11-26 09:56:01',0,0,'NIU','V'),(38,'PLANCHA','PLC','2017-11-26 09:56:01',0,0,'NIU','V'),(39,'METRO 2','M2','2017-11-26 09:56:01',0,0,'MTK','V'),(40,'HORA','HOR','2017-11-26 09:56:01',0,0,'HUR','S'),(41,'DIA','DIA','2017-11-26 09:56:01',0,0,'DAY','S'),(42,'JUEGO','JGO','2018-02-26 12:11:57',0,0,'NIU','V'),(43,'RESMA','RES','2018-02-26 12:11:57',0,7,'NIU','V'),(44,'CONO','CON','2018-02-26 12:11:57',0,15,'NIU','V'),(45,'BLOCK','BLO','2018-02-26 12:11:57',0,9,'NIU','V'),(46,'ESTUCHE','EST','2018-02-26 12:11:57',0,14,'NIU','V');

--
-- Table structure for table `unitra`
--

CREATE TABLE `unitra` (
  `IdUniTra` int(11) NOT NULL,
  `Placa` varchar(30) NOT NULL,
  `Marca` varchar(30) NOT NULL,
  `NInscripcion` varchar(30) DEFAULT NULL,
  `Eliminado` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`IdUniTra`),
  KEY `Placa` (`Placa`),
  KEY `Marca` (`Marca`),
  KEY `NInscripcion` (`NInscripcion`),
  KEY `Eliminado` (`Eliminado`),
  KEY `Placa_Eli` (`Placa`,`Eliminado`),
  KEY `Marca_Eli` (`Marca`,`Eliminado`),
  KEY `NInscripcion_Eli` (`NInscripcion`,`Eliminado`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `unitra`
--

INSERT INTO `unitra` VALUES (1,'M5R 840','JAC ','141000..',0),(2,'AMI 877- TCP 997','SCANIA ','141000..',0);

--
-- Table structure for table `usuario`
--

CREATE TABLE `usuario` (
  `Numero` smallint(6) NOT NULL,
  `Usuario` varchar(10) CHARACTER SET utf8 NOT NULL,
  `IdTienda` varchar(3) CHARACTER SET utf8 DEFAULT NULL,
  `Psw` varchar(10) CHARACTER SET utf8 DEFAULT NULL,
  `Principal` tinyint(1) NOT NULL,
  `LockEdFec` tinyint(1) NOT NULL,
  `LockEdFecAnt` tinyint(1) NOT NULL,
  `OfSystem` tinyint(1) NOT NULL,
  `PathFoto` varchar(255) COLLATE latin1_spanish_ci DEFAULT NULL,
  `IdVendedor` int(11) NOT NULL,
  `AlertTickets` tinyint(1) NOT NULL,
  `AlertNivReo` tinyint(1) NOT NULL,
  `AlertAniv` tinyint(1) NOT NULL,
  `AlertVenc` tinyint(1) NOT NULL,
  `AlertVencLetras` tinyint(1) NOT NULL,
  `AlertPrecCmp` tinyint(1) NOT NULL,
  `AlertPrecIS` tinyint(1) NOT NULL,
  `DiasAlertAniv` tinyint(3) unsigned NOT NULL DEFAULT '1',
  `DiasAlertVenc` tinyint(3) unsigned NOT NULL DEFAULT '1',
  `DiasAlertVencLetras` tinyint(3) unsigned NOT NULL DEFAULT '1',
  `DT` datetime DEFAULT NULL,
  `Eliminado` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`Usuario`),
  UNIQUE KEY `Numero` (`Numero`),
  UNIQUE KEY `Usuario` (`Usuario`),
  KEY `IdTienda` (`IdTienda`),
  KEY `Eliminado` (`Eliminado`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_spanish_ci;

--
-- Dumping data for table `usuario`
--

INSERT INTO `usuario` VALUES (1,'ADMIN','001','123',1,0,0,0,'',1,0,0,1,0,0,0,0,5,1,1,'2016-01-12 17:22:51',0),(2,'VENTAS','001','123',1,0,0,0,'',1,0,0,0,0,0,0,0,1,1,1,'2017-07-14 23:08:29',0),(0,'Zeta','001',' ',1,0,0,1,'',0,0,0,0,0,0,0,0,1,1,1,'2009-08-23 09:47:17',0);

--
-- Temporary table structure for view `vcomision`
--

/*!50001 DROP VIEW IF EXISTS `vcomision`*/;
/*!50001 CREATE VIEW `vcomision` AS SELECT 
 1 AS `IdTienda`,
 1 AS `IdAlmacen`,
 1 AS `IdVenta`,
 1 AS `NSerie`,
 1 AS `Ndocumento`,
 1 AS `IdDocFis`,
 1 AS `IdProducto`,
 1 AS `NomProducto`,
 1 AS `Fecha`,
 1 AS `Unid`,
 1 AS `DescriPrec`,
 1 AS `Comision`,
 1 AS `TComision`,
 1 AS `Moneda`,
 1 AS `TC`,
 1 AS `IdVendedor`,
 1 AS `NomVendedor`,
 1 AS `IdLinea`,
 1 AS `NomLinea`,
 1 AS `IdCliPro`,
 1 AS `NomCliPro`*/;

--
-- Temporary table structure for view `vcompra`
--

/*!50001 DROP VIEW IF EXISTS `vcompra`*/;
/*!50001 CREATE VIEW `vcompra` AS SELECT 
 1 AS `IdTienda`,
 1 AS `IdAlmacen`,
 1 AS `Fecha`,
 1 AS `Abrev`,
 1 AS `NSerie`,
 1 AS `NDocumento`,
 1 AS `IdDocFis`,
 1 AS `IdFPago`,
 1 AS `IdCliPro`,
 1 AS `NomCliPro`,
 1 AS `IdProducto`,
 1 AS `NomProducto`,
 1 AS `Unid`,
 1 AS `DescriPrec`,
 1 AS `PrecioIGV`,
 1 AS `Contado`,
 1 AS `Credito`,
 1 AS `TContado`,
 1 AS `TCredito`,
 1 AS `IdLinea`,
 1 AS `NomLinea`,
 1 AS `IdMarca`,
 1 AS `Moneda`,
 1 AS `TC`,
 1 AS `Eliminado`*/;

--
-- Temporary table structure for view `vcompra_lin`
--

/*!50001 DROP VIEW IF EXISTS `vcompra_lin`*/;
/*!50001 CREATE VIEW `vcompra_lin` AS SELECT 
 1 AS `NomLinea`,
 1 AS `Fecha`,
 1 AS `Abrev`,
 1 AS `NSerie`,
 1 AS `NDocumento`,
 1 AS `NomCliPro`,
 1 AS `IdProducto`,
 1 AS `NomProducto`,
 1 AS `Unid`,
 1 AS `DescriPrec`,
 1 AS `PrecioIGV`,
 1 AS `Contado`,
 1 AS `Credito`,
 1 AS `TContado`,
 1 AS `TCredito`,
 1 AS `Moneda`,
 1 AS `TC`,
 1 AS `Eliminado`*/;

--
-- Temporary table structure for view `vd_cuenta`
--

/*!50001 DROP VIEW IF EXISTS `vd_cuenta`*/;
/*!50001 CREATE VIEW `vd_cuenta` AS SELECT 
 1 AS `IdTienda`,
 1 AS `codigo_cuenta`,
 1 AS `NDocumento`,
 1 AS `Fecha`,
 1 AS `IdOperacion`,
 1 AS `Abono_Soles`,
 1 AS `Cargo_Soles`,
 1 AS `Saldo_Soles`,
 1 AS `Abono_Dolar`,
 1 AS `Cargo_Dolar`,
 1 AS `Saldo_Dolar`,
 1 AS `IdCtaPartida`,
 1 AS `Moneda`,
 1 AS `TC`,
 1 AS `IdDocFis_Mov`,
 1 AS `NDocumento_Mov`,
 1 AS `Fecha_Mov`,
 1 AS `MedioPago`,
 1 AS `NOperacion`,
 1 AS `Entidad_Bancaria`,
 1 AS `Lugar`,
 1 AS `Obs`,
 1 AS `Automatico`,
 1 AS `Eliminado`*/;

--
-- Table structure for table `vendedor`
--

CREATE TABLE `vendedor` (
  `IdVendedor` int(11) NOT NULL,
  `IdTienda` varchar(3) NOT NULL,
  `NomVendedor` varchar(150) NOT NULL,
  `Direccion` varchar(150) DEFAULT NULL,
  `Email` varchar(100) DEFAULT NULL,
  `Telefono` varchar(15) DEFAULT NULL,
  `DNI` varchar(8) DEFAULT NULL,
  `LocalVta` tinyint(1) NOT NULL DEFAULT '0',
  `Estado` varchar(1) NOT NULL,
  `Sueldo` double DEFAULT '0',
  `FechaNac` date DEFAULT NULL,
  `Inactivo` tinyint(1) NOT NULL DEFAULT '0',
  `DT` datetime DEFAULT NULL,
  `Eliminado` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`IdVendedor`),
  KEY `IdTienda` (`IdTienda`),
  KEY `Eliminado` (`Eliminado`),
  KEY `NomVendedor` (`NomVendedor`),
  KEY `NomVen_Eli` (`NomVendedor`,`Eliminado`),
  KEY `DNI_Eli` (`DNI`,`Eliminado`),
  KEY `IdTienda_2` (`IdTienda`,`Eliminado`),
  KEY `Estado` (`Estado`,`Inactivo`,`Eliminado`),
  KEY `IdTienda_3` (`IdTienda`,`Eliminado`,`Inactivo`,`NomVendedor`),
  KEY `IdTienda_4` (`IdTienda`,`Eliminado`,`Inactivo`,`DNI`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `vendedor`
--

INSERT INTO `vendedor` VALUES (1,'001','VENTA LOCAL','BAGUA GRANDE','','','',1,'V',0,NULL,0,'2008-05-27 00:00:00',0);

--
-- Temporary table structure for view `vfactu`
--

/*!50001 DROP VIEW IF EXISTS `vfactu`*/;
/*!50001 CREATE VIEW `vfactu` AS SELECT 
 1 AS `IdTienda`,
 1 AS `IdAlmacen`,
 1 AS `Fecha`,
 1 AS `Abrev`,
 1 AS `NSerie`,
 1 AS `NDocumento`,
 1 AS `IdDocFis`,
 1 AS `IdFPago`,
 1 AS `IdCliPro`,
 1 AS `NomCliPro`,
 1 AS `IdProducto`,
 1 AS `Descripcion`,
 1 AS `Unid`,
 1 AS `DescriPrec`,
 1 AS `PrecioIGV`,
 1 AS `SubTotal`,
 1 AS `Contado`,
 1 AS `Credito`,
 1 AS `TContado`,
 1 AS `TCredito`,
 1 AS `IdVendedor`,
 1 AS `IdRuta`,
 1 AS `IdLinea`,
 1 AS `NomLinea`,
 1 AS `IdMarca`,
 1 AS `Anulado`,
 1 AS `Moneda`,
 1 AS `TC`,
 1 AS `Eliminado`*/;

--
-- Temporary table structure for view `vfactu_lin`
--

/*!50001 DROP VIEW IF EXISTS `vfactu_lin`*/;
/*!50001 CREATE VIEW `vfactu_lin` AS SELECT 
 1 AS `NomLinea`,
 1 AS `Fecha`,
 1 AS `Abrev`,
 1 AS `NSerie`,
 1 AS `NDocumento`,
 1 AS `IdDocFis`,
 1 AS `IdFPago`,
 1 AS `IdCliPro`,
 1 AS `NomCliPro`,
 1 AS `IdProducto`,
 1 AS `NomProducto`,
 1 AS `Unid`,
 1 AS `DescriPrec`,
 1 AS `PrecioIGV`,
 1 AS `SubTotal`,
 1 AS `Contado`,
 1 AS `Credito`,
 1 AS `IdVendedor`,
 1 AS `IdRuta`,
 1 AS `IdLinea`,
 1 AS `IdMarca`,
 1 AS `Anulado`,
 1 AS `Moneda`,
 1 AS `TC`,
 1 AS `Eliminado`*/;

--
-- Temporary table structure for view `vpago_clte`
--

/*!50001 DROP VIEW IF EXISTS `vpago_clte`*/;
/*!50001 CREATE VIEW `vpago_clte` AS SELECT 
 1 AS `IdTienda`,
 1 AS `IdCliPro`,
 1 AS `NomCliPro`,
 1 AS `NDocPago`,
 1 AS `DescMedioPago`,
 1 AS `NroLetra`,
 1 AS `Fecha`,
 1 AS `Monto`,
 1 AS `Moneda`,
 1 AS `TC`,
 1 AS `NOperacion`,
 1 AS `Banco`,
 1 AS `Lugar`,
 1 AS `Abrev`,
 1 AS `NSerie`,
 1 AS `NDocumento`,
 1 AS `Eliminado`*/;

--
-- Temporary table structure for view `vpago_prov`
--

/*!50001 DROP VIEW IF EXISTS `vpago_prov`*/;
/*!50001 CREATE VIEW `vpago_prov` AS SELECT 
 1 AS `IdTienda`,
 1 AS `IdCliPro`,
 1 AS `NomCliPro`,
 1 AS `NDocPago`,
 1 AS `DescMedioPago`,
 1 AS `NroLetra`,
 1 AS `Fecha`,
 1 AS `Monto`,
 1 AS `Moneda`,
 1 AS `TC`,
 1 AS `NOperacion`,
 1 AS `Banco`,
 1 AS `Lugar`,
 1 AS `Abrev`,
 1 AS `NSerie`,
 1 AS `NDocumento`,
 1 AS `Eliminado`*/;

--
-- Temporary table structure for view `vstock`
--

/*!50001 DROP VIEW IF EXISTS `vstock`*/;
/*!50001 CREATE VIEW `vstock` AS SELECT 
 1 AS `IdTienda`,
 1 AS `IdAlmacen`,
 1 AS `IdProducto`,
 1 AS `IdCodBar`,
 1 AS `NomProducto`,
 1 AS `LPC`,
 1 AS `StockAct`,
 1 AS `StockDisp`,
 1 AS `Unidad`,
 1 AS `Und_Disp`,
 1 AS `AbrevU`,
 1 AS `Fraccion`,
 1 AS `Fra_Disp`,
 1 AS `AbrevF`,
 1 AS `Precio_Detalle`,
 1 AS `Precio_Mayor`,
 1 AS `Precio_Especial`,
 1 AS `Capacidad`,
 1 AS `Peso`,
 1 AS `IdCliPro`,
 1 AS `IdLinea`,
 1 AS `IdMarca`,
 1 AS `Inactivo`*/;

--
-- Temporary table structure for view `vutilidad`
--

/*!50001 DROP VIEW IF EXISTS `vutilidad`*/;
/*!50001 CREATE VIEW `vutilidad` AS SELECT 
 1 AS `IdCliPro`,
 1 AS `NomCliPro`,
 1 AS `IdTienda`,
 1 AS `IdAlmacen`,
 1 AS `IdDocFis`,
 1 AS `Abrev`,
 1 AS `NSerie`,
 1 AS `NDocumento`,
 1 AS `Fecha`,
 1 AS `NomProducto`,
 1 AS `Unid`,
 1 AS `DescriPrec`,
 1 AS `Margen`,
 1 AS `Moneda`,
 1 AS `TC`,
 1 AS `IdVendedor`,
 1 AS `IdLinea`,
 1 AS `Servicio`,
 1 AS `Anulado`,
 1 AS `Eliminado`*/;

--
-- Table structure for table `wboton`
--

CREATE TABLE `wboton` (
  `IdBoton` int(11) NOT NULL AUTO_INCREMENT,
  `Nombre` varchar(22) NOT NULL,
  PRIMARY KEY (`IdBoton`),
  UNIQUE KEY `Nombre` (`Nombre`),
  KEY `IdBoton` (`IdBoton`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `wboton`
--

INSERT INTO `wboton` VALUES (10,'Acceso'),(4,'Anular'),(11,'Detalle...'),(3,'Eliminar'),(14,'EliminarDetalle'),(6,'Exportar'),(5,'Imprimir'),(2,'Modificar'),(13,'ModificarDetalle'),(1,'Nuevo'),(12,'NuevoDetalle');

--
-- Table structure for table `wdiabton`
--

CREATE TABLE `wdiabton` (
  `IdDialogo` int(11) NOT NULL,
  `IdBoton` int(11) NOT NULL,
  PRIMARY KEY (`IdDialogo`,`IdBoton`),
  KEY `IdBotono` (`IdBoton`),
  KEY `IdDialogo` (`IdDialogo`),
  CONSTRAINT `wBoton1wDiaBton1` FOREIGN KEY (`IdBoton`) REFERENCES `wboton` (`IdBoton`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `wdiabton`
--

INSERT INTO `wdiabton` VALUES (1,1),(2,1),(3,1),(4,1),(5,1),(6,1),(7,1),(8,1),(9,1),(10,1),(12,1),(13,1),(14,1),(15,1),(16,1),(21,1),(23,1),(24,1),(25,1),(27,1),(30,1),(31,1),(32,1),(33,1),(1,2),(2,2),(3,2),(4,2),(5,2),(6,2),(7,2),(8,2),(9,2),(10,2),(12,2),(13,2),(14,2),(15,2),(16,2),(21,2),(23,2),(24,2),(25,2),(27,2),(30,2),(31,2),(32,2),(33,2),(1,3),(2,3),(3,3),(4,3),(5,3),(6,3),(7,3),(8,3),(9,3),(10,3),(12,3),(13,3),(14,3),(15,3),(16,3),(21,3),(23,3),(24,3),(25,3),(27,3),(30,3),(31,3),(32,3),(33,3),(1,4),(2,4),(3,4),(4,4),(5,4),(6,4),(7,4),(8,4),(9,4),(10,4),(12,4),(13,4),(14,4),(15,4),(16,4),(21,4),(23,4),(24,4),(25,4),(27,4),(30,4),(31,4),(32,4),(33,4),(1,5),(2,5),(3,5),(4,5),(5,5),(6,5),(7,5),(8,5),(9,5),(10,5),(12,5),(13,5),(14,5),(15,5),(16,5),(21,5),(23,5),(24,5),(25,5),(27,5),(30,5),(31,5),(32,5),(33,5),(1,6),(2,6),(3,6),(4,6),(5,6),(6,6),(7,6),(8,6),(9,6),(10,6),(12,6),(13,6),(14,6),(15,6),(16,6),(21,6),(23,6),(24,6),(25,6),(27,6),(30,6),(31,6),(32,6),(33,6),(1,10),(2,10),(3,10),(4,10),(5,10),(6,10),(7,10),(8,10),(9,10),(10,10),(12,10),(13,10),(14,10),(15,10),(16,10),(21,10),(23,10),(24,10),(25,10),(27,10),(30,10),(31,10),(32,10),(33,10),(37,10),(38,10),(39,10),(41,10),(42,10),(43,10),(50,10),(51,10),(52,10),(53,10),(56,10),(57,10),(58,10),(59,10);

--
-- Table structure for table `wdialogo`
--

CREATE TABLE `wdialogo` (
  `IdDialogo` int(11) NOT NULL AUTO_INCREMENT,
  `Dialogo` varchar(30) NOT NULL,
  PRIMARY KEY (`IdDialogo`),
  UNIQUE KEY `Iddialogo` (`IdDialogo`),
  UNIQUE KEY `Dialogo` (`Dialogo`)
) ENGINE=InnoDB AUTO_INCREMENT=60 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `wdialogo`
--

INSERT INTO `wdialogo` VALUES (59,'Acerca De...'),(54,'Actualizar Stock'),(4,'Almacenes'),(2,'Clientes'),(30,'Cobranza'),(21,'Compras'),(58,'Configuracion'),(52,'Crear Backup'),(15,'Cuentas'),(12,'Documentos'),(3,'Empleados'),(5,'Empresas'),(55,'Genera Código de Barras'),(37,'Inf. Compras'),(42,'Inf. Creditos por Cobrar'),(38,'Inf. Creditos por Pagar'),(51,'Inf. Liquidacion de Caja'),(50,'Inf. Movimiento de Caja'),(43,'Inf. Pago de Clientes'),(39,'Inf. Pagos de Proveedores'),(41,'Inf. Ventas'),(8,'Lineas'),(9,'Marcas'),(10,'Modelos'),(33,'Movimientos de Caja'),(24,'Nota de Credito Compra'),(31,'Nota de Credito Ventas'),(25,'Nota de Debito Compra'),(32,'Nota de Debito Ventas'),(13,'Operaciones'),(23,'Pagos'),(6,'Productos'),(1,'Proveedores'),(16,'Relacionar Operación / Cuenta'),(53,'Restaurar Backup'),(57,'Seguridad'),(27,'Servicios'),(14,'Tipo de Cuentas'),(7,'Unidad de Medida'),(56,'Usuarios');

--
-- Table structure for table `wind_docfis`
--

CREATE TABLE `wind_docfis` (
  `IdWind` tinyint(4) NOT NULL,
  `IdDocFis` tinyint(4) NOT NULL,
  `Fijo` tinyint(1) NOT NULL,
  PRIMARY KEY (`IdWind`,`IdDocFis`),
  KEY `IdDocFis` (`IdDocFis`),
  KEY `IdWind` (`IdWind`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `wind_docfis`
--

INSERT INTO `wind_docfis` VALUES (0,30,0),(1,1,0),(1,3,0),(1,4,0),(1,9,0),(1,12,0),(1,29,0),(1,40,0),(2,1,0),(2,3,0),(2,12,0),(3,9,0),(6,7,0),(7,8,0),(8,31,0);

--
-- Table structure for table `window`
--

CREATE TABLE `window` (
  `IdWind` tinyint(3) unsigned NOT NULL,
  `NomWind` varchar(30) NOT NULL,
  PRIMARY KEY (`IdWind`),
  KEY `NomWind` (`IdWind`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `window`
--

INSERT INTO `window` VALUES (0,'Proformas'),(1,'Compras'),(2,'Ventas'),(3,'Kardex'),(4,'Traslado Interno'),(5,'Traslado Exteno'),(6,'Notas Crédito'),(7,'Notas Débito'),(8,'Orden de Compra');

--
-- Table structure for table `wpermiso`
--

CREATE TABLE `wpermiso` (
  `Usuario` varchar(10) NOT NULL,
  `IdDialogo` int(11) NOT NULL,
  `IdBoton` int(11) NOT NULL,
  `Estado` smallint(6) NOT NULL,
  PRIMARY KEY (`Usuario`,`IdDialogo`,`IdBoton`),
  KEY `IdBoton` (`IdBoton`),
  KEY `IdDialogo` (`IdDialogo`),
  KEY `Usuario` (`Usuario`),
  KEY `{F35102C1-8811-48D1-9A56-C80D136ABB42}` (`IdDialogo`,`IdBoton`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `wpermiso`
--

INSERT INTO `wpermiso` VALUES ('Admin',1,1,1),('Admin',1,2,1),('Admin',1,3,1),('Admin',1,4,1),('Admin',1,5,1),('Admin',1,6,1),('Admin',1,10,1),('Admin',2,1,1),('Admin',2,2,1),('Admin',2,3,1),('Admin',2,4,1),('Admin',2,5,1),('Admin',2,6,1),('Admin',2,10,1),('Admin',3,1,1),('Admin',3,2,1),('Admin',3,3,1),('Admin',3,4,1),('Admin',3,5,1),('Admin',3,6,1),('Admin',3,10,1),('Admin',4,1,1),('Admin',4,2,1),('Admin',4,3,1),('Admin',4,4,1),('Admin',4,5,1),('Admin',4,6,1),('Admin',4,10,1),('Admin',5,1,1),('Admin',5,2,1),('Admin',5,3,1),('Admin',5,4,1),('Admin',5,5,1),('Admin',5,6,1),('Admin',5,10,1),('Admin',6,1,1),('Admin',6,2,1),('Admin',6,3,1),('Admin',6,4,1),('Admin',6,5,1),('Admin',6,6,1),('Admin',6,10,1),('Admin',7,1,1),('Admin',7,2,1),('Admin',7,3,1),('Admin',7,4,1),('Admin',7,5,1),('Admin',7,6,1),('Admin',7,10,1),('Admin',8,1,1),('Admin',8,2,1),('Admin',8,3,1),('Admin',8,4,1),('Admin',8,5,1),('Admin',8,6,1),('Admin',8,10,1),('Admin',9,1,1),('Admin',9,2,1),('Admin',9,3,1),('Admin',9,4,1),('Admin',9,5,1),('Admin',9,6,1),('Admin',9,10,1),('Admin',10,1,1),('Admin',10,2,1),('Admin',10,3,1),('Admin',10,4,1),('Admin',10,5,1),('Admin',10,6,1),('Admin',10,10,1),('Admin',12,1,1),('Admin',12,2,1),('Admin',12,3,1),('Admin',12,4,1),('Admin',12,5,1),('Admin',12,6,1),('Admin',12,10,1),('Admin',13,1,1),('Admin',13,2,1),('Admin',13,3,1),('Admin',13,4,1),('Admin',13,5,1),('Admin',13,6,1),('Admin',13,10,1),('Admin',14,1,1),('Admin',14,2,1),('Admin',14,3,1),('Admin',14,4,1),('Admin',14,5,1),('Admin',14,6,1),('Admin',14,10,1),('Admin',15,1,1),('Admin',15,2,1),('Admin',15,3,1),('Admin',15,4,1),('Admin',15,5,1),('Admin',15,6,1),('Admin',15,10,1),('Admin',16,1,1),('Admin',16,2,1),('Admin',16,3,1),('Admin',16,4,1),('Admin',16,5,1),('Admin',16,6,1),('Admin',16,10,1),('Admin',21,1,1),('Admin',21,2,1),('Admin',21,3,1),('Admin',21,4,1),('Admin',21,5,1),('Admin',21,6,1),('Admin',21,10,1),('Admin',23,1,1),('Admin',23,2,1),('Admin',23,3,1),('Admin',23,4,1),('Admin',23,5,1),('Admin',23,6,1),('Admin',23,10,1),('Admin',24,1,1),('Admin',24,2,1),('Admin',24,3,1),('Admin',24,4,1),('Admin',24,5,1),('Admin',24,6,1),('Admin',24,10,1),('Admin',25,1,1),('Admin',25,2,1),('Admin',25,3,1),('Admin',25,4,1),('Admin',25,5,1),('Admin',25,6,1),('Admin',25,10,1),('Admin',27,1,1),('Admin',27,2,1),('Admin',27,3,1),('Admin',27,4,1),('Admin',27,5,1),('Admin',27,6,1),('Admin',27,10,1),('Admin',30,1,1),('Admin',30,2,1),('Admin',30,3,1),('Admin',30,4,1),('Admin',30,5,1),('Admin',30,6,1),('Admin',30,10,1),('Admin',31,1,1),('Admin',31,2,1),('Admin',31,3,1),('Admin',31,4,1),('Admin',31,5,1),('Admin',31,6,1),('Admin',31,10,1),('Admin',32,1,1),('Admin',32,2,1),('Admin',32,3,1),('Admin',32,4,1),('Admin',32,5,1),('Admin',32,6,1),('Admin',32,10,1),('Admin',33,1,1),('Admin',33,2,1),('Admin',33,3,1),('Admin',33,4,1),('Admin',33,5,1),('Admin',33,6,1),('Admin',33,10,1),('Admin',37,10,1),('Admin',38,10,1),('Admin',39,10,1),('Admin',41,10,1),('Admin',42,10,1),('Admin',43,10,1),('Admin',50,10,1),('Admin',51,10,1),('Admin',52,10,1),('Admin',53,10,1),('Admin',56,10,1),('Admin',57,10,1),('Admin',58,10,1),('Admin',59,10,1),('VENTAS',1,1,1),('VENTAS',1,2,1),('VENTAS',1,3,1),('VENTAS',1,4,1),('VENTAS',1,5,1),('VENTAS',1,6,1),('VENTAS',1,10,1),('VENTAS',2,1,1),('VENTAS',2,2,1),('VENTAS',2,3,1),('VENTAS',2,4,1),('VENTAS',2,5,1),('VENTAS',2,6,1),('VENTAS',2,10,1),('VENTAS',3,1,1),('VENTAS',3,2,1),('VENTAS',3,3,1),('VENTAS',3,4,1),('VENTAS',3,5,1),('VENTAS',3,6,1),('VENTAS',3,10,1),('VENTAS',4,1,1),('VENTAS',4,2,1),('VENTAS',4,3,1),('VENTAS',4,4,1),('VENTAS',4,5,1),('VENTAS',4,6,1),('VENTAS',4,10,1),('VENTAS',5,1,1),('VENTAS',5,2,1),('VENTAS',5,3,1),('VENTAS',5,4,1),('VENTAS',5,5,1),('VENTAS',5,6,1),('VENTAS',5,10,1),('VENTAS',6,1,1),('VENTAS',6,2,1),('VENTAS',6,3,1),('VENTAS',6,4,1),('VENTAS',6,5,1),('VENTAS',6,6,1),('VENTAS',6,10,1),('VENTAS',7,1,1),('VENTAS',7,2,1),('VENTAS',7,3,1),('VENTAS',7,4,1),('VENTAS',7,5,1),('VENTAS',7,6,1),('VENTAS',7,10,1),('VENTAS',8,1,1),('VENTAS',8,2,1),('VENTAS',8,3,1),('VENTAS',8,4,1),('VENTAS',8,5,1),('VENTAS',8,6,1),('VENTAS',8,10,1),('VENTAS',9,1,1),('VENTAS',9,2,1),('VENTAS',9,3,1),('VENTAS',9,4,1),('VENTAS',9,5,1),('VENTAS',9,6,1),('VENTAS',9,10,1),('VENTAS',10,1,1),('VENTAS',10,2,1),('VENTAS',10,3,1),('VENTAS',10,4,1),('VENTAS',10,5,1),('VENTAS',10,6,1),('VENTAS',10,10,1),('VENTAS',12,1,1),('VENTAS',12,2,1),('VENTAS',12,3,1),('VENTAS',12,4,1),('VENTAS',12,5,1),('VENTAS',12,6,1),('VENTAS',12,10,1),('VENTAS',13,1,1),('VENTAS',13,2,1),('VENTAS',13,3,1),('VENTAS',13,4,1),('VENTAS',13,5,1),('VENTAS',13,6,1),('VENTAS',13,10,1),('VENTAS',14,1,1),('VENTAS',14,2,1),('VENTAS',14,3,1),('VENTAS',14,4,1),('VENTAS',14,5,1),('VENTAS',14,6,1),('VENTAS',14,10,1),('VENTAS',15,1,1),('VENTAS',15,2,1),('VENTAS',15,3,1),('VENTAS',15,4,1),('VENTAS',15,5,1),('VENTAS',15,6,1),('VENTAS',15,10,1),('VENTAS',16,1,1),('VENTAS',16,2,1),('VENTAS',16,3,1),('VENTAS',16,4,1),('VENTAS',16,5,1),('VENTAS',16,6,1),('VENTAS',16,10,1),('VENTAS',21,1,1),('VENTAS',21,2,1),('VENTAS',21,3,1),('VENTAS',21,4,1),('VENTAS',21,5,1),('VENTAS',21,6,1),('VENTAS',21,10,1),('VENTAS',23,1,1),('VENTAS',23,2,1),('VENTAS',23,3,1),('VENTAS',23,4,1),('VENTAS',23,5,1),('VENTAS',23,6,1),('VENTAS',23,10,1),('VENTAS',24,1,1),('VENTAS',24,2,1),('VENTAS',24,3,1),('VENTAS',24,4,1),('VENTAS',24,5,1),('VENTAS',24,6,1),('VENTAS',24,10,1),('VENTAS',25,1,1),('VENTAS',25,2,1),('VENTAS',25,3,1),('VENTAS',25,4,1),('VENTAS',25,5,1),('VENTAS',25,6,1),('VENTAS',25,10,1),('VENTAS',27,1,1),('VENTAS',27,2,1),('VENTAS',27,3,1),('VENTAS',27,4,1),('VENTAS',27,5,1),('VENTAS',27,6,1),('VENTAS',27,10,1),('VENTAS',30,1,1),('VENTAS',30,2,1),('VENTAS',30,3,1),('VENTAS',30,4,1),('VENTAS',30,5,1),('VENTAS',30,6,1),('VENTAS',30,10,1),('VENTAS',31,1,1),('VENTAS',31,2,1),('VENTAS',31,3,1),('VENTAS',31,4,1),('VENTAS',31,5,1),('VENTAS',31,6,1),('VENTAS',31,10,1),('VENTAS',32,1,1),('VENTAS',32,2,1),('VENTAS',32,3,1),('VENTAS',32,4,1),('VENTAS',32,5,1),('VENTAS',32,6,1),('VENTAS',32,10,1),('VENTAS',33,1,1),('VENTAS',33,2,1),('VENTAS',33,3,1),('VENTAS',33,4,1),('VENTAS',33,5,1),('VENTAS',33,6,1),('VENTAS',33,10,1),('VENTAS',37,10,1),('VENTAS',38,10,1),('VENTAS',39,10,1),('VENTAS',41,10,1),('VENTAS',42,10,1),('VENTAS',43,10,1),('VENTAS',50,10,1),('VENTAS',51,10,1),('VENTAS',52,10,1),('VENTAS',53,10,1),('VENTAS',56,10,1),('VENTAS',57,10,1),('VENTAS',58,10,1),('VENTAS',59,10,1);

--
-- Dumping routines for database 'tchalpon_transpjr'
--
/*!50003 DROP PROCEDURE IF EXISTS `Actualiza_CostoPromedio` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `Actualiza_CostoPromedio`(_IdProducto varchar(10))
BEGIN
      SELECT IdProducto, Costo From costo_promedio Where IdProducto = _IdProducto Order By Fecha DESC;
    END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `Actualiza_Stock` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `Actualiza_Stock`(_IdAlmacen varCHAR (2), _IdProducto varCHAR (10))
BEGIN
   START TRANSACTION;
     UPDATE productoalmacen SET StockAct = (SELECT SUM(IF((`Entrada` = 0),-(`Salida`),`Entrada`)) AS sAct FROM kardex WHERE IdAlmacen = _IdAlmacen AND IdProducto = _IdProducto and Eliminado = 0),
         StockDisp = (SELECT SUM(`Recogido`) AS sDisp FROM kardex WHERE IdAlmacen = _IdAlmacen AND IdProducto = _IdProducto AND Eliminado = 0)
       WHERE IdAlmacen = _IdAlmacen AND IdProducto = _IdProducto;
     SELECT IdProducto, StockAct, StockDisp, Capacidad, AbrevU, AbrevF, LPC, Costo FROM cproductoalmacen
       WHERE IdAlmacen = _IdAlmacen AND IdProducto = _IdProducto ORDER BY IdProducto;  
   COMMIT;
 END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `Actualiza_UltCompra` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `Actualiza_UltCompra`(_IdProducto VARCHAR(10))
BEGIN
       SELECT * FROM cultimacompra WHERE IdProducto = _IdProducto ORDER BY Fecha DESC;
    END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `Buscar_Cltes` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `Buscar_Cltes`(_IdTienda VARCHAR(3))
BEGIN
      SELECT IdCliPro, NomCliPro, Direccion, RUC, DNI FROM clientes WHERE (Eliminado = 0) AND (Inactivo = 0)
       ORDER BY NomCliPro;
    END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `Buscar_Linea` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `Buscar_Linea`()
BEGIN
      SELECT IdLinea, NomLinea FROM linea WHERE Eliminado = 0;
    END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `Buscar_Marca` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `Buscar_Marca`()
BEGIN
      SELECT IdMarca, NomMarca FROM marca WHERE Eliminado = 0;
    END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `Buscar_Modelo` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `Buscar_Modelo`()
BEGIN
      SELECT IdModelo, NomModelo FROM modelo WHERE Eliminado = 0;
    END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `Buscar_ProdInf` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `Buscar_ProdInf`(_IdTienda VARCHAR(3))
BEGIN
      SELECT IdProducto, NomProducto, IdCodBar, IdCodExt FROM producto WHERE (Eliminado = 0) AND (Inactivo = 0);
    END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `Buscar_Productos` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `Buscar_Productos`(_IdTienda VARCHAR(3), _IdAlmacen VARCHAR(2), _Filtro boolean)
BEGIN
    if _Filtro then
      SELECT * FROM caplicado_equipo WHERE (IdAlmacen = _IdAlmacen AND Eliminado = 0 AND Inactivo = 0) ORDER BY NomProducto;
     else
      SELECT * FROM cproductoalmacen WHERE (IdAlmacen = _IdAlmacen AND Eliminado = 0 AND Inactivo = 0) ORDER BY NomProducto; 
    end if;
  END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `Buscar_Prov` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `Buscar_Prov`(_IdTienda VARCHAR(3))
BEGIN
      SELECT IdCliPro, NomCliPro, Direccion, RUC, DNI FROM proveedores WHERE (IdTienda = _IdTienda) AND (Eliminado = 0) AND (Inactivo = 0)
       ORDER BY NomCliPro;
    END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `Buscar_Und` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `Buscar_Und`()
BEGIN
      SELECT IdUnidad, Unidades FROM unidad WHERE Eliminado = 0;
    END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `Buscar_Vend` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `Buscar_Vend`(_IdTienda VARCHAR(3))
BEGIN
      SELECT IdVendedor, NomVendedor, Direccion, DNI FROM vendedor WHERE (IdTienda = _IdTienda) AND (Eliminado = 0) AND (Inactivo = 0);
    END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `Consulta_TKardex` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `Consulta_TKardex`(_IdTienda VARCHAR(3), _IdAlmacen VARCHAR(2), _IdProducto VARCHAR(10))
BEGIN
  SELECT Kr.IdTienda, Kr.IdAlmacen, IF(Kr.Entrada>0,'E','S') AS Tipo, FORMAT(Kr.IdDocFis,'00') AS IdDocFis, Kr.IdProducto, Pr.NomProducto, Kr.Fecha, 
   DF.Abrev, Kr.Nserie, Kr.NDocumento, FORMAT(Pr.IdUnidad,'00') AS IdUnd, FORMAT(Pr.IdFraccion,'00') AS IdFra, 
   TRUNCATE((Kr.Entrada/Pr.Capacidad),0) AS UndEnt, U.Abrev AS UndE, (Kr.Entrada - (TRUNCATE((Kr.Entrada/Pr.Capacidad),0)*Pr.Capacidad)) AS FraEnt, F.Abrev AS FraE, Kr.Costo AS PreEnt, ROUND((Kr.Entrada/Pr.Capacidad)*Kr.Costo,2) AS TotEnt, 
   TRUNCATE((Kr.Salida/Pr.Capacidad),0) AS UndSal, U.Abrev AS UndS, (Kr.Salida - (TRUNCATE((Kr.Salida/Pr.Capacidad),0)*Pr.Capacidad)) AS FraSal, F.Abrev AS FraS, Kr.PrecioSalida, ROUND((Kr.Salida/Pr.Capacidad)*Kr.PrecioSalida,2) AS TotSal,
   Kr.RazSoc, Pr.Capacidad, IF(Entrada=0,-Salida,Entrada) AS SubSaldo, Kr.Costo 
   FROM unidad AS F INNER JOIN ((docfiscal AS DF INNER JOIN (producto AS Pr INNER JOIN kardex AS Kr ON Pr.IdProducto = Kr.IdProducto) 
   ON DF.IdDocFis = Kr.IdDocFis) INNER JOIN unidad AS U ON Pr.IdUnidad = U.IdUnidad) ON F.IdUnidad = Pr.IdFraccion
  WHERE (Kr.IdTienda = _IdTienda) AND (Kr.IdAlmacen = _IdAlmacen) AND (Kr.IdProducto = _IdProducto) AND (Kr.Eliminado = 0); 
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `Eliminar_Compra` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `Eliminar_Compra`(_IdCompra INT(14), _IdTienda VARCHAR(3), _IdCliPro VARCHAR(8),
      _NSerie VARCHAR(4), _NDocumento VARCHAR(20), _IdDocFis TINYINT(3), _MovKardex TINYINT(1), _IdSesion INT(11), _IdWindow VARCHAR(3))
BEGIN
  DECLARE cNVenta VARCHAR (30);
  DECLARE cIdDocFis_R TINYINT(3);
  START TRANSACTION; 
     UPDATE compra SET Eliminado = 1 WHERE IdCompra = _IdCompra AND IdTienda = _IdTienda;
     UPDATE d_compra SET Eliminado = 1 WHERE IdCompra = _IdCompra AND IdTienda = _IdTienda;
     CALL Actualiza_UltCompra(_IdCompra);
     IF _MovKardex = 1 THEN
      DELETE FROM kardex WHERE (NSerie = _NSerie) AND (NDocumento = _NDocumento) AND (IdDocFis = _IdDocFis) AND (IdCliPro = _IdCliPro) AND (IdTienda = _IdTienda);
     END IF;
     SET cNVenta = CONCAT(_IdDocFis, _NSerie,  "-", _NDocumento); 
     DELETE FROM d_cuenta WHERE (NDocumento = cNVenta) AND (IdTienda = _IdTienda);
  COMMIT; 
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `Eliminar_Guia` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `Eliminar_Guia`(_IdGuia INT(14), _IdTienda VARCHAR(3),
      _NSerie VARCHAR(4), _NDocumento VARCHAR(20), _IdDocFis TINYINT(3), _MovKardex TINYINT(1), _IdSesion INT(11), _IdWindow VARCHAR(3))
BEGIN
   DECLARE cIdDocFis_R TINYINT(3);
   START TRANSACTION; 
     UPDATE orden_alm SET Eliminado = 1 WHERE IdGuia = _IdGuia AND IdTienda = _IdTienda;
     UPDATE d_ordenalm SET Eliminado = 1 WHERE IdGuia = _IdGuia AND IdTienda = _IdTienda;
     IF _MovKardex = 1 THEN
       DELETE FROM kardex WHERE (NSerie = _NSerie) AND (NDocumento = _NDocumento) AND (IdDocFis = _IdDocFis) AND (IdTienda = _IdTienda);
     END IF;
     SELECT IFNULL(MAX(IdDoc_Rel), 0) INTO cIdDocFis_R FROM td_guiar WHERE IdSesion = _IdSesion AND IdWindow = _IdWindow AND Eliminado = 0;
     UPDATE d_factu INNER JOIN td_guiar ON IdVenta = td_guiar.IdVta_Rel AND d_factu.IdProducto = td_guiar.IdProducto 
      SET IdDoc_Rel = NULL WHERE td_guiar.IdSesion = _IdSesion AND td_guiar.IdWindow = _IdWindow AND td_factu.Eliminado = 0;         
     UPDATE factu INNER JOIN td_guiar ON IdVenta = td_guiar.IdVta_Rel
      SET Canjeado = 0 WHERE td_guiar.IdSesion = _IdSesion AND td_guiar.IdWindow = _IdWindow AND td_factu.Eliminado = 0;         
     Update d_guiar Set IdVta_Rel = Null WHERE IdGuia = _IdGuia;    
  COMMIT;
 END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `Eliminar_LxP` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `Eliminar_LxP`(_IdLetra INT(14), _IdTienda VARCHAR(3))
BEGIN
  START TRANSACTION; 
      UPDATE letrasxpagar SET Eliminado = 1 WHERE IdLetra = _IdLetra AND IdTienda = _IdTienda;
  COMMIT; 
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `Eliminar_OrdenAlm` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `Eliminar_OrdenAlm`(_IdOrden INT(14), _IdTienda VARCHAR(3),
      _NSerie VARCHAR(4), _NDocumento VARCHAR(20), _IdDocFis TINYINT(3), _MovKardex TINYINT(1))
BEGIN
  START TRANSACTION; 
     UPDATE orden_alm SET Eliminado = 1 WHERE IdOrden = _IdOrden;
     UPDATE d_ordenalm SET Eliminado = 1 WHERE IdOrden = _IdOrden;
     IF _MovKardex = 1 THEN
       DELETE FROM kardex WHERE (NSerie = _NSerie) AND (NDocumento = _NDocumento) AND (IdDocFis = _IdDocFis) AND (IdTienda = _IdTienda);
     END IF;
  COMMIT;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `Eliminar_Venta` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `Eliminar_Venta`(_IdVenta INT(14), _IdTienda VARCHAR(3), _IdCliente VARCHAR(8),
    _NSerie VARCHAR(4), _NDocumento VARCHAR(20), _IdDocFis TINYINT(3), _MovKardex TINYINT(1), _IdSesion INT(11), _IdWindow VARCHAR(3))
BEGIN
  DECLARE cNVenta VARCHAR (30);
  DECLARE cIdDocFis_R TINYINT(3);
  START TRANSACTION; 
     UPDATE factu SET Eliminado = 1 WHERE IdVenta = _IdVenta AND IdTienda = _IdTienda;
     UPDATE d_factu SET Eliminado = 1 WHERE IdVenta = _IdVenta AND IdTienda = _IdTienda;
     IF _MovKardex = 1 THEN
      DELETE FROM kardex WHERE (NSerie = _NSerie) AND (NDocumento = _NDocumento) AND (IdDocFis = _IdDocFis) AND (IdCliPro = _IdCliente) AND (IdTienda = _IdTienda);
     END IF;
     SELECT IFNULL(MAX(IdDoc_Rel), 0) INTO cIdDocFis_R FROM td_factu WHERE IdSesion = _IdSesion AND IdWindow = _IdWindow AND Eliminado = 0;
     IF cIdDocFis_R = 9 THEN
       UPDATE d_guiar INNER JOIN td_factu ON IdGuia = td_factu.IdDoc_Rel AND d_guiar.IdProducto = td_factu.IdProducto 
        SET IdVta_Rel = NULL WHERE td_factu.IdSesion = _IdSesion AND td_factu.IdWindow = _IdWindow AND td_factu.Eliminado = 0;         
       UPDATE guiar INNER JOIN td_factu ON IdGuia = td_factu.IdDoc_Rel
        SET Canjeado = 0 WHERE td_factu.IdSesion = _IdSesion AND td_factu.IdWindow = _IdWindow AND td_factu.Eliminado = 0;
     END IF ;
     IF cIdDocFis_R = 30 THEN
       UPDATE d_proforma INNER JOIN td_factu ON IdProforma = td_factu.IdDoc_Rel AND d_proforma.IdProducto = td_factu.IdProducto 
        SET IdVta_Rel = NULL WHERE td_factu.IdSesion = _IdSesion AND td_factu.IdWindow = _IdWindow AND td_factu.Eliminado = 0;  
       UPDATE proforma INNER JOIN td_factu ON IdProforma = td_factu.IdDoc_Rel
        SET Canjeado = 0 WHERE td_factu.IdSesion = _IdSesion AND td_factu.IdWindow = _IdWindow AND td_factu.Eliminado = 0;  
     END IF;
     UPDATE d_factu SET IdDocFis_Rel = NULL, IdDoc_Rel = '' WHERE IdVenta = _IdVenta;  
     SET cNVenta = CONCAT(_IdDocFis, _NSerie,  "-", _NDocumento); 
     DELETE FROM d_cuenta WHERE (NDocumento = cNVenta) AND (IdTienda = _IdTienda);
  COMMIT;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `IM_Compra` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `IM_Compra`(_cEstado VARCHAR(10), _IdCompra INT(14), _IdTienda VARCHAR(3), _IdAlmacen VARCHAR(2), _NSerie VARCHAR(4), _NDocumento VARCHAR(20),
    _IdDocFis TINYINT(3), _IdProveedor VARCHAR(8), _NomProveedor VARCHAR(150), _Fecha DATE, _FechaLlegada DATE, _cFechaVenc DATE, _IdFPago TINYINT(3), _OpMon SMALLINT(1),
    _TC DOUBLE, _IdCta VARCHAR(15), _NomCta VARCHAR(150), _IncIGV TINYINT(1), _IGV DOUBLE, _GTIGV DOUBLE, _GTotal DOUBLE, _IncDcto TINYINT(1), _IncPer TINYINT(1),
    _Dscto DOUBLE, _Percep DOUBLE, _Dcto DOUBLE, _Percepcion DOUBLE, _NGuiaR VARCHAR(25), _ChkLetras TINYINT(1), _MovConta TINYINT(1), _MovKardex TINYINT(1),
    _OBS LONGTEXT, _IdUsuario SMALLINT(6), _IdSesion INT(11), _IdWindow VARCHAR(3), _IdCliPro_Ant VARCHAR(8), _NSerie_Ant VARCHAR(4), _NDocumento_Ant VARCHAR(20),
    _IdDocFis_Ant TINYINT(3))
BEGIN
  DECLARE cNCompra VARCHAR (30);
  DECLARE cNCompra_Ant VARCHAR (30);
  START TRANSACTION; 
  SET cNCompra_Ant = CONCAT(_IdDocFis_Ant, _NSerie_Ant,  "-", _NDocumento_Ant);
  SET cNCompra = CONCAT(_IdDocFis, _NSerie,  "-", _NDocumento);
   IF _cEstado = 'NUEVO' THEN
     UPDATE producto JOIN td_compra ON producto.`IdProducto` = td_compra.`IdProducto`
     SET PC = producto.`LPC`, FechaC = producto.`LFechaC`, NDoc = producto.`LNDoc`, IdCliPro = _IdProveedor,
      producto.`PD` = td_compra.`PD`, producto.`PM` = td_compra.`PM`, producto.`PE` = td_compra.`PE`, producto.`PEM` = td_compra.`PEM`,
      producto.`Precio_Detalle` = IF(td_compra.`Precio_Detalle`>0,td_compra.`Precio_Detalle`,producto.`Precio_Detalle`), producto.`Precio_Mayor` = IF(td_compra.`Precio_Mayor`>0,td_compra.`Precio_Mayor`,producto.`Precio_Mayor`),
      producto.`Precio_Especial` = IF(td_compra.`Precio_Especial`>0,td_compra.`Precio_Especial`,producto.`Precio_Especial`), producto.`Precio_EspecialM` = IF(td_compra.`Precio_EspecialM`>0,td_compra.`Precio_EspecialM`,producto.`Precio_EspecialM`),
      producto.`Precio_DetalleF` = IF(td_compra.`Precio_DetalleF`>0,td_compra.`Precio_DetalleF`,producto.`Precio_DetalleF`), producto.`Precio_MayorF` = IF(td_compra.`Precio_MayorF`>0,td_compra.`Precio_MayorF`,producto.`Precio_MayorF`),
      producto.`Precio_EspecialF` = IF(td_compra.`Precio_EspecialF`>0,td_compra.`Precio_EspecialF`,producto.`Precio_EspecialF`), producto.`Precio_EspecialMF` = IF(td_compra.`Precio_EspecialMF`>0,td_compra.`Precio_EspecialMF`,producto.`Precio_EspecialMF`)
     WHERE IdSesion = _IdSesion AND IdWindow = _IdWindow AND td_compra.`Eliminado` = 0;
     INSERT INTO compra (IdCompra, IdTienda, IdAlmacen, NSerie, NDocumento, IdDocFis, IdCliPro, Fecha, FechaLlegada, FechaVenc, IdFPago,
      Moneda, TC, IncIGV, PIGV, IGV, ISC, Total, eDcto, ePercepcion, eFlete, eEstiba, Dcto, PDcto,
      Percepcion, PPercepcion, Flete, Estiba, GasRel, AboRel, NGuiaR, Cancelado, Letras, Transito, MovConta, MovKardex, Observacion, IdUsuario, DT)
     VALUES (_IdCompra, _IdTienda, _IdAlmacen, _NSerie, _NDocumento, _IdDocFis, _IdProveedor, _Fecha, _FechaLlegada, _cFechaVenc, _IdFPago,
      _OpMon, _TC, _IncIGV, _IGV, _GTIGV, 0, _GTotal, _IncDcto, _IncPer, 0, 0, _Dcto, _Dscto, _Percepcion,
      _Percep, 0, 0, 0, 0, _NGuiaR, IF(_IdFPago = 1, 1, 0), _ChkLetras, 0, _MovConta, _MovKardex, _OBS, _IdUsuario, NOW());
     INSERT INTO d_compra (IdCompra, IdTienda, IdAlmacen, NSerie, NDocumento, IdDocFis, IdCliPro, Fecha, IdProducto, Cantidad, Recogido,
      CapaPrec, DescriPrec, Precio_Bruto, Dscto, Precio, PrecioIGV, SubTotal, SubTotalIGV, Unid, Unid_Reco, GEL, Peso, PPercepcion, 
      Percepcion, Flete, Estiba, Dcto, NItem)
     SELECT _IdCompra, _IdTienda, _IdAlmacen, _NSerie, _NDocumento, _IdDocFis, _IdProveedor, _Fecha, IdProducto, Unid * CapaPrec, Unid_Reco * CapaPrec,
      CapaPrec, DescriPrec, Precio_Bruto, Dscto, Precio, PrecioIGV, SubTotal, SubTotalIGV, Unid, Unid_Reco, GEL, Peso, PPercepcion,
      Percepcion, Flete, Estiba, ((SubTotalIGV*_Dscto)/100), NItem FROM td_compra WHERE IdSesion = _IdSesion AND IdWindow = _IdWindow AND Eliminado = 0;
     IF _MovKardex = 1 THEN
       INSERT INTO kardex (IdTienda, NSerie, NDocumento, IdDocFis, IdProducto, IdAlmacen, IdOperacion, FechaEmi, Fecha, Automatico, Entrada, Salida, Recogido,
        Costo, PrecioSalida, CostoAct, Notas, DT, IdCliPro, RazSoc, Traslado, Transito, Observada, DocConformida, IdUsuario)
       SELECT _IdTienda, _NSerie, _NDocumento, _IdDocFis, IdProducto, _IdAlmacen, _IdWindow, _Fecha, _FechaLlegada, 1, Unid * CapaPrec, 0, Unid_Reco * CapaPrec,
        IF(_OpMon = 0,Precio, Precio*_TC), 0, IF(_OpMon = 0,Precio, Precio*_TC), _OBS, NOW(), _IdProveedor, _NomProveedor, 0, 0, 0, ' ', _IdUsuario FROM td_compra WHERE IdSesion = _IdSesion AND IdWindow = _IdWindow AND Eliminado = 0;
     END IF;
     IF _MovConta = 1 AND _IdFPago = 1 THEN
       IF _OpMon = 0 THEN       
         INSERT INTO d_cuenta (IdTienda, Codigo_Cuenta, NomCuenta, NDocumento, Fecha, IdOperacion, Abono_Soles, Cargo_Soles, Saldo_Soles,
          Abono_Dolar, Cargo_Dolar, Saldo_Dolar, IdCtaPartida, NomCtaPartida, Moneda , TC, Automatico, DT, IdUsuario)
         VALUE (_IdTienda, _IdCta, _NomCta, cNCompra, _Fecha, _IdWindow, 0, _GTotal, 0, 0, 0, 0, _IdProveedor, _NomProveedor, 0, _TC, 1, NOW(), _IdUsuario);
         INSERT INTO d_cuenta (IdTienda, Codigo_Cuenta, NomCuenta, NDocumento, Fecha, IdOperacion, Abono_Soles, Cargo_Soles, Saldo_Soles,
          Abono_Dolar, Cargo_Dolar, Saldo_Dolar, IdCtaPartida, NomCtaPartida, Moneda , TC, Automatico, DT, IdUsuario)
         VALUE (_IdTienda, _IdProveedor, _NomProveedor, cNCompra, _Fecha, _IdWindow, _GTotal, 0, 0, 0, 0, 0, _IdCta, _NomCta, 0, _TC, 1, NOW(), _IdUsuario);
        ELSE                    
         IF _OpMon = 1 THEN  
           INSERT INTO d_cuenta (IdTienda, Codigo_Cuenta, NomCuenta, NDocumento, Fecha, IdOperacion, Abono_Soles, Cargo_Soles, Saldo_Soles,
            Abono_Dolar, Cargo_Dolar, Saldo_Dolar, IdCtaPartida, NomCtaPartida, Moneda , TC, Automatico, DT, IdUsuario)
           VALUE (_IdTienda, _IdCta, _NomCta, cNCompra, _Fecha, _IdWindow, 0, 0, 0, 0, _GTotal, 0, _IdProveedor, _NomProveedor, 1, _TC, 1, NOW(), _IdUsuario);
           INSERT INTO d_cuenta (IdTienda, Codigo_Cuenta, NomCuenta, NDocumento, Fecha, IdOperacion, Abono_Soles, Cargo_Soles, Saldo_Soles,
            Abono_Dolar, Cargo_Dolar, Saldo_Dolar, IdCtaPartida, NomCtaPartida, Moneda , TC, Automatico, DT, IdUsuario)
           VALUE (_IdTienda, _IdProveedor, _NomProveedor, cNCompra, _Fecha, _IdWindow, 0, 0, 0, _GTotal, 0, 0, _IdCta, _NomCta, 1, _TC, 1, NOW(), _IdUsuario);
         END IF;
       END IF;
     END IF;   
    ELSEIF _cEstado = 'MODIFICAR' THEN
     UPDATE producto JOIN td_compra ON producto.`IdProducto` = td_compra.`IdProducto`
     SET PC = producto.`LPC`, FechaC = producto.`LFechaC`, NDoc = producto.`LNDoc`, IdCliPro = _IdProveedor,
      producto.`PD` = td_compra.`PD`, producto.`PM` = td_compra.`PM`, producto.`PE` = td_compra.`PE`, producto.`PEM` = td_compra.`PEM`,
      producto.`Precio_Detalle` = IF(td_compra.`Precio_Detalle`>0,td_compra.`Precio_Detalle`,producto.`Precio_Detalle`), producto.`Precio_Mayor` = IF(td_compra.`Precio_Mayor`>0,td_compra.`Precio_Mayor`,producto.`Precio_Mayor`),
      producto.`Precio_Especial` = IF(td_compra.`Precio_Especial`>0,td_compra.`Precio_Especial`,producto.`Precio_Especial`), producto.`Precio_EspecialM` = IF(td_compra.`Precio_EspecialM`>0,td_compra.`Precio_EspecialM`,producto.`Precio_EspecialM`),
      producto.`Precio_DetalleF` = IF(td_compra.`Precio_DetalleF`>0,td_compra.`Precio_DetalleF`,producto.`Precio_DetalleF`), producto.`Precio_MayorF` = IF(td_compra.`Precio_MayorF`>0,td_compra.`Precio_MayorF`,producto.`Precio_MayorF`),
      producto.`Precio_EspecialF` = IF(td_compra.`Precio_EspecialF`>0,td_compra.`Precio_EspecialF`,producto.`Precio_EspecialF`), producto.`Precio_EspecialMF` = IF(td_compra.`Precio_EspecialMF`>0,td_compra.`Precio_EspecialMF`,producto.`Precio_EspecialMF`)
     WHERE IdSesion = _IdSesion AND IdWindow = _IdWindow AND td_compra.`Eliminado` = 0;
     UPDATE compra SET IdTienda = _IdTienda, IdAlmacen = _IdAlmacen, NSerie = _NSerie, NDocumento = _NDocumento, IdDocFis = _IdDocFis, IdCliPro = _IdProveedor,
      Fecha = _Fecha, FechaLlegada = _FechaLlegada, FechaVenc = _cFechaVenc, IdFPago = _IdFPago, Moneda = _OpMon, TC = _TC, IncIGV = _IncIGV,
      PIGV = _IGV, IGV = _GTIGV, ISC = 0, Total = _GTotal, eDcto = _IncDcto, ePercepcion = _IncPer, eFlete = 0, eEstiba = 0, Dcto = _Dcto, 
      PDcto = _Dscto, Percepcion = _Percepcion, PPercepcion = _Percep, Flete = 0, Estiba = 0, GasRel = 0, AboRel = 0, NGuiaR = _NGuiaR, 
      Cancelado = IF(_IdFPago = 1, 1, 0), Letras = _ChkLetras, Transito = 0, MovConta = _MovConta, MovKardex = _MovKardex, Observacion = _OBS,
      IdUsuario = _IdUsuario, DT = NOW() WHERE (IdCompra = _IdCompra) AND (IdTienda = _IdTienda);
     UPDATE d_compra SET Eliminado = 1 WHERE (IdCompra = _IdCompra) AND (IdTienda = _IdTienda);
     IF _MovKardex = 1 THEN
       DELETE FROM kardex WHERE (NSerie = _NSerie_Ant) AND (NDocumento = _NDocumento_Ant) AND (IdDocFis = _IdDocFis_Ant) AND (IdCliPro = _IdCliPro_Ant) AND (IdTienda = _IdTienda);
     END IF;
     DELETE FROM d_cuenta WHERE (NDocumento = cNCompra_Ant) AND (IdTienda = _IdTienda);
     INSERT INTO d_compra (IdCompra, IdTienda, IdAlmacen, NSerie, NDocumento, IdDocFis, IdCliPro, Fecha, IdProducto, Cantidad, Recogido,
      CapaPrec, DescriPrec, Precio_Bruto, Dscto, Precio, PrecioIGV, SubTotal, SubTotalIGV, Unid, Unid_Reco, GEL, Peso, PPercepcion, 
      Percepcion, Flete, Estiba, Dcto, NItem)
     SELECT _IdCompra, _IdTienda, _IdAlmacen, _NSerie, _NDocumento, _IdDocFis, _IdProveedor, _Fecha, IdProducto, Unid * CapaPrec, Unid_Reco * CapaPrec,
      CapaPrec, DescriPrec, Precio_Bruto, Dscto, Precio, PrecioIGV, SubTotal, SubTotalIGV, Unid, Unid_Reco, GEL, Peso, PPercepcion,
      Percepcion, Flete, Estiba, ((SubTotalIGV*_Dscto)/100), NItem FROM td_compra WHERE IdSesion = _IdSesion AND IdWindow = _IdWindow AND Eliminado = 0;
     IF _MovKardex = 1 THEN
       INSERT INTO kardex (IdTienda, NSerie, NDocumento, IdDocFis, IdProducto, IdAlmacen, IdOperacion, FechaEmi, Fecha, Automatico, Entrada, Salida, Recogido,
        Costo, PrecioSalida, CostoAct, Notas, DT, IdCliPro, RazSoc, Traslado, Transito, Observada, DocConformida, IdUsuario)
       SELECT _IdTienda, _NSerie, _NDocumento, _IdDocFis, IdProducto, _IdAlmacen, _IdWindow, _Fecha, _FechaLlegada, 1, Unid * CapaPrec, 0, Unid_Reco * CapaPrec,
        IF(_OpMon = 0,Precio, Precio*_TC), 0, IF(_OpMon = 0,Precio, Precio*_TC), _OBS, NOW(), _IdProveedor, _NomProveedor, 0, 0, 0, ' ', _IdUsuario FROM td_compra WHERE IdSesion = _IdSesion AND IdWindow = _IdWindow AND Eliminado = 0;
     END IF;
     IF _MovConta = 1 AND _IdFPago = 1 THEN
       IF _OpMon = 0 THEN       
         INSERT INTO d_cuenta (IdTienda, Codigo_Cuenta, NomCuenta, NDocumento, Fecha, IdOperacion, Abono_Soles, Cargo_Soles, Saldo_Soles,
          Abono_Dolar, Cargo_Dolar, Saldo_Dolar, IdCtaPartida, NomCtaPartida, Moneda , TC, Automatico, DT, IdUsuario)
         VALUE (_IdTienda, _IdCta, _NomCta, cNCompra, _Fecha, _IdWindow, 0, _GTotal, 0, 0, 0, 0, _IdProveedor, _NomProveedor, 0, _TC, 1, NOW(), _IdUsuario);
         INSERT INTO d_cuenta (IdTienda, Codigo_Cuenta, NomCuenta, NDocumento, Fecha, IdOperacion, Abono_Soles, Cargo_Soles, Saldo_Soles,
          Abono_Dolar, Cargo_Dolar, Saldo_Dolar, IdCtaPartida, NomCtaPartida, Moneda , TC, Automatico, DT, IdUsuario)
         VALUE (_IdTienda, _IdProveedor, _NomProveedor, cNCompra, _Fecha, _IdWindow, _GTotal, 0, 0, 0, 0, 0, _IdCta, _NomCta, 0, _TC, 1, NOW(), _IdUsuario);
        ELSE                    
         IF _OpMon = 1 THEN  
           INSERT INTO d_cuenta (IdTienda, Codigo_Cuenta, NomCuenta, NDocumento, Fecha, IdOperacion, Abono_Soles, Cargo_Soles, Saldo_Soles,
            Abono_Dolar, Cargo_Dolar, Saldo_Dolar, IdCtaPartida, NomCtaPartida, Moneda , TC, Automatico, DT, IdUsuario)
           VALUE (_IdTienda, _IdCta, _NomCta, cNCompra, _Fecha, _IdWindow, 0, 0, 0, 0, _GTotal, 0, _IdProveedor, _NomProveedor, 1, _TC, 1, NOW(), _IdUsuario);
           INSERT INTO d_cuenta (IdTienda, Codigo_Cuenta, NomCuenta, NDocumento, Fecha, IdOperacion, Abono_Soles, Cargo_Soles, Saldo_Soles,
            Abono_Dolar, Cargo_Dolar, Saldo_Dolar, IdCtaPartida, NomCtaPartida, Moneda , TC, Automatico, DT, IdUsuario)
           VALUE (_IdTienda, _IdProveedor, _NomProveedor, cNCompra, _Fecha, _IdWindow, 0, 0, 0, _GTotal, 0, 0, _IdCta, _NomCta, 1, _TC, 1, NOW(), _IdUsuario);
         END IF;
       END IF;
     END IF;        
   END IF;
  COMMIT;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `IM_Guia` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `IM_Guia`(_cEstado VARCHAR(10), _IdGuia INT(14), _IdTienda VARCHAR(3), _IdOpeGuia INT(11), 
      _IdMotivo SMALLINT(6), _NSerie VARCHAR(4), _NDocumento VARCHAR(20), _IdDocFis TINYINT(3), _Fecha DATE, _FechaEnvio DATE,
      _DirPartida VARCHAR(255), _DirLlegada VARCHAR(255), _IdUniTra INT(11), _Placa VARCHAR(12) , _Marca VARCHAR(20),
      _NInscripcion VARCHAR(12), _IdConductor INT(11), _NomConductor VARCHAR(150), _NLicencia VARCHAR(13), _IdCliPro VARCHAR(8),
      _RazSoc VARCHAR(150), _IdTipoDes INT(11), _NTipoDes VARCHAR(11), _IdTransportista INT(11), _NomTransportista VARCHAR(150),
      _IdTipoTrans INT(11), _NTipoTrans VARCHAR(11), _MovKardex TINYINT(1), _chkAlmD TINYINT(1), _IdTiendaD VARCHAR(3), _IdAlmacenD VARCHAR(2), 
      _IdUsuario SMALLINT(6), _IdSesion INT(11), _IdWindow VARCHAR(3), _NSerie_Ant VARCHAR(4), _NDocumento_Ant VARCHAR(20))
BEGIN
  DECLARE cIdDocFis_R TINYINT(3);
  START TRANSACTION; 
   IF _cEstado = 'NUEVO' THEN
     INSERT INTO guiar (IdGuia, IdTienda, IdOpeGuia, IdMotivoG, NSerie, NDocumento, IdDocFis, FechaEmi, FechaIniTra, DirPartida, DirLlegada,
      IdUniTra, Placa, Marca, NInscripcion, IdConductor, NomConductor, NLicencia, IdCliPro, RazSoc, IdTipoDes, NTipoDes, IdTransportista,
      NomTransportista, IdTipoTrans, NTipoTrans, Anulado, Canjeado, MovKardex, IdUsuario)
     VALUES (_IdGuia, _IdTienda, _IdOpeGuia, _IdMotivo, _NSerie, _NDocumento, _IdDocFis, _Fecha, _FechaEnvio, _DirPartida, _DirLlegada,
      _IdUniTra, _Placa, _Marca, _NInscripcion, _IdConductor, _NomConductor, _NLicencia, _IdCliPro, _RazSoc, _IdTipoDes,
      _NTipoDes, _IdTransportista, _NomTransportista, _IdTipoTrans, _NTipoTrans, 0, 0, _MovKardex, _IdUsuario);
     INSERT INTO d_guiar (IdGuia, IdTienda, IdAlmacen, NSerie, NDocumento, IdDocFis, Fecha, IdProducto, Cantidad, CapaPrec, DescriPrec,
      Precio, SubTotal, Unid, Peso, IdVta_Rel, IdTiendaD, IdAlmacenD, NItem)
     SELECT _IdGuia, _IdTienda, IdAlmacen, _NSerie, _NDocumento, _IdDocFis, _Fecha, IdProducto, Unid * CapaPrec, CapaPrec, DescriPrec,
      Precio, SubTotal, Unid, Peso, IFNULL(IdVta_Rel,0), _IdTiendaD, _IdAlmacenD, NItem FROM td_guiar WHERE IdSesion = _IdSesion AND IdWindow = _IdWindow AND Eliminado = 0;
     IF _MovKardex = 1 THEN
       IF _IdOpeGuia = 2 THEN
         INSERT INTO kardex (IdTienda, NSerie, NDocumento, IdDocFis, IdProducto, IdAlmacen, IdOperacion, FechaEmi, Fecha, Automatico, Entrada, Salida, Recogido,
          Costo, PrecioSalida, CostoAct, Notas, DT, RazSoc, Traslado, Transito, Observada, DocConformida, IdUsuario)
         SELECT _IdTienda, _NSerie, _NDocumento, _IdDocFis, IdProducto, IdAlmacen, _IdWindow, _Fecha, _FechaEnvio, 1, 0, Unid * CapaPrec, (Unid * CapaPrec) * -1,
          0, Precio, 0, '', NOW(), _IdCliPro, 0, 0, 0, ' ', _IdUsuario FROM td_guiar WHERE IdSesion = _IdSesion AND IdWindow = _IdWindow AND Eliminado = 0;
         IF _chkAlmD = 1 THEN
           INSERT INTO kardex (IdTienda, NSerie, NDocumento, IdDocFis, IdProducto, IdAlmacen, IdOperacion, FechaEmi, Fecha, Automatico, Entrada, Salida, Recogido,
            Costo, PrecioSalida, CostoAct, Notas, DT, RazSoc, Traslado, Transito, Observada, DocConformida, IdUsuario)
           SELECT _IdTiendaD, _NSerie, _NDocumento, _IdDocFis, IdProducto, _IdAlmacenD, _IdWindow, _Fecha, _FechaEnvio, 1, Unid * CapaPrec, 0, Unid * CapaPrec, Precio, 0,
            Precio, ' ', NOW(), _DirPartida, 0, 0, 0, ' ', _IdUsuario FROM td_guiar WHERE IdSesion = _IdSesion AND IdWindow = _IdWindow AND Eliminado = 0;
         END IF;  
        ELSEIF _IdOpeGuia = 1 THEN
         INSERT INTO kardex (IdTienda, NSerie, NDocumento, IdDocFis, IdProducto, IdAlmacen, IdOperacion, FechaEmi, Fecha, Automatico, Entrada, Salida, Recogido,
          Costo, PrecioSalida, CostoAct, Notas, DT, RazSoc, Traslado, Transito, Observada, DocConformida, IdUsuario)
         SELECT _IdTienda, _NSerie, _NDocumento, _IdDocFis, IdProducto, IdAlmacen, _IdWindow, _Fecha, _FechaEnvio, 1, Unid * CapaPrec, 0, (Unid * CapaPrec),
          Precio, 0, Precio, '', NOW(), _IdCliPro, 0, 0, 0, ' ', _IdUsuario FROM td_guiar WHERE IdSesion = _IdSesion AND IdWindow = _IdWindow AND Eliminado = 0;  
       END IF;
     END IF;
     IF EXISTS(SELECT * FROM td_guiar WHERE IdSesion = _IdSesion AND IdWindow = _IdWindow AND Eliminado = 0) THEN
       SELECT IFNULL(MAX(IdVta_Rel), 0) INTO cIdDocFis_R FROM td_guiar WHERE IdSesion = _IdSesion AND IdWindow = _IdWindow AND Eliminado = 0;
       IF cIdDocFis_R = 9 THEN
         UPDATE d_factu INNER JOIN td_guiar ON IdVenta = td_guiar.IdVta_Rel AND d_factu.IdProducto = td_guiar.IdProducto 
          SET IdDoc_Rel = _IdGuia WHERE td_guiar.IdSesion = _IdSesion AND td_guiar.IdWindow = _IdWindow AND td_guiar.Eliminado = 0;         
         UPDATE factu INNER JOIN td_guiar ON IdVenta = td_guiar.IdVta_Rel
          SET Canjeado = 1 WHERE td_guiar.IdSesion = _IdSesion AND td_guiar.IdWindow = _IdWindow AND td_guiar.Eliminado = 0;
       END IF;
     END IF;
    ELSEIF _cEstado = 'MODIFICAR' THEN
     UPDATE guiar SET IdTienda = _IdTienda, IdMotivoG = _IdMotivo, NSerie = _NSerie, NDocumento = _NDocumento, FechaEmi = _Fecha,
      FechaIniTra = _FechaEnvio, DirPartida = _DirPartida, DirLlegada = _DirLlegada, IdUniTra = _IdUniTra, Placa = _Placa, Marca = _Marca,
      NInscripcion = _NInscripcion, IdConductor = _IdConductor, NomConductor = _NomConductor, NLicencia = _NLicencia, IdCliPro = _IdCliPro,
      RazSoc = _RazSoc, IdTipoDes = _IdTipoDes, NTipoDes = _NTipoDes, IdTransportista = _IdTransportista, NomTransportista = _NomTransportista,
      IdTipoTrans = _IdTipoTrans, NTipoTrans = _NTipoTrans, MovKardex = _MovKardex, IdUsuario = _IdUsuario
     WHERE (IdGuia = _IdGuia) AND (IdTienda = _IdTienda);
     UPDATE d_guiar SET Eliminado = 1 WHERE (IdGuia = _IdGuia) AND (IdTienda = _IdTienda);
     IF _MovKardex = 1 THEN
       DELETE FROM kardex WHERE (NSerie = _NSerie_Ant) AND (NDocumento = _NDocumento_Ant) AND (IdDocFis = 9) AND (IdTienda = _IdTienda);
     END IF;
     INSERT INTO d_guiar (IdGuia, IdTienda, IdAlmacen, NSerie, NDocumento, IdDocFis, Fecha, IdProducto, Cantidad, CapaPrec, DescriPrec,
      Precio, SubTotal, Unid, Peso, IdVta_Rel, IdTiendaD, IdAlmacenD, NItem)
     SELECT _IdGuia, _IdTienda, IdAlmacen, _NSerie, _NDocumento, _IdDocFis, _Fecha, IdProducto, Unid * CapaPrec, CapaPrec, DescriPrec,
      Precio, SubTotal, Unid, Peso, IFNULL(IdVta_Rel,0), _IdTiendaD, _IdAlmacenD, NItem FROM td_guiar WHERE IdSesion = _IdSesion AND IdWindow = _IdWindow AND Eliminado = 0;
     IF _MovKardex = 1 THEN
       IF _IdOpeGuia = 2 THEN
         INSERT INTO kardex (IdTienda, NSerie, NDocumento, IdDocFis, IdProducto, IdAlmacen, IdOperacion, FechaEmi, Fecha, Automatico, Entrada, Salida, Recogido,
          Costo, PrecioSalida, CostoAct, Notas, DT, RazSoc, Traslado, Transito, Observada, DocConformida, IdUsuario)
         SELECT _IdTienda, _NSerie, _NDocumento, _IdDocFis, IdProducto, IdAlmacen, _IdWindow, _Fecha, _FechaEnvio, 1, 0, Unid * CapaPrec, (Unid * CapaPrec) * -1,
          0, Precio, 0, '', NOW(), _IdCliPro, 0, 0, 0, ' ', _IdUsuario FROM td_guiar WHERE IdSesion = _IdSesion AND IdWindow = _IdWindow AND Eliminado = 0;
          IF _chkAlmD = 1 THEN
            INSERT INTO kardex (IdTienda, NSerie, NDocumento, IdDocFis, IdProducto, IdAlmacen, IdOperacion, FechaEmi, Fecha, Automatico, Entrada, Salida, Recogido,
             Costo, PrecioSalida, CostoAct, Notas, DT, RazSoc, Traslado, Transito, Observada, DocConformida, IdUsuario)
            SELECT _IdTiendaD, _NSerie, _NDocumento, _IdDocFis, IdProducto, _IdAlmacenD, _IdWindow, _Fecha, _FechaEnvio, 1, Unid * CapaPrec, 0, Unid * CapaPrec, Precio, 0,
             Precio, ' ', NOW(), _DirPartida, 0, 0, 0, ' ', _IdUsuario FROM td_guiar WHERE IdSesion = _IdSesion AND IdWindow = _IdWindow AND Eliminado = 0;
          END IF;
        ELSEIF _IdOpeGuia = 1 THEN
         INSERT INTO kardex (IdTienda, NSerie, NDocumento, IdDocFis, IdProducto, IdAlmacen, IdOperacion, FechaEmi, Fecha, Automatico, Entrada, Salida, Recogido,
          Costo, PrecioSalida, CostoAct, Notas, DT, RazSoc, Traslado, Transito, Observada, DocConformida, IdUsuario)
         SELECT _IdTienda, _NSerie, _NDocumento, _IdDocFis, IdProducto, IdAlmacen, _IdWindow, _Fecha, _FechaEnvio, 1, Unid * CapaPrec, 0, (Unid * CapaPrec),
          Precio, 0, Precio, '', NOW(), _IdCliPro, 0, 0, 0, ' ', _IdUsuario FROM td_guiar WHERE IdSesion = _IdSesion AND IdWindow = _IdWindow AND Eliminado = 0;  
       END IF;
     END IF;
     IF EXISTS(SELECT * FROM td_guiar WHERE IdSesion = _IdSesion AND IdWindow = _IdWindow AND Eliminado = 0) THEN
       SELECT IFNULL(MAX(IdVta_Rel), 0) INTO cIdDocFis_R FROM td_guiar WHERE IdSesion = _IdSesion AND IdWindow = _IdWindow AND Eliminado = 0;
       IF cIdDocFis_R = 9 THEN
         UPDATE d_factu INNER JOIN td_guiar ON IdVenta = td_guiar.IdVta_Rel AND d_factu.IdProducto = td_guiar.IdProducto 
          SET IdDoc_Rel = _IdGuia WHERE td_guiar.IdSesion = _IdSesion AND td_guiar.IdWindow = _IdWindow AND td_guiar.Eliminado = 0;         
         UPDATE factu INNER JOIN td_guiar ON IdVenta = td_guiar.IdVta_Rel
          SET Canjeado = 1 WHERE td_guiar.IdSesion = _IdSesion AND td_guiar.IdWindow = _IdWindow AND td_guiar.Eliminado = 0;
       END IF;
     END IF;
   END IF;
  COMMIT;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `IM_LetraxPagar` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `IM_LetraxPagar`(_cEstado VARCHAR(10), _IdLetra INT(14), _IdTienda VARCHAR(3), _NroLetra VARCHAR(20), _NroUnico VARCHAR(20),
    _IdProveedor VARCHAR(8), _Fecha DATE, _cFechaVenc DATE, _OpMon SMALLINT(1), _TC DOUBLE, _Importe DOUBLE)
BEGIN
  START TRANSACTION; 
   IF _cEstado = 'NUEVO' THEN
     INSERT INTO letrasxpagar (IdLetra, IdTienda, Nro_Letra, Nro_Unico, IdCliPro, Fecha, FechaVenc,
      Moneda, TC, Total, DT)
     VALUES (_IdLetra, _IdTienda, _NroLetra, _NroUnico, _IdProveedor, _Fecha, _cFechaVenc,
      _OpMon, _TC, _Importe, NOW());
    ELSEIF _cEstado = 'MODIFICAR' THEN          
     UPDATE letrasxpagar SET IdTienda = _IdTienda, Nro_Letra = _NroLetra, Nro_Unico = _NroUnico, IdCliPro = _IdProveedor,
      Fecha = _Fecha, FechaVenc = _cFechaVenc, Moneda = _OpMon, TC = _TC, Total = _Importe,
      DT = NOW() WHERE (IdLetra = _IdLetra) AND (IdTienda = _IdTienda);     
   END IF;
  COMMIT;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `IM_OrdenAlmE` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `IM_OrdenAlmE`(_cEstado VARCHAR(10), _IdOrden INT(14), _IdTienda VARCHAR(3), _IdOpeOrden INT(11), 
      _IdMotivo SMALLINT(6), _NSerie VARCHAR(4), _NDocumento VARCHAR(20), _IdDocFis TINYINT(3), _Fecha DATE, _FechaEnvio DATE,
      _DirPartida VARCHAR(255), _DirLlegada VARCHAR(255), _IdUniTra INT(11), _Placa VARCHAR(12) , _Marca VARCHAR(20),
      _NInscripcion VARCHAR(12), _IdConductor INT(11), _NomConductor VARCHAR(150), _NLicencia VARCHAR(13), _IdCliPro VARCHAR(8),
      _RazSoc VARCHAR(150), _IdTipoDes INT(11), _NTipoDes VARCHAR(11), _IdTransportista INT(11), _NomTransportista VARCHAR(150),
      _IdTipoTrans INT(11), _NTipoTrans VARCHAR(11), _MovKardex TINYINT(1), _IdUsuario SMALLINT(6), _IdSesion INT(11), _IdWindow VARCHAR(3),
      _NSerie_Ant VARCHAR(4), _NDocumento_Ant VARCHAR(20))
BEGIN
  START TRANSACTION; 
   IF _cEstado = 'NUEVO' THEN
     INSERT INTO orden_alm (IdOrden, IdTienda, IdOpeOrden, IdMotivo, NSerie, NDocumento, IdDocFis, FechaEmi, FechaIniTra, DirPartida, DirLlegada,
      IdUniTra, Placa , Marca, NInscripcion, IdConductor, NomConductor, NLicencia, IdCliPro, RazSoc, IdTipoDes, NTipoDes, IdTransportista,
      NomTransportista, IdTipoTrans, NTipoTrans, Anulado, Canjeado, MovKardex, IdUsuario)
     VALUES (_IdOrden, _IdTienda, 1, _IdMotivo, _NSerie, _NDocumento, _IdDocFis, _Fecha, _FechaEnvio, _DirPartida, _DirLlegada,
      _IdUniTra, _Placa, _Marca, _NInscripcion, _IdConductor, _NomConductor, _NLicencia, _IdCliPro, _RazSoc, _IdTipoDes,
      _NTipoDes, _IdTransportista, _NomTransportista, _IdTipoTrans, _NTipoTrans, 0, 0, _MovKardex, _IdUsuario);
     INSERT INTO d_ordenalm (IdOrden, IdTienda, IdAlmacen, NSerie, NDocumento, IdDocFis, Fecha, IdProducto, Cantidad, CapaPrec, DescriPrec,
      Precio, SubTotal, Unid, Peso, IdVta_Rel, NItem)
     SELECT _IdOrden, _IdTienda, IdAlmacen, _NSerie, _NDocumento, _IdDocFis, _Fecha, IdProducto, Unid * CapaPrec, CapaPrec, DescriPrec,
      Precio, SubTotal, Unid, Peso, IFNULL(IdVta_Rel,0), NItem FROM td_ordenalm WHERE IdSesion = _IdSesion AND IdWindow = _IdWindow AND Eliminado = 0;
     IF _MovKardex = 1 THEN
       INSERT INTO kardex (IdTienda, NSerie, NDocumento, IdDocFis, IdProducto, IdAlmacen, IdOperacion, FechaEmi, Fecha, Automatico, Entrada, Salida, Recogido,
        Costo, PrecioSalida, CostoAct, Notas, DT, IdCliPro, RazSoc, Traslado, Transito, Observada, DocConformida, IdUsuario)
       SELECT _IdTienda, _NSerie, _NDocumento, _IdDocFis, IdProducto, IdAlmacen, _IdWindow, _Fecha, _FechaEnvio, 1, Unid * CapaPrec, 0, (Unid * CapaPrec),
        Precio, 0, Precio, '', NOW(), _IdCliPro, _RazSoc, 0, 0, 0, ' ', _IdUsuario FROM td_ordenalm WHERE IdSesion = _IdSesion AND IdWindow = _IdWindow AND Eliminado = 0;
     END IF;
    ELSEIF _cEstado = 'MODIFICAR' THEN
     UPDATE orden_alm SET IdTienda = _IdTienda, IdMotivo = _IdMotivo, NSerie = _NSerie, NDocumento = _NDocumento, FechaEmi = _Fecha,
      FechaIniTra = _FechaEnvio, DirPartida = _DirPartida, DirLlegada = _DirLlegada, IdUniTra = _IdUniTra, Placa = _Placa, Marca = _Marca,
      NInscripcion = _NInscripcion, IdConductor = _IdConductor, NomConductor = _NomConductor, NLicencia = _NLicencia, IdCliPro = _IdCliPro,
      RazSoc = _RazSoc, IdTipoDes = _IdTipoDes, NTipoDes = _NTipoDes, IdTransportista = _IdTransportista, NomTransportista = _NomTransportista,
      IdTipoTrans = _IdTipoTrans, NTipoTrans = _NTipoTrans, MovKardex = _MovKardex, IdUsuario = _IdUsuario
     WHERE (IdOrden = _IdOrden) AND (IdTienda = _IdTienda);
     UPDATE d_ordenalm SET Eliminado = 1 WHERE (IdOrden = _IdOrden) AND (IdTienda = _IdTienda);
     IF _MovKardex = 1 THEN
       DELETE FROM kardex WHERE (NSerie = _NSerie_Ant) AND (NDocumento = _NDocumento_Ant) AND (IdDocFis = 28) AND (IdTienda = _IdTienda);
     END IF;
     INSERT INTO d_ordenalm (IdOrden, IdTienda, IdAlmacen, NSerie, NDocumento, IdDocFis, Fecha, IdProducto, Cantidad, CapaPrec, DescriPrec,
      Precio, SubTotal, Unid, Peso, IdVta_Rel, NItem)
     SELECT _IdOrden, _IdTienda, IdAlmacen, _NSerie, _NDocumento, _IdDocFis, _Fecha, IdProducto, Unid * CapaPrec, CapaPrec, DescriPrec,
      Precio, SubTotal, Unid, Peso, IFNULL(IdVta_Rel,0), NItem FROM td_ordenalm WHERE IdSesion = _IdSesion AND IdWindow = _IdWindow AND Eliminado = 0;
     IF _MovKardex = 1 THEN
       INSERT INTO kardex (IdTienda, NSerie, NDocumento, IdDocFis, IdProducto, IdAlmacen, IdOperacion, FechaEmi, Fecha, Automatico, Entrada, Salida, Recogido,
        Costo, PrecioSalida, CostoAct, Notas, DT, IdCliPro, RazSoc, Traslado, Transito, Observada, DocConformida, IdUsuario)
       SELECT _IdTienda, _NSerie, _NDocumento, _IdDocFis, IdProducto, IdAlmacen, _IdWindow, _Fecha, _FechaEnvio, 1, Unid * CapaPrec, 0, (Unid * CapaPrec),
        Precio, 0, Precio, '', NOW(), _RazSoc, _IdCliPro, 0, 0, 0, ' ', _IdUsuario FROM td_ordenalm WHERE IdSesion = _IdSesion AND IdWindow = _IdWindow AND Eliminado = 0;
     END IF;
   END IF;
  COMMIT;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `IM_OrdenAlmS` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `IM_OrdenAlmS`(_cEstado VARCHAR(10), _IdOrden INT(14), _IdTienda VARCHAR(3), _IdOpeOrden INT(11), 
      _IdMotivo SMALLINT(6), _NSerie VARCHAR(4), _NDocumento VARCHAR(20), _IdDocFis TINYINT(3), _Fecha DATE, _FechaEnvio DATE,
      _DirPartida VARCHAR(255), _DirLlegada VARCHAR(255), _IdUniTra INT(11), _Placa VARCHAR(12) , _Marca VARCHAR(20),
      _NInscripcion VARCHAR(12), _IdConductor INT(11), _NomConductor VARCHAR(150), _NLicencia VARCHAR(13), _IdCliPro VARCHAR(8),
      _RazSoc VARCHAR(150), _IdTipoDes INT(11), _NTipoDes VARCHAR(11), _IdTransportista INT(11), _NomTransportista VARCHAR(150),
      _IdTipoTrans INT(11), _NTipoTrans VARCHAR(11), _MovKardex TINYINT(1), _IdUsuario SMALLINT(6), _IdSesion INT(11), _IdWindow VARCHAR(3),
      _NSerie_Ant VARCHAR(4), _NDocumento_Ant VARCHAR(20))
BEGIN
  START TRANSACTION; 
   IF _cEstado = 'NUEVO' THEN
     INSERT INTO orden_alm (IdOrden, IdTienda, IdOpeOrden, IdMotivo, NSerie, NDocumento, IdDocFis, FechaEmi, FechaIniTra, DirPartida, DirLlegada,
      IdUniTra, Placa , Marca, NInscripcion, IdConductor, NomConductor, NLicencia, IdCliPro, RazSoc, IdTipoDes, NTipoDes, IdTransportista,
      NomTransportista, IdTipoTrans, NTipoTrans, Anulado, Canjeado, MovKardex, IdUsuario)
     VALUES (_IdOrden, _IdTienda, 2, _IdMotivo, _NSerie, _NDocumento, _IdDocFis, _Fecha, _FechaEnvio, _DirPartida, _DirLlegada,
      _IdUniTra, _Placa, _Marca, _NInscripcion, _IdConductor, _NomConductor, _NLicencia, _IdCliPro, _RazSoc, _IdTipoDes,
      _NTipoDes, _IdTransportista, _NomTransportista, _IdTipoTrans, _NTipoTrans, 0, 0, _MovKardex, _IdUsuario);
     INSERT INTO d_ordenalm (IdOrden, IdTienda, IdAlmacen, NSerie, NDocumento, IdDocFis, Fecha, IdProducto, Cantidad, CapaPrec, DescriPrec,
      Precio, SubTotal, Unid, Peso, IdVta_Rel, NItem)
     SELECT _IdOrden, _IdTienda, IdAlmacen, _NSerie, _NDocumento, _IdDocFis, _Fecha, IdProducto, Unid * CapaPrec, CapaPrec, DescriPrec,
      Precio, SubTotal, Unid, Peso, IFNULL(IdVta_Rel,0), NItem FROM td_ordenalm WHERE IdSesion = _IdSesion AND IdWindow = _IdWindow AND Eliminado = 0;
     IF _MovKardex = 1 THEN
       INSERT INTO kardex (IdTienda, NSerie, NDocumento, IdDocFis, IdProducto, IdAlmacen, IdOperacion, FechaEmi, Fecha, Automatico, Entrada, Salida, Recogido,
        Costo, PrecioSalida, CostoAct, Notas, DT, IdCliPro, RazSoc, Traslado, Transito, Observada, DocConformida, IdUsuario)
       SELECT _IdTienda, _NSerie, _NDocumento, _IdDocFis, IdProducto, IdAlmacen, _IdWindow, _Fecha, _FechaEnvio, 1, 0, Unid * CapaPrec, (Unid * CapaPrec) * -1,
        Precio, 0, Precio, '', NOW(), _IdCliPro, _RazSoc, 0, 0, 0, ' ', _IdUsuario FROM td_ordenalm WHERE IdSesion = _IdSesion AND IdWindow = _IdWindow AND Eliminado = 0;
     END IF;
    ELSEIF _cEstado = 'MODIFICAR' THEN
     UPDATE orden_alm SET IdTienda = _IdTienda, IdMotivo = _IdMotivo, NSerie = _NSerie, NDocumento = _NDocumento, FechaEmi = _Fecha,
      FechaIniTra = _FechaEnvio, DirPartida = _DirPartida, DirLlegada = _DirLlegada, IdUniTra = _IdUniTra, Placa = _Placa, Marca = _Marca,
      NInscripcion = _NInscripcion, IdConductor = _IdConductor, NomConductor = _NomConductor, NLicencia = _NLicencia, IdCliPro = _IdCliPro,
      RazSoc = _RazSoc, IdTipoDes = _IdTipoDes, NTipoDes = _NTipoDes, IdTransportista = _IdTransportista, NomTransportista = _NomTransportista,
      IdTipoTrans = _IdTipoTrans, NTipoTrans = _NTipoTrans, MovKardex = _MovKardex, IdUsuario = _IdUsuario
     WHERE (IdOrden = _IdOrden) AND (IdTienda = _IdTienda);
     UPDATE d_ordenalm SET Eliminado = 1 WHERE (IdOrden = _IdOrden) AND (IdTienda = _IdTienda);
     IF _MovKardex = 1 THEN
       DELETE FROM kardex WHERE (NSerie = _NSerie_Ant) AND (NDocumento = _NDocumento_Ant) AND (IdDocFis = 27) AND (IdTienda = _IdTienda);
     END IF;
     INSERT INTO d_ordenalm (IdOrden, IdTienda, IdAlmacen, NSerie, NDocumento, IdDocFis, Fecha, IdProducto, Cantidad, CapaPrec, DescriPrec,
      Precio, SubTotal, Unid, Peso, IdVta_Rel, NItem)
     SELECT _IdOrden, _IdTienda, IdAlmacen, _NSerie, _NDocumento, _IdDocFis, _Fecha, IdProducto, Unid * CapaPrec, CapaPrec, DescriPrec,
      Precio, SubTotal, Unid, Peso, IFNULL(IdVta_Rel,0), NItem FROM td_ordenalm WHERE IdSesion = _IdSesion AND IdWindow = _IdWindow AND Eliminado = 0;
     IF _MovKardex = 1 THEN
       INSERT INTO kardex (IdTienda, NSerie, NDocumento, IdDocFis, IdProducto, IdAlmacen, IdOperacion, FechaEmi, Fecha, Automatico, Entrada, Salida, Recogido,
        Costo, PrecioSalida, CostoAct, Notas, DT, IdCliPro, RazSoc, Traslado, Transito, Observada, DocConformida, IdUsuario)
       SELECT _IdTienda, _NSerie, _NDocumento, _IdDocFis, IdProducto, IdAlmacen, _IdWindow, _Fecha, _FechaEnvio, 1, 0, Unid * CapaPrec, (Unid * CapaPrec) * -1,
        Precio, 0, Precio, '', NOW(), _IdCliPro, _RazSoc, 0, 0, 0, ' ', _IdUsuario FROM td_ordenalm WHERE IdSesion = _IdSesion AND IdWindow = _IdWindow AND Eliminado = 0;
     END IF;
   END IF;
  COMMIT;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `IM_Producto` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `IM_Producto`(_cEstado VARCHAR(10), _IdTienda VARCHAR(3), _IdProducto VARCHAR(10), _NomProducto VARCHAR(255),
      _IdUnidad INT(11), _IdFraccion INT(11), _Capacidad DOUBLE, _IdCodBar VARCHAR(30), _IdCodExt VARCHAR(30), _Peso DOUBLE,
      _IdProveedor VARCHAR(8), _IdLinea INT(11), _IdMarca VARCHAR(3), _IdModelo VARCHAR(3), _LPC DOUBLE, _PDetalle DOUBLE, _PMayorista DOUBLE,
      _PEspecial DOUBLE, _PEspecialM DOUBLE, _PDetalleF DOUBLE, _PMayoristaF DOUBLE, _PEspecialF DOUBLE, 
      _PEspecialMF DOUBLE, _Costo DOUBLE, _Stock DOUBLE, _Stock_F DOUBLE, _FechaInv DATE, _Stock_Minimo DOUBLE,
      _UsoSerie TINYINT (1), _Contenido VARCHAR(250), _Descripcion VARCHAR(255), _PD DOUBLE, _PM DOUBLE, _PE DOUBLE, _PEM DOUBLE,
      _PCredito DOUBLE, _PCreditoF DOUBLE, _MC DOUBLE,
      _Inactivo TINYINT(1), _sPathFoto VARCHAR(255), _IdAlmacen VARCHAR(2), _IdUsuario SMALLINT(6), _chkStock TINYINT(1))
BEGIN
  DECLARE Stock_Inv DOUBLE(14,3) DEFAULT 0;
  DECLARE nReg INT DEFAULT 0;
  START TRANSACTION; 
   IF _cEstado = 'NUEVO' THEN
     INSERT INTO producto ( IdTienda, IdProducto, NomProducto, IdUnidad, IdFraccion, Capacidad, IdCodBar, IdCodExt,
      Peso, IdCliPro, IdLinea, IdMarca, IdModelo, IdMedida, IdUso, IdColor, Precio_Detalle,
      Precio_Mayor, Precio_Especial, Precio_EspecialM, Precio_DetalleF, Precio_MayorF, Precio_EspecialF, 
      Precio_EspecialMF, Costo, Stock, Stock_F, Fecha_Inv, Stock_Minimo, Uso_Serie, Contenido, Informacion, Descripcion, PD, PM, PE, PEM, Precio_Credito, Precio_CreditoF, MC, Inactivo, PathFoto, DT )
     VALUES ( _IdTienda, _IdProducto, _NomProducto, _IdUnidad, _IdFraccion, _Capacidad, _IdCodBar, _IdCodExt, _Peso,
      _IdProveedor, _IdLinea, _IdMarca, _IdModelo, 'ES', 'ES', 'ES', _PDetalle, _PMayorista, _PEspecial, _PEspecialM, _PDetalleF,
      _PMayoristaF, _PEspecialF, _PEspecialMF, _Costo, _Stock, _Stock_F, _FechaInv, _Stock_Minimo, _UsoSerie, _Contenido, '', _Descripcion, _PD, _PM, _PE, _PEM, 
      _PCredito, _PCreditoF, -MC, _Inactivo, _sPathFoto, NOW() );
      IF _Stock + _Stock_F > 0 THEN
        SELECT (Stock * Capacidad) + Stock_F INTO Stock_Inv FROM producto WHERE IdProducto = _IdProducto;
        INSERT INTO kardex ( IdOperacion, IdTienda, NSerie, NDocumento, IdDocFis, FechaEmi, IdProducto, Idalmacen, Fecha,
         Automatico, Entrada, Salida, Recogido, Costo, PrecioSalida, CostoAct, PIGV, Notas, RazSoc, Traslado, Transito, Observada,
         IdUsuario, DT, Eliminado )
        VALUES ( '000', _IdTienda, 'INV', '00000001', 29, DATE(_FechaInv), _IdProducto, _IdAlmacen, DATE(_FechaInv), 1,
         Stock_Inv, 0, Stock_Inv, _Costo, 0, _Costo, 0, 'INVENTARIO INICIAL', 'AJUSTE', 0, 0, 0, _IdUsuario, NOW(), 0 );
        SELECT COUNT(*) INTO nReg FROM productoalmacen WHERE IdAlmacen = _IdAlmacen AND IdProducto = _IdProducto;
        IF nReg = 0 THEN
          INSERT INTO productoalmacen (IdAlmacen, IdProducto, Costo, StockAct, StockDisp, StockMin, DT)
           VALUE (_IdAlmacen, _IdProducto, _Costo, Stock_Inv, Stock_Inv, 0, NOW());
        END IF;
      END IF;
    ELSEIF _cEstado = 'MODIFICAR' THEN
      UPDATE producto SET IdCodBar = IFNULL(_IdCodBar,''), IdCodExt = IFNULL(_IdCodExt,''), NomProducto = _NomProducto, IdUnidad = _IdUnidad, IdFraccion = _IdFraccion,
       Capacidad = _Capacidad, Peso = _Peso, IdTienda = _IdTienda, IdCliPro = _IdProveedor, IdLinea = _IdLinea, IdMarca = _IdMarca, IdModelo = _IdModelo,
       Inactivo = _Inactivo, Uso_Serie = _UsoSerie, IdMedida = 'ES', IdUso = 'ES', IdColor = 'ES', LPC = _LPC, Precio_Detalle = _PDetalle, Precio_Mayor = _PMayorista,
       Precio_Especial = _PEspecial, Precio_EspecialM = _PEspecialM, Precio_DetalleF = _PDetalleF, Precio_MayorF = _PMayoristaF, Precio_EspecialF = _PEspecialF,
       Precio_EspecialMF = _PEspecialMF, PD = _PD, PM = _PM, PE = _PE, PEM = _PEM, PCredito = _PCredito, PCreditoF = _PCreditoF, MC =_MC, Costo = _Costo, Stock = _Stock, Stock_F = _Stock_F, Fecha_Inv = DATE(_FechaInv),
       Stock_Minimo = _Stock_Minimo, Contenido = _Contenido, Informacion = '', Descripcion = _Descripcion, PathFoto = _sPathFoto WHERE IdProducto = _IdProducto;
      IF _chkStock = 1 THEN    
        IF _Stock + _Stock_F > 0 THEN
          SELECT (Stock * Capacidad) + Stock_F INTO Stock_Inv FROM producto WHERE IdProducto = _IdProducto;
          SELECT COUNT(*) INTO nReg FROM kardex WHERE IdTienda = _IdTienda AND IdAlmacen = _IdAlmacen AND IdProducto = _IdProducto AND IdOperacion = '000';
          IF nReg = 0 THEN
            INSERT INTO kardex ( IdOperacion, IdTienda, NSerie, NDocumento, IdDocFis, FechaEmi, IdProducto, Idalmacen, Fecha,
             Automatico, Entrada, Salida, Recogido, Costo, PrecioSalida, CostoAct, PIGV, Notas, RazSoc, Traslado, Transito, Observada,
             IdUsuario, DT, Eliminado )
            VALUES ( '000', _IdTienda, 'INV', '00000001', 29, DATE(_FechaInv), _IdProducto, _IdAlmacen, DATE(_FechaInv), 1,
             Stock_Inv, 0, Stock_Inv, _Costo, 0, _Costo, 0, 'INVENTARIO INICIAL', 'AJUSTE', 0, 0, 0, _IdUsuario, NOW(), 0 );
           ELSE
            UPDATE kardex SET Entrada = Stock_Inv, Recogido = Stock_Inv, Costo = _Costo, CostoAct = _Costo, Eliminado = 0
             WHERE IdTienda = _IdTienda AND NSerie = 'INV' AND NDocumento = '00000001' AND IdDocFis = 29  AND IdProducto = _IdProducto;
          END IF;
        ELSE
          UPDATE kardex SET Eliminado = 1 WHERE IdTienda = _IdTienda AND NSerie = 'INV' AND NDocumento = '00000001' 
           AND IdDocFis = 29 AND IdProducto = _IdProducto;
        END IF;    
      END IF;
   END IF;
  COMMIT; 
 END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `IM_PuntoVta` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `IM_PuntoVta`(_IdVenta INT(14), _IdTienda VARCHAR(3), _NOperacion VARCHAR(16), _NSerie VARCHAR(4), _NDocumento VARCHAR(20),
    _IdDocFis TINYINT(3), _IdCliente VARCHAR(8), _NomCliente VARCHAR(150), _DirCliente VARCHAR(150), _Fecha DATE, _FechaEnvio DATE, _cFechaVenc DATE, _IdFPago TINYINT(3), _OpMon SMALLINT(1),
    _TC DOUBLE, _IdCta VARCHAR(15), _NomCta VARCHAR(150), _IncIGV TINYINT(1), _IGV DOUBLE, _GTIGV DOUBLE, _GTotal DOUBLE, _IncDcto TINYINT(1), _IncPer TINYINT(1),
    _Dscto DOUBLE, _Percep DOUBLE, _NGuiaR VARCHAR(25), _ChkLetras TINYINT(1), _MovConta TINYINT(1), _MovKardex TINYINT(1), _Generado TINYINT(1), _NDias INT(11),
    _IdVendedor INT(11), _OBS LONGTEXT, _IdUsuario SMALLINT(6), _IdSesion INT(11), _IdWindow VARCHAR(3))
BEGIN
  DECLARE cNVenta VARCHAR (30);
  DECLARE cIdDocFis_R TINYINT(3);
  START TRANSACTION; 
  SET cNVenta = CONCAT(_IdDocFis, _NSerie,  "-", _NDocumento);
     INSERT INTO factu (IdVenta, IdTienda, NOperacion_Gen, NSerie, NDocumento, IdDocFis, IdCliPro, Fecha, FechaEnvio, FechaVenc, IdFPago,
      Moneda, TC, IncIGV, PIGV, IGV, ISC, Total, eDcto, ePercepcion, eFlete, eEstiba, Dcto, PDcto, Percepcion, PPercepcion,
      NGuiaR, Cancelado, Letras, Transito, MovConta, MovKardex, Generado, NDias, IdVendedor, Razon_Social, Direccion, Observacion, IdUsuario, DT)
     VALUES (_IdVenta, _IdTienda, _NOperacion, _NSerie, _NDocumento, _IdDocFis, _IdCliente, _Fecha, _FechaEnvio, _cFechaVenc, _IdFPago,
      _OpMon, _TC, _IncIGV, _IGV, _GTIGV, 0, _GTotal, _IncDcto, _IncPer, 0, 0, 0, _Dscto, 0, _Percep, _NGuiaR, 
      IF(_IdFPago = 1, 1, 0), _ChkLetras, 0, _MovConta, _MovKardex, _Generado, _NDias, _IdVendedor, _NomCliente, _DirCliente, _OBS, _IdUsuario, NOW());
     INSERT INTO d_factu (IdVenta, IdTienda, IdAlmacen, NOperacion_Gen, NSerie, NDocumento, IdDocFis, IdCliPro, Fecha, IdProducto, Cantidad, Recogido,
      CapaPrec, DescriPrec, Precio, PrecioIGV, SubTotal, SubTotalIGV, Costo, Margen, Unid, Unid_Reco, GEL, Peso, PPercepcion, 
      Percepcion, NItem, IdDocFis_Rel, IdDoc_Rel)
     SELECT _IdVenta, _IdTienda, IdAlmacen, _NOperacion, _NSerie, _NDocumento, _IdDocFis, _IdCliente, _Fecha, IdProducto, Cantidad, Recogido,
      CapaPrec, DescriPrec, Precio, PrecioIGV, SubTotal, SubTotalIGV, Costo, Margen, Unid, Unid_Reco, GEL, Peso, PPercepcion, Percepcion, NItem, 
      IdDocFis_Rel, IdDoc_Rel FROM d_puntovta WHERE (IdDocFis = _IdDocFis) AND (NSerie = _NSerie) AND (NDocumento= _NDocumento) AND (NOperacion = _NOperacion) AND Eliminado = 0;
     INSERT INTO comision (IdVenta, IdTienda, IdAlmacen, IdVendedor, NSerie, NDocumento, IdDocFis, IdProducto, Fecha, Cantidad, Unid, CapaPrec, DescriPrec, Precio, Comision)
     SELECT _IdVenta, _IdTienda, IdAlmacen, _IdVendedor, _NSerie, _NDocumento, _IdDocFis, IdProducto, _Fecha,
      Cantidad  * CapaPrec, Unid, CapaPrec, DescriPrec, PrecioIGV, 
      SubTotalIGV * (SELECT l.PCNor FROM producto AS p JOIN linea AS l ON p.IdLinea = l.IdLinea WHERE IdProducto = d_puntovta.`IdProducto`)
     FROM d_puntovta WHERE (IdDocFis = _IdDocFis) AND (NSerie = _NSerie) AND (NDocumento= _NDocumento) AND (NOperacion = _NOperacion) AND Eliminado = 0;
     IF _MovKardex = 1 THEN
       INSERT INTO kardex (IdTienda, NSerie, NDocumento, IdDocFis, IdProducto, IdAlmacen, IdOperacion, FechaEmi, Fecha, Automatico, Entrada, Salida, Recogido,
        Costo, PrecioSalida, CostoAct, Notas, DT, IdCliPro, RazSoc, Traslado, Transito, Observada, DocConformida, IdUsuario)
       SELECT _IdTienda, _NSerie, _NDocumento, _IdDocFis, IdProducto, IdAlmacen, _IdWindow, _Fecha, _FechaEnvio, 1, 0, Cantidad, Recogido * -1,
        Precio, 0, Precio, _OBS, NOW(), _IdCliente, _NomCliente, 0, 0, 0, ' ', _IdUsuario
       FROM d_puntovta WHERE (IdDocFis = _IdDocFis) AND (NSerie = _NSerie) AND (NDocumento= _NDocumento) AND (NOperacion = _NOperacion) AND Eliminado = 0;
     END IF;
     IF EXISTS(SELECT * FROM d_puntovta WHERE IdDocFis = _IdDocFis AND NSerie = _NSerie AND NDocumento= _NDocumento AND NOperacion = _NOperacion) THEN
       SELECT IFNULL(MAX(IdDoc_Rel), 0) INTO cIdDocFis_R FROM d_puntovta WHERE IdDocFis = _IdDocFis AND NSerie = _NSerie AND NDocumento= _NDocumento AND NOperacion = _NOperacion AND Eliminado = 0;
       IF cIdDocFis_R = 9 THEN
         UPDATE d_guiar INNER JOIN d_puntovta ON IdGuia = d_puntovta.IdDoc_Rel AND d_guiar.IdProducto = d_puntovta.IdProducto 
          SET IdVta_Rel = _IdVenta WHERE d_puntovta.IdDocFis = _IdDocFis AND d_puntovta.NSerie = _NSerie AND d_puntovta.NDocumento= _NDocumento AND d_puntovta.NOperacion = _NOperacion AND d_puntovta.Eliminado = 0;
         UPDATE guiar INNER JOIN d_puntovta ON IdGuia = d_puntovta.IdDoc_Rel
          SET Canjeado = 1 WHERE d_puntovta.IdDocFis = _IdDocFis AND d_puntovta.NSerie = _NSerie AND d_puntovta.NDocumento= _NDocumento AND d_puntovta.NOperacion = _NOperacion AND d_puntovta.Eliminado = 0;
        ELSEIF cIdDocFis_R = 30 THEN
         UPDATE d_proforma INNER JOIN d_puntovta ON IdProforma = d_puntovta.IdDoc_Rel AND d_proforma.IdProducto = d_puntovta.IdProducto 
          SET IdVta_Rel = _IdVenta WHERE d_puntovta.IdDocFis = _IdDocFis AND d_puntovta.NSerie = _NSerie AND d_puntovta.NDocumento= _NDocumento AND d_puntovta.NOperacion = _NOperacion AND d_puntovta.Eliminado = 0;
         UPDATE proforma INNER JOIN d_puntovta ON IdProforma = d_puntovta.IdDoc_Rel
          SET Canjeado = 1 WHERE d_puntovta.IdDocFis = _IdDocFis AND d_puntovta.NSerie = _NSerie AND d_puntovta.NDocumento= _NDocumento AND d_puntovta.NOperacion = _NOperacion AND d_puntovta.Eliminado = 0;
       END IF;
     END IF;
     IF _MovConta = 1 AND _IdFPago = 1 THEN
       IF _OpMon = 0 THEN       
         INSERT INTO d_cuenta (IdTienda, Codigo_Cuenta, NomCuenta, NDocumento, Fecha, IdOperacion, Abono_Soles, Cargo_Soles, Saldo_Soles,
          Abono_Dolar, Cargo_Dolar, Saldo_Dolar, IdCtaPartida, NomCtaPartida, Moneda , TC, Automatico, DT, IdUsuario)
         VALUE (_IdTienda, _IdCta, _NomCta, cNVenta, _Fecha, _IdWindow, _GTotal, 0, 0, 0, 0, 0, _IdCliente,
          _NomCliente, 0, _TC, 1, NOW(), _IdUsuario);
         INSERT INTO d_cuenta (IdTienda, Codigo_Cuenta, NomCuenta, NDocumento, Fecha, IdOperacion, Abono_Soles, Cargo_Soles, Saldo_Soles,
          Abono_Dolar, Cargo_Dolar, Saldo_Dolar, IdCtaPartida, NomCtaPartida, Moneda , TC, Automatico, DT, IdUsuario)
         VALUE (_IdTienda, _IdCliente, _NomCliente, cNVenta, _Fecha, _IdWindow, 0, _GTotal, 0, 0, 0, 0, _IdCta, _NomCta, 0, _TC, 1, NOW(), _IdUsuario);
        ELSE                    
         INSERT INTO d_cuenta (IdTienda, Codigo_Cuenta, NomCuenta, NDocumento, Fecha, IdOperacion, Abono_Soles, Cargo_Soles, Saldo_Soles,
          Abono_Dolar, Cargo_Dolar, Saldo_Dolar, IdCtaPartida, NomCtaPartida, Moneda , TC, Automatico, DT, IdUsuario)
         VALUE (_IdTienda, _IdCta, _NomCta, cNVenta, _Fecha, _IdWindow, 0, 0, 0, _GTotal, 0, 0, _IdCliente, _NomCliente, 1, _TC, 1, NOW(), _IdUsuario);
         INSERT INTO d_cuenta (IdTienda, Codigo_Cuenta, NomCuenta, NDocumento, Fecha, IdOperacion, Abono_Soles, Cargo_Soles, Saldo_Soles,
          Abono_Dolar, Cargo_Dolar, Saldo_Dolar, IdCtaPartida, NomCtaPartida, Moneda , TC, Automatico, DT, IdUsuario)
         VALUE (_IdTienda, _IdCliente, _NomCliente, cNVenta, _Fecha, _IdWindow, 0, 0, 0, 0, _GTotal, 0, _IdCta, _NomCta, 1, _TC, 1, NOW(), _IdUsuario);
       END IF;
     END IF;
     UPDATE puntovta SET MovConta = _MovConta, MovKardex = _MovKardex WHERE NOperacion = _NOperacion AND IdTienda = _IdTienda;
  COMMIT;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `IM_Venta` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `IM_Venta`(_cEstado VARCHAR(10), _IdVenta INT(14), _IdTienda VARCHAR(3), _NSerie VARCHAR(4), _NDocumento VARCHAR(20),
    _IdDocFis TINYINT(3), _IdCliente VARCHAR(8), _NomCliente VARCHAR(150), _DirCliente VARCHAR(150), _Fecha DATE, _FechaEnvio DATE, _cFechaVenc DATE, _IdFPago TINYINT(3), _OpMon SMALLINT(1),
    _TC DOUBLE, _IdCta VARCHAR(15), _NomCta VARCHAR(150), _IncIGV TINYINT(1), _IGV DOUBLE, _GTIGV DOUBLE, _GTotal DOUBLE, _IncDcto TINYINT(1), _IncPer TINYINT(1),
    _Dscto DOUBLE, _Percep DOUBLE, _NGuiaR VARCHAR(25), _ChkLetras TINYINT(1), _MovConta TINYINT(1), _MovKardex TINYINT(1), _NDias INT(11),
    _IdVendedor INT(11), _OBS LONGTEXT, _IdUsuario SMALLINT(6), _IdSesion INT(11), _IdWindow VARCHAR(3), _IdCliPro_Ant VARCHAR(8), _NSerie_Ant VARCHAR(4), _NDocumento_Ant VARCHAR(20),
    _IdDocFis_Ant TINYINT(3))
BEGIN
  DECLARE cNVenta VARCHAR (30);
  DECLARE cNVenta_Ant VARCHAR (30);
  DECLARE cIdDocFis_R TINYINT(3);
  START TRANSACTION; 
  SET cNVenta_Ant = CONCAT(_IdDocFis_Ant, _NSerie_Ant,  "-", _NDocumento_Ant);
  SET cNVenta = CONCAT(_IdDocFis, _NSerie,  "-", _NDocumento);
   IF _cEstado = 'NUEVO' THEN
     INSERT INTO factu (IdVenta, IdTienda, NSerie, NDocumento, IdDocFis, IdCliPro, Fecha, FechaEnvio, FechaVenc, IdFPago,
      Moneda, TC, IncIGV, PIGV, IGV, ISC, Total, eDcto, ePercepcion, eFlete, eEstiba, Dcto, PDcto,
      Percepcion, PPercepcion, NGuiaR, Cancelado, Letras, Transito, MovConta, MovKardex, NDias, IdVendedor, Razon_Social, Direccion, Observacion, IdUsuario, DT)
     VALUES (_IdVenta, _IdTienda, _NSerie, _NDocumento, _IdDocFis, _IdCliente, _Fecha, _FechaEnvio, _cFechaVenc, _IdFPago,
      _OpMon, _TC, _IncIGV, _IGV, _GTIGV, 0, _GTotal, _IncDcto, _IncPer, 0, 0, 0, _Dscto, 0,
      _Percep, _NGuiaR, IF(_IdFPago = 1, 1, 0), _ChkLetras, 0, _MovConta, _MovKardex, _NDias, _IdVendedor, _NomCliente, _DirCliente, _OBS, _IdUsuario, NOW());
     INSERT INTO d_factu (IdVenta, IdTienda, IdAlmacen, NSerie, NDocumento, IdDocFis, IdCliPro, Fecha, IdProducto, Cantidad, Recogido,
      CapaPrec, DescriPrec, Precio, PrecioIGV, SubTotal, SubTotalIGV, Costo, Margen, Unid, Unid_Reco, GEL, Peso, PPercepcion, 
      Percepcion, NItem, IdDocFis_Rel, IdDoc_Rel)
     SELECT _IdVenta, _IdTienda, IdAlmacen, _NSerie, _NDocumento, _IdDocFis, _IdCliente, _Fecha, IdProducto, Cantidad, Recogido,
      CapaPrec, DescriPrec, Precio, PrecioIGV, SubTotal, SubTotalIGV, Costo, Margen, Unid, Unid_Reco, GEL, Peso, PPercepcion,
     Percepcion, NItem, IdDocFis_Rel, IdDoc_Rel FROM td_factu WHERE IdSesion = _IdSesion AND IdWindow = _IdWindow AND Eliminado = 0;
     INSERT INTO comision (IdVenta, IdTienda, IdAlmacen, IdVendedor, NSerie, NDocumento, IdDocFis, IdProducto, Fecha, Cantidad, Unid, CapaPrec, DescriPrec, Precio, Comision)
     SELECT _IdVenta, _IdTienda, IdAlmacen, _IdVendedor, _NSerie, _NDocumento, _IdDocFis, IdProducto, _Fecha,
      Cantidad, Unid, CapaPrec, DescriPrec, PrecioIGV, 
      SubTotalIGV * (SELECT l.PCNor FROM producto AS p JOIN linea AS l ON p.IdLinea = l.IdLinea WHERE IdProducto = td_factu.`IdProducto`)
     FROM td_factu WHERE IdSesion = _IdSesion AND IdWindow = _IdWindow AND Eliminado = 0;
     IF _MovKardex = 1 THEN
       INSERT INTO kardex (IdTienda, NSerie, NDocumento, IdDocFis, IdProducto, IdAlmacen, IdOperacion, FechaEmi, Fecha, Automatico, Entrada, Salida, Recogido,
        Costo, PrecioSalida, CostoAct, Notas, DT, IdCliPro, RazSoc, Traslado, Transito, Observada, DocConformida, IdUsuario)
       SELECT _IdTienda, _NSerie, _NDocumento, _IdDocFis, IdProducto, IdAlmacen, _IdWindow, _Fecha, _FechaEnvio, 1, 0, Cantidad, Recogido * -1,
        0, Precio, 0, _OBS, NOW(), _IdCliente, _NomCliente, 0, 0, 0, ' ', _IdUsuario FROM td_factu WHERE IdSesion = _IdSesion AND IdWindow = _IdWindow AND Eliminado = 0;
     END IF;
     IF EXISTS(SELECT * FROM td_factu WHERE IdSesion = _IdSesion AND IdWindow = _IdWindow AND Eliminado = 0) THEN
       SELECT IFNULL(MAX(IdDoc_Rel), 0) INTO cIdDocFis_R FROM td_factu WHERE IdSesion = _IdSesion AND IdWindow = _IdWindow AND Eliminado = 0;
       IF cIdDocFis_R = 9 THEN
         UPDATE d_guiar INNER JOIN td_factu ON IdGuia = td_factu.IdDoc_Rel AND d_guiar.IdProducto = td_factu.IdProducto 
          SET IdVta_Rel = _IdVenta WHERE td_factu.IdSesion = _IdSesion AND td_factu.IdWindow = _IdWindow AND td_factu.Eliminado = 0;         
         UPDATE guiar INNER JOIN td_factu ON IdGuia = td_factu.IdDoc_Rel
          SET Canjeado = 1 WHERE td_factu.IdSesion = _IdSesion AND td_factu.IdWindow = _IdWindow AND td_factu.Eliminado = 0;
        ELSEIF cIdDocFis_R = 30 THEN
         UPDATE d_proforma INNER JOIN td_factu ON IdProforma = td_factu.IdDoc_Rel AND d_proforma.IdProducto = td_factu.IdProducto 
          SET IdVta_Rel = _IdVenta WHERE td_factu.IdSesion = _IdSesion AND td_factu.IdWindow = _IdWindow AND td_factu.Eliminado = 0;  
         UPDATE proforma INNER JOIN td_factu ON IdProforma = td_factu.IdDoc_Rel
          SET Canjeado = 1 WHERE td_factu.IdSesion = _IdSesion AND td_factu.IdWindow = _IdWindow AND td_factu.Eliminado = 0;  
       END IF;
     END IF;
     IF _MovConta = 1 AND _IdFPago = 1 THEN
       IF _OpMon = 0 THEN       
         INSERT INTO d_cuenta (IdTienda, Codigo_Cuenta, NomCuenta, NDocumento, Fecha, IdOperacion, Abono_Soles, Cargo_Soles, Saldo_Soles,
          Abono_Dolar, Cargo_Dolar, Saldo_Dolar, IdCtaPartida, NomCtaPartida, Moneda , TC, Automatico, DT, IdUsuario)
         VALUE (_IdTienda, _IdCta, _NomCta, cNVenta, _Fecha, _IdWindow, _GTotal, 0, 0, 0, 0, 0, _IdCliente,
          _NomCliente, 0, _TC, 1, NOW(), _IdUsuario);
         INSERT INTO d_cuenta (IdTienda, Codigo_Cuenta, NomCuenta, NDocumento, Fecha, IdOperacion, Abono_Soles, Cargo_Soles, Saldo_Soles,
          Abono_Dolar, Cargo_Dolar, Saldo_Dolar, IdCtaPartida, NomCtaPartida, Moneda , TC, Automatico, DT, IdUsuario)
         VALUE (_IdTienda, _IdCliente, _NomCliente, cNVenta, _Fecha, _IdWindow, 0, _GTotal, 0, 0, 0, 0, _IdCta, _NomCta, 0, _TC, 1, NOW(), _IdUsuario);
        ELSE                    
         INSERT INTO d_cuenta (IdTienda, Codigo_Cuenta, NomCuenta, NDocumento, Fecha, IdOperacion, Abono_Soles, Cargo_Soles, Saldo_Soles,
          Abono_Dolar, Cargo_Dolar, Saldo_Dolar, IdCtaPartida, NomCtaPartida, Moneda , TC, Automatico, DT, IdUsuario)
         VALUE (_IdTienda, _IdCta, _NomCta, cNVenta, _Fecha, _IdWindow, 0, 0, 0, _GTotal, 0, 0, _IdCliente, _NomCliente, 1, _TC, 1, NOW(), _IdUsuario);
         INSERT INTO d_cuenta (IdTienda, Codigo_Cuenta, NomCuenta, NDocumento, Fecha, IdOperacion, Abono_Soles, Cargo_Soles, Saldo_Soles,
          Abono_Dolar, Cargo_Dolar, Saldo_Dolar, IdCtaPartida, NomCtaPartida, Moneda , TC, Automatico, DT, IdUsuario)
         VALUE (_IdTienda, _IdCliente, _NomCliente, cNVenta, _Fecha, _IdWindow, 0, 0, 0, 0, _GTotal, 0, _IdCta, _NomCta, 1, _TC, 1, NOW(), _IdUsuario);
       END IF;
     END IF;
    ELSEIF _cEstado = 'MODIFICAR' THEN
     UPDATE factu SET IdTienda = _IdTienda, NSerie = _NSerie, NDocumento = _NDocumento, IdDocFis = _IdDocFis, IdCliPro = _IdCliente,
      Fecha = _Fecha, FechaEnvio = _FechaEnvio, FechaVenc = _cFechaVenc, IdFPago = _IdFPago, Moneda = _OpMon, TC = _TC, IncIGV = _IncIGV,
      PIGV = _IGV, IGV = _GTIGV, ISC = 0, Total = _GTotal, eDcto = _IncDcto, ePercepcion = _IncPer, eFlete = 0, eEstiba = 0, Dcto = 0,
      PDcto = _Dscto, Percepcion = 0, PPercepcion = _Percep, NGuiaR = _NGuiaR, Cancelado = IF(_IdFPago = 1, 1, 0), Letras = _ChkLetras,
      Transito = 0, MovConta = _MovConta, MovKardex = _MovKardex, NDias = _NDias, IdVendedor = _IdVendedor, Razon_Social = _NomCliente, Direccion = _DirCliente,
      Observacion = _OBS, IdUsuario = _IdUsuario, DT = NOW() WHERE (IdVenta = _IdVenta) AND (IdTienda = _IdTienda);
     IF _MovKardex = 1 THEN
       DELETE FROM kardex WHERE (NSerie = _NSerie_Ant) AND (NDocumento = _NDocumento_Ant) AND (IdDocFis = _IdDocFis_Ant) AND (IdCliPro = _IdCliPro_Ant) AND (IdTienda = _IdTienda);
     END IF;
     UPDATE d_factu SET Eliminado = 1 WHERE (IdVenta = _IdVenta) AND (IdTienda = _IdTienda);
     DELETE FROM comision WHERE (IdVenta = _IdVenta) AND (IdTienda = _IdTienda);
     DELETE FROM d_cuenta WHERE (NDocumento = cNVenta_Ant) AND (IdTienda = _IdTienda);
     INSERT INTO d_factu (IdVenta, IdTienda, IdAlmacen, NSerie, NDocumento, IdDocFis, IdCliPro, Fecha, IdProducto, Cantidad, Recogido,
      CapaPrec, DescriPrec, Precio, PrecioIGV, SubTotal, SubTotalIGV, Costo, Margen, Unid, Unid_Reco, GEL, Peso, PPercepcion, 
      Percepcion, NItem, IdDocFis_Rel, IdDoc_Rel)
     SELECT _IdVenta, _IdTienda, IdAlmacen, _NSerie, _NDocumento, _IdDocFis, _IdCliente, _Fecha, IdProducto, Cantidad, Recogido,
      CapaPrec, DescriPrec, Precio, PrecioIGV, SubTotal, SubTotalIGV, Costo, Margen, Unid, Unid_Reco, GEL, Peso, PPercepcion,
      Percepcion, NItem, IdDocFis_Rel, IdDoc_Rel FROM td_factu WHERE IdSesion = _IdSesion AND IdWindow = _IdWindow AND Eliminado = 0;
     INSERT INTO comision (IdVenta, IdTienda, IdAlmacen, IdVendedor, NSerie, NDocumento, IdDocFis, IdProducto, Fecha, Cantidad, Unid, CapaPrec, DescriPrec, Precio, Comision)
     SELECT _IdVenta, _IdTienda, IdAlmacen, _IdVendedor, _NSerie, _NDocumento, _IdDocFis, IdProducto, _Fecha,
      Cantidad, Unid, CapaPrec, DescriPrec, PrecioIGV, 
      SubTotalIGV * (SELECT l.PCNor FROM producto AS p JOIN linea AS l ON p.IdLinea = l.IdLinea WHERE IdProducto = td_factu.`IdProducto`)
     FROM td_factu WHERE IdSesion = _IdSesion AND IdWindow = _IdWindow AND Eliminado = 0;
     IF _MovKardex = 1 THEN
       INSERT INTO kardex (IdTienda, NSerie, NDocumento, IdDocFis, IdProducto, IdAlmacen, IdOperacion, FechaEmi, Fecha, Automatico, Entrada, Salida, Recogido,
        Costo, PrecioSalida, CostoAct, Notas, DT, IdCliPro, RazSoc, Traslado, Transito, Observada, DocConformida, IdUsuario)
       SELECT _IdTienda, _NSerie, _NDocumento, _IdDocFis, IdProducto, IdAlmacen, _IdWindow, _Fecha, _FechaEnvio, 1, 0, Cantidad, Recogido * -1,
        0, Precio, 0, _OBS, NOW(), _IdCliente, _NomCliente, 0, 0, 0, ' ', _IdUsuario FROM td_factu WHERE IdSesion = _IdSesion AND IdWindow = _IdWindow AND Eliminado = 0;
     END IF;
     IF EXISTS(SELECT * FROM td_factu WHERE IdSesion = _IdSesion AND IdWindow = _IdWindow AND Eliminado = 0) THEN
       SELECT IFNULL(MAX(IdDoc_Rel), 0) INTO cIdDocFis_R FROM td_factu WHERE IdSesion = _IdSesion AND IdWindow = _IdWindow AND Eliminado = 0;
       IF cIdDocFis_R = 9 THEN
         UPDATE d_guiar INNER JOIN td_factu ON IdGuia = td_factu.IdDoc_Rel AND d_guiar.IdProducto = td_factu.IdProducto 
          SET IdVta_Rel = _IdVenta WHERE td_factu.IdSesion = _IdSesion AND td_factu.IdWindow = _IdWindow AND td_factu.Eliminado = 0;         
         UPDATE guiar INNER JOIN td_factu ON IdGuia = td_factu.IdDoc_Rel
          SET Canjeado = 1 WHERE td_factu.IdSesion = _IdSesion AND td_factu.IdWindow = _IdWindow AND td_factu.Eliminado = 0;
        ELSEIF cIdDocFis_R = 30 THEN
         UPDATE d_proforma INNER JOIN td_factu ON IdProforma = td_factu.IdDoc_Rel AND d_proforma.IdProducto = td_factu.IdProducto 
          SET IdVta_Rel = _IdVenta WHERE td_factu.IdSesion = _IdSesion AND td_factu.IdWindow = _IdWindow AND td_factu.Eliminado = 0;  
         UPDATE proforma INNER JOIN td_factu ON IdProforma = td_factu.IdDoc_Rel
          SET Canjeado = 1 WHERE td_factu.IdSesion = _IdSesion AND td_factu.IdWindow = _IdWindow AND td_factu.Eliminado = 0;  
       END IF;
     END IF;
     IF _MovConta = 1 AND _IdFPago = 1 THEN
       IF _OpMon = 0 THEN       
         INSERT INTO d_cuenta (IdTienda, Codigo_Cuenta, NomCuenta, NDocumento, Fecha, IdOperacion, Abono_Soles, Cargo_Soles, Saldo_Soles,
          Abono_Dolar, Cargo_Dolar, Saldo_Dolar, IdCtaPartida, NomCtaPartida, Moneda , TC, Automatico, DT, IdUsuario)
         VALUE (_IdTienda, _IdCta, _NomCta, cNVenta, _Fecha, _IdWindow, _GTotal, 0, 0, 0, 0, 0, _IdCliente,
          _NomCliente, 0, _TC, 1, NOW(), _IdUsuario);
         INSERT INTO d_cuenta (IdTienda, Codigo_Cuenta, NomCuenta, NDocumento, Fecha, IdOperacion, Abono_Soles, Cargo_Soles, Saldo_Soles,
          Abono_Dolar, Cargo_Dolar, Saldo_Dolar, IdCtaPartida, NomCtaPartida, Moneda , TC, Automatico, DT, IdUsuario)
         VALUE (_IdTienda, _IdCliente, _NomCliente, cNVenta, _Fecha, _IdWindow, 0, _GTotal, 0, 0, 0, 0, _IdCta, _NomCta, 0, _TC, 1, NOW(), _IdUsuario);
        ELSE                    
         INSERT INTO d_cuenta (IdTienda, Codigo_Cuenta, NomCuenta, NDocumento, Fecha, IdOperacion, Abono_Soles, Cargo_Soles, Saldo_Soles,
          Abono_Dolar, Cargo_Dolar, Saldo_Dolar, IdCtaPartida, NomCtaPartida, Moneda , TC, Automatico, DT, IdUsuario)
         VALUE (_IdTienda, _IdCta, _NomCta, cNVenta, _Fecha, _IdWindow, 0, 0, 0, _GTotal, 0, 0, _IdCliente, _NomCliente, 1, _TC, 1, NOW(), _IdUsuario);
         INSERT INTO d_cuenta (IdTienda, Codigo_Cuenta, NomCuenta, NDocumento, Fecha, IdOperacion, Abono_Soles, Cargo_Soles, Saldo_Soles,
          Abono_Dolar, Cargo_Dolar, Saldo_Dolar, IdCtaPartida, NomCtaPartida, Moneda , TC, Automatico, DT, IdUsuario)
         VALUE (_IdTienda, _IdCliente, _NomCliente, cNVenta, _Fecha, _IdWindow, 0, 0, 0, 0, _GTotal, 0, _IdCta, _NomCta, 1, _TC, 1, NOW(), _IdUsuario);
       END IF;
     END IF; 
   END IF;
   COMMIT;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `JalaCant_TempDF` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `JalaCant_TempDF`(_IdSesion INT(11), _IdWindow VARCHAR(3), _IdProducto varchar(10))
BEGIN
      SELECT Sum(Cantidad) As Cant, Sum(Recogido) As CantR FROM td_factu WHERE IdSesion = _IdSesion And IdWindow = _IdWindow And IdProducto = _IdProducto;
    END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `JalaCant_TempPV` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `JalaCant_TempPV`(_IdSesion INT(11), _IdWindow VARCHAR(3), _IdProducto varchar(10))
BEGIN
      SELECT Sum(Cantidad) As Cant, Sum(Recogido) As CantR FROM td_puntovta WHERE IdSesion = _IdSesion And IdWindow = _IdWindow And IdProducto = _IdProducto;
    END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `Jala_Equivalencias` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `Jala_Equivalencias`(_IdProducto varchar(10))
BEGIN
   SELECT Id_Precio AS Codigo, AbrevPrec AS Descripcion From precxprod Where IdProducto = _IdProducto Order By CapaPrec DESC;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `Listar_Catalago` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `Listar_Catalago`(_IdClase VARCHAR(6))
BEGIN 
   SELECT * FROM productos_sunat WHERE (IdClase = _IdClase) ORDER BY IdProducto;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `Listar_Clientes` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `Listar_Clientes`(_IdTienda VARCHAR(3))
BEGIN
      SELECT * FROM clientes WHERE (IdTienda = _IdTienda AND Eliminado = 0) ORDER BY NomCliPro;
    END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `Listar_Compras` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `Listar_Compras`(_IdTienda VARCHAR(3), _dFechaI DATE, _dFechaF DATE)
BEGIN
      SELECT * FROM ccompra WHERE IdTienda = _IdTienda  AND (IdDocFis <> 7 AND IdDocFis <> 8) AND Eliminado = 0 AND (Fecha >= _dFechaI AND Fecha <= _dFechaF);
    END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `Listar_CredxCob` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `Listar_CredxCob`(_IdTienda VARCHAR(3), _OnlyNoCancel INT(1), _cIdClte VARCHAR(8))
BEGIN
    UPDATE factu SET Marcar = 0 WHERE (Marcar <> 0);
    IF _OnlyNoCancel = 0 then
      if length(_cIdClte)>0 then 
        SELECT * From clista_cxc where IdTienda = _IdTienda And IdFPago = 2 And Anulado = 0 And Eliminado = 0 AND IdCliPro = _cIdClte ORDER BY IdDocFis, NSerie, NDocumento, FechaVenc;
       else
        SELECT * FROM clista_cxc WHERE IdTienda = _IdTienda AND IdFPago = 2 AND Anulado = 0 AND Eliminado = 0 ORDER BY IdDocFis, NSerie, NDocumento, FechaVenc; 
      end if;  
     elseIF _OnlyNoCancel = 1 THEN
      IF LENGTH(_cIdClte)>0 THEN  
        SELECT * FROM clista_cxc WHERE IdTienda = _IdTienda AND IdFPago = 2 AND Anulado = 0 AND Eliminado = 0 AND Cancelado = 0 AND IdCliPro = _cIdClte ORDER BY IdDocFis, NSerie, NDocumento, FechaVenc;
       else
        SELECT * FROM clista_cxc WHERE IdTienda = _IdTienda AND IdFPago = 2 AND Anulado = 0 AND Eliminado = 0 AND Cancelado = 0 ORDER BY IdDocFis, NSerie, NDocumento, FechaVenc; 
      end if;  
    end if;  
 END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `Listar_CredxPag` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `Listar_CredxPag`(_IdTienda VARCHAR(3), _OnlyNoCancel INT(1), _cIdProv VARCHAR(8))
BEGIN
    UPDATE compra SET Marcar = 0 WHERE (Marcar <> 0);
    IF _OnlyNoCancel = 0 THEN
      IF LENGTH(_cIdProv)>0 THEN 
        SELECT * FROM clista_cxp WHERE IdTienda = _IdTienda AND IdFPago = 2 AND Eliminado = 0 AND IdCliPro = _cIdProv ORDER BY IdDocFis, NSerie, NDocumento, FechaVenc;
       ELSE
        SELECT * FROM clista_cxp WHERE IdTienda = _IdTienda AND IdFPago = 2 AND Eliminado = 0 ORDER BY IdDocFis, NSerie, NDocumento, FechaVenc; 
      END IF;  
     ELSEIF _OnlyNoCancel = 1 THEN
      IF LENGTH(_cIdProv)>0 THEN  
        SELECT * FROM clista_cxp WHERE IdTienda = _IdTienda AND IdFPago = 2 AND Eliminado = 0 AND Cancelado = 0 AND IdCliPro = _cIdProv ORDER BY IdDocFis, NSerie, NDocumento, FechaVenc;
       ELSE
        SELECT * FROM clista_cxp WHERE IdTienda = _IdTienda AND IdFPago = 2 AND Eliminado = 0 AND Cancelado = 0 ORDER BY IdDocFis, NSerie, NDocumento, FechaVenc; 
      END IF;  
    END IF;  
  END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `Listar_Equiv` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `Listar_Equiv`(_IdTienda VARCHAR(3), _IdProducto VARCHAR(10))
BEGIN
      SELECT Id_Precio, NomPrecio, Precio_Publico, Precio_Mayor, Precio_Especial, CapaPrec, Tipo, AbrevPrec FROM precxprod
       WHERE (IdProducto = _IdProducto) AND (IdTienda = _IdTienda) ORDER BY NomPrecio;
    END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `Listar_LetxPag` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `Listar_LetxPag`(_IdTienda VARCHAR(3), _OnlyNoCancel INT(1), _cIdProv VARCHAR(8))
BEGIN
    UPDATE compra SET Marcar = 0 WHERE (Marcar <> 0);
    IF _OnlyNoCancel = 0 THEN
      IF LENGTH(_cIdProv)>0 THEN 
        SELECT * FROM clista_lxp WHERE IdTienda = _IdTienda AND Eliminado = 0 AND IdCliPro = _cIdProv ORDER BY Nro_Letra, Nro_Unico, FechaVenc;
       ELSE
        SELECT * FROM clista_lxp WHERE IdTienda = _IdTienda AND Eliminado = 0 ORDER BY Nro_Letra, Nro_Unico, FechaVenc; 
      END IF;  
     ELSEIF _OnlyNoCancel = 1 THEN
      IF LENGTH(_cIdProv)>0 THEN  
        SELECT * FROM clista_lxp WHERE IdTienda = _IdTienda AND Eliminado = 0 AND Cancelado = 0 AND IdCliPro = _cIdProv ORDER BY Nro_Letra, Nro_Unico, FechaVenc;
       ELSE
        SELECT * FROM clista_lxp WHERE IdTienda = _IdTienda AND Eliminado = 0 AND Cancelado = 0 ORDER BY Nro_Letra, Nro_Unico, FechaVenc; 
      END IF;  
    END IF;  
  END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `Listar_LetxProv` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `Listar_LetxProv`(_IdTienda VARCHAR(3))
BEGIN
      SELECT * FROM cletrasxpagar WHERE IdTienda = _IdTienda AND Eliminado = 0;   
    END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `Listar_Precios` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `Listar_Precios`(_IdTienda VARCHAR(3), _IdAlmacen varchar(2))
BEGIN
      Select * From clista_precios WHERE IdAlmacen = _IdAlmacen And Eliminado = 0 AND NomProducto <> 'SERVICIO' group By NomProducto;
    END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `Listar_PrecVta` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `Listar_PrecVta`(_IdTienda VARCHAR(3), _IdProducto VARCHAR(10))
BEGIN
      SELECT * FROM lista_precios WHERE IdTienda = _IdTienda AND IdProducto = _IdProducto;
    END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `Listar_Productos` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `Listar_Productos`(_IdTienda VARCHAR(3), _Todos INT(1))
BEGIN 
  IF _Todos = 1 THEN  
    SELECT * FROM cproducto WHERE (Eliminado = 0) ORDER BY NomProducto;
   ELSE
    SELECT * FROM cproducto WHERE (Eliminado = 0 AND Inactivo = 0) ORDER BY NomProducto; 
  END IF;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `Listar_Proveedores` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `Listar_Proveedores`(_IdTienda VARCHAR(3))
BEGIN
      SELECT * FROM proveedores WHERE (IdTienda = _IdTienda AND Eliminado = 0) ORDER BY NomCliPro;
    END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `Listar_Tickets` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `Listar_Tickets`(_IdTienda varchar(3), _dFechaI date, _dFechaF date)
BEGIN
      select * from resumen_diario Where (IdTienda = _IdTienda) AND (Fecha >= _dFechaI AND Fecha <= _dFechaF) AND Eliminado = 0 order by IdTienda, Fecha;
  END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `Listar_Ventas` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `Listar_Ventas`(_IdTienda VARCHAR(3), _dFechaI DATE, _dFechaF DATE)
BEGIN
      Select * From cfactu Where IdTienda = _IdTienda And (IdDocFis <> 7 And IdDocFis <> 8) And Servicio = 0 And Eliminado = 0 AND (Fecha >= _dFechaI AND Fecha <= _dFechaF);
    END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `MaximoCodigoNum` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `MaximoCodigoNum`(`_Tabla` VARCHAR(50) CHARSET utf8, `_Campo` VARCHAR(50) CHARSET utf8)
    READS SQL DATA
begin
   SELECT max(`_Campo`) + 1 AS Maximo FROM `_Tabla`;
    END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `Regulariza_Stock` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `Regulariza_Stock`(_IdAlmacen VARCHAR (2))
BEGIN
   UPDATE productoalmacen SET StockAct = 0, StockDisp = 0 WHERE IdAlmacen = _IdAlmacen;
   UPDATE productoalmacen JOIN cstock ON productoalmacen.`IdProducto` = cstock.`IdProducto` AND productoalmacen.`IdAlmacen` = cstock.`IdAlmacen`
   SET productoalmacen.`StockAct` = cstock.`StockAct`, productoalmacen.`StockDisp` = cstock.`StockDisp` WHERE productoalmacen.IdAlmacen = _IdAlmacen;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `Relaciona_CompxLet` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `Relaciona_CompxLet`(_IdTienda VARCHAR(3), _IdProveedor VARCHAR(8))
BEGIN
      SELECT * FROM cdoc_compxprov WHERE IdTienda = _IdTienda  AND IdCliPro = _IdProveedor AND (IdDocFis <> 7 AND IdDocFis <> 8) AND Eliminado = 0;
    END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `Stock_Minimo` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `Stock_Minimo`()
BEGIN
      Select * From cstock Where Unidad <= Stock_Minimo And Stock_Minimo <> 0;
    END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `Stock_Productos` */;
DELIMITER ;;
CREATE DEFINER=`tchalpon_utranspjr`@`%.%.%.%` PROCEDURE `Stock_Productos`(_sCri VARCHAR(500))
BEGIN
  Insert Into temp_stock (IdProducto, NomProducto, Stock_Act, Stock_Disp, Abrev, AbrevF, Costo, Capacidad, Peso)
   SELECT Kr.IdProducto, Pr.NomProducto, Sum(If(Kr.Entrada=0,-Kr.Salida,Kr.Entrada)) As Saldo,
     Sum(Kr.Recogido) AS Disp, U.Abrev As AbrevU, F.Abrev As AbrevF, Pr.LPC As Costo, Pr.Capacidad, Pr.Peso
    FROM (unidad AS F INNER JOIN (producto AS Pr INNER JOIN unidad AS U ON
       Pr.IdUnidad = U.IdUnidad) ON F.IdUnidad = Pr.IdFraccion) INNER JOIN
       Kardex AS Kr ON Pr.IdProducto = Kr.IdProducto WHERE _sCri
    GROUP BY Kr.IdProducto, Pr.NomProducto, Capacidad, U.Unidades, F.Unidades, U.Abrev, F.Abrev, Pr.LPC;
END ;;
DELIMITER ;

--
-- Final view structure for view `caplicado_equipo`
--

/*!50001 DROP VIEW IF EXISTS `caplicado_equipo`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `caplicado_equipo` AS select `p`.`IdTienda` AS `IdTienda`,`pa`.`IdAlmacen` AS `IdAlmacen`,`pa`.`IdProducto` AS `IdProducto`,`p`.`IdCodBar` AS `IdCodBar`,`p`.`NomProducto` AS `NomProducto`,`p`.`Capacidad` AS `Capacidad`,`u`.`Abrev` AS `AbrevU`,`f`.`Abrev` AS `AbrevF`,`m`.`NomMarca` AS `NomMarca`,`md`.`NomModelo` AS `NomModelo`,`p`.`LPC` AS `LPC`,`pa`.`Costo` AS `Costo`,`pa`.`StockAct` AS `StockAct`,`pa`.`StockDisp` AS `StockDisp`,`p`.`Stock_Minimo` AS `Stock_Minimo`,`p`.`Peso` AS `Peso`,`p`.`Precio_Detalle` AS `Precio_Detalle`,`p`.`Precio_Mayor` AS `Precio_Mayor`,`p`.`Precio_Especial` AS `Precio_Especial`,`p`.`Precio_EspecialM` AS `Precio_EspecialM`,`p`.`Precio_DetalleF` AS `Precio_DetalleF`,`p`.`Precio_MayorF` AS `Precio_MayorF`,`p`.`Precio_EspecialF` AS `Precio_EspecialF`,`p`.`Precio_EspecialMF` AS `Precio_EspecialMF`,`ap`.`NomEquipo` AS `NomEquipo`,`p`.`IdCodExt` AS `IdCodExt`,`p`.`Inactivo` AS `Inactivo`,`p`.`Eliminado` AS `Eliminado` from ((((((`aplicado_equipo` `ap` join `productoalmacen` `pa` on((`ap`.`IdProducto` = convert(`pa`.`IdProducto` using utf8)))) join `producto` `p` on((convert(`pa`.`IdProducto` using utf8) = `p`.`IdProducto`))) join `unidad` `u` on((`u`.`IdUnidad` = `p`.`IdUnidad`))) join `marca` `m` on((`p`.`IdMarca` = `m`.`IdMarca`))) join `modelo` `md` on((`p`.`IdModelo` = `md`.`IdModelo`))) join `unidad` `f` on((`p`.`IdFraccion` = `f`.`IdUnidad`))) */;

--
-- Final view structure for view `ccanje_doc`
--

/*!50001 DROP VIEW IF EXISTS `ccanje_doc`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `ccanje_doc` AS select `f`.`IdTienda` AS `IdTienda`,`f`.`IdVenta` AS `IdVenta`,`d_f`.`IdAlmacen` AS `IdAlmacen`,`df`.`Abrev` AS `Abrev`,`f`.`NSerie` AS `NSerie`,`f`.`NDocumento` AS `NDocumento`,`f`.`IdDocFis` AS `IdDocFis`,`f`.`Fecha` AS `Fecha`,`d_f`.`IdProducto` AS `IdProducto`,`p`.`NomProducto` AS `NomProducto`,`d_f`.`Cantidad` AS `Cantidad`,`d_f`.`Unid` AS `Unid`,`d_f`.`DescriPrec` AS `DescriPrec`,`d_f`.`Precio` AS `Precio`,`d_f`.`PrecioIGV` AS `PrecioIGV`,`d_f`.`SubTotal` AS `SubTotal`,`d_f`.`SubTotalIGV` AS `SubTotalIGV`,`d_f`.`Costo` AS `Costo`,`d_f`.`Margen` AS `Margen`,`d_f`.`Peso` AS `Peso`,`d_f`.`GEL` AS `GEL`,`d_f`.`CapaPrec` AS `CapaPrec`,`p`.`Capacidad` AS `Capacidad`,`d_f`.`IdDoc_Rel` AS `IdDoc_Rel`,`d_f`.`NItem` AS `NItem`,`f`.`Anulado` AS `Anulado`,`f`.`Eliminado` AS `Eliminado` from (((`factu` `f` join `d_factu` `d_f` on((`f`.`IdVenta` = `d_f`.`IdVenta`))) join `docfiscal` `df` on((`f`.`IdDocFis` = `df`.`IdDocFis`))) join `producto` `p` on((`p`.`IdProducto` = convert(`d_f`.`IdProducto` using utf8)))) where ((`f`.`Servicio` = 0) and (`f`.`Anulado` = 0) and (`f`.`Eliminado` = 0)) */;

--
-- Final view structure for view `ccobro_clte`
--

/*!50001 DROP VIEW IF EXISTS `ccobro_clte`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `ccobro_clte` AS select `medio_cobro`.`IdMedio_Pago` AS `IdMedio_Pago`,`medio_cobro`.`IdTienda` AS `IdTienda`,`medio_cobro`.`Anulado` AS `Anulado`,`medio_cobro`.`NDocPago` AS `NDocPago`,`medio_cobro`.`Fecha` AS `Fecha`,`medio_cobro`.`Monto` AS `Monto`,`medio_cobro`.`Moneda` AS `Moneda`,`medio_cobro`.`TC` AS `TC`,`medio_cobro`.`IdCliPro` AS `IdCliPro`,`clientes`.`NomCliPro` AS `NomCliPro`,`clientes`.`Direccion` AS `Direccion`,`clientes`.`RUC` AS `RUC`,`clientes`.`DNI` AS `DNI`,`medio_cobro`.`Tipo_MedioPago` AS `Tipo_MedioPago`,`tipo_mediopago`.`DescMedioPago` AS `DescMedioPago`,`medio_cobro`.`NOperacion` AS `NOperacion`,`medio_cobro`.`Banco` AS `Banco`,`medio_cobro`.`Lugar` AS `Lugar`,`medio_cobro`.`IdAbonoaCta` AS `IdAbonoaCta`,`medio_cobro`.`Eliminado` AS `Eliminado` from ((`medio_cobro` left join `clientes` on((`medio_cobro`.`IdCliPro` = `clientes`.`IdCliPro`))) left join `tipo_mediopago` on((`medio_cobro`.`IdMedio_Pago` = `tipo_mediopago`.`IdMedioPago`))) */;

--
-- Final view structure for view `ccompra`
--

/*!50001 DROP VIEW IF EXISTS `ccompra`*/;
/*!50001 CREATE ALGORITHM=TEMPTABLE */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `ccompra` AS select `compra`.`MovKardex` AS `MovKardex`,`compra`.`MovConta` AS `MovConta`,`compra`.`IdCompra` AS `IdCompra`,`compra`.`IdTienda` AS `IdTienda`,`compra`.`IdAlmacen` AS `IdAlmacen`,`compra`.`Fecha` AS `Fecha`,`compra`.`IdDocFis` AS `IdDocFis`,`docfiscal`.`NomDocFis` AS `NomDocFis`,`compra`.`NSerie` AS `NSerie`,`compra`.`NDocumento` AS `NDocumento`,`compra`.`IdFPago` AS `IdFPago`,`compra`.`FechaLlegada` AS `FechaLlegada`,`compra`.`NGuiaR` AS `NGuiaR`,`compra`.`IncIGV` AS `IncIGV`,`compra`.`PIGV` AS `PIGV`,`compra`.`IGV` AS `IGV`,`compra`.`Total` AS `Total`,`compra`.`IdCliPro` AS `IdCliPro`,`proveedores`.`NomCliPro` AS `NomCliPro`,`proveedores`.`Direccion` AS `Direccion`,`proveedores`.`RUC` AS `RUC`,`proveedores`.`DNI` AS `DNI`,`compra`.`FechaVenc` AS `FechaVenc`,`compra`.`Moneda` AS `Moneda`,`compra`.`TC` AS `TC`,`compra`.`eDcto` AS `eDcto`,`compra`.`PDcto` AS `PDcto`,`compra`.`Dcto` AS `Dcto`,`compra`.`Flete` AS `Flete`,`compra`.`Estiba` AS `Estiba`,`compra`.`ePercepcion` AS `ePercepcion`,`compra`.`PPercepcion` AS `PPercepcion`,`compra`.`Percepcion` AS `Percepcion`,`compra`.`GasRel` AS `GasRel`,`compra`.`AboRel` AS `AboRel`,`compra`.`Letras` AS `Letras`,`compra`.`Modificado` AS `Modificado`,`compra`.`IdDocFisMod` AS `IdDocFisMod`,`docfiscal_1`.`NomDocFis` AS `NomDocFisMod`,`compra`.`NSerMod` AS `NSerMod`,`compra`.`NDocMod` AS `NDocMod`,`compra`.`FechaMod` AS `FechaMod`,`compra`.`IdMotNota` AS `IdMotNota`,`motnota`.`NomMotNota` AS `NomMotNota`,`compra`.`Observacion` AS `Observacion`,`compra`.`DT` AS `DT`,`compra`.`IdUsuario` AS `IdUsuario`,`compra`.`Eliminado` AS `Eliminado` from ((((`proveedores` join `compra` on((`proveedores`.`IdCliPro` = convert(`compra`.`IdCliPro` using utf8)))) left join `docfiscal` on((`docfiscal`.`IdDocFis` = `compra`.`IdDocFis`))) left join `docfiscal` `docfiscal_1` on((`docfiscal_1`.`IdDocFis` = `compra`.`IdDocFisMod`))) left join `motnota` on((`motnota`.`IdMotNota` = `compra`.`IdMotNota`))) order by `compra`.`IdTienda`,`compra`.`Fecha` desc,`compra`.`IdDocFis`,`compra`.`NSerie`,`compra`.`NDocumento` */;

--
-- Final view structure for view `cd_compra`
--

/*!50001 DROP VIEW IF EXISTS `cd_compra`*/;
/*!50001 CREATE ALGORITHM=TEMPTABLE */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `cd_compra` AS select `dc`.`IdCompra` AS `IdCompra`,`dc`.`Bonificacion` AS `Bonificacion`,`dc`.`IdTienda` AS `IdTienda`,`dc`.`NSerie` AS `NSerie`,`dc`.`NDocumento` AS `NDocumento`,`dc`.`IdDocFis` AS `IdDocFis`,`dc`.`IdCliPro` AS `IdCliPro`,`p`.`NomProducto` AS `NomProducto`,`dc`.`IdProducto` AS `IdProducto`,`dc`.`Cantidad` AS `Cantidad`,`dc`.`Unid` AS `Unid`,`dc`.`DescriPrec` AS `DescriPrec`,`dc`.`Precio` AS `Precio`,`dc`.`PrecioIGV` AS `PrecioIGV`,`dc`.`PPercepcion` AS `PPercepcion`,`dc`.`Percepcion` AS `Percepcion`,`dc`.`SubTotal` AS `SubTotal`,`dc`.`SubTotalIGV` AS `SubTotalIGV`,`dc`.`GEL` AS `GEL`,`dc`.`Peso` AS `Peso`,`dc`.`IdAlmacen` AS `IdAlmacen` from (`producto` `p` join `d_compra` `dc` on((`p`.`IdProducto` = convert(`dc`.`IdProducto` using utf8)))) order by `p`.`NomProducto` */;

--
-- Final view structure for view `cd_cuenta`
--

/*!50001 DROP VIEW IF EXISTS `cd_cuenta`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `cd_cuenta` AS select `d_c`.`IdTienda` AS `IdTienda`,`d_c`.`codigo_cuenta` AS `codigo_cuenta`,`d_c`.`NomCuenta` AS `NomCuenta`,`d_c`.`NDocumento` AS `NDocumento`,`d_c`.`Fecha` AS `Fecha`,`d_c`.`IdOperacion` AS `IdOperacion`,`d_c`.`Abono_Soles` AS `Abono_Soles`,`d_c`.`Cargo_Soles` AS `Cargo_Soles`,`d_c`.`Saldo_Soles` AS `Saldo_Soles`,`d_c`.`Abono_Dolar` AS `Abono_Dolar`,`d_c`.`Cargo_Dolar` AS `Cargo_Dolar`,`d_c`.`Saldo_Dolar` AS `Saldo_Dolar`,`d_c`.`Moneda` AS `Moneda`,`d_c`.`TC` AS `TC`,`d_c`.`IdCtaPartida` AS `IdCtaPartida`,`d_c`.`NomCtaPartida` AS `NomCtaPartida`,`d_c`.`Fecha_Mov` AS `Fecha_Mov`,`d_c`.`IdDocFis_Mov` AS `IdDocFis_Mov`,`d_c`.`NDocumento_Mov` AS `NDocumento_Mov`,`d_c`.`MedioPago` AS `MedioPago`,`d_c`.`NOperacion` AS `NOperacion`,`d_c`.`Entidad_Bancaria` AS `Entidad_Bancaria`,`d_c`.`Lugar` AS `Lugar`,`d_c`.`Obs` AS `Obs`,`d_c`.`Automatico` AS `Automatico`,`d_c`.`Eliminado` AS `Eliminado` from `d_cuenta` `d_c` */;

--
-- Final view structure for view `cd_factu`
--

/*!50001 DROP VIEW IF EXISTS `cd_factu`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `cd_factu` AS select `df`.`IdVenta` AS `IdVenta`,`df`.`Bonificacion` AS `Bonificacion`,`df`.`IdTienda` AS `IdTienda`,`df`.`NSerie` AS `NSerie`,`df`.`NDocumento` AS `NDocumento`,`df`.`IdDocFis` AS `IdDocFis`,`df`.`IdCliPro` AS `IdCliPro`,`p`.`NomProducto` AS `NomProducto`,`df`.`IdProducto` AS `IdProducto`,`df`.`Cantidad` AS `Cantidad`,`df`.`Unid` AS `Unid`,`df`.`DescriPrec` AS `DescriPrec`,`df`.`Precio` AS `Precio`,`df`.`PrecioIGV` AS `PrecioIGV`,`df`.`PPercepcion` AS `PPercepcion`,`df`.`Percepcion` AS `Percepcion`,`df`.`SubTotal` AS `SubTotal`,`df`.`SubTotalIGV` AS `SubTotalIGV`,`df`.`GEL` AS `GEL`,`df`.`Peso` AS `Peso`,`df`.`IdAlmacen` AS `IdAlmacen`,`df`.`Descripcion` AS `Descripcion`,`df`.`NItem` AS `NItem`,`u`.`Abrev_Univ` AS `Abrev_Univ`,`p`.`IdCodExt` AS `IdCodExt`,`df`.`Eliminado` AS `Eliminado` from ((`producto` `p` join `d_factu` `df` on((`p`.`IdProducto` = convert(`df`.`IdProducto` using utf8)))) join `unidad` `u` on((convert(`df`.`DescriPrec` using utf8) = `u`.`Abrev`))) order by `df`.`NItem` */;

--
-- Final view structure for view `cd_guiar`
--

/*!50001 DROP VIEW IF EXISTS `cd_guiar`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `cd_guiar` AS select `d_guiar`.`IdGuia` AS `IdGuia`,`d_guiar`.`IdTienda` AS `IdTienda`,`d_guiar`.`IdAlmacen` AS `IdAlmacen`,`d_guiar`.`NSerie` AS `NSerie`,`d_guiar`.`NDocumento` AS `NDocumento`,`d_guiar`.`IdDocFis` AS `IdDocFis`,`d_guiar`.`Fecha` AS `Fecha`,`d_guiar`.`IdProducto` AS `IdProducto`,`producto`.`NomProducto` AS `NomProducto`,`d_guiar`.`Cantidad` AS `Cantidad`,`d_guiar`.`CapaPrec` AS `CapaPrec`,`d_guiar`.`DescriPrec` AS `DescriPrec`,`d_guiar`.`Precio` AS `Precio`,`d_guiar`.`SubTotal` AS `SubTotal`,`d_guiar`.`Margen` AS `Margen`,`d_guiar`.`Costo` AS `Costo`,`d_guiar`.`Unid` AS `Unid`,`d_guiar`.`Peso` AS `Peso`,`d_guiar`.`NItem` AS `NItem`,`d_guiar`.`GEL` AS `GEL`,`d_guiar`.`Eliminado` AS `Eliminado` from (`d_guiar` left join `producto` on((convert(`d_guiar`.`IdProducto` using utf8) = `producto`.`IdProducto`))) */;

--
-- Final view structure for view `cd_ordenalm`
--

/*!50001 DROP VIEW IF EXISTS `cd_ordenalm`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `cd_ordenalm` AS select `d_ordenalm`.`IdOrden` AS `IdGuia`,`d_ordenalm`.`IdTienda` AS `IdTienda`,`d_ordenalm`.`IdAlmacen` AS `IdAlmacen`,`d_ordenalm`.`NSerie` AS `NSerie`,`d_ordenalm`.`NDocumento` AS `NDocumento`,`d_ordenalm`.`IdDocFis` AS `IdDocFis`,`d_ordenalm`.`Fecha` AS `Fecha`,`d_ordenalm`.`IdProducto` AS `IdProducto`,`producto`.`NomProducto` AS `NomProducto`,`d_ordenalm`.`Cantidad` AS `Cantidad`,`d_ordenalm`.`CapaPrec` AS `CapaPrec`,`d_ordenalm`.`DescriPrec` AS `DescriPrec`,`d_ordenalm`.`Precio` AS `Precio`,`d_ordenalm`.`SubTotal` AS `SubTotal`,`d_ordenalm`.`Margen` AS `Margen`,`d_ordenalm`.`Costo` AS `Costo`,`d_ordenalm`.`Unid` AS `Unid`,`d_ordenalm`.`Peso` AS `Peso`,`d_ordenalm`.`NItem` AS `NItem`,`d_ordenalm`.`GEL` AS `GEL`,`d_ordenalm`.`Eliminado` AS `Eliminado` from (`d_ordenalm` left join `producto` on((convert(`d_ordenalm`.`IdProducto` using utf8) = `producto`.`IdProducto`))) */;

--
-- Final view structure for view `cd_ordencompra`
--

/*!50001 DROP VIEW IF EXISTS `cd_ordencompra`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `cd_ordencompra` AS select `do`.`IdOrden_Cmp` AS `IdOrden_Cmp`,`do`.`Bonificacion` AS `Bonificacion`,`do`.`IdTienda` AS `IdTienda`,`do`.`NDocumento` AS `NDocumento`,`do`.`IdDocFis` AS `IdDocFis`,`do`.`IdCliPro` AS `IdCliPro`,`p`.`NomProducto` AS `NomProducto`,`do`.`IdProducto` AS `IdProducto`,`do`.`Cantidad` AS `Cantidad`,`do`.`Unid` AS `Unid`,`do`.`DescriPrec` AS `DescriPrec`,`do`.`Precio` AS `Precio`,`do`.`PrecioIGV` AS `PrecioIGV`,`do`.`SubTotal` AS `SubTotal`,`do`.`SubTotalIGV` AS `SubTotalIGV`,`do`.`GEL` AS `GEL`,`do`.`Peso` AS `Peso`,`do`.`IdAlmacen` AS `IdAlmacen`,`do`.`NItem` AS `NItem`,`do`.`Eliminado` AS `Eliminado` from ((`producto` `p` join `d_ordencompra` `do` on((`p`.`IdProducto` = convert(`do`.`IdProducto` using utf8)))) join `unidad` `u` on((`p`.`IdUnidad` = `u`.`IdUnidad`))) order by `do`.`NItem` */;

--
-- Final view structure for view `cd_proforma`
--

/*!50001 DROP VIEW IF EXISTS `cd_proforma`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `cd_proforma` AS select `dp`.`IdProforma` AS `IdProforma`,`dp`.`Bonificacion` AS `Bonificacion`,`dp`.`IdTienda` AS `IdTienda`,`dp`.`NDocumento` AS `NDocumento`,`dp`.`IdDocFis` AS `IdDocFis`,`dp`.`IdCliPro` AS `IdCliPro`,`p`.`NomProducto` AS `NomProducto`,`dp`.`IdProducto` AS `IdProducto`,`dp`.`Cantidad` AS `Cantidad`,`dp`.`Unid` AS `Unid`,`dp`.`DescriPrec` AS `DescriPrec`,`dp`.`Precio` AS `Precio`,`dp`.`PrecioIGV` AS `PrecioIGV`,`dp`.`SubTotal` AS `SubTotal`,`dp`.`SubTotalIGV` AS `SubTotalIGV`,`dp`.`GEL` AS `GEL`,`dp`.`Peso` AS `Peso`,`dp`.`IdAlmacen` AS `IdAlmacen`,`dp`.`NItem` AS `NItem`,`dp`.`Eliminado` AS `Eliminado` from ((`producto` `p` join `d_proforma` `dp` on((`p`.`IdProducto` = convert(`dp`.`IdProducto` using utf8)))) join `unidad` `u` on((`p`.`IdUnidad` = `u`.`IdUnidad`))) order by `dp`.`NItem` */;

--
-- Final view structure for view `cd_puntovta`
--

/*!50001 DROP VIEW IF EXISTS `cd_puntovta`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `cd_puntovta` AS select `dpv`.`IdTienda` AS `IdTienda`,`dpv`.`IdPuntoVta` AS `IdPuntoVta`,`dpv`.`NOperacion` AS `NOperacion`,`dpv`.`NSerie` AS `NSerie`,`dpv`.`NDocumento` AS `NDocumento`,`dpv`.`IdDocFis` AS `IdDocFis`,`dpv`.`IdProducto` AS `IdProducto`,`p`.`Descripcion` AS `NomProducto`,`p`.`Capacidad` AS `Capacidad`,`dpv`.`Peso` AS `Peso`,`dpv`.`Unid` AS `Unid`,`dpv`.`DescriPrec` AS `DescriPrec`,`dpv`.`CapaPrec` AS `CapaPrec`,`dpv`.`PrecioIGV` AS `PrecioIGV`,`dpv`.`SubTotalIGV` AS `SubTotalIGV`,`dpv`.`NItem` AS `NItem`,`dpv`.`Eliminado` AS `Eliminado` from (`d_puntovta` `dpv` join `producto` `p` on((convert(`dpv`.`IdProducto` using utf8) = `p`.`IdProducto`))) */;

--
-- Final view structure for view `cdet_cxc`
--

/*!50001 DROP VIEW IF EXISTS `cdet_cxc`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `cdet_cxc` AS select `d_factu`.`IdTienda` AS `IdTienda`,`d_factu`.`IdAlmacen` AS `IdAlmacen`,`d_factu`.`NSerie` AS `NSerie`,`d_factu`.`NDocumento` AS `NDocumento`,`d_factu`.`IdDocFis` AS `IdDocFis`,`producto`.`NomProducto` AS `NomProducto`,`d_factu`.`Unid` AS `Unid`,`d_factu`.`Unid_Reco` AS `Unid_Reco`,`d_factu`.`DescriPrec` AS `DescriPrec`,`d_factu`.`PrecioIGV` AS `PrecioIGV`,`d_factu`.`SubTotalIGV` AS `SubTotalIGV`,`d_factu`.`IdCliPro` AS `IdCliPro`,`d_factu`.`Eliminado` AS `Eliminado`,`factu`.`IdFPago` AS `IdFPago`,`d_factu`.`IdVenta` AS `IdVenta` from ((`factu` join `d_factu` on((`factu`.`IdVenta` = `d_factu`.`IdVenta`))) join `producto` on((`producto`.`IdProducto` = convert(`d_factu`.`IdProducto` using utf8)))) where ((`d_factu`.`Eliminado` = 0) and (`factu`.`IdFPago` = 2)) */;

--
-- Final view structure for view `cdet_cxp`
--

/*!50001 DROP VIEW IF EXISTS `cdet_cxp`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `cdet_cxp` AS select `d_compra`.`IdTienda` AS `IdTienda`,`d_compra`.`IdAlmacen` AS `IdAlmacen`,`d_compra`.`NSerie` AS `NSerie`,`d_compra`.`NDocumento` AS `NDocumento`,`d_compra`.`IdDocFis` AS `IdDocFis`,`producto`.`NomProducto` AS `NomProducto`,`d_compra`.`Unid` AS `Unid`,`d_compra`.`Unid_Reco` AS `Unid_Reco`,`d_compra`.`DescriPrec` AS `DescriPrec`,`d_compra`.`PrecioIGV` AS `PrecioIGV`,`d_compra`.`SubTotalIGV` AS `SubTotalIGV`,`d_compra`.`Eliminado` AS `Eliminado`,`compra`.`IdFPago` AS `IdFPago`,`d_compra`.`IdCompra` AS `IdCompra` from ((`compra` join `d_compra` on((`compra`.`IdCompra` = `d_compra`.`IdCompra`))) join `producto` on((`producto`.`IdProducto` = convert(`d_compra`.`IdProducto` using utf8)))) where ((`d_compra`.`Eliminado` = 0) and (`compra`.`IdFPago` = 2)) */;

--
-- Final view structure for view `cequipo`
--

/*!50001 DROP VIEW IF EXISTS `cequipo`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `cequipo` AS select rtrim(ltrim(`aplicado_equipo`.`NomEquipo`)) AS `Descripcion`,`aplicado_equipo`.`IdTienda` AS `IdTienda` from `aplicado_equipo` group by `aplicado_equipo`.`NomEquipo`,`aplicado_equipo`.`IdTienda` order by `aplicado_equipo`.`NomEquipo` */;

--
-- Final view structure for view `cest_comp`
--

/*!50001 DROP VIEW IF EXISTS `cest_comp`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `cest_comp` AS select year(`compra`.`Fecha`) AS `Ano`,month(`compra`.`Fecha`) AS `Mes`,if((`compra`.`Moneda` = 0),sum(`compra`.`Total`),0) AS `Soles`,if((`compra`.`Moneda` = 1),sum((`compra`.`Total` * `compra`.`TC`)),0) AS `Dolar` from `compra` where (`compra`.`Eliminado` = 0) group by year(`compra`.`Fecha`),month(`compra`.`Fecha`),`compra`.`Moneda` */;

--
-- Final view structure for view `cest_vtas`
--

/*!50001 DROP VIEW IF EXISTS `cest_vtas`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `cest_vtas` AS select year(`factu`.`Fecha`) AS `Ano`,month(`factu`.`Fecha`) AS `Mes`,if((`factu`.`Moneda` = 0),sum(`factu`.`Total`),0) AS `Soles`,if((`factu`.`Moneda` = 1),sum((`factu`.`Total` * `factu`.`TC`)),0) AS `Dolar` from `factu` where ((`factu`.`Eliminado` = 0) and (`factu`.`Anulado` = 0)) group by year(`factu`.`Fecha`),month(`factu`.`Fecha`),`factu`.`Moneda` */;

--
-- Final view structure for view `cfactu`
--

/*!50001 DROP VIEW IF EXISTS `cfactu`*/;
/*!50001 CREATE ALGORITHM=MERGE */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `cfactu` AS select `factu`.`Anulado` AS `Anulado`,`factu`.`Generado` AS `Generado`,`factu`.`MovKardex` AS `MovKardex`,`factu`.`MovConta` AS `MovConta`,`factu`.`Canjeado` AS `Canjeado`,`factu`.`IdVenta` AS `IdVenta`,`factu`.`IdTienda` AS `IdTienda`,`factu`.`Fecha` AS `Fecha`,`factu`.`IdDocFis` AS `IdDocFis`,`docfiscal`.`NomDocFis` AS `NomDocFis`,`factu`.`NSerie` AS `NSerie`,`factu`.`NDocumento` AS `NDocumento`,`factu`.`IdFPago` AS `IdFPago`,`factu`.`FechaEnvio` AS `FechaEnvio`,`factu`.`NGuiaR` AS `NGuiaR`,`factu`.`IncIGV` AS `IncIGV`,`factu`.`PIGV` AS `PIGV`,`factu`.`IGV` AS `IGV`,`factu`.`Total` AS `Total`,`factu`.`IdCliPro` AS `IdCliPro`,if(isnull(`factu`.`Razon_Social`),`clientes`.`NomCliPro`,convert(`factu`.`Razon_Social` using utf8)) AS `NomCliPro`,if(isnull(`factu`.`Direccion`),`clientes`.`Direccion`,convert(`factu`.`Direccion` using utf8)) AS `Direccion`,`clientes`.`RUC` AS `RUC`,`clientes`.`DNI` AS `DNI`,`factu`.`NDias` AS `NDias`,`factu`.`FechaVenc` AS `FechaVenc`,`factu`.`Moneda` AS `Moneda`,`factu`.`TC` AS `TC`,`factu`.`IdVendedor` AS `IdVendedor`,`vendedor`.`NomVendedor` AS `NomVendedor`,`factu`.`eDcto` AS `eDcto`,`factu`.`PDcto` AS `PDcto`,`factu`.`Dcto` AS `Dcto`,`factu`.`ePercepcion` AS `ePercepcion`,`factu`.`PPercepcion` AS `PPercepcion`,`factu`.`Percepcion` AS `Percepcion`,`factu`.`Letras` AS `Letras`,`factu`.`Modificado` AS `Modificado`,`factu`.`IdDocFisMod` AS `IdDocFisMod`,`docfiscal_1`.`NomDocFis` AS `NomDocFisMod`,`factu`.`NSerMod` AS `NSerMod`,`factu`.`NDocMod` AS `NDocMod`,`factu`.`FechaMod` AS `FechaMod`,`factu`.`IdMotNota` AS `IdMotNota`,`motnota`.`NomMotNota` AS `NomMotNota`,`factu`.`Observacion` AS `Observacion`,`factu`.`NOperacion_Gen` AS `NOperacion_Gen`,`factu`.`Servicio` AS `Servicio`,`factu`.`Valor_Ref` AS `Valor_Ref`,`factu`.`IdCuenta` AS `IdCuenta`,`factu`.`NomCuenta` AS `NomCuenta`,`factu`.`Fecha_Anulado` AS `Fecha_Anulado`,`factu`.`Motivo_Anulado` AS `Motivo_Anulado`,`factu`.`Enviado` AS `Enviado`,`factu`.`Respuesta` AS `Respuesta`,`factu`.`Descrip_Rpta` AS `Descrip_Rpta`,`factu`.`Ticket_Sunat` AS `Ticket_Sunat`,`factu`.`Hash` AS `Hash`,`factu`.`DT` AS `DT`,`factu`.`IdUsuario` AS `IdUsuario`,`factu`.`Eliminado` AS `Eliminado` from (((((`clientes` join `factu` on((`clientes`.`IdCliPro` = convert(`factu`.`IdCliPro` using utf8)))) left join `vendedor` on((`vendedor`.`IdVendedor` = `factu`.`IdVendedor`))) left join `docfiscal` on((`docfiscal`.`IdDocFis` = `factu`.`IdDocFis`))) left join `docfiscal` `docfiscal_1` on((`docfiscal_1`.`IdDocFis` = `factu`.`IdDocFisMod`))) left join `motnota` on((`motnota`.`IdMotNota` = `factu`.`IdMotNota`))) order by `factu`.`IdTienda`,`factu`.`Fecha` desc,`factu`.`IdDocFis`,`factu`.`NSerie`,`factu`.`NDocumento` */;

--
-- Final view structure for view `cfactu_guia`
--

/*!50001 DROP VIEW IF EXISTS `cfactu_guia`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `cfactu_guia` AS select `f`.`IdTienda` AS `IdTienda`,`f`.`IdVenta` AS `IdVenta`,`d_f`.`IdAlmacen` AS `IdAlmacen`,`df`.`Abrev` AS `Abrev`,`f`.`NSerie` AS `NSerie`,`f`.`NDocumento` AS `NDocumento`,`f`.`IdDocFis` AS `IdDocFis`,`f`.`Fecha` AS `Fecha`,`d_f`.`IdProducto` AS `IdProducto`,`p`.`NomProducto` AS `NomProducto`,`d_f`.`Cantidad` AS `Cantidad`,`d_f`.`Unid` AS `Unid`,`d_f`.`DescriPrec` AS `DescriPrec`,`d_f`.`PrecioIGV` AS `PrecioIGV`,`d_f`.`SubTotalIGV` AS `SubTotalIGV`,`d_f`.`Costo` AS `Costo`,`d_f`.`Margen` AS `Margen`,`d_f`.`Peso` AS `Peso`,`d_f`.`GEL` AS `GEL`,`d_f`.`CapaPrec` AS `CapaPrec`,`p`.`Capacidad` AS `Capacidad`,`d_f`.`IdDoc_Rel` AS `IdDoc_Rel`,`d_f`.`NItem` AS `NItem`,`f`.`Anulado` AS `Anulado`,`f`.`Eliminado` AS `Eliminado` from (((`factu` `f` join `d_factu` `d_f` on((`f`.`IdVenta` = `d_f`.`IdVenta`))) join `docfiscal` `df` on((`f`.`IdDocFis` = `df`.`IdDocFis`))) join `producto` `p` on((`p`.`IdProducto` = convert(`d_f`.`IdProducto` using utf8)))) where ((`f`.`Servicio` = 0) and (`f`.`Anulado` = 0) and (`f`.`Eliminado` = 0) and (`d_f`.`Eliminado` = 0)) */;

--
-- Final view structure for view `cgenerado_puntovta`
--

/*!50001 DROP VIEW IF EXISTS `cgenerado_puntovta`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `cgenerado_puntovta` AS select `d_puntovta`.`IdTienda` AS `IdTienda`,`d_puntovta`.`NOperacion` AS `NOperacion`,`d_puntovta`.`IdDocFis` AS `IdDocFis`,`docfiscal`.`NomDocFis` AS `NomDocFis`,`d_puntovta`.`NSerie` AS `NSerie`,`d_puntovta`.`NDocumento` AS `NDocumento` from (`docfiscal` join `d_puntovta` on((`docfiscal`.`Cod_DocFis` = `d_puntovta`.`IdDocFis`))) group by `d_puntovta`.`NOperacion`,`d_puntovta`.`IdDocFis`,`docfiscal`.`NomDocFis`,`d_puntovta`.`NSerie`,`d_puntovta`.`NDocumento` */;

--
-- Final view structure for view `cguia_factu`
--

/*!50001 DROP VIEW IF EXISTS `cguia_factu`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `cguia_factu` AS select `g`.`IdTienda` AS `IdTienda`,`g`.`IdGuia` AS `IdGuia`,`d_g`.`IdAlmacen` AS `IdAlmacen`,`df`.`Abrev` AS `Abrev`,`g`.`NSerie` AS `NSerie`,`g`.`NDocumento` AS `NDocumento`,`g`.`IdDocFis` AS `IdDocFis`,`g`.`FechaEmi` AS `FechaEmi`,`d_g`.`IdProducto` AS `IdProducto`,`p`.`NomProducto` AS `NomProducto`,`d_g`.`Cantidad` AS `Cantidad`,`d_g`.`Unid` AS `Unid`,`d_g`.`DescriPrec` AS `DescriPrec`,`d_g`.`Precio` AS `Precio`,`d_g`.`SubTotal` AS `SubTotal`,`d_g`.`Costo` AS `Costo`,`d_g`.`Margen` AS `Margen`,`d_g`.`Peso` AS `Peso`,`d_g`.`GEL` AS `GEL`,`d_g`.`CapaPrec` AS `CapaPrec`,`p`.`Capacidad` AS `Capacidad`,`d_g`.`NItem` AS `NItem`,`g`.`Anulado` AS `Anulado`,`g`.`Eliminado` AS `Eliminado` from (((`guiar` `g` join `d_guiar` `d_g` on((`g`.`IdGuia` = `d_g`.`IdGuia`))) join `docfiscal` `df` on((`g`.`IdDocFis` = `df`.`IdDocFis`))) join `producto` `p` on((`p`.`IdProducto` = convert(`d_g`.`IdProducto` using utf8)))) where ((`g`.`Eliminado` = 0) and (`g`.`Anulado` = 0) and (`g`.`Canjeado` = 0)) */;

--
-- Final view structure for view `cguiar`
--

/*!50001 DROP VIEW IF EXISTS `cguiar`*/;
/*!50001 CREATE ALGORITHM=MERGE */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `cguiar` AS select `guiar`.`Anulado` AS `Anulado`,`guiar`.`MovKardex` AS `MovKardex`,`guiar`.`Canjeado` AS `Canjeado`,`guiar`.`IdGuia` AS `IdGuia`,`guiar`.`IdTienda` AS `IdTienda`,`guiar`.`IdDocFis` AS `IdDocFis`,`docfiscal`.`NomDocFis` AS `NomDocFis`,`guiar`.`NSerie` AS `NSerie`,`guiar`.`NDocumento` AS `NDocumento`,`guiar`.`FechaEmi` AS `FechaEmi`,`guiar`.`FechaIniTra` AS `FechaIniTra`,`guiar`.`IdMotivoG` AS `IdMotivoG`,`motivog`.`NomMotivoG` AS `NomMotivoG`,`guiar`.`DirPartida` AS `DirPartida`,`guiar`.`IdCliPro` AS `IdCliPro`,`guiar`.`RazSoc` AS `RazSoc`,`guiar`.`DirLlegada` AS `DirLlegada`,`guiar`.`IdUniTra` AS `IdUniTra`,`guiar`.`Placa` AS `Placa`,`guiar`.`Marca` AS `Marca`,`guiar`.`NInscripcion` AS `NInscripcion`,`guiar`.`IdConductor` AS `IdConductor`,`guiar`.`NomConductor` AS `NomConductor`,`guiar`.`NLicencia` AS `NLicencia`,`guiar`.`IdTipoDes` AS `IdTipoDes`,`guiar`.`NTipoDes` AS `NTipoDes`,`guiar`.`IdTransportista` AS `IdTransportista`,`guiar`.`NomTransportista` AS `NomTransportista`,`guiar`.`IdTipoTrans` AS `IdTipoTrans`,`guiar`.`NTipoTrans` AS `NTipoTrans`,`guiar`.`Eliminado` AS `Eliminado` from ((`guiar` left join `motivog` on((`motivog`.`IdMotivoG` = `guiar`.`IdMotivoG`))) left join `docfiscal` on((`docfiscal`.`IdDocFis` = `guiar`.`IdDocFis`))) */;

--
-- Final view structure for view `cletrasxpagar`
--

/*!50001 DROP VIEW IF EXISTS `cletrasxpagar`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `cletrasxpagar` AS select `lxp`.`IdTienda` AS `IdTienda`,`lxp`.`Cancelado` AS `Cancelado`,`lxp`.`Nro_Letra` AS `Nro_Letra`,`lxp`.`Nro_Unico` AS `Nro_Unico`,`lxp`.`Fecha` AS `Fecha`,((0 <> if((`lxp`.`FechaVenc` < date_format(now(),'%Y-%m-%d 00:00:00')),1,0)) and (`lxp`.`Cancelado` = 0)) AS `Vencido`,`lxp`.`FechaVenc` AS `FechaVenc`,`lxp`.`IdCliPro` AS `IdCliPro`,`p`.`NomCliPro` AS `NomCliPro`,`lxp`.`Total` AS `Total`,if((`lxp`.`Moneda` = 0),(`lxp`.`Total` + `lxp`.`MontoAdi`),0) AS `Soles`,if((`lxp`.`Moneda` = 1),(`lxp`.`Total` + `lxp`.`MontoAdi`),0) AS `Dolar`,`lxp`.`Amortizado` AS `Amortizado`,if((`lxp`.`Moneda` = 0),((`lxp`.`Total` + `lxp`.`MontoAdi`) - `lxp`.`Amortizado`),0) AS `STotal`,if((`lxp`.`Moneda` = 1),((`lxp`.`Total` + `lxp`.`MontoAdi`) - `lxp`.`Amortizado`),0) AS `DTotal`,`lxp`.`Pagos` AS `Pagos`,`lxp`.`Marcar` AS `Marcar`,`lxp`.`Moneda` AS `Moneda`,`lxp`.`TC` AS `TC`,`lxp`.`Observacion` AS `Observacion`,`lxp`.`DT` AS `DT`,`lxp`.`Eliminado` AS `Eliminado`,`lxp`.`IdLetra` AS `IdLetra` from (`letrasxpagar` `lxp` join `proveedores` `p` on((convert(`lxp`.`IdCliPro` using utf8) = `p`.`IdCliPro`))) */;

--
-- Final view structure for view `clista_cxc`
--

/*!50001 DROP VIEW IF EXISTS `clista_cxc`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `clista_cxc` AS select `f`.`IdTienda` AS `IdTienda`,`f`.`Cancelado` AS `Cancelado`,((0 <> if((`f`.`FechaVenc` < date_format(now(),'%Y-%m-%d 00:00:00')),1,0)) and (`f`.`Cancelado` = 0)) AS `Vencido`,`df`.`Abrev` AS `Abrev`,`f`.`IdDocFis` AS `IdDocFis`,`f`.`NSerie` AS `NSerie`,`f`.`NDocumento` AS `NDocumento`,`f`.`Fecha` AS `Fecha`,`f`.`FechaVenc` AS `FechaVenc`,`f`.`IdCliPro` AS `IdCliPro`,`c`.`NomCliPro` AS `RazSoc`,if((`f`.`Moneda` = 0),(`f`.`Total` + `f`.`MontoAdi`),0) AS `Soles`,if((`f`.`Moneda` = 1),(`f`.`Total` + `f`.`MontoAdi`),0) AS `Dolar`,`f`.`Amortizado` AS `Amortizado`,if((`f`.`Moneda` = 0),((`f`.`Total` + `f`.`MontoAdi`) - `f`.`Amortizado`),0) AS `STotal`,if((`f`.`Moneda` = 1),((`f`.`Total` + `f`.`MontoAdi`) - `f`.`Amortizado`),0) AS `DTotal`,`f`.`Moneda` AS `Moneda`,`f`.`TC` AS `TC`,`f`.`Marcar` AS `Marcar`,`f`.`Pagos` AS `Pagos`,`f`.`IdFPago` AS `IdFPago`,`f`.`Anulado` AS `Anulado`,`f`.`Eliminado` AS `Eliminado`,`f`.`IdVenta` AS `IdVenta` from ((`factu` `f` join `docfiscal` `df` on((`f`.`IdDocFis` = `df`.`IdDocFis`))) join `clientes` `c` on((convert(`f`.`IdCliPro` using utf8) = `c`.`IdCliPro`))) */;

--
-- Final view structure for view `clista_cxp`
--

/*!50001 DROP VIEW IF EXISTS `clista_cxp`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `clista_cxp` AS select `c`.`IdTienda` AS `IdTienda`,`c`.`Cancelado` AS `Cancelado`,((0 <> if((`c`.`FechaVenc` < date_format(now(),'%Y-%m-%d 00:00:00')),1,0)) and (`c`.`Cancelado` = 0)) AS `Vencido`,`df`.`Abrev` AS `Abrev`,`c`.`IdDocFis` AS `IdDocFis`,`c`.`NSerie` AS `NSerie`,`c`.`NDocumento` AS `NDocumento`,`c`.`Fecha` AS `Fecha`,`c`.`FechaVenc` AS `FechaVenc`,`c`.`IdCliPro` AS `IdCliPro`,`p`.`NomCliPro` AS `RazSoc`,if((`c`.`Moneda` = 0),(`c`.`Total` + `c`.`MontoAdi`),0) AS `Soles`,if((`c`.`Moneda` = 1),(`c`.`Total` + `c`.`MontoAdi`),0) AS `Dolar`,`c`.`Amortizado` AS `Amortizado`,if((`c`.`Moneda` = 0),((`c`.`Total` + `c`.`MontoAdi`) - `c`.`Amortizado`),0) AS `STotal`,if((`c`.`Moneda` = 1),((`c`.`Total` + `c`.`MontoAdi`) - `c`.`Amortizado`),0) AS `DTotal`,`c`.`Moneda` AS `Moneda`,`c`.`TC` AS `TC`,`c`.`Marcar` AS `Marcar`,`c`.`Pagos` AS `Pagos`,`c`.`IdFPago` AS `IdFPago`,`c`.`Eliminado` AS `Eliminado`,`c`.`IdCompra` AS `IdCompra` from ((`compra` `c` join `docfiscal` `df` on((`c`.`IdDocFis` = `df`.`IdDocFis`))) join `proveedores` `p` on((convert(`c`.`IdCliPro` using utf8) = `p`.`IdCliPro`))) */;

--
-- Final view structure for view `clista_lxp`
--

/*!50001 DROP VIEW IF EXISTS `clista_lxp`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `clista_lxp` AS select `l`.`IdTienda` AS `IdTienda`,`l`.`Cancelado` AS `Cancelado`,((0 <> if((`l`.`FechaVenc` < date_format(now(),'%Y-%m-%d 00:00:00')),1,0)) and (`l`.`Cancelado` = 0)) AS `Vencido`,`l`.`Nro_Letra` AS `Nro_Letra`,`l`.`Nro_Unico` AS `Nro_Unico`,`l`.`Fecha` AS `Fecha`,`l`.`FechaVenc` AS `FechaVenc`,`l`.`IdCliPro` AS `IdCliPro`,`p`.`NomCliPro` AS `RazSoc`,if((`l`.`Moneda` = 0),`l`.`Total`,0) AS `Soles`,if((`l`.`Moneda` = 1),`l`.`Total`,0) AS `Dolar`,`l`.`Amortizado` AS `Amortizado`,if((`l`.`Moneda` = 0),(`l`.`Total` - `l`.`Amortizado`),0) AS `STotal`,if((`l`.`Moneda` = 1),(`l`.`Total` - `l`.`Amortizado`),0) AS `DTotal`,`l`.`Moneda` AS `Moneda`,`l`.`TC` AS `TC`,`l`.`Marcar` AS `Marcar`,`l`.`Pagos` AS `Pagos`,`l`.`Eliminado` AS `Eliminado`,`l`.`IdLetra` AS `IdLetra` from (`letrasxpagar` `l` join `proveedores` `p` on((convert(`l`.`IdCliPro` using utf8) = `p`.`IdCliPro`))) */;

--
-- Final view structure for view `clista_precios`
--

/*!50001 DROP VIEW IF EXISTS `clista_precios`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `clista_precios` AS select `producto`.`IdTienda` AS `IdTienda`,`cstock`.`IdAlmacen` AS `IdAlmacen`,`producto`.`IdProducto` AS `IdProducto`,`producto`.`NomProducto` AS `NomProducto`,`cstock`.`LPC` AS `LPC`,`cstock`.`CostoP` AS `CostoP`,`cstock`.`Unidad` AS `Unidad`,`cstock`.`Und_Disp` AS `Und_Disp`,`cstock`.`AbrevU` AS `AbrevU`,`cstock`.`Fraccion` AS `Fraccion`,`cstock`.`Fra_Disp` AS `Fra_Disp`,`cstock`.`AbrevF` AS `AbrevF`,`producto`.`Precio_Detalle` AS `Precio_Detalle`,`producto`.`Precio_Mayor` AS `Precio_Mayor`,`producto`.`Precio_Especial` AS `Precio_Especial`,`producto`.`Precio_EspecialM` AS `Precio_EspecialM`,`cstock`.`NomMarca` AS `NomMarca`,`cstock`.`NomModelo` AS `NomModelo`,`producto`.`IdCodExt` AS `IdCodExt`,`producto`.`Eliminado` AS `Eliminado` from ((`producto` join `unidad` on((`producto`.`IdUnidad` = `unidad`.`IdUnidad`))) join `cstock` on((`producto`.`IdProducto` = convert(`cstock`.`IdProducto` using utf8)))) */;

--
-- Final view structure for view `co_permiso`
--

/*!50001 DROP VIEW IF EXISTS `co_permiso`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `co_permiso` AS select `wpermiso`.`Usuario` AS `Usuario`,`wpermiso`.`IdDialogo` AS `IdDialogo`,`wpermiso`.`IdBoton` AS `IdBoton`,`wboton`.`Nombre` AS `Nombre`,`wpermiso`.`Estado` AS `Estado`,if(`wpermiso`.`Estado`,'Activado','Desactivado') AS `Permiso` from (`wboton` join (`wdiabton` join `wpermiso` on(((`wdiabton`.`IdBoton` = `wpermiso`.`IdBoton`) and (`wdiabton`.`IdDialogo` = `wpermiso`.`IdDialogo`)))) on((`wboton`.`IdBoton` = `wdiabton`.`IdBoton`))) order by `wboton`.`Nombre` */;

--
-- Final view structure for view `coperacion_tipocuenta`
--

/*!50001 DROP VIEW IF EXISTS `coperacion_tipocuenta`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `coperacion_tipocuenta` AS select `oc`.`IdOpera_Cta` AS `IdOpera_Cta`,`oc`.`IdOperacion` AS `IdOperacion`,`op`.`NomOperacion` AS `NomOperacion`,`oc`.`IdTipoCuenta` AS `IdTipoCuenta`,`tc`.`NomTipoCuenta` AS `NomTipoCuenta`,`op`.`Tipo` AS `Tipo`,`oc`.`Eliminado` AS `Eliminado` from ((`operacion_cuenta` `oc` join `operacion` `op` on((`oc`.`IdOperacion` = `op`.`IdOperacion`))) join `tipo_cuenta` `tc` on((`oc`.`IdTipoCuenta` = convert(`tc`.`IdTipoCuenta` using utf8)))) */;

--
-- Final view structure for view `corden_alm`
--

/*!50001 DROP VIEW IF EXISTS `corden_alm`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `corden_alm` AS select `orden_alm`.`Anulado` AS `Anulado`,`orden_alm`.`MovKardex` AS `MovKardex`,`orden_alm`.`Canjeado` AS `Canjeado`,`orden_alm`.`IdOrden` AS `IdOrden`,`orden_alm`.`IdTienda` AS `IdTienda`,`orden_alm`.`IdDocFis` AS `IdDocFis`,`docfiscal`.`NomDocFis` AS `NomDocFis`,`orden_alm`.`NSerie` AS `NSerie`,`orden_alm`.`NDocumento` AS `NDocumento`,`orden_alm`.`FechaEmi` AS `FechaEmi`,`orden_alm`.`FechaIniTra` AS `FechaIniTra`,`orden_alm`.`IdMotivo` AS `IdMotivo`,`motivog`.`NomMotivoG` AS `NomMotivoG`,`orden_alm`.`DirPartida` AS `DirPartida`,`orden_alm`.`IdCliPro` AS `IdCliPro`,`orden_alm`.`RazSoc` AS `RazSoc`,`orden_alm`.`DirLlegada` AS `DirLlegada`,`orden_alm`.`IdUniTra` AS `IdUniTra`,`orden_alm`.`Placa` AS `Placa`,`orden_alm`.`Marca` AS `Marca`,`orden_alm`.`NInscripcion` AS `NInscripcion`,`orden_alm`.`IdConductor` AS `IdConductor`,`orden_alm`.`NomConductor` AS `NomConductor`,`orden_alm`.`NLicencia` AS `NLicencia`,`orden_alm`.`IdTipoDes` AS `IdTipoDes`,`orden_alm`.`IdTransportista` AS `IdTransportista`,`orden_alm`.`NomTransportista` AS `NomTransportista`,`orden_alm`.`IdTipoTrans` AS `IdTipoTrans`,`orden_alm`.`NTipoTrans` AS `NTipoTrans`,`orden_alm`.`IdOpeOrden` AS `IdOpeOrden`,`orden_alm`.`Eliminado` AS `Eliminado` from ((`orden_alm` left join `motivog` on((`motivog`.`IdMotivoG` = `orden_alm`.`IdMotivo`))) left join `docfiscal` on((`docfiscal`.`IdDocFis` = `orden_alm`.`IdDocFis`))) */;

--
-- Final view structure for view `corden_compra`
--

/*!50001 DROP VIEW IF EXISTS `corden_compra`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `corden_compra` AS select `orden_compra`.`Anulado` AS `Anulado`,`orden_compra`.`Canjeado` AS `Canjeado`,`orden_compra`.`IdOrden_Cmp` AS `IdOrden_Cmp`,`orden_compra`.`IdTienda` AS `IdTienda`,`orden_compra`.`Fecha` AS `Fecha`,`orden_compra`.`IdDocFis` AS `IdDocFis`,`docfiscal`.`NomDocFis` AS `NomDocFis`,`orden_compra`.`NDocumento` AS `NDocumento`,`orden_compra`.`IdFPago` AS `IdFPago`,`orden_compra`.`IncIGV` AS `IncIGV`,`orden_compra`.`PIGV` AS `PIGV`,`orden_compra`.`IGV` AS `IGV`,`orden_compra`.`Total` AS `Total`,`orden_compra`.`IdCliPro` AS `IdCliPro`,`proveedores`.`NomCliPro` AS `NomCliPro`,`proveedores`.`Direccion` AS `Direccion`,`proveedores`.`RUC` AS `RUC`,`proveedores`.`DNI` AS `DNI`,`orden_compra`.`NDias` AS `NDias`,`orden_compra`.`FechaVenc` AS `FechaVenc`,`orden_compra`.`Moneda` AS `Moneda`,`orden_compra`.`TC` AS `TC`,`orden_compra`.`Observacion` AS `Observacion`,`orden_compra`.`DT` AS `DT`,`orden_compra`.`IdUsuario` AS `IdUsuario`,`orden_compra`.`Eliminado` AS `Eliminado` from ((`proveedores` join `orden_compra` on((`proveedores`.`IdCliPro` = convert(`orden_compra`.`IdCliPro` using utf8)))) left join `docfiscal` on((`docfiscal`.`IdDocFis` = `orden_compra`.`IdDocFis`))) order by `orden_compra`.`IdTienda`,`orden_compra`.`Fecha` desc,`orden_compra`.`IdDocFis`,`orden_compra`.`NDocumento` */;

--
-- Final view structure for view `cpago_provee`
--

/*!50001 DROP VIEW IF EXISTS `cpago_provee`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `cpago_provee` AS select `medio_pago`.`IdMedio_Pago` AS `IdMedio_Pago`,`medio_pago`.`IdTienda` AS `IdTienda`,`medio_pago`.`NDocPago` AS `NDocPago`,`medio_pago`.`Fecha` AS `Fecha`,`medio_pago`.`Monto` AS `Monto`,`medio_pago`.`Moneda` AS `Moneda`,`medio_pago`.`TC` AS `TC`,`medio_pago`.`IdCliPro` AS `IdCliPro`,`proveedores`.`NomCliPro` AS `NomCliPro`,`proveedores`.`Direccion` AS `Direccion`,`proveedores`.`RUC` AS `RUC`,`proveedores`.`DNI` AS `DNI`,`medio_pago`.`Tipo_MedioPago` AS `Tipo_MedioPago`,`tipo_mediopago`.`DescMedioPago` AS `DescMedioPago`,`medio_pago`.`NOperacion` AS `NOperacion`,`medio_pago`.`Banco` AS `Banco`,`medio_pago`.`Lugar` AS `Lugar`,`medio_pago`.`IdCargoaCta` AS `IdCargoaCta`,`medio_pago`.`Eliminado` AS `Eliminado` from ((`medio_pago` left join `proveedores` on((`medio_pago`.`IdCliPro` = `proveedores`.`IdCliPro`))) left join `tipo_mediopago` on((`medio_pago`.`Tipo_MedioPago` = `tipo_mediopago`.`IdMedioPago`))) */;

--
-- Final view structure for view `cpermiso`
--

/*!50001 DROP VIEW IF EXISTS `cpermiso`*/;
/*!50001 CREATE ALGORITHM=MERGE */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `cpermiso` AS select `wpermiso`.`Usuario` AS `Usuario`,`wpermiso`.`IdDialogo` AS `IdDialogo`,`wdialogo`.`Dialogo` AS `Dialogo`,`wpermiso`.`Estado` AS `Estado`,`wpermiso`.`IdBoton` AS `IdBoton`,`wboton`.`Nombre` AS `Nombre` from (`wboton` join (`wdialogo` join (`wdiabton` join `wpermiso` on(((`wdiabton`.`IdBoton` = `wpermiso`.`IdBoton`) and (`wdiabton`.`IdDialogo` = `wpermiso`.`IdDialogo`)))) on((`wdialogo`.`IdDialogo` = `wdiabton`.`IdDialogo`))) on((`wboton`.`IdBoton` = `wdiabton`.`IdBoton`))) */;

--
-- Final view structure for view `cprodalma`
--

/*!50001 DROP VIEW IF EXISTS `cprodalma`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `cprodalma` AS select `producto`.`IdTienda` AS `IdTienda`,`productoalmacen`.`IdAlmacen` AS `IdAlmacen`,`productoalmacen`.`IdProducto` AS `IdProducto`,`producto`.`IdCodBar` AS `IdCodBar`,`producto`.`NomProducto` AS `NomProducto`,`producto`.`Capacidad` AS `Capacidad`,`unidad`.`Abrev` AS `AbrevU`,`unidad_1`.`Abrev` AS `AbrevF`,`marca`.`NomMarca` AS `NomMarca`,`modelo`.`NomModelo` AS `NomModelo`,`producto`.`LPC` AS `LPC`,`productoalmacen`.`Costo` AS `Costo`,`productoalmacen`.`StockAct` AS `StockAct`,`productoalmacen`.`StockDisp` AS `StockDisp`,`producto`.`Stock_Minimo` AS `Stock_Minimo`,`producto`.`Peso` AS `Peso`,`producto`.`Precio_Detalle` AS `Precio_Detalle`,`producto`.`Precio_Mayor` AS `Precio_Mayor`,`producto`.`Precio_Especial` AS `Precio_Especial`,`producto`.`Precio_DetalleF` AS `Precio_DetalleF`,`producto`.`Precio_MayorF` AS `Precio_MayorF`,`producto`.`Precio_EspecialF` AS `Precio_EspecialF`,`producto`.`IdCodExt` AS `IdCodExt`,`producto`.`Inactivo` AS `Inactivo`,`producto`.`Eliminado` AS `Eliminado` from (`modelo` join (`marca` join (`linea` join (`unidad` join (`unidad` `unidad_1` join (`productoalmacen` join `producto` on((convert(`productoalmacen`.`IdProducto` using utf8) = `producto`.`IdProducto`))) on((`unidad_1`.`IdUnidad` = `producto`.`IdFraccion`))) on((`unidad`.`IdUnidad` = `producto`.`IdUnidad`))) on((`linea`.`IdLinea` = `producto`.`IdLinea`))) on((`marca`.`IdMarca` = `producto`.`IdMarca`))) on((`modelo`.`IdModelo` = `producto`.`IdModelo`))) where (`producto`.`NomProducto` <> 'SERVICIO') order by `producto`.`NomProducto` */;

--
-- Final view structure for view `cproducto`
--

/*!50001 DROP VIEW IF EXISTS `cproducto`*/;
/*!50001 CREATE ALGORITHM=MERGE */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `cproducto` AS select `producto`.`IdTienda` AS `IdTienda`,`producto`.`IdProducto` AS `IdProducto`,`producto`.`NomProducto` AS `NomProducto`,`producto`.`IdUnidad` AS `IdUnidad`,`unidad`.`Abrev` AS `Uni`,`producto`.`Capacidad` AS `Capacidad`,`producto`.`IdFraccion` AS `IdFraccion`,`unidad_1`.`Abrev` AS `Fra`,`producto`.`IdCodBar` AS `IdCodBar`,`producto`.`Peso` AS `Peso`,`producto`.`IdLinea` AS `IdLinea`,`linea`.`NomLinea` AS `NomLinea`,`producto`.`IdMarca` AS `IdMarca`,`marca`.`NomMarca` AS `NomMarca`,`producto`.`IdModelo` AS `IdModelo`,`modelo`.`NomModelo` AS `NomModelo`,`producto`.`IdMedida` AS `IdMedida`,`cmedida`.`NomMedida` AS `NomMedida`,`producto`.`IdUso` AS `IdUso`,`cuso`.`NomUso` AS `NomUso`,`producto`.`IdColor` AS `IdColor`,`ccolor`.`NomColor` AS `NomColor`,`producto`.`DT` AS `DT`,`producto`.`PC` AS `PC`,`producto`.`NDoc` AS `NDoc`,`producto`.`FechaC` AS `FechaC`,`producto`.`LPC` AS `LPC`,`producto`.`LFechaC` AS `LFechaC`,`producto`.`LNDoc` AS `LNDoc`,`producto`.`Precio_Detalle` AS `Precio_Detalle`,`producto`.`Precio_Mayor` AS `Precio_Mayor`,`producto`.`Precio_Especial` AS `Precio_Especial`,`producto`.`Precio_EspecialM` AS `Precio_EspecialM`,`producto`.`Precio_DetalleF` AS `Precio_DetalleF`,`producto`.`Precio_MayorF` AS `Precio_MayorF`,`producto`.`Precio_EspecialF` AS `Precio_EspecialF`,`producto`.`Precio_EspecialMF` AS `Precio_EspecialMF`,`producto`.`IdCliPro` AS `IdCliPro`,`producto`.`Costo` AS `Costo`,`producto`.`Stock` AS `Stock`,`producto`.`Stock_F` AS `Stock_F`,`producto`.`Fecha_Inv` AS `Fecha_Inv`,`producto`.`Stock_Minimo` AS `Stock_Minimo`,`producto`.`IdCodExt` AS `IdCodExt`,`producto`.`Contenido` AS `Contenido`,`producto`.`Informacion` AS `Informacion`,`producto`.`Uso_Serie` AS `Uso_Serie`,`producto`.`Compatible` AS `Compatible`,`producto`.`Descripcion` AS `Descripcion`,`producto`.`PD` AS `PD`,`producto`.`PM` AS `PM`,`producto`.`PE` AS `PE`,`producto`.`PEM` AS `PEM`,`producto`.`PathFoto` AS `PathFoto`,`producto`.`Inactivo` AS `Inactivo`,`producto`.`Eliminado` AS `Eliminado` from (`cuso` join (`modelo` join (`marca` join (`linea` join (`unidad` join (`cmedida` join (`ccolor` join (`unidad` `unidad_1` join `producto` on((`unidad_1`.`IdUnidad` = `producto`.`IdFraccion`))) on((`ccolor`.`IdColor` = `producto`.`IdColor`))) on((`cmedida`.`IdMedida` = `producto`.`IdMedida`))) on((`unidad`.`IdUnidad` = `producto`.`IdUnidad`))) on((`linea`.`IdLinea` = `producto`.`IdLinea`))) on((`marca`.`IdMarca` = `producto`.`IdMarca`))) on((`modelo`.`IdModelo` = `producto`.`IdModelo`))) on((`cuso`.`IdUso` = `producto`.`IdUso`))) where (`producto`.`NomProducto` <> 'SERVICIO') order by `producto`.`NomProducto` */;

--
-- Final view structure for view `cproductoalmacen`
--

/*!50001 DROP VIEW IF EXISTS `cproductoalmacen`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `cproductoalmacen` AS select `p`.`IdTienda` AS `IdTienda`,`pa`.`IdAlmacen` AS `IdAlmacen`,`pa`.`IdProducto` AS `IdProducto`,`p`.`IdCodBar` AS `IdCodBar`,`p`.`NomProducto` AS `NomProducto`,`p`.`Capacidad` AS `Capacidad`,`u`.`Abrev` AS `AbrevU`,`f`.`Abrev` AS `AbrevF`,`m`.`NomMarca` AS `NomMarca`,`md`.`NomModelo` AS `NomModelo`,`p`.`LPC` AS `LPC`,`pa`.`Costo` AS `Costo`,`pa`.`StockAct` AS `StockAct`,`pa`.`StockDisp` AS `StockDisp`,`p`.`Stock_Minimo` AS `Stock_Minimo`,`p`.`Peso` AS `Peso`,`p`.`Precio_Detalle` AS `Precio_Detalle`,`p`.`Precio_Mayor` AS `Precio_Mayor`,`p`.`Precio_Especial` AS `Precio_Especial`,`p`.`Precio_EspecialM` AS `Precio_EspecialM`,`p`.`Precio_DetalleF` AS `Precio_DetalleF`,`p`.`Precio_MayorF` AS `Precio_MayorF`,`p`.`Precio_EspecialF` AS `Precio_EspecialF`,`p`.`Precio_EspecialMF` AS `Precio_EspecialMF`,`p`.`IdCodExt` AS `IdCodExt`,truncate((`pa`.`StockAct` / `p`.`Capacidad`),3) AS `Unidad`,truncate((`pa`.`StockDisp` / `p`.`Capacidad`),3) AS `Und_Disp`,`u`.`Abrev` AS `AbrevU1`,(`pa`.`StockAct` - (truncate((`pa`.`StockAct` / `p`.`Capacidad`),3) * `p`.`Capacidad`)) AS `Fraccion`,(`pa`.`StockDisp` - (truncate((`pa`.`StockDisp` / `p`.`Capacidad`),3) * `p`.`Capacidad`)) AS `Fra_Disp`,`f`.`Abrev` AS `AbrevF1`,`p`.`Inactivo` AS `Inactivo`,`p`.`Eliminado` AS `Eliminado` from (((((`productoalmacen` `pa` left join `producto` `p` on((`p`.`IdProducto` = convert(`pa`.`IdProducto` using utf8)))) left join `unidad` `u` on((`p`.`IdUnidad` = `u`.`IdUnidad`))) left join `unidad` `f` on((`p`.`IdFraccion` = `f`.`IdUnidad`))) left join `marca` `m` on((`p`.`IdMarca` = `m`.`IdMarca`))) left join `modelo` `md` on((`p`.`IdModelo` = `md`.`IdModelo`))) where (`p`.`NomProducto` <> 'SERVICIO') */;

--
-- Final view structure for view `cproforma`
--

/*!50001 DROP VIEW IF EXISTS `cproforma`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `cproforma` AS select `proforma`.`Anulado` AS `Anulado`,`proforma`.`Canjeado` AS `Canjeado`,`proforma`.`IdProforma` AS `IdProforma`,`proforma`.`IdTienda` AS `IdTienda`,`proforma`.`Fecha` AS `Fecha`,`proforma`.`IdDocFis` AS `IdDocFis`,`docfiscal`.`NomDocFis` AS `NomDocFis`,`proforma`.`NDocumento` AS `NDocumento`,`proforma`.`IdFPago` AS `IdFPago`,`proforma`.`IncIGV` AS `IncIGV`,`proforma`.`PIGV` AS `PIGV`,`proforma`.`IGV` AS `IGV`,`proforma`.`Total` AS `Total`,`proforma`.`IdCliPro` AS `IdCliPro`,`clientes`.`NomCliPro` AS `NomCliPro`,`clientes`.`Direccion` AS `Direccion`,`clientes`.`RUC` AS `RUC`,`clientes`.`DNI` AS `DNI`,`proforma`.`NDias` AS `NDias`,`proforma`.`FechaVenc` AS `FechaVenc`,`proforma`.`Moneda` AS `Moneda`,`proforma`.`TC` AS `TC`,`proforma`.`IdVendedor` AS `IdVendedor`,`vendedor`.`NomVendedor` AS `NomVendedor`,`proforma`.`Observacion` AS `Observacion`,`proforma`.`DT` AS `DT`,`proforma`.`IdUsuario` AS `IdUsuario`,`proforma`.`Eliminado` AS `Eliminado` from (((`clientes` join `proforma` on((`clientes`.`IdCliPro` = convert(`proforma`.`IdCliPro` using utf8)))) left join `vendedor` on((`vendedor`.`IdVendedor` = `proforma`.`IdVendedor`))) left join `docfiscal` on((`docfiscal`.`IdDocFis` = `proforma`.`IdDocFis`))) order by `proforma`.`IdTienda`,`proforma`.`Fecha` desc,`proforma`.`IdDocFis`,`proforma`.`NDocumento` */;

--
-- Final view structure for view `cproforma_factu`
--

/*!50001 DROP VIEW IF EXISTS `cproforma_factu`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `cproforma_factu` AS select `p`.`IdTienda` AS `IdTienda`,`p`.`IdProforma` AS `IdProforma`,`d_p`.`IdAlmacen` AS `IdAlmacen`,`df`.`Abrev` AS `Abrev`,`p`.`NDocumento` AS `NDocumento`,`p`.`IdDocFis` AS `IdDocFis`,`p`.`Fecha` AS `Fecha`,`d_p`.`IdProducto` AS `IdProducto`,`pr`.`NomProducto` AS `NomProducto`,`d_p`.`Cantidad` AS `Cantidad`,`d_p`.`Unid` AS `Unid`,`d_p`.`DescriPrec` AS `DescriPrec`,`d_p`.`Precio` AS `Precio`,`d_p`.`PrecioIGV` AS `PrecioIGV`,`d_p`.`SubTotal` AS `SubTotal`,`d_p`.`SubTotalIGV` AS `SubTotalIGV`,`d_p`.`Costo` AS `Costo`,`d_p`.`Margen` AS `Margen`,`d_p`.`Peso` AS `Peso`,`d_p`.`GEL` AS `GEL`,`d_p`.`CapaPrec` AS `CapaPrec`,`pr`.`Capacidad` AS `Capacidad`,`d_p`.`NItem` AS `NItem`,`p`.`Anulado` AS `Anulado`,`p`.`Eliminado` AS `Eliminado` from (((`proforma` `p` join `d_proforma` `d_p` on((`p`.`IdProforma` = `d_p`.`IdProforma`))) join `docfiscal` `df` on((`p`.`IdDocFis` = `df`.`IdDocFis`))) join `producto` `pr` on((`pr`.`IdProducto` = convert(`d_p`.`IdProducto` using utf8)))) where ((`p`.`Eliminado` = 0) and (`p`.`Anulado` = 0) and (`p`.`Canjeado` = 0)) */;

--
-- Final view structure for view `cpuntovta`
--

/*!50001 DROP VIEW IF EXISTS `cpuntovta`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `cpuntovta` AS select `puntovta`.`Anulado` AS `Anulado`,`puntovta`.`MovKardex` AS `MovKardex`,`puntovta`.`MovConta` AS `MovConta`,`puntovta`.`IdPuntoVta` AS `IdPuntoVta`,`puntovta`.`IdTienda` AS `IdTienda`,`puntovta`.`Fecha` AS `Fecha`,`puntovta`.`NOperacion` AS `NOperacion`,`puntovta`.`IdDocFis` AS `IdDocFis`,`docfiscal`.`NomDocFis` AS `NomDocFis`,`puntovta`.`IdFPago` AS `IdFPago`,`puntovta`.`FechaEnvio` AS `FechaEnvio`,`puntovta`.`NGuiaR` AS `NGuiaR`,`puntovta`.`IncIGV` AS `IncIGV`,`puntovta`.`PIGV` AS `PIGV`,`puntovta`.`IGV` AS `IGV`,`puntovta`.`Total` AS `Total`,`puntovta`.`IdCliPro` AS `IdCliPro`,if(isnull(`puntovta`.`Razon_Social`),`clientes`.`NomCliPro`,convert(`puntovta`.`Razon_Social` using utf8)) AS `NomCliPro`,if(isnull(`puntovta`.`Direccion`),`clientes`.`Direccion`,convert(`puntovta`.`Direccion` using utf8)) AS `Direccion`,`clientes`.`RUC` AS `RUC`,`clientes`.`DNI` AS `DNI`,`puntovta`.`NDias` AS `NDias`,`puntovta`.`FechaVenc` AS `FechaVenc`,`puntovta`.`Moneda` AS `Moneda`,`puntovta`.`TC` AS `TC`,`puntovta`.`IdVendedor` AS `IdVendedor`,`vendedor`.`NomVendedor` AS `NomVendedor`,`puntovta`.`eDcto` AS `eDcto`,`puntovta`.`PDcto` AS `PDcto`,`puntovta`.`Dcto` AS `Dcto`,`puntovta`.`ePercepcion` AS `ePercepcion`,`puntovta`.`PPercepcion` AS `PPercepcion`,`puntovta`.`Percepcion` AS `Percepcion`,`puntovta`.`Letras` AS `Letras`,`puntovta`.`Modificado` AS `Modificado`,`puntovta`.`IdDocFisMod` AS `IdDocFisMod`,`puntovta`.`NSerMod` AS `NSerMod`,`puntovta`.`NDocMod` AS `NDocMod`,`puntovta`.`FechaMod` AS `FechaMod`,`puntovta`.`IdMotNota` AS `IdMotNota`,`motnota`.`NomMotNota` AS `NomMotNota`,`puntovta`.`Observacion` AS `Observacion`,`puntovta`.`Servicio` AS `Servicio`,`puntovta`.`DT` AS `DT`,`puntovta`.`IdUsuario` AS `IdUsuario`,`puntovta`.`Eliminado` AS `Eliminado` from ((((`clientes` join `puntovta` on((`clientes`.`IdCliPro` = convert(`puntovta`.`IdCliPro` using utf8)))) left join `vendedor` on((`vendedor`.`IdVendedor` = `puntovta`.`IdVendedor`))) left join `docfiscal` on((`docfiscal`.`IdDocFis` = `puntovta`.`IdDocFis`))) left join `motnota` on((`motnota`.`IdMotNota` = `puntovta`.`IdMotNota`))) order by `puntovta`.`IdTienda`,`puntovta`.`Fecha` desc,`puntovta`.`NOperacion` */;

--
-- Final view structure for view `cregistro_compras`
--

/*!50001 DROP VIEW IF EXISTS `cregistro_compras`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `cregistro_compras` AS select `c`.`IdTienda` AS `IdTienda`,`c`.`NSerie` AS `NSerie`,`c`.`NDocumento` AS `NDocumento`,format(`c`.`IdDocFis`,'00') AS `IdDocFis`,`c`.`Fecha` AS `Fecha`,`c`.`FechaVenc` AS `FechaVenc`,if((length(trim(`p`.`RUC`)) > 0),1,if((length(trim(`p`.`DNI`)) > 0),6,'')) AS `NroIdentidad`,if((length(`p`.`RUC`) > 0),`p`.`RUC`,if((length(`p`.`DNI`) > 0),`p`.`DNI`,'')) AS `DocIdentidad`,`p`.`NomCliPro` AS `NomCliPro`,sum(if((`c`.`IdDocFis` <> 7),if((`c`.`Moneda` = 0),`d_c`.`SubTotalIGV`,(`d_c`.`SubTotalIGV` * `c`.`TC`)),(if((`c`.`Moneda` = 0),`d_c`.`SubTotalIGV`,(`d_c`.`SubTotalIGV` * `c`.`TC`)) * -(1)))) AS `SubTotalIGV`,`d_c`.`GEL` AS `GEL`,(sum(`d_c`.`SubTotalIGV`) + `c`.`Percepcion`) AS `sTotal`,round((sum(if((`c`.`IdDocFis` <> 7),`d_c`.`SubTotalIGV`,(`d_c`.`SubTotalIGV` * -(1)))) / (1 + (`c`.`PIGV` / 100))),2) AS `ValorCmp`,round(((sum(if((`c`.`IdDocFis` <> 7),`d_c`.`SubTotalIGV`,(`d_c`.`SubTotalIGV` * -(1)))) / (1 + (`c`.`PIGV` / 100))) * (`c`.`PIGV` / 100)),2) AS `IGV`,if((`c`.`IdDocFis` <> 7),if((`c`.`Moneda` = 0),`c`.`Total`,(`c`.`Total` * `c`.`TC`)),(if((`c`.`Moneda` = 0),`c`.`Total`,(`c`.`Total` * `c`.`TC`)) * -(1))) AS `Total`,if((`c`.`IdDocFisMod` is not null),`c`.`IdDocFisMod`,-(1)) AS `IdDocFisMod`,`c`.`NSerMod` AS `NSerMod`,`c`.`NDocMod` AS `NDocMod`,if((`c`.`FechaMod` is not null),`c`.`FechaMod`,str_to_date('01/01/1901','%m/%d/%Y')) AS `FechaMod`,`d_c`.`Eliminado` AS `Eliminado` from ((`d_compra` `d_c` join `compra` `c` on((`d_c`.`IdCompra` = `c`.`IdCompra`))) join `proveedores` `p` on((`p`.`IdCliPro` = convert(`c`.`IdCliPro` using utf8)))) where ((`c`.`Eliminado` = 0) and (`d_c`.`Eliminado` = 0)) group by `c`.`IdTienda`,`c`.`NSerie`,`c`.`NDocumento`,`c`.`IdDocFis`,`c`.`Fecha`,`c`.`FechaVenc`,`d_c`.`GEL`,`c`.`NSerMod`,`c`.`NDocMod`,`c`.`FechaMod`,`c`.`Moneda`,`c`.`TC` */;

--
-- Final view structure for view `cregistro_ventas`
--

/*!50001 DROP VIEW IF EXISTS `cregistro_ventas`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `cregistro_ventas` AS select `f`.`IdTienda` AS `IdTienda`,`f`.`NSerie` AS `NSerie`,`f`.`NDocumento` AS `NDocumento`,`f`.`IdDocFis` AS `IdDocFis`,`f`.`Fecha` AS `Fecha`,`f`.`FechaVenc` AS `FechaVenc`,if((length(trim(`c`.`RUC`)) > 0),1,if((length(trim(`c`.`DNI`)) > 0),6,'')) AS `NroIdentidad`,if((length(`c`.`RUC`) > 0),`c`.`RUC`,if((length(`c`.`DNI`) > 0),`c`.`DNI`,'')) AS `DocIdentidad`,`c`.`NomCliPro` AS `NomCliPro`,sum(if((`f`.`IdDocFis` <> 7),if((`f`.`Anulado` = 0),if((`f`.`Moneda` = 0),`d_f`.`SubTotalIGV`,(`d_f`.`SubTotalIGV` * `f`.`TC`)),0),if((`f`.`Anulado` = 0),(if((`f`.`Moneda` = 0),`d_f`.`SubTotalIGV`,(`d_f`.`SubTotalIGV` * `f`.`TC`)) * -(1)),0))) AS `SubTotalIGV`,`d_f`.`GEL` AS `GEL`,(sum(`d_f`.`SubTotalIGV`) + `f`.`Percepcion`) AS `sTotal`,round((sum(if((`f`.`IdDocFis` <> 7),`d_f`.`SubTotalIGV`,(`d_f`.`SubTotalIGV` * -(1)))) / (1 + (`f`.`PIGV` / 100))),2) AS `ValorVta`,round(((sum(if((`f`.`IdDocFis` <> 7),`d_f`.`SubTotalIGV`,(`d_f`.`SubTotalIGV` * -(1)))) / (1 + (`f`.`PIGV` / 100))) * (`f`.`PIGV` / 100)),2) AS `IGV`,if((`f`.`IdDocFis` <> 7),if((`f`.`Anulado` = 0),if((`f`.`Moneda` = 0),`f`.`Total`,(`f`.`Total` * `f`.`TC`)),0),if((`f`.`Anulado` = 0),(if((`f`.`Moneda` = 0),`f`.`Total`,(`f`.`Total` * `f`.`TC`)) * -(1)),0)) AS `Total`,if((`f`.`IdDocFisMod` is not null),`f`.`IdDocFisMod`,-(1)) AS `IdDocFisMod`,if((`f`.`NSerMod` is not null),`f`.`NSerMod`,'') AS `NSerMod`,if((`f`.`NDocMod` is not null),`f`.`NDocMod`,'') AS `NDocMod`,if((`f`.`FechaMod` is not null),`f`.`FechaMod`,str_to_date('01/01/1901','%m/%d/%Y')) AS `FechaMod`,`f`.`Anulado` AS `Anulado`,`d_f`.`Eliminado` AS `Eliminado` from ((`d_factu` `d_f` join `factu` `f` on((`d_f`.`IdVenta` = `f`.`IdVenta`))) join `clientes` `c` on((`c`.`IdCliPro` = convert(`f`.`IdCliPro` using utf8)))) where (`d_f`.`Eliminado` = 0) group by `f`.`IdTienda`,`f`.`NSerie`,`f`.`NDocumento`,`f`.`IdDocFis`,`f`.`Fecha`,`f`.`FechaVenc`,`d_f`.`GEL`,`f`.`Total`,`f`.`NSerMod`,`f`.`NDocMod`,`f`.`FechaMod`,`f`.`Moneda`,`f`.`TC`,`f`.`Anulado` */;

--
-- Final view structure for view `cregistro_ventas_resumen`
--

/*!50001 DROP VIEW IF EXISTS `cregistro_ventas_resumen`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `cregistro_ventas_resumen` AS select `f`.`IdTienda` AS `IdTienda`,`f`.`NSerie` AS `NSerie`,`f`.`NDocumento` AS `NDocumento`,if((`f`.`IdDocFis` = 3),99,`f`.`IdDocFis`) AS `IdDocFis`,`f`.`Fecha` AS `Fecha`,`f`.`FechaVenc` AS `FechaVenc`,if((length(trim(`c`.`RUC`)) > 0),1,if((length(trim(`c`.`DNI`)) > 0),6,'')) AS `NroIdentidad`,if((length(`c`.`RUC`) > 0),`c`.`RUC`,if((length(`c`.`DNI`) > 0),`c`.`DNI`,'')) AS `DocIdentidad`,if((`f`.`IdDocFis` = 3),'VENTA DEL DIA',`c`.`NomCliPro`) AS `NomCliPro`,sum(if((`f`.`IdDocFis` <> 7),if((`f`.`Anulado` = 0),if((`f`.`Moneda` = 0),`d_f`.`SubTotalIGV`,(`d_f`.`SubTotalIGV` * `f`.`TC`)),0),if((`f`.`Anulado` = 0),(if((`f`.`Moneda` = 0),`d_f`.`SubTotalIGV`,(`d_f`.`SubTotalIGV` * `f`.`TC`)) * -(1)),0))) AS `SubTotalIGV`,`d_f`.`GEL` AS `GEL`,(sum(`d_f`.`SubTotalIGV`) + `f`.`Percepcion`) AS `sTotal`,round((sum(if((`f`.`IdDocFis` <> 7),`d_f`.`SubTotalIGV`,(`d_f`.`SubTotalIGV` * -(1)))) / (1 + (`f`.`PIGV` / 100))),2) AS `ValorVta`,round(((sum(if((`f`.`IdDocFis` <> 7),`d_f`.`SubTotalIGV`,(`d_f`.`SubTotalIGV` * -(1)))) / (1 + (`f`.`PIGV` / 100))) * (`f`.`PIGV` / 100)),2) AS `IGV`,if((`f`.`IdDocFis` <> 7),if((`f`.`Anulado` = 0),if((`f`.`Moneda` = 0),`f`.`Total`,(`f`.`Total` * `f`.`TC`)),0),if((`f`.`Anulado` = 0),(if((`f`.`Moneda` = 0),`f`.`Total`,(`f`.`Total` * `f`.`TC`)) * -(1)),0)) AS `Total`,if((`f`.`IdDocFisMod` is not null),`f`.`IdDocFisMod`,-(1)) AS `IdDocFisMod`,if((`f`.`NSerMod` is not null),`f`.`NSerMod`,'') AS `NSerMod`,if((`f`.`NDocMod` is not null),`f`.`NDocMod`,'') AS `NDocMod`,if((`f`.`FechaMod` is not null),`f`.`FechaMod`,str_to_date('01/01/1901','%m/%d/%Y')) AS `FechaMod`,`f`.`Anulado` AS `Anulado`,`d_f`.`Eliminado` AS `Eliminado` from ((`d_factu` `d_f` join `factu` `f` on((`d_f`.`IdVenta` = `f`.`IdVenta`))) join `clientes` `c` on((`c`.`IdCliPro` = convert(`f`.`IdCliPro` using utf8)))) where (`d_f`.`Eliminado` = 0) group by `f`.`IdTienda`,`f`.`NSerie`,`f`.`NDocumento`,`f`.`IdDocFis`,`f`.`Fecha`,`f`.`FechaVenc`,`d_f`.`GEL`,`f`.`Total`,`f`.`NSerMod`,`f`.`NDocMod`,`f`.`FechaMod`,`f`.`Moneda`,`f`.`TC`,`f`.`Anulado` */;

--
-- Final view structure for view `csaldos_caja`
--

/*!50001 DROP VIEW IF EXISTS `csaldos_caja`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `csaldos_caja` AS select `d_cuenta`.`IdTienda` AS `IdTienda`,`d_cuenta`.`codigo_cuenta` AS `codigo_cuenta`,`d_cuenta`.`NomCuenta` AS `NomCuenta`,if((`d_cuenta`.`Moneda` = 0),sum((`d_cuenta`.`Abono_Soles` - `d_cuenta`.`Cargo_Soles`)),0) AS `Sal_Soles`,if((`d_cuenta`.`Moneda` = 1),sum((`d_cuenta`.`Abono_Dolar` - `d_cuenta`.`Cargo_Dolar`)),0) AS `Sal_Dolar` from `d_cuenta` where (`d_cuenta`.`Eliminado` = 0) group by `d_cuenta`.`IdTienda`,`d_cuenta`.`codigo_cuenta`,`d_cuenta`.`NomCuenta` */;

--
-- Final view structure for view `cstock`
--

/*!50001 DROP VIEW IF EXISTS `cstock`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `cstock` AS select `k`.`IdTienda` AS `IdTienda`,`k`.`IdAlmacen` AS `IdAlmacen`,`k`.`IdProducto` AS `IdProducto`,`producto`.`IdCodBar` AS `IdCodBar`,`producto`.`NomProducto` AS `NomProducto`,`producto`.`LPC` AS `LPC`,sum(if((`k`.`Entrada` = 0),-(`k`.`Salida`),`k`.`Entrada`)) AS `StockAct`,sum(`k`.`Recogido`) AS `StockDisp`,truncate((sum(if((`k`.`Entrada` = 0),-(`k`.`Salida`),`k`.`Entrada`)) / `producto`.`Capacidad`),3) AS `Unidad`,truncate((sum(`k`.`Recogido`) / `producto`.`Capacidad`),3) AS `Und_Disp`,`u`.`Abrev` AS `AbrevU`,(sum(if((`k`.`Entrada` = 0),-(`k`.`Salida`),`k`.`Entrada`)) - (truncate((sum(if((`k`.`Entrada` = 0),-(`k`.`Salida`),`k`.`Entrada`)) / `producto`.`Capacidad`),3) * `producto`.`Capacidad`)) AS `Fraccion`,(sum(`k`.`Recogido`) - (truncate((sum(`k`.`Recogido`) / `producto`.`Capacidad`),3) * `producto`.`Capacidad`)) AS `Fra_Disp`,`f`.`Abrev` AS `AbrevF`,`pa`.`Costo` AS `CostoP`,`producto`.`Precio_Detalle` AS `Precio_Detalle`,`producto`.`Precio_Mayor` AS `Precio_Mayor`,`producto`.`Precio_Especial` AS `Precio_Especial`,`producto`.`Capacidad` AS `Capacidad`,`producto`.`Peso` AS `Peso`,`producto`.`Stock_Minimo` AS `Stock_Minimo`,`producto`.`IdLinea` AS `IdLinea`,`m`.`NomMarca` AS `NomMarca`,`md`.`NomModelo` AS `NomModelo`,`producto`.`IdCodExt` AS `IdCodExt`,`producto`.`Inactivo` AS `Inactivo` from (((((`unidad` `u` join (`unidad` `f` join `producto` on((`f`.`IdUnidad` = `producto`.`IdFraccion`))) on((`u`.`IdUnidad` = `producto`.`IdUnidad`))) join `kardex` `k` on((`producto`.`IdProducto` = `k`.`IdProducto`))) join `marca` `m` on((`producto`.`IdMarca` = `m`.`IdMarca`))) join `modelo` `md` on((`producto`.`IdModelo` = `md`.`IdModelo`))) join `productoalmacen` `pa` on((`producto`.`IdProducto` = convert(`pa`.`IdProducto` using utf8)))) where ((`k`.`Eliminado` = 0) and (`producto`.`Inactivo` = 0) and (`k`.`IdDocFis` <> 24)) group by `k`.`IdTienda`,`k`.`IdAlmacen`,`k`.`IdProducto`,`producto`.`IdCodBar`,`producto`.`NomProducto`,`producto`.`LPC`,`u`.`Abrev`,`f`.`Abrev`,`pa`.`Costo`,`producto`.`Precio_Detalle`,`producto`.`Precio_Mayor`,`producto`.`Precio_Especial`,`producto`.`Capacidad`,`producto`.`Peso`,`producto`.`IdLinea`,`producto`.`Inactivo`,`m`.`NomMarca`,`md`.`NomModelo`,`producto`.`IdCodExt` */;

--
-- Final view structure for view `cultimacompra`
--

/*!50001 DROP VIEW IF EXISTS `cultimacompra`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `cultimacompra` AS select `c`.`IdCompra` AS `IdCompra`,`c`.`NSerie` AS `NSerie`,`c`.`NDocumento` AS `NDocumento`,`c`.`IdTienda` AS `IdTienda`,`c`.`Fecha` AS `Fecha`,`c`.`Moneda` AS `Moneda`,`c`.`TC` AS `TC`,((if((`c`.`Moneda` = 0),`dc`.`PrecioIGV`,(`dc`.`PrecioIGV` * `c`.`TC`)) + `dc`.`Flete`) + `dc`.`Estiba`) AS `PrecioIGV`,`dc`.`IdProducto` AS `IdProducto`,`c`.`GasRel` AS `GasRel`,`c`.`Estiba` AS `Estiba`,`c`.`IdCliPro` AS `IdCliPro` from (`compra` `c` join (`producto` `p` join `d_compra` `dc` on((`p`.`IdProducto` = convert(`dc`.`IdProducto` using utf8)))) on(((`c`.`IdTienda` = `dc`.`IdTienda`) and (`c`.`NSerie` = `dc`.`NSerie`) and (`c`.`NDocumento` = `dc`.`NDocumento`)))) where ((`dc`.`Eliminado` = 0) and (`dc`.`IdDocFis` <> 7) and (`dc`.`IdDocFis` <> 8) and `c`.`Fecha` in (select max(`c`.`Fecha`) from (`compra` `c` join `d_compra` `dc` on(((`c`.`NSerie` = `dc`.`NSerie`) and (`c`.`NDocumento` = `dc`.`NDocumento`) and (`c`.`IdTienda` = `dc`.`IdTienda`)))) where ((convert(`dc`.`IdProducto` using utf8) = `p`.`IdProducto`) and (`dc`.`IdDocFis` <> 7) and (`dc`.`IdDocFis` <> 8) and (`dc`.`PrecioIGV` > 0))) and (convert(`dc`.`IdProducto` using utf8) = `p`.`IdProducto`)) */;

--
-- Final view structure for view `cwind_docfis`
--

/*!50001 DROP VIEW IF EXISTS `cwind_docfis`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `cwind_docfis` AS select `wdf`.`IdWind` AS `IdWind`,`wdf`.`IdDocFis` AS `IdDocFis`,`df`.`NomDocFis` AS `NomDocFis`,`df`.`Abrev` AS `Abrev` from (`wind_docfis` `wdf` join `docfiscal` `df` on((`wdf`.`IdDocFis` = `df`.`IdDocFis`))) order by `wdf`.`IdWind`,`wdf`.`IdDocFis` */;

--
-- Final view structure for view `vcomision`
--

/*!50001 DROP VIEW IF EXISTS `vcomision`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `vcomision` AS select `c`.`IdTienda` AS `IdTienda`,`c`.`IdAlmacen` AS `IdAlmacen`,`c`.`IdVenta` AS `IdVenta`,`c`.`NSerie` AS `NSerie`,`c`.`Ndocumento` AS `Ndocumento`,`c`.`IdDocFis` AS `IdDocFis`,`c`.`IdProducto` AS `IdProducto`,`p`.`NomProducto` AS `NomProducto`,`c`.`Fecha` AS `Fecha`,`c`.`Unid` AS `Unid`,`c`.`DescriPrec` AS `DescriPrec`,`c`.`Comision` AS `Comision`,if((`f`.`Moneda` = 0),`c`.`Comision`,(`c`.`Comision` * `f`.`TC`)) AS `TComision`,`f`.`Moneda` AS `Moneda`,`f`.`TC` AS `TC`,`c`.`IdVendedor` AS `IdVendedor`,`v`.`NomVendedor` AS `NomVendedor`,`p`.`IdLinea` AS `IdLinea`,`l`.`NomLinea` AS `NomLinea`,`f`.`IdCliPro` AS `IdCliPro`,`cl`.`NomCliPro` AS `NomCliPro` from (((((`comision` `c` join `producto` `p` on((`c`.`IdProducto` = `p`.`IdProducto`))) join `linea` `l` on((`p`.`IdLinea` = `l`.`IdLinea`))) join `factu` `f` on((`f`.`IdVenta` = `c`.`IdVenta`))) join `vendedor` `v` on((`c`.`IdVendedor` = `v`.`IdVendedor`))) join `clientes` `cl` on((convert(`f`.`IdCliPro` using utf8) = `cl`.`IdCliPro`))) */;

--
-- Final view structure for view `vcompra`
--

/*!50001 DROP VIEW IF EXISTS `vcompra`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `vcompra` AS select `c`.`IdTienda` AS `IdTienda`,`dc`.`IdAlmacen` AS `IdAlmacen`,`c`.`Fecha` AS `Fecha`,`docfiscal`.`Abrev` AS `Abrev`,`c`.`NSerie` AS `NSerie`,`c`.`NDocumento` AS `NDocumento`,`c`.`IdDocFis` AS `IdDocFis`,`c`.`IdFPago` AS `IdFPago`,`c`.`IdCliPro` AS `IdCliPro`,`proveedores`.`NomCliPro` AS `NomCliPro`,`dc`.`IdProducto` AS `IdProducto`,`p`.`NomProducto` AS `NomProducto`,`dc`.`Unid` AS `Unid`,`dc`.`DescriPrec` AS `DescriPrec`,`dc`.`PrecioIGV` AS `PrecioIGV`,if((`c`.`IdFPago` = 1),(`dc`.`SubTotalIGV` - `dc`.`Dcto`),0) AS `Contado`,if((`c`.`IdFPago` = 2),(`dc`.`SubTotalIGV` - `dc`.`Dcto`),0) AS `Credito`,if((`c`.`IdFPago` = 1),if((`c`.`Moneda` = 0),(`dc`.`SubTotalIGV` - `dc`.`Dcto`),((`dc`.`SubTotalIGV` - `dc`.`Dcto`) * `c`.`TC`)),0) AS `TContado`,if((`c`.`IdFPago` = 2),if((`c`.`Moneda` = 0),(`dc`.`SubTotalIGV` - `dc`.`Dcto`),((`dc`.`SubTotalIGV` - `dc`.`Dcto`) * `c`.`TC`)),0) AS `TCredito`,`p`.`IdLinea` AS `IdLinea`,`l`.`NomLinea` AS `NomLinea`,`p`.`IdMarca` AS `IdMarca`,`c`.`Moneda` AS `Moneda`,`c`.`TC` AS `TC`,`dc`.`Eliminado` AS `Eliminado` from (((((`compra` `c` join `d_compra` `dc` on(((`c`.`IdCompra` = `dc`.`IdCompra`) and (`c`.`IdTienda` = `dc`.`IdTienda`)))) join `producto` `p` on((convert(`dc`.`IdProducto` using utf8) = `p`.`IdProducto`))) join `docfiscal` on((`docfiscal`.`IdDocFis` = `c`.`IdDocFis`))) join `linea` `l` on((`p`.`IdLinea` = `l`.`IdLinea`))) join `proveedores` on((`proveedores`.`IdCliPro` = convert(`c`.`IdCliPro` using utf8)))) */;

--
-- Final view structure for view `vcompra_lin`
--

/*!50001 DROP VIEW IF EXISTS `vcompra_lin`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `vcompra_lin` AS select `l`.`NomLinea` AS `NomLinea`,`c`.`Fecha` AS `Fecha`,`docfiscal`.`Abrev` AS `Abrev`,`c`.`NSerie` AS `NSerie`,`c`.`NDocumento` AS `NDocumento`,`proveedores`.`NomCliPro` AS `NomCliPro`,`dc`.`IdProducto` AS `IdProducto`,`p`.`NomProducto` AS `NomProducto`,`dc`.`Unid` AS `Unid`,`dc`.`DescriPrec` AS `DescriPrec`,`dc`.`PrecioIGV` AS `PrecioIGV`,if((`c`.`IdFPago` = 1),(`dc`.`SubTotalIGV` - `dc`.`Dcto`),0) AS `Contado`,if((`c`.`IdFPago` = 2),(`dc`.`SubTotalIGV` - `dc`.`Dcto`),0) AS `Credito`,if((`c`.`IdFPago` = 1),if((`c`.`Moneda` = 0),(`dc`.`SubTotalIGV` - `dc`.`Dcto`),((`dc`.`SubTotalIGV` - `dc`.`Dcto`) * `c`.`TC`)),0) AS `TContado`,if((`c`.`IdFPago` = 2),if((`c`.`Moneda` = 0),(`dc`.`SubTotalIGV` - `dc`.`Dcto`),((`dc`.`SubTotalIGV` - `dc`.`Dcto`) * `c`.`TC`)),0) AS `TCredito`,`c`.`Moneda` AS `Moneda`,`c`.`TC` AS `TC`,`dc`.`Eliminado` AS `Eliminado` from (((((`compra` `c` join `d_compra` `dc` on(((`c`.`IdCompra` = `dc`.`IdCompra`) and (`c`.`IdTienda` = `dc`.`IdTienda`)))) join `producto` `p` on((convert(`dc`.`IdProducto` using utf8) = `p`.`IdProducto`))) join `docfiscal` on((`docfiscal`.`IdDocFis` = `c`.`IdDocFis`))) join `proveedores` on((`proveedores`.`IdCliPro` = convert(`c`.`IdCliPro` using utf8)))) join `linea` `l` on((`p`.`IdLinea` = `l`.`IdLinea`))) */;

--
-- Final view structure for view `vd_cuenta`
--

/*!50001 DROP VIEW IF EXISTS `vd_cuenta`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `vd_cuenta` AS select `d_c`.`IdTienda` AS `IdTienda`,`d_c`.`codigo_cuenta` AS `codigo_cuenta`,`d_c`.`NDocumento` AS `NDocumento`,`d_c`.`Fecha` AS `Fecha`,`d_c`.`IdOperacion` AS `IdOperacion`,`d_c`.`Abono_Soles` AS `Abono_Soles`,`d_c`.`Cargo_Soles` AS `Cargo_Soles`,`d_c`.`Saldo_Soles` AS `Saldo_Soles`,`d_c`.`Abono_Dolar` AS `Abono_Dolar`,`d_c`.`Cargo_Dolar` AS `Cargo_Dolar`,`d_c`.`Saldo_Dolar` AS `Saldo_Dolar`,`d_c`.`IdCtaPartida` AS `IdCtaPartida`,`d_c`.`Moneda` AS `Moneda`,`d_c`.`TC` AS `TC`,`d_c`.`IdDocFis_Mov` AS `IdDocFis_Mov`,`d_c`.`NDocumento_Mov` AS `NDocumento_Mov`,`d_c`.`Fecha_Mov` AS `Fecha_Mov`,`d_c`.`MedioPago` AS `MedioPago`,`d_c`.`NOperacion` AS `NOperacion`,`d_c`.`Entidad_Bancaria` AS `Entidad_Bancaria`,`d_c`.`Lugar` AS `Lugar`,`d_c`.`Obs` AS `Obs`,`d_c`.`Automatico` AS `Automatico`,`d_c`.`Eliminado` AS `Eliminado` from `d_cuenta` `d_c` */;

--
-- Final view structure for view `vfactu`
--

/*!50001 DROP VIEW IF EXISTS `vfactu`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `vfactu` AS select `f`.`IdTienda` AS `IdTienda`,`df`.`IdAlmacen` AS `IdAlmacen`,`f`.`Fecha` AS `Fecha`,`docfiscal`.`Abrev` AS `Abrev`,`f`.`NSerie` AS `NSerie`,`f`.`NDocumento` AS `NDocumento`,`f`.`IdDocFis` AS `IdDocFis`,`f`.`IdFPago` AS `IdFPago`,`f`.`IdCliPro` AS `IdCliPro`,if(isnull(`f`.`Razon_Social`),`c`.`NomCliPro`,convert(`f`.`Razon_Social` using utf8)) AS `NomCliPro`,`df`.`IdProducto` AS `IdProducto`,if((`f`.`Anulado` = 0),`df`.`Descripcion`,'ANULADO') AS `Descripcion`,`df`.`Unid` AS `Unid`,`df`.`DescriPrec` AS `DescriPrec`,`df`.`PrecioIGV` AS `PrecioIGV`,if((`f`.`Anulado` = 0),`df`.`SubTotalIGV`,0) AS `SubTotal`,if((`f`.`Anulado` = 0),if((`f`.`IdFPago` = 1),`df`.`SubTotalIGV`,0),0) AS `Contado`,if((`f`.`Anulado` = 0),if((`f`.`IdFPago` = 2),`df`.`SubTotalIGV`,0),0) AS `Credito`,if((`f`.`Anulado` = 0),if((`f`.`IdFPago` = 1),if((`f`.`Moneda` = 0),`df`.`SubTotalIGV`,(`df`.`SubTotalIGV` * `f`.`TC`)),0),0) AS `TContado`,if((`f`.`Anulado` = 0),if((`f`.`IdFPago` = 2),if((`f`.`Moneda` = 0),`df`.`SubTotalIGV`,(`df`.`SubTotalIGV` * `f`.`TC`)),0),0) AS `TCredito`,`f`.`IdVendedor` AS `IdVendedor`,`c`.`IdRuta` AS `IdRuta`,`p`.`IdLinea` AS `IdLinea`,`l`.`NomLinea` AS `NomLinea`,`p`.`IdMarca` AS `IdMarca`,`f`.`Anulado` AS `Anulado`,`f`.`Moneda` AS `Moneda`,`f`.`TC` AS `TC`,`df`.`Eliminado` AS `Eliminado` from (((((`d_factu` `df` join `factu` `f` on(((`df`.`IdVenta` = `f`.`IdVenta`) and (`df`.`IdTienda` = `f`.`IdTienda`)))) join `producto` `p` on((convert(`df`.`IdProducto` using utf8) = `p`.`IdProducto`))) join `docfiscal` on((`f`.`IdDocFis` = `docfiscal`.`IdDocFis`))) join `linea` `l` on((`p`.`IdLinea` = `l`.`IdLinea`))) join `clientes` `c` on((convert(`f`.`IdCliPro` using utf8) = `c`.`IdCliPro`))) */;

--
-- Final view structure for view `vfactu_lin`
--

/*!50001 DROP VIEW IF EXISTS `vfactu_lin`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `vfactu_lin` AS select `l`.`NomLinea` AS `NomLinea`,`f`.`Fecha` AS `Fecha`,`docfiscal`.`Abrev` AS `Abrev`,`f`.`NSerie` AS `NSerie`,`f`.`NDocumento` AS `NDocumento`,`f`.`IdDocFis` AS `IdDocFis`,`f`.`IdFPago` AS `IdFPago`,`f`.`IdCliPro` AS `IdCliPro`,if(isnull(`f`.`Razon_Social`),`c`.`NomCliPro`,convert(`f`.`Razon_Social` using utf8)) AS `NomCliPro`,`df`.`IdProducto` AS `IdProducto`,`p`.`NomProducto` AS `NomProducto`,`df`.`Unid` AS `Unid`,`df`.`DescriPrec` AS `DescriPrec`,`df`.`PrecioIGV` AS `PrecioIGV`,if((`f`.`Anulado` = 0),`df`.`SubTotalIGV`,0) AS `SubTotal`,if((`f`.`Anulado` = 0),if((`f`.`IdFPago` = 1),if((`f`.`Moneda` = 0),`df`.`SubTotalIGV`,(`df`.`SubTotalIGV` * `f`.`TC`)),0),0) AS `Contado`,if((`f`.`Anulado` = 0),if((`f`.`IdFPago` = 2),if((`f`.`Moneda` = 0),`df`.`SubTotalIGV`,(`df`.`SubTotalIGV` * `f`.`TC`)),0),0) AS `Credito`,`f`.`IdVendedor` AS `IdVendedor`,`c`.`IdRuta` AS `IdRuta`,`p`.`IdLinea` AS `IdLinea`,`p`.`IdMarca` AS `IdMarca`,`f`.`Anulado` AS `Anulado`,`f`.`Moneda` AS `Moneda`,`f`.`TC` AS `TC`,`df`.`Eliminado` AS `Eliminado` from (((((`factu` `f` join `d_factu` `df` on(((`f`.`IdVenta` = `df`.`IdVenta`) and (`f`.`IdTienda` = `df`.`IdTienda`)))) join `producto` `p` on((convert(`df`.`IdProducto` using utf8) = `p`.`IdProducto`))) join `docfiscal` on((`docfiscal`.`IdDocFis` = `f`.`IdDocFis`))) join `linea` `l` on((`p`.`IdLinea` = `l`.`IdLinea`))) join `clientes` `c` on((`c`.`IdCliPro` = convert(`f`.`IdCliPro` using utf8)))) */;

--
-- Final view structure for view `vpago_clte`
--

/*!50001 DROP VIEW IF EXISTS `vpago_clte`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `vpago_clte` AS select `mc`.`IdTienda` AS `IdTienda`,`mc`.`IdCliPro` AS `IdCliPro`,`c`.`NomCliPro` AS `NomCliPro`,`mc`.`NDocPago` AS `NDocPago`,`tmp`.`DescMedioPago` AS `DescMedioPago`,`dmc`.`NroLetra` AS `NroLetra`,`dmc`.`Fecha` AS `Fecha`,`dmc`.`Monto` AS `Monto`,`dmc`.`Moneda` AS `Moneda`,`dmc`.`TC` AS `TC`,`mc`.`NOperacion` AS `NOperacion`,`mc`.`Banco` AS `Banco`,`mc`.`Lugar` AS `Lugar`,`df`.`Abrev` AS `Abrev`,`dmc`.`NSerie` AS `NSerie`,`dmc`.`NDocumento` AS `NDocumento`,`mc`.`Eliminado` AS `Eliminado` from ((((`dmedio_cobro` `dmc` join `docfiscal` `df` on((`dmc`.`IdDocFis` = `df`.`IdDocFis`))) join `medio_cobro` `mc` on((`dmc`.`IdMedio_Pago` = `mc`.`IdMedio_Pago`))) join `tipo_mediopago` `tmp` on((`tmp`.`IdMedioPago` = `mc`.`Tipo_MedioPago`))) join `clientes` `c` on((`c`.`IdCliPro` = `mc`.`IdCliPro`))) */;

--
-- Final view structure for view `vpago_prov`
--

/*!50001 DROP VIEW IF EXISTS `vpago_prov`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `vpago_prov` AS select `mp`.`IdTienda` AS `IdTienda`,`mp`.`IdCliPro` AS `IdCliPro`,`pv`.`NomCliPro` AS `NomCliPro`,`mp`.`NDocPago` AS `NDocPago`,`tmp`.`DescMedioPago` AS `DescMedioPago`,`dmp`.`NroLetra` AS `NroLetra`,`dmp`.`Fecha` AS `Fecha`,`dmp`.`Monto` AS `Monto`,`dmp`.`Moneda` AS `Moneda`,`dmp`.`TC` AS `TC`,`mp`.`NOperacion` AS `NOperacion`,`mp`.`Banco` AS `Banco`,`mp`.`Lugar` AS `Lugar`,`df`.`Abrev` AS `Abrev`,`dmp`.`NSerie` AS `NSerie`,`dmp`.`NDocumento` AS `NDocumento`,`mp`.`Eliminado` AS `Eliminado` from ((((`proveedores` `pv` join `medio_pago` `mp` on((`pv`.`IdCliPro` = `mp`.`IdCliPro`))) join `dmedio_pago` `dmp` on((`dmp`.`IdMedio_Pago` = `mp`.`IdMedio_Pago`))) join `tipo_mediopago` `tmp` on((`tmp`.`IdMedioPago` = `mp`.`Tipo_MedioPago`))) join `docfiscal` `df` on((`df`.`IdDocFis` = `dmp`.`IdDocFis`))) */;

--
-- Final view structure for view `vstock`
--

/*!50001 DROP VIEW IF EXISTS `vstock`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `vstock` AS select `k`.`IdTienda` AS `IdTienda`,`k`.`IdAlmacen` AS `IdAlmacen`,`k`.`IdProducto` AS `IdProducto`,`producto`.`IdCodBar` AS `IdCodBar`,`producto`.`NomProducto` AS `NomProducto`,`producto`.`LPC` AS `LPC`,sum(if((`k`.`Entrada` = 0),-(`k`.`Salida`),`k`.`Entrada`)) AS `StockAct`,sum(`k`.`Recogido`) AS `StockDisp`,truncate((sum(if((`k`.`Entrada` = 0),-(`k`.`Salida`),`k`.`Entrada`)) / `producto`.`Capacidad`),3) AS `Unidad`,truncate((sum(`k`.`Recogido`) / `producto`.`Capacidad`),3) AS `Und_Disp`,`u`.`Abrev` AS `AbrevU`,(sum(if((`k`.`Entrada` = 0),-(`k`.`Salida`),`k`.`Entrada`)) - (truncate((sum(if((`k`.`Entrada` = 0),-(`k`.`Salida`),`k`.`Entrada`)) / `producto`.`Capacidad`),3) * `producto`.`Capacidad`)) AS `Fraccion`,(sum(`k`.`Recogido`) - (truncate((sum(`k`.`Recogido`) / `producto`.`Capacidad`),3) * `producto`.`Capacidad`)) AS `Fra_Disp`,`f`.`Abrev` AS `AbrevF`,`producto`.`Precio_Detalle` AS `Precio_Detalle`,`producto`.`Precio_Mayor` AS `Precio_Mayor`,`producto`.`Precio_Especial` AS `Precio_Especial`,`producto`.`Capacidad` AS `Capacidad`,`producto`.`Peso` AS `Peso`,`producto`.`IdCliPro` AS `IdCliPro`,`producto`.`IdLinea` AS `IdLinea`,`producto`.`IdMarca` AS `IdMarca`,`producto`.`Inactivo` AS `Inactivo` from ((`unidad` `u` join (`unidad` `f` join `producto` on((`f`.`IdUnidad` = `producto`.`IdFraccion`))) on((`u`.`IdUnidad` = `producto`.`IdUnidad`))) join `kardex` `k` on((`producto`.`IdProducto` = `k`.`IdProducto`))) where ((`k`.`Eliminado` = 0) and (`k`.`IdDocFis` <> 24)) group by `k`.`IdTienda`,`k`.`IdAlmacen`,`k`.`IdProducto`,`producto`.`IdCodBar`,`producto`.`NomProducto`,`producto`.`LPC`,`u`.`Abrev`,`f`.`Abrev`,`producto`.`Precio_Detalle`,`producto`.`Precio_Mayor`,`producto`.`Precio_Especial`,`producto`.`Capacidad`,`producto`.`Peso`,`producto`.`IdCliPro`,`producto`.`IdLinea`,`producto`.`IdMarca`,`producto`.`Inactivo` */;

--
-- Final view structure for view `vutilidad`
--

/*!50001 DROP VIEW IF EXISTS `vutilidad`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`tchalpon_utranspjr`@`%.%.%.%` SQL SECURITY DEFINER */
/*!50001 VIEW `vutilidad` AS select `c`.`IdCliPro` AS `IdCliPro`,`c`.`NomCliPro` AS `NomCliPro`,`f`.`IdTienda` AS `IdTienda`,`d_f`.`IdAlmacen` AS `IdAlmacen`,`f`.`IdDocFis` AS `IdDocFis`,`df`.`Abrev` AS `Abrev`,`f`.`NSerie` AS `NSerie`,`f`.`NDocumento` AS `NDocumento`,`d_f`.`Fecha` AS `Fecha`,`p`.`NomProducto` AS `NomProducto`,`d_f`.`Unid` AS `Unid`,`d_f`.`DescriPrec` AS `DescriPrec`,`d_f`.`Margen` AS `Margen`,`f`.`Moneda` AS `Moneda`,`f`.`TC` AS `TC`,`f`.`IdVendedor` AS `IdVendedor`,`p`.`IdLinea` AS `IdLinea`,`f`.`Servicio` AS `Servicio`,`f`.`Anulado` AS `Anulado`,`d_f`.`Eliminado` AS `Eliminado` from ((((`d_factu` `d_f` join `clientes` `c` on((convert(`d_f`.`IdCliPro` using utf8) = `c`.`IdCliPro`))) join `docfiscal` `df` on((`df`.`IdDocFis` = `d_f`.`IdDocFis`))) join `producto` `p` on((`p`.`IdProducto` = convert(`d_f`.`IdProducto` using utf8)))) join `factu` `f` on((`f`.`IdVenta` = `d_f`.`IdVenta`))) */;


