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') },
|
Waren-CSV-Import: Einlesen des Einkaufspreises ins makemodel