7199-devToTest_2316 #2287

Merged
alexm merged 169 commits from 7199-devToTest_2316 into test 2024-04-11 06:25:23 +00:00
1 changed files with 1 additions and 2 deletions
Showing only changes of commit 7634d82d8b - Show all commits

View File

@ -46,10 +46,9 @@ module.exports = Self => {
SELECT COUNT(ish.id) countItemOlder SELECT COUNT(ish.id) countItemOlder
FROM vn.itemShelving ish FROM vn.itemShelving ish
JOIN ( JOIN (
SELECT ish.itemFk, created,shelvingFk, p.code SELECT ish.itemFk, created,shelvingFk
FROM vn.itemShelving ish FROM vn.itemShelving ish
JOIN vn.shelving s ON ish.shelvingFk = s.code JOIN vn.shelving s ON ish.shelvingFk = s.code
LEFT JOIN vn.parking p ON p.id = s.parkingFk
WHERE ish.shelvingFk = ? WHERE ish.shelvingFk = ?
)sub ON sub.itemFK = ish.itemFk )sub ON sub.itemFK = ish.itemFk
JOIN vn.shelving s ON s.code = ish.shelvingFk JOIN vn.shelving s ON s.code = ish.shelvingFk