Merge pull request 'fix: casting' (!3538) from Hotfix-available-for-item_getLack into master
gitea/salix/pipeline/head This commit looks good Details

Reviewed-on: #3538
Reviewed-by: Carlos Andrés <carlosap@verdnatura.es>
This commit is contained in:
Carlos Andrés 2025-03-05 14:08:27 +00:00
commit cae4192098
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ BEGIN
i.`size`,
i.category,
w.name warehouse,
SUM(IFNULL(sub.visible,0)) lack,
CAST(SUM(IFNULL(sub.visible,0)) AS SIGNED) lack,
i.inkFk,
IFNULL(im.timed, util.midnight()) timed,
IFNULL(izc.timed, util.midnight()) minTimed,

View File

@ -67,7 +67,7 @@ BEGIN
AND NOT t.isRaid
UNION ALL
SELECT r.itemFk,
r.shipment,
util.dayEnd(r.shipment),
-r.amount,
r.warehouseFk
FROM hedera.orderRow r