From 11d4b9d006301a9a0791e06df991a94752ed6b3c Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 26 Aug 2014 13:29:59 +0200 Subject: [PATCH] Finanzcontrollingbericht: wiedk. Rechnungen vom Enddatum immer bis heute MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Das konfigurierte Enddatum ist nur dann relevant, wenn die wiederkehrende Rechnung gekündigt wurde. Ansonsten wird sie automatisch verlängert, sprich ein maximales Enddatum gibt es dabei nicht. --- 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 4ffaabd09..4d0805446 100644 --- a/SL/Controller/FinancialControllingReport.pm +++ b/SL/Controller/FinancialControllingReport.pm @@ -120,7 +120,7 @@ sub calculate_data { $order->{billable_amount} = $order->{delivered_amount} - $order->{billed_amount}; if ($order->periodic_invoices_config) { - my @dates = $order->periodic_invoices_config->calculate_invoice_dates(past_dates => 1, end_date => $order->periodic_invoices_config->end_date || DateTime->today_local); + my @dates = $order->periodic_invoices_config->calculate_invoice_dates(past_dates => 1, end_date => DateTime->today_local); $order->{net_amount} = $order->netamount * scalar(@dates); } else { -- 2.20.1