# Billing/Accounting Bug Fixes

**URL:** <https://community.open-emr.org/t/billing-accounting-bug-fixes/5930>\
**Category:** OpenEMR Development\
**Created:** [July 28, 2012, 6:57pm UTC](https://community.open-emr.org/t/billing-accounting-bug-fixes/5930 "2012-07-28T18:57:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [July 28, 2012, 6:57pm UTC](https://community.open-emr.org/t/billing-accounting-bug-fixes/5930/1 "2012-07-28T18:57:00Z")

</div>

**[bradymiller](https://sourceforge.net/u/bradymiller/)** wrote on [Saturday, July 28, 2012](https://sourceforge.net/p/openemr/discussion/202506/thread/6611ddc6/#0f6c):

Hi,

Here are some miscellaneous billing/accounting bug fixes (most are related to the copays now being stored in the ar\_activity table rather than the billing table):  
[http://github.com/bradymiller/openemr/commit/c400db51f3304e2dadae92046a21cc8265c64402](http://github.com/bradymiller/openemr/commit/c400db51f3304e2dadae92046a21cc8265c64402)

Please review.

Summary:  
Fixing accounting/billing bugs  
-Fees-\>Checkout now show copays that are stored in the ar\_activity table  
-Avoid internationalization problems (no reason to run code and modifier through strtoupper() function)  
-Billing table no longer holds COPAYs (now in ar\_activity table), so modified code to support this  
-Some code cleanup and function modularization

-brady  
[OpenEMR](http://www.open-emr.org/)

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [July 31, 2012, 7:54am UTC](https://community.open-emr.org/t/billing-accounting-bug-fixes/5930/2 "2012-07-31T07:54:02Z")

</div>

**[bradymiller](https://sourceforge.net/u/bradymiller/)** wrote on [Tuesday, July 31, 2012](https://sourceforge.net/p/openemr/discussion/202506/thread/6611ddc6/#f8b1):

Hi,  
Committed this fix to sourceforge (both master and rel-411).  
-brady  
[OpenEMR](http://www.open-emr.org/)
