Use xact_start for due date calc instead of now collab/dyrcona/lp1222240-due-date-from-xact_start
authorThomas Berezansky <tsbere@mvlc.org>
Mon, 9 Sep 2013 19:49:47 +0000 (15:49 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Thu, 26 Sep 2013 19:11:43 +0000 (15:11 -0400)
commitcee2d3a4979e7df2c6c2f3bdd8712bd49bbd5b08
tree832ca5cd06d457b5d1aae3265988326156ba515b
parente5eccfe2e032c3d1e5fe4c17833a5993ee3b8bf3
Use xact_start for due date calc instead of now

If you don't supply a due date when creating a circulation with the
open-ils.circ.checkout family of calls, the due date is currently
calculated from now().  This code modification changes that so that
if a checkout_date is supplied that is used to calculate the due date
instead of now().

This enables some interesting uses of the open-ils.circ module for
batch circulation in the cases of offline use from a spreadsheet and
not the offline client or in the case of migrating circulations from
another ILS into Evergreen.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm