BankTransactions: typo in deref
authorSven Schöling <s.schoeling@linet-services.de>
Fri, 29 May 2015 12:55:38 +0000 (14:55 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Fri, 29 May 2015 12:55:38 +0000 (14:55 +0200)
SL/Controller/BankTransaction.pm

index 47089bd..3087503 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 (@{ $skonto_hash->{"$bt_id"} }) {
+        $payment_type = shift(@{ $skonto_hash->{"$bt_id"} });
       } else {
         $payment_type = 'without_skonto';
       };