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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt (+4 lines)
Lines 256-261 Link Here
256
                                <label for="ReportLostItems">Add losts items to the report: </label>
256
                                <label for="ReportLostItems">Add losts items to the report: </label>
257
                                <input type="checkbox" name="ReportLostItems" id="ReportLostItems" />
257
                                <input type="checkbox" name="ReportLostItems" id="ReportLostItems" />
258
                            </li>
258
                            </li>
259
                            <li>
260
                                <label for="ReportItemsWithoutProblem">Add items without problem to the report: </label>
261
                                <input type="checkbox" name="ReportItemsWithoutProblem" id="ReportItemsWithoutProblem" />
262
                            </li>
259
                        </ol>
263
                        </ol>
260
                    </fieldset>
264
                    </fieldset>
261
265
(-)a/tools/inventory.pl (-1 / +9 lines)
Lines 128-133 if ( defined $input->param('ReportLostItems') && $input->param('ReportLostItems' Link Here
128
    $report_lost_items = "1";
128
    $report_lost_items = "1";
129
}
129
}
130
130
131
my $report_items_without_problems;
132
if ( defined $input->param('ReportItemsWithoutProblem') && $input->param('ReportItemsWithoutProblem') eq 'on' ) {
133
    $report_items_without_problems = "1";
134
}
135
131
# if there's a list of not for loans types selected use it rather than
136
# if there's a list of not for loans types selected use it rather than
132
# the full set.
137
# the full set.
133
@notforloans = @{$staton->{'items.notforloan'}} if defined $staton->{'items.notforloan'} and scalar @{$staton->{'items.notforloan'}} > 0;
138
@notforloans = @{$staton->{'items.notforloan'}} if defined $staton->{'items.notforloan'} and scalar @{$staton->{'items.notforloan'}} > 0;
Lines 350-355 for ( my $i = 0; $i < @scanned_items; $i++ ) { Link Here
350
        $item->{problems}->{lost} = 1;
355
        $item->{problems}->{lost} = 1;
351
        additemtoresults( $item, $results );
356
        additemtoresults( $item, $results );
352
    }
357
    }
358
359
    if ($report_items_without_problems) {
360
        additemtoresults( $item, $results );
361
    }
353
}
362
}
354
363
355
# Compare barcodes with inventory list, report no_barcode and not_scanned.
364
# Compare barcodes with inventory list, report no_barcode and not_scanned.
356
- 

Return to bug 18657