Revision bbbe79aa
Von G. Richardson vor mehr als 5 Jahren hinzugefügt
SL/Dev/Part.pm | ||
---|---|---|
50 | 50 |
} else { |
51 | 51 |
for my $i ( 1 .. delete $params{number_of_parts} || 3) { |
52 | 52 |
my $part = new_part(partnumber => "$base_partnumber $i", |
53 |
description => "Testpart $i",
|
|
54 |
)->save;
|
|
53 |
description => "Testpart $i", |
|
54 |
)->save; |
|
55 | 55 |
push( @{$assembly_items}, SL::DB::Assembly->new(parts_id => $part->id, |
56 | 56 |
qty => 1, |
57 | 57 |
position => $i, |
... | ... | |
85 | 85 |
} else { |
86 | 86 |
for my $i ( 1 .. delete $params{number_of_parts} || 3) { |
87 | 87 |
my $part = new_part(partnumber => "$base_partnumber $i", |
88 |
description => "Testpart $i",
|
|
89 |
)->save;
|
|
88 |
description => "Testpart $i", |
|
89 |
)->save; |
|
90 | 90 |
push( @{$assortment_items}, SL::DB::AssortmentItem->new(parts_id => $part->id, |
91 | 91 |
qty => 1, |
92 | 92 |
position => $i, |
Auch abrufbar als: Unified diff
Dev Part - Codeeinrückungen