]> 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:24:09 +0000 (10:24 -0400)
commit17dc274ceb06747f018476a8b00681f630faa802
treed37da804bb8b31c12365bd28c871c733dd4e092e
parent0104ba716052bb8e84e98899afad2c0c8c7979f6
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