]> 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)
committerAleisha Amohia <aleishaamohia@hotmail.com>
Sun, 16 Aug 2020 22:36:25 +0000 (10:36 +1200)
commitf02072241f22c3f2a134719c8ac5989fd0e47d04
treead75a77c990dd8f954baaf31ebf01f4940792f31
parentb24d51eccdb553076c2216d35d873f93ba38f28e
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>
(cherry picked from commit 6ae42c8c3c7e402db20f424d16950a6162951ac1)

Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
Koha/Patrons.pm
t/db_dependent/Patrons.t