projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CsvImport: Bei Imports ohne CVars deren Standard setzen, wenn vorhanden.
[kivitendo-erp.git]
/
SL
/
DB
/
Part.pm
diff --git
a/SL/DB/Part.pm
b/SL/DB/Part.pm
index
581b468
..
0f85523
100644
(file)
--- a/
SL/DB/Part.pm
+++ b/
SL/DB/Part.pm
@@
-32,7
+32,7
@@
__PACKAGE__->meta->add_relationships(
assemblies => {
type => 'one to many',
class => 'SL::DB::Assembly',
assemblies => {
type => 'one to many',
class => 'SL::DB::Assembly',
- manager_args => { sort_by => 'position
, oid
' },
+ manager_args => { sort_by => 'position' },
column_map => { id => 'id' },
},
prices => {
column_map => { id => 'id' },
},
prices => {
@@
-61,6
+61,7
@@
__PACKAGE__->meta->add_relationships(
type => 'one to many',
class => 'SL::DB::AssortmentItem',
column_map => { id => 'assortment_id' },
type => 'one to many',
class => 'SL::DB::AssortmentItem',
column_map => { id => 'assortment_id' },
+ manager_args => { sort_by => 'position' },
},
history_entries => {
type => 'one to many',
},
history_entries => {
type => 'one to many',
@@
-75,6
+76,12
@@
__PACKAGE__->meta->add_relationships(
column_map => { id => 'part_id' },
manager_args => { with_objects => [ 'shop' ] },
},
column_map => { id => 'part_id' },
manager_args => { with_objects => [ 'shop' ] },
},
+ last_price_update => {
+ type => 'one to one',
+ class => 'SL::DB::PartsPriceHistory',
+ column_map => { id => 'part_id' },
+ manager_args => { sort_by => 'valid_from DESC', limit => 1 },
+ },
);
__PACKAGE__->meta->initialize;
);
__PACKAGE__->meta->initialize;