Revision 5e212d30
Von Tamino Steinert vor 12 Monaten 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; |
... | ... | |
1106 | 1107 |
|
1107 | 1108 |
map { IO->set_datepaid(table => 'ap', id => $_, dbh => $dbh) } ($id, $new_id); |
1108 | 1109 |
|
1110 |
if ($form->{workflow_email_journal_id}) { |
|
1111 |
my $ap_transaction_storno = SL::DB::PurchaseInvoice->new(id => $new_id)->load; |
|
1112 |
my $email_journal = SL::DB::EmailJournal->new( |
|
1113 |
id => delete $form->{workflow_email_journal_id} |
|
1114 |
)->load; |
|
1115 |
$email_journal->link_to_record_with_attachment( |
|
1116 |
$ap_transaction_storno, |
|
1117 |
delete $::form->{email_attachment_id} |
|
1118 |
); |
|
1119 |
} |
|
1120 |
|
|
1109 | 1121 |
return 1; |
1110 | 1122 |
} |
1111 | 1123 |
|
Auch abrufbar als: Unified diff
Workflow: E-Mail → Kreditorenbuchung hinzugefügt