Revision 6410ae9f
Von Sven Schöling vor etwa 4 Jahren hinzugefügt
SL/Controller/CsvImport/Base.pm | ||
---|---|---|
45 | 45 |
|
46 | 46 |
$self->controller->track_progress(progress => 10); |
47 | 47 |
|
48 |
my $old_numberformat = $::myconfig{numberformat};
|
|
49 |
$::myconfig{numberformat} = $self->controller->profile->get('numberformat');
|
|
48 |
local $::myconfig{numberformat} = $self->controller->profile->get('numberformat');
|
|
49 |
local $::myconfig{dateformat} = $self->controller->profile->get('dateformat');
|
|
50 | 50 |
|
51 | 51 |
$self->csv->parse; |
52 | 52 |
|
... | ... | |
83 | 83 |
$self->fix_field_lengths; |
84 | 84 |
|
85 | 85 |
$self->controller->track_progress(progress => 100); |
86 |
|
|
87 |
$::myconfig{numberformat} = $old_numberformat; |
|
88 | 86 |
} |
89 | 87 |
|
90 | 88 |
sub add_columns { |
SL/DB/CsvImportProfile.pm | ||
---|---|---|
38 | 38 |
escape_char => '"', |
39 | 39 |
charset => 'CP850', |
40 | 40 |
numberformat => $::myconfig{numberformat}, |
41 |
dateformat => $::myconfig{dateformat}, |
|
41 | 42 |
duplicates => 'no_check', |
42 | 43 |
); |
43 | 44 |
|
templates/webpages/csv_import/form.html | ||
---|---|---|
180 | 180 |
</td> |
181 | 181 |
</tr> |
182 | 182 |
|
183 |
<tr> |
|
184 |
<th align="right">[%- LxERP.t8('Date Format') %]:</th> |
|
185 |
<td colspan="10"> |
|
186 |
[% L.select_tag('settings.dateformat', ['dd.mm.yyyy', 'yyyy-mm-dd', 'dd/mm/yyyy', 'mm/dd/yyyy' ], default = SELF.profile.get('dateformat'), style = 'width: 300px') %] |
|
187 |
</td> |
|
188 |
</tr> |
|
189 |
|
|
183 | 190 |
<tr> |
184 | 191 |
<th align="right">[%- LxERP.t8('Charset') %]:</th> |
185 | 192 |
<td colspan="10">[% L.select_tag('settings.charset', SELF.all_charsets, default = SELF.profile.get('charset'), style = 'width: 300px') %]</td> |
Auch abrufbar als: Unified diff
CsvImport: dateformat Unterstützung
default ist auf dem dateformat des Benutzers