1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-12 14:12:44 +01:00

Fix for client payment terms display

This commit is contained in:
Hillel Coren 2017-02-01 13:09:26 +02:00
parent 8e13d8c929
commit cbe27bba43
2 changed files with 12 additions and 1 deletions

View File

@ -24,4 +24,15 @@ class ClientPresenter extends EntityPresenter
return $account->formatMoney($client->paid_to_date, $client);
}
public function paymentTerms()
{
$client = $this->entity;
if (! $client->payment_terms) {
return '';
}
return sprintf('%s: %s %s', trans('texts.payment_terms'), trans('texts.payment_terms_net'), $client->defaultDaysDue());
}
}

View File

@ -141,7 +141,7 @@
<p><i class="fa fa-language" style="width: 20px"></i>{{ $client->language->name }}</p>
@endif
<p>{{ $client->payment_terms ? trans('texts.payment_terms') . ": Net " . $client->payment_terms : '' }}</p>
<p>{{ $client->present()->paymentTerms }}</p>
</div>
<div class="col-md-3">