[-] BO: Fix PHP warning on orderslip generation without ecotax #PSCFV-8743

This commit is contained in:
Rémi Gaillard
2013-05-21 15:25:58 +02:00
parent dc5df43d16
commit 5312290774
+2
View File
@@ -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']);
}