]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1414197 Serial Item Delete Improvements
authorDan Wells <dbw2@calvin.edu>
Fri, 6 Jul 2018 15:47:42 +0000 (11:47 -0400)
committerKathy Lussier <klussier@masslnc.org>
Wed, 25 Jul 2018 14:23:24 +0000 (10:23 -0400)
commit43770422fa0acd5895a248f80ad53116cdb4d12a
tree61a7931f7f8023f901b58eca35d57f2cec757cbc
parent7623db0636d014f4fd8e1f470aaf6c9e29bc3ee8
LP#1414197 Serial Item Delete Improvements

If a serial item is received, then deleted without any further status,
it can leave the system in an inconsistent state:

1) If from a multi-item unit, the unit contents are not updated.
2) If from a single-item unit, the unit is not deleted.
3) If the last holding of its kind, holdings summaries are not updated.

Since 'resetting' items has all the necessary logic to handle the above
needs, this commit runs each deleted item through the reset code before
doing the actual delete.  This also gives the benefit of keeping the
logic centralized for future fixes/enhancements.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Serial.pm
Open-ILS/web/js/ui/default/staff/serials/directives/view-items-grid.js