X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FTemplate.pm;h=9e25f39ee0c43baaaa735cdee4732e9c410d8170;hb=6534db924d0c874b31306d827ffb011f66a6e591;hp=27ebb36a37f02d62bcb49a0a15660243cad1a8c8;hpb=bd4fb92d5fc6e1b97b912427cd395153d63d7713;p=kivitendo-erp.git 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;