X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FIC.pm;h=d05d85d6e71c4ec9af6954da89ed8e5020667336;hb=7ab5a4f6d5d38a7e24f314bccbccb8f9beb95843;hp=64e598c24e9c271f207e94b463ed6862921e7308;hpb=4dbb09950c9f5596646537c12d991c99086fe7c1;p=kivitendo-erp.git diff --git a/SL/IC.pm b/SL/IC.pm index 64e598c24..d05d85d6e 100644 --- a/SL/IC.pm +++ b/SL/IC.pm @@ -33,6 +33,7 @@ #====================================================================== package IC; +use Data::Dumper; sub get_part { $main::lxdebug->enter_sub(); @@ -58,13 +59,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 +87,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 +96,84 @@ sub get_part { } # setup accno hash for