Skip to content

Commit

Permalink
- Using translate directive
Browse files Browse the repository at this point in the history
- Using creditors instead suppliers
- Fix Comment
  • Loading branch information
lomamech committed Apr 11, 2017
1 parent 862d429 commit 245ddb3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
14 changes: 7 additions & 7 deletions client/src/partials/reports/modals/agedCreditors.modal.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<div class="modal-header">
<ol class="headercrumb">
<li class="title">{{ ReportConfigCtrl.report.title_key | translate }}</li>
<span class="badge badge-success text-uppercase">{{ "FORM.LABELS.CREATE" | translate }}</span>
<li class="title" translate> ReportConfigCtrl.report.title_key </li>
<span class="badge badge-success text-uppercase" translate> FORM.LABELS.CREATE</span>
</ol>
</div>

<form name="ConfigForm" bh-submit="ReportConfigCtrl.generate(ConfigForm)" bh-form-defaults novalidate>
<div class="modal-body">
<div class="form-group"
ng-class="{ 'has-error' : ConfigForm.$submitted && ConfigForm.label.$invalid }">
<label class="control-label">{{ "FORM.LABELS.LABEL" | translate }}</label>
<label class="control-label" translate> FORM.LABELS.LABEL </label>
<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">
Expand All @@ -25,18 +25,18 @@
<div class="checkbox">
<label class="control-label">
<input type="checkbox" ng-model="ReportConfigCtrl.zeroes" ng-true-value="1" ng-false-value="0">
{{ "FORM.LABELS.INCLUDE_ZEROES" | translate }}
<span translate> FORM.LABELS.INCLUDE_ZEROES </span>
</label>
</div>
</div>

<div class="modal-footer">
<button type="button" class="btn btn-default" ng-click="ReportConfigCtrl.cancel()" data-method="cancel">
{{ "FORM.BUTTONS.CANCEL" | translate }}
<button type="button" class="btn btn-default" ng-click="ReportConfigCtrl.cancel()" data-method="cancel" translate>
FORM.BUTTONS.CANCEL
</button>

<bh-loading-button loading-state="ConfigForm.$loading" ng-disabled="ConfigForm.$invalid">
{{ "FORM.BUTTONS.GENERATE" | translate }}
<span translate> FORM.BUTTONS.GENERATE </span>
</bh-loading-button>
</div>
</form>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{> head title="REPORT.AGED_SUPPLIERS"}}
{{> head title="REPORT.AGED_CREDITORS"}}

<body>
<main class="container">
Expand Down
8 changes: 1 addition & 7 deletions server/controllers/finance/reports/creditors/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,11 @@
* @overview finance/reports/creditors/index.js
*
* @description
* This report displays the amounts owed by creditor groups broken down by age of
* their debt. The report highlights clients who have long overdue debts, so
* that the administration can send out a recovery service to try and recover
* the owed debt.
* This report displays the debts of the company
*
* The typical age categories are 0-30 days, 30-60 days, 60-90 days, and > 90
* days.
*
* As usual, the reports are created with a handlebars template and shipped to
* the client as either JSON, HTML, or PDF, depending on the renderer specified
* in the HTTP query string.
*/


Expand Down

0 comments on commit 245ddb3

Please sign in to comment.