Revision 5be34ccd
Von Jan Büren vor etwa 2 Jahren hinzugefügt
SL/BackgroundJob/CreatePeriodicInvoices.pm | ||
---|---|---|
107 | 107 |
my $config = shift; |
108 | 108 |
my $period_start_date = shift; |
109 | 109 |
|
110 |
my $period_end_date = $config->periodicity eq 'o'
|
|
111 |
? $period_start_date->clone->add(months => $config->get_order_value_period_length)->subtract(days => 1)
|
|
112 |
: $period_start_date->clone->add(months => $config->get_billing_period_length) ->subtract(days => 1); |
|
110 |
my $period_length = $config->periodicity eq 'o' ? $config->get_order_value_period_length : $config->get_billing_period_length;
|
|
111 |
my $period_end_date = $period_start_date->clone->add(months => $period_length)->subtract(days => 1);
|
|
112 |
|
|
113 | 113 |
my @month_names = ('', |
114 | 114 |
$::locale->text('January'), $::locale->text('February'), $::locale->text('March'), $::locale->text('April'), $::locale->text('May'), $::locale->text('June'), |
115 | 115 |
$::locale->text('July'), $::locale->text('August'), $::locale->text('September'), $::locale->text('October'), $::locale->text('November'), $::locale->text('December')); |
Auch abrufbar als: Unified diff
Formatierung/Verschönerung zum Commit von gerade (Abrechnungsperiode)