From fbd9b825283f1cfe070fced4c66e93ab3a25ee48 Mon Sep 17 00:00:00 2001 From: Vaidas Lungis Date: Thu, 12 Mar 2015 11:49:15 +0200 Subject: [PATCH] add company VAT, number and account fields to invoice pdf --- src/bb-modules/Invoice/Service.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bb-modules/Invoice/Service.php b/src/bb-modules/Invoice/Service.php index 54851de91..135c6a731 100644 --- a/src/bb-modules/Invoice/Service.php +++ b/src/bb-modules/Invoice/Service.php @@ -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"));