devsofttech_hms_ci4/app/Views/billing/ipd
DevSoftTech Server ddec3cec69 Fix editable complaint fields - attach handlers after section reload
BUGFIX: Event handlers were only attached on initial page load

PROBLEM: After implementing editable complaint fields, the inputs
wouldn't become editable when adding new complaints via the Smart
Complaints Picker. The event handlers were only attached once on
page load, not after the section was dynamically reloaded.

ROOT CAUSE: When clicking Add or AI Draft buttons, the form submits
and the section-complaints area is reloaded from server. The new
complaint rows had the input fields but no event handlers attached.

SOLUTION:
1. Moved event handler attachment logic into initComplaintTools()
   function as new attachComplaintFieldHandlers() helper
2. This function is automatically called after section reload
3. Clone-and-replace pattern to prevent duplicate event handlers
4. Fixed table name: ipd_discharge_complaint (not ipd_discharge_comp)

FLOW:
- Add complaint → section reloads → initComplaintTools() runs →
  attachComplaintFieldHandlers() attaches blur/keydown handlers →
  editable fields work

Now clicking on complaint name/remark inputs works for both:
- Existing complaints (on page load)
- Newly added complaints (after section reload)
2026-06-06 05:18:35 +05:30
..
ayushman_claim_sheet.php Add Ayushman package import, billing claim sheet, and reporting dashboards 2026-03-26 15:42:40 +05:30
bill_print.php fix: correct IPD balance display when computed balance is zero 2026-04-10 21:07:01 +05:30
cash_balance_table.php Implement OPD template builder, doctor template selection, and OPD print integration fixes 2026-02-27 19:44:36 +05:30
cash_balance.php IPD cash balance: fix date range picker submission and parser 2026-04-03 14:13:05 +05:30
current_admission.php Implement OPD template builder, doctor template selection, and OPD print integration fixes 2026-02-27 19:44:36 +05:30
dashboard.php Implement OPD template builder, doctor template selection, and OPD print integration fixes 2026-02-27 19:44:36 +05:30
discharge_create.php Fix editable complaint fields - attach handlers after section reload 2026-06-06 05:18:35 +05:30
discharge_preview.php Make discharge preview top panel sticky and add action buttons 2026-06-06 04:46:17 +05:30
discharge_print.php Add report panel updates and related billing/discharge enhancements 2026-03-10 02:43:35 +05:30
invoice_list.php Implement IPD admission/discharge editing, bill PDF modes, and invoice list view action 2026-03-21 15:47:18 +05:30
ipd_form_print.php Port CI3 vitals chart and treatment chart forms to CI4 IPD form print (form_no 6 and 7) 2026-04-09 04:26:09 +05:30
ipd_model_payment_box.php refactor: set number input step to 1 across views 2026-04-10 21:16:25 +05:30
ipd_panel_deduction_payment.php refactor: set number input step to 1 across views 2026-04-10 21:16:25 +05:30
ipd_panel_tpa_payment.php refactor: set number input step to 1 across views 2026-04-10 21:16:25 +05:30
ipd_payment_receipt_pdf.php IPD payment receipt: fix modal loader, add PDF print route, and bank mode details 2026-04-03 13:29:03 +05:30
ipd_payment_receipt_print.php IPD payment receipt: fix modal loader, add PDF print route, and bank mode details 2026-04-03 13:29:03 +05:30
legacy_registration.php Fix legacy billing prints and pathology template compatibility 2026-03-21 02:23:31 +05:30
nursing_chart_print.php Add nursing scan-to-structured workflow and discharge UI polish 2026-03-09 00:12:04 +05:30
panel_admission.php Implement IPD admission/discharge editing, bill PDF modes, and invoice list view action 2026-03-21 15:47:18 +05:30
panel_bed_assign.php Implement OPD template builder, doctor template selection, and OPD print integration fixes 2026-02-27 19:44:36 +05:30
panel_bill_details.php fix: correct IPD balance display when computed balance is zero 2026-04-10 21:07:01 +05:30
panel_diagnosis.php Add Ayushman package import, billing claim sheet, and reporting dashboards 2026-03-26 15:42:40 +05:30
panel_discharge.php refactor: set number input step to 1 across views 2026-04-10 21:16:25 +05:30
panel_documents.php Make IPD forms dynamic and stop stale OPD refresh polling 2026-04-08 11:41:33 +05:30
panel_ipd_charges.php feat(ipd-charges): group delete, sort order, Up/Down buttons, foldable billing panels 2026-04-18 06:56:38 +05:30
panel_medical_bills.php Implement OPD template builder, doctor template selection, and OPD print integration fixes 2026-02-27 19:44:36 +05:30
panel_package.php billing: add ABHA create/verify tab in patient billing view and update IPD panel package; add hospital logo image 2026-05-08 10:48:43 +05:30
panel_payments.php IPD payment receipt: fix modal loader, add PDF print route, and bank mode details 2026-04-03 13:29:03 +05:30
panel_placeholder.php Implement OPD template builder, doctor template selection, and OPD print integration fixes 2026-02-27 19:44:36 +05:30
panel.php Restore legacy HMS flows and add IPD document master templates 2026-03-24 04:24:19 +05:30