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 209-216
if ( $op eq 'delete_confirm' ) {
Link Here
|
209 |
closed => 1, |
209 |
closed => 1, |
210 |
}); |
210 |
}); |
211 |
ModBasket( { basketno => $basketno, |
211 |
ModBasket( { basketno => $basketno, |
212 |
basketgroupid => $basketgroupid, |
212 |
basketgroupid => $basketgroupid } ); |
213 |
borrowernumber => $loggedinuser } ); |
|
|
214 |
print $query->redirect('/cgi-bin/koha/acqui/basketgroup.pl?booksellerid='.$booksellerid.'&closed=1'); |
213 |
print $query->redirect('/cgi-bin/koha/acqui/basketgroup.pl?booksellerid='.$booksellerid.'&closed=1'); |
215 |
} else { |
214 |
} else { |
216 |
print $query->redirect('/cgi-bin/koha/acqui/booksellers.pl?booksellerid=' . $booksellerid); |
215 |
print $query->redirect('/cgi-bin/koha/acqui/booksellers.pl?booksellerid=' . $booksellerid); |
Lines 243-250
elsif ( $op eq 'ediorder' ) {
Link Here
|
243 |
$branch = undef if(defined $branch and $branch eq ''); |
242 |
$branch = undef if(defined $branch and $branch eq ''); |
244 |
ModBasket({ |
243 |
ModBasket({ |
245 |
basketno => $basket->{basketno}, |
244 |
basketno => $basket->{basketno}, |
246 |
branch => $branch, |
245 |
branch => $branch |
247 |
borrowernumber => $loggedinuser |
|
|
248 |
}); |
246 |
}); |
249 |
print $query->redirect("/cgi-bin/koha/acqui/basket.pl?basketno=$basketno"); |
247 |
print $query->redirect("/cgi-bin/koha/acqui/basket.pl?basketno=$basketno"); |
250 |
exit; |
248 |
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 560-567
sub edi_close_and_order {
Link Here
|
560 |
ModBasket( |
558 |
ModBasket( |
561 |
{ |
559 |
{ |
562 |
basketno => $basketno, |
560 |
basketno => $basketno, |
563 |
basketgroupid => $basketgroupid, |
561 |
basketgroupid => $basketgroupid |
564 |
borrowernumber => $loggedinuser |
|
|
565 |
} |
562 |
} |
566 |
); |
563 |
); |
567 |
print $query->redirect( |
564 |
print $query->redirect( |