]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Controller/BankTransaction.pm
Skonto - korrekte Variablenprüfung payment_term
[mfinanz.git] / SL / Controller / BankTransaction.pm
index 47089bdc9fc082ece360f76e619b76b2c85ab848..a8d424c2daa355af73fa46db89af9d8f80a9a2ff 100644 (file)
@@ -373,8 +373,8 @@ sub action_save_invoices {
 
     foreach my $invoice (@invoices) {
       my $payment_type;
-      if ( @$skonto_hash{"$bt_id"} ) {
-        $payment_type = shift( @$skonto_hash{"$bt_id"} );
+      if ( defined $skonto_hash->{"$bt_id"} ) {
+        $payment_type = shift(@{ $skonto_hash->{"$bt_id"} });
       } else {
         $payment_type = 'without_skonto';
       };