Bei Sortimenten Sortimentsartikel nach 'position' sortieren
[kivitendo-erp.git] / SL / DB / Part.pm
index f1a7125..e98b0c4 100644 (file)
@@ -61,6 +61,7 @@ __PACKAGE__->meta->add_relationships(
     type         => 'one to many',
     class        => 'SL::DB::AssortmentItem',
     column_map   => { id => 'assortment_id' },
+    manager_args => { sort_by => 'position' },
   },
   history_entries   => {
     type            => 'one to many',