Bug: fix 'Invoice issued to' in business design for quote

This commit is contained in:
Hillel Coren 2016-02-03 22:19:15 +02:00
parent cc49415a78
commit 25b8c54355
4 changed files with 6 additions and 5 deletions

View File

@ -646,6 +646,7 @@ class Account extends Eloquent
'quote_number', 'quote_number',
'total', 'total',
'invoice_issued_to', 'invoice_issued_to',
'quote_issued_to',
//'date', //'date',
'rate', 'rate',
'hours', 'hours',

View File

@ -31100,8 +31100,8 @@ NINJA.decodeJavascript = function(invoice, javascript)
if (match.indexOf('?') < 0 || value) { if (match.indexOf('?') < 0 || value) {
if (invoice.partial && field == 'balance_due') { if (invoice.partial && field == 'balance_due') {
field = 'amount_due'; field = 'amount_due';
} else if (invoice.is_quote && field == 'your_invoice') { } else if (invoice.is_quote) {
field = 'your_quote'; field = field.replace('invoice', 'quote');
} }
var label = invoiceLabels[field]; var label = invoiceLabels[field];
if (match.indexOf('UC') >= 0) { if (match.indexOf('UC') >= 0) {

View File

@ -191,8 +191,8 @@ NINJA.decodeJavascript = function(invoice, javascript)
if (match.indexOf('?') < 0 || value) { if (match.indexOf('?') < 0 || value) {
if (invoice.partial && field == 'balance_due') { if (invoice.partial && field == 'balance_due') {
field = 'amount_due'; field = 'amount_due';
} else if (invoice.is_quote && field == 'your_invoice') { } else if (invoice.is_quote) {
field = 'your_quote'; field = field.replace('invoice', 'quote');
} }
var label = invoiceLabels[field]; var label = invoiceLabels[field];
if (match.indexOf('UC') >= 0) { if (match.indexOf('UC') >= 0) {

View File

@ -1142,6 +1142,6 @@ return array(
'all_pages_footer' => 'Show footer on', 'all_pages_footer' => 'Show footer on',
'invoice_currency' => 'Invoice Currency', 'invoice_currency' => 'Invoice Currency',
'enable_https' => 'We strongly recommend using HTTPS to accept credit card details online.', 'enable_https' => 'We strongly recommend using HTTPS to accept credit card details online.',
'quote_issued_to' => 'Quote issued to',
); );