Lines 195-201
if ( $op eq 'delete_confirm' ) {
Link Here
|
195 |
if ($confirm) { |
195 |
if ($confirm) { |
196 |
my $basketno = $query->param('basketno'); |
196 |
my $basketno = $query->param('basketno'); |
197 |
my $booksellerid = $query->param('booksellerid'); |
197 |
my $booksellerid = $query->param('booksellerid'); |
198 |
$basketno =~ /^\d+$/ and CloseBasket($basketno, $loggedinuser); |
198 |
$basketno =~ /^\d+$/ and CloseBasket($basketno); |
199 |
# if requested, create basket group, close it and attach the basket |
199 |
# if requested, create basket group, close it and attach the basket |
200 |
if ($query->param('createbasketgroup')) { |
200 |
if ($query->param('createbasketgroup')) { |
201 |
my $branchcode; |
201 |
my $branchcode; |
Lines 210-217
if ( $op eq 'delete_confirm' ) {
Link Here
|
210 |
closed => 1, |
210 |
closed => 1, |
211 |
}); |
211 |
}); |
212 |
ModBasket( { basketno => $basketno, |
212 |
ModBasket( { basketno => $basketno, |
213 |
basketgroupid => $basketgroupid, |
213 |
basketgroupid => $basketgroupid } ); |
214 |
borrowernumber => $loggedinuser } ); |
|
|
215 |
print $query->redirect('/cgi-bin/koha/acqui/basketgroup.pl?booksellerid='.$booksellerid.'&closed=1'); |
214 |
print $query->redirect('/cgi-bin/koha/acqui/basketgroup.pl?booksellerid='.$booksellerid.'&closed=1'); |
216 |
} else { |
215 |
} else { |
217 |
print $query->redirect('/cgi-bin/koha/acqui/booksellers.pl?booksellerid=' . $booksellerid); |
216 |
print $query->redirect('/cgi-bin/koha/acqui/booksellers.pl?booksellerid=' . $booksellerid); |
Lines 244-251
elsif ( $op eq 'ediorder' ) {
Link Here
|
244 |
$branch = undef if(defined $branch and $branch eq ''); |
243 |
$branch = undef if(defined $branch and $branch eq ''); |
245 |
ModBasket({ |
244 |
ModBasket({ |
246 |
basketno => $basket->{basketno}, |
245 |
basketno => $basket->{basketno}, |
247 |
branch => $branch, |
246 |
branch => $branch |
248 |
borrowernumber => $loggedinuser |
|
|
249 |
}); |
247 |
}); |
250 |
print $query->redirect("/cgi-bin/koha/acqui/basket.pl?basketno=$basketno"); |
248 |
print $query->redirect("/cgi-bin/koha/acqui/basket.pl?basketno=$basketno"); |
251 |
exit; |
249 |
exit; |
Lines 538-544
sub edi_close_and_order {
Link Here
|
538 |
if ( create_edi_order($edi_params) ) { |
536 |
if ( create_edi_order($edi_params) ) { |
539 |
#$template->param( edifile => 1 ); |
537 |
#$template->param( edifile => 1 ); |
540 |
} |
538 |
} |
541 |
CloseBasket($basketno, $loggedinuser); |
539 |
CloseBasket($basketno); |
542 |
|
540 |
|
543 |
# if requested, create basket group, close it and attach the basket |
541 |
# if requested, create basket group, close it and attach the basket |
544 |
if ( $query->param('createbasketgroup') ) { |
542 |
if ( $query->param('createbasketgroup') ) { |
Lines 561-568
sub edi_close_and_order {
Link Here
|
561 |
ModBasket( |
559 |
ModBasket( |
562 |
{ |
560 |
{ |
563 |
basketno => $basketno, |
561 |
basketno => $basketno, |
564 |
basketgroupid => $basketgroupid, |
562 |
basketgroupid => $basketgroupid |
565 |
borrowernumber => $loggedinuser |
|
|
566 |
} |
563 |
} |
567 |
); |
564 |
); |
568 |
print $query->redirect( |
565 |
print $query->redirect( |