Revision 4eda5c73
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/BackgroundJob/CreatePeriodicInvoices.pm | ||
---|---|---|
75 | 75 |
my $period_end_date = $period_start_date->clone->truncate(to => 'month')->add(months => $config->get_period_length)->subtract(days => 1); |
76 | 76 |
|
77 | 77 |
my @month_names = ('', |
78 |
'Januar', 'Februar', 'März', 'April', 'Mai', 'Juni',
|
|
79 |
'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember');
|
|
78 |
$::locale->text('January'), $::locale->text('February'), $::locale->text('March'), $::locale->text('April'), $::locale->text('May'), $::locale->text('June'),
|
|
79 |
$::locale->text('July'), $::locale->text('August'), $::locale->text('September'), $::locale->text('October'), $::locale->text('November'), $::locale->text('December'));
|
|
80 | 80 |
|
81 | 81 |
my $vars = { current_quarter => $period_start_date->quarter, |
82 | 82 |
previous_quarter => $period_start_date->clone->subtract(months => 3)->quarter, |
Auch abrufbar als: Unified diff
Periodische Rechnungen: Monatsnamen nicht im Script hardcoden
Abgesehen davon, dass es extrem unschöner Stil ist, werden ohne "use
utf8;" dann auch die Umlaute nicht richtig behandelt.