Revision d9ff130d
Von Moritz Bunkus vor mehr als 4 Jahren hinzugefügt
bin/mozilla/io.pl | ||
---|---|---|
2092 | 2092 |
$::form->{language} = $::form->get_template_language(\%::myconfig); |
2093 | 2093 |
$::form->{language} = "_" . $::form->{language}; |
2094 | 2094 |
|
2095 |
my %body_params = (record_email => $record_email); |
|
2096 |
if (($::form->{type} eq 'invoice') && $::form->{direct_debit}) { |
|
2097 |
$body_params{translation_type} = "preset_text_invoice_direct_debit"; |
|
2098 |
$body_params{fallback_translation_type} = "preset_text_invoice"; |
|
2099 |
} |
|
2100 |
|
|
2095 | 2101 |
my $email_form = { |
2096 | 2102 |
to => $email, |
2097 | 2103 |
cc => $email_cc, |
2098 | 2104 |
subject => $::form->generate_email_subject, |
2099 |
message => $::form->generate_email_body('record_email' => $record_email),
|
|
2105 |
message => $::form->generate_email_body(%body_params),
|
|
2100 | 2106 |
attachment_filename => $::form->generate_attachment_filename, |
2101 | 2107 |
js_send_function => 'kivi.SalesPurchase.send_email()', |
2102 | 2108 |
}; |
Auch abrufbar als: Unified diff
E-Mail-Versand: vorbelegter Text für Rechnungen mit aktiviertem Bankeinzug