From 086683319aec8d0873254a8db8d1f85b107fcb45 Mon Sep 17 00:00:00 2001 From: snipe Date: Sat, 2 Jun 2018 06:21:51 -0700 Subject: [PATCH] Fixed #5172 - autosum on assets detail view for components tab --- resources/views/hardware/view.blade.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/resources/views/hardware/view.blade.php b/resources/views/hardware/view.blade.php index 43b6b65ab..96be1daa8 100755 --- a/resources/views/hardware/view.blade.php +++ b/resources/views/hardware/view.blade.php @@ -605,6 +605,8 @@ @foreach ($asset->components as $component) + + @if (is_null($component->deleted_at)) @@ -612,6 +614,7 @@ {{ $component->pivot->assigned_qty }} {{ $component->purchase_cost }} + purchase_cost ;?> @endif @@ -620,7 +623,9 @@ - {{ $use_currency.$totalCost }} + + + {{ $totalCost }}