From 5d9c170bf4617521305cf1c08c332e41fcc5a08e Mon Sep 17 00:00:00 2001 From: "sas.fajri" Date: Wed, 10 Jun 2026 11:20:31 +0700 Subject: [PATCH] FHM09062601IBL - samplingcall: fix klinik UNION, hapus filter locationID agar semua order klinik muncul Co-Authored-By: Claude Sonnet 4.6 --- .../controllers/mockup/doctorclinicv2/Samplingcall.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/controllers/mockup/doctorclinicv2/Samplingcall.php b/application/controllers/mockup/doctorclinicv2/Samplingcall.php index d2eaf324..c555c9db 100644 --- a/application/controllers/mockup/doctorclinicv2/Samplingcall.php +++ b/application/controllers/mockup/doctorclinicv2/Samplingcall.php @@ -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);