@@ -, +, @@ - "Finish receive" on parcel.pl now redirect to acqui/invoice.pl, allowing the librarian to modify invoice informations (freight, billing date, ...) and close invoice. - The librarian can now close (or reopen) the invoice and modify invoice informations in 1 operation (instead of 2) --- acqui/invoice.pl | 5 ++ .../intranet-tmpl/prog/en/modules/acqui/invoice.tt | 74 ++++++++++---------- .../intranet-tmpl/prog/en/modules/acqui/parcel.tt | 5 +- 3 files changed, 45 insertions(+), 39 deletions(-) --- a/acqui/invoice.pl +++ a/acqui/invoice.pl @@ -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 ); } --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt @@ -42,46 +42,48 @@

Supplier: [% suppliername %]

- - -

- - -

- - - - +

+ + +

+ + + + +

+ + [% IF ( invoiceclosedate ) %] + Closed on [% invoiceclosedate | $KohaDates %]. +

+ + + [% ELSE %] + Open. +

+ + [% END %] - - - -
- + + +
+ +
-

Status: - [% IF ( invoiceclosedate ) %] - Closed on [% invoiceclosedate | $KohaDates %]. - - Reopen - - [% ELSE %] - Open. - - Close - - [% END %] -

Go to receipt page

--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt @@ -192,7 +192,6 @@

Invoice number: [% invoice %] Received by: [% loggedinusername %] On: [% formatteddatereceived %]

-

Go to invoice details

[% UNLESS (invoiceclosedate) %] -
- + +
--