From d5f355978a4b0a5e7ce29305559534bea9e3ddd1 Mon Sep 17 00:00:00 2001 From: Udo Spallek Date: Wed, 16 Nov 2005 10:24:55 +0000 Subject: [PATCH] =?utf8?q?USTVA:=20Zahlenformatierung=20in=20Tex-Reports?= =?utf8?q?=20erweitert=20f=C3=BCr=20alle=20Zahlenformate?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/ustva.pl | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/bin/mozilla/ustva.pl b/bin/mozilla/ustva.pl index a40388a98..e6268a67c 100644 --- a/bin/mozilla/ustva.pl +++ b/bin/mozilla/ustva.pl @@ -1011,13 +1011,25 @@ sub generate_ustva { $form->{endbold} = "}"; $form->{br} = '\\\\'; + my @numbers = qw(51r 86r 97r 93r 96 43 45 66 62 67); my $number = ''; - foreach $number (@numbers) { - $form->{$number} =~ s/,/~~/g; + # Zahlenformatierung für Latex USTVA Formulare + if ($myconfig{numberformat} eq '1.000,00' or + $myconfig{numberformat} eq '1000,00') { + foreach $number (@numbers) { + $form->{$number} =~ s/,/~~/g; + } + } + if ($myconfig{numberformat} eq '1000.00' or + $myconfig{numberformat} eq '1,000.00') { + foreach $number (@numbers) { + $form->{$number} =~ s/\./~~/g; + } } - } elsif ($form->{format} eq 'html') { + # Formatierungen für HTML Ausgabe + } elsif ($form->{format} eq 'html') { $form->{padding} = "  "; $form->{bold} = ""; $form->{endbold} = ""; -- 2.20.1