X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/efc6308644cc98682efcb325519b2466ee9f5a71..32115b41fee3d1e1523c60975c8da4641a33f37f:/SL/DB/Vendor.pm diff --git a/SL/DB/Vendor.pm b/SL/DB/Vendor.pm index 42e6ca690..53ac297b5 100644 --- a/SL/DB/Vendor.pm +++ b/SL/DB/Vendor.pm @@ -13,7 +13,7 @@ __PACKAGE__->meta->add_relationship( class => 'SL::DB::Shipto', column_map => { id => 'trans_id' }, manager_args => { sort_by => 'lower(shipto.shiptoname)' }, - query_args => [ 'shipto.module' => 'CT' ], + query_args => [ module => 'CT' ], }, contacts => { type => 'one to many', @@ -26,6 +26,12 @@ __PACKAGE__->meta->add_relationship( class => 'SL::DB::Business', column_map => { business_id => 'id' }, }, + custom_variables => { + type => 'one to many', + class => 'SL::DB::CustomVariable', + column_map => { id => 'trans_id' }, + query_args => [ config_id => [ \"(SELECT custom_variable_configs.id FROM custom_variable_configs WHERE custom_variable_configs.module = 'CT')" ] ], + }, ); __PACKAGE__->meta->make_manager_class;