Bug 17569: Koha::Patrons - Move GetUpcomingMembershipExpires to search_upcoming_membe...
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 7 Nov 2016 14:38:17 +0000 (14:38 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 30 Dec 2016 11:55:13 +0000 (11:55 +0000)
commit4f48dcc9f86e5fc3edbb4c22b7cc2ad2a87e1f04
tree04e5fe2f9b864aa39686e870dcceb671d6460a1f
parentc1e62ceaf7f6344460417a452bc5a013a41b1da9
Bug 17569: Koha::Patrons - Move GetUpcomingMembershipExpires to search_upcoming_membership_expires

This patchset moves the C4::Members::GetUpcomingMembershipExpires
subroutine code to the Koha::Patrons->search_upcoming_membership_expires
method.
This subroutine was used from only 1 place, so it's an easier to move.

Test plan:
Use the membership_expiry.pl cronjob script using the different
options.
The behavior should be the same as prior to this patch.

  prove t/db_dependent/Koha/Patrons.t
should return green

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha/Patrons.pm
misc/cronjobs/membership_expiry.pl