X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/1b65e282f1ef2e45b0c7aa8027b8d9ec8a7c2816..6f266e929ff3eaefc84c34b46fa452c50eecbcf4:/SL/DB/InvoiceItem.pm?ds=sidebyside diff --git a/SL/DB/InvoiceItem.pm b/SL/DB/InvoiceItem.pm index 44c121e94..016f94575 100644 --- a/SL/DB/InvoiceItem.pm +++ b/SL/DB/InvoiceItem.pm @@ -12,16 +12,6 @@ use SL::DB::Helper::CustomVariables ( ); __PACKAGE__->meta->add_relationship( - part => { - type => 'one to one', - class => 'SL::DB::Part', - column_map => { parts_id => 'id' }, - }, - price_factor_obj => { - type => 'one to one', - class => 'SL::DB::PriceFactor', - column_map => { price_factor_id => 'id' }, - }, unit_obj => { type => 'one to one', class => 'SL::DB::Unit', @@ -34,4 +24,9 @@ __PACKAGE__->meta->make_manager_class; __PACKAGE__->meta->initialize; +sub part { + # canonial alias for parts. + goto &parts; +} + 1;