1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-13 22:54:25 +01:00
invoiceninja/app/Ninja/Presenters/ExpensePresenter.php

17 lines
369 B
PHP
Raw Normal View History

2016-01-06 20:52:09 +01:00
<?php namespace App\Ninja\Presenters;
use Utils;
use Laracasts\Presenter\Presenter;
class ExpensePresenter extends Presenter {
public function vendor()
{
return $this->entity->vendor ? $this->entity->vendor->getDisplayName() : '';
}
public function expense_date()
{
return Utils::fromSqlDate($this->entity->expense_date);
}
}