projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Testfall: Erzeugnis fertigen aufm Mond, aber Einzelteile im Lager Erde
[kivitendo-erp.git]
/
SL
/
DB
/
Contact.pm
diff --git
a/SL/DB/Contact.pm
b/SL/DB/Contact.pm
index
d891f07
..
bed7e9c
100644
(file)
--- a/
SL/DB/Contact.pm
+++ b/
SL/DB/Contact.pm
@@
-1,18
+1,15
@@
-# 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;
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,
);
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 {
my ($self) = @_;
sub used {
my ($self) = @_;
@@
-48,4
+45,10
@@
sub full_name_dep {
. join '', map { " ($_)" } grep $_, $self->cp_abteilung;
}
. 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;
1;