Forums / Bug Reports / Round Error in Sales Tax

Round Error in Sales Tax

Views: 755

Results 1 to 1 of 1
4 Jan 2011, 2:36 PM
#1
james_leckenby avatar

james_leckenby

New Zenner

Join Date:
Jan 2011
Posts:
1
Plugin Contributions:
0

Round Error in Sales Tax

RE: http://www.zen-cart.com/forum/showthread.php?t=125360&page=2

After fixing the pricing on the frontend in 1.3.7, the storeadmin was still incorrect. To fix, go to line 1484 of 'storeadmin->includes->functions->general.php', and change lines 1488 - 1492 to:

if (DISPLAY_PRICE_WITH_TAX_ADMIN == 'true') {
      return $price + zen_calculate_tax($price, $tax);
    } else {
      return $price;
    }

then go to line 1499 to:

return $price * $tax / 100;