Added the products average price as a hidden by default column on the stock overview page (closes #1677)

This commit is contained in:
Bernd Bestel
2021-11-09 19:39:32 +01:00
parent 787c885ccf
commit beae32ef23
4 changed files with 131 additions and 0 deletions

View File

@@ -174,6 +174,7 @@
<th>{{ $__t('Parent product') }}</th>
<th>{{ $__t('Default location') }}</th>
<th>{{ $__t('Product picture') }}</th>
<th>{{ $__t('Average price') }}</th>
@include('components.userfields_thead', array(
'userfields' => $userfields
@@ -414,6 +415,9 @@
class="lazy">
@endif
</td>
<td class="@if(!GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING) d-none @endif">
<span class="locale-number locale-number-currency">{{ $currentStockEntry->average_price }}</span>
</td>
@include('components.userfields_tbody', array(
'userfields' => $userfields,