Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision f7386a86

Von Tamino Steinert vor etwa 1 Jahr hinzugefügt

  • ID f7386a86a56e7a6d97ac7f195676a12194c73318
  • Vorgänger d8f5353e
  • Nachfolger f7bee334

EmailJournal: Workflow angepasst

Unterschiede anzeigen:

SL/DB/EmailJournalAttachment.pm
17 17
  # copy file to webdav folder
18 18
  if ($::instance_conf->get_webdav_documents) {
19 19
    my $record_type = $record->record_type;
20
    # TODO: file and webdav use different types for ap_transaction
20
    # TODO: file and webdav use different types
21 21
    $record_type = 'accounts_payable' if $record_type eq 'ap_transaction';
22
    $record_type = 'general_ledger'   if $record_type eq 'ar_transaction';
23
    $record_type = 'invoice'          if $record_type eq 'invoice_storno';
22 24
    my $webdav = SL::Webdav->new(
23 25
      type     => $record_type,
24 26
      number   => $record->record_number,
......
37 39
  # copy file to doc storage
38 40
  if ($::instance_conf->get_doc_storage) {
39 41
    my $record_type = $record->record_type;
40
    # TODO: file and webdav use different types for ap_invoice
42
    # TODO: file and webdav use different types
41 43
    $record_type = 'purchase_invoice' if $record_type eq 'ap_transaction';
44
    $record_type = 'invoice'          if $record_type eq 'ar_transaction';
45
    $record_type = 'invoice'          if $record_type eq 'invoice_storno';
42 46
    eval {
43 47
      SL::File->save(
44 48
        object_id     => $record->id,

Auch abrufbar als: Unified diff