diff --git a/src/main/java/au/com/royalpay/payment/manage/merchants/core/impls/ClientManagerImpl.java b/src/main/java/au/com/royalpay/payment/manage/merchants/core/impls/ClientManagerImpl.java index 55ca299de..ea37c8c63 100644 --- a/src/main/java/au/com/royalpay/payment/manage/merchants/core/impls/ClientManagerImpl.java +++ b/src/main/java/au/com/royalpay/payment/manage/merchants/core/impls/ClientManagerImpl.java @@ -3248,52 +3248,53 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid } else { if(expireInfo.getBoolean("alert")){ result = new JSONObject(); - result.put("content","Dear Valued Merchants,\n" + - "\n" + - "\n" + - "\n" + - "We would like to extend our warm gratitude to your business for your continued support of RoyalPay. Without our merchants we wouldn't be where we are today. \n" + - "\n" + - "\n" + - "\n" + - "RoyalPay has and always will be committed to complying with all Australian laws, rules and regulations. With our deep roots in China, we also work with all Chinese regulations simultaneously with Australia. Since our humble beginnings in 2016 we have worked with the ATO (Australian Tax Office) to make sure that we are in alignment with all tax requirements. \n" + - "\n" + - "\n" + - "\n" + - "\n" + - "During FY18 we entered negotiations with the ATO to file for GST exemptions for the part of surcharge fees. The ATO has recently advised that we have been unsuccessful in this bid. To ensure we comply with the ATO, we will need to adjust our current service agreements to be exclusionary of GST. \n" + - "\n" + - "\n" + - "\n" + - "This will result in contractual changes to your agreement. However, your business may be eligible to claim this amount back depending on the tax relationship of your business. Please consult with your accounting team in relation to these changes. \n" + - "\n" + - "\n" + - "\n" + - "If you have any questions related to this change please direct them to our Sales Management Team or your relevant BD officer.\n" + - "\n" + - "\n" + - "\n" + - "(note: GST is for the surcharge fee only, not related to the price of the goods.)\n" + - "\n" + - "\n" + - "\n" + - "尊敬的商户,\n" + - "\n" + - "\n" + - "\n" + - "\n" + - "感谢您选择RoyalPay。作为澳洲移动支付的先行者和领导者,RoyalPay自2016年起就开始针对交易手续费这一澳洲目前空白的税务问题对接澳大利亚相关监管机构。作为市场上全新的支付模式,这两年来我们不断地与相关机构探讨最为合适的监管法令应用,同时澳洲的相应法律法规也在不断地完善来提供更全面的监管,来营造更加稳定、健康、健全的金融市场。\n" + - "\n" + - "\n" + - "\n" + - "RoyalPay于近期正式收到澳洲监管机构的通知,针对手续费Tax Free的申请和特殊税务条款考量做出了相应的回复:目前澳洲市场上的移动支付(扫码)解决方案所产生的手续费部分的GST并不能享受Tax Free及部分减免的政策条款。我们已经替2018年前交易的商户补足了手续费部分的税金,并应澳大利亚税务局ATO的要求进行了合同上手续费GST部分的相应调整。您也可咨询专业的会计师来申请您额外的手续费GST Return。感谢您的支持和理解,愿我们一起共同努力,塑造一个良好而有序的澳洲移动支付市场。\n" + - "\n" + - "\n" + - "\n" + - "有任何疑问,请随时联络我们的客服与公众号。\n" + - "\n" + - "(注:GST只针对手续费部分,与商品价格无关)\n" + - "\n"); +// result.put("content","Dear Valued Merchants,\n" + +// "\n" + +// "\n" + +// "\n" + +// "We would like to extend our warm gratitude to your business for your continued support of RoyalPay. Without our merchants we wouldn't be where we are today. \n" + +// "\n" + +// "\n" + +// "\n" + +// "RoyalPay has and always will be committed to complying with all Australian laws, rules and regulations. With our deep roots in China, we also work with all Chinese regulations simultaneously with Australia. Since our humble beginnings in 2016 we have worked with the ATO (Australian Tax Office) to make sure that we are in alignment with all tax requirements. \n" + +// "\n" + +// "\n" + +// "\n" + +// "\n" + +// "During FY18 we entered negotiations with the ATO to file for GST exemptions for the part of surcharge fees. The ATO has recently advised that we have been unsuccessful in this bid. To ensure we comply with the ATO, we will need to adjust our current service agreements to be exclusionary of GST. \n" + +// "\n" + +// "\n" + +// "\n" + +// "This will result in contractual changes to your agreement. However, your business may be eligible to claim this amount back depending on the tax relationship of your business. Please consult with your accounting team in relation to these changes. \n" + +// "\n" + +// "\n" + +// "\n" + +// "If you have any questions related to this change please direct them to our Sales Management Team or your relevant BD officer.\n" + +// "\n" + +// "\n" + +// "\n" + +// "(note: GST is for the surcharge fee only, not related to the price of the goods.)\n" + +// "\n" + +// "\n" + +// "\n" + +// "尊敬的商户,\n" + +// "\n" + +// "\n" + +// "\n" + +// "\n" + +// "感谢您选择RoyalPay。作为澳洲移动支付的先行者和领导者,RoyalPay自2016年起就开始针对交易手续费这一澳洲目前空白的税务问题对接澳大利亚相关监管机构。作为市场上全新的支付模式,这两年来我们不断地与相关机构探讨最为合适的监管法令应用,同时澳洲的相应法律法规也在不断地完善来提供更全面的监管,来营造更加稳定、健康、健全的金融市场。\n" + +// "\n" + +// "\n" + +// "\n" + +// "RoyalPay于近期正式收到澳洲监管机构的通知,针对手续费Tax Free的申请和特殊税务条款考量做出了相应的回复:目前澳洲市场上的移动支付(扫码)解决方案所产生的手续费部分的GST并不能享受Tax Free及部分减免的政策条款。我们已经替2018年前交易的商户补足了手续费部分的税金,并应澳大利亚税务局ATO的要求进行了合同上手续费GST部分的相应调整。您也可咨询专业的会计师来申请您额外的手续费GST Return。感谢您的支持和理解,愿我们一起共同努力,塑造一个良好而有序的澳洲移动支付市场。\n" + +// "\n" + +// "\n" + +// "\n" + +// "有任何疑问,请随时联络我们的客服与公众号。\n" + +// "\n" + +// "(注:GST只针对手续费部分,与商品价格无关)\n" + +// "\n"); + result.put("content","

Dear Valued Merchants,


We would like to extend our warm gratitude to your business for your continued support of RoyalPay. Without our merchants we wouldn't be where we are today. 


RoyalPay has and always will be committed to complying with all Australian laws, rules and regulations. With our deep roots in China, we also work with all Chinese regulations simultaneously with Australia. Since our humble beginnings in 2016 we have worked with the ATO (Australian Tax Office) to make sure that we are in alignment with all tax requirements. 


During FY18 we entered negotiations with the ATO to file for GST exemptions for the part of surcharge fees. The ATO has recently advised that we have been unsuccessful in this bid. To ensure we comply with the ATO, we will need to adjust our current service agreements to be exclusionary of GST. 


This will result in contractual changes to your agreement. However, your business may be eligible to claim this amount back depending on the tax relationship of your business. Please consult with your accounting team in relation to these changes. 


If you have any questions related to this change please direct them to our Sales Management Team or your relevant BD officer.


(note: GST is for the surcharge fee only, not related to the price of the goods.)


尊敬的商户,


感谢您选择RoyalPay。作为澳洲移动支付的先行者和领导者,RoyalPay自2016年起就开始针对交易手续费这一澳洲目前空白的税务问题对接澳大利亚相关监管机构。作为市场上全新的支付模式,这两年来我们不断地与相关机构探讨最为合适的监管法令应用,同时澳洲的相应法律法规也在不断地完善来提供更全面的监管,来营造更加稳定、健康、健全的金融市场。


RoyalPay于近期正式收到澳洲监管机构的通知,针对手续费Tax Free的申请和特殊税务条款考量做出了相应的回复:目前澳洲市场上的移动支付(扫码)解决方案所产生的手续费部分的GST并不能享受Tax Free及部分减免的政策条款。我们已经替2018年前交易的商户补足了手续费部分的税金,并应澳大利亚税务局ATO的要求进行了合同上手续费GST部分的相应调整。您也可咨询专业的会计师来申请您额外的手续费GST Return。感谢您的支持和理解,愿我们一起共同努力,塑造一个良好而有序的澳洲移动支付市场。


有任何疑问,请随时联络我们的客服与公众号。

(注:GST只针对手续费部分,与商品价格无关)


"); result.put("title","【Important!重要!!】GST Modification Notice | 澳洲监管机构关于手续费GST调整问题通知\n"); } } diff --git a/src/main/java/au/com/royalpay/payment/manage/merchants/web/PartnerManageController.java b/src/main/java/au/com/royalpay/payment/manage/merchants/web/PartnerManageController.java index fcc744a9b..cb0627de9 100644 --- a/src/main/java/au/com/royalpay/payment/manage/merchants/web/PartnerManageController.java +++ b/src/main/java/au/com/royalpay/payment/manage/merchants/web/PartnerManageController.java @@ -53,10 +53,7 @@ public class PartnerManageController { private TradeLogService tradeLogService; @Resource private MerchantLocationService merchantLocationService; - @Resource - private ClientContractService clientContractService; - @Resource - private SysConfigManager sysConfigManager; + @RequestMapping(method = RequestMethod.GET) @RequireManager(role = {ManagerRole.ADMIN, ManagerRole.BD_USER, ManagerRole.OPERATOR, ManagerRole.SERVANT, ManagerRole.FINANCIAL_STAFF, ManagerRole.DIRECTOR}) public JSONObject listClients(@ModelAttribute(CommonConsts.MANAGER_STATUS) JSONObject manager, PartnerQuery query) { @@ -524,19 +521,4 @@ public class PartnerManageController { return clientManager.listMerchantIds(clientMoniker,manager); } - @PartnerMapping(value = "/check", method = RequestMethod.GET) - public JSONObject getCheckClientInfo(@ModelAttribute(CommonConsts.PARTNER_STATUS) JSONObject account) { - return clientManager.getCheckClientInfo(account.getIntValue("client_id"),account.getString("account_id"),"PC"); - } - - @PartnerMapping(value = "/checkContract", method = RequestMethod.GET) - public JSONObject getCheckClientInfov2(@ModelAttribute(CommonConsts.PARTNER_STATUS) JSONObject account) { - return clientManager.getCheckClientInfo(account.getIntValue("client_id"),account.getString("account_id"),"PC"); - } - - @PartnerMapping(value = "/agree/confirm", method = RequestMethod.POST) - public void confirmSourceAgreeFile(@ModelAttribute(CommonConsts.PARTNER_STATUS) JSONObject account) { - clientContractService.confirmSourceAgreement(account.getIntValue("client_id"),account.getString("account_id"),"PC"); - } - } diff --git a/src/main/java/au/com/royalpay/payment/manage/merchants/web/PartnerViewController.java b/src/main/java/au/com/royalpay/payment/manage/merchants/web/PartnerViewController.java index a903936f6..76a97ad44 100644 --- a/src/main/java/au/com/royalpay/payment/manage/merchants/web/PartnerViewController.java +++ b/src/main/java/au/com/royalpay/payment/manage/merchants/web/PartnerViewController.java @@ -8,10 +8,12 @@ import au.com.royalpay.payment.manage.permission.manager.PartnerMapping; import au.com.royalpay.payment.manage.permission.manager.RequirePartner; import au.com.royalpay.payment.manage.support.wechatclients.KangaLandWechatApiImpl; import au.com.royalpay.payment.manage.support.wechatclients.RedpackWechatApiImpl; +import au.com.royalpay.payment.manage.system.core.ClientContractService; import au.com.royalpay.payment.manage.tradelog.beans.TradeLogQuery; import au.com.royalpay.payment.manage.tradelog.core.TradeLogService; import au.com.royalpay.payment.tools.CommonConsts; import au.com.royalpay.payment.tools.connections.mpsupport.beans.WxOauthType; +import au.com.royalpay.payment.tools.env.SysConfigManager; import au.com.royalpay.payment.tools.exceptions.BadRequestException; import au.com.royalpay.payment.tools.exceptions.ForbiddenException; import au.com.royalpay.payment.tools.http.HttpUtils; @@ -53,6 +55,8 @@ public class PartnerViewController { private ClientManager clientManager; @Resource private ClientSignEventSupport clientSignEventSupport; + @Resource + private ClientContractService clientContractService; @RequestMapping(method = RequestMethod.GET) @RequirePartner @@ -365,5 +369,15 @@ public class PartnerViewController { clientManager.changeManualSettle(account.getIntValue("client_id"),manual_settle,account.getString("account_id"),1,"商户"+(manual_settle?"打开":"关闭")+"手动清算"); } + @PartnerMapping(value = "/checkContract", method = RequestMethod.GET) + @ResponseBody + public JSONObject getCheckClientInfov2(@ModelAttribute(CommonConsts.PARTNER_STATUS) JSONObject account) { + return clientManager.getCheckClientInfo(account.getIntValue("client_id"),account.getString("account_id"),"PC"); + } + @PartnerMapping(value = "/agree/confirm", method = RequestMethod.POST) + @ResponseBody + public void confirmSourceAgreeFile(@ModelAttribute(CommonConsts.PARTNER_STATUS) JSONObject account) { + clientContractService.confirmSourceAgreement(account.getIntValue("client_id"),account.getString("account_id"),"PC"); + } } diff --git a/src/main/ui/static/boot/indexMainApp.js b/src/main/ui/static/boot/indexMainApp.js index 8f9c2e399..ca8629687 100644 --- a/src/main/ui/static/boot/indexMainApp.js +++ b/src/main/ui/static/boot/indexMainApp.js @@ -124,29 +124,9 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo }; $scope.getAgStatus = function () { - $http.get('/sys/partners/check').then(function (resp) { - // $scope.rate_expire = resp.data.rate_expire; - $scope.rate_waring = resp.data.rate_waring; - // $scope.file_url = resp.data.file_url; - if (resp.data.is_ordinary){ - if($scope.rate_waring){ - commonDialog.alert({ - title: 'Contract expiration notice', - content: resp.data.contract_info, - size:'lg', - type:'info' - - }).then(function () { - if (resp.data.rate_expire){ - location.href = 'login.html' - } - }) - } - - }else { - if($scope.rate_waring){ - $scope.showAG(resp.data); - } + $http.get('/client/partner_info/checkContract').then(function (resp) { + if (resp.data){ + $scope.showAG(resp.data) } }); @@ -321,19 +301,16 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo } }]); - app.controller('agreementDetailCtrl', ['$scope', '$http', '$sce', 'ag', function ($scope, $http, $sce, ag) { + app.controller('agreementDetailCtrl', ['$scope', '$http', 'commonDialog','$sce', 'ag', function ($scope, $http,commonDialog, $sce, ag) { $scope.ag = angular.copy(ag); $scope.agreeCheck = false; $scope.agree = function () { - $http.post('/sys/partners/agree/confirm').then(function () { + $http.post('/client/partner_info/agree/confirm').then(function () { $scope.$close(); }, function (resp) { commonDialog.alert({title: 'Error', content: resp.data.message, type: 'error'}); }) }; - $scope.notAgree = function () { - window.location.href = "https://mpay.royalpay.com.au"; - } }]); app.controller('changePwdCtrl', ['$scope', '$http', function ($scope, $http) { diff --git a/src/main/ui/static/commons/templates/ag_detail.html b/src/main/ui/static/commons/templates/ag_detail.html index 90ffdca31..35667dcb2 100644 --- a/src/main/ui/static/commons/templates/ag_detail.html +++ b/src/main/ui/static/commons/templates/ag_detail.html @@ -1,22 +1,17 @@ \ No newline at end of file