Fixed assetloc to location

This commit is contained in:
snipe 2017-10-28 08:40:27 -07:00
parent 5d890fb139
commit 95b6e0d2d8

View file

@ -61,8 +61,8 @@
@include ('partials.forms.edit.order_number') @include ('partials.forms.edit.order_number')
<?php <?php
$currency_type=null; $currency_type=null;
if ($item->id && $item->assetloc) { if ($item->id && $item->location) {
$currency_type = $item->assetloc->currency; $currency_type = $item->location->currency;
} }
?> ?>
@include ('partials.forms.edit.purchase_cost', ['currency_type' => $currency_type]) @include ('partials.forms.edit.purchase_cost', ['currency_type' => $currency_type])