From bdb802cd8e3e47817058fb907f5fe577b3d5cf90 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 26 Aug 2014 11:16:24 +0200 Subject: [PATCH] Wiederkehrende Rechnungen: Variable period_end_date gefixt MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Das Periodenenddatum wird am Anfang der sub bereits richtig als »der letzte Tag innerhalb des Abrechnungszeitraumes« berechnet und darf hinterher daher nicht mehr auf den Monat abgeschnitten werden. --- SL/BackgroundJob/CreatePeriodicInvoices.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/BackgroundJob/CreatePeriodicInvoices.pm b/SL/BackgroundJob/CreatePeriodicInvoices.pm index 3b19811df..91e8efff9 100644 --- a/SL/BackgroundJob/CreatePeriodicInvoices.pm +++ b/SL/BackgroundJob/CreatePeriodicInvoices.pm @@ -98,7 +98,7 @@ sub _generate_time_period_variables { next_year => [ $period_start_date->clone->truncate(to => 'year')->add( years => 1), sub { $_[0]->year } ], period_start_date => [ $period_start_date->clone->truncate(to => 'month'), sub { $::locale->format_date(\%::myconfig, $_[0]) } ], - period_end_date => [ $period_end_date ->clone->truncate(to => 'month'), sub { $::locale->format_date(\%::myconfig, $_[0]) } ], + period_end_date => [ $period_end_date, sub { $::locale->format_date(\%::myconfig, $_[0]) } ], }; return $vars; -- 2.20.1