LP#1270289 Support canceling already-canceled lineitems
authorBill Erickson <berick@esilibrary.com>
Tue, 3 Jun 2014 14:18:43 +0000 (10:18 -0400)
committerBill Erickson <berick@esilibrary.com>
Tue, 3 Jun 2014 15:08:46 +0000 (11:08 -0400)
commit0fc44951e7a145c20e3312a101b57b6b575238f5
treec95317fd392de3392890775ba238d9819b4726c5
parent7ef7754d8498f7d6623c7797d210639b3006798f
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>
Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Order.pm
Open-ILS/web/js/ui/default/acq/common/li_table.js