Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 92f6fae1

Von Moritz Bunkus vor mehr als 3 Jahren hinzugefügt

  • ID 92f6fae1e8c4861460ae364ac7dc243b429a9cb6
  • Vorgänger f65440cb
  • Nachfolger 6ac03ba6

Order-Controller: Workflow Lieferantenauftrag → Preisanfrage

Unterschiede anzeigen:

SL/DB/Order.pm
311 311
    { from => 'sales_order',       to => 'purchase_order',    abbr => 'sopo' },
312 312
    { from => 'purchase_order',    to => 'sales_order',       abbr => 'poso' },
313 313
    { from => 'sales_order',       to => 'sales_quotation',   abbr => 'sosq' },
314
    { from => 'purchase_order',    to => 'request_quotation', abbr => 'porq' },
314 315
  );
315 316
  my $from_to = (grep { $_->{from} eq $source->type && $_->{to} eq $destination_type} @from_tos)[0];
316 317
  croak("Cannot convert from '" . $source->type . "' to '" . $destination_type . "'") if !$from_to;
......
355 356
  if ( $is_abbr_any->(qw(soso)) ) {
356 357
    $args{periodic_invoices_config} = $source->periodic_invoices_config->clone_and_reset if $source->periodic_invoices_config;
357 358
  }
358
  if ( $is_abbr_any->(qw(sosq)) ) {
359
  if ( $is_abbr_any->(qw(sosq porq)) ) {
359 360
    $args{ordnumber} = undef;
360 361
    $args{quonumber} = undef;
361 362
    $args{reqdate}   = DateTime->today_local->next_workday();

Auch abrufbar als: Unified diff