Revision d3512ce7
Von Bernd Bleßmann vor mehr als 1 Jahr hinzugefügt
SL/Controller/Part.pm | ||
---|---|---|
503 | 503 |
|
504 | 504 |
my $position = scalar @{$self->makemodels} + 1; |
505 | 505 |
|
506 |
my $mm = SL::DB::MakeModel->new(# parts_id => $::form->{part}->{id}, |
|
507 |
make => $vendor->id, |
|
508 |
model => '', |
|
509 |
lastcost => 0, |
|
510 |
sortorder => $position, |
|
506 |
my $mm = SL::DB::MakeModel->new(# parts_id => $::form->{part}->{id}, |
|
507 |
make => $vendor->id, |
|
508 |
model => '', |
|
509 |
part_description => '', |
|
510 |
lastcost => 0, |
|
511 |
sortorder => $position, |
|
511 | 512 |
) or die "Can't create MakeModel object"; |
512 | 513 |
|
513 | 514 |
my $row_as_html = $self->p->render('part/_makemodel_row', |
... | ... | |
1110 | 1111 |
next unless $makemodel->{make}; |
1111 | 1112 |
$position++; |
1112 | 1113 |
my $mm = SL::DB::MakeModel->new( # parts_id => $self->part->id, # will be assigned by row add_makemodels |
1113 |
id => $makemodel->{id}, |
|
1114 |
make => $makemodel->{make}, |
|
1115 |
model => $makemodel->{model} || '', |
|
1116 |
lastcost => $::form->parse_amount(\%::myconfig, $makemodel->{lastcost_as_number} || 0), |
|
1117 |
sortorder => $position, |
|
1114 |
id => $makemodel->{id}, |
|
1115 |
make => $makemodel->{make}, |
|
1116 |
model => $makemodel->{model} || '', |
|
1117 |
part_description => $makemodel->{part_description} || '', |
|
1118 |
lastcost => $::form->parse_amount(\%::myconfig, $makemodel->{lastcost_as_number} || 0), |
|
1119 |
sortorder => $position, |
|
1118 | 1120 |
) or die "Can't create mm"; |
1119 | 1121 |
# $mm->id($makemodel->{id}) if $makemodel->{id}; |
1120 | 1122 |
push(@makemodel_array, $mm); |
Auch abrufbar als: Unified diff
Fix: Lieferantenartikelnummern um Beschreibung erweitern