Hi,
Is there any on 1 decimal place solution?
For my case is Malaysia has just want to launch GST then I have to add every product with 6% GST Tax.
So in order summary will (Example) :
RM 2.56 (product A include 6%)
+ RM 5.62 (product B include 6%)
--------------- RM 8.18 (Subtotal)
+ RM 3.96 (Delivery include Tax)
-----------------
RM 12.15 (*I want Total Figure Round up or round down in Final Total*, so in this case final amount is RM 12.20, if 12.14 in final amount , so final amount will rounded to 12.10)
I currently has changed the code in Cart.php. I changed function getOrderTotal with
return Tools::ps_round((float)$order_total, 1);
But this solution not so perfect because the displayed price is:
RM 2.56 (product A include 6%)
+ RM 5.62 (product B include 6%)
--------------- RM 8.18 (Subtotal has first round up already, which is RM 8.20)
+ RM 3.96 (Delivery include Tax)
-----------------
RM 12.15 (Final amount here second rounded, which is use RM 8.20 + RM 3.96 = RM 12.16 <-- this is not accurate in Malaysia. ) I want here only first 1 decimal round up here. which is RM 12.20 in final
----------------
Hope could get advice on this case. Thanks!