rounding stickers down

This commit is contained in:
Pako Natek 2024-02-13 13:43:31 +01:00
parent c4907d1a33
commit cf0d7e04a1
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ BEGIN
CALL productionControl(vWarehouseFk, 0); CALL productionControl(vWarehouseFk, 0);
-- Products with vn.item.isBoxPickingMode = TRUE, pay atention to vn.itemShelving.packing -- Products with vn.item.isBoxPickingMode = TRUE, pay attention to vn.itemShelving.packing
CREATE OR REPLACE TEMPORARY TABLE tmp.sale CREATE OR REPLACE TEMPORARY TABLE tmp.sale
(saleFk INT PRIMARY KEY) (saleFk INT PRIMARY KEY)
SELECT SELECT
@ -74,7 +74,7 @@ BEGIN
s.quantity, s.quantity,
MAKETIME(pb.HH,pb.mm,0) etd, MAKETIME(pb.HH,pb.mm,0) etd,
pb.routeFk, pb.routeFk,
s.quantity / i.packingOut stickers, FLOOR(s.quantity / i.packingOut) stickers,
i.packingOut, i.packingOut,
pc.defaultBigPackageFk pc.defaultBigPackageFk
FROM sale s FROM sale s