(1189,'2024-09-02',53,'1189','2',43,'2024-09-02 07:48:13',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'1189','',7,10,0,'2024-09-02 07:48:42','2024-09-02 07:48:42',94,50,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(1190,'2024-09-03',53,'1190','2',43,'2024-09-03 09:10:17',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'1190','',7,10,0,'2024-09-03 09:10:33','2024-09-03 09:10:33',94,50,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(1191,'2024-09-03',53,'1191','2',43,'2024-09-03 09:20:47',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'1191','',7,10,0,'2024-09-03 09:21:04','2024-09-03 09:21:04',94,50,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(1192,'2024-09-04',53,'1192','2',43,'2024-09-04 13:22:40',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'1192','',7,10,0,'2024-09-04 13:22:59','2024-09-04 13:22:59',94,50,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(1193,'2024-09-05',53,'1193','2',43,'2024-09-05 17:20:25',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'1193','',7,10,0,'2024-09-05 17:20:45','2024-09-05 17:20:45',94,50,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(1194,'2024-09-06',53,'1194','2',43,'2024-09-06 08:20:48',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'1194','',7,10,0,'2024-09-06 08:21:03','2024-09-06 08:21:03',94,50,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(1195,'2024-09-09',53,'1195','2',43,'2024-09-09 07:13:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'1195','',7,10,0,'2024-09-09 07:13:16','2024-09-09 07:13:16',94,50,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(1196,'2024-09-09',53,'1196','2',43,'2024-09-09 07:17:34',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'1196','',7,10,0,'2024-09-09 07:17:50','2024-09-09 07:17:50',94,50,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(1197,'2024-09-09',53,'1197','2',43,'2024-09-09 14:23:07',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'1197','',7,10,0,'2024-09-09 14:24:04','2024-09-09 14:24:04',94,50,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(1198,'2024-09-09',53,'1198','2',43,'2024-09-09 14:40:37',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'1198','',7,10,0,'2024-09-09 14:40:52','2024-09-09 14:40:52',94,50,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(1199,'2024-09-10',53,'1199','2',43,'2024-09-10 08:21:48',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'1199','',7,10,0,'2024-09-10 08:22:02','2024-09-10 08:22:02',94,50,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(1200,'2024-09-10',53,'1200','2',43,'2024-09-10 09:44:17',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'1200','',7,10,0,'2024-09-10 09:46:55','2024-09-10 09:46:55',94,50,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(1201,'2024-09-10',56,'1201','2',43,'2024-09-10 15:46:40',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'1201','',0,9,0,'2024-09-10 15:46:59','2024-09-10 15:46:59',108,66,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(1202,'2024-09-11',53,'1202','2',43,'2024-09-11 08:36:05',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'1202','',7,10,0,'2024-09-11 08:36:20','2024-09-11 08:36:20',94,50,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);

--
-- Table structure for table `transportistas`
--

CREATE TABLE `transportistas` (
  `id` int NOT NULL AUTO_INCREMENT,
  `nombretrans` varchar(255) DEFAULT NULL,
  `tipotrans` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=58 DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `transportistas`
--

INSERT INTO `transportistas` VALUES (1,'MONTACARGUISTA FABRICA','ESPECIAL'),(2,'ABEL ESQUIVEL AVALOS','FURGON DE 5.0'),(3,'ATILIO JOEL VERA AMARILLA','FURGON DE 5.0'),(4,'ALCIDES ANDRES SAUCEDO VERGARA ','FURGON DE 5.0'),(5,'JOSE DAVID CARDOZO BOGADO','FURGON DE 5.0'),(6,'BERNABE MIRANDA VILLALBA','FURGON DE 5.0'),(7,'NICOLAS ROCHA','FURGON DE 5.0'),(8,'LISANDRY PATIÑO VERA','FURGON DE 5.0'),(9,'CRISTIAN ROLON VIDALLET','FURGON DE 5.0'),(10,'ROBERTO DANIEL DIAZ CRISTALDO','FURGON DE 5.0'),(11,'CARMELO ESTEBAN MATTESICH ESPINOLA','FURGON DE 5.0'),(12,'LUIS ALEJANDRO SOSA ARZAMENDIA','FURGON DE 5.0'),(13,'BROUMARKETS','BMSA'),(14,'ELSE LILIANA TORRES DE VILLAR ','FURGON DE 5.0'),(15,'RUBEN ISRAEL RECALDE TELLEZ','FURGON DE 5.0'),(16,'JAVIER SERVIN MERELES','FURGON DE 5.0'),(17,'DERLIS RAMON CASTILLO ROJAS','DOBLE'),(18,'DANIEL EVARISTO CUEVAS PENAYO','FURGON DE 5.0'),(19,'TALLER ROCIO','SEMI'),(20,'LUIS OSMAR SOSA VALIENTE','FURGON DE 5.0'),(21,'NAIDA CAROLINA INSFRAN DE SOSA','FURGON DE 5.0'),(22,'RAMONA BEATRIZ CABAÑAS GONZALEZ','FURGON DE 5.0'),(23,'LUIS PABLINO LINARES LOPEZ','FURGON DE 5.0'),(24,'MATEO MIGUEL NUÑEZ JARA','FURGON DE 5.0'),(25,'CRISTHIAN DANIEL MORAN','FURGON DE 5.0'),(26,'GUSTAVO ANIBAL SALCEDO DIAZ ','FURGON DE 5.0'),(27,'VICTORINA OVANDO ORTELLADO ','FURGON DE 5.0'),(28,'ENRIQUE DANIEL RAMIREZ SAMUDIO','FURGON DE 5.0'),(29,'FELICIANA TALAVERA VDA DE PORTILLO','FURGON DE 5.0'),(30,'JORGE MARTINEZ MALDONADO','FURGON DE 5.0'),(31,'RICHARD MISAEL GALEANO DELGADILLO','FURGON DE 5.0'),(32,'CELSO DUARTE ASTIGARRAGA','FURGON DE 5.0'),(33,'JOSE EMILIO QUIÑONEZ GOMEZ ','FURGON DE 5.0'),(34,'CESAR JAVIER FERNANDEZ AGÜERO','FURGON DE 5.0'),(35,'BENIGNO EUSTACIO AREVALOS PRIETO ','FURGON DE 5.0'),(36,'MIGUEL ANGEL RODRIGUEZ PINO','FURGON DE 5.0'),(37,'LUIS ARIEL REATO CHAMORRO','FURGON DE 5.0'),(38,'FRANCISCO MARTIN RUIZ FARIÑA','DOBLE'),(39,'FREDY MATIAS FRANCO ACUÑA','DOBLE'),(40,'NILDA MARIZA ACOSTA GONZALEZ','FURGON DE 5.0'),(41,'TITO RAMON LEON PANIAGUA ','FURGON DE 5.0'),(42,'VICENTE ODILIO MONGES CAÑIZA','FURGON DE 5.0'),(43,'WILIAN RAUL CABRERA','FURGON DE 5.0'),(44,'AMADO ACOSTA BAEZ','FURGON DE 5.0'),(45,'CARLOS ALBERTO GOMEZ GONZALEZ','FURGON DE 5.0'),(46,'IRAN ALBERTO FLORES ORTIZ','FURGON DE 5.0'),(47,'FABRICA CONTI','ESPECIAL'),(48,'LATINO AMERICA S.R.L.                                                      			','SEMI'),(49,'FIRMO DEL VALLE ','ESPECIAL'),(50,'ROBERTO ROMERO','FURGON DE 5.0'),(51,'RH TRANSPORT SA.','ESPECIAL'),(52,'CONSTRUTEX','ESPECIAL'),(53,'INGENIUN ','FURGON DE 5.0'),(54,'INGENIUN ','FURGON DE 5.0'),(55,'DERLIS OVELAR ','CONTENEDOR'),(56,'TRANSPORTE RODAS','SEMI'),(57,'RODOLFO CACERES','ESPECIAL');

--
-- Table structure for table `zpreparacion`
--

CREATE TABLE `zpreparacion` (
  `id` int NOT NULL AUTO_INCREMENT,
  `pallet` int NOT NULL,
  `cbultos` int NOT NULL,
  `cunidades` int NOT NULL,
  `transf` int NOT NULL,
  `fecha` date NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `zpreparacion`
--


--
-- Final view structure for view `controlmigra`
--

/*!50001 DROP VIEW IF EXISTS `controlmigra`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
/*!50001 VIEW `controlmigra` AS select `salida_import`.`ciega` AS `ciega`,`productos`.`codPrd` AS `codPrd`,`cg_descripcion`.`codproducto` AS `idPrd`,sum(`salida_import`.`cajas`) AS `total_cajas` from ((((`salida_import` left join `transferencia_des` on((`transferencia_des`.`transfid` = `salida_import`.`ciega`))) left join `pallets` on((`pallets`.`idPallet` = `transferencia_des`.`pallet`))) left join `cg_descripcion` on((`cg_descripcion`.`idCDescripcion` = `pallets`.`cg_descripcion`))) left join `productos` on((`productos`.`idProd` = `cg_descripcion`.`codproducto`))) where ((`transferencia_des`.`transfid` = 379) and (`productos`.`codPrd` = `salida_import`.`codPrd`)) group by `productos`.`codPrd` */;

--
-- Final view structure for view `pallet_activos`
--

/*!50001 DROP VIEW IF EXISTS `pallet_activos`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
/*!50001 VIEW `pallet_activos` AS select `ciegas`.`idCiega` AS `ciega`,`productos`.`nombre` AS `nombre`,`productos`.`codPrd` AS `codPrd`,`cg_descripcion`.`idCDescripcion` AS `idCDescripcion`,`cg_descripcion`.`fnotificacion` AS `fnotificacion`,`ciegas`.`ingreso` AS `ingreso`,`pallets`.`estado` AS `estado`,`pallets`.`saldo` AS `saldo`,`pallets`.`pos` AS `pos` from (((((`pallets` left join `cg_descripcion` on((`cg_descripcion`.`idCDescripcion` = `pallets`.`cg_descripcion`))) left join `ciegas` on((`ciegas`.`idCiega` = `cg_descripcion`.`ciega`))) left join `productos` on((`productos`.`idProd` = `cg_descripcion`.`codproducto`))) left join `posiciones` on((`posiciones`.`idposrack` = `pallets`.`pos`))) left join `clientes` on((`clientes`.`id_cliente` = `ciegas`.`cliente`))) where ((`clientes`.`id_cliente` = 53) and (`pallets`.`saldo` <> 0) and (`pallets`.`estado` = 0)) */;

--
-- Final view structure for view `pallet_inactivos`
--

/*!50001 DROP VIEW IF EXISTS `pallet_inactivos`*/;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
/*!50001 VIEW `pallet_inactivos` AS select `ciegas`.`idCiega` AS `ciega`,`productos`.`nombre` AS `nombre`,`productos`.`codPrd` AS `codPrd`,`cg_descripcion`.`idCDescripcion` AS `idCDescripcion`,`cg_descripcion`.`fnotificacion` AS `fnotificacion`,`ciegas`.`ingreso` AS `ingreso`,`pallets`.`estado` AS `estado`,`pallets`.`saldo` AS `saldo`,`pallets`.`pos` AS `pos` from (((((`pallets` left join `cg_descripcion` on((`cg_descripcion`.`idCDescripcion` = `pallets`.`cg_descripcion`))) left join `ciegas` on((`ciegas`.`idCiega` = `cg_descripcion`.`ciega`))) left join `productos` on((`productos`.`idProd` = `cg_descripcion`.`codproducto`))) left join `posiciones` on((`posiciones`.`idposrack` = `pallets`.`pos`))) left join `clientes` on((`clientes`.`id_cliente` = `ciegas`.`cliente`))) where ((`clientes`.`id_cliente` = 53) and (`pallets`.`saldo` <> 0) and (`pallets`.`estado` = 3)) */;


