]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1436906 clean up PO direct charges on delete/cancel
authorBill Erickson <berickxx@gmail.com>
Mon, 6 Apr 2015 15:24:33 +0000 (11:24 -0400)
committerBen Shum <bshum@biblio.org>
Fri, 10 Apr 2015 02:05:14 +0000 (22:05 -0400)
commit8f792a37bd1249ab99341f82e9fec7691e435019
treedf373cd781984ac82d9123a62c5ad1c6aa95dd6a
parent674e7b2fcbefa739c2c2f8c8c40c43535444b4f0
LP#1436906 clean up PO direct charges on delete/cancel

1. Deleting a "direct charge" from a PO removes the linked fund_debit if
the fund_debit has not been paid (i.e. it's still encumbered).

If the debit has been paid, the charge cannot be removed, unless/until
the debit is re-encumbered by un-invoicing the charge.

2. When a PO is canceled, fund_debits linked to PO items are removed.
As above, if the debit has been paid (invoiced), the PO cannot be
canceled, unless/until direct charge debits are un-invoiced.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Order.pm
Open-ILS/web/js/ui/default/acq/po/item_table.js