Merge pull request #2660 from OXINARF/#2114-Add_more_labels

Account: allow to set more custom Invoice labels
This commit is contained in:
Hillel Coren 2019-02-10 13:41:44 +02:00 committed by GitHub
commit 1da78d8f29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -237,38 +237,91 @@ class Account extends Eloquent
]; ];
public static $customLabels = [ public static $customLabels = [
'address1',
'address2',
'amount',
'amount_paid',
'balance',
'balance_due', 'balance_due',
'blank',
'city_state_postal',
'client_name',
'company_name',
'contact_name',
'country',
'credit_card', 'credit_card',
'credit_date',
'credit_issued_to',
'credit_note',
'credit_number',
'credit_to',
'custom_value1',
'custom_value2',
'date',
'delivery_note', 'delivery_note',
'description', 'description',
'details',
'discount', 'discount',
'due_date', 'due_date',
'gateway_fee_item', 'email',
'from',
'gateway_fee_description', 'gateway_fee_description',
'gateway_fee_discount_description', 'gateway_fee_discount_description',
'gateway_fee_item',
'hours', 'hours',
'id_number', 'id_number',
'invoice', 'invoice',
'invoice_date', 'invoice_date',
'invoice_due_date',
'invoice_issued_to',
'invoice_no',
'invoice_number', 'invoice_number',
'invoice_to',
'invoice_total',
'item', 'item',
'line_total', 'line_total',
'method',
'outstanding', 'outstanding',
'paid_to_date', 'paid_to_date',
'partial_due', 'partial_due',
'payment_date',
'phone',
'po_number', 'po_number',
'postal_city_state',
'product_key',
'quantity', 'quantity',
'quote', 'quote',
'quote_date', 'quote_date',
'quote_due_date',
'quote_issued_to',
'quote_no',
'quote_number', 'quote_number',
'quote_to',
'rate', 'rate',
'reference',
'service', 'service',
'statement',
'statement_date',
'statement_issued_to',
'statement_to',
'subtotal', 'subtotal',
'surcharge',
'tax', 'tax',
'tax_invoice',
'tax_quote',
'taxes',
'terms', 'terms',
'to',
'total',
'unit_cost', 'unit_cost',
'valid_until', 'valid_until',
'vat_number', 'vat_number',
'website',
'work_phone',
'your_credit',
'your_invoice',
'your_quote',
'your_statement',
]; ];
public static $customMessageTypes = [ public static $customMessageTypes = [