diff --git a/modules/client/front/greuge/index/index.html b/modules/client/front/greuge/index/index.html index a9d06cfa3..537e67602 100644 --- a/modules/client/front/greuge/index/index.html +++ b/modules/client/front/greuge/index/index.html @@ -4,7 +4,7 @@ filter="::$ctrl.filter" link="{clientFk: $ctrl.$stateParams.id}" limit="20" - data="greuges" auto-load="false"> + data="greuges" auto-load="true"> - + Date Comment - Amount + Amount Type diff --git a/modules/client/front/greuge/index/index.js b/modules/client/front/greuge/index/index.js index 3dd5c9eaf..b89b01d7e 100644 --- a/modules/client/front/greuge/index/index.js +++ b/modules/client/front/greuge/index/index.js @@ -6,12 +6,13 @@ class Controller { this.filter = { include: [ { - relation: "greugeType", + relation: 'greugeType', scope: { - fields: ["id", "name"] + fields: ['id', 'name'] } } - ] + ], + order: 'shipped DESC, amount' }; } }