SIGNED-OFF] bug 8382: It is not possible to cancel an order on a filtered page in...
authorchristophe croullebois <christophe.croullebois@biblibre.com>
Thu, 5 Jul 2012 18:07:42 +0000 (20:07 +0200)
committerPaul Poulain <paul.poulain@biblibre.com>
Wed, 5 Sep 2012 11:31:37 +0000 (13:31 +0200)
commitb6433ee60ac9c932393c34d89013cf686c0fa91a
tree59a21a82060d449f38eff3d61d111d323865b661
parent4e8bd6b9a6f4e13eedfca5faa1ac0d49098bfed0
SIGNED-OFF] bug 8382: It is not possible to cancel an order on a filtered page in parcel.pl

Because in parcel.pl page the filter (on the left) makes a table using jscript and
a very different workflow, the "cancel" link does nothing just asking for cancelling.
Principaly due to the use of the "filter" js function that call the parcel.pl page
and does all the job in a separate block with a separate perl function
(SearchOrder) that sends all to js, that constructs html to finally append it to table.
So I have decided to rebuild entirely the filter.
I have choosen to overload the function "GetPendingOrders" to enable it to accept new arguments.
To test : when you are in "parcel.pl" ready to receive orders, simply select a filter on the left
and on the filtered page try to cancel a line.
You'll have the warning message but no more, the line will be not canceled.

Signed-off-by: wajasu <matted-34813@mypacks.net>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
C4/Acquisition.pm
acqui/parcel.pl
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt