LP#1333254 Support closing new invoices
authorBill Erickson <berickxx@gmail.com>
Wed, 24 Feb 2016 17:35:53 +0000 (12:35 -0500)
committerKathy Lussier <klussier@masslnc.org>
Fri, 26 Feb 2016 01:21:50 +0000 (20:21 -0500)
Allow invoices to be closed at create time (as originally intended) by
fixing code thinko.

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

index 772b6fa..fa01606 100644 (file)
@@ -56,7 +56,7 @@ sub build_invoice_impl {
     if ($invoice->isnew) {
         $invoice->recv_method('PPR') unless $invoice->recv_method;
         $invoice->recv_date('now') unless $invoice->recv_date;
-        my $inv_closing = $U->is_true($invoice->complete);
+        $inv_closing = $U->is_true($invoice->complete);
         $e->create_acq_invoice($invoice) or return $e->die_event;
     } elsif ($invoice->isdeleted) {
         $e->delete_acq_invoice($invoice) or return $e->die_event;