mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 12:24:29 -04:00
Implement missing function and client vat number to invoice
This commit is contained in:
parent
71d161e654
commit
d6ceb33318
@ -125,6 +125,19 @@ class Client extends EntityModel
|
||||
|
||||
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()
|
||||
{
|
||||
|
@ -31625,6 +31625,7 @@ function displayClient(doc, invoice, x, y, layout) {
|
||||
}
|
||||
var data = [
|
||||
getClientDisplayName(client),
|
||||
client.vat_number,
|
||||
concatStrings(client.address1, client.address2),
|
||||
concatStrings(client.city, client.state, client.postal_code),
|
||||
client.country ? client.country.name : false,
|
||||
|
@ -666,6 +666,7 @@ function displayClient(doc, invoice, x, y, layout) {
|
||||
}
|
||||
var data = [
|
||||
getClientDisplayName(client),
|
||||
client.vat_number,
|
||||
concatStrings(client.address1, client.address2),
|
||||
concatStrings(client.city, client.state, client.postal_code),
|
||||
client.country ? client.country.name : false,
|
||||
|
Loading…
x
Reference in New Issue
Block a user