X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FIC.pm;h=48c799675850c49ba7a830b537e0ceec94f77d3d;hb=435a5be586488ee4700b0a4fed0c91b5a5e1abfb;hp=64e598c24e9c271f207e94b463ed6862921e7308;hpb=4dbb09950c9f5596646537c12d991c99086fe7c1;p=kivitendo-erp.git diff --git a/SL/IC.pm b/SL/IC.pm index 64e598c24..48c799675 100644 --- a/SL/IC.pm +++ b/SL/IC.pm @@ -58,13 +58,12 @@ sub get_part { my $ref = $sth->fetchrow_hashref(NAME_lc); # copy to $form variables - map { $form->{$_} = $ref->{$_} } ( keys %{ $ref } ); + map { $form->{$_} = $ref->{$_} } (keys %{$ref}); $sth->finish; - my %oid = ('Pg' => 'a.oid', - 'Oracle' => 'a.rowid' - ); + my %oid = ('Pg' => 'a.oid', + 'Oracle' => 'a.rowid'); # part or service item $form->{item} = ($form->{inventory_accno}) ? 'part' : 'service'; @@ -87,8 +86,8 @@ sub get_part { $form->{assembly_rows} = 0; while (my $ref = $sth->fetchrow_hashref(NAME_lc)) { $form->{assembly_rows}++; - foreach my $key ( keys %{ $ref } ) { - $form->{"${key}_$form->{assembly_rows}"} = $ref->{$key}; + foreach my $key (keys %{$ref}) { + $form->{"${key}_$form->{assembly_rows}"} = $ref->{$key}; } } $sth->finish; @@ -96,14 +95,14 @@ sub get_part { } # setup accno hash for