@ -762,6 +762,7 @@
LEFT JOIN logpm_warehouse_waybill AS lww ON lww.waybill_no = ltwo.waybill_no
<where>
ldsa.order_status in ('10','20','30','70')
AND lww.check_status = 1
and ldsa.reservation_status in ('10','20')
AND EXISTS (
SELECT 1