]> git.koha-community.org Git - koha.git/commit
Bug 25683: Patron with no accountlines should have 0 outstanding (not NULL)
authorNick Clemens <nick@bywatersolutions.com>
Tue, 9 Jun 2020 10:52:26 +0000 (10:52 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 14 Aug 2020 21:12:43 +0000 (21:12 +0000)
commit6ae42c8c3c7e402db20f424d16950a6162951ac1
tree29da708061e02923f88700620f6f4514859129aa
parente2dccad66ec1ef21a89a9f0b21499a08b9d6ecc3
Bug 25683: Patron with no accountlines should have 0 outstanding (not NULL)

Test plan:
- Have a patron with nothing in accountlines
- run update_patron_categories to find patrons with fines under $5 (-fu=5)
  - Your patron is not found
  - Give your patron a manual charge of $1
  - rerun the cron, your patron is found
  - pay off your patron's fine, putting their balance at $0
  - rerun the cron, your patron is found

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 09146f4a995d50206c7f1c2d80e797b3cb1175c5)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Koha/Patrons.pm
t/db_dependent/Patrons.t