Add possibility to filter products by location (references #10)

This commit is contained in:
Bernd Bestel
2018-07-08 15:16:24 +02:00
parent 92e648490a
commit ecf96252b9
5 changed files with 47 additions and 5 deletions

View File

@@ -29,6 +29,7 @@
<th>{{ $L('Product') }}</th>
<th>{{ $L('Amount') }}</th>
<th>{{ $L('Next best before date') }}</th>
<th class="hidden">Hidden location</th>
</tr>
</thead>
<tbody>
@@ -60,6 +61,9 @@
{{ $currentStockEntry->best_before_date }}
<time class="timeago timeago-contextual" datetime="{{ $currentStockEntry->best_before_date }}"></time>
</td>
<td class="hidden">
{{ FindObjectInArrayByPropertyValue($locations, 'id', FindObjectInArrayByPropertyValue($products, 'id', $currentStockEntry->product_id)->location_id)->name }}
</td>
</tr>
@endforeach
</tbody>