Kosmetik: alignment
authorMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 16 Oct 2013 12:02:09 +0000 (14:02 +0200)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Thu, 3 Apr 2014 12:19:21 +0000 (14:19 +0200)
SL/DB/PeriodicInvoicesConfig.pm

index 9bd5e1d..dba2795 100644 (file)
@@ -80,8 +80,8 @@ sub calculate_invoice_dates {
   my ($self, %params) = @_;
 
   my $period_len = $self->get_period_length;
-  my $cur_date   = $self->first_billing_date        || $self->start_date;
-  my $end_date   = $self->end_date                  || DateTime->today_local->add(years => 10);
+  my $cur_date   = $self->first_billing_date || $self->start_date;
+  my $end_date   = $self->end_date           || DateTime->today_local->add(years => 10);
   my $start_date = $params{past_dates} ? undef : $self->get_previous_invoice_date;
   $start_date    = $start_date         ? $start_date->subtract(days => 1) : $cur_date->clone;