X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=taxes%2Ftax_calc.inc;fp=taxes%2Ftax_calc.inc;h=db98540842b321e134efa61fca56db60725c3a7c;hb=bb654ba3c585a18ef8da2aa02b77e42fa40fac17;hp=7107cdca7a75c8f6732e533231faeda6c84cc92e;hpb=a11ed22a51541fdee03783e779e8e6e9b7e290b1;p=fa-stable.git diff --git a/taxes/tax_calc.inc b/taxes/tax_calc.inc index 7107cdca..db985408 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()); } //---------------------------------------------------------------------------------