Merge branch 'develop' into gli-503

This commit is contained in:
Shreesh Arora
2022-11-14 16:12:12 +05:30
committed by GitHub
2778 changed files with 1173 additions and 102937 deletions

View File

@@ -540,9 +540,6 @@ class HTMLTemplateInvoiceCore extends HTMLTemplate
$debug = Tools::getValue('debug');
$address = new Address((int)$this->order->id_address_tax);
$tax_exempt = Configuration::get('VATNUMBER_MANAGEMENT')
&& !empty($address->vat_number)
&& $address->id_country != Configuration::get('VATNUMBER_COUNTRY');
$carrier = new Carrier($this->order->id_carrier);
// code to send name of the taxes applied on the order to show names od taxes in the invoice for GST
@@ -567,7 +564,6 @@ class HTMLTemplateInvoiceCore extends HTMLTemplate
$data = array(
'showTaxName' => $showTaxName,
'tax_exempt' => $tax_exempt,
'use_one_after_another_method' => $this->order_invoice->useOneAfterAnotherTaxComputationMethod(),
'display_tax_bases_in_breakdowns' => $this->order_invoice->displayTaxBasesInProductTaxesBreakdown(),
'product_tax_breakdown' => $this->order_invoice->getProductTaxesBreakdown($this->order),