mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
16 lines
349 B
PHP
16 lines
349 B
PHP
<?php namespace App\Ninja\Presenters;
|
|
|
|
use Utils;
|
|
use Laracasts\Presenter\Presenter;
|
|
|
|
class InvoicePresenter extends Presenter {
|
|
|
|
public function balance_due()
|
|
{
|
|
$amount = $this->entity->getRequestedAmount();
|
|
$currencyId = $this->entity->client->currency_id;
|
|
|
|
return Utils::formatMoney($amount, $currencyId);
|
|
}
|
|
|
|
} |