1
0
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:
Hillel Coren 2017-01-01 13:34:14 +02:00
parent e94517a243
commit d2cf9b2fbe
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

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