Revision 2b81e2ee
Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt
SL/BackgroundJob/CreatePeriodicInvoices.pm | ||
---|---|---|
173 | 173 |
sub _calculate_dates { |
174 | 174 |
my $config = shift; |
175 | 175 |
|
176 |
my $cur_date = $config->start_date; |
|
176 |
my $cur_date = $config->first_billing_date || $config->start_date;
|
|
177 | 177 |
my $start_date = $config->get_previous_invoice_date || DateTime->new(year => 1970, month => 1, day => 1); |
178 | 178 |
my $end_date = $config->end_date || DateTime->new(year => 2100, month => 1, day => 1); |
179 | 179 |
my $tomorrow = DateTime->today_local->add(days => 1); |
Auch abrufbar als: Unified diff
Wiederkehrende Rechnung: "erste Rechnung erzeugen am" als Startdatum nutzen