LP#1880028 Backdate Checkins Until Logout Option user/dbriem/lp1880028_backdate_checkins_sticky_option
authorDan Briem <dbriem@wlsmail.org>
Sat, 30 May 2020 23:27:39 +0000 (19:27 -0400)
committerDan Briem <dbriem@wlsmail.org>
Sat, 30 May 2020 23:27:39 +0000 (19:27 -0400)
commitabaa81319745b7406a667ec51a2676bce612a871
tree908608b312f6943160b7c6712682a08a3c45d971
parent07971c7e01ba6911a64955272592798f7ad24f69
LP#1880028 Backdate Checkins Until Logout Option

- Adds a checkbox option to store the backdate as a
  session item and only loads the backdate on the checkin
  screen (backdate ignored on the hold capture screen)
- Adjusts existing $watch to enable/disable the checkbox
  and store/remove session backdate when appropriate
- Adjusts is_backdate() to not consider null or undefined
  dates as backdates so the visible alert is accurate
- Adjusts "today" comparison to use a time of 00:00:00 so
  that when the Clear button is used and clears the time
  the Today button won't cause a backdate just because it's
  an earlier time on the same date

Signed-off-by: Dan Briem <dbriem@wlsmail.org>
Open-ILS/src/templates/staff/circ/checkin/t_checkin.tt2
Open-ILS/web/js/ui/default/staff/circ/checkin/app.js