[Koha-bugs] [Bug 20946] Cannot pay fines for patrons with credits

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sat Jun 16 14:49:57 CEST 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20946

--- Comment #1 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 76116
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=76116&action=edit
Bug 20946: Remove credits from the 'Pay fines' tab in pay.pl

This patch changes the query for outstanding account lines so it doesn't
pick credits, which don't belong to the 'Pay fines' tab, and actually break
form validation for payments.

To test:
- Add a $5 credit to a patron
- Add a $1 fine
- Go to the 'Pay fines' tab
=> FAIL: Credit is displayed
- Try to pay all fines
=> FAIL: You are told to enter a value less than or equal to -4.00
         (Observe you cannot do that)
- Apply this patch
- Reload
=> SUCCESS: Credit is not displayed
=> SUCCESS: You are able to pay all fines
- Sign off :-D

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list