[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
Mon Jun 25 20:32:53 CEST 2018


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

--- Comment #7 from Josef Moravec <josef.moravec at gmail.com> ---
Created attachment 76395
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=76395&action=edit
Bug 20946: Use K::Account->outstanding_debits in pay.pl and paycollect.pl

This patch changes the how account lines are fetched (using
Koha::Account->outstanding_debits) so credits are not picked.

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

Signed-off-by: Josef Moravec <josef.moravec at gmail.com>

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


More information about the Koha-bugs mailing list