From: Sven Schöling Date: Tue, 22 Mar 2016 11:59:33 +0000 (+0100) Subject: CsvImport/ARTransactions: fehlerhafter check auf undefinierte tax_id X-Git-Tag: release-3.4.1~299 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=28b3d021efe0d7bbb4202b9ae5daa9b816ef0036;p=kivitendo-erp.git CsvImport/ARTransactions: fehlerhafter check auf undefinierte tax_id --- diff --git a/SL/Controller/CsvImport/ARTransaction.pm b/SL/Controller/CsvImport/ARTransaction.pm index 1d4179b75..ca16a012f 100644 --- a/SL/Controller/CsvImport/ARTransaction.pm +++ b/SL/Controller/CsvImport/ARTransaction.pm @@ -540,7 +540,7 @@ sub add_transactions_to_ar { $ar_entry = $entry; # remember as last ar_entry } elsif ( defined $ar_entry && $entry->{raw_data}->{datatype} eq $self->_transaction_column ) { - push @{ $entry->{errors} }, $::locale->text('no tax_id in acc_trans') unless $entry->{object}->tax_id || $entry->{object}->tax_id == 0; + push @{ $entry->{errors} }, $::locale->text('no tax_id in acc_trans') if !defined $entry->{object}->tax_id; next if @{ $entry->{errors} }; my $acc_trans_objects = $ar_entry->{object}->add_ar_amount_row(