Bug 18100

Summary: Pay amount, Pay selected and individual pay behaving differently
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: CirculationAssignee: Bugs List <koha-bugs>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: major    
Priority: P5 - low CC: gmcharlt, jonathan.druart, kyle.m.hall
Version: 3.22   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15894
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on:    
Bug Blocks: 21884    

Description Katrin Fischer 2017-02-13 08:18:25 UTC
This has been tested with the latest 3.22.x and still needs to be confirmed in newer versions of Koha!

In the patron account, there are 3 different options for paying a fine. 2 show the payment as positive in green, one as negative in red. To test:

1) Add manual fee of any type
2) Pay using the pay button next to the fine entry (individual)
==> Verify the payment is displayed in red as positive amount
3) Add manual fee of any type
4) Pay using the "Pay selected" button at the bottom
==> Verify the payment is displayed in green as a negative amount
5) Add manual fee of any type
6) Pay using the "Pay amount" button at the bottom
==> Verify the payment is displayed in green as a negative amount

Koha itself seems to deal with it somehow, as the sum at the bottom of the table over all payments and fees is always correct.

But the difference is also visible in accountlines and can create quite a mess for reporting. One way to work around it currently is using ABS() before calculating with the amounts.
Comment 1 Jonathan Druart 2017-02-14 14:26:49 UTC
This will be fixed by but 15894, but will not be backported to 3.22.
Comment 2 Katrin Fischer 2017-02-14 14:59:04 UTC
Thx Jonathan, good to know!
Comment 3 Katrin Fischer 2019-01-11 22:09:20 UTC
It was fixed - tested in 17.11.