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)
committerChris Cormack <chrisc@catalyst.net.nz>
Thu, 13 Dec 2012 19:56:29 +0000 (08:56 +1300)
commit185d563c48ad73c60cee04d080b13296746e0a7e
tree7888b731a146886cacef855c103a705f37d5d5e6
parent169c38db5be3311d461eee621f30f5b55a8f6b4e
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>
C4/Acquisition.pm
acqui/parcel.pl
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt