From 071fb88a47921f21068dd2bb37f0a688560e389b Mon Sep 17 00:00:00 2001 From: Paul Simon Date: Thu, 30 Jun 2011 11:33:53 +0530 Subject: [PATCH] Bug in the function ar_responsible_party is corrected Signed-off-by: Paul Simon --- library/invoice_summary.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/invoice_summary.inc.php b/library/invoice_summary.inc.php index 65b868d30..6812a0b31 100644 --- a/library/invoice_summary.inc.php +++ b/library/invoice_summary.inc.php @@ -273,7 +273,7 @@ function ar_responsible_party($patient_id, $encounter_id) { $next_level = $row['last_level_closed'] + 1; if ($next_level <= $row['last_level_billed']) return $next_level; - if (arGetPayerID($patient_id, substr($row['date'], 0, 10), $payer_type)) + if (arGetPayerID($patient_id, substr($row['date'], 0, 10), $next_level)) return $next_level; // There is no unclosed insurance, so see if there is an unpaid balance. // Currently hoping that form_encounter.balance_due can be discarded. -- 2.11.4.GIT