Invoice pdf format

When printing patient invoices for mailing there is undesirable formatting where it would print over 2 or 3 pages. Some pages are blank or just contain a couple lines. And the patient mailing address is unavailable to trifold for window envelop which would display the address for mailing. I have reviewed the relevent files but dont have the mpdf or ezpdf expertise to modify the coding. Id be willing to donate or pay to have this corrected and contribute the file to the code base. It becomes labor intense to print address labels, match with 2 or 3 pages of a single charge printed invoice and mail out.

Todd

I pointed this out in June of 2021. Can we please get this fixed soon? Our statements looked fine in v6. Now even the plain text versions look awful, it’s embarrassing for us to send out these statements. No combination of the “Use Custom Statement” checkbox and “Modern/Images” drop-down will produce a professional looking invoice.

Hope to get this contributed soon

hi, just submitted the PR, feel free to test it out and provide feedback, thank you.

openemr_statements - 2024-12-06T160735.340.pdf (93.2 KB)

Hi

Ive copied the files affected by the PR and there is still the same output. Again, I am going to fees, posting payments, invoice search and the checking ppt for the item i desire and the clicking download pdf with the without update box checked. Im on 7.0.2 patch 3.

Todd

Thanks @toddmleleux, additionally you have to place the png file in the sites/default/images and then enter the filename and choose PDF custom statement in the statement appearance drop down.

After doing that i get the following error. I tried custom_statement.png and statement.png as the filename but I think that is unrelated.

Fatal error : Uncaught Error: Call to undefined function sidDate() in /var/www/xxx/openemr/sites/default/statement.inc.php:1359 Stack trace: #0 /var/www/xxx/openemr/sites/default/statement.inc.php(58): create_cms_statement(Array) #1 /var/www/xxx/openemr/interface/billing/sl_eob_search.php(707): make_statement(Array) #2 {main} thrown in /var/www/xxx/openemr/sites/default/statement.inc.php on line 1359

Todd

thanks, add this to the bottom of statement.inc.php please

function sidDate($date)
{
    $strtotime = strtotime($date);
    return date('m d y', $strtotime);
}

Excellent

Thanks that did the trick to use the new format. However, in the remit to area of the invoice its missing my office name, address, etc

Todd

hi @toddmleleux, you have to add that to the blank statement png with a tool like gimp.

Hello and thanks for doing this. I was able to get it to work as you detailed by editing the .png file with my header and address information. Excellent work. You saved alot of trees with this fix.

Todd

1 Like