X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/9e152755a340c813514eb132de27349ae7a9e028..aad6637bd756d0eab0621836a83c6dd718d04efe:/SL/DB/Customer.pm diff --git a/SL/DB/Customer.pm b/SL/DB/Customer.pm index f2893ae74..186ad9750 100644 --- a/SL/DB/Customer.pm +++ b/SL/DB/Customer.pm @@ -27,9 +27,14 @@ __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; __PACKAGE__->meta->initialize; __PACKAGE__->before_save('_before_save_set_customernumber');