Merge pull request #12247 from Godmartinz/gh12225_serial_added_to_components

adds serial to components tab of assets
This commit is contained in:
snipe 2022-12-13 12:57:50 -08:00 committed by GitHub
commit 389ec3a3cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -967,6 +967,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; ?>
@ -980,6 +981,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>