Support 'Tax Invoice\Quote' PDF labels

This commit is contained in:
Hillel Coren 2017-01-08 19:43:59 +02:00
parent 451faaea26
commit b34c5724de
5 changed files with 30 additions and 25 deletions

View File

@ -207,6 +207,8 @@ trait PresentsInvoice
'phone',
'blank',
'adjustment',
'tax_invoice',
'tax_quote',
];
foreach ($fields as $field) {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -177,6 +177,7 @@ NINJA.decodeJavascript = function(invoice, javascript)
'invoiceNumber': invoice.invoice_number || ' ',
'entityType': invoice.is_quote ? invoiceLabels.quote : invoiceLabels.invoice,
'entityTypeUC': (invoice.is_quote ? invoiceLabels.quote : invoiceLabels.invoice).toUpperCase(),
'entityTaxType': invoice.is_quote ? invoiceLabels.tax_quote : invoiceLabels.tax_invoice,
'fontSize': NINJA.fontSize,
'fontSizeLarger': NINJA.fontSize + 1,
'fontSizeLargest': NINJA.fontSize + 2,

View File

@ -2308,6 +2308,8 @@ $LANG = array(
'notes_reminder3' => 'Third Reminder',
'bcc_email' => 'BCC Email',
'bcc_email_help' => 'All emails sent to your clients will also be sent to this address.',
'tax_quote' => 'Tax Quote',
'tax_invoice' => 'Tax Invoice',
);