POS Checkout Provider Details

kenyanprince wrote on Saturday, October 31, 2015:

I would like to add details like

MBChB (UCT), MRCS (Ed.), F EBOPRAS, MD
Consultant Plastic and Reconstructive Surgeon

Under the providers name on the checkout for printing. I have the details in the database in the users table under info and speciality. How do I get them to show on

<?php if ( $GLOBALS['receipts_by_provider'] && !empty($providerrow) ) { printProviderHeader($providerrow); } else { printFacilityHeader($frow); } ?>

Cause all it displays is the providers title, names and number but no other detials like those above and email or any other items in the row taht I would like to add.

I would also like a receipt or invoice number but it doesnt seem to show one but on reports I can see there is an invoice number and encounter number is possible to have that too.

fsgl wrote on Saturday, October 31, 2015:

Additional lines must be retrieved from users table for insertion into the header.

If “MBChB (UCT), MRCS (Ed.), F EBOPRAS, MD” is in the title column & “Consultant Plastic and Reconstructive Surgeon” is in specialty, try removing title from line 630 & adding snippet to line 631 & 632. See attachment a.

The invoice number can be placed after patient name & address. Use the same scheme as above to pull invoice number into this section of the .php file. See attachment b.

The invoice number is the pid & the encounter, separated by a period, from ar_activity. Perhaps attachment c gives a clue.

Backup before any code change. Did not test above myself, but attempt to insert a line of text, without pulling the data, gave a white screen, so backup is vital.

epsdky wrote on Sunday, November 01, 2015:

Hello Richard,

With "MBChB (UCT) … " in info and "Consultant … " in specialty…

Add “info”, “specialty” and “email” to line 325 so it becomes…

$providerrow = sqlQuery("SELECT info, fname, mname, lname, title, specialty, email, street, streetb, " .

(‘email’ contains Address Book email address)

Add these lines between 630 and 631…

"<br>" . text($pvdrow['info']) .
"<br>" . text($pvdrow['specialty']) .

Change line 633 to this…

"<br>" . xlt("Phone") . ": " . text($pvdrow['phone']) . " " . xlt("Email") . ": " . text($pvdrow['email']) . 

Regards,

epsdky.

kenyanprince wrote on Friday, November 20, 2015:

Thank you epsdky , your version worked, sorry had even lost this thread and was stuck but finally found it.
I need to find out how to add the Invoice number also.

epsdky wrote on Thursday, November 26, 2015:

Hello Richard,

You’re welcome. No problem.

When I posted initialy I could see that there was code that added an invoice number for checkout receipts, however the question was how was it activated.

Have followed the code and discovered this…

When the (drug/product) Inventory is activated at…

Admin > Globals > Features > Drugs and Products

the drop down list “Invoice Refno Pool” appears for users…

Admin > users

selecting “Main” switches on the appearance of an invoice number for Checkout for a particlar user.

The next available invoice number is located in…

Admin > Lists > Invoice Reference number Pools

initialy this number is “000001”

Regards,

epsdky.

kenyanprince wrote on Friday, November 27, 2015:

Thank you. I noted that but when printing the invoice or even checking the database tables there is no invoice number that is generated for each encounter or invoice that we print

aethelwulffe wrote on Saturday, December 19, 2015:

Invoice numbers are the [patient ID].[encounter number]