Implement missing function and client vat number to invoice
This commit is contained in:
parent
71d161e654
commit
d6ceb33318
3 changed files with 15 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue