Added additional custom field labels

This commit is contained in:
Hillel Coren 2018-02-20 11:02:20 +02:00
parent 9ab51ac67f
commit 125711cc5d
2 changed files with 5 additions and 1 deletions

View File

@ -238,6 +238,8 @@ class Account extends Eloquent
'hours', 'hours',
'id_number', 'id_number',
'invoice', 'invoice',
'invoice_date',
'invoice_number',
'item', 'item',
'line_total', 'line_total',
'outstanding', 'outstanding',
@ -246,6 +248,8 @@ class Account extends Eloquent
'po_number', 'po_number',
'quantity', 'quantity',
'quote', 'quote',
'quote_date',
'quote_number',
'rate', 'rate',
'service', 'service',
'subtotal', 'subtotal',

View File

@ -187,7 +187,7 @@
</div> </div>
<div class="col-md-4" id="col_2"> <div class="col-md-4" id="col_2">
<div data-bind="visible: !is_recurring()"> <div data-bind="visible: !is_recurring()">
{!! Former::text('invoice_date')->data_bind("datePicker: invoice_date, valueUpdate: 'afterkeydown'")->label(trans("texts.{$entityType}_date")) {!! Former::text('invoice_date')->data_bind("datePicker: invoice_date, valueUpdate: 'afterkeydown'")->label($account->getLabel("{$entityType}_date"))
->data_date_format(Session::get(SESSION_DATE_PICKER_FORMAT, DEFAULT_DATE_PICKER_FORMAT))->appendIcon('calendar')->addGroupClass('invoice_date') !!} ->data_date_format(Session::get(SESSION_DATE_PICKER_FORMAT, DEFAULT_DATE_PICKER_FORMAT))->appendIcon('calendar')->addGroupClass('invoice_date') !!}
{!! Former::text('due_date')->data_bind("datePicker: due_date, valueUpdate: 'afterkeydown'")->label($account->getLabel($invoice->getDueDateLabel())) {!! Former::text('due_date')->data_bind("datePicker: due_date, valueUpdate: 'afterkeydown'")->label($account->getLabel($invoice->getDueDateLabel()))
->placeholder($invoice->id || $invoice->isQuote() ? ' ' : $account->present()->dueDatePlaceholder()) ->placeholder($invoice->id || $invoice->isQuote() ? ' ' : $account->present()->dueDatePlaceholder())