LP#1333254 Disencumber on invoice close
authorBill Erickson <berickxx@gmail.com>
Thu, 31 Dec 2015 22:35:34 +0000 (17:35 -0500)
committerBill Erickson <berickxx@gmail.com>
Thu, 18 Feb 2016 16:59:55 +0000 (11:59 -0500)
commit796ce66c32d6234683401d03aef6ad7c43be5c96
tree53c8053127799cf31deb7cdbe0d6cc798c8937ad
parent5c3d3e36c186e94367b5659755043e7c67d22099
LP#1333254 Disencumber on invoice close

Set encumbrance=false on invoiced fund debits when the invoice is closed
(complete=true) instead of when the invoice is created.

To test:

1. Activate a purchase order.
2. Create an invoice for the PO.
3. Confirm PO shows same amount encumbered as befor invoicing and $0
   paid.
4. Close the invoice.
5. Confirm amount encumbered on the PO is reduced by the amount invoiced
   and the amount paid on the PO is increased by the amount invoiced.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Invoice.pm