LP#1440114 Blanket order PO "finalize"
authorBill Erickson <berickxx@gmail.com>
Fri, 10 Apr 2015 16:30:22 +0000 (12:30 -0400)
committerBill Erickson <berickxx@gmail.com>
Tue, 18 Aug 2015 14:09:06 +0000 (10:09 -0400)
commit732fcc90b62e8481273629303ed3ce12392c6c41
treedaa67224ecb02e46f299ada376f4542489b39b36
parentfc2b4c6cddfcc89ade8341bdcf947f0a0ca1c122
LP#1440114 Blanket order PO "finalize"

When invoicing a PO that has at least one blanket charge, a new option is
present which allows staff to indicate that an invoice is the final invoice
for the PO.  Finalizing a PO results in the following:

1. Encumbrances for all blanket charges on the PO are dropped to $0.
   This is done by setting the amount paid in the original fund_debit
   (linked the blanket po_item) to $0.

2. If no pending lineitems exist on the PO, the PO is marked as received.
   If there are pending lineitems, the state is left untouched.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Invoice.pm
Open-ILS/src/templates/acq/invoice/view.tt2
Open-ILS/web/css/skin/default/acq.css
Open-ILS/web/js/dojo/openils/acq/nls/acq.js
Open-ILS/web/js/ui/default/acq/invoice/view.js