From: Moritz Bunkus Date: Tue, 9 Nov 2010 08:14:02 +0000 (+0100) Subject: Verknüpfungen zum Preisfaktor-Objekt X-Git-Tag: release-2.6.3~61^2~7^2~1^2~2^2~79 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=dbdaaafb9239a402faa889d9d89616a3e98d79fe;p=kivitendo-erp.git Verknüpfungen zum Preisfaktor-Objekt --- diff --git a/SL/DB/InvoiceItem.pm b/SL/DB/InvoiceItem.pm index d8b39034d..04b28a195 100644 --- a/SL/DB/InvoiceItem.pm +++ b/SL/DB/InvoiceItem.pm @@ -9,7 +9,12 @@ __PACKAGE__->meta->add_relationship( 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' }, + }, ); # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. diff --git a/SL/DB/OrderItem.pm b/SL/DB/OrderItem.pm index 94d2bc81d..9ee5743ef 100644 --- a/SL/DB/OrderItem.pm +++ b/SL/DB/OrderItem.pm @@ -9,7 +9,12 @@ __PACKAGE__->meta->add_relationship( 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' }, + }, ); # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.