Revision 21889585
Von Sven Schöling vor mehr als 8 Jahren hinzugefügt
bin/mozilla/wh.pl | ||
---|---|---|
754 | 754 |
|
755 | 755 |
my $allrows = 0; |
756 | 756 |
$allrows = 1 if $form->{report_generator_output_format} ne 'HTML' ; |
757 |
|
|
757 |
|
|
758 | 758 |
# manual paginating |
759 | 759 |
my $pages = {}; |
760 | 760 |
$pages->{per_page} = $::form->{per_page} || 15; |
761 | 761 |
my $first_nr = ($page - 1) * $pages->{per_page}; |
762 | 762 |
my $last_nr = $first_nr + $pages->{per_page}; |
763 | 763 |
my $idx = 0; |
764 |
|
|
764 |
|
|
765 | 765 |
foreach my $entry (@contents) { |
766 | 766 |
$entry->{qty} = $form->format_amount_units('amount' => $entry->{qty}, |
767 | 767 |
'part_unit' => $entry->{partunit}, |
... | ... | |
977 | 977 |
} |
978 | 978 |
|
979 | 979 |
if ( $allrows || ($idx >= $first_nr && $idx < $last_nr )) { |
980 |
$report->add_data($row_set);
|
|
980 |
$report->add_data($row_set);
|
|
981 | 981 |
} |
982 | 982 |
$idx++; |
983 | 983 |
} |
Auch abrufbar als: Unified diff
wh: no tabs, no trailing whitespaces