Revision 7202756a
Von Bernd Bleßmann vor fast 3 Jahren hinzugefügt
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' => { gen => 5, gltype => '', dir =>'SalesOrder', model => 'Order', right => 'import_ar' }, |
|
60 |
'sales_delivery_order' => { gen => 1, gltype => '', dir =>'SalesDeliveryOrder', model => 'DeliveryOrder', right => 'import_ar' }, |
|
61 |
'invoice' => { gen => 1, gltype => 'ar', dir =>'SalesInvoice', model => 'Invoice', right => 'import_ar' }, |
|
62 |
'invoice_for_advance_payment' => { gen => 1, gltype => 'ar', dir =>'SalesInvoice', model => 'Invoice', right => 'import_ar' }, |
|
63 |
'final_invoice' => { gen => 1, gltype => 'ar', dir =>'SalesInvoice', model => 'Invoice', right => 'import_ar' }, |
|
64 |
'credit_note' => { gen => 1, gltype => '', dir =>'CreditNote', model => 'Invoice', right => 'import_ar' }, |
|
65 |
'request_quotation' => { gen => 7, gltype => '', dir =>'RequestForQuotation', model => 'Order', right => 'import_ap' }, |
|
66 |
'purchase_order' => { gen => 7, gltype => '', dir =>'PurchaseOrder', model => 'Order', right => 'import_ap' }, |
|
67 |
'purchase_delivery_order' => { gen => 7, gltype => '', dir =>'PurchaseDeliveryOrder',model => 'DeliveryOrder', right => 'import_ap' }, |
|
68 |
'purchase_invoice' => { gen => 6, gltype => 'ap', dir =>'PurchaseInvoice', model => 'PurchaseInvoice',right => 'import_ap' }, |
|
69 |
'vendor' => { gen => 0, gltype => '', dir =>'Vendor', model => 'Vendor', right => 'xx' }, |
|
70 |
'customer' => { gen => 1, gltype => '', dir =>'Customer', model => 'Customer', right => 'xx' }, |
|
71 |
'project' => { gen => 0, gltype => '', dir =>'Project', model => 'Project', right => 'xx' }, |
|
72 |
'part' => { gen => 0, gltype => '', dir =>'Part', model => 'Part', right => 'xx' }, |
|
73 |
'gl_transaction' => { gen => 6, gltype => 'gl', dir =>'GeneralLedger', model => 'GLTransaction', right => 'import_ap' }, |
|
74 |
'draft' => { gen => 0, gltype => '', dir =>'Draft', model => 'Draft', right => 'xx' }, |
|
75 |
'csv_customer' => { gen => 1, gltype => '', dir =>'Reports', model => 'Customer', right => 'xx' }, |
|
76 |
'csv_vendor' => { gen => 1, gltype => '', dir =>'Reports', model => 'Vendor', right => 'xx' }, |
|
77 |
'shop_image' => { gen => 0, gltype => '', dir =>'ShopImages', model => 'Part', right => 'xx' }, |
|
78 |
'letter' => { gen => 7, gltype => '', dir =>'Letter', model => 'Letter', right => 'sales_letter_edit | purchase_letter_edit' }, |
|
58 |
'sales_quotation' => { gen => 1, gltype => '', dir =>'SalesQuotation', model => 'Order', right => 'import_ar' },
|
|
59 |
'sales_order' => { gen => 5, gltype => '', dir =>'SalesOrder', model => 'Order', right => 'import_ar' },
|
|
60 |
'sales_delivery_order' => { gen => 1, gltype => '', dir =>'SalesDeliveryOrder', model => 'DeliveryOrder', right => 'import_ar' },
|
|
61 |
'invoice' => { gen => 1, gltype => 'ar', dir =>'SalesInvoice', model => 'Invoice', right => 'import_ar' },
|
|
62 |
'invoice_for_advance_payment' => { gen => 1, gltype => 'ar', dir =>'SalesInvoice', model => 'Invoice', right => 'import_ar' },
|
|
63 |
'final_invoice' => { gen => 1, gltype => 'ar', dir =>'SalesInvoice', model => 'Invoice', right => 'import_ar' },
|
|
64 |
'credit_note' => { gen => 1, gltype => '', dir =>'CreditNote', model => 'Invoice', right => 'import_ar' },
|
|
65 |
'request_quotation' => { gen => 7, gltype => '', dir =>'RequestForQuotation', model => 'Order', right => 'import_ap' },
|
|
66 |
'purchase_order' => { gen => 7, gltype => '', dir =>'PurchaseOrder', model => 'Order', right => 'import_ap' },
|
|
67 |
'purchase_delivery_order' => { gen => 7, gltype => '', dir =>'PurchaseDeliveryOrder',model => 'DeliveryOrder', right => 'import_ap' },
|
|
68 |
'purchase_invoice' => { gen => 6, gltype => 'ap', dir =>'PurchaseInvoice', model => 'PurchaseInvoice',right => 'import_ap' },
|
|
69 |
'vendor' => { gen => 0, gltype => '', dir =>'Vendor', model => 'Vendor', right => 'xx' },
|
|
70 |
'customer' => { gen => 1, gltype => '', dir =>'Customer', model => 'Customer', right => 'xx' },
|
|
71 |
'project' => { gen => 0, gltype => '', dir =>'Project', model => 'Project', right => 'xx' },
|
|
72 |
'part' => { gen => 0, gltype => '', dir =>'Part', model => 'Part', right => 'xx' },
|
|
73 |
'gl_transaction' => { gen => 6, gltype => 'gl', dir =>'GeneralLedger', model => 'GLTransaction', right => 'import_ap' },
|
|
74 |
'draft' => { gen => 0, gltype => '', dir =>'Draft', model => 'Draft', right => 'xx' },
|
|
75 |
'csv_customer' => { gen => 1, gltype => '', dir =>'Reports', model => 'Customer', right => 'xx' },
|
|
76 |
'csv_vendor' => { gen => 1, gltype => '', dir =>'Reports', model => 'Vendor', right => 'xx' },
|
|
77 |
'shop_image' => { gen => 0, gltype => '', dir =>'ShopImages', model => 'Part', right => 'xx' },
|
|
78 |
'letter' => { gen => 7, gltype => '', dir =>'Letter', model => 'Letter', right => 'sales_letter_edit | purchase_letter_edit' },
|
|
79 | 79 |
); |
80 | 80 |
|
81 | 81 |
#--- 4 locale ---# |
SL/File/Backend/Webdav.pm | ||
---|---|---|
113 | 113 |
# |
114 | 114 |
|
115 | 115 |
my %type_to_path = ( |
116 |
sales_quotation => 'angebote', |
|
117 |
sales_order => 'bestellungen', |
|
118 |
request_quotation => 'anfragen', |
|
119 |
purchase_order => 'lieferantenbestellungen', |
|
120 |
sales_delivery_order => 'verkaufslieferscheine', |
|
121 |
purchase_delivery_order => 'einkaufslieferscheine', |
|
122 |
credit_note => 'gutschriften', |
|
123 |
invoice => 'rechnungen', |
|
116 |
sales_quotation => 'angebote',
|
|
117 |
sales_order => 'bestellungen',
|
|
118 |
request_quotation => 'anfragen',
|
|
119 |
purchase_order => 'lieferantenbestellungen',
|
|
120 |
sales_delivery_order => 'verkaufslieferscheine',
|
|
121 |
purchase_delivery_order => 'einkaufslieferscheine',
|
|
122 |
credit_note => 'gutschriften',
|
|
123 |
invoice => 'rechnungen',
|
|
124 | 124 |
invoice_for_advance_payment => 'rechnungen', |
125 |
final_invoice => 'rechnungen', |
|
126 |
purchase_invoice => 'einkaufsrechnungen', |
|
127 |
part => 'waren', |
|
128 |
service => 'dienstleistungen', |
|
129 |
assembly => 'erzeugnisse', |
|
130 |
letter => 'briefe', |
|
131 |
general_ledger => 'dialogbuchungen', |
|
132 |
gl_transaction => 'dialogbuchungen', |
|
133 |
accounts_payable => 'kreditorenbuchungen', |
|
134 |
shop_image => 'shopbilder', |
|
135 |
customer => 'kunden', |
|
136 |
vendor => 'lieferanten', |
|
125 |
final_invoice => 'rechnungen',
|
|
126 |
purchase_invoice => 'einkaufsrechnungen',
|
|
127 |
part => 'waren',
|
|
128 |
service => 'dienstleistungen',
|
|
129 |
assembly => 'erzeugnisse',
|
|
130 |
letter => 'briefe',
|
|
131 |
general_ledger => 'dialogbuchungen',
|
|
132 |
gl_transaction => 'dialogbuchungen',
|
|
133 |
accounts_payable => 'kreditorenbuchungen',
|
|
134 |
shop_image => 'shopbilder',
|
|
135 |
customer => 'kunden',
|
|
136 |
vendor => 'lieferanten',
|
|
137 | 137 |
); |
138 | 138 |
|
139 | 139 |
my %type_to_model = ( |
140 |
sales_quotation => 'Order', |
|
141 |
sales_order => 'Order', |
|
142 |
request_quotation => 'Order', |
|
143 |
purchase_order => 'Order', |
|
144 |
sales_delivery_order => 'DeliveryOrder', |
|
145 |
purchase_delivery_order => 'DeliveryOrder', |
|
146 |
credit_note => 'Invoice', |
|
147 |
invoice => 'Invoice', |
|
140 |
sales_quotation => 'Order',
|
|
141 |
sales_order => 'Order',
|
|
142 |
request_quotation => 'Order',
|
|
143 |
purchase_order => 'Order',
|
|
144 |
sales_delivery_order => 'DeliveryOrder',
|
|
145 |
purchase_delivery_order => 'DeliveryOrder',
|
|
146 |
credit_note => 'Invoice',
|
|
147 |
invoice => 'Invoice',
|
|
148 | 148 |
invoice_for_advance_payment => 'Invoice', |
149 |
final_invoice => 'Invoice', |
|
150 |
purchase_invoice => 'PurchaseInvoice', |
|
151 |
part => 'Part', |
|
152 |
service => 'Part', |
|
153 |
assembly => 'Part', |
|
154 |
letter => 'Letter', |
|
155 |
general_ledger => 'GLTransaction', |
|
156 |
gl_transaction => 'GLTransaction', |
|
157 |
accounts_payable => 'GLTransaction', |
|
158 |
shop_image => 'Part', |
|
159 |
customer => 'Customer', |
|
160 |
vendor => 'Vendor', |
|
149 |
final_invoice => 'Invoice',
|
|
150 |
purchase_invoice => 'PurchaseInvoice',
|
|
151 |
part => 'Part',
|
|
152 |
service => 'Part',
|
|
153 |
assembly => 'Part',
|
|
154 |
letter => 'Letter',
|
|
155 |
general_ledger => 'GLTransaction',
|
|
156 |
gl_transaction => 'GLTransaction',
|
|
157 |
accounts_payable => 'GLTransaction',
|
|
158 |
shop_image => 'Part',
|
|
159 |
customer => 'Customer',
|
|
160 |
vendor => 'Vendor',
|
|
161 | 161 |
); |
162 | 162 |
|
163 | 163 |
my %model_to_number = ( |
SL/Webdav.pm | ||
---|---|---|
17 | 17 |
); |
18 | 18 |
|
19 | 19 |
my %type_to_path = ( |
20 |
sales_quotation => 'angebote', |
|
21 |
sales_order => 'bestellungen', |
|
22 |
request_quotation => 'anfragen', |
|
23 |
purchase_order => 'lieferantenbestellungen', |
|
24 |
sales_delivery_order => 'verkaufslieferscheine', |
|
25 |
purchase_delivery_order => 'einkaufslieferscheine', |
|
26 |
credit_note => 'gutschriften', |
|
27 |
invoice => 'rechnungen', |
|
20 |
sales_quotation => 'angebote',
|
|
21 |
sales_order => 'bestellungen',
|
|
22 |
request_quotation => 'anfragen',
|
|
23 |
purchase_order => 'lieferantenbestellungen',
|
|
24 |
sales_delivery_order => 'verkaufslieferscheine',
|
|
25 |
purchase_delivery_order => 'einkaufslieferscheine',
|
|
26 |
credit_note => 'gutschriften',
|
|
27 |
invoice => 'rechnungen',
|
|
28 | 28 |
invoice_for_advance_payment => 'rechnungen', |
29 |
final_invoice => 'rechnungen', |
|
30 |
purchase_invoice => 'einkaufsrechnungen', |
|
31 |
part => 'waren', |
|
32 |
service => 'dienstleistungen', |
|
33 |
assembly => 'erzeugnisse', |
|
34 |
letter => 'briefe', |
|
35 |
general_ledger => 'dialogbuchungen', |
|
36 |
accounts_payable => 'kreditorenbuchungen', |
|
37 |
customer => 'kunden', |
|
38 |
vendor => 'lieferanten', |
|
39 |
dunning => 'mahnungen', |
|
29 |
final_invoice => 'rechnungen',
|
|
30 |
purchase_invoice => 'einkaufsrechnungen',
|
|
31 |
part => 'waren',
|
|
32 |
service => 'dienstleistungen',
|
|
33 |
assembly => 'erzeugnisse',
|
|
34 |
letter => 'briefe',
|
|
35 |
general_ledger => 'dialogbuchungen',
|
|
36 |
accounts_payable => 'kreditorenbuchungen',
|
|
37 |
customer => 'kunden',
|
|
38 |
vendor => 'lieferanten',
|
|
39 |
dunning => 'mahnungen',
|
|
40 | 40 |
); |
41 | 41 |
|
42 | 42 |
sub get_all_files { |
Auch abrufbar als: Unified diff
Anzahlungs-Rg.: Kosmetik: Ausrichtung