diff --git a/pom.xml b/pom.xml
index 13c37ea00..3b5d2b819 100644
--- a/pom.xml
+++ b/pom.xml
@@ -9,7 +9,7 @@
4.0.0manage
- 2.2.21
+ 2.2.22UTF-81.8.0
diff --git a/src/main/java/au/com/royalpay/payment/manage/appclient/core/impls/RetailAppServiceImp.java b/src/main/java/au/com/royalpay/payment/manage/appclient/core/impls/RetailAppServiceImp.java
index 9ca43cbfb..e027041ff 100644
--- a/src/main/java/au/com/royalpay/payment/manage/appclient/core/impls/RetailAppServiceImp.java
+++ b/src/main/java/au/com/royalpay/payment/manage/appclient/core/impls/RetailAppServiceImp.java
@@ -3115,6 +3115,10 @@ public class RetailAppServiceImp implements RetailAppService {
if (cbBankPay.containsKey("channel")) {
channels.add(cbBankPay);
}
+ JSONObject cardPaymentPay = getChannel(clientId, now, "rpaypmt_card");
+ if (cardPaymentPay.containsKey("channel")) {
+ channels.add(cardPaymentPay);
+ }
res.put("channels", channels);
if (res.containsKey("rate_value")) {
BigDecimal minRate = res.getBigDecimal("rate_value").add(new BigDecimal(0.01)).setScale(2, RoundingMode.DOWN);
diff --git a/src/main/resources/au/com/royalpay/payment/manage/mappers/system/ClientMapper.xml b/src/main/resources/au/com/royalpay/payment/manage/mappers/system/ClientMapper.xml
index b752401ef..512b90b4b 100644
--- a/src/main/resources/au/com/royalpay/payment/manage/mappers/system/ClientMapper.xml
+++ b/src/main/resources/au/com/royalpay/payment/manage/mappers/system/ClientMapper.xml
@@ -513,13 +513,24 @@
SELECT
sum(if(((c.approve_result=4 and c.open_status is null) or (c.approve_result=3 and c.open_status is null) or
c.open_status=1 or c.open_status=2 or c.open_status=4),1,0)) wp,
+
+ sum(if(((scup.upay_approve_result=4 and scup.upay_open_status is null) or (scup.upay_approve_result=3 and scup.upay_open_status is null) or
+ scup.upay_open_status=1 or scup.upay_open_status=2 or scup.upay_open_status=4),1,0)) cwp,
+
sum(if(c.approve_result is null and c.source= 4,1,0)) a_unagree,
sum(if(((c.approve_result=4 and c.open_status is null) or (c.approve_result=3 and c.open_status is null) or
c.open_status=1 or c.open_status=2 or c.open_status=4) and c.source = 4,1,0)) a_wp,
+
+ sum(if(((scup.upay_approve_result=4 and scup.upay_open_status is null) or
+ scup.upay_open_status=1 or scup.upay_open_status=2 or scup.upay_open_status=4) and c.source = 4,1,0)) a_cwp,
+
sum(if(c.approve_result=2 and c.source = 4,1,0)) wa,
sum(if(c.approve_result=1,1,0)) pass,
+ sum(if(scup.upay_approve_result=1,1,0)) upass,
sum(if(c.approve_result=1 and c.source=2,1,0)) z_pass,
+ sum(if(scup.upay_approve_result=1 and c.source=2,1,0)) z_upass,
sum(if(c.approve_result=1 and c.source = 4,1,0)) a_pass,
+ sum(if(scup.upay_approve_result=1 and c.source = 4,1,0)) a_upass,
sum(if(c.approve_result=0,1,0)) not_pass,
sum(if(c.source=4,1,0)) quick_pass
@@ -527,7 +538,7 @@
FROM sys_clients c
left join sys_client_config scc on scc.client_id = c.client_id
-
+ left join sys_client_upay_profile scup on c.client_id = scup.client_id
where c.is_valid = 1