Home - Waterfall Grid T-Grid Console Builders Recent Builds Buildslaves Changesources - JSON API - About

Change #5526

Category None
Changed by Dan Wells <dbw2ohnoyoudont@calvin.edu>
Changed at Wed 25 Jul 2018 10:21:13
Repository git://git.evergreen-ils.org/Evergreen.git
Project Evergreen
Branch master
Revision 949a9af6d022959f2d394cb927269b3ef74b6df7

Comments

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>

Changed files