Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 5497ac6c

Von Thomas Heck vor etwa 12 Jahren hinzugefügt

Waren-CSV-Import: Einlesen des Einkaufspreises ins makemodel

Unterschiede anzeigen:

SL/Controller/CsvImport/Part.pm
129 129
  $self->add_cvar_raw_data_columns;
130 130
  map { $self->add_raw_data_columns("pricegroup_${_}") } (1..scalar(@{ $self->all_pricegroups }));
131 131
  map { $self->add_raw_data_columns($_) if exists $self->controller->data->[0]->{raw_data}->{$_} } @{ $self->translation_columns };
132
  map { $self->add_raw_data_columns("make_${_}", "model_${_}") } sort { $a <=> $b } keys %{ $self->makemodel_columns };
132
  map { $self->add_raw_data_columns("make_${_}", "model_${_}", "lastcost_${_}") } sort { $a <=> $b } keys %{ $self->makemodel_columns };
133 133
}
134 134

  
135 135
sub check_duplicates {
......
379 379
      push @{ $entry->{errors} }, $::locale->text('Error: Invalid vendor in column make_#1', $idx);
380 380

  
381 381
    } else {
382
      push @makemodels, SL::DB::MakeModel->new(make  => $vendor->id,
383
                                               model => $entry->{raw_data}->{"model_${idx}"});
382
      push @makemodels, SL::DB::MakeModel->new(make               => $vendor->id,
383
                                               model              => $entry->{raw_data}->{"model_${idx}"},
384
                                               lastcost_as_number => $entry->{raw_data}->{"lastcost_${idx}"});
385

  
384 386
      $self->makemodel_columns->{$idx}    = 1;
385 387
      $entry->{raw_data}->{"make_${idx}"} = $vendor->name;
386 388
    }
......
438 440
                                 { name => 'make_X',             description => $::locale->text('Make (with X being a number)')                         },
439 441
                                 { name => 'microfiche',         description => $::locale->text('Microfiche')                                           },
440 442
                                 { name => 'model_X',            description => $::locale->text('Model (with X being a number)')                        },
443
                                 { name => 'lastcost_X',         description => $::locale->text('Lastcost (with X being a number)')                     },
441 444
                                 { name => 'not_discountable',   description => $::locale->text('Not Discountable')                                     },
442 445
                                 { name => 'notes',              description => $::locale->text('Notes')                                                },
443 446
                                 { name => 'obsolete',           description => $::locale->text('Obsolete')                                             },
locale/de/all
1065 1065
  'Last Service Number'         => 'Letzte Dienstleistungsnr.',
1066 1066
  'Last Transaction'            => 'Letzte Buchung',
1067 1067
  'Last Vendor Number'          => 'Letzte Lieferantennummer',
1068
  'Lastcost (with X being a number)' => 'Einkaufspreis (X ist eine fortlaufende Zahl)',
1068 1069
  'Lead'                        => 'Kundenquelle',
1069 1070
  'Leave host and port field empty unless you want to make a remote connection.' => 'F&uuml;r lokale Verbindungen "Rechner" und "Port" freilassen.',
1070 1071
  'Left'                        => 'Links',

Auch abrufbar als: Unified diff