Revision 18a0b975
Von Tamino Steinert vor etwa 1 Jahr hinzugefügt
SL/AP.pm | ||
---|---|---|
44 | 44 |
use SL::DB::Draft; |
45 | 45 |
use SL::DB::Order; |
46 | 46 |
use SL::DB::PurchaseInvoice; |
47 |
use SL::DB::EmailJournal; |
|
47 | 48 |
use SL::DB::ValidityToken; |
48 | 49 |
use SL::Util qw(trim); |
49 | 50 |
use SL::DB; |
... | ... | |
1098 | 1099 |
|
1099 | 1100 |
map { IO->set_datepaid(table => 'ap', id => $_, dbh => $dbh) } ($id, $new_id); |
1100 | 1101 |
|
1102 |
if ($form->{workflow_email_journal_id}) { |
|
1103 |
my $ap_transaction_storno = SL::DB::PurchaseInvoice->new(id => $new_id)->load; |
|
1104 |
my $email_journal = SL::DB::EmailJournal->new( |
|
1105 |
id => delete $form->{workflow_email_journal_id} |
|
1106 |
)->load; |
|
1107 |
$email_journal->link_to_record_with_attachment( |
|
1108 |
$ap_transaction_storno, |
|
1109 |
delete $::form->{email_attachment_id} |
|
1110 |
); |
|
1111 |
} |
|
1112 |
|
|
1101 | 1113 |
return 1; |
1102 | 1114 |
} |
1103 | 1115 |
|
Auch abrufbar als: Unified diff
Workflow: E-Mail → Kreditorenbuchung hinzugefügt