community-app/app/scripts/controllers/product/ViewRateController.js
Angel Cajas ca5bc6325a
Rate Module (#3000)
New pages were added for Rate definition and rates can be added in loan products and accounts

Co-authored-by: Angel Cajas <angel.cajas@bowpi.com>
2020-08-24 13:18:15 -07:00

20 lines
716 B
JavaScript

/**
* Created by Jose on 25/07/2017.
*/
(function (module) {
mifosX.controllers = _.extend(module, {
ViewRateController: function (scope, routeParams, resourceFactory, location, $uibModal) {
scope.rate = [];
scope.choice = 0;
resourceFactory.rateResource.getRate({rateId: routeParams.rateId}, function (data) {
scope.rate = data;
});
}
});
mifosX.ng.application.controller('ViewRateController', ['$scope', '$routeParams', 'ResourceFactory', '$location', '$uibModal', mifosX.controllers.ViewRateController]).run(function ($log) {
$log.info("ViewRateController initialized");
});
}(mifosX.controllers || {}));