Skip to content

Commit

Permalink
fix(balance report at the server side): Fix the reduce value computed…
Browse files Browse the repository at this point in the history
… for the balance totals, and fi

#1693
  • Loading branch information
mbayopanda committed Jun 7, 2017
1 parent 9ca7d36 commit e438788
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/src/i18n/fr/tree.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"FINANCE":"Finances",
"FISCAL_YEAR":"Année Fiscale",
"FONCTION":"Gestion Fonctions",
"GENERAL_LEDGER":"Grande Livre",
"GENERAL_LEDGER":"Grand Livre",
"GRADE_EMPLOYERS":"Gestion Grades",
"HOSPITAL":"Hôpital",
"INCOME_EXPENSE":"Recettes et dépenses",
Expand Down
4 changes: 2 additions & 2 deletions client/src/modules/reports/modals/agedCreditors.modal.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="modal-header">
<ol class="headercrumb">
<li class="title" translate> ReportConfigCtrl.report.title_key </li>
<li class="title" translate> {{ ReportConfigCtrl.report.title_key }} </li>
<span class="badge badge-success text-uppercase" translate> FORM.LABELS.CREATE</span>
</ol>
</div>
Expand All @@ -13,7 +13,7 @@
<input class="form-control" name="label" autocomplete="off" ng-model="ReportConfigCtrl.label" required />

<div class="help-block" ng-messages="ConfigForm.label.$error" ng-show="ConfigForm.$submitted">
<div ng-messages-include="partials/templates/messages.tmpl.html"></div>
<div ng-messages-include="modules/templates/messages.tmpl.html"></div>
</div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion server/controllers/finance/reports/balance/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function processAccounts(balances, a, totals) {
t.middleCredit += (account.middleCredit || 0);
t.endDebit += (account.endDebit || 0);
t.endCredit += (account.endCredit || 0);
return totals;
return t;
}, {
beginDebit : 0,
beginCredit : 0,
Expand Down

0 comments on commit e438788

Please sign in to comment.