mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Added phone to optional invoice fields
This commit is contained in:
parent
5d04bdab21
commit
7de1ffc13f
@ -97,6 +97,7 @@ trait PresentsInvoice
|
||||
'client.city_state_postal',
|
||||
'client.country',
|
||||
'client.email',
|
||||
'client.phone',
|
||||
'client.contact_name',
|
||||
'client.custom_value1',
|
||||
'client.custom_value2',
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -744,6 +744,8 @@ NINJA.renderClientOrAccountField = function(invoice, field) {
|
||||
} else if (field == 'client.email') {
|
||||
var clientEmail = contact.email == clientName ? '' : contact.email;
|
||||
return {text:clientEmail};
|
||||
} else if (field == 'client.phone') {
|
||||
return {text:contact.phone};
|
||||
} else if (field == 'client.custom_value1') {
|
||||
return {text: account.custom_client_label1 && client.custom_value1 ? account.custom_client_label1 + ' ' + client.custom_value1 : false};
|
||||
} else if (field == 'client.custom_value2') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user