]> git.koha-community.org Git - koha.git/commit
Bug 15156: Add filter_by_amount_owed that's chainable
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 2 Jul 2021 08:07:13 +0000 (09:07 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 14 Dec 2021 08:22:17 +0000 (22:22 -1000)
commitb96f8b3e973b18121e57d4cabcebd3315ba18dd1
treefe6fe6de7c66231b22c943853e0d7dbe8918f322
parent5795f8f5cb9fe1f25b99fe05529ba41364bb0daa
Bug 15156: Add filter_by_amount_owed that's chainable

This patch acts as an alternative here. We pull out the code from bug
11983 and extend it to support filtering of debts by branchcode and
debit_type.

The advantage of this approach is that we can add the filter into the
middle of a search chain to filter down an pre-existing search.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Emmi Takkinen <emmi.takkinen@koha-suomi.fi>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/Patrons.pm
t/db_dependent/Koha/Patrons.t