]> git.evergreen-ils.org Git - working/Evergreen.git/commit
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>
Mon, 4 Jan 2016 20:51:46 +0000 (15:51 -0500)
commit0b45fc06b015ed4e9eb466ea1102ba000721ab3f
tree7506aba97a673447e57f36be3792811c6607b992
parent9d6ddbee8d54e4b3751d4cf02a0273d598ddc1be
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