diff --git a/src/main/resources/au/com/royalpay/payment/manage/analysis/mappers/TransactionAnalysisMapper.xml b/src/main/resources/au/com/royalpay/payment/manage/analysis/mappers/TransactionAnalysisMapper.xml
index 33d18537a..3469b71ad 100644
--- a/src/main/resources/au/com/royalpay/payment/manage/analysis/mappers/TransactionAnalysisMapper.xml
+++ b/src/main/resources/au/com/royalpay/payment/manage/analysis/mappers/TransactionAnalysisMapper.xml
@@ -188,6 +188,8 @@
THEN 'Third Party Gateway'
WHEN 10
THEN 'APP'
+ WHEN 11
+ THEN 'Share Code'
END AS gateway_label,
ifnull(sum(if(l.transaction_type='Credit',l.clearing_amount,-l.clearing_amount)), 0) aud_fee
FROM pmt_transactions l
@@ -414,6 +416,8 @@
THEN 'Third Party Gateway'
WHEN 10
THEN 'APP'
+ WHEN 11
+ THEN 'Share Code'
END AS gateway_label,
ifnull(COUNT(DISTINCT l.client_id), 0) partner_count
FROM pmt_transactions l
@@ -462,10 +466,12 @@
and o.gateway=9
-
and o.gateway=10
+
+ and o.gateway=11
+ and l.org_id=#{org_id}and l.client_id in
(SELECT b.client_id FROM sys_client_bd b
@@ -543,6 +549,9 @@
and o.gateway=10
+
+ and o.gateway=11
+ and ptran.org_id=#{org_id}