Bug 10253

Summary: tax rate only takes 1 decimal point
Product: Koha Reporter: Nicole C. Engard <nengard>
Component: AcquisitionsAssignee: Bugs List <koha-bugs>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P5 - low CC: cunha, jonathan.druart, katrin.fischer, kyle, veron
Version: Main   
Hardware: All   
OS: All   
See Also: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12825
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14541
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 12825, 13323    
Bug Blocks:    
Attachments: tax rate preference
tax rate pull down

Description Nicole C. Engard 2013-05-16 03:46:50 UTC
Created attachment 18163 [details]
tax rate preference

See attached.  The tax rate where I am is 6.85, but I can't get that to show in the tax pull down. It turns it in to 6.8
Comment 1 Nicole C. Engard 2013-05-16 03:47:06 UTC
Created attachment 18164 [details]
tax rate pull down
Comment 2 Katrin Fischer 2015-01-06 20:26:18 UTC
Still valid, adding Jonathan as the 'tax expert'.
Comment 3 Jonathan Druart 2015-01-07 07:48:48 UTC
This is not fixed by the tax rewrite work (bug 12825).
But it will be very easy to do when all patches will be pushed.
Comment 4 Kyle M Hall 2016-10-20 14:36:17 UTC
As discussed on bug 14541, we shouldn't force the tax rate to *any* arbitrary precision. I just came across a library with a tax right of something like 4.3655 percent!
Comment 5 Jonathan Druart 2016-11-09 09:06:20 UTC
(In reply to Kyle M Hall from comment #4)
> As discussed on bug 14541, we shouldn't force the tax rate to *any*
> arbitrary precision. I just came across a library with a tax right of
> something like 4.3655 percent!

With 4.3655, it would be 0.043655 in DB, but as we store only 4 decimal it will be truncated to 0.0436
We would need to update the DB structure to support such precision.
Comment 6 Jonathan Druart 2016-11-09 09:18:28 UTC

*** This bug has been marked as a duplicate of bug 14541 ***