2024-01-15 11:31:03 +00:00
|
|
|
DELIMITER $$
|
2024-07-22 09:52:42 +00:00
|
|
|
CREATE OR REPLACE DEFINER=`vn-admin`@`localhost` PROCEDURE `vn`.`expeditionScan_List`(vPalletFk INT)
|
2024-01-15 11:31:03 +00:00
|
|
|
BEGIN
|
|
|
|
|
|
|
|
SELECT es.id,
|
|
|
|
t.routeFk Ruta,
|
|
|
|
t.id Ticket,
|
|
|
|
e.counter Caja,
|
|
|
|
es.expeditionFk
|
|
|
|
FROM vn.expeditionScan es
|
|
|
|
JOIN vn.expedition e ON e.id = es.expeditionFk
|
|
|
|
JOIN vn.ticket t ON t.id = e.ticketFk
|
|
|
|
WHERE es.palletFk = vPalletFk
|
|
|
|
ORDER BY Ruta, Ticket, Caja;
|
|
|
|
|
|
|
|
END$$
|
|
|
|
DELIMITER ;
|