From 6534db924d0c874b31306d827ffb011f66a6e591 Mon Sep 17 00:00:00 2001 From: Udo Spallek Date: Fri, 5 Jan 2007 12:01:14 +0000 Subject: [PATCH] =?utf8?q?Neue=20Variable=20<%cumulatelinetotal%>=20fuer?= =?utf8?q?=20zeilenweise=20kumulierte=20Betr=C3=A4ge.=20Funktioniert=20nur?= =?utf8?q?=20in=20<%foreach=20Umgebungen=20in=20Latextemplates.=20Koennte?= =?utf8?q?=20hilfreich=20sein=20fuer=20longtable.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Template.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.20.1