From 753bc5ad7384f1efad15d5902568ec5924d4deeb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Thu, 23 Jun 2016 16:28:01 +0200 Subject: [PATCH] BankTransactions: Lieferantenfilter nicht benutzen, wenn... MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit kein fremder Konteninhaber existiert. Ansonsten wird da einfach nach einem zufälligen Vendor gefiltert der kein Konto hat. --- SL/Controller/BankTransaction.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/Controller/BankTransaction.pm b/SL/Controller/BankTransaction.pm index 77f5b963e..10c64bf70 100644 --- a/SL/Controller/BankTransaction.pm +++ b/SL/Controller/BankTransaction.pm @@ -191,7 +191,7 @@ sub action_create_invoice { } #Filter drafts - @filtered_drafts = grep { $_->{vendor_id} == $vendor_of_transaction->id } @filtered_drafts if $vendor_of_transaction; + @filtered_drafts = grep { $_->{vendor_id} == $vendor_of_transaction->id } @filtered_drafts if $vendor_of_transaction && $self->{transaction}->{remote_account_number}; my $all_vendors = SL::DB::Manager::Vendor->get_all(); -- 2.20.1