• Resolved psodfj

    (@psodfj)


    We put in our prices with 20% VAT included (“Yes, I will enter prices inclusive of tax”). WooCommerce then prices a product at 75.39.

    Woo calculates that the pre-tax amout is 62.83 and the tax is 12.56. This, of course, is incorrect. The correct values are:
    Items Subtotal: 62.8250
    TAX: 12.5650
    Order Total: 75.3900

    The latter is how it looks once I choose the “Number of decimals” to be 4. However, this is not practical for consumers, so I would like Woo to internally calculate these values upto 4 or more digits but to round them on the front-end for consumers.

    The function wc_get_rounding_precision() reports 8, so I am not sure why this is happening and how to correctly set things up. This is very important because at the end of the month the total pre-tax amount is incorrect due to the rounding and this leads to some pennies differences between the tax report and the actual sales.

    Any ideas? Many thanks

    • This topic was modified 1 year, 11 months ago by psodfj.
    • This topic was modified 1 year, 11 months ago by psodfj.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problems with rounding before tax’ is closed to new replies.