X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=SL%2FDB%2FCsvImportProfile.pm;h=8797a7a4925d3d09da74503d19f63c0b0be7658b;hb=e852b156652474de1b5cb4b12b1a08d4954f69a6;hp=a0e1fa715c1765252f9fb15e6df89c29745f5502;hpb=f64be46da8e7aa38078141a08390a0f6560605fe;p=kivitendo-erp.git diff --git a/SL/DB/CsvImportProfile.pm b/SL/DB/CsvImportProfile.pm index a0e1fa715..8797a7a49 100644 --- a/SL/DB/CsvImportProfile.pm +++ b/SL/DB/CsvImportProfile.pm @@ -42,22 +42,6 @@ sub set_defaults { duplicates => 'no_check', ); - if ($self->type eq 'parts') { - my $bugru = SL::DB::Manager::Buchungsgruppe->find_by(description => { like => 'Standard%19%' }); - - $self->_set_defaults(sellprice_places => 2, - sellprice_adjustment => 0, - sellprice_adjustment_type => 'percent', - article_number_policy => 'update_prices', - shoparticle_if_missing => '0', - parts_type => 'part', - default_buchungsgruppe => ($bugru ? $bugru->id : undef), - apply_buchungsgruppe => 'all', - ); - } else { - $self->_set_defaults(table => 'customer'); - } - return $self; } @@ -105,6 +89,14 @@ sub clone_and_reset_deep { return $clone; } +sub flatten { + my ($self) = @_; + + return map { + $_->key => $_->value + } $self->settings; +} + # # hooks #