Auftrags-Controller: leeres Array taxes anlegen, um "undef-Fehler" zu vermeiden
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Wed, 23 Sep 2015 11:41:44 +0000 (13:41 +0200)
committerG. Richardson <information@kivitendo-premium.de>
Mon, 16 Nov 2015 15:15:58 +0000 (16:15 +0100)
SL/Controller/Order.pm

index 25ec07c..17e1d7d 100644 (file)
@@ -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);