Fixed 'your invoice' on quote

This commit is contained in:
Hillel Coren 2015-11-28 23:09:53 +02:00
parent 64fec3b502
commit 255b819175
2 changed files with 5 additions and 1 deletions

View File

@ -31755,6 +31755,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';
}
var label = invoiceLabels[field];
if (match.indexOf('UC') >= 0) {

View File

@ -168,8 +168,10 @@ 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';
}
var label = invoiceLabels[field];
var label = invoiceLabels[field];
if (match.indexOf('UC') >= 0) {
label = label.toUpperCase();
}