[-] BO: Fix PHP warning on orderslip generation without ecotax #PSCFV-8743
This commit is contained in:
1 parent
dc5df43d16
commit
5312290774
1 file changed
+2
@@ -211,6 +211,8 @@ class HTMLTemplateOrderSlipCore extends HTMLTemplateInvoice
|
|||||||
if ($ecotax)
|
if ($ecotax)
|
||||||
foreach ($tmp_tax_infos as $rate => &$row)
|
foreach ($tmp_tax_infos as $rate => &$row)
|
||||||
{
|
{
|
||||||
|
if (!isset($ecotax[$rate]))
|
||||||
|
continue
|
||||||
$row['total_price_tax_excl'] -= $ecotax[$rate]['ecotax_tax_excl'];
|
$row['total_price_tax_excl'] -= $ecotax[$rate]['ecotax_tax_excl'];
|
||||||
$row['total_amount'] -= ($ecotax[$rate]['ecotax_tax_incl'] - $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