From: Jacek Ablewicz Date: Sat, 17 May 2014 08:30:15 +0000 (+0200) Subject: Bug 12274: handle closed invoices properly on invoice details page X-Git-Tag: v3.16.00~6 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=8ec1ffafea89fcb98d67e090a799398a434af18d;p=koha-ffzg.git 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 --- 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,