From 125711cc5d8fdcd8ac37e0a16b32b7e691194ac9 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 20 Feb 2018 11:02:20 +0200 Subject: [PATCH] Added additional custom field labels --- app/Models/Account.php | 4 ++++ resources/views/invoices/edit.blade.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/Models/Account.php b/app/Models/Account.php index 82abe9699206..184a15fba043 100644 --- a/app/Models/Account.php +++ b/app/Models/Account.php @@ -238,6 +238,8 @@ class Account extends Eloquent 'hours', 'id_number', 'invoice', + 'invoice_date', + 'invoice_number', 'item', 'line_total', 'outstanding', @@ -246,6 +248,8 @@ class Account extends Eloquent 'po_number', 'quantity', 'quote', + 'quote_date', + 'quote_number', 'rate', 'service', 'subtotal', diff --git a/resources/views/invoices/edit.blade.php b/resources/views/invoices/edit.blade.php index 0bec4e5cc7f1..3d2966d8e2b3 100644 --- a/resources/views/invoices/edit.blade.php +++ b/resources/views/invoices/edit.blade.php @@ -187,7 +187,7 @@
- {!! 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') !!} {!! Former::text('due_date')->data_bind("datePicker: due_date, valueUpdate: 'afterkeydown'")->label($account->getLabel($invoice->getDueDateLabel())) ->placeholder($invoice->id || $invoice->isQuote() ? ' ' : $account->present()->dueDatePlaceholder())