refs #6276 feat:newWarehouse

This commit is contained in:
Sergio De la torre 2024-03-21 09:33:24 +01:00
parent 025e53634a
commit f25dade011
1 changed files with 5 additions and 1 deletions

View File

@ -19,7 +19,11 @@ BEGIN
DECLARE vItemFk INT;
SELECT barcodeToItem(vBarcode) INTO vItemFk;
SET vPacking = COALESCE(vPacking, GREATEST(vn.itemPacking(vBarcode,vWarehouseFk), 1));
SET vQuantity = vQuantity * vPacking;
IF (SELECT COUNT(*) FROM shelving WHERE code = vShelvingFk COLLATE utf8_unicode_ci) = 0 THEN
INSERT IGNORE INTO parking(code) VALUES(vShelvingFk);