mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-13 22:54:25 +01:00
Fix for client payment terms display
This commit is contained in:
parent
8e13d8c929
commit
cbe27bba43
@ -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());
|
||||
}
|
||||
}
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user