From a38193700a542081a1962820889f19c07c31baaf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Tue, 22 Sep 2015 12:22:59 +0200 Subject: [PATCH] Auftrags-Controller: hash ref richtig dereferenzieren. --- SL/Controller/Order.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index e3f45a8df..b00b089ad 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -395,7 +395,7 @@ sub _recalc { foreach my $tax_chart_id (keys %{ $pat{taxes} }) { my $tax = SL::DB::Manager::Tax->find_by(chart_id => $tax_chart_id); - my @amount_keys = grep { $pat{amounts}->{$_}->{tax_id} == $tax->id } keys $pat{amounts}; + my @amount_keys = grep { $pat{amounts}->{$_}->{tax_id} == $tax->id } keys %{ $pat{amounts} }; push(@{ $self->{taxes} }, { amount => $pat{taxes}->{$tax_chart_id}, netamount => $pat{amounts}->{$amount_keys[0]}->{amount}, tax => $tax }); -- 2.20.1