From 612bfa55ddf731306cf12a73bee73dbf245427f7 Mon Sep 17 00:00:00 2001 From: sunsetsystems Date: Tue, 2 Dec 2008 17:33:46 +0000 Subject: [PATCH] added missing description of services when using internal a/r --- interface/reports/sales_by_item.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/interface/reports/sales_by_item.php b/interface/reports/sales_by_item.php index 9eaaebded..0e68b198f 100644 --- a/interface/reports/sales_by_item.php +++ b/interface/reports/sales_by_item.php @@ -237,7 +237,7 @@ function thisLineItem($patient_id, $encounter_id, $description, $transdate, $qty if ($INTEGRATED_AR) { $query = "SELECT b.fee, b.pid, b.encounter, b.code_type, b.code, b.units, " . - "fe.date, fe.facility_id " . + "b.code_text, fe.date, fe.facility_id " . "FROM billing AS b " . "JOIN form_encounter AS fe ON fe.pid = b.pid AND fe.encounter = b.encounter " . "WHERE b.code_type != 'COPAY' AND b.activity = 1 AND b.fee != 0 AND " . @@ -250,7 +250,8 @@ function thisLineItem($patient_id, $encounter_id, $description, $transdate, $qty // $res = sqlStatement($query); while ($row = sqlFetchArray($res)) { - thisLineItem($row['pid'], $row['encounter'], $row['code'], + thisLineItem($row['pid'], $row['encounter'], + $row['code'] . ' ' . $row['code_text'], substr($row['date'], 0, 10), $row['units'], $row['fee']); } // -- 2.11.4.GIT