set default store for product, purchase set last store purchased if available or use product default (#672)

This commit is contained in:
kriddles
2020-03-27 13:27:40 -05:00
committed by GitHub
parent d509f9add0
commit 2fee4b45ff
10 changed files with 39 additions and 6 deletions

View File

@@ -88,6 +88,15 @@
<input type="hidden" name="location_id" id="location_id" value="1">
@endif
@if(GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING)
@include('components.shoppinglocationpicker', array(
'label' => 'Default store',
'shoppinglocations' => $shoppinglocations
))
@else
<input type="hidden" name="shopping_location_id" id="shopping_location_id" value="1">
@endif
@php if($mode == 'edit') { $value = $product->min_stock_amount; } else { $value = 0; } @endphp
@include('components.numberpicker', array(
'id' => 'min_stock_amount',