X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/0d5564ee4eaf6af6cbcc0c59b08e9ed16c828b49..7bbdbf2bd966e6317cff568ac6f60936b51d8df7:/SL/DB/Part.pm?ds=sidebyside diff --git a/SL/DB/Part.pm b/SL/DB/Part.pm index 901f57aa8..32571276b 100644 --- a/SL/DB/Part.pm +++ b/SL/DB/Part.pm @@ -46,6 +46,13 @@ __PACKAGE__->meta->add_relationships( class => 'SL::DB::AssortmentItem', column_map => { id => 'assortment_id' }, }, + history_entries => { + type => 'one to many', + class => 'SL::DB::History', + column_map => { id => 'trans_id' }, + query_args => [ what_done => 'part' ], + manager_args => { sort_by => 'itime' }, + }, ); __PACKAGE__->meta->initialize;