diff --git a/app/scripts/controllers/deposits/recurring/ViewRecurringDepositAccountDetailsController.js b/app/scripts/controllers/deposits/recurring/ViewRecurringDepositAccountDetailsController.js index 0eb6747b..e48affc8 100755 --- a/app/scripts/controllers/deposits/recurring/ViewRecurringDepositAccountDetailsController.js +++ b/app/scripts/controllers/deposits/recurring/ViewRecurringDepositAccountDetailsController.js @@ -286,6 +286,20 @@ }; }; + scope.transactionSort = { + column: 'date', + descending: true + }; + scope.changeTransactionSort = function(column) { + var sort = scope.transactionSort; + if (sort.column == column) { + sort.descending = !sort.descending; + } else { + sort.column = column; + sort.descending = true; + } + }; + } }); mifosX.ng.application.controller('ViewRecurringDepositAccountDetailsController', ['$scope', '$routeParams', 'ResourceFactory', '$location', '$route', 'dateFilter','$modal', mifosX.controllers.ViewRecurringDepositAccountDetailsController]).run(function ($log) { diff --git a/app/views/deposits/recurring/viewaccountdetails.html b/app/views/deposits/recurring/viewaccountdetails.html index 9fad1419..191db088 100755 --- a/app/views/deposits/recurring/viewaccountdetails.html +++ b/app/views/deposits/recurring/viewaccountdetails.html @@ -204,17 +204,17 @@