From: Sven Schöling <s.schoeling@linet-services.de>
Date: Thu, 19 Jun 2014 09:35:32 +0000 (+0200)
Subject: PeriodicInvoices: Rechnugnen nicht einen Tag zu früh erstellen, das gibt massig Probleme
X-Git-Tag: release-3.2.0beta~411^2~53
X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=2a0a0b320989e82f5c0f1ab8e291fc281d1b939d;p=kivitendo-erp.git

PeriodicInvoices: Rechnugnen nicht einen Tag zu früh erstellen, das gibt massig Probleme
---

diff --git a/SL/BackgroundJob/CreatePeriodicInvoices.pm b/SL/BackgroundJob/CreatePeriodicInvoices.pm
index dc740cc30..1e55ef951 100644
--- a/SL/BackgroundJob/CreatePeriodicInvoices.pm
+++ b/SL/BackgroundJob/CreatePeriodicInvoices.pm
@@ -189,7 +189,7 @@ sub _create_periodic_invoice {
 
 sub _calculate_dates {
   my ($config) = @_;
-  return $config->calculate_invoice_dates(end_date => DateTime->today_local->add(days => 1));
+  return $config->calculate_invoice_dates(end_date => DateTime->today_local);
 }
 
 sub _send_email {