From 9f1c7dc26c7358714dfead607c933ca3e98bb178 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 24 Sep 2014 09:54:01 +0200 Subject: [PATCH] =?utf8?q?Finanzcontrolling:=20Auftr=C3=A4ge=20mit=20wiedR?= =?utf8?q?ech=20auf=20ganzes=20Jahr=20hochrechnen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/FinancialControllingReport.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/Controller/FinancialControllingReport.pm b/SL/Controller/FinancialControllingReport.pm index 50760a5f7..79bb8d072 100644 --- a/SL/Controller/FinancialControllingReport.pm +++ b/SL/Controller/FinancialControllingReport.pm @@ -122,7 +122,7 @@ sub calculate_data { if ($order->periodic_invoices_config) { my @dates = $order->periodic_invoices_config->calculate_invoice_dates(past_dates => 1, end_date => DateTime->today_local); - $order->{net_amount} = $order->netamount * scalar(@dates); + $order->{net_amount} = $order->netamount * (12 / $order->periodic_invoices_config->get_period_length); } else { $order->{net_amount} = $order->netamount; -- 2.20.1