]> git.evergreen-ils.org Git - Evergreen.git/commit
lp978095 auto-canceling lineitems
authorJason Etheridge <jason@EquinoxInitiative.org>
Fri, 2 Feb 2018 16:30:36 +0000 (11:30 -0500)
committerMike Rylander <mrylander@gmail.com>
Wed, 29 Aug 2018 14:36:25 +0000 (10:36 -0400)
commit95a75e5bd18e2ebd61de8069bda6739899e02698
tree76d76c9ad25c95770cb1ef51d905735b4cd1a7f4
parent206ae778b88d211908a355c5af42a13f9bf1b15b
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>
Signed-off-by: Mike Rylander <mrylander@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]