X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FInvoiceItem.pm;h=8f9a4dde7bae629beb2df365c38f0786c7a0a793;hb=4ad83535d690476c4d279eb57741612835a3bc60;hp=d8b39034d69d68401eb49131d0f7fd586eb5311f;hpb=78034f2431414b414d171b720bc0438635e19ae5;p=kivitendo-erp.git diff --git a/SL/DB/InvoiceItem.pm b/SL/DB/InvoiceItem.pm index d8b39034d..8f9a4dde7 100644 --- a/SL/DB/InvoiceItem.pm +++ b/SL/DB/InvoiceItem.pm @@ -3,13 +3,23 @@ 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' }, - } + unit_obj => { + type => 'many to one', + class => 'SL::DB::Unit', + column_map => { unit => 'name' }, + }, ); # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.