From ef5a164cac92ef3398b328893163958eb6720e10 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 6 Feb 2007 11:21:25 +0000 Subject: [PATCH] Die Option "Zahlenformat (Eingabe)" entfernt. Wenn sowohl . als auch , als Dezimaltrennzeichen erkannt werden sollen, dann sind viel zu viele Eingaben ohne , oder . als 1000er Trennzeichen zu mehrdeutig. --- SL/Form.pm | 12 ------------ SL/User.pm | 2 +- bin/mozilla/am.pl | 17 ----------------- locale/de/all | 3 --- locale/de/am | 3 --- 5 files changed, 1 insertion(+), 36 deletions(-) diff --git a/SL/Form.pm b/SL/Form.pm index 57bd84beb..df17c4b07 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -679,18 +679,6 @@ sub parse_amount { my ($self, $myconfig, $amount) = @_; - if ($myconfig->{in_numberformat} == 1) { - # Extra input number format 1000.00 or 1000,00 - $amount =~ s/,/\./g; - $amount = scalar reverse $amount; - $amount =~ s/\./DOT/; - $amount =~ s/\.//g; - $amount =~ s/DOT/\./; - $amount = scalar reverse $amount; - $main::lxdebug->leave_sub(2); - return ($amount * 1); - } - if ( ($myconfig->{numberformat} eq '1.000,00') || ($myconfig->{numberformat} eq '1000,00')) { $amount =~ s/\.//g; diff --git a/SL/User.pm b/SL/User.pm index 9fd9e5ee4..ea95cb1d2 100644 --- a/SL/User.pm +++ b/SL/User.pm @@ -1089,7 +1089,7 @@ sub config_vars { my @conf = qw(acs address admin businessnumber charset company countrycode currency dateformat dbconnect dbdriver dbhost dbport dboptions - dbname dbuser dbpasswd email fax name numberformat in_numberformat password + dbname dbuser dbpasswd email fax name numberformat password printer role sid signature stylesheet tel templates vclimit angebote bestellungen rechnungen anfragen lieferantenbestellungen einkaufsrechnungen taxnumber co_ustid duns menustyle template_format default_media default_printer_id copies show_form_details); diff --git a/bin/mozilla/am.pl b/bin/mozilla/am.pl index 2a96bb9a4..09d2007a2 100644 --- a/bin/mozilla/am.pl +++ b/bin/mozilla/am.pl @@ -3044,19 +3044,6 @@ sub config { } $countrycodes = "