X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FController%2FCsvImport%2FShipto.pm;h=1d2fdd7f6e707ebfdb8bb5c4121b4cf51d10c5ff;hb=d402ad9bc8991a0631206930c9c5b238e5586931;hp=903c4b2ca07d5af6acdaea30ac90fe35c413bbd7;hpb=caf4380789ea2166eaf89f7a600406f850d64428;p=kivitendo-erp.git diff --git a/SL/Controller/CsvImport/Shipto.pm b/SL/Controller/CsvImport/Shipto.pm index 903c4b2ca..1d2fdd7f6 100644 --- a/SL/Controller/CsvImport/Shipto.pm +++ b/SL/Controller/CsvImport/Shipto.pm @@ -19,9 +19,17 @@ sub init_class { sub check_objects { my ($self) = @_; + $self->controller->track_progress(phase => 'building data', progress => 0); + + my $i; + my $num_data = scalar @{ $self->controller->data }; foreach my $entry (@{ $self->controller->data }) { + $self->controller->track_progress(progress => $i/$num_data * 100) if $i % 100 == 0; + $self->check_vc($entry, 'trans_id'); $entry->{object}->module('CT'); + } continue { + $i++; } $self->add_info_columns({ header => $::locale->text('Customer/Vendor'), method => 'vc_name' }); @@ -80,20 +88,6 @@ sub get_duplicate_check_fields { }; } -sub field_lengths { - return ( shiptoname => 75, - shiptodepartment_1 => 75, - shiptodepartment_2 => 75, - shiptostreet => 75, - shiptozipcode => 75, - shiptocity => 75, - shiptocountry => 75, - shiptocontact => 75, - shiptophone => 30, - shiptofax => 30, - ); -} - sub init_profile { my ($self) = @_; @@ -127,4 +121,4 @@ sub setup_displayable_columns { ); } -1; \ No newline at end of file +1;