X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/b0614efa81a8ecf8026e28cf0a55f051236add00..dac0c31d4a35ce06fba77bfa64d5b314ce92dcd0:/SL/Controller/BankTransaction.pm 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'; };