I am Using OpenEMR V5.0.0(3) and I tried to generate statement for patient balance but I am not able to download statement in PDF format and there is no option for Txt (TEXT) file download, and also I tried the same thing in v5.0.0 then only PDF download available and no option for Txt (TEXT) file download. So, Anyone can help as I have to send statement in two days,
@asharma@stephenwaite Yep it is broken and I bet it is path to file. I added a uri global to site directory a while back but donât know what version OpenEMR it got in,if at all. Iâll patch my dev version to see if works and let you know.
@stephenwaite@asharma Okay, this is an issue that has concerned me since I looked into cookie security. In this case (and my server config) the site is configured to alias into root directory causing webroot to be empty so that any uriâs relying on webroot to build out a path finds the path invalid. For example, http://synergyemr/interface/⌠will cause webroot to be empty causing file path to be /sites/default/images/visa_mc_disc_credit_card_logos_176x35.gif instead of expected openemr/sites/default/images/visa_mc_disc_credit_card_logos_176x35.gif etcâŚ
Dealing with this may prove troublesome, especially since more and more sites are adopting SSL and multi site configurations possibly causing domain to be reported as localhost.(cross origin or certificate violations). Iâm not real spiffy on server stuff and may be missing something so correct me if so. A solution doesnât readily come to mind âŚyet!
@brady.miller You were around when webroot was implemented, is this an issue or am I missing something? I just find it hard to believe this comes up now. I think in most cases browser will correct url but in cases browser canât intervene as with file uriâs, weâre stuck.
@asharma@brady.miller@stephenwaite I found a solution to fix this particular problem and have tested on Windows and Linux Ubuntu but will leave to the integratorâs as to if this should be a patch or not. Seems to me there was a reason this image was being loaded via a uri and not a file path where as the practice logo is using a file path! What ever the case, the issue with empty webroot needs attention. Apparently Widows will resolve the uri but not Linux.
The image path in openemr/sites/default/statement.inc.php around lines 361 and 1000, need to change from
$practice_cards = $GLOBALS[âwebrootâ]."/sites/" . $_SESSION[âsite_idâ] . â/images/visa_mc_disc_credit_card_logos_176x35.gifâ; to
@sjpadgett , @stephenwaite , Is it possible to generate statement on Text Format as this system generate statement individual for each date of serve for single patient.
hi @asharma, while we debug the duplicate statements if you change the setting to plain text in Admin->Globals->Billing->Statement Appearance you can download as text