From 180e8de7adfb39c1a2b9f5476c5e28d6b142811a Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 16 Oct 2013 14:02:09 +0200 Subject: [PATCH] Kosmetik: alignment --- SL/DB/PeriodicInvoicesConfig.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/DB/PeriodicInvoicesConfig.pm b/SL/DB/PeriodicInvoicesConfig.pm index 9bd5e1d7e..dba27952d 100644 --- a/SL/DB/PeriodicInvoicesConfig.pm +++ b/SL/DB/PeriodicInvoicesConfig.pm @@ -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; -- 2.20.1