From 9b46487e8c0440705bcc9089414010220bc09ba7 Mon Sep 17 00:00:00 2001 From: stephen waite Date: Tue, 26 Mar 2024 10:24:46 -0400 Subject: [PATCH] fix: separate pt and enc billing note when saving invoice(#7296) * separate out pt and enc billing note * comment --- interface/billing/sl_eob_invoice.php | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/interface/billing/sl_eob_invoice.php b/interface/billing/sl_eob_invoice.php index 587e11c3a87..51d94f866ec 100644 --- a/interface/billing/sl_eob_invoice.php +++ b/interface/billing/sl_eob_invoice.php @@ -286,7 +286,7 @@ function updateFields(payField, adjField, balField, coPayField, isFirstProcCode) $payer_type = $matches[1]; } -if (!empty($_POST['form_save']) || !empty($_POST['form_cancel']) || !empty($_POST['isLastClosed']) || !empty($_POST['billing_note'])) { +if (!empty($_POST['form_save']) || !empty($_POST['form_cancel']) || !empty($_POST['isLastClosed']) || !empty($_POST['enc_billing_note'])) { if (!empty($_POST['form_save'])) { if (!CsrfUtils::verifyCsrfToken($_POST["csrf_token_form"])) { CsrfUtils::csrfNotVerified(); @@ -417,7 +417,7 @@ function updateFields(payField, adjField, balField, coPayField, isFirstProcCode) if (!$debug && !$save_stay && !$_POST['isLastClosed']) { echo "doClose();\n"; } - if (!$debug && ($save_stay || $_POST['isLastClosed'] || $_POST['billing_note'])) { + if (!$debug && ($save_stay || $_POST['isLastClosed'] || $_POST['enc_billing_note'])) { if ($_POST['isLastClosed']) { // save last closed level $form_done = 0 + $_POST['form_done']; @@ -430,9 +430,9 @@ function updateFields(payField, adjField, balField, coPayField, isFirstProcCode) } } - if ($_POST['billing_note']) { - // save last closed level - sqlStatement("UPDATE form_encounter SET billing_note = ? WHERE pid = ? AND encounter = ?", array($_POST['billing_note'], $patient_id, $encounter_id)); + if ($_POST['enc_billing_note']) { + // save enc billing note + sqlStatement("UPDATE form_encounter SET billing_note = ? WHERE pid = ? AND encounter = ?", array($_POST['enc_billing_note'], $patient_id, $encounter_id)); } // will reload page w/o reposting @@ -509,8 +509,14 @@ function updateFields(payField, adjField, balField, coPayField, isFirstProcCode)
- - + + +
+
+
+
+ +