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';
};