fix: refs #5699 clientsDisable #2419

Merged
robert merged 5 commits from 5699-hoFixClientsDisable into master 2024-05-09 05:16:02 +00:00
1 changed files with 5 additions and 2 deletions
Showing only changes of commit 0fce8c755b - Show all commits

View File

@ -20,8 +20,11 @@ BEGIN
SELECT barcodeToItem(vBarcode) INTO vItemFk;
SET vPacking = COALESCE(vPacking, GREATEST(vn.itemPacking(vBarcode,vWarehouseFk), 1));
SET vQuantity = vQuantity * vPacking;
IF vPacking IS NULL
THEN
SET vPacking = itemPacking(vBarcode, vWarehouseFk);
SET vQuantity = vQuantity * vPacking;
END IF;
IF (SELECT COUNT(*) FROM shelving WHERE code = vShelvingFk COLLATE utf8_unicode_ci) = 0 THEN