lachaca Posted June 8, 2009 Share Posted June 8, 2009 Amount rounded to 1 decimal place. Has anyone any idea where I can adjust this problem. At the moment the swiss francs are rounded like this exampleFr. 38.67 -> but musst be Fr. 37.70 or Fr. 63.72 musst be Fr. 63.70who can help me?sorry for my english ;-)) but in the german forum, nobody can't/wan't help me Link to comment Share on other sites More sharing options...
beebee1987 Posted March 30, 2015 Share Posted March 30, 2015 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! Link to comment Share on other sites More sharing options...
tuk66 Posted March 30, 2015 Share Posted March 30, 2015 Amount rounded to 1 decimal place. Has anyone any idea where I can adjust this problem. At the moment the swiss francs are rounded like this example Fr. 38.67 -> but musst be Fr. 37.70 or Fr. 63.72 musst be Fr. 63.70 who can help me? sorry for my english ;-)) but in the german forum, nobody can't/wan't help me Are you using v1.6.0.14? Look at Preferences > General > Number of decimals. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now