Show if a consume booking was spoiled on the stock journal page (closes #953)

This commit is contained in:
Bernd Bestel
2020-08-25 19:51:54 +02:00
parent 71a6cbef2d
commit 0417b73cb5
2 changed files with 4 additions and 0 deletions

View File

@@ -74,6 +74,9 @@
</td>
<td>
{{ $__t($stockLogEntry->transaction_type) }}
@if ($stockLogEntry->spoiled == 1)
<span class="font-italic text-muted">{{ $__t('Spoiled') }}</span>
@endif
</td>
<td class="@if(!GROCY_FEATURE_FLAG_STOCK_LOCATION_TRACKING) d-none @endif">
{{ FindObjectInArrayByPropertyValue($locations, 'id', $stockLogEntry->location_id)->name }}