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>
This commit is contained in:
objecttothis committed 2026-08-19 17:06:09 +04:00
1 parent f18524af57
commit a6076c9068
1 file changed
+1 -1
+1 -1
View File
@@ -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))
]) ?>
</div>
</div>