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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user