From: Sven Schöling Date: Thu, 13 Oct 2011 08:46:26 +0000 (+0200) Subject: vendor model update X-Git-Tag: release-2.7.0beta1~229 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=9be7c8ab43c49d7935cc91d3be72bc5717e07dc0;p=kivitendo-erp.git vendor model update --- diff --git a/SL/DB/MetaSetup/Vendor.pm b/SL/DB/MetaSetup/Vendor.pm index 6d858e59f..ae71c6293 100644 --- a/SL/DB/MetaSetup/Vendor.pm +++ b/SL/DB/MetaSetup/Vendor.pm @@ -59,6 +59,23 @@ __PACKAGE__->meta->setup( primary_key_columns => [ 'id' ], allow_inline_column_values => 1, + + foreign_keys => [ + business => { + class => 'SL::DB::Business', + key_columns => { business_id => 'id' }, + }, + + language_obj => { + class => 'SL::DB::Language', + key_columns => { language_id => 'id' }, + }, + + payment => { + class => 'SL::DB::PaymentTerm', + key_columns => { payment_id => 'id' }, + }, + ], ); 1;