L3Y Posted August 3, 2015 Report Posted August 3, 2015 Hi, Seems like sometimes, 1+1=4 for Blesta Here is what i got on an automated invoice : Sub Total: $39.00CAD CAD TPS (5.0000%) $1.95CAD CAD TVQ (9.9700%) $3.89CAD CAD Total : $45.00CAD CAD (please see attachment to confirm via a screenshot). Why does Blesta think 39$+ 1.95$ + 3.89$ = 45$?? **Past invoices, before the version 3.5.1 (i.e. 3.5.0 and below) were fine. The total was $44.84CAD (Please note if Canadian taxes were cascading before (tvq was level 2), this is no longer a requirement) Thank you for any help on this Carl
Stacktron Posted August 3, 2015 Report Posted August 3, 2015 Have you enabled something that automatically rounds prices? The price subtotals 44.84, so that could possibly be the problem. However, you could've also added promo codes or taxes to it that would cause it. I'm not 100%, you should wait for one of the staff or Licensecart to double check ;-)
L3Y Posted August 3, 2015 Author Report Posted August 3, 2015 Hi, I remember i saw an option somewhere to round up pricing. However, i no longer remember where it was, and i do not think i changed this, cause it's not on my changelog. Possible for you to tell me where it is, so i can check? Thank you, Carl
Tyson Posted August 3, 2015 Report Posted August 3, 2015 Did you recently upgrade Blesta to v3.5.1 and forget to run the upgrade at /admin/upgrade/? Currency precision was added in v3.5.1, and your issue sounds like the amount precision is evaluating to zero decimal places because you have not run the upgrade script. Make sure you've run the upgrade and then head over to [settings] -> [Currencies] -> [Active Currencies] to set the currency precision. CAD is not included in Blesta, so it would default to 4. Michael, Paul and PauloV 3
Tyson Posted September 25, 2015 Report Posted September 25, 2015 Going to close this thread as not a bug per my above post. Create another thread if you feel there is indeed a separate bug with this calculation.
Recommended Posts