From: Moritz Bunkus Date: Thu, 3 Mar 2011 10:48:39 +0000 (+0100) Subject: Ausgewähltes Zahlenformat berücksichtigen X-Git-Tag: release-2.7.0beta1~396^2~11 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=f9af406f2e19ad2c321b66525f7b046d95ef6ead;p=kivitendo-erp.git Ausgewähltes Zahlenformat berücksichtigen --- diff --git a/SL/Controller/CsvImport/Base.pm b/SL/Controller/CsvImport/Base.pm index a61b03f29..6a66e8ca1 100644 --- a/SL/Controller/CsvImport/Base.pm +++ b/SL/Controller/CsvImport/Base.pm @@ -30,6 +30,10 @@ sub run { strict_profile => 1, map { ( $_ => $self->controller->profile->get($_) ) } qw(sep_char escape_char quote_char), )); + + my $old_numberformat = $::myconfig{numberformat}; + $::myconfig{numberformat} = $self->controller->profile->get('numberformat'); + $self->csv->parse; $self->controller->errors([ $self->csv->errors ]) if $self->csv->errors; @@ -50,6 +54,8 @@ sub run { $self->check_objects; $self->check_duplicates if $self->controller->profile->get('duplicates', 'no_check') ne 'no_check'; $self->fix_field_lengths; + + $::myconfig{numberformat} = $old_numberformat; } sub add_columns {