Bug 33245: Introduce patron->is_active
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Thu, 16 Mar 2023 14:34:58 +0000 (14:34 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 4 Oct 2023 15:07:49 +0000 (11:07 -0400)
commitb9f8147cdff878165dd2cb12e7554c123111b223
tree5fa35c21487c5bc471325f008aac3ef189d22597
parentc6283f5d9a0a0710ebf3e6a95f939f1e4f760ac1
Bug 33245: Introduce patron->is_active

Does only add the new patron method.

NOTE: We may define additional criteria at some point, but I think
that this is a good starting point.

Test plan:
Run perl -MKoha::Patron -e'print Koha::Patrons->find(X)->is_active(Y);'
Note: replace X by a valid borrowernumber and Y by date criterium.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Patron.pm