Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 4289320a

Von Tamino Steinert vor etwa 1 Jahr hinzugefügt

  • ID 4289320a47d86eba56c943dbd5992ea9ebac2325
  • Vorgänger eb2794fe
  • Nachfolger 8d45322a

S:C:File: Alle Optionen für Belege eingeschaltet

Unterschiede anzeigen:

SL/Controller/File.pm
55 55
# model:  base name of the rose model
56 56
# right:  access right used for import
57 57
my %file_types = (
58
  'sales_quotation'             => { gen => 1, gltype => '',   dir =>'SalesQuotation',          model => 'Order',          right => 'import_ar'  },
59
  'sales_order_intake'          => { gen => 5, gltype => '',   dir =>'SalesOrderIntake',        model => 'Order',          right => 'import_ar'  },
60
  'sales_order'                 => { gen => 5, gltype => '',   dir =>'SalesOrder',              model => 'Order',          right => 'import_ar'  },
61
  'sales_delivery_order'        => { gen => 1, gltype => '',   dir =>'SalesDeliveryOrder',      model => 'DeliveryOrder',  right => 'import_ar'  },
62
  'sales_reclamation'           => { gen => 5, gltype => '',   dir =>'SalesReclamation',        model => 'Reclamation',    right => 'import_ar'  },
63
  'invoice'                     => { gen => 1, gltype => 'ar', dir =>'SalesInvoice',            model => 'Invoice',        right => 'import_ar'  },
64
  'invoice_for_advance_payment' => { gen => 1, gltype => 'ar', dir =>'SalesInvoice',            model => 'Invoice',        right => 'import_ar'  },
65
  'final_invoice'               => { gen => 1, gltype => 'ar', dir =>'SalesInvoice',            model => 'Invoice',        right => 'import_ar'  },
66
  'credit_note'                 => { gen => 1, gltype => '',   dir =>'CreditNote',              model => 'Invoice',        right => 'import_ar'  },
58
  'sales_quotation'             => { gen => 7, gltype => '',   dir =>'SalesQuotation',          model => 'Order',          right => 'import_ar'  },
59
  'sales_order_intake'          => { gen => 7, gltype => '',   dir =>'SalesOrderIntake',        model => 'Order',          right => 'import_ar'  },
60
  'sales_order'                 => { gen => 7, gltype => '',   dir =>'SalesOrder',              model => 'Order',          right => 'import_ar'  },
61
  'sales_delivery_order'        => { gen => 7, gltype => '',   dir =>'SalesDeliveryOrder',      model => 'DeliveryOrder',  right => 'import_ar'  },
62
  'sales_reclamation'           => { gen => 7, gltype => '',   dir =>'SalesReclamation',        model => 'Reclamation',    right => 'import_ar'  },
63
  'invoice'                     => { gen => 7, gltype => 'ar', dir =>'SalesInvoice',            model => 'Invoice',        right => 'import_ar'  },
64
  'invoice_for_advance_payment' => { gen => 7, gltype => 'ar', dir =>'SalesInvoice',            model => 'Invoice',        right => 'import_ar'  },
65
  'final_invoice'               => { gen => 7, gltype => 'ar', dir =>'SalesInvoice',            model => 'Invoice',        right => 'import_ar'  },
66
  'credit_note'                 => { gen => 7, gltype => '',   dir =>'CreditNote',              model => 'Invoice',        right => 'import_ar'  },
67 67
  'request_quotation'           => { gen => 7, gltype => '',   dir =>'RequestForQuotation',     model => 'Order',          right => 'import_ap'  },
68 68
  'purchase_quotation_intake'   => { gen => 7, gltype => '',   dir =>'PurchaseQuotationIntake', model => 'Order',          right => 'import_ap'  },
69 69
  'purchase_order'              => { gen => 7, gltype => '',   dir =>'PurchaseOrder',           model => 'Order',          right => 'import_ap'  },
70 70
  'purchase_delivery_order'     => { gen => 7, gltype => '',   dir =>'PurchaseDeliveryOrder',   model => 'DeliveryOrder',  right => 'import_ap'  },
71 71
  'purchase_reclamation'        => { gen => 7, gltype => '',   dir =>'PurchaseReclamation',     model => 'Reclamation',    right => 'import_ap'  },
72
  'purchase_invoice'            => { gen => 6, gltype => 'ap', dir =>'PurchaseInvoice',         model => 'PurchaseInvoice',right => 'import_ap'  },
72
  'purchase_invoice'            => { gen => 7, gltype => 'ap', dir =>'PurchaseInvoice',         model => 'PurchaseInvoice',right => 'import_ap'  },
73 73
  'supplier_delivery_order'     => { gen => 7, gltype => '',   dir =>'SupplierDeliveryOrder',   model => 'DeliveryOrder',  right => 'import_ap'  },
74 74
  'rma_delivery_order'          => { gen => 7, gltype => '',   dir =>'RMADeliveryOrder',        model => 'DeliveryOrder',  right => 'import_ar'  },
75 75
  'vendor'                      => { gen => 0, gltype => '',   dir =>'Vendor',                  model => 'Vendor',         right => 'xx'         },
......
93 93

  
94 94
sub action_list {
95 95
  my ($self) = @_;
96
  $main::lxdebug->dump(0, "TST: action_list", 1);
97

  
96 98

  
97 99
  my $is_json = 0;
98 100
  $is_json = 1 if $::form->{json};
......
420 422
                                      object_type => \@object_types,
421 423
                                      file_type   => $self->file_type,
422 424
                                     );
425
  $main::lxdebug->dump(0, "TST: files", \@files);
423 426

  
424 427
  $self->files(\@files);
425 428

  

Auch abrufbar als: Unified diff