View | Details | Raw Unified | Return to bug 10005
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt (+3 lines)
Lines 214-219 $(document).ready(function(){ Link Here
214
            <label for="compareinv2barcd">Compare barcodes list to results: </label>
214
            <label for="compareinv2barcd">Compare barcodes list to results: </label>
215
            <input type="checkbox" name="compareinv2barcd" id="compareinv2barcd" />
215
            <input type="checkbox" name="compareinv2barcd" id="compareinv2barcd" />
216
        </li>
216
        </li>
217
        <li>
218
            <label for="dont_checkin">Do not check in items scanned during inventory: </label>
219
            <input type="checkbox" name="dont_checkin" id="dont_checkin" />
217
        </ol>
220
        </ol>
218
  </fieldset>
221
  </fieldset>
219
            <input type="hidden" name="op" value="do_it" />
222
            <input type="hidden" name="op" value="do_it" />
(-)a/tools/inventory.pl (-9 / +11 lines)
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
- 

Return to bug 10005