Revision a031b820
Von Bernd Bleßmann vor mehr als 3 Jahren hinzugefügt
SL/DN.pm | ||
---|---|---|
505 | 505 |
$mail->{attachments} = $form->{DUNNING_PDFS_EMAIL}; |
506 | 506 |
} |
507 | 507 |
|
508 |
$query = qq|SELECT id FROM dunning WHERE dunning_id = ?|; |
|
509 |
my @ids = selectall_array_query($form, $dbh, $query, $dunning_id); |
|
510 |
$mail->{record_id} = \@ids; |
|
511 |
$mail->{record_type} = 'dunning'; |
|
512 |
|
|
508 | 513 |
$mail->send(); |
509 | 514 |
|
510 | 515 |
$main::lxdebug->leave_sub(); |
SL/Mailer.pm | ||
---|---|---|
57 | 57 |
letter => 'letter', |
58 | 58 |
purchase_delivery_order => 'delivery_orders', |
59 | 59 |
sales_delivery_order => 'delivery_orders', |
60 |
dunning => 'dunning', |
|
60 | 61 |
); |
61 | 62 |
|
62 | 63 |
sub new { |
... | ... | |
421 | 422 |
|
422 | 423 |
If $self->{journalentry} and either $self->{record_id} or $::form->{id} (checked in |
423 | 424 |
this order) exist a record link from record to email journal is created. |
425 |
It is possible to provide an array reference with more than one id in |
|
426 |
$self->{record_id} or $::form->{id}. In this case all records are linked to |
|
427 |
the mail. |
|
424 | 428 |
Will fail silently if record_link creation wasn't successful (same behaviour as |
425 | 429 |
_store_in_journal). |
426 | 430 |
|
Auch abrufbar als: Unified diff
Verknüpfung zum E-Mail-Journal für Mahnungen.