fix(ibl-registration): filter get_tests_by_order hanya T_TestIsPrice = 'Y'

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
sas.fajri
2026-05-19 14:05:37 +07:00
parent 6712b18eec
commit e6d0f98fd3

View File

@@ -4365,9 +4365,9 @@ GROUP BY T_SampleStationID ";
T_TestCode as test_code,
T_OrderDetailPrice as price
FROM t_orderdetail
JOIN t_test ON T_OrderDetailT_TestID = T_TestID
WHERE
T_OrderDetailT_OrderHeaderID = ? AND
JOIN t_test ON T_OrderDetailT_TestID = T_TestID AND T_TestIsPrice = 'Y'
WHERE
T_OrderDetailT_OrderHeaderID = ? AND
T_OrderDetailIsActive = 'Y'
ORDER BY T_TestName ASC";