Revision 0d758a9d
Von Tamino Steinert vor 11 Monaten hinzugefügt
SL/AR.pm | ||
---|---|---|
42 | 42 |
use SL::IO; |
43 | 43 |
use SL::MoreCommon; |
44 | 44 |
use SL::DB::Default; |
45 |
use SL::DB::Invoice; |
|
46 |
use SL::DB::EmailJournal; |
|
45 | 47 |
use SL::DB::ValidityToken; |
46 | 48 |
use SL::TransNumber; |
47 | 49 |
use SL::Util qw(trim); |
... | ... | |
980 | 982 |
|
981 | 983 |
map { IO->set_datepaid(table => 'ar', id => $_, dbh => $dbh) } ($id, $new_id); |
982 | 984 |
|
985 |
if ($form->{workflow_email_journal_id}) { |
|
986 |
my $ar_transaction_storno = SL::DB::Invoice->new(id => $new_id)->load; |
|
987 |
my $email_journal = SL::DB::EmailJournal->new( |
|
988 |
id => delete $form->{workflow_email_journal_id} |
|
989 |
)->load; |
|
990 |
$email_journal->link_to_record_with_attachment( |
|
991 |
$ar_transaction_storno, |
|
992 |
delete $::form->{email_attachment_id} |
|
993 |
); |
|
994 |
} |
|
995 |
|
|
983 | 996 |
return 1; |
984 | 997 |
} |
985 | 998 |
|
Auch abrufbar als: Unified diff
Workflow: E-Mail → Debitorenbuchung hinzugefügt