From a6076c9068fbcab735272def05bf74eeeddb88ed Mon Sep 17 00:00:00 2001 From: objecttothis <17935339+objecttothis@users.noreply.github.com> Date: Wed, 19 Aug 2026 17:06:09 +0400 Subject: [PATCH] fix(view): use stock location-specific quantity or fallback to default - Updated quantity input to fetch value for current stock location if available, with a fallback to the default quantity. Signed-off-by: objecttothis <17935339+objecttothis@users.noreply.github.com> --- app/Views/items/form_inventory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Views/items/form_inventory.php b/app/Views/items/form_inventory.php index c88f7430f..723a40328 100644 --- a/app/Views/items/form_inventory.php +++ b/app/Views/items/form_inventory.php @@ -74,7 +74,7 @@ 'id' => 'quantity', 'class' => 'form-control input-sm', 'disabled' => '', - 'value' => to_quantity_decimals(current($item_quantities)) + 'value' => to_quantity_decimals($item_quantities[$stock_location] ?? current($item_quantities)) ]) ?>