Bug 14395: Code changes
authorHolger Meißner <h.meissner.82@web.de>
Thu, 16 Jul 2015 13:22:55 +0000 (15:22 +0200)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 26 Feb 2016 14:28:41 +0000 (14:28 +0000)
commitb52e8792093b8e26cf473437694458a52f251c3b
treec401220174e8b921abffa046b757de882c4b0ea5
parent77abb023cb396d96f5362df46a633ed0d5d1a386
Bug 14395: Code changes

This patch updates the calculation of 'No renewal before' to include the
new syspref NoRenewalBeforePrecision.

To test:

1) Check out an hour-based loan with 'No renewal before' set to 1.
   Switch syspref NoRenewalBeforePrecision between 'date' and 'exact
   time'. Confirm that with both settings the item cannot be renewed
   until exactly one hour before due.

2) Check out a day-based loan with 'No renewal before' set to 1 day.
   Confirm that:
   * with NoRenewalBeforePrecision set to 'date', renewal is possible
     at 12:00 AM on the day before due.
   * with NoRenewalBeforePrecision set to 'exact time', renewal is
     possible at 11:59 PM on the day before due.

Sponsored-by: Hochschule für Gesundheit (hsg), Germany
Signed-off-by: Jesse Weaver <jweaver@bywatersolutions.com>
C4/Circulation.pm