LP 1427392 - Allow deletion of Hard Due Date Values. Also, don't update
authorMichele Morgan <mmorgan@noblenet.org>
Wed, 15 Mar 2017 20:31:06 +0000 (16:31 -0400)
committerMichele Morgan <mmorgan@noblenet.org>
Wed, 15 Mar 2017 20:44:55 +0000 (16:44 -0400)
commit7731e429cc0dfc20f3af9dcce4e25620027d60db
tree911840a16e53afb65dbed8b81432373a8de80afe
parent6cd11aaef347cf34b2c0a904a0a0c4b0c264997d
LP 1427392 - Allow deletion of Hard Due Date Values. Also, don't update
hard due dates to ceiling dates that have passed.

Fixes two related issues with hard due dates.

- Exposes the selector in the Hard Due Date Values interface so past
  entries that are no longer valid can be deleted via the client.
- Prevents the current ceiling date from being updated to a past date
  based on an old hard due date value.

Testing plan:

To reproduce the issue:

- Create a Hard Due Date with a Current Ceiling Date in the future
- Create an associated Hard Due Date Value with an active date earlier
  than the current date and a ceiling date earlier than the current date.
- Run the hard due date updater

Note that:

- The Current Ceiling Date is updated to an earlier date based on
  the Hard Due Date Value entry.
- It is not possible to select and delete the Hard Due Date Value
  entry.

Apply the patch and retest

Note that:

- The Current Ceiling Date has not been updated to the past date.
- Past Hard Due Date Values can be selected and deleted.

Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/xxxx.function.config_update_hard_due_dates_ceiling_date_fix.sql [new file with mode: 0644]
Open-ILS/src/templates/conify/global/config/hard_due_date_values.tt2