salix/db/routines/vn/procedures/itemShelving_get.sql

31 lines
680 B
MySQL
Raw Normal View History

DELIMITER $$
2024-08-20 08:06:10 +00:00
CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `vn`.`itemShelving_get`(IN vSelf VARCHAR(8))
BEGIN
/**
* Lista artículos de itemshelving
*
* @param vSelf matrícula del carro
**/
SELECT ish.itemFk item,
2024-11-04 07:59:10 +00:00
i.name,
i.longName,
i.size,
ish.visible,
ish.packing,
ish.grouping,
p.code,
ish.id,
s.priority,
2024-02-09 06:51:51 +00:00
ish.isChecked,
2024-07-31 16:11:03 +00:00
ic.url,
2024-11-04 06:48:28 +00:00
ish.available,
ish.buyFk
FROM itemShelving ish
JOIN item i ON i.id = ish.itemFk
JOIN shelving s ON vSelf = s.code COLLATE utf8_unicode_ci
LEFT JOIN parking p ON s.parkingFk = p.id
2024-02-09 06:51:51 +00:00
JOIN hedera.imageConfig ic
WHERE ish.shelvingFk COLLATE utf8_unicode_ci = vSelf;
END$$
DELIMITER ;