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 95eaededa..1398b5a10 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
@@ -593,8 +593,8 @@
and (sc.client_id=#{client_id} or sc.parent_client_id =#{client_id})
- and t.transaction_time >= #{from}
- and t.transaction_time < #{to}
+ and cd.report_date >= DATE_FORMAT(#{from},'%Y-%m-%d')
+ and cd.report_date < DATE_FORMAT(#{to},'%Y-%m-%d')
GROUP BY report_date
GROUP BY t.order_id
order by t.clearing_time desc