// fix upgrade_order_canada bug (report from 1.4 fix)

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13427 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mMarinetti
2012-02-17 12:58:52 +00:00
parent c9bcaec32b
commit 74920d9a78
@@ -75,7 +75,8 @@ function update_order_canada()
if (!array_key_exists($product['tax_name'], $amount))
$amount[$product['tax_name']] = array('amount' => 0, 'rate' => $product['tax_rate']);
if ($tax_calculation_method == PS_TAX_EXC)
// PS_TAX_EXC = 1, PS_TAX_INC = 0
if ($tax_calculation_method == 1)
{
$total_product = $product['product_price'] * $product['product_quantity'];
$amount_tmp = update_order_canada_ps_round($total_product * ($product['tax_rate'] / 100), 2);