LP#1178802: force ceiling dates to be end of day user/mmorgan/lp1178802-signoff
authorGalen Charlton <gmc@equinoxinitiative.org>
Fri, 15 Sep 2017 18:38:18 +0000 (14:38 -0400)
committerMichele Morgan <mmorgan@noblenet.org>
Wed, 29 Nov 2017 20:26:12 +0000 (15:26 -0500)
commitfe2380e876f4db62e774b95809f77d3e8048e222
treefc81dfc7d827a470d45c321f905a59259859aa47
parent410dce96c6b2ae891386e7da4f0d40f78f2d9d63
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>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Open-ILS/src/templates/conify/global/config/hard_due_date.tt2
Open-ILS/src/templates/conify/global/config/hard_due_date_values.tt2