X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/adecbacded3eff18d51dbf7e2e537811190b3888..37171c705ea9b7ea6cf7da6fa4c96e3d3d2461cd:/SL/DB/Part.pm diff --git a/SL/DB/Part.pm b/SL/DB/Part.pm index 1acd8ef20..4c3f4633a 100644 --- a/SL/DB/Part.pm +++ b/SL/DB/Part.pm @@ -18,6 +18,16 @@ __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' }, + }, + price_factor => { + type => 'one to one', + class => 'SL::DB::PriceFactor', + column_map => { price_factor_id => 'id' }, + }, ); __PACKAGE__->meta->initialize; @@ -103,6 +113,11 @@ sub available_units { shift->unit_obj->convertible_units; } +# autogenerated accessor is slightly off... +sub buchungsgruppe { + shift->buchungsgruppen(@_); +} + 1; __END__