# How i get remaining amout reducing insurance and prepayment for billing?

**URL:** <https://community.open-emr.org/t/how-i-get-remaining-amout-reducing-insurance-and-prepayment-for-billing/2668>\
**Category:** Management and Administration\
**Created:** [December 9, 2016, 12:14pm UTC](https://community.open-emr.org/t/how-i-get-remaining-amout-reducing-insurance-and-prepayment-for-billing/2668 "2016-12-09T12:14:06Z")\
**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:** [December 9, 2016, 12:14pm UTC](https://community.open-emr.org/t/how-i-get-remaining-amout-reducing-insurance-and-prepayment-for-billing/2668/1 "2016-12-09T12:14:06Z")

</div>

**[morevishal142](https://sourceforge.net/u/morevishal142/)** wrote on [Friday, December 09, 2016](https://sourceforge.net/p/openemr/discussion/202505/thread/510e6043/#3419):

I want to send remaining amount to payment gateway in patient portal how i calculate remaining amount reducing insurance and prepayment and which table i use for this purpose?

---

<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:** [December 9, 2016, 11:42pm UTC](https://community.open-emr.org/t/how-i-get-remaining-amout-reducing-insurance-and-prepayment-for-billing/2668/2 "2016-12-09T23:42:17Z")

</div>

**[cmswest](https://sourceforge.net/u/cmswest/)** wrote on [Friday, December 09, 2016](https://sourceforge.net/p/openemr/discussion/202505/thread/510e6043/#3419/2ec9):

hi Vishal Vilas More, take a look here, [openemr/statement.inc.php at b8c19f1c59dbf5db34413e2e2ff2fb7636b8efb3 · openemr/openemr · GitHub](https://github.com/openemr/openemr/blob/b8c19f1c59dbf5db34413e2e2ff2fb7636b8efb3/sites/default/statement.inc.php)
