lp978095 auto-canceling lineitems collab/phasefx/lp978095-autocanceling-lineitems
authorJason Etheridge <jason@EquinoxInitiative.org>
Fri, 2 Feb 2018 16:30:36 +0000 (11:30 -0500)
committerJason Etheridge <jason@EquinoxInitiative.org>
Wed, 18 Jul 2018 13:19:53 +0000 (09:19 -0400)
commit83069b5f12b4805e4baae5a212f61fcbb57253a2
treeabb64fca2c41bcdd51fe9d67679d0bbd8d39b7b7
parent000623bb63fbec902f3863f3233a33aad0f24474
lp978095 auto-canceling lineitems

"Acq: lineitems display as "on order" even after all copies have been cancelled"

When a copy (lineitem detail) on a lineitem is canceled through the UI, all of
the sibling copies are examined, and if they also happen to be canceled, then a
cancel attempt is made on the parent lineitem.

The cancel reason fed to the lineitem cancelation attempt will be the last
cancel reason on an examined sibling lineitem where Keep Debits is True, or
failing that, the cancel reason used wih the copy just canceled.

The UI will refresh to the lineitem view when such an auto-cancelation happens.

Signed-off-by: Jason Etheridge <jason@EquinoxInitiative.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Order.pm
Open-ILS/web/js/ui/default/acq/common/li_table.js
docs/RELEASE_NOTES_NEXT/Acquisitions/autocancel_lineitems_when_all_copies_are_canceled.adoc [new file with mode: 0644]