// Small fix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17199 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -170,15 +170,15 @@ class HTMLTemplateOrderSlipCore extends HTMLTemplateInvoice
|
||||
$tax = new Tax((int)$tax_id);
|
||||
if (!isset($total_tax_amount[$tax->rate]))
|
||||
{
|
||||
$tmp_tax_infos[(string)$tax->rate]['name'] = $tax->name;
|
||||
$tmp_tax_infos[(string)$tax->rate]['total_price_tax_excl'] = $order_slip_details['amount_tax_excl'];
|
||||
$tmp_tax_infos[(string)$tax->rate]['total_amount'] = $amount;
|
||||
$tmp_tax_infos[$tax->rate]['name'] = $tax->name;
|
||||
$tmp_tax_infos[$tax->rate]['total_price_tax_excl'] = $order_slip_details['amount_tax_excl'];
|
||||
$tmp_tax_infos[$tax->rate]['total_amount'] = $amount;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
$tmp_tax_infos[(string)$tax->rate]['total_price_tax_excl'] += $order_slip_details['amount_tax_excl'];
|
||||
$tmp_tax_infos[(string)$tax->rate]['total_amount'] += $amount;
|
||||
$tmp_tax_infos[$tax->rate]['total_price_tax_excl'] += $order_slip_details['amount_tax_excl'];
|
||||
$tmp_tax_infos[$tax->rate]['total_amount'] += $amount;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
@@ -198,7 +198,7 @@ class HTMLTemplateOrderSlipCore extends HTMLTemplateInvoice
|
||||
$infos['total_amount'] += $amount;
|
||||
}
|
||||
|
||||
$tmp_tax_infos[(string)$tax_rate] = $infos;
|
||||
$tmp_tax_infos[(string)number_format($tax_rate, 3)] = $infos;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user