Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision a99ac2d9

Von Bernd Bleßmann vor etwa 9 Jahren hinzugefügt

  • ID a99ac2d9b3621c82b7aeddf85e9640442c42433c
  • Vorgänger 649529bf
  • Nachfolger e3a83f49

Auftragsimport: Artikel auch nach Beschreibung suchen können.

Unterschiede anzeigen:

SL/Controller/CsvImport/Order.pm
443 443
    $object->parts_id($part->id);
444 444
  }
445 445

  
446
  # Map description to ID if given.
447
  if (!$object->parts_id && $entry->{raw_data}->{description}) {
448
    my $part = $self->parts_by->{description}->{ $entry->{raw_data}->{description} };
449
    if (!$part) {
450
      push @{ $entry->{errors} }, $::locale->text('Error: Invalid part');
451
      return 0;
452
    }
453

  
454
    $object->parts_id($part->id);
455
  }
456

  
446 457
  if ($object->parts_id) {
447 458
    $entry->{info_data}->{partnumber} = $self->parts_by->{id}->{ $object->parts_id }->partnumber;
448 459
  } else {

Auch abrufbar als: Unified diff