Print Button bug in Payment Receipt

arnabnaha wrote on Thursday, November 05, 2015:

Hello,

I was trying to introduce some changes in the Receipt for Payment (Fees->Payment) when I came across this bug. This issue is present in the official demo on the wiki too. I am on windows and using openemr in chrome browser.

After you click on generate invoce in Fees->Payment, a receipt is generated with a print button at the bottom. Clicking on the print button donot print the receipt, infact it does nothing (Just a blank click).

I tried to look at the php error log, but nothing is shown there…no error report.

Kindly check this out!

Thanks
Arnab

P.S. It doesnot work on firefox too

arnabnaha wrote on Sunday, November 08, 2015:

Any help on this one??

robertovasquez wrote on Sunday, November 08, 2015:

Hi Arnab
This link may help you

http://sourceforge.net/p/openemr/discussion/202504/thread/2bb2efe7/#3a77

arnabnaha wrote on Tuesday, November 10, 2015:

Hi Roberto…
Thanks for your Input. The link you pointed to, doesnot address my issue. The issue is not with the payment function or the report generation. It is about the “PRINT” button which doesnot work. On clicking the Print button, it doesnot do anything. The demo also has the same issues.

Thanks
Arnab

bradymiller wrote on Tuesday, November 10, 2015:

Confirmed bug. It shows the following javascript errors when load up that script:
TypeError: document.getElementById(…) is null front_payment.php:667
01:20:53.435 POST http://192.168.1.160/openemr/interface/patient_file/front_payment.php [HTTP/1.1 200 OK 292ms]
01:20:53.758 TypeError: opener is null

The recently added print log functionality requires opener to be set, so guessing the bug lies there.

-brady

arnabnaha wrote on Tuesday, November 10, 2015:

Thanks Brady

sunsetsystems wrote on Tuesday, November 10, 2015:

That seems accurate. front_payment.php runs either as a pop-up or in a frame, and the frame case was not handled. I’ll fix it.

Rod
http://www.sunsetsystems.com/

sunsetsystems wrote on Tuesday, November 10, 2015:

It’s fixed now.

Rod
http://www.sunsetsystems.com/

arnabnaha wrote on Tuesday, November 10, 2015:

Thanks Rod.
The print works but there is a new issue now, the clinic details like the clinic name and the address are now missing from the top part of the receipt (Below the “RECEIPT for PAYMENT” Heading).

Thanks
Arnab

sunsetsystems wrote on Tuesday, November 10, 2015:

Arnab it’s there on my test site. Are you sure that’s a new issue? Check if you have a facility linked to the encounter.

Rod
http://www.sunsetsystems.com/

arnabnaha wrote on Tuesday, November 10, 2015:

Hi Rod,

It was my bad, Iw as trying to print an old payment. Old payment doesnt show this.

Thanks
Arnab