From: Bernd Bleßmann Date: Wed, 25 Jan 2017 00:34:59 +0000 (+0100) Subject: CsvImport Aufträge: Datentyp der Zeile als Information im Bericht anzeigen. X-Git-Tag: release-3.5.4~1640 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=65f429ca90d0cd94efbb89290561402631196886;p=kivitendo-erp.git CsvImport Aufträge: Datentyp der Zeile als Information im Bericht anzeigen. --- 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