From 65f429ca90d0cd94efbb89290561402631196886 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Wed, 25 Jan 2017 01:34:59 +0100 Subject: [PATCH] =?utf8?q?CsvImport=20Auftr=C3=A4ge:=20Datentyp=20der=20Ze?= =?utf8?q?ile=20als=20Information=20im=20Bericht=20anzeigen.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/CsvImport/Order.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/SL/Controller/CsvImport/Order.pm b/SL/Controller/CsvImport/Order.pm index 21273347b..7649feedb 100644 --- a/SL/Controller/CsvImport/Order.pm +++ b/SL/Controller/CsvImport/Order.pm @@ -255,6 +255,8 @@ sub check_objects { foreach my $entry (@{ $self->controller->data }) { $self->controller->track_progress(progress => $i/$num_data * 100) if $i % 100 == 0; + $entry->{info_data}->{datatype} = $entry->{raw_data}->{datatype}; + if ($entry->{raw_data}->{datatype} eq $self->_order_column) { $self->handle_order($entry); } elsif ($entry->{raw_data}->{datatype} eq $self->_item_column && $entry->{object}->can('part')) { @@ -266,6 +268,11 @@ sub check_objects { $i++; } + $self->add_info_columns($self->_order_column, + { header => $::locale->text('datatype'), method => 'datatype' }); + $self->add_info_columns($self->_item_column, + { header => $::locale->text('datatype'), method => 'datatype' }); + $self->add_info_columns($self->_order_column, { header => $::locale->text('Customer/Vendor'), method => 'vc_name' }); # Todo: access via ->[0] ok? Better: search first order column and use this -- 2.20.1