Revision 65f429ca
Von Bernd Bleßmann vor fast 8 Jahren hinzugefügt
SL/Controller/CsvImport/Order.pm | ||
---|---|---|
255 | 255 |
foreach my $entry (@{ $self->controller->data }) { |
256 | 256 |
$self->controller->track_progress(progress => $i/$num_data * 100) if $i % 100 == 0; |
257 | 257 |
|
258 |
$entry->{info_data}->{datatype} = $entry->{raw_data}->{datatype}; |
|
259 |
|
|
258 | 260 |
if ($entry->{raw_data}->{datatype} eq $self->_order_column) { |
259 | 261 |
$self->handle_order($entry); |
260 | 262 |
} elsif ($entry->{raw_data}->{datatype} eq $self->_item_column && $entry->{object}->can('part')) { |
... | ... | |
266 | 268 |
$i++; |
267 | 269 |
} |
268 | 270 |
|
271 |
$self->add_info_columns($self->_order_column, |
|
272 |
{ header => $::locale->text('datatype'), method => 'datatype' }); |
|
273 |
$self->add_info_columns($self->_item_column, |
|
274 |
{ header => $::locale->text('datatype'), method => 'datatype' }); |
|
275 |
|
|
269 | 276 |
$self->add_info_columns($self->_order_column, |
270 | 277 |
{ header => $::locale->text('Customer/Vendor'), method => 'vc_name' }); |
271 | 278 |
# Todo: access via ->[0] ok? Better: search first order column and use this |
Auch abrufbar als: Unified diff
CsvImport Aufträge: Datentyp der Zeile als Information im Bericht anzeigen.