From dac0c31d4a35ce06fba77bfa64d5b314ce92dcd0 Mon Sep 17 00:00:00 2001 From: "G. Richardson" Date: Wed, 1 Jul 2015 18:11:42 +0200 Subject: [PATCH] =?utf8?q?Revert=20"Banktransactions=20-=20beim=20Speicher?= =?utf8?q?n=20der=20Rechnung=20Zahlungsart=20pr=C3=BCfen"?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This reverts commit 8809a4d1a4b4d3e5b3de31af94c0679dabfacc28. Das funktioniert so nicht. --- SL/Controller/BankTransaction.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/SL/Controller/BankTransaction.pm b/SL/Controller/BankTransaction.pm index a41957d24..30875038c 100644 --- a/SL/Controller/BankTransaction.pm +++ b/SL/Controller/BankTransaction.pm @@ -24,7 +24,6 @@ use SL::DB::Tax; use SL::DB::Draft; use SL::DB::BankAccount; use SL::Presenter; -use SL::DB::Helper::Payment qw(validate_payment_type); use List::Util qw(max); use Rose::Object::MakeMethods::Generic @@ -374,9 +373,8 @@ sub action_save_invoices { foreach my $invoice (@invoices) { my $payment_type; - if ( defined $skonto_hash->{"$bt_id"} ) { + if (@{ $skonto_hash->{"$bt_id"} }) { $payment_type = shift(@{ $skonto_hash->{"$bt_id"} }); - SL::DB::Helper::Payment->validate_payment_type($payment_type); } else { $payment_type = 'without_skonto'; }; -- 2.20.1