Bug 9108: Followup: send the dateformat value from C4::Auth
[koha.git] / acqui / invoice.pl
index 1dc97ee..6e6bb25 100755 (executable)
@@ -79,6 +79,11 @@ elsif ( $op && $op eq 'mod' ) {
         shipmentcost          => $shipmentcost,
         shipmentcost_budgetid => $shipment_budget_id
     );
+    if ($input->param('reopen')) {
+        ReopenInvoice($invoiceid);
+    } elsif ($input->param('close')) {
+        CloseInvoice($invoiceid);
+    }
     $template->param( modified => 1 );
 }
 
@@ -190,7 +195,6 @@ $template->param(
     total_quantity   => $total_quantity,
     invoiceincgst    => $bookseller->{invoiceincgst},
     currency         => $bookseller->{listprice},
-    DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar(),
     budgets_loop             => \@budgets_loop,
 );