From 8ec1ffafea89fcb98d67e090a799398a434af18d Mon Sep 17 00:00:00 2001 From: Jacek Ablewicz Date: Sat, 17 May 2014 10:30:15 +0200 Subject: [PATCH] Bug 12274: handle closed invoices properly on invoice details page Trivial fix for small regression (closed invoices are displayed as "Open" on details page, and it's not possible to reopen the closed invoice using "Save" button) introduced by bug 10613. Test plan: 1) Create and close some invoices 2) Note that closed invoices are erroneously displayed as "Open" on individual invoice[s] details page 3) Apply patch 4) Check previously closed invoices; their status on details page should now be properly displayed as "Closed on ..." (and an option for reopening would reappear as well) 5) Ensure that "Close" / "Reopen" checkboxes followed by "Save" button do work as expected for individual open / closed invoices respectivelly. Signed-off-by: Jonathan Druart Signed-off-by: Katrin Fischer Works as described. Signed-off-by: Galen Charlton --- acqui/invoice.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acqui/invoice.pl b/acqui/invoice.pl index 95065c9cff..84b7834376 100755 --- a/acqui/invoice.pl +++ b/acqui/invoice.pl @@ -151,7 +151,7 @@ $template->param( booksellerid => $details->{'booksellerid'}, datereceived => $details->{'datereceived'}, billingdate => C4::Dates->new($details->{'billingdate'}, "iso")->output(), - invoiceclosedate => $details->{'invoiceclosedate'}, + invoiceclosedate => $details->{'closedate'}, shipmentcost => $details->{'shipmentcost'}, orders_loop => \@orders_loop, foot_loop => \@foot_loop, -- 2.39.5