|
|
|
@ -1252,7 +1252,7 @@
|
|
|
|
|
FROM pmt_transactions t
|
|
|
|
|
LEFT JOIN pmt_orders o ON o.order_id = t.order_id
|
|
|
|
|
LEFT JOIN pmt_refunds r ON r.refund_id = t.refund_id
|
|
|
|
|
LEFT JOIN sys_client_incremental sci on sci.client_id = t.client_id
|
|
|
|
|
LEFT JOIN sys_client_incremental sci on sci.client_id = t.client_id and sci.channel = o.source and sci.is_valid = 1
|
|
|
|
|
INNER JOIN log_clearing_detail lcd ON t.clearing_order = lcd.clear_detail_id
|
|
|
|
|
WHERE t.channel != 'Settlement'
|
|
|
|
|
AND t.clearing_order = #{clearing_order}
|
|
|
|
|