X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FContact.pm;h=bed7e9cd6f4f0d7090fe2cb237c6b1f6bbadbcdb;hb=53593baa211863fbf66540cf1bcc36c8fb37257f;hp=565566a19c57c1369987c92f63ca2e8709d3d674;hpb=554ef802462a140ea769b8c3a7c7fc3ac91a58c4;p=kivitendo-erp.git diff --git a/SL/DB/Contact.pm b/SL/DB/Contact.pm index 565566a19..bed7e9cd6 100644 --- a/SL/DB/Contact.pm +++ b/SL/DB/Contact.pm @@ -1,19 +1,14 @@ -# This file has been auto-generated only because it didn't exist. -# Feel free to modify it at will; it will not be overwritten automatically. - package SL::DB::Contact; use strict; use SL::DB::MetaSetup::Contact; +use SL::DB::Manager::Contact; use SL::DB::Helper::CustomVariables ( module => 'Contacts', cvars_alias => 1, ); -# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. -__PACKAGE__->meta->make_manager_class; - __PACKAGE__->meta->initialize; sub used { @@ -50,4 +45,10 @@ sub full_name_dep { . join '', map { " ($_)" } grep $_, $self->cp_abteilung; } +sub formal_greeting { + my ($self) = @_; + die 'not an accessor' if @_ > 1; + join ' ', grep $_, $self->cp_title, $self->cp_givenname, $self->cp_name; +} + 1;