Added columns for last price on shopping list (closes #410)

This commit is contained in:
Bernd Bestel
2020-12-19 17:55:49 +01:00
parent 7f24ffc484
commit f5e0709913
6 changed files with 38 additions and 2 deletions

View File

@@ -175,6 +175,8 @@
<th>{{ $__t('Amount') }}</th>
<th>{{ $__t('Product group') }}</th>
<th class="d-none">Hidden status</th>
<th class="@if(!GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING) d-none @endif">{{ $__t('Last price (Unit)') }}</th>
<th class="@if(!GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING) d-none @endif">{{ $__t('Last price (Total)') }}</th>
@include('components.userfields_thead', array(
'userfields' => $userfields
@@ -248,6 +250,12 @@
@if(FindObjectInArrayByPropertyValue($missingProducts, 'id', $listItem->product_id) !== null) belowminstockamount @endif
@if($listItem->done != 1) xxUNDONExx @endif
</td>
<td class="@if(!GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING) d-none @endif">
<span class="locale-number locale-number-currency">{{ $listItem->last_price_unit }}</span>
</td>
<td class="@if(!GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING) d-none @endif">
<span class="locale-number locale-number-currency">{{ $listItem->last_price_total }}</span>
</td>
@include('components.userfields_tbody', array(
'userfields' => $userfields,