X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FInvoiceItem.pm;h=8f9a4dde7bae629beb2df365c38f0786c7a0a793;hb=49be66cdf74882abde5a93832a959e27baddd925;hp=04b28a1952fe7eca064aa904f103a46d5478916c;hpb=dbdaaafb9239a402faa889d9d89616a3e98d79fe;p=kivitendo-erp.git diff --git a/SL/DB/InvoiceItem.pm b/SL/DB/InvoiceItem.pm index 04b28a195..8f9a4dde7 100644 --- a/SL/DB/InvoiceItem.pm +++ b/SL/DB/InvoiceItem.pm @@ -3,17 +3,22 @@ package SL::DB::InvoiceItem; use strict; use SL::DB::MetaSetup::InvoiceItem; +use SL::DB::Helper::CustomVariables ( + sub_module => 'invoice', + cvars_alias => 1, + overloads => { + 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 => 'many to one', + class => 'SL::DB::Unit', + column_map => { unit => 'name' }, }, );