fixing issues caused due to angular upgrade and add new section under reports header for savings reports

This commit is contained in:
Vishwas Babu A J 2014-03-04 18:20:46 -08:00
parent c059269ed7
commit 352a4f83b2
4 changed files with 8 additions and 2 deletions

View File

@ -340,6 +340,7 @@
"label.anchor.home": "Home",
"label.anchor.all": "All",
"label.anchor.loans": "Loans",
"label.anchor.savings": "Savings",
"label.anchor.funds": "Funds",
"label.anchor.admin": "Admin",
"label.anchor.reports": "Reports",

View File

@ -45,7 +45,7 @@
<h1>{{ 'label.heading.mifosx' | translate }}</h1>
<span>{{ 'label.heading.version' | translate }}</span><br/>
<span>{{ 'label.heading.uptodate' | translate }}</span><br/>
<span ng-bind-html-unsafe="text"></span>
<span ng-bind-html="text"></span>
</td>
</tr>
</table>
@ -163,6 +163,7 @@
<li><a href="#/reports/all">{{ 'label.anchor.all' | translate }}</a></li>
<li><a href="#/reports/clients">{{ 'label.anchor.clients' | translate }}</a></li>
<li><a href="#/reports/loans">{{ 'label.anchor.loans' | translate }}</a></li>
<li><a href="#/reports/savings">{{ 'label.anchor.savings' | translate }}</a></li>
<li><a href="#/reports/funds">{{ 'label.anchor.funds' | translate }}</a></li>
<li><a href="#/reports/accounting">{{ 'label.anchor.accounting' | translate }}</a></li>
<li><a href="#/xbrl">{{ 'label.anchor.xbrl' | translate }}</a></li>

View File

@ -123,7 +123,7 @@
}
}
else if (route == 'rep') {
var temp2 = ['/reports/all', '/reports/clients', '/reports/loans', '/reports/funds', '/reports/accounting'];
var temp2 = ['/reports/all', '/reports/clients', '/reports/loans', '/reports/funds', '/reports/accounting', 'reports/savings'];
for (var i in temp2) {
if (temp2[i] == location.path()) {
return true;

View File

@ -21,6 +21,10 @@
resourceFactory.runReportsResource.get({reportSource: 'reportCategoryList', R_reportCategory: 'Loan', parameterType: true, genericResultSet: false}, function (data) {
scope.reports = scope.getReports(data);
});
} else if (routeParams.type == 'savings') {
resourceFactory.runReportsResource.get({reportSource: 'reportCategoryList', R_reportCategory: 'Savings', parameterType: true, genericResultSet: false}, function (data) {
scope.reports = scope.getReports(data);
});
} else if (routeParams.type == 'funds') {
resourceFactory.runReportsResource.get({reportSource: 'reportCategoryList', R_reportCategory: 'Fund', parameterType: true, genericResultSet: false}, function (data) {
scope.reports = scope.getReports(data);