Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision cc5d0de1

Von Bernd Bleßmann vor mehr als 2 Jahren hinzugefügt

  • ID cc5d0de151e665a8b0fb2ec223a0e1a8da367b82
  • Vorgänger 6583ead0
  • Nachfolger fb5bcaea

Auftrags-Controller: WF Kunden-Angebot/-Auftrag -> Preisanfrage

Unterschiede anzeigen:

SL/Controller/Order.pm
2295 2295
        action => [
2296 2296
          t8('Save and RFQ'),
2297 2297
          call     => [ 'kivi.submit_ajax_form', $self->url_for(action => "save_and_order_workflow", to_type => request_quotation_type()), '#order_form' ],
2298
          only_if  => (any { $self->type eq $_ } (purchase_order_type())),
2298
          only_if  => (any { $self->type eq $_ } (sales_order_type(), sales_quotation_type(), purchase_order_type())),
2299 2299
          disabled => !$may_edit_create ? t8('You do not have the permissions to access this function.') : undef,
2300 2300
        ],
2301 2301
        action => [
SL/DB/Order.pm
345 345
    { from => 'purchase_order',    to => 'request_quotation', abbr => 'porq' },
346 346
    { from => 'request_quotation', to => 'sales_quotation',   abbr => 'rqsq' },
347 347
    { from => 'request_quotation', to => 'sales_order',       abbr => 'rqso' },
348
    { from => 'sales_quotation',   to => 'request_quotation', abbr => 'sqrq' },
349
    { from => 'sales_order',       to => 'request_quotation', abbr => 'sorq' },
348 350
  );
349 351
  my $from_to = (grep { $_->{from} eq $source->type && $_->{to} eq $destination_type} @from_tos)[0];
350 352
  croak("Cannot convert from '" . $source->type . "' to '" . $destination_type . "'") if !$from_to;
......
377 379
    $args{quonumber} = undef;
378 380
    $args{reqdate}   = DateTime->today_local->next_workday();
379 381
  }
380
  if ( $is_abbr_any->(qw(sopo)) ) {
382
  if ( $is_abbr_any->(qw(sopo sqrq sorq)) ) {
381 383
    $args{customer_id}      = undef;
382 384
    $args{salesman_id}      = undef;
383 385
    $args{payment_id}       = undef;
......
389 391
  if ( $is_abbr_any->(qw(soso)) ) {
390 392
    $args{periodic_invoices_config} = $source->periodic_invoices_config->clone_and_reset if $source->periodic_invoices_config;
391 393
  }
392
  if ( $is_abbr_any->(qw(sosq porq rqsq)) ) {
394
  if ( $is_abbr_any->(qw(sosq porq rqsq sqrq sorq)) ) {
393 395
    $args{ordnumber} = undef;
394 396
    $args{quonumber} = undef;
395 397
    $args{reqdate}   = DateTime->today_local->next_workday();
396 398
  }
399
  if ( $is_abbr_any->(qw(sqrq sorq)) ) {
400
    $args{cusordnumber} = undef;
401
  }
397 402

  
398 403
  # Custom shipto addresses (the ones specific to the sales/purchase
399 404
  # record and not to the customer/vendor) are only linked from

Auch abrufbar als: Unified diff