diff --git a/resources/views/hardware/edit.blade.php b/resources/views/hardware/edit.blade.php index 83cf3bd6a..aea619289 100755 --- a/resources/views/hardware/edit.blade.php +++ b/resources/views/hardware/edit.blade.php @@ -61,8 +61,8 @@ @include ('partials.forms.edit.order_number') id && $item->assetloc) { - $currency_type = $item->assetloc->currency; + if ($item->id && $item->location) { + $currency_type = $item->location->currency; } ?> @include ('partials.forms.edit.purchase_cost', ['currency_type' => $currency_type])