Revision d9969d0b
Von Bernd Bleßmann vor etwa 1 Jahr hinzugefügt
SL/DB/Order/TypeData.pm | ||
---|---|---|
12 | 12 |
REQUEST_QUOTATION_TYPE => 'request_quotation', |
13 | 13 |
PURCHASE_QUOTATION_INTAKE_TYPE => 'purchase_quotation_intake', |
14 | 14 |
SALES_ORDER_INTAKE_TYPE => 'sales_order_intake', |
15 |
PURCHASE_ORDER_CONFIRMATION_TYPE => 'purchase_order_confirmation', |
|
15 | 16 |
}; |
16 | 17 |
|
17 | 18 |
my @export_types = qw(SALES_ORDER_TYPE PURCHASE_ORDER_TYPE REQUEST_QUOTATION_TYPE SALES_QUOTATION_TYPE |
18 |
PURCHASE_QUOTATION_INTAKE_TYPE SALES_ORDER_INTAKE_TYPE); |
|
19 |
PURCHASE_QUOTATION_INTAKE_TYPE SALES_ORDER_INTAKE_TYPE PURCHASE_ORDER_CONFIRMATION_TYPE);
|
|
19 | 20 |
my @export_subs = qw(valid_types validate_type is_valid_type get get3); |
20 | 21 |
|
21 | 22 |
our @EXPORT_OK = (@export_types, @export_subs); |
... | ... | |
38 | 39 |
save_and_sales_order_intake => 0, |
39 | 40 |
save_and_sales_order => 0, |
40 | 41 |
save_and_purchase_order => 1, |
42 |
save_and_purchase_order_confirmation => 0, |
|
41 | 43 |
save_and_sales_delivery_order => 1, |
42 | 44 |
save_and_purchase_delivery_order => 0, |
43 | 45 |
save_and_supplier_delivery_order => 0, |
... | ... | |
90 | 92 |
save_and_sales_order_intake => 0, |
91 | 93 |
save_and_sales_order => 1, |
92 | 94 |
save_and_purchase_order => 0, |
95 |
save_and_purchase_order_confirmation => 1, |
|
93 | 96 |
save_and_sales_delivery_order => 0, |
94 | 97 |
save_and_purchase_delivery_order => 1, |
95 | 98 |
save_and_supplier_delivery_order => 1, |
... | ... | |
135 | 138 |
save_and_sales_order_intake => 1, |
136 | 139 |
save_and_sales_order => 1, |
137 | 140 |
save_and_purchase_order => 0, |
141 |
save_and_purchase_order_confirmation => 0, |
|
138 | 142 |
save_and_sales_delivery_order => 0, |
139 | 143 |
save_and_purchase_delivery_order => 0, |
140 | 144 |
save_and_supplier_delivery_order => 0, |
... | ... | |
187 | 191 |
save_and_sales_order_intake => 0, |
188 | 192 |
save_and_sales_order => 1, |
189 | 193 |
save_and_purchase_order => 1, |
194 |
save_and_purchase_order_confirmation => 0, |
|
190 | 195 |
save_and_sales_delivery_order => 0, |
191 | 196 |
save_and_purchase_delivery_order => 0, |
192 | 197 |
save_and_supplier_delivery_order => 0, |
... | ... | |
232 | 237 |
save_and_sales_order_intake => 0, |
233 | 238 |
save_and_sales_order => 1, |
234 | 239 |
save_and_purchase_order => 1, |
240 |
save_and_purchase_order_confirmation => 0, |
|
235 | 241 |
save_and_sales_delivery_order => 0, |
236 | 242 |
save_and_purchase_delivery_order => 0, |
237 | 243 |
save_and_supplier_delivery_order => 0, |
... | ... | |
277 | 283 |
save_and_sales_order_intake => 0, |
278 | 284 |
save_and_sales_order => 1, |
279 | 285 |
save_and_purchase_order => 1, |
286 |
save_and_purchase_order_confirmation => 0, |
|
280 | 287 |
save_and_sales_delivery_order => 0, |
281 | 288 |
save_and_purchase_delivery_order => 0, |
282 | 289 |
save_and_supplier_delivery_order => 0, |
... | ... | |
313 | 320 |
subversions => sub { $::instance_conf->get_lock_oe_subversions }, |
314 | 321 |
}, |
315 | 322 |
}, |
323 |
PURCHASE_ORDER_CONFIRMATION_TYPE() => { |
|
324 |
text => { |
|
325 |
delete => t8('The order confirmation has been deleted'), |
|
326 |
saved => t8('The order confirmation has been saved'), |
|
327 |
add => t8("Add Purchase Order Confirmation"), |
|
328 |
edit => t8("Edit Purchase Order Confirmation"), |
|
329 |
list => t8("Purchase Order Confirmations"), |
|
330 |
attachment => t8("purchase_order_confirmation_list"), |
|
331 |
}, |
|
332 |
show_menu => { |
|
333 |
save_and_quotation => 1, |
|
334 |
save_and_rfq => 0, |
|
335 |
save_and_purchase_quotation_intake => 0, |
|
336 |
save_and_sales_order_intake => 0, |
|
337 |
save_and_sales_order => 1, |
|
338 |
save_and_purchase_order => 1, |
|
339 |
save_and_purchase_order_confirmation => 0, |
|
340 |
save_and_sales_delivery_order => 0, |
|
341 |
save_and_purchase_delivery_order => 1, |
|
342 |
save_and_supplier_delivery_order => 1, |
|
343 |
save_and_reclamation => 1, |
|
344 |
save_and_invoice_for_advance_payment => 0, |
|
345 |
save_and_final_invoice => 0, |
|
346 |
save_and_ap_transaction => 1, |
|
347 |
save_and_invoice => 1, |
|
348 |
delete => sub { $::instance_conf->get_purchase_order_show_delete }, |
|
349 |
}, |
|
350 |
properties => { |
|
351 |
customervendor => "vendor", |
|
352 |
is_customer => 0, |
|
353 |
nr_key => "ordnumber", |
|
354 |
}, |
|
355 |
defaults => { |
|
356 |
reqdate => sub { return; }, |
|
357 |
}, |
|
358 |
part_classification_query => [ "used_for_purchase" => 1 ], |
|
359 |
rights => { |
|
360 |
edit => "purchase_order_edit", |
|
361 |
view => "purchase_order_edit | sales_order_view", |
|
362 |
}, |
|
363 |
features => { |
|
364 |
price_tax => 1, |
|
365 |
stock => 0, |
|
366 |
subversions => sub { $::instance_conf->get_lock_oe_subversions }, |
|
367 |
}, |
|
368 |
}, |
|
316 | 369 |
); |
317 | 370 |
|
318 | 371 |
my @valid_types = ( |
... | ... | |
322 | 375 |
REQUEST_QUOTATION_TYPE, |
323 | 376 |
PURCHASE_QUOTATION_INTAKE_TYPE, |
324 | 377 |
SALES_ORDER_INTAKE_TYPE, |
378 |
PURCHASE_ORDER_CONFIRMATION_TYPE, |
|
325 | 379 |
); |
326 | 380 |
|
327 | 381 |
my %valid_types = map { $_ => $_ } @valid_types; |
Auch abrufbar als: Unified diff
Lieferantenauftragsbestätigung: S:C:Order:TypeData