mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 18:34:30 -04:00
Implement missing function and client vat number to invoice
This commit is contained in:
parent
71d161e654
commit
d6ceb33318
@ -126,6 +126,19 @@ class Client extends EntityModel
|
|||||||
return $str;
|
return $str;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getVatNumber()
|
||||||
|
{
|
||||||
|
$str = '';
|
||||||
|
|
||||||
|
if ($this->work_phone)
|
||||||
|
{
|
||||||
|
$str .= '<i class="fa fa-vat-number" style="width: 20px"></i>' . $this->vat_number;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $str;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public function getNotes()
|
public function getNotes()
|
||||||
{
|
{
|
||||||
$str = '';
|
$str = '';
|
||||||
|
@ -31625,6 +31625,7 @@ function displayClient(doc, invoice, x, y, layout) {
|
|||||||
}
|
}
|
||||||
var data = [
|
var data = [
|
||||||
getClientDisplayName(client),
|
getClientDisplayName(client),
|
||||||
|
client.vat_number,
|
||||||
concatStrings(client.address1, client.address2),
|
concatStrings(client.address1, client.address2),
|
||||||
concatStrings(client.city, client.state, client.postal_code),
|
concatStrings(client.city, client.state, client.postal_code),
|
||||||
client.country ? client.country.name : false,
|
client.country ? client.country.name : false,
|
||||||
|
@ -666,6 +666,7 @@ function displayClient(doc, invoice, x, y, layout) {
|
|||||||
}
|
}
|
||||||
var data = [
|
var data = [
|
||||||
getClientDisplayName(client),
|
getClientDisplayName(client),
|
||||||
|
client.vat_number,
|
||||||
concatStrings(client.address1, client.address2),
|
concatStrings(client.address1, client.address2),
|
||||||
concatStrings(client.city, client.state, client.postal_code),
|
concatStrings(client.city, client.state, client.postal_code),
|
||||||
client.country ? client.country.name : false,
|
client.country ? client.country.name : false,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user