From d71874a20ace59412c48de75a88712c15708684c Mon Sep 17 00:00:00 2001 From: Francisco Ferreira Date: Sun, 10 Feb 2019 00:50:33 +0000 Subject: [PATCH] Account: allow to set more custom Invoice labels --- app/Models/Account.php | 55 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) diff --git a/app/Models/Account.php b/app/Models/Account.php index 9f84df92318a..008c99e7e941 100644 --- a/app/Models/Account.php +++ b/app/Models/Account.php @@ -237,38 +237,91 @@ class Account extends Eloquent ]; public static $customLabels = [ + 'address1', + 'address2', + 'amount', + 'amount_paid', + 'balance', 'balance_due', + 'blank', + 'city_state_postal', + 'client_name', + 'company_name', + 'contact_name', + 'country', 'credit_card', + 'credit_date', + 'credit_issued_to', + 'credit_note', + 'credit_number', + 'credit_to', + 'custom_value1', + 'custom_value2', + 'date', 'delivery_note', 'description', + 'details', 'discount', 'due_date', - 'gateway_fee_item', + 'email', + 'from', 'gateway_fee_description', 'gateway_fee_discount_description', + 'gateway_fee_item', 'hours', 'id_number', 'invoice', 'invoice_date', + 'invoice_due_date', + 'invoice_issued_to', + 'invoice_no', 'invoice_number', + 'invoice_to', + 'invoice_total', 'item', 'line_total', + 'method', 'outstanding', 'paid_to_date', 'partial_due', + 'payment_date', + 'phone', 'po_number', + 'postal_city_state', + 'product_key', 'quantity', 'quote', 'quote_date', + 'quote_due_date', + 'quote_issued_to', + 'quote_no', 'quote_number', + 'quote_to', 'rate', + 'reference', 'service', + 'statement', + 'statement_date', + 'statement_issued_to', + 'statement_to', 'subtotal', + 'surcharge', 'tax', + 'tax_invoice', + 'tax_quote', + 'taxes', 'terms', + 'to', + 'total', 'unit_cost', 'valid_until', 'vat_number', + 'website', + 'work_phone', + 'your_credit', + 'your_invoice', + 'your_quote', + 'your_statement', ]; public static $customMessageTypes = [