Revision 66869d3f
Von Jan Büren vor fast 3 Jahren hinzugefügt
SL/Controller/Order.pm | ||
---|---|---|
566 | 566 |
language_id => $::form->{language_id}, |
567 | 567 |
translation_type =>"preset_text_periodic_invoices_email_body"), |
568 | 568 |
); |
569 |
# for older configs, replace email preset text if not yet set. |
|
570 |
$config->email_subject(GenericTranslations->get( |
|
571 |
language_id => $::form->{language_id}, |
|
572 |
translation_type =>"preset_text_periodic_invoices_email_subject") |
|
573 |
) unless $config->email_subject; |
|
574 |
|
|
575 |
$config->email_body(GenericTranslations->get( |
|
576 |
language_id => $::form->{language_id}, |
|
577 |
translation_type => "salutation_general") |
|
578 |
. GenericTranslations->get( |
|
579 |
language_id => $::form->{language_id}, |
|
580 |
translation_type => "salutation_punctuation_mark") . "\n\n" |
|
581 |
. GenericTranslations->get( |
|
582 |
language_id => $::form->{language_id}, |
|
583 |
translation_type =>"preset_text_periodic_invoices_email_body") |
|
584 |
) unless $config->email_body; |
|
585 |
|
|
569 | 586 |
$config->periodicity('m') if none { $_ eq $config->periodicity } @SL::DB::PeriodicInvoicesConfig::PERIODICITIES; |
570 | 587 |
$config->order_value_periodicity('p') if none { $_ eq $config->order_value_periodicity } ('p', @SL::DB::PeriodicInvoicesConfig::ORDER_VALUE_PERIODICITIES); |
571 | 588 |
|
Auch abrufbar als: Unified diff
OrderController: Wiederkehrende Rechnungen: vorbelegte E-Mail-Texte setzen falls leer