projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Speicherroutine darf nur auf "customer_vendor_edit" testen
[kivitendo-erp.git]
/
SL
/
DB
/
Customer.pm
diff --git
a/SL/DB/Customer.pm
b/SL/DB/Customer.pm
index
0adffbd
..
2e3fa68
100644
(file)
--- a/
SL/DB/Customer.pm
+++ b/
SL/DB/Customer.pm
@@
-26,11
+26,6
@@
__PACKAGE__->meta->add_relationship(
column_map => { id => 'cp_cv_id' },
manager_args => { sort_by => 'lower(contacts.cp_name)' },
},
column_map => { id => 'cp_cv_id' },
manager_args => { sort_by => 'lower(contacts.cp_name)' },
},
- business => {
- type => 'one to one',
- class => 'SL::DB::Business',
- column_map => { business_id => 'id' },
- },
);
__PACKAGE__->meta->initialize;
);
__PACKAGE__->meta->initialize;
@@
-50,4
+45,10
@@
sub short_address {
return join ', ', grep { $_ } $self->street, $self->zipcode, $self->city;
}
return join ', ', grep { $_ } $self->street, $self->zipcode, $self->city;
}
+sub displayable_name {
+ my $self = shift;
+
+ return join ' ', grep $_, $self->customernumber, $self->name;
+}
+
1;
1;