Summary: | Tax calculations problem for new orders. | ||
---|---|---|---|
Product: | Koha | Reporter: | Frédérick Capovilla <fcapovilla> |
Component: | Acquisitions | Assignee: | Bugs List <koha-bugs> |
Status: | CLOSED WORKSFORME | QA Contact: | |
Severity: | normal | ||
Priority: | P5 - low | CC: | jonathan.druart, mathsabypro, veron, viktor.sarge |
Version: | 3.6 | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Bug Depends on: | 5335 | ||
Bug Blocks: | |||
Attachments: | A new mobile.css with the positioning top:0px of div#top-bar |
Description
Frédérick Capovilla
2012-02-02 21:12:26 UTC
I do not think that rounding will really help because with double or float you loose precision in an almost arbitrary way. The most solid resolution would be to make use of BigFloat for all currency calculations. http://perldoc.perl.org/Math/BigFloat.html BigFloat is for perl. The problem I'm mentioning is in a tax calculation done in javascript. The rounding solution seems to be acceptable for currency calculations. By rounding, you convert the amount into an int so you don't suffer from the precision loss of floats. Please verify that this issue is not fixed by patch for Bug 5335 before continuing the workflow of this bug. Bug 5335 has already been rebased a lot of time and it is very difficult to do it. Frédérick, could you check if the issue still exists on master please? Created attachment 21128 [details]
A new mobile.css with the positioning top:0px of div#top-bar
If mobile.css is a static file then this one might do the trick for this bug.
Sorry peope - the previous got posted on the wrong bug somehow and I can't find any way to delete my comment and/or attachment from this bug. By the way, the problem described in this bug is still existing! Mathieu I don't reproduce this bug on master. Please reopen it if I am wrong. |