This commit is contained in:
Robert Ferrús 2024-12-11 11:54:40 +01:00
parent 6ac30dcb0c
commit 43bbdfd421
1 changed files with 2 additions and 0 deletions

View File

@ -113,6 +113,8 @@ BEGIN
JOIN vn.shelving sh ON sh.id = ish.shelvingFk
JOIN vn.parking p ON p.id = sh.parkingFk
JOIN vn.sector s ON s.id = p.sectorFk
JOIN vn.buy b ON b.id = ish.buyFk
JOIN vn.entry e ON e.id = b.entryFk
WHERE s.warehouseFk = vWarehouseFk
AND sh.parked >= util.VN_CURDATE()
GROUP BY ish.itemFk