FHM09062601IBL - samplingcall: fix klinik UNION, hapus filter locationID agar semua order klinik muncul

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
sas.fajri
2026-06-10 11:20:31 +07:00
parent eb4af1c67c
commit 5d9c170bf4

View File

@@ -371,7 +371,7 @@ INSERT INTO `t_samplestation` (`T_SampleStationID`, `T_SampleStationCode`, `T_Sa
AND M_PatientIsActive = 'Y'
JOIN m_title ON M_PatientM_TitleID = M_TitleID
JOIN m_sex ON M_PatientM_SexID = M_SexID
JOIN m_location ON orderM_LocationID = M_LocationID AND M_LocationID = {$locationID}
JOIN m_location ON orderM_LocationID = M_LocationID
LEFT JOIN t_orderheader
ON orderT_OrderHeaderID = T_OrderHeaderID
AND T_OrderHeaderIsActive = 'Y'
@@ -389,7 +389,7 @@ INSERT INTO `t_samplestation` (`T_SampleStationID`, `T_SampleStationCode`, `T_Sa
$this->sys_error_db("search error", $this->db_onedev);
exit;
}
$this->sys_ok(['_debug_sql' => $this->db_onedev->last_query(), '_debug_prm' => ['stationid'=>$stationid,'locationid'=>$locationID,'xdate'=>$xdate]]); exit;
//echo $this->db_onedev->last_query();
$rows = $query->result_array();
if ($rows) {
$count_arr = count($rows);