[-] BO: Fix PHP warning on orderslip generation without ecotax #PSCFV-8743
This commit is contained in:
@@ -211,6 +211,8 @@ class HTMLTemplateOrderSlipCore extends HTMLTemplateInvoice
|
||||
if ($ecotax)
|
||||
foreach ($tmp_tax_infos as $rate => &$row)
|
||||
{
|
||||
if (!isset($ecotax[$rate]))
|
||||
continue
|
||||
$row['total_price_tax_excl'] -= $ecotax[$rate]['ecotax_tax_excl'];
|
||||
$row['total_amount'] -= ($ecotax[$rate]['ecotax_tax_incl'] - $ecotax[$rate]['ecotax_tax_excl']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user