Fix consuming when FEATURE_FLAG_STOCK_LOCATION_TRACKING is disabled (fixes #1229)

This commit is contained in:
Bernd Bestel 2020-12-29 18:06:56 +01:00
parent b6139a6991
commit 278a5f004a
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300
2 changed files with 2 additions and 3 deletions

View File

@ -14,3 +14,4 @@
- Fixed that the new product option "Never show on stock overview" was unintentionally set by default for new products
- Fixed that the success message on purchase displayed no amount when `FEATURE_FLAG_STOCK_PRICE_TRACKING` was disabled
- Fixed that adding items to the shopping list from the context/more menu on the stock overview page did not work
- Fixed that consuming was not possible when `FEATURE_FLAG_STOCK_LOCATION_TRACKING` was disabled

View File

@ -79,8 +79,7 @@
class="text-info font-italic d-none">' . $__t('Tare weight handling enabled - please weigh the whole container, the amount to be posted will be automatically calculcated') . '</div>'
))
@if(GROCY_FEATURE_FLAG_STOCK_LOCATION_TRACKING)
<div class="form-group">
<div class="form-group @if(!GROCY_FEATURE_FLAG_STOCK_LOCATION_TRACKING) d-none @endif">
<label for="location_id">{{ $__t('Location') }}</label>
<select required
class="custom-control custom-select location-combobox"
@ -93,7 +92,6 @@
</select>
<div class="invalid-feedback">{{ $__t('A location is required') }}</div>
</div>
@endif
<div class="form-group">
<div class="custom-control custom-checkbox">