From: Moritz Bunkus Date: Tue, 1 Mar 2011 14:57:19 +0000 (+0100) Subject: Verknüpfung Vendor -> Contact X-Git-Tag: release-2.7.0beta1~396^2~45 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=efc6308644cc98682efcb325519b2466ee9f5a71;p=kivitendo-erp.git Verknüpfung Vendor -> Contact --- diff --git a/SL/DB/Vendor.pm b/SL/DB/Vendor.pm index d1d972a15..42e6ca690 100644 --- a/SL/DB/Vendor.pm +++ b/SL/DB/Vendor.pm @@ -15,6 +15,12 @@ __PACKAGE__->meta->add_relationship( manager_args => { sort_by => 'lower(shipto.shiptoname)' }, query_args => [ 'shipto.module' => 'CT' ], }, + contacts => { + type => 'one to many', + class => 'SL::DB::Contact', + column_map => { id => 'cp_cv_id' }, + manager_args => { sort_by => 'lower(contacts.cp_name)' }, + }, business => { type => 'one to one', class => 'SL::DB::Business',