Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1151 from SiddharthaSarma/master
Browse files Browse the repository at this point in the history
#1146 - Fixed the issue of number of patients under Reports not showi…
  • Loading branch information
tangollama committed Aug 31, 2017
2 parents f22231d + 7010f53 commit aa8bb13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/patients/reports/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -660,16 +660,16 @@ export default AbstractReportController.extend(PatientDiagnosis, PatientVisits,
patientName: visit.get('patient.displayName'),
admissionDate: visit.get('startDate'),
dischargeDate: visit.get('endDate'),
patientDays: daysDiff
patientDays: this._numberFormat(daysDiff, true)
}, false, reportColumns);
}
return previousValue += daysDiff;
}.bind(this), 0);
if (detailed) {
this._addReportRow({ patientDays: `Total: ${this._numberFormat(patientDays)}` }, true, reportColumns);
this._addReportRow({ patientDays: `Total: ${this._numberFormat(patientDays, true)}` }, true, reportColumns);

} else {
this._addReportRow({ total: patientDays }, false, reportColumns);
this._addReportRow({ total: this._numberFormat(patientDays, true) }, false, reportColumns);
}
this._finishReport(reportColumns);
},
Expand Down

0 comments on commit aa8bb13

Please sign in to comment.