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 7a579dd59..ce2a4134b 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
@@ -44,6 +44,9 @@
and t.transaction_type=#{transaction_type}
and date(t.transaction_time)=date(#{date})
and t.clearing_status=#{clearing_status}
+
+ and o.dev_id = #{dev_id}
+
and t.transaction_type = 'Credit'
and t.refund_id is NOT NULL
and t.transaction_type='Debit' and t.refund_id is NULL