1
0
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:
Hillel Coren 2018-03-29 22:32:17 +03:00
parent 90289fc018
commit 2a3abe39f5
3 changed files with 3 additions and 3 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

@ -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;