projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0297cac
)
Verknüpfung Vendor -> Contact
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Tue, 1 Mar 2011 14:57:19 +0000
(15:57 +0100)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Thu, 16 Jun 2011 06:44:24 +0000
(08:44 +0200)
SL/DB/Vendor.pm
patch
|
blob
|
history
diff --git
a/SL/DB/Vendor.pm
b/SL/DB/Vendor.pm
index
d1d972a
..
42e6ca6
100644
(file)
--- a/
SL/DB/Vendor.pm
+++ b/
SL/DB/Vendor.pm
@@
-15,6
+15,12
@@
__PACKAGE__->meta->add_relationship(
manager_args => { sort_by => 'lower(shipto.shiptoname)' },
query_args => [ 'shipto.module' => 'CT' ],
},
+ contacts => {
+ type => 'one to many',
+ class => 'SL::DB::Contact',
+ column_map => { id => 'cp_cv_id' },
+ manager_args => { sort_by => 'lower(contacts.cp_name)' },
+ },
business => {
type => 'one to one',
class => 'SL::DB::Business',