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:
parent
246cc0eaa8
commit
5fab1d6f0d
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue