X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/e1bf173bae820584e8bafdc01ebe2e7d7537a59c..d0535d474013611f57691dee2e4542115a4f0123:/SL/DB/Customer.pm diff --git a/SL/DB/Customer.pm b/SL/DB/Customer.pm index 7cdfde6e4..f9f890167 100644 --- a/SL/DB/Customer.pm +++ b/SL/DB/Customer.pm @@ -31,12 +31,6 @@ __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->initialize; @@ -56,4 +50,10 @@ sub short_address { return join ', ', grep { $_ } $self->street, $self->zipcode, $self->city; } +sub displayable_name { + my $self = shift; + + return join ' ', grep $_, $self->customernumber, $self->name; +} + 1;