diff --git a/app/Models/Account.php b/app/Models/Account.php index f847193ef6..8b10c90dfa 100644 --- a/app/Models/Account.php +++ b/app/Models/Account.php @@ -646,6 +646,7 @@ class Account extends Eloquent 'quote_number', 'total', 'invoice_issued_to', + 'quote_issued_to', //'date', 'rate', 'hours', diff --git a/public/built.js b/public/built.js index a9d6cdca45..417e368dcb 100644 --- a/public/built.js +++ b/public/built.js @@ -31100,8 +31100,8 @@ NINJA.decodeJavascript = function(invoice, javascript) if (match.indexOf('?') < 0 || value) { if (invoice.partial && field == 'balance_due') { field = 'amount_due'; - } else if (invoice.is_quote && field == 'your_invoice') { - field = 'your_quote'; + } else if (invoice.is_quote) { + field = field.replace('invoice', 'quote'); } var label = invoiceLabels[field]; if (match.indexOf('UC') >= 0) { diff --git a/public/js/pdf.pdfmake.js b/public/js/pdf.pdfmake.js index 5524fc3f75..64eb33811b 100644 --- a/public/js/pdf.pdfmake.js +++ b/public/js/pdf.pdfmake.js @@ -191,8 +191,8 @@ NINJA.decodeJavascript = function(invoice, javascript) if (match.indexOf('?') < 0 || value) { if (invoice.partial && field == 'balance_due') { field = 'amount_due'; - } else if (invoice.is_quote && field == 'your_invoice') { - field = 'your_quote'; + } else if (invoice.is_quote) { + field = field.replace('invoice', 'quote'); } var label = invoiceLabels[field]; if (match.indexOf('UC') >= 0) { diff --git a/resources/lang/en/texts.php b/resources/lang/en/texts.php index 6c933cd63b..6f20954332 100644 --- a/resources/lang/en/texts.php +++ b/resources/lang/en/texts.php @@ -1142,6 +1142,6 @@ return array( 'all_pages_footer' => 'Show footer on', 'invoice_currency' => 'Invoice Currency', 'enable_https' => 'We strongly recommend using HTTPS to accept credit card details online.', - + 'quote_issued_to' => 'Quote issued to', );