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

--- Comment #2 from Tomás Cohen Arazi <[email protected]> ---
Created attachment 82940
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=82940&action=edit
Bug 21969: Fix Koha::Account->outstanding_* matching the opposite on
pathological cases

This patch makes outstanding_* methods be safe regarding pathological
account lines that get converted into another type because of the value
of amountoutstanding

To test:
- Run:
  $ kshell
 k$ prove t/db_dependent/Koha/Account.t
=> FAIL: Tests fail because pathological account lines are wrongly
picked.
- Apply this patch
- Run:
 k$ prove t/db_dependent/Koha/Account.t
=>SUCCESS: All green!

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to