Bug #694
openMove all printed templates into Document Templates
50%
Description
Some prints are built in the code and cannot be changed in Admin > Document Templates (for example Counter Sale receipt, Cashier Desk receipt, lab and radiology reports). All printed documents should use a template so the hospital can edit them.
Several printed documents are built directly in code rather than driven by the Admin > Document Templates module, so hospitals can’t edit their layout or content. Confirmed examples: the Counter Sale receipt, the Cashier Desk receipt, and lab and radiology reports. Every printed document should instead be template-driven, so a hospital can customize them without needing a code change.
Impact
Hospitals can’t adjust the wording, branding, or layout of some of their patient-facing and internal printed documents (e.g. correcting something on a receipt, adding a hospital-specific disclaimer to a lab report) without engineering involvement, even though Document Templates exists specifically for this purpose. This creates an inconsistent editing experience — some documents are customizable, others aren’t — and pushes template-level tweaks onto the dev team that should otherwise be self-service for the hospital’s admin.
Environment
Module: Admin > Document Templates (where templates are normally managed). Prints affected: Pharmacy > Counter Sale receipt, Receivables > Cashier Desk receipt, and Lab and Radiology reports.
Steps to Reproduce
Go to Admin > Document Templates and review the templates available for editing.
Go to Pharmacy > Counter Sale, complete/view a sale, and print the receipt — this receipt’s layout/content isn’t listed as an editable template in Document Templates.
Go to Receivables > Cashier Desk and print a receipt from there — same result, not editable via templates.
Check Lab and Radiology report printouts — same result.
Expected vs Actual
Expected: all printed documents — receipts, lab reports, radiology reports, and any other patient-facing or internal print — should be driven by an editable template in Admin > Document Templates, so changes don’t require a code deployment.
Actual: at least the Counter Sale receipt, the Cashier Desk receipt, and lab/radiology reports are built in code and not exposed as editable templates.
Notes
Filed as an enhancement, not a bug — the application works correctly as built; the gap is that these documents aren’t exposed as editable templates. Written up from the reporter’s own direct, already-confirmed observation rather than a fresh live walkthrough this time, per the established pattern in this project.
Counter Sale receipt, Cashier Desk receipt, and lab/radiology reports are given as examples, not claimed to be an exhaustive list — recommend the dev team audit every printed document in the system against what currently exists in Document Templates, to find the complete set of hardcoded-vs-templated prints before scoping the fix.