Revision 80db1ffd
Von Tamino Steinert vor 5 Monaten hinzugefügt
SL/BackgroundJob/CreatePeriodicInvoices.pm | ||
---|---|---|
22 | 22 |
use SL::Mailer; |
23 | 23 |
use SL::Util qw(trim); |
24 | 24 |
use SL::System::Process; |
25 |
use SL::Locale::String qw(t8); |
|
25 | 26 |
|
26 | 27 |
sub create_job { |
27 | 28 |
$_[0]->create_standard_job('0 3 1 * *'); # first day of month at 3:00 am |
... | ... | |
193 | 194 |
$invoice = SL::DB::Invoice->new_from($order, honor_recurring_billing_mode => 1); |
194 | 195 |
|
195 | 196 |
my $intnotes = $invoice->intnotes ? $invoice->intnotes . "\n\n" : ''; |
196 |
$intnotes .= "Automatisch am " . DateTime->today_local->to_lxoffice . " erzeugte Rechnung";
|
|
197 |
$intnotes .= t8("Automatic created invoice on #1.", DateTime->today_local->to_lxoffice);
|
|
197 | 198 |
|
198 | 199 |
$invoice->assign_attributes( |
199 | 200 |
intnotes => $intnotes, |
... | ... | |
489 | 490 |
Iterate over all periodic invoice configurations, extend the end date if |
490 | 491 |
applicable, get all open orders from the |
491 | 492 |
|
492 |
=head1 TOTO |
|
493 |
|
|
494 |
=over 4 |
|
495 |
|
|
496 |
=item * |
|
497 |
|
|
498 |
Strings like month names are hardcoded to German in this file. |
|
499 |
|
|
500 |
=back |
|
501 |
|
|
502 | 493 |
=head1 AUTHOR |
503 | 494 |
|
504 | 495 |
Moritz Bunkus E<lt>m.bunkus@linet-services.deE<gt> |
locale/de/all | ||
---|---|---|
460 | 460 |
'Auto Send?' => 'Auto. Versand?', |
461 | 461 |
'Automatic' => 'automatisch', |
462 | 462 |
'Automatic Foreign Exchange Bank Fees' => 'Automatische Bankgebühren für Auslandsüberweisungen', |
463 |
'Automatic created invoice on #1.' => 'Automatisch am #1 erzeugte Rechnung', |
|
463 | 464 |
'Automatic date calculation' => 'Automatische Datumsberechnung', |
464 | 465 |
'Automatic deletion of leading, trailing and excessive (repetitive) spaces in customer or vendor names' => 'Automatisches Löschen von voran-/nachgestellten und aufeinanderfolgenden Leerzeichen im Kunden- oder Lieferantennamen', |
465 | 466 |
'Automatic deletion of leading, trailing and excessive (repetitive) spaces in part description and part notes. Affects the CSV import as well.' => 'Automatisches Löschen von voran-/nachgestellten und aufeinanderfolgenden Leerzeichen in Artikelbeschreibungen und -bemerkungen. Betrifft auch den CSV-Import.', |
locale/en/all | ||
---|---|---|
460 | 460 |
'Auto Send?' => '', |
461 | 461 |
'Automatic' => '', |
462 | 462 |
'Automatic Foreign Exchange Bank Fees' => '', |
463 |
'Automatic created invoice on #1.' => '', |
|
463 | 464 |
'Automatic date calculation' => '', |
464 | 465 |
'Automatic deletion of leading, trailing and excessive (repetitive) spaces in customer or vendor names' => '', |
465 | 466 |
'Automatic deletion of leading, trailing and excessive (repetitive) spaces in part description and part notes. Affects the CSV import as well.' => '', |
Auch abrufbar als: Unified diff
S:B:CreatePeriodicInvoices: Übersetze hinzugefügte interne Notiz