Revision fcde4c20
Von Kivitendo Admin vor etwa 8 Jahren hinzugefügt
t/part/assembly.t | ||
---|---|---|
20 | 20 |
|
21 | 21 |
is($assembly_part->inventory_accno_id, undef, "assembly doesn't have an inventory accno id"); |
22 | 22 |
|
23 |
is($assembly_part->type, 'assembly', 'assembly has correct type'); |
|
23 |
is($assembly_part->part_type, 'assembly', 'assembly has correct type');
|
|
24 | 24 |
is( scalar @{$assembly_part->assemblies}, 2, 'assembly consists of two parts' ); |
25 | 25 |
|
26 | 26 |
# fetch assembly item corresponding to partnumber 19000 |
... | ... | |
46 | 46 |
|
47 | 47 |
$part1 = SL::DB::Part->new_part(partnumber => '19000', |
48 | 48 |
unit => $unit->name, |
49 |
part_type => 'part', |
|
49 | 50 |
)->save; |
50 | 51 |
$part2 = $part1->clone_and_reset($part1); |
51 | 52 |
$part2->partnumber($part1->partnumber + 1); |
Auch abrufbar als: Unified diff
Ware/Erzeugnis/Dienstleistung per parts.part_type unterscheiden 2
kivitendo Code angepasst.