LP#1178802: force ceiling dates to be end of day user/gmcharlt/lp1178802_munge_ceiling_dates
authorGalen Charlton <gmc@equinoxinitiative.org>
Fri, 15 Sep 2017 18:38:18 +0000 (14:38 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 15 Sep 2017 18:46:40 +0000 (14:46 -0400)
commitd545915c8e94ac560a21872cdd380d42f5691c7d
tree4f92dc6c6dc7e3be30ad7ea2e0341157ffc46415
parent484acd7f2015cddd3d49ade0e61f7571a867d5ff
LP#1178802: force ceiling dates to be end of day

This patch ensures that when a hard due date (or hard due date value)
is created or edited, the ceiling date is set to the end of that day.

This fixes a problem where a ceiling date would not be applied for
loans checked out earlier on the ceiling date itself.

This patch intentionally does not touch existing hard due date
values.  It also does not use the database or middle layer to coerce
the ceiling dates to end of day to leave upon the possiblity that
an Angular version of the hard due date editor will allow operators
to set both date and time. (Note that Dojo does not readily have a
combined date/time picker.)

To test
-------
[1] Apply the patch, then in the hard due date editor, verify that
    when creating a hard due date _value_, the date gets saved as
    ending at 23:59:59 in the local time zone.
[2] Similarly, verify that when editing an existing hard due date value,
    the date gets saved as ending at 23:59:59.
[3] Repeat steps 1 and 2, but this time for hard due dates.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/templates/conify/global/config/hard_due_date.tt2
Open-ILS/src/templates/conify/global/config/hard_due_date_values.tt2