LP#1270289 Support canceling already-canceled lineitems
authorBill Erickson <berick@esilibrary.com>
Tue, 3 Jun 2014 14:18:43 +0000 (10:18 -0400)
committerKathy Lussier <klussier@masslnc.org>
Fri, 1 Aug 2014 19:42:40 +0000 (15:42 -0400)
commit19951375047ecff6368c90393c7ae8f73c634c9e
tree46d2220232d429bc06f5cd83c0542be102a91405
parent12a447795b6cfe6a3091939e26d7ee07a68cf255
LP#1270289 Support canceling already-canceled lineitems

If a lineitem is canceled and the cancel_reason has keep_debits == true
(i.e. the lineitem is "delayed"), allow the lineitem to be canceled
again, up until the point the lineitem cancel_reason has keep_debits ==
false, at which point, no more cancelations are allowed.

Similarly, when a copy is canceled with a keep_debits==true reason,
allow the copy to be canceled when its parent lineitem is canceled,
following the rules above.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Order.pm
Open-ILS/web/js/ui/default/acq/common/li_table.js