Bug 27082: uncertainprice.pl does not handle pagination
To reproduce: 1- create a basket 2- add more of 20 orders with uncertain price 3- click on uncertain price button 4- on page 1 of list, uncheck uncertain box of an order 5- click on save button 6- orders who were on page 2 are not display anymore in page uncertainprice.pl 7- return to basket view acqui/basket.pl 8- orders who were on page 2 have "rvcd" label and quantity is null The data in page 2 and beyond is not transmitted, but the code doesn't handle that. This patch makes sure that all that (empty) data is not (wrongly) processed. Sponsored by: CCSR Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
b341dc0732
commit
5bc36cd672
|
|
@ -88,6 +88,7 @@ if ( $op eq 'validate' ) {
|
|||
for (my $i=0; $i < $count; $i++) {
|
||||
my $order = pop(@orders);
|
||||
my $ordernumber = $order->{ordernumber};
|
||||
next unless ($input->param('qty'.$ordernumber));
|
||||
my $order_as_from_db=GetOrder($order->{ordernumber});
|
||||
$order->{'listprice'} = $input->param('price'.$ordernumber);
|
||||
$order->{'ecost'}= $input->param('price'.$ordernumber) - (($input->param('price'.$ordernumber) /100) * $bookseller->discount);
|
||||
|
|
|
|||
Loading…
Reference in New Issue