fix: refs #7821 Added orders in item_getMinacum
gitea/salix/pipeline/pr-master This commit looks good Details

This commit is contained in:
Guillermo Bonet 2024-07-30 14:19:04 +02:00
parent 4ef57e6869
commit 961d05ab35
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ BEGIN
JOIN ticket t ON t.id = s.ticketFk JOIN ticket t ON t.id = s.ticketFk
WHERE t.shipped BETWEEN vDated AND vDatedTo WHERE t.shipped BETWEEN vDated AND vDatedTo
AND t.warehouseFk AND t.warehouseFk
AND s.quantity != 0 AND s.quantity <> 0
AND (vItemFk IS NULL OR s.itemFk = vItemFk) AND (vItemFk IS NULL OR s.itemFk = vItemFk)
AND (vWarehouseFk IS NULL OR t.warehouseFk = vWarehouseFk) AND (vWarehouseFk IS NULL OR t.warehouseFk = vWarehouseFk)
UNION ALL UNION ALL
@ -93,7 +93,7 @@ BEGIN
i.warehouseFk, i.warehouseFk,
i.quantity amount i.quantity amount
FROM tmp.itemAtp i FROM tmp.itemAtp i
HAVING amount != 0; HAVING amount <> 0;
DROP TEMPORARY TABLE DROP TEMPORARY TABLE
tmp.itemAtp, tmp.itemAtp,