FIxes Sum of purchase cost of components not taking quantity into account in Asset View > Components tab (#9424)

* git commit -m

* added text
This commit is contained in:
Godfrey Martinez 2021-04-14 10:19:40 -07:00 committed by GitHub
parent 246cc0eaa8
commit 5fab1d6f0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -855,9 +855,8 @@
<a href="{{ route('components.show', $component->id) }}">{{ $component->name }}</a>
</td>
<td>{{ $component->pivot->assigned_qty }}</td>
<td>{{ $component->purchase_cost }}</td>
<?php $totalCost = $totalCost + $component->purchase_cost ;?>
<td>{{ $component->purchase_cost }} each</td>
<?php $totalCost = $totalCost + ($component->purchase_cost *$component->pivot->assigned_qty) ?>
</tr>
@endif
@endforeach