Revision f7386a86
Von Tamino Steinert vor mehr als 1 Jahr hinzugefügt
SL/DB/EmailJournalAttachment.pm | ||
---|---|---|
# copy file to webdav folder
|
||
if ($::instance_conf->get_webdav_documents) {
|
||
my $record_type = $record->record_type;
|
||
# TODO: file and webdav use different types for ap_transaction
|
||
# TODO: file and webdav use different types
|
||
$record_type = 'accounts_payable' if $record_type eq 'ap_transaction';
|
||
$record_type = 'general_ledger' if $record_type eq 'ar_transaction';
|
||
$record_type = 'invoice' if $record_type eq 'invoice_storno';
|
||
my $webdav = SL::Webdav->new(
|
||
type => $record_type,
|
||
number => $record->record_number,
|
||
... | ... | |
# copy file to doc storage
|
||
if ($::instance_conf->get_doc_storage) {
|
||
my $record_type = $record->record_type;
|
||
# TODO: file and webdav use different types for ap_invoice
|
||
# TODO: file and webdav use different types
|
||
$record_type = 'purchase_invoice' if $record_type eq 'ap_transaction';
|
||
$record_type = 'invoice' if $record_type eq 'ar_transaction';
|
||
$record_type = 'invoice' if $record_type eq 'invoice_storno';
|
||
eval {
|
||
SL::File->save(
|
||
object_id => $record->id,
|
Auch abrufbar als: Unified diff
EmailJournal: Workflow angepasst