Revision 02129bcf
Von Moritz Bunkus vor etwa 18 Jahren hinzugefügt
SL/Template.pm | ||
---|---|---|
196 | 196 |
# replace the special variables <%sumcarriedforward%> |
197 | 197 |
# and <%lastpage%> |
198 | 198 |
|
199 |
my $psum = $form->format_amount($myconfig, $sum, 2);
|
|
199 |
my $psum = $form->format_amount($self->{"myconfig"}, $sum, 2);
|
|
200 | 200 |
$pb =~ s/<%sumcarriedforward%>/$psum/g; |
201 | 201 |
$pb =~ s/<%lastpage%>/$current_page/g; |
202 | 202 |
|
... | ... | |
210 | 210 |
$current_line += $lines; |
211 | 211 |
} |
212 | 212 |
if ($i < scalar(@{$form->{"linetotal"}})) { |
213 |
$sum += $form->parse_amount($myconfig, $form->{"linetotal"}->[$i]); |
|
213 |
$sum += $form->parse_amount($self->{"myconfig"}, |
|
214 |
$form->{"linetotal"}->[$i]); |
|
214 | 215 |
} |
215 | 216 |
|
216 | 217 |
my $new_text = $self->parse_block($text, (@indices, $i)); |
Auch abrufbar als: Unified diff
$myconfig ist in $self gespeichert. Fix für Bugzilla #439.