LP#1440114 Blanket order PO "finalize"
authorBill Erickson <berickxx@gmail.com>
Fri, 10 Apr 2015 16:30:22 +0000 (12:30 -0400)
committerKathy Lussier <klussier@masslnc.org>
Wed, 19 Aug 2015 02:55:16 +0000 (22:55 -0400)
commit0d1e06e184de212c4a1d22fc3aa0476fcfe0e28f
tree3e2f0e1f8f6a17e233ed3fee2aa009a4acb5f1db
parent7faad54cbe5f1bc687ca7c67b03c583329fce905
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>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
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