16
How-to questions / Re: Is there any way for tax to be included in product price?
« on: October 12, 2023, 01:57:04 PM »
Hey Nuno,
I made the post here as this is a bit of a different issue - we adjusted the core coding for your site for the Moloni invoicing to work correctly on the product page etc. But thought Devs should be aware of this for all admins using incl tax in the pricing. The have moved the checkout issue to github for a solution and that will be a good thing.
You are still wanting to "back into" a retail price by adjusting the incl tax to be rounded. The issue then becomes how many decimals for the retail price, how to handle the rounding for display on the product page, and how to work with the number of decimals places the Invoicing company (Moloni) uses in their reconstruct of the line items. Moloni uses 6 decimals, and refigures the line items then rounds. You can see how there are several places that are concerned in the decisions.
Cheers all, welcome to the confusion of decimals and rounding
Lee
I made the post here as this is a bit of a different issue - we adjusted the core coding for your site for the Moloni invoicing to work correctly on the product page etc. But thought Devs should be aware of this for all admins using incl tax in the pricing. The have moved the checkout issue to github for a solution and that will be a good thing.
You are still wanting to "back into" a retail price by adjusting the incl tax to be rounded. The issue then becomes how many decimals for the retail price, how to handle the rounding for display on the product page, and how to work with the number of decimals places the Invoicing company (Moloni) uses in their reconstruct of the line items. Moloni uses 6 decimals, and refigures the line items then rounds. You can see how there are several places that are concerned in the decisions.
Cheers all, welcome to the confusion of decimals and rounding
Lee