From 0f2a7ae0c71f82f5945aac10100e0d6e866f90a3 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 10 Feb 2017 15:47:18 +0100 Subject: [PATCH] =?utf8?q?Bankauszug=20verbuchen:=20Gutschrifts-Fall=20?= =?utf8?q?=C3=BCber=20Aufruf=20der=20richtigen=20Funktion=20erkennen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit »type« bezieht sich nur auf die Spalte »type«, in der nicht zwischen Einkauf und Verkauf unterschieden wird. --- 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 871572783..00b4ff65f 100644 --- a/SL/Controller/BankTransaction.pm +++ b/SL/Controller/BankTransaction.pm @@ -659,7 +659,7 @@ sub save_single_bank_transaction { source => $source, memo => $memo, transdate => $bank_transaction->transdate->to_kivitendo); - } elsif ( $invoice->is_sales && $invoice->type eq 'credit_note' ) { + } elsif ( $invoice->is_sales && $invoice->invoice_type eq 'credit_note' ) { # no check for overpayment/multiple payments $invoice->pay_invoice(chart_id => $bank_transaction->local_bank_account->chart_id, trans_id => $invoice->id, -- 2.20.1