From 40be911d90826a9681c3ce558f1936893952ead5 Mon Sep 17 00:00:00 2001 From: Rod Roark Date: Mon, 13 Dec 2010 23:09:25 -0800 Subject: [PATCH] Fix for possible reporting of deductible or coinsurance when it is zero. --- library/Claim.class.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/library/Claim.class.php b/library/Claim.class.php index 83be0e87e..c9413d4b5 100644 --- a/library/Claim.class.php +++ b/library/Claim.class.php @@ -406,10 +406,13 @@ class Claim { else $deductible = $ptresp - $coinsurance; + $deductible = sprintf('%.2f', $deductible); + $coinsurance = sprintf('%.2f', $coinsurance); + if ($date && $deductible != 0) - $aadj[] = array($date, 'PR', '1', sprintf('%.2f', $deductible)); + $aadj[] = array($date, 'PR', '1', $deductible); if ($date && $coinsurance != 0) - $aadj[] = array($date, 'PR', '2', sprintf('%.2f', $coinsurance)); + $aadj[] = array($date, 'PR', '2', $coinsurance); } // end if -- 2.11.4.GIT