- $nprice = get_tax_free_price_for_item($items[$i], $prices[$i], $tax_group, $tax_included, null, $item_tax['tax_type_id']);
- //$ret_tax_array[$index]['Value'] += round2($prices[$i] - $nprice, $dec);
- $ret_tax_array[$index]['Value'] += round2($nprice*$item_tax['rate']/100, $dec);
- $ret_tax_array[$index]['Net'] += $nprice;
+ $ret_tax_array[$index]['Value'] += round2($prices[$i]*$item_tax['rate']/(100+$tax_multiplier), $dec);
+ $ret_tax_array[$index]['Net'] += round2($prices[$i]*100/(100+$tax_multiplier), $dec);