From 0966a8326e5c0d6b46cb4ea836386ef5fca318ec Mon Sep 17 00:00:00 2001 From: "G. Richardson" Date: Wed, 1 Jul 2015 18:14:56 +0200 Subject: [PATCH] =?utf8?q?Skonto=20-=20korrekte=20Variablenpr=C3=BCfung=20?= =?utf8?q?payment=5Fterm?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit für den Fall, daß kein payment_term bei den ausgewählten Rechnungen gesetzt ist. --- 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 30875038c..a8d424c2d 100644 --- a/SL/Controller/BankTransaction.pm +++ b/SL/Controller/BankTransaction.pm @@ -373,7 +373,7 @@ sub action_save_invoices { foreach my $invoice (@invoices) { my $payment_type; - if (@{ $skonto_hash->{"$bt_id"} }) { + if ( defined $skonto_hash->{"$bt_id"} ) { $payment_type = shift(@{ $skonto_hash->{"$bt_id"} }); } else { $payment_type = 'without_skonto'; -- 2.20.1