Hello…
After doing an encounter with a patient, we enter the fee details to the fee sheet. Now The patient pays me the money by cash for the encounter. I click Payments in the left nav and enter the amount paid by the patient. (In India, we have self payment, no insurance issues)
After saving it, it produces a receipt to be printed.
Can we have total Amount paid and Due amount shown on the receipt just like the statement? It would be really useful.
Menu>popups>payments and Left menu>fees>Payments is all same fsgl. My question is regarding adding a line in the printed receipt about “TOTAL AMOUNT PAID” and " AMOUNT DUE"
Hello…
After doing an encounter with a patient, we enter the fee details to the fee sheet. Now The patient pays me the money by cash for the encounter. I click Payments in the left nav and enter the amount paid by the patient. (In India, we have self payment, no insurance issues)
After saving it, it produces a receipt to be printed.
Can we have total Amount paid and Due amount shown on the receipt just like the statement? It would be really useful.
Dr. Arnab Naha
Yes vaibhav…In India we have multiple modes of payment but insurance, ESI, CGHS and others are mainly limited to hospitals…very few independent private practitioners use them…me myself have self payment only…more than 90% of doctors in india have self payment as the sole option. Just needed addition of two lines at the end of the receipt…one called total amount paid and the other amount fue…if we add these two lines, the receipt will really look like a receipt…
Dear Arnab
Could you modify the report template and prescription template to include headers and footers as are conventional in most of our clinics. If so would you like to share those with us?
Hello…
After doing an encounter with a patient, we enter the fee details to the fee sheet. Now The patient pays me the money by cash for the encounter. I click Payments in the left nav and enter the amount paid by the patient. (In India, we have self payment, no insurance issues)
After saving it, it produces a receipt to be printed.
Can we have total Amount paid and Due amount shown on the receipt just like the statement? It would be really useful.
Dr. Arnab Naha
Dear vaibhab…i am not a developer…i am a doctor…dont know php and coding much…only learnt 1% while testing openemr for the last 5 yrs. Neways…you dont need to print headers along with the prescriptions. What I do is, I have preprinted A4 sheets with headers and I adjusted the pdf from openemr globals to print on that preprinted sheets…that is quite convenient and good about openemr. None of the software prints headers and footers, its better to have them preprinted and rest of the matter should be printed by the software.
Hello Arnab Naha,
To print total Amount paid and Due amount on the receipt for the particular encounter, we can apply the following code change,
After line 363, add the following lines
$tot = sqlQuery("select sum(pay_amount) as tot from ar_activity where encounter=?", array($payrow['encounter']));
$fe = sqlQuery("select fee as fees from billing where encounter=?", array($payrow['encounter']));
$due = $fe['fees'] - $tot['tot'];
$tot = sqlQuery("select sum(pay_amount) as tot from ar_activity where pid=?", array($form_pid));
$fe = sqlQuery("select sum(fee) as fees from billing where pid=?", array($form_pid));
$due = $fe['fees'] - ($_POST['form_paytotal'] + $_POST['tot_char']);
Here is the changes made to the git branch. All credit to visolve for this. I would request Vi solve to include another line of “TOTAL CHARGE” in the receipt showing the total amount that needs to be paid, above the line of " Amount Paid"
Thank you visolve…but I missed that there is already a line in the receipt where it shows the amount to be paid for a particular visit. Thank you for all the help with the coding.
Brady, if you wish you can push it to the codebase as it works well. I am not adding the last change (just above this post) by visolve to github as it is already present in the receipt.
Beside the “Amount for past balance line” can the encounter Number and date of the past encounter be added for which the past balance is being collected? If there is no past balance, then no date and encounter number will appear.