Also show the product's default store on /stockoverview (closes #2698)

This commit is contained in:
Bernd Bestel
2025-03-10 17:36:23 +01:00
parent 6ca87a9a49
commit d1a8900f98
4 changed files with 104 additions and 0 deletions

View File

@@ -183,6 +183,7 @@
<th class="allow-grouping">{{ $__t('Default location') }}</th>
<th>{{ $__t('Product picture') }}</th>
<th class="@if(!GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING) d-none @endif">{{ $__t('Average price') }}</th>
<th class="@if(!GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING) d-none @endif allow-grouping">{{ $__t('Default store') }}</th>
@include('components.userfields_thead', array(
'userfields' => $userfields
@@ -454,6 +455,9 @@
</span>
@endif
</td>
<td>
@if($currentStockEntry->default_store_name !== null){{ $currentStockEntry->default_store_name }}@endif
</td>
@include('components.userfields_tbody', array(
'userfields' => $userfields,