X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FCsvImportProfile.pm;h=8797a7a4925d3d09da74503d19f63c0b0be7658b;hb=refs%2Fheads%2Fswiss;hp=9980ad52865b64e6262c5549888c7d08c1fda4e0;hpb=15f58ff3dfd79651a95535b53f864ea0e8cb6620;p=kivitendo-erp.git diff --git a/SL/DB/CsvImportProfile.pm b/SL/DB/CsvImportProfile.pm index 9980ad528..8797a7a49 100644 --- a/SL/DB/CsvImportProfile.pm +++ b/SL/DB/CsvImportProfile.pm @@ -34,43 +34,6 @@ sub new_with_default { sub set_defaults { my ($self) = @_; - - 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', - ); - } elsif ($self->type eq 'orders') { - $self->_set_defaults(order_column => $::locale->text('Order'), - item_column => $::locale->text('OrderItem'), - max_amount_diff => 0.02, - ); - } elsif ($self->type eq 'mt940') { - $self->_set_defaults(charset => 'UTF8', - sep_char => ';', - numberformat => '1000.00', - update_policy => 'skip', - ); - } elsif ($self->type eq 'bank_transactions') { - $self->_set_defaults(charset => 'UTF8', - update_policy => 'skip', - ); - } else { - $self->_set_defaults(table => 'customer'); - } - - # TODO: move the defaults into their own controller - # defaults can only be set once, so use these values as default if they - # haven't already been set above for one of the special import types - # If the values have been set above they won't be overwritten here: - $self->_set_defaults(sep_char => ',', quote_char => '"', escape_char => '"',