Hi Dears,
if i am a front office receptionist then how can get my collection report when close my duty.and if another receptionist take the response of front office after when i finish the duty.and how we can take the individual collection report of same day
thanks in advance
The Front Office Receipts Report is a good suggestion.
Stephen would have to help with the code change to add a filter for Users in openemr/interface/reports/front_office_receipts.php. An additional column for Users will give a breakdown of who collected what.
Additionally a total for each user would be helpful.
I was attempting to refine the question for Stephen. His link is applicable to a breakdown of payment methods (credit card, cash, checks) in the Front Office Receipts report.
A breakdown according to Users & subtotals for each user is at the heart of the original question.
I am certain that if we wait patiently, Stephen will respond with a more targeted solution.
and any option to get the method wise sorting, like
1.total cash collection of user
2.total credit_card collection of the user
and then total collection all users credit card collection
and cash collection separately
$query = "SELECT r.pid, r.dtime, " .
"SUM(r.amount1) AS amount1, " .
"SUM(r.amount2) AS amount2, " .
"MAX(r.method) AS method, " .
"MAX(r.source) AS source, " .
"MAX(r.user) AS user, " .
"p.fname, p.mname, p.lname, p.pubpid " .
"FROM payments AS r " .
"LEFT OUTER JOIN patient_data AS p ON " .
"p.pid = r.pid " .
"WHERE " .
"r.dtime >= ‘$from_date 00:00:00’ AND " .
"r.dtime <= ‘$to_date 23:59:59’ " .
“GROUP BY r.dtime, r.pid ORDER BY r.dtime, r.pid”;
in this query
if can i add “GROUP BY r.dtime, r.pid,method ORDER BY r.dtime, r.pid,user”;
and
$res = sqlStatement(
'SELECT user, SUM(amount1 + amount2) amt FROM payments '.
'WHERE DATE(dtime) >= ? AND DATE(dtime) <= ? '.
‘GROUP by user’, array($from_date, $to_date));
in this query can i add ‘GROUP by user,method’, array($from_date, $to_date));