From cf3ae6d8c01f1006dfffce25420e0ef931ccaf07 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 24 Feb 2016 12:35:53 -0500 Subject: [PATCH] LP#1333254 Support closing new invoices Allow invoices to be closed at create time (as originally intended) by fixing code thinko. Signed-off-by: Bill Erickson Signed-off-by: Kathy Lussier --- Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Invoice.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Invoice.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Invoice.pm index 772b6facbc..fa0160631d 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Invoice.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Invoice.pm @@ -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; -- 2.11.0