Render product Userfields also on the shopping list (this now closes #258)

This commit is contained in:
Bernd Bestel
2019-09-17 19:39:55 +02:00
parent 0fa0138972
commit 9b5f3ba7b8
3 changed files with 15 additions and 1 deletions

View File

@@ -81,6 +81,11 @@
<th>{{ $__t('Amount') }}</th>
<th class="d-none">Hiden product group</th>
<th class="d-none">Hidden status</th>
@include('components.userfields_thead', array(
'userfields' => $userfields
))
</tr>
</thead>
<tbody class="d-none">
@@ -114,6 +119,12 @@
<td class="d-none">
@if(FindObjectInArrayByPropertyValue($missingProducts, 'id', $listItem->product_id) !== null) belowminstockamount @endif
</td>
@include('components.userfields_tbody', array(
'userfields' => $userfields,
'userfieldValues' => FindAllObjectsInArrayByPropertyValue($userfieldValues, 'object_id', $listItem->product_id)
))
</tr>
@endforeach
</tbody>