Revision ee204a06
Von Bernd Bleßmann vor mehr als 1 Jahr hinzugefügt
SL/DB/Order.pm | ||
---|---|---|
352 | 352 |
my $destination_type = delete $params{destination_type}; |
353 | 353 |
|
354 | 354 |
my @from_tos = ( |
355 |
{ from => 'sales_quotation', to => 'sales_order', abbr => 'sqso' },
|
|
356 |
{ from => 'request_quotation', to => 'purchase_order', abbr => 'rqpo' },
|
|
357 |
{ from => 'sales_quotation', to => 'sales_quotation', abbr => 'sqsq' },
|
|
358 |
{ from => 'sales_order', to => 'sales_order', abbr => 'soso' },
|
|
359 |
{ from => 'request_quotation', to => 'request_quotation', abbr => 'rqrq' },
|
|
360 |
{ from => 'purchase_order', to => 'purchase_order', abbr => 'popo' },
|
|
361 |
{ from => 'sales_order', to => 'purchase_order', abbr => 'sopo' },
|
|
362 |
{ from => 'purchase_order', to => 'sales_order', abbr => 'poso' },
|
|
363 |
{ from => 'sales_order', to => 'sales_quotation', abbr => 'sosq' },
|
|
364 |
{ from => 'purchase_order', to => 'request_quotation', abbr => 'porq' },
|
|
365 |
{ from => 'request_quotation', to => 'sales_quotation', abbr => 'rqsq' },
|
|
366 |
{ from => 'request_quotation', to => 'sales_order', abbr => 'rqso' },
|
|
367 |
{ from => 'sales_quotation', to => 'request_quotation', abbr => 'sqrq' },
|
|
368 |
{ from => 'sales_order', to => 'request_quotation', abbr => 'sorq' },
|
|
369 |
{ from => 'sales_reclamation', to => 'sales_order', abbr => 'srso' },
|
|
370 |
{ from => 'purchase_reclamation', to => 'purchase_order', abbr => 'prpo' },
|
|
371 |
{ from => 'sales_order_intake', to => 'sales_order_intake', abbr => 'soisoi' },
|
|
372 |
{ from => 'sales_order_intake', to => 'sales_quotation', abbr => 'soisq' },
|
|
373 |
{ from => 'sales_order_intake', to => 'request_quotation', abbr => 'soirq' },
|
|
374 |
{ from => 'sales_order_intake', to => 'sales_order', abbr => 'soiso' },
|
|
375 |
{ from => 'sales_order_intake', to => 'purchase_order', abbr => 'soipo' },
|
|
376 |
{ from => 'sales_quotation', to => 'sales_order_intake', abbr => 'sqsoi' },
|
|
355 |
{ from => 'sales_quotation', to => 'sales_order', abbr => 'sqso' },
|
|
356 |
{ from => 'request_quotation', to => 'purchase_order', abbr => 'rqpo' },
|
|
357 |
{ from => 'sales_quotation', to => 'sales_quotation', abbr => 'sqsq' },
|
|
358 |
{ from => 'sales_order', to => 'sales_order', abbr => 'soso' },
|
|
359 |
{ from => 'request_quotation', to => 'request_quotation', abbr => 'rqrq' },
|
|
360 |
{ from => 'purchase_order', to => 'purchase_order', abbr => 'popo' },
|
|
361 |
{ from => 'sales_order', to => 'purchase_order', abbr => 'sopo' },
|
|
362 |
{ from => 'purchase_order', to => 'sales_order', abbr => 'poso' },
|
|
363 |
{ from => 'sales_order', to => 'sales_quotation', abbr => 'sosq' },
|
|
364 |
{ from => 'purchase_order', to => 'request_quotation', abbr => 'porq' },
|
|
365 |
{ from => 'request_quotation', to => 'sales_quotation', abbr => 'rqsq' },
|
|
366 |
{ from => 'request_quotation', to => 'sales_order', abbr => 'rqso' },
|
|
367 |
{ from => 'sales_quotation', to => 'request_quotation', abbr => 'sqrq' },
|
|
368 |
{ from => 'sales_order', to => 'request_quotation', abbr => 'sorq' },
|
|
369 |
{ from => 'sales_reclamation', to => 'sales_order', abbr => 'srso' },
|
|
370 |
{ from => 'purchase_reclamation', to => 'purchase_order', abbr => 'prpo' },
|
|
371 |
{ from => 'sales_order_intake', to => 'sales_order_intake', abbr => 'soisoi' },
|
|
372 |
{ from => 'sales_order_intake', to => 'sales_quotation', abbr => 'soisq' },
|
|
373 |
{ from => 'sales_order_intake', to => 'request_quotation', abbr => 'soirq' },
|
|
374 |
{ from => 'sales_order_intake', to => 'sales_order', abbr => 'soiso' },
|
|
375 |
{ from => 'sales_order_intake', to => 'purchase_order', abbr => 'soipo' },
|
|
376 |
{ from => 'sales_quotation', to => 'sales_order_intake', abbr => 'sqsoi' },
|
|
377 | 377 |
{ from => 'purchase_quotation_intake', to => 'purchase_quotation_intake', abbr => 'pqipqi' }, |
378 | 378 |
{ from => 'purchase_quotation_intake', to => 'sales_quotation', abbr => 'pqisq' }, |
379 | 379 |
{ from => 'purchase_quotation_intake', to => 'sales_order', abbr => 'pqiso' }, |
380 | 380 |
{ from => 'purchase_quotation_intake', to => 'purchase_order', abbr => 'pqipo' }, |
381 |
{ from => 'request_quotation', to => 'purchase_quotation_intake', abbr => 'rqpqi' },
|
|
381 |
{ from => 'request_quotation', to => 'purchase_quotation_intake', abbr => 'rqpqi' }, |
|
382 | 382 |
); |
383 | 383 |
my $from_to = (grep { $_->{from} eq $source->type && $_->{to} eq $destination_type} @from_tos)[0]; |
384 | 384 |
croak("Cannot convert from '" . $source->type . "' to '" . $destination_type . "'") if !$from_to; |
... | ... | |
618 | 618 |
return if !$self->type; |
619 | 619 |
|
620 | 620 |
my %number_method = ( |
621 |
sales_order_intake => 'ordnumber', |
|
622 |
sales_order => 'ordnumber', |
|
623 |
sales_quotation => 'quonumber', |
|
624 |
purchase_order => 'ordnumber', |
|
625 |
request_quotation => 'quonumber', |
|
621 |
sales_order_intake => 'ordnumber',
|
|
622 |
sales_order => 'ordnumber',
|
|
623 |
sales_quotation => 'quonumber',
|
|
624 |
purchase_order => 'ordnumber',
|
|
625 |
request_quotation => 'quonumber',
|
|
626 | 626 |
purchase_quotation_intake => 'quonumber', |
627 | 627 |
); |
628 | 628 |
|
Auch abrufbar als: Unified diff
S:B:Order: Kosmetik: Ausrichtung