From 895be6777ba27c763a0a450633616106e6039d46 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Tue, 10 Jan 2017 12:36:53 +0100 Subject: [PATCH] =?utf8?q?CsvImport=20Auftr=C3=A4ge:=20Auftragsnummer=20ni?= =?utf8?q?cht=20mit=20SL::TransNumber=20setzen,=20=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit denn dies wird automatisch über SL::DB:Order beim Speichern gemacht. --- SL/Controller/CsvImport/Order.pm | 6 ------ 1 file changed, 6 deletions(-) diff --git a/SL/Controller/CsvImport/Order.pm b/SL/Controller/CsvImport/Order.pm index 68863094f..e6a1fc00e 100644 --- a/SL/Controller/CsvImport/Order.pm +++ b/SL/Controller/CsvImport/Order.pm @@ -677,12 +677,6 @@ sub save_objects { next if $entry->{raw_data}->{datatype} ne $self->_order_column; next if @{ $entry->{errors} }; - if (!$entry->{object}->ordnumber) { - my $number = SL::TransNumber->new(type => 'sales_order', - save => 1); - $entry->{object}->ordnumber($number->create_unique()); - } - push @{ $objects_to_save }, $entry; } -- 2.20.1