]> git.koha-community.org Git - koha.git/commit
Bug 16911: Koha::Patrons - Move ExtendMemberSubscriptionTo to ->extend_subscription
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 11 Jul 2016 22:28:19 +0000 (23:28 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 9 Sep 2016 09:45:32 +0000 (09:45 +0000)
commite4e90ea0dae0b93978cf450d48a26f9da0be7587
treeb16b3a24f73f470847c2c75b8f4f72067cc6519d
parent076ef1e22e1156fe582eb30ae981c5b98a8ec00d
Bug 16911: Koha::Patrons - Move ExtendMemberSubscriptionTo to ->extend_subscription

This patch moves the code from C4::Members::ExtendMemberSubscriptionTo
to Koha::Patron->extend_subscription.

The expected behavior is:
When a new patron is created, the enrolment period defined for the
patron category is used unless an enrolment period date is defined. In
that case, this date is used.
When an account is renewed, the pref BorrowerRenewalPeriodBase is used to
determine if the subscription is renewed from today or from the day when his/her
account has expired.

Test plan:
Confirm that the behavior is correct before this patch and that it's
still the same after this patchset applied.

Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
C4/Members.pm
Koha/Patron.pm
members/setstatus.pl