X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/87e190b46ddee16b2cf7a2e52e1bbc8555a41f8e..52dd34aa8a1de8a496580bebe3468ad4e5e5604e:/SL/DN.pm diff --git a/SL/DN.pm b/SL/DN.pm index 9702e4cf6..6105f83b0 100644 --- a/SL/DN.pm +++ b/SL/DN.pm @@ -714,12 +714,13 @@ sub print_dunning { my $first = 1; while (my $ref = $sth->fetchrow_hashref(NAME_lc)) { if ($first) { - map({ $form->{"dn_$_"} = []; } keys(%{$ref})); + $form->{TEMPLATE_ARRAYS} = {}; + map({ $form->{TEMPLATE_ARRAYS}->{"dn_$_"} = []; } keys(%{$ref})); $first = 0; } map { $ref->{$_} = $form->format_amount($myconfig, $ref->{$_}, 2) } qw(amount netamount paid open_amount fee interest linetotal); map { $form->{$_} = $ref->{$_} } keys %$ref; - map { push @{ $form->{"dn_$_"} }, $ref->{$_}} keys %$ref; + map { push @{ $form->{TEMPLATE_ARRAYS}->{"dn_$_"} }, $ref->{$_} } keys %$ref; } $sth->finish();