|
|
|
@ -237,7 +237,8 @@
|
|
|
|
|
sum(if(LOCATE('SURCHARGE',t.system_transaction_id),clearing_amount,0)) fee,
|
|
|
|
|
(SELECT min(r.rate_value) FROM sys_client_rates r WHERE r.client_id = t.client_id
|
|
|
|
|
AND date(r.expiry_time) >= DATE(t.clearing_time)
|
|
|
|
|
AND date(r.active_time) <= DATE(t.clearing_time)) rate
|
|
|
|
|
AND date(r.active_time) <= DATE(t.clearing_time)) rate,
|
|
|
|
|
t.clearing_order clear_detail_id
|
|
|
|
|
FROM pmt_transactions t
|
|
|
|
|
WHERE t.channel='Settlement'
|
|
|
|
|
]]>
|
|
|
|
|