Added order_number to presenter

This commit is contained in:
snipe 2017-01-11 18:25:53 -08:00
parent 900e6e2419
commit b8d81c0734

View file

@ -96,7 +96,7 @@ class AssetPresenter extends Presenter
$results['purchase_cost'] = Helper::formatCurrencyOutput($this->purchase_cost);
$results['purchase_date'] = $this->purchase_date ?: '';
$results['notes'] = $this->notes;
$results['order_number'] = '';
$results['order_number'] = $this->order_number;
if (!empty($this->order_number)) {
$results['order_number'] = link_to_route('hardware.index', $this->order_number, ['order_number' => $this->order_number]);
}