A free open source IT asset/license management system
FIxes Sum of purchase cost of components not taking quantity into account in Asset View > Components tab (#9424)
Godfrey Martinez5fab1d6f0d61
diff --git a/resources/views/hardware/view.blade.php b/resources/views/hardware/view.blade.phpindex 38108ee4a6..dcf2adc2ec 100755--- a/resources/views/hardware/view.blade.php+++ b/resources/views/hardware/view.blade.php@@ -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