From 1feb4280006369334d558e208d15461cfd575165 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Mon, 19 Aug 2013 12:00:43 +0200 Subject: [PATCH] =?utf8?q?Unver=C3=A4nderte=20Methoden=20nicht=20auch=20in?= =?utf8?q?=20abgeleiteter=20Klasse=20definieren.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/CsvImport/BaseMulti.pm | 38 +--------------------------- 1 file changed, 1 insertion(+), 37 deletions(-) diff --git a/SL/Controller/CsvImport/BaseMulti.pm b/SL/Controller/CsvImport/BaseMulti.pm index fb2437a05..089d8d735 100644 --- a/SL/Controller/CsvImport/BaseMulti.pm +++ b/SL/Controller/CsvImport/BaseMulti.pm @@ -5,11 +5,6 @@ use strict; use List::MoreUtils qw(pairwise); use SL::Helper::Csv; -use SL::DB::Customer; -use SL::DB::Language; -use SL::DB::PaymentTerm; -use SL::DB::Vendor; -use SL::DB::Contact; use parent qw(SL::Controller::CsvImport::Base); @@ -76,6 +71,7 @@ sub run { $self->controller->info_headers($info_headers); my @objects = $self->csv->get_objects; + $self->controller->track_progress(progress => 70); my @raw_data = @{ $self->csv->get_data }; @@ -133,12 +129,6 @@ sub add_raw_data_columns { } } -sub add_cvar_raw_data_columns { - my ($self) = @_; - - map { $self->add_raw_data_columns($_) if exists $self->controller->data->[0]->{raw_data}->{$_} } @{ $self->cvar_columns }; -} - sub init_profile { my ($self) = @_; @@ -201,32 +191,6 @@ sub setup_displayable_columns { } } -sub add_cvar_columns_to_displayable_columns { - my ($self) = @_; - - $self->add_displayable_columns(map { { name => 'cvar_' . $_->name, - description => $::locale->text('#1 (custom variable)', $_->description) } } - @{ $self->all_cvar_configs }); -} - -sub init_existing_objects { - my ($self) = @_; - - eval "require " . $self->class; - $self->existing_objects($self->manager_class->get_all); -} - -sub init_class { - die "class not set"; -} - -sub init_manager_class { - my ($self) = @_; - - $self->class =~ m/^SL::DB::(.+)/; - $self->manager_class("SL::DB::Manager::" . $1); -} - sub is_multiplexed { 1 } 1; -- 2.20.1