X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/1b65e282f1ef2e45b0c7aa8027b8d9ec8a7c2816..e214accccd89a9c8:/SL/DB/InvoiceItem.pm diff --git a/SL/DB/InvoiceItem.pm b/SL/DB/InvoiceItem.pm index 44c121e94..8f9a4dde7 100644 --- a/SL/DB/InvoiceItem.pm +++ b/SL/DB/InvoiceItem.pm @@ -7,23 +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( - 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', + type => 'many to one', class => 'SL::DB::Unit', column_map => { unit => 'name' }, },