community-app/app/scripts/controllers/configurations/CreditBureauConfigurationController.js
Rahul Pawar 0232d22ed1
FINERACT-734:CreditBureauPhase-3 (#3302)
thanks for the review @luckyman20  and for the fix @rrpawar96
2022-02-14 11:50:06 +05:30

28 lines
1.1 KiB
JavaScript

(function (module) {
mifosX.controllers = _.extend(module, {
CreditBureauConfigurationController: function ($scope, resourceFactory, $routeParams, location) {
$scope.formdata = {};
resourceFactory.creditBureauTemplate.get(function (data) {
$scope.creditbureaus = data;
$scope.creditbureauname = $scope.creditbureaus.creditBureauName;
});
$scope.submit = function () {
location.path('/externalservicesCB/CreditBureau/editconfiguration/'+$scope.creditBureauId);
};
$scope.cancel = function () {
location.path('/externalservicesCB/CreditBureau');
};
}
});
mifosX.ng.application.controller('CreditBureauConfigurationController', ['$scope', 'ResourceFactory', '$routeParams', '$location','$route', mifosX.controllers.CreditBureauConfigurationController]).run(function ($log) {
$log.info("CreditBureauConfigurationController initialized");
});
}(mifosX.controllers || {}));