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:
4153678
)
Part: makemodels_sorted accessor
author
Sven Schöling
<s.schoeling@linet-services.de>
Mon, 29 Jan 2018 16:53:42 +0000
(17:53 +0100)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Mon, 29 Jan 2018 16:57:38 +0000
(17:57 +0100)
SL/DB/Part.pm
patch
|
blob
|
history
diff --git
a/SL/DB/Part.pm
b/SL/DB/Part.pm
index
d7bc6db
..
5b5b4a2
100644
(file)
--- a/
SL/DB/Part.pm
+++ b/
SL/DB/Part.pm
@@
-11,6
+11,7
@@
use SL::DB::MetaSetup::Part;
use SL::DB::Manager::Part;
use SL::DB::Chart;
use SL::DB::Helper::AttrHTML;
+use SL::DB::Helper::AttrSorted;
use SL::DB::Helper::TransNumberGenerator;
use SL::DB::Helper::CustomVariables (
module => 'IC',
@@
-70,6
+71,7
@@
__PACKAGE__->meta->add_relationships(
__PACKAGE__->meta->initialize;
__PACKAGE__->attr_html('notes');
+__PACKAGE__->attr_sorted({ unsorted => 'makemodels', position => 'sortorder' });
__PACKAGE__->before_save('_before_save_set_partnumber');