Bug 21467: Allow several receipts for a given subscription
[koha.git] / acqui / basketheader.pl
index 83486a1..f4650e8 100755 (executable)
@@ -45,8 +45,7 @@ If it exists, C<$basketno> is the basket we edit
 
 =cut
 
-use strict;
-use warnings;
+use Modern::Perl;
 use CGI qw ( -utf8 );
 use C4::Context;
 use C4::Auth;
@@ -69,11 +68,11 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
 );
 
 #parameters:
-my $booksellerid = scalar $input->param('booksellerid');
-my $basketno = scalar $input->param('basketno');
+my $booksellerid = $input->param('booksellerid');
+my $basketno = $input->param('basketno');
 my $basket;
-my $op = scalar $input->param('op');
-my $is_an_edit = scalar $input->param('is_an_edit');
+my $op = $input->param('op');
+my $is_an_edit = $input->param('is_an_edit');
 
 if ( $op eq 'add_form' ) {
     my @contractloop;
@@ -145,6 +144,7 @@ if ( $op eq 'add_form' ) {
             scalar $input->param('deliveryplace'),
             scalar $input->param('billingplace'),
             scalar $input->param('is_standing') ? 1 : undef,
+            scalar $input->param('create_items')
         );
     } else { #New basket
         $basketno = NewBasket(
@@ -157,6 +157,7 @@ if ( $op eq 'add_form' ) {
             scalar $input->param('deliveryplace'),
             scalar $input->param('billingplace'),
             scalar $input->param('is_standing') ? 1 : undef,
+            scalar $input->param('create_items')
         );
     }
     print $input->redirect('basket.pl?basketno='.$basketno);