]> wagnertech.de Git - kivitendo-erp.git/commitdiff
Skonto - korrekte Variablenprüfung payment_term
authorG. Richardson <information@kivitendo-premium.de>
Wed, 1 Jul 2015 16:14:56 +0000 (18:14 +0200)
committerG. Richardson <information@kivitendo-premium.de>
Wed, 1 Jul 2015 16:14:56 +0000 (18:14 +0200)
für den Fall, daß kein payment_term bei den ausgewählten Rechnungen gesetzt ist.

SL/Controller/BankTransaction.pm

index 30875038ca79a6296cb276dd7b170bdf7ca13cea..a8d424c2daa355af73fa46db89af9d8f80a9a2ff 100644 (file)
@@ -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';