SL::Dev::Part - Typo
authorG. Richardson <information@kivitendo-premium.de>
Tue, 31 Jan 2017 15:38:18 +0000 (16:38 +0100)
committerG. Richardson <information@kivitendo-premium.de>
Tue, 31 Jan 2017 15:40:10 +0000 (16:40 +0100)
SL/Dev/Part.pm

index e1d08e8..7b67ada 100644 (file)
@@ -40,7 +40,7 @@ sub create_assembly {
   my (%params) = @_;
 
   my @parts;
-  my $partnumber = delete $params{part1number} || 'ap1';
+  my $partnumber = delete $params{partnumber} || 'ap1';
   my $part1 = SL::Dev::Part::create_part(partnumber   => $partnumber,
                                          description  => 'Testpart',
                                         )->save;