X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/e1bf173bae820584e8bafdc01ebe2e7d7537a59c..83b3eda1b37e1bd22ae4ea0192cf2b0d5975a0a8:/SL/DB/Contact.pm diff --git a/SL/DB/Contact.pm b/SL/DB/Contact.pm index d9ebf93e7..aa74bea3d 100644 --- a/SL/DB/Contact.pm +++ b/SL/DB/Contact.pm @@ -14,4 +14,17 @@ use SL::DB::Helper::CustomVariables ( # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; +sub full_name { + my ($self) = @_; + die 'not an accessor' if @_ > 1; + join ', ', grep $_, $self->cp_name, $self->cp_givenname; +} + +sub full_name_dep { + my ($self) = @_; + die 'not an accessor' if @_ > 1; + $self->full_name + . join '', map { " ($_)" } grep $_, $self->cp_abteilung; +} + 1;