]> git.evergreen-ils.org Git - Evergreen.git/commit
lp1034058 Disable Renewal Due Dates in the Past
authorKyle Huckins <khuckins@catalyte.io>
Thu, 23 May 2019 20:53:11 +0000 (20:53 +0000)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 5 Aug 2019 14:49:49 +0000 (10:49 -0400)
commit0c1b298f69e8bf056d81ca3a380420a0668db25a
tree3adc888e7e118b9b27774be8a83812d577d7e7ba
parenta988dc85ba58198b56c129f54a5523153e0b3ab9
lp1034058 Disable Renewal Due Dates in the Past

Apply minimum date and an out of range flag to prevent
selecting or inputting a past date when renewing items from
Circulation->Renew Items or Patron->Items Out->Actions->
Renew With Specific Due Date.

To test
-------
[1] Create a loan.
[2] From the patron's Item Out page, use the Renew With
    Specific Due Date action. Note that the date widget
    will allow you to specify a due date in the past.
[3] From the Circulation -> Renew interface, note that
    the date widget will also let you specify a due
    date in the past.
[4] Apply the patch and repeat steps #2 and #3. This time,
    a due date in the past cannot be entered, both via
    the calendar button and by direct entry in the text
    box.

Signed-off-by: Kyle Huckins <khuckins@catalyte.io>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/src/templates/staff/circ/patron/t_renew_with_date_dialog.tt2
Open-ILS/src/templates/staff/circ/renew/t_renew.tt2
Open-ILS/web/js/ui/default/staff/circ/patron/items_out.js
Open-ILS/web/js/ui/default/staff/circ/renew/app.js