add company VAT, number and account fields to invoice pdf

This commit is contained in:
Vaidas Lungis committed 2015-03-12 11:49:15 +02:00
1 parent 486f5079b7
commit fbd9b82528
1 file changed
+5
+5
View File
@@ -1333,6 +1333,9 @@ class Service implements InjectionAwareInterface
$company_info = __("Name: ") . $invoice['seller']['company'] . "\n" .
__("Address: ") . $invoice['seller']['address'] . "\n" .
__("Company VAT: ") . $invoice['seller']['company_vat'] . "\n" .
__("Company number: ") . $invoice['seller']['company_number'] . "\n" .
__("Account: ") . $invoice['seller']['account_number'] . "\n" .
__("Phone: ") . $invoice['seller']['phone'] . "\n" .
__("Email: ") . $invoice['seller']['email'];
$pdf->SetFont('DejaVu', 'B', $font_size);
@@ -1344,6 +1347,8 @@ class Service implements InjectionAwareInterface
$buyer_info = __("Name: ") . $invoice['buyer']['first_name'] . $invoice['buyer']['last_name'] . "\n" .
__("Company: ") . $invoice['buyer']['company'] . "\n" .
__("Address: ") . $invoice['buyer']['address'] . "\n" .
__("Company VAT: ") . $invoice['seller']['company_vat'] . "\n" .
__("Company number: ") . $invoice['seller']['company_number'] . "\n" .
__("Phone: ") . $invoice['buyer']['phone'];
$pdf->SetFont('DejaVu', 'B', $font_size);
$pdf->text(145, 75, __("Billing and delivery address"));