refs #6964 feat: hasItemOlder

This commit is contained in:
Sergio De la torre 2024-05-23 13:43:00 +02:00
parent d1affb1191
commit 0914925a86
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ module.exports = Self => {
SELECT COUNT(ish.id) countItemOlder
FROM vn.itemShelving ish
JOIN (
SELECT ish.itemFk, created, shelvingFk
SELECT ish.itemFk, created, shelvingFk, pickingOrder
FROM vn.itemShelving ish
JOIN vn.shelving s ON ish.shelvingFk = s.code
LEFT JOIN vn.parking p2 ON p2.id = s.parkingFk