adds serial to components tab of assets

This commit is contained in:
Godfrey M 2022-12-13 10:30:37 -08:00
parent 9e8fff6e5b
commit 4442b446b9

View file

@ -964,6 +964,7 @@
<th>{{ trans('general.name') }}</th>
<th>{{ trans('general.qty') }}</th>
<th>{{ trans('general.purchase_cost') }}</th>
<th>{{trans('admin/hardware/form.serial')}}</th>
</thead>
<tbody>
<?php $totalCost = 0; ?>
@ -977,6 +978,7 @@
</td>
<td>{{ $component->pivot->assigned_qty }}</td>
<td>{{ Helper::formatCurrencyOutput($component->purchase_cost) }} each</td>
<td>{{$component->serial}}</td>
<?php $totalCost = $totalCost + ($component->purchase_cost *$component->pivot->assigned_qty) ?>
</tr>