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:
79cd754
)
Part - history_entries Relationship
author
G. Richardson
<information@kivitendo-premium.de>
Sun, 13 Nov 2016 10:31:47 +0000
(11:31 +0100)
committer
G. Richardson
<information@kivitendo-premium.de>
Tue, 22 Nov 2016 13:42:50 +0000
(14:42 +0100)
SL/DB/Part.pm
patch
|
blob
|
history
diff --git
a/SL/DB/Part.pm
b/SL/DB/Part.pm
index
901f57a
..
3257127
100644
(file)
--- a/
SL/DB/Part.pm
+++ b/
SL/DB/Part.pm
@@
-46,6
+46,13
@@
__PACKAGE__->meta->add_relationships(
class => 'SL::DB::AssortmentItem',
column_map => { id => 'assortment_id' },
},
+ history_entries => {
+ type => 'one to many',
+ class => 'SL::DB::History',
+ column_map => { id => 'trans_id' },
+ query_args => [ what_done => 'part' ],
+ manager_args => { sort_by => 'itime' },
+ },
);
__PACKAGE__->meta->initialize;