From 82f44d12d62692e24b3405f039865924fb2f0ecd Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Mon, 11 Apr 2011 13:34:00 +0200 Subject: [PATCH] Fixed shipment tax calculation regresion. --- taxes/tax_calc.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taxes/tax_calc.inc b/taxes/tax_calc.inc index 08efec4..22fc35f 100644 --- a/taxes/tax_calc.inc +++ b/taxes/tax_calc.inc @@ -196,7 +196,7 @@ function get_tax_for_items($items, $prices, $shipping_cost, $tax_group, $tax_inc { if ($item_tax['rate'] != null) { $index = $item_tax['tax_type_id']; - if(isset($ret_tax_array[$index])) { + if (isset($item_tax[$index]['rate'])) { // use customer tax group on shipment if($tax_included==1) {// 2008-11-26 Joe Hunt Taxes are stored without roundings $ret_tax_array[$index]['Value'] += ($shipping_net * $item_tax['rate'] / 100); $ret_tax_array[$index]['Net'] += $shipping_net; -- 2.30.2