]> 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:48 +0000 (10:36 -0400)
commitf8783e3b2acaa377158deae9fa1becae06da0e8e
treef4e6151563a0d0fdecc5ab29d6959b0c77f9bb68
parent9144b69c03cb0175bae9de13caeb05fb87da7e5a
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]