mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-09 20:52:56 +01:00
Don't show client email twice on the PDF
This commit is contained in:
parent
e94517a243
commit
d2cf9b2fbe
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -722,9 +722,9 @@ NINJA.renderClientOrAccountField = function(invoice, field) {
|
||||
}
|
||||
var account = invoice.account;
|
||||
var contact = client.contacts[0];
|
||||
var clientName = client.name || (contact.first_name || contact.last_name ? (contact.first_name + ' ' + contact.last_name) : contact.email);
|
||||
|
||||
if (field == 'client.client_name') {
|
||||
var clientName = client.name || (contact.first_name || contact.last_name ? (contact.first_name + ' ' + contact.last_name) : contact.email);
|
||||
return {text:clientName || ' ', style: ['clientName']};
|
||||
} else if (field == 'client.contact_name') {
|
||||
return (contact.first_name || contact.last_name) ? {text:contact.first_name + ' ' + contact.last_name} : false;
|
||||
|
Loading…
Reference in New Issue
Block a user