From 981711f203569e9ff29155c5b8ee0cbc565848b4 Mon Sep 17 00:00:00 2001 From: Nahuel ANGELINETTI Date: Tue, 23 Jun 2009 15:21:52 +0200 Subject: [PATCH] (bug #3353) permit librarians to cancel orders This add a link in receipt summary, that allow the librarian to "cancel orders" from closed baskets. --- acqui/parcel.pl | 9 +++++++++ .../prog/en/modules/acqui/parcel.tmpl | 20 ++++++++++++++++++- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/acqui/parcel.pl b/acqui/parcel.pl index 62c77e4ed7..63ce429104 100755 --- a/acqui/parcel.pl +++ b/acqui/parcel.pl @@ -87,6 +87,15 @@ my ($template, $loggedinuser, $cookie) = get_template_and_user( } ); +if($input->param('op') eq "delete" ){ + if($input->param('biblionumber') and $input->param('ordernumber')){ + DelOrder($input->param('biblionumber'), $input->param('ordernumber')); + print $input->redirect("/cgi-bin/koha/acqui/parcel.pl?supplierid=$supplierid&datereceived=" . $datereceived->output('iso')); + exit; + } +} + + # If receiving error, report the error (coming from finishreceive.pl). if (scalar(@rcv_err)) { my $cnt = 0; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tmpl index d6e5c2cd71..30dca602f6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tmpl @@ -3,6 +3,21 @@ Receipt Summary for Invoice on Receive Orders from + + @@ -137,7 +152,10 @@ - &biblionumber=&datereceived=&invoice=&gst=&freight=&supplierid=">Receive order + + &biblionumber=&datereceived=&invoice=&gst=&freight=&supplierid=">Receive order  + , , ''); return false;">Cancel order +   -- 2.39.5