From dbdaaafb9239a402faa889d9d89616a3e98d79fe Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 9 Nov 2010 09:14:02 +0100 Subject: [PATCH] =?utf8?q?Verkn=C3=BCpfungen=20zum=20Preisfaktor-Objekt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/DB/InvoiceItem.pm | 7 ++++++- SL/DB/OrderItem.pm | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) 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. -- 2.20.1