Bug 18487

Summary: GetMemberAccountRecords returning imprecise amount - causing pay issue
Product: Koha Reporter: Nick Clemens (kidclamp) <nick>
Component: PatronsAssignee: Nick Clemens (kidclamp) <nick>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: barton, gmcharlt, jonathan.druart, kyle.m.hall, michael
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 3379    
Bug Blocks:    
Attachments: Bug 18487 - GetMemberAccountRecords returning imprecise amount - causing pay issue

Description Nick Clemens (kidclamp) 2017-04-24 13:16:53 UTC
To recreate:
Create a manual invoice for 7.56
Pay fines, 'pay amount'
Attempt to pay 7.56
You get an error "amount paid must be less than or equal to 7.56"
Verify you can pay 7.55 - or 7.57 if you owe 7.57, but not 7.56 if you owe 7.56

Turns out $total_due is being fetched as '7.5599'
Comment 1 Nick Clemens (kidclamp) 2017-04-24 13:32:35 UTC
Created attachment 62600 [details] [review]
Bug 18487 - GetMemberAccountRecords returning imprecise amount - causing pay issue

To test:
1 - Create a manual fine of 7.56
2 - Attempt to 'pay amount' 7.56
3 - Error
4 - Apply patch
5 - payment should succeed
6 - prove t/db_dependent/Members.t
Comment 2 Nick Clemens (kidclamp) 2017-04-24 13:38:31 UTC

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