Skip to content

Commit

Permalink
fix: remove formatting when calculating front payment balance (openem…
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenwaite authored Mar 6, 2024
1 parent 7f49b64 commit 57c0717
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion interface/patient_file/front_payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
* @link http://www.open-emr.org
* @author Rod Roark <[email protected]>
* @author Brady Miller <[email protected]>
* @author Stephen Waite <[email protected]>
* @copyright Copyright (c) 2006-2020 Rod Roark <[email protected]>
* @copyright Copyright (c) 2017-2018 Brady Miller <[email protected]>
* @copyright Copyright (c) 2024 Stephen Waite <[email protected]>
* @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
*/

Expand Down Expand Up @@ -79,7 +81,7 @@ function echoLine($iname, $date, $charges, $ptpaid, $inspaid, $duept, $encounter
{
global $var_index;
$var_index++;
$balance = FormatMoney::getBucks($charges - $ptpaid - $inspaid);
$balance = $charges - $ptpaid - $inspaid;
$balance = (round($duept, 2) != 0) ? 0 : $balance;//if balance is due from patient, then insurance balance is displayed as zero
$encounter = $encounter ? $encounter : '';
echo " <tr id='tr_" . attr($var_index) . "' >\n";
Expand Down

0 comments on commit 57c0717

Please sign in to comment.