Revision 7a8a152c
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 | ||
---|---|---|
114 | 114 |
# |
115 | 115 |
|
116 | 116 |
my %type_to_path = ( |
117 |
sales_quotation => 'angebote', |
|
118 |
sales_order => 'bestellungen', |
|
119 |
request_quotation => 'anfragen', |
|
120 |
purchase_order => 'lieferantenbestellungen', |
|
121 |
sales_delivery_order => 'verkaufslieferscheine', |
|
122 |
purchase_delivery_order => 'einkaufslieferscheine', |
|
123 |
credit_note => 'gutschriften', |
|
124 |
invoice => 'rechnungen', |
|
117 |
sales_quotation => 'angebote',
|
|
118 |
sales_order => 'bestellungen',
|
|
119 |
request_quotation => 'anfragen',
|
|
120 |
purchase_order => 'lieferantenbestellungen',
|
|
121 |
sales_delivery_order => 'verkaufslieferscheine',
|
|
122 |
purchase_delivery_order => 'einkaufslieferscheine',
|
|
123 |
credit_note => 'gutschriften',
|
|
124 |
invoice => 'rechnungen',
|
|
125 | 125 |
invoice_for_advance_payment => 'rechnungen', |
126 |
final_invoice => 'rechnungen', |
|
127 |
purchase_invoice => 'einkaufsrechnungen', |
|
128 |
part => 'waren', |
|
129 |
service => 'dienstleistungen', |
|
130 |
assembly => 'erzeugnisse', |
|
131 |
letter => 'briefe', |
|
132 |
general_ledger => 'dialogbuchungen', |
|
133 |
gl_transaction => 'dialogbuchungen', |
|
134 |
accounts_payable => 'kreditorenbuchungen', |
|
135 |
shop_image => 'shopbilder', |
|
136 |
customer => 'kunden', |
|
137 |
vendor => 'lieferanten', |
|
126 |
final_invoice => 'rechnungen',
|
|
127 |
purchase_invoice => 'einkaufsrechnungen',
|
|
128 |
part => 'waren',
|
|
129 |
service => 'dienstleistungen',
|
|
130 |
assembly => 'erzeugnisse',
|
|
131 |
letter => 'briefe',
|
|
132 |
general_ledger => 'dialogbuchungen',
|
|
133 |
gl_transaction => 'dialogbuchungen',
|
|
134 |
accounts_payable => 'kreditorenbuchungen',
|
|
135 |
shop_image => 'shopbilder',
|
|
136 |
customer => 'kunden',
|
|
137 |
vendor => 'lieferanten',
|
|
138 | 138 |
); |
139 | 139 |
|
140 | 140 |
my %type_to_model = ( |
141 |
sales_quotation => 'Order', |
|
142 |
sales_order => 'Order', |
|
143 |
request_quotation => 'Order', |
|
144 |
purchase_order => 'Order', |
|
145 |
sales_delivery_order => 'DeliveryOrder', |
|
146 |
purchase_delivery_order => 'DeliveryOrder', |
|
147 |
credit_note => 'Invoice', |
|
148 |
invoice => 'Invoice', |
|
141 |
sales_quotation => 'Order',
|
|
142 |
sales_order => 'Order',
|
|
143 |
request_quotation => 'Order',
|
|
144 |
purchase_order => 'Order',
|
|
145 |
sales_delivery_order => 'DeliveryOrder',
|
|
146 |
purchase_delivery_order => 'DeliveryOrder',
|
|
147 |
credit_note => 'Invoice',
|
|
148 |
invoice => 'Invoice',
|
|
149 | 149 |
invoice_for_advance_payment => 'Invoice', |
150 |
final_invoice => 'Invoice', |
|
151 |
purchase_invoice => 'PurchaseInvoice', |
|
152 |
part => 'Part', |
|
153 |
service => 'Part', |
|
154 |
assembly => 'Part', |
|
155 |
letter => 'Letter', |
|
156 |
general_ledger => 'GLTransaction', |
|
157 |
gl_transaction => 'GLTransaction', |
|
158 |
accounts_payable => 'GLTransaction', |
|
159 |
shop_image => 'Part', |
|
160 |
customer => 'Customer', |
|
161 |
vendor => 'Vendor', |
|
150 |
final_invoice => 'Invoice',
|
|
151 |
purchase_invoice => 'PurchaseInvoice',
|
|
152 |
part => 'Part',
|
|
153 |
service => 'Part',
|
|
154 |
assembly => 'Part',
|
|
155 |
letter => 'Letter',
|
|
156 |
general_ledger => 'GLTransaction',
|
|
157 |
gl_transaction => 'GLTransaction',
|
|
158 |
accounts_payable => 'GLTransaction',
|
|
159 |
shop_image => 'Part',
|
|
160 |
customer => 'Customer',
|
|
161 |
vendor => 'Vendor',
|
|
162 | 162 |
); |
163 | 163 |
|
164 | 164 |
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