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:21:13 +0000 (10:21 -0400)
commit949a9af6d022959f2d394cb927269b3ef74b6df7
tree09311097958e6fe49501aa8e595e5e2d417b7507
parentdae9d1b0dc84d5079ac4afb5543f3bca2a442997
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