From: Moritz Bunkus Date: Wed, 16 Oct 2013 12:02:09 +0000 (+0200) Subject: Kosmetik: alignment X-Git-Tag: release-3.2.0beta~476^2~7 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=180e8de7adfb39c1a2b9f5476c5e28d6b142811a;p=kivitendo-erp.git Kosmetik: alignment --- 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;