(function(module) { mifosX.controllers = _.extend(module, { AccViewGLAccountContoller: function(scope, routeParams , location, resourceFactory ) { scope.glaccountdata = []; scope.accountOptions = []; resourceFactory.accountCoaResource.get({glAccountId: routeParams.id , template: 'true'} , function(data) { //to display parent name if(data.type.value == "ASSET") { scope.accountOptions = data.assetHeaderAccountOptions; for(var i=0; i