Developer forum

Forum » Ecommerce - Standard features » Vat calculation

Vat calculation

Duncan Janssen
Reply
Dear all,
We have an issue regarding the VAT calculation.
From the frontend, the total price is calculated without any rounding. But when we change the orderstate and try to save the order from the backend, we get the notification: “Edited orders total price must not be higher than original total price. Original price was:'9215.36'. New price is: '€ 9.216,00'”.
We found out that it calculates the price in the frond-end as (1.19*1.21) * 6400 = 9215.36 and in the backend (1.19*1.21) =  1.4399 Rounded 1.44 * 6400 = 9.216,00.
Can someone explain why there is a difference in calculating the total price in the frontend and in the backend? And if there is a solution to fix this?
We are currently using Dynamicweb version 9.20.2

Replies

 
Andrejs Zavorotnijs
Reply

Hello Duncan

 

Didi you tried use Settings > Ecommerce > Advanced configuration > Prices

 
Duncan Janssen
Reply
Hi Andrejs,
We did try to use these rounding rules, as well as all the other different rounding rules. But unfortunately, with no luck.
We have ended with the solution to use the Rounding as  follows (see screenshot) and added this to the currency. Then we have hidden the 4 decimals to 2 in the front-end. This resulted in the front-end and back-end calculating the prices using 4 decimals without rounding them up.

 

You must be logged in to post in the forum