Lines 93-98
my $datereceived = $input->param('datereceived');
Link Here
|
93 |
$datereceived = $datereceived ? C4::Dates->new($datereceived, 'iso') : C4::Dates->new(); |
93 |
$datereceived = $datereceived ? C4::Dates->new($datereceived, 'iso') : C4::Dates->new(); |
94 |
|
94 |
|
95 |
my $bookseller = GetBookSellerFromId($booksellerid); |
95 |
my $bookseller = GetBookSellerFromId($booksellerid); |
|
|
96 |
my $sub = GetOrder($ordernumber); |
97 |
my $subscriptionid = $sub->{'subscriptionid'}; |
96 |
my $input_gst = ($input->param('gst') eq '' ? undef : $input->param('gst')); |
98 |
my $input_gst = ($input->param('gst') eq '' ? undef : $input->param('gst')); |
97 |
my $gst= $input_gst // $bookseller->{gstrate} // C4::Context->preference("gist") // 0; |
99 |
my $gst= $input_gst // $bookseller->{gstrate} // C4::Context->preference("gist") // 0; |
98 |
my $results = SearchOrder($ordernumber,$search); |
100 |
my $results = SearchOrder($ordernumber,$search); |
Lines 121-130
if ( $count == 1 ) {
Link Here
|
121 |
|
123 |
|
122 |
my $AcqCreateItem = C4::Context->preference('AcqCreateItem'); |
124 |
my $AcqCreateItem = C4::Context->preference('AcqCreateItem'); |
123 |
if ($AcqCreateItem eq 'receiving') { |
125 |
if ($AcqCreateItem eq 'receiving') { |
124 |
$template->param( |
126 |
unless($subscriptionid){ |
|
|
127 |
$template->param( |
125 |
AcqCreateItemReceiving => 1, |
128 |
AcqCreateItemReceiving => 1, |
126 |
UniqueItemFields => C4::Context->preference('UniqueItemFields'), |
129 |
UniqueItemFields => C4::Context->preference('UniqueItemFields'), |
127 |
); |
130 |
); |
|
|
131 |
} else { |
132 |
$template->param( subscription => 1,); |
133 |
} |
128 |
} elsif ($AcqCreateItem eq 'ordering') { |
134 |
} elsif ($AcqCreateItem eq 'ordering') { |
129 |
my $fw = ($acq_fw) ? 'ACQ' : ''; |
135 |
my $fw = ($acq_fw) ? 'ACQ' : ''; |
130 |
my @itemnumbers = GetItemnumbersFromOrder($order->{ordernumber}); |
136 |
my @itemnumbers = GetItemnumbersFromOrder($order->{ordernumber}); |