X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FInvoiceItem.pm;h=8f9a4dde7bae629beb2df365c38f0786c7a0a793;hb=af039f53d1b4d8e8456f88fcf3b2bfdc22f8889a;hp=016f94575b194db3890e511bdef6fea15a4796f7;hpb=b632cee8434442efd8ae3962126c34123172daac;p=kivitendo-erp.git diff --git a/SL/DB/InvoiceItem.pm b/SL/DB/InvoiceItem.pm index 016f94575..8f9a4dde7 100644 --- a/SL/DB/InvoiceItem.pm +++ b/SL/DB/InvoiceItem.pm @@ -7,13 +7,16 @@ use SL::DB::Helper::CustomVariables ( sub_module => 'invoice', cvars_alias => 1, overloads => { - parts_id => 'SL::DB::Part', + parts_id => { + class => 'SL::DB::Part', + module => 'IC', + }, }, ); __PACKAGE__->meta->add_relationship( unit_obj => { - type => 'one to one', + type => 'many to one', class => 'SL::DB::Unit', column_map => { unit => 'name' }, }, @@ -24,9 +27,4 @@ __PACKAGE__->meta->make_manager_class; __PACKAGE__->meta->initialize; -sub part { - # canonial alias for parts. - goto &parts; -} - 1;