]> git.evergreen-ils.org Git - 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)
committerKathy Lussier <klussier@masslnc.org>
Fri, 26 Feb 2016 01:21:50 +0000 (20:21 -0500)
commitf4ac2ee44d8a3886c874b7426690166d19229204
tree7d0d3f370fc1328b074c8d866427c079903dcc0c
parent431d6372122256e1f7b8f7e893f32c6b64a42181
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>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Invoice.pm