Tweak ceilingDueDate and CalcDateDue
authorMichael Hafen <mdhafen@tech.washk12.org>
Wed, 29 Apr 2009 22:02:11 +0000 (16:02 -0600)
committerGalen Charlton <galen.charlton@liblime.com>
Mon, 11 May 2009 14:03:21 +0000 (09:03 -0500)
commit0b50aecaf7c9a68c6d77c56c8344ee56f3291a3a
treec5e649e20022612296ad2111e5cefe3601b4a3ed
parentb1180360a84ce9caa77a47c8aa09bd0659787d1e
Tweak ceilingDueDate and CalcDateDue

This patch moves ceilingDueDate and ReturnBeforeExpiry checking into
CalcDateDue(), so the renewal due date is also calculated with those.

Also restores a check in CanBookBeIssued.  If the due date isn't given
call CalcDateDue and make sure it's not in the past.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
C4/Circulation.pm