diff --git a/src/main/resources/au/com/royalpay/payment/manage/mappers/payment/TransactionMapper.xml b/src/main/resources/au/com/royalpay/payment/manage/mappers/payment/TransactionMapper.xml index 69d08bdf0..06badda43 100644 --- a/src/main/resources/au/com/royalpay/payment/manage/mappers/payment/TransactionMapper.xml +++ b/src/main/resources/au/com/royalpay/payment/manage/mappers/payment/TransactionMapper.xml @@ -367,10 +367,11 @@ and (c.client_id=#{client_id} or c.parent_client_id=#{client_id}) - and t.transaction_time >= #{from} - and t.transaction_time < #{to} + and t.create_time >= #{from} + and t.create_time < #{to} + and t.channel!= 'Settlement' and t.transaction_type=#{transaction_type} - and date(t.transaction_time)=date(#{date}) + and date(t.create_time)=date(#{date}) and t.clearing_status=#{clearing_status} and t.transaction_type = 'Credit' and t.refund_id is NOT NULL