Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision ca5bdfd6

Von Moritz Bunkus vor etwa 4 Jahren hinzugefügt

  • ID ca5bdfd69e7a56cee4ce8ab4b6ddbbe486793ce2
  • Vorgänger aeaaea52
  • Nachfolger dc7162f3

Wiederkehrende Rechnungen: Anrede in E-Mail-Body-Vorbelegung verwenden

Unterschiede anzeigen:

bin/mozilla/oe.pl
2180 2180
               };
2181 2181
  }
2182 2182
  # for older configs, replace email preset text if not yet set.
2183
  $config->{email_subject} ||= GenericTranslations->get(language_id => $::form->{lanuage_id},
2184
                                              translation_type =>"preset_text_periodic_invoices_email_subject");
2185
  $config->{email_body}    ||= GenericTranslations->get(language_id => $::form->{lanuage_id},
2186
                                              translation_type =>"preset_text_periodic_invoices_email_body");
2183
  $config->{email_subject} ||= GenericTranslations->get(language_id => $::form->{lanuage_id}, translation_type => "preset_text_periodic_invoices_email_subject");
2184
  $config->{email_body}    ||= GenericTranslations->get(language_id => $::form->{lanuage_id}, translation_type => "salutation_general")
2185
                             . GenericTranslations->get(language_id => $::form->{lanuage_id}, translation_type => "salutation_punctuation_mark")
2186
                             . "\n\n"
2187
                             . GenericTranslations->get(language_id => $::form->{lanuage_id}, translation_type => "preset_text_periodic_invoices_email_body");
2188
  $config->{email_body}      =~ s{\A[ \n\r]+|[ \n\r]+\Z}{}g;
2187 2189

  
2188 2190
  $config->{periodicity}             = 'm' if none { $_ eq $config->{periodicity}             }       @SL::DB::PeriodicInvoicesConfig::PERIODICITIES;
2189 2191
  $config->{order_value_periodicity} = 'p' if none { $_ eq $config->{order_value_periodicity} } ('p', @SL::DB::PeriodicInvoicesConfig::ORDER_VALUE_PERIODICITIES);

Auch abrufbar als: Unified diff