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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 6 Aug 2020 09:37:06 +0000 (11:37 +0200)
commit09146f4a995d50206c7f1c2d80e797b3cb1175c5
treeca95abde5f21fd9f9a85eb36d4636dce6ad83b55
parent759e52ac944d25cf019b83a68ea0329842e4d3e2
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>
Koha/Patrons.pm
t/db_dependent/Patrons.t