lp978095 auto-canceling lineitems
authorJason Etheridge <jason@EquinoxInitiative.org>
Fri, 2 Feb 2018 16:30:36 +0000 (11:30 -0500)
committerBill Erickson <berickxx@gmail.com>
Fri, 27 Jul 2018 17:08:36 +0000 (13:08 -0400)
commite8a810b6397860ec0bbc72307c7fe7963cd388fc
treecfdf104c763aeb10aab38d62a39fa68fa29048b2
parent58b95737d55970f9b12c3bf805c198f99aeeb3c1
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>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
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]