From: G. Richardson Date: Wed, 1 Jul 2015 16:11:42 +0000 (+0200) Subject: Revert "Banktransactions - beim Speichern der Rechnung Zahlungsart prüfen" X-Git-Tag: release-3.3.0beta~34^2~2 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=dac0c31d4a35ce06fba77bfa64d5b314ce92dcd0;p=kivitendo-erp.git Revert "Banktransactions - beim Speichern der Rechnung Zahlungsart prüfen" This reverts commit 8809a4d1a4b4d3e5b3de31af94c0679dabfacc28. Das funktioniert so nicht. --- 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'; };