views locationcontentsheet: add value

This commit is contained in:
Kurt Riddlesperger 2019-09-30 21:10:27 -05:00
parent b647a1626b
commit e3dc94ee08

View File

@ -57,6 +57,7 @@
<thead>
<tr>
<th>{{ $__t('Product') }}</th>
<th>{{ $__t('Value') }}</th>
<th>{{ $__t('Amount') }}</th>
<th>{{ $__t('Consumend amount') . ' / ' . $__t('Notes') }}</th>
</tr>
@ -68,6 +69,9 @@
<td>
{{ FindObjectInArrayByPropertyValue($products, 'id', $currentStockEntry->product_id)->name }}
</td>
<td>
<span class="locale-number locale-number-currency">{{ $currentStockEntry->value }}</span>
</td>
<td>
<span class="locale-number locale-number-quantity-amount">{{ $currentStockEntry->amount }}</span> <span id="product-{{ $currentStockEntry->product_id }}-qu-name">{{ $__n($currentStockEntry->amount, FindObjectInArrayByPropertyValue($quantityunits, 'id', FindObjectInArrayByPropertyValue($products, 'id', $currentStockEntry->product_id)->qu_id_stock)->name, FindObjectInArrayByPropertyValue($quantityunits, 'id', FindObjectInArrayByPropertyValue($products, 'id', $currentStockEntry->product_id)->qu_id_stock)->name_plural) }}</span>
<span class="small font-italic">@if($currentStockEntry->amount_opened > 0){{ $__t('%s opened', $currentStockEntry->amount_opened) }}@endif</span>