Lines 48-61
my ($template, $loggedinuser, $cookie, $flags) = get_template_and_user( {
Link Here
|
48 |
my $op = $input->param('op') || q{}; |
48 |
my $op = $input->param('op') || q{}; |
49 |
my $ordernumber = $input->param('ordernumber'); |
49 |
my $ordernumber = $input->param('ordernumber'); |
50 |
my $biblionumber = $input->param('biblionumber'); |
50 |
my $biblionumber = $input->param('biblionumber'); |
51 |
my $basketno = $input->param('basketno'); |
51 |
my $order = Koha::Acquisition::Orders->find($ordernumber); |
|
|
52 |
my $basketno = $order->basketno; |
52 |
my $basket = Koha::Acquisition::Baskets->find({ basketno => $basketno }, { prefetch => 'booksellerid' }); |
53 |
my $basket = Koha::Acquisition::Baskets->find({ basketno => $basketno }, { prefetch => 'booksellerid' }); |
53 |
my $referrer = $input->param('referrer') || $input->referer; |
54 |
my $referrer = $input->param('referrer') || $input->referer; |
54 |
my $delete_biblio = $input->param('del_biblio') ? 1 : 0; |
55 |
my $delete_biblio = $input->param('del_biblio') ? 1 : 0; |
55 |
|
56 |
|
56 |
if( $op eq "cud-confirmcancel" ) { |
57 |
if( $op eq "cud-confirmcancel" ) { |
57 |
my $reason = $input->param('reason'); |
58 |
my $reason = $input->param('reason'); |
58 |
my $order = Koha::Acquisition::Orders->find($ordernumber); |
|
|
59 |
my @messages; |
59 |
my @messages; |
60 |
if( !$order ) { |
60 |
if( !$order ) { |
61 |
push @messages, Koha::Object::Message->new({ message => 'error_order_not_found', type => 'error' }); |
61 |
push @messages, Koha::Object::Message->new({ message => 'error_order_not_found', type => 'error' }); |