Fix for delivery note label

This commit is contained in:
Hillel Coren 2018-03-16 11:31:15 +02:00
parent f80687d0a5
commit 92b5f782b2
3 changed files with 4 additions and 2 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -303,6 +303,8 @@ NINJA.decodeJavascript = function(invoice, javascript)
} else if (field == 'invoice_to') { } else if (field == 'invoice_to') {
field = 'statement_to'; field = 'statement_to';
} }
} else if (invoice.is_delivery_note) {
field = 'delivery_note';
} else if (invoice.balance_amount < 0) { } else if (invoice.balance_amount < 0) {
if (field == 'your_invoice') { if (field == 'your_invoice') {
field = 'your_credit'; field = 'your_credit';