mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 12:12:48 +01:00
Show the selected contact on the invoice
This commit is contained in:
parent
90289fc018
commit
2a3abe39f5
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1113,7 +1113,7 @@ NINJA.renderField = function(invoice, field, twoColumn) {
|
||||
return false;
|
||||
}
|
||||
var account = invoice.account;
|
||||
var contact = client.contacts[0];
|
||||
var contact = invoice.contact || client.contacts[0];
|
||||
var clientName = client.name || (contact.first_name || contact.last_name ? ((contact.first_name || '') + ' ' + (contact.last_name || '')) : contact.email);
|
||||
|
||||
var label = false;
|
||||
|
Loading…
Reference in New Issue
Block a user