PeriodicInvoices: Rechnugnen nicht einen Tag zu früh erstellen, das gibt massig Probleme
authorSven Schöling <s.schoeling@linet-services.de>
Thu, 19 Jun 2014 09:35:32 +0000 (11:35 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Thu, 19 Jun 2014 10:03:18 +0000 (12:03 +0200)
SL/BackgroundJob/CreatePeriodicInvoices.pm

index dc740cc..1e55ef9 100644 (file)
@@ -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 {