1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00
invoiceninja/app/Ninja/Presenters/CreditPresenter.php
2016-05-23 12:26:08 +03:00

17 lines
338 B
PHP

<?php namespace App\Ninja\Presenters;
use Utils;
class CreditPresenter extends EntityPresenter {
public function client()
{
return $this->entity->client ? $this->entity->client->getDisplayName() : '';
}
public function credit_date()
{
return Utils::fromSqlDate($this->entity->credit_date);
}
}