From: Bernd Bleßmann Date: Wed, 14 Nov 2012 15:56:03 +0000 (+0100) Subject: Index/Zähler für multiple Aufträge bei 1 beginnen lassen X-Git-Tag: release-3.0.0beta2~12^2~11 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=8dd087bfc7c8947308b170c666682f6dec1ea30d;p=kivitendo-erp.git Index/Zähler für multiple Aufträge bei 1 beginnen lassen behebt #2054 --- diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index 5df518fc7..391ec1a00 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -922,7 +922,7 @@ sub orders { my %totals = map { $_ => 0 } @subtotal_columns; my %subtotals = map { $_ => 0 } @subtotal_columns; - my $idx = 0; + my $idx = 1; my $edit_url = build_std_url('action=edit', 'type', 'vc'); @@ -964,8 +964,8 @@ sub orders { my $row_set = [ $row ]; if (($form->{l_subtotal} eq 'Y') - && (($idx == (scalar @{ $form->{OE} } - 1)) - || ($oe->{ $form->{sort} } ne $form->{OE}->[$idx + 1]->{ $form->{sort} }))) { + && (($idx == (scalar @{ $form->{OE} })) + || ($oe->{ $form->{sort} } ne $form->{OE}->[$idx]->{ $form->{sort} }))) { push @{ $row_set }, create_subtotal_row(\%subtotals, \@columns, \%column_alignment, \@subtotal_columns, 'listsubtotal'); }