Implement missing function and client vat number to invoice

This commit is contained in:
Troels Liebe Bentsen 2014-10-15 01:42:17 +02:00
parent 71d161e654
commit d6ceb33318
3 changed files with 15 additions and 0 deletions

View File

@ -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()
{

View File

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

View File

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