X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FTemplate.pm;h=18b44d069288fac571c764dfa189ac71f2d69bde;hb=319c72e8738bbbfd457ae33dafd03ab8d5203a12;hp=27ebb36a37f02d62bcb49a0a15660243cad1a8c8;hpb=a43c94fd42214048fc61bcd4404f2800e92c49de;p=kivitendo-erp.git diff --git a/SL/Template.pm b/SL/Template.pm index 27ebb36a3..18b44d069 100644 --- a/SL/Template.pm +++ b/SL/Template.pm @@ -91,7 +91,7 @@ sub format_string { '', '&', quotemeta("\n"), '"', '\$', '%', '_', '#', quotemeta('^'), - '{', '}', '<', '>', '£', "\r" + '{', '}', '<', '>', '£', "\r", '±', ], quotemeta("\\") => '\\textbackslash ', '' => '', @@ -107,6 +107,7 @@ sub format_string { '>' => '$>$', '£' => '\pounds ', "\r" => "", + '±' => '$\pm$', quotemeta('^') => '\^\\', quotemeta("\n") => '\newline ' ); @@ -213,7 +214,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; @@ -1305,16 +1308,17 @@ sub format_string { sub get_mime_type() { my ($self) = @_; - if ($self->{"form"}->{"format"} =~ /xml/i) { + if ($self->{"form"}->{"format"} =~ /elsterwinston/i) { return "application/xml "; + } elsif ($self->{"form"}->{"format"} =~ /elstertaxbird/i) { + return "application/x-taxbird"; } else { - return "text/xml"; + return "text"; } } sub uses_temp_file { -# my ($self) = @_; - # no tempfile needet for XML Output + # tempfile needet for XML Output return 1; }