From f25e6eaa202ee67e5e367d23b90d6aa8d7275a4e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Wed, 23 Sep 2015 13:41:44 +0200 Subject: [PATCH] Auftrags-Controller: leeres Array taxes anlegen, um "undef-Fehler" zu vermeiden --- SL/Controller/Order.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index 25ec07ca6..17e1d7d31 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -445,6 +445,7 @@ sub _recalc { $self->order->currency_id($::instance_conf->get_currency_id()); my %pat = $self->order->calculate_prices_and_taxes(); + $self->{taxes} = []; foreach my $tax_chart_id (keys %{ $pat{taxes} }) { my $tax = SL::DB::Manager::Tax->find_by(chart_id => $tax_chart_id); -- 2.20.1