X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FPart.pm;h=ce9738f322fc67734672eba4db07a3affb3d37cb;hb=31763b4ace84990c9e3743a50849ec51ab921dfa;hp=1acd8ef207549e4a11bd8bf76205f3d35a9e143b;hpb=adecbacded3eff18d51dbf7e2e537811190b3888;p=kivitendo-erp.git diff --git a/SL/DB/Part.pm b/SL/DB/Part.pm index 1acd8ef20..ce9738f32 100644 --- a/SL/DB/Part.pm +++ b/SL/DB/Part.pm @@ -18,6 +18,11 @@ __PACKAGE__->meta->add_relationships( class => 'SL::DB::Assembly', column_map => { id => 'id' }, }, + partsgroup => { + type => 'one to one', + class => 'SL::DB::PartsGroup', + column_map => { partsgroup_id => 'id' }, + }, ); __PACKAGE__->meta->initialize; @@ -103,6 +108,11 @@ sub available_units { shift->unit_obj->convertible_units; } +# autogenerated accessor is slightly off... +sub buchungsgruppe { + shift->buchungsgruppen(@_); +} + 1; __END__