From: Moritz Bunkus Date: Wed, 24 Sep 2014 07:54:01 +0000 (+0200) Subject: Finanzcontrolling: Aufträge mit wiedRech auf ganzes Jahr hochrechnen X-Git-Tag: release-3.2.0~24 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=9f1c7dc26c7358714dfead607c933ca3e98bb178;p=kivitendo-erp.git Finanzcontrolling: Aufträge mit wiedRech auf ganzes Jahr hochrechnen --- 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;