From: Janusz Dobrowolski Date: Sun, 10 Jan 2010 16:21:25 +0000 (+0000) Subject: Increased number of decimals for tax calculations. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=78e41f5f23c777113433e707f710da86cebe500a;p=textcart.git Increased number of decimals for tax calculations. --- diff --git a/taxes/tax_calc.inc b/taxes/tax_calc.inc index 7107cdc..db98540 100644 --- a/taxes/tax_calc.inc +++ b/taxes/tax_calc.inc @@ -50,7 +50,7 @@ function get_tax_free_price_for_item($stock_id, $price, $tax_group, $tax_include $tax_multiplier += $taxitem["rate"]; } - return round($price / (1 + ($tax_multiplier / 100)), user_price_dec()); + return round($price / (1 + ($tax_multiplier / 100)), 2*user_price_dec()); } // // Full price (incl. VAT) for item $stock_id with line price $price, @@ -86,7 +86,7 @@ function get_full_price_for_item($stock_id, $price, $tax_group, $tax_included, $ $tax_multiplier += $taxitem["rate"]; } - return round($price * (1 + ($tax_multiplier / 100)), user_price_dec()); + return round($price * (1 + ($tax_multiplier / 100)), 2*user_price_dec()); } //---------------------------------------------------------------------------------