From: Udo Spallek Date: Fri, 5 Jan 2007 12:01:14 +0000 (+0000) Subject: Neue Variable <%cumulatelinetotal%> fuer zeilenweise kumulierte X-Git-Tag: release-2.4.1~1^2~88 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=6534db924d0c874b31306d827ffb011f66a6e591;p=kivitendo-erp.git Neue Variable <%cumulatelinetotal%> fuer zeilenweise kumulierte Beträge. Funktioniert nur in <%foreach Umgebungen in Latextemplates. Koennte hilfreich sein fuer longtable. --- diff --git a/SL/Template.pm b/SL/Template.pm index 27ebb36a3..9e25f39ee 100644 --- a/SL/Template.pm +++ b/SL/Template.pm @@ -213,7 +213,9 @@ sub parse_foreach { $sum += $form->parse_amount($self->{"myconfig"}, $form->{"linetotal"}->[$i]); } - + + $form->{"cumulatelinetotal"}[$i] = $form->format_amount($self->{"myconfig"}, $sum, 2); + my $new_text = $self->parse_block($text, (@indices, $i)); return undef unless (defined($new_text)); $new_contents .= $start_tag . $new_text . $end_tag;