Bug #820
openTurning off "Payment details" and "Amount in words" in Document settings doesn't actually remove them from the real printed bill
0%
Description
Where: Admin -> Documents -> Laboratory bill / tax invoice -> Settings (and the real print it controls: Billing -> Bills -> row menu -> Print receipt)
How bad: High -- the Settings page for a document is supposed to control what's on it. Right now it doesn't, for at least two sections, so a hospital that deliberately switches something off is not getting what it asked for on every real bill handed to a patient.
Where tested: nssh.test.clinq.health, San Jose St. Bonaventure Hospital
What I did:
- Opened Admin -> Documents -> Laboratory bill / tax invoice -> Settings.
- Confirmed "Payment details" and "Amount in words" are both switched OFF (checked this twice, including after a fresh page reload, so this is the actual saved setting, not just an unsaved toggle on screen).
- Went to Billing -> Bills, found a real, already-paid lab bill for this same hospital (BILL-1-00247, patient "alminta"), and used the row's "Print receipt" action -- the same action the Settings page itself says this document is "Printed from" (it literally says "Printed from Billing > Bills > Print" right under the template name).
- Pulled the actual PDF file the system generated for that bill and read its real content (not just a screenshot).
What should happen: Since both "Payment details" and "Amount in words" are switched off, the printed bill should not show the amount written out in words, and should not show the payment information section (payment mode, amount paid, balance, signatory line).
What actually happens: The real PDF for BILL-1-00247 clearly includes both, word for word:
- "Amount in words: Five Hundred rupees only."
- A full payment section: "Mode: Cash", "Paid: Rs 500 - Balance: Rs 0", and "Authorized Signatory"
So the Settings toggles have no effect on what the patient actually receives.
One thing worth checking on the dev side: the Preview tab's sample data shows the document under a different heading ("TAX INVOICE - Laboratory services") than the real bill does ("Billing - payment receipt"). That difference might just be normal -- the heading may change depending on whether GST applies to the bill (this particular bill is tax-exempt) -- but it's worth confirming that the Settings page is actually talking to the same print path it claims to control ("Printed from Billing > Bills > Print"), and not a different one.
How often it happens: Every time -- checked once carefully with a real, already-paid bill, and both missing sections showed up anyway.
Real example: Bill BILL-1-00247, hospital San Jose St. Bonaventure Hospital.
What devs should check: Why the saved Settings values for this document ("Payment details": off, "Amount in words": off) aren't being read by whatever generates the real PDF for Billing > Bills > Print receipt -- and whether that's the same template as the one shown in the Preview tab.