From ec4e17906314154194d80337dc144a184335fc81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Fri, 1 Mar 2013 15:33:46 +0100 Subject: [PATCH] [-] BO: Fix #PSCFV-8067 the europeean vat exempt label was not using the tax address type --- classes/pdf/HTMLTemplateInvoice.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/pdf/HTMLTemplateInvoice.php b/classes/pdf/HTMLTemplateInvoice.php index efbbc790a..52600802f 100755 --- a/classes/pdf/HTMLTemplateInvoice.php +++ b/classes/pdf/HTMLTemplateInvoice.php @@ -85,10 +85,10 @@ class HTMLTemplateInvoiceCore extends HTMLTemplate */ public function getTaxTabContent() { - $invoice_address = new Address((int)$this->order->id_address_invoice); + $address = new Address((int)$this->order->{Configuration::get('PS_TAX_ADDRESS_TYPE')}); $tax_exempt = Configuration::get('VATNUMBER_MANAGEMENT') - && !empty($invoice_address->vat_number) - && $invoice_address->id_country != Configuration::get('VATNUMBER_COUNTRY'); + && !empty($address->vat_number) + && $address->id_country != Configuration::get('VATNUMBER_COUNTRY'); $this->smarty->assign(array( 'tax_exempt' => $tax_exempt,