From: Moritz Bunkus Date: Tue, 9 Nov 2010 15:28:29 +0000 (+0100) Subject: Verknüpfungen zum Unit-Model X-Git-Tag: release-2.6.3~61^2~7^2~1^2~2^2~73 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=14d07f37b1f03ecb512b221faeb93e62dfd34b3d;p=kivitendo-erp.git Verknüpfungen zum Unit-Model --- diff --git a/SL/DB/InvoiceItem.pm b/SL/DB/InvoiceItem.pm index 04b28a195..1407c3334 100644 --- a/SL/DB/InvoiceItem.pm +++ b/SL/DB/InvoiceItem.pm @@ -15,6 +15,11 @@ __PACKAGE__->meta->add_relationship( class => 'SL::DB::PriceFactor', column_map => { price_factor_id => 'id' }, }, + unit_obj => { + type => 'one to one', + class => 'SL::DB::Unit', + column_map => { unit => 'name' }, + }, ); # 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 9ee5743ef..1e17d364c 100644 --- a/SL/DB/OrderItem.pm +++ b/SL/DB/OrderItem.pm @@ -15,6 +15,11 @@ __PACKAGE__->meta->add_relationship( class => 'SL::DB::PriceFactor', column_map => { price_factor_id => 'id' }, }, + unit_obj => { + type => 'one to one', + class => 'SL::DB::Unit', + column_map => { unit => 'name' }, + }, ); # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.