mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-09-21 02:07:23 -04:00
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:
1 parent
f18524af57
commit
a6076c9068
1 file changed
+1
-1
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user