projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd4fb92
)
Neue Variable <%cumulatelinetotal%> fuer zeilenweise kumulierte
author
Udo Spallek
<info@wissensvermittlung.com>
Fri, 5 Jan 2007 12:01:14 +0000
(12:01 +0000)
committer
Udo Spallek
<info@wissensvermittlung.com>
Fri, 5 Jan 2007 12:01:14 +0000
(12:01 +0000)
Beträge. Funktioniert nur in <%foreach Umgebungen in Latextemplates.
Koennte hilfreich sein fuer longtable.
SL/Template.pm
patch
|
blob
|
history
diff --git
a/SL/Template.pm
b/SL/Template.pm
index
27ebb36
..
9e25f39
100644
(file)
--- 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;