mirror of
https://github.com/openMF/community-app.git
synced 2026-02-06 14:56:57 +00:00
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>
20 lines
716 B
JavaScript
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 || {}));
|