|
Lines 52-57
my $branchcode = $input->param('branchcode') || '';
Link Here
|
| 52 |
my $branch = $input->param('branch'); |
52 |
my $branch = $input->param('branch'); |
| 53 |
my $op = $input->param('op'); |
53 |
my $op = $input->param('op'); |
| 54 |
my $compareinv2barcd = $input->param('compareinv2barcd'); |
54 |
my $compareinv2barcd = $input->param('compareinv2barcd'); |
|
|
55 |
my $dont_checkin = $input->param('dont_checkin'); |
| 55 |
|
56 |
|
| 56 |
my ( $template, $borrowernumber, $cookie ) = get_template_and_user( |
57 |
my ( $template, $borrowernumber, $cookie ) = get_template_and_user( |
| 57 |
{ template_name => "tools/inventory.tt", |
58 |
{ template_name => "tools/inventory.tt", |
|
Lines 209-222
if ( $uploadbarcodes && length($uploadbarcodes) > 0 ) {
Link Here
|
| 209 |
ModItem( { datelastseen => $date }, undef, $item->{'itemnumber'} ); |
210 |
ModItem( { datelastseen => $date }, undef, $item->{'itemnumber'} ); |
| 210 |
push @scanned_items, $item; |
211 |
push @scanned_items, $item; |
| 211 |
$count++; |
212 |
$count++; |
| 212 |
$qonloan->execute($barcode); |
213 |
unless ( $dont_checkin ) { |
| 213 |
if ($qonloan->rows){ |
214 |
$qonloan->execute($barcode); |
| 214 |
my $data = $qonloan->fetchrow_hashref; |
215 |
if ($qonloan->rows){ |
| 215 |
my ($doreturn, $messages, $iteminformation, $borrower) =AddReturn($barcode, $data->{homebranch}); |
216 |
my $data = $qonloan->fetchrow_hashref; |
| 216 |
if ($doreturn){ |
217 |
my ($doreturn, $messages, $iteminformation, $borrower) =AddReturn($barcode, $data->{homebranch}); |
| 217 |
push @errorloop, {'barcode'=>$barcode,'ERR_ONLOAN_RET'=>1} |
218 |
if ($doreturn){ |
| 218 |
} else { |
219 |
push @errorloop, {'barcode'=>$barcode,'ERR_ONLOAN_RET'=>1} |
| 219 |
push @errorloop, {'barcode'=>$barcode,'ERR_ONLOAN_NOT_RET'=>1} |
220 |
} else { |
|
|
221 |
push @errorloop, {'barcode'=>$barcode,'ERR_ONLOAN_NOT_RET'=>1} |
| 222 |
} |
| 220 |
} |
223 |
} |
| 221 |
} |
224 |
} |
| 222 |
} else { |
225 |
} else { |
| 223 |
- |
|
|