From 8a9dd53c11ffe6ef391d4e6cee4faac485bcf270 Mon Sep 17 00:00:00 2001 From: "Martin Helmling martin.helmling@octosoft.eu" Date: Mon, 9 Dec 2019 12:21:53 +0100 Subject: [PATCH] Inventory-Helper: Nutzung von falschem Parameter Bei "reserve_for" muss auch der Inhalt des Parameters genutzt werden, nicht "chargenumber" --- SL/Helper/Inventory.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/Helper/Inventory.pm b/SL/Helper/Inventory.pm index 17ecc20e1..b0dc16e37 100644 --- a/SL/Helper/Inventory.pm +++ b/SL/Helper/Inventory.pm @@ -77,7 +77,7 @@ sub _get_stock_onhand { } if ($params{reserve_for}) { - my @objects = listify($params{chargenumber}); + my @objects = listify($params{reserve_for}); my @tokens; push @tokens, ( "(reserve_for_id = ? AND reserve_for_table = ?)") x @objects; push @values, map { ($_->id, $_->meta->table) } @objects; -- 2.20.1