diff --git a/src/main/java/au/com/royalpay/payment/manage/system/core/impl/ClientContractServiceImpl.java b/src/main/java/au/com/royalpay/payment/manage/system/core/impl/ClientContractServiceImpl.java index 779ee9587..5d6d6c470 100644 --- a/src/main/java/au/com/royalpay/payment/manage/system/core/impl/ClientContractServiceImpl.java +++ b/src/main/java/au/com/royalpay/payment/manage/system/core/impl/ClientContractServiceImpl.java @@ -93,6 +93,7 @@ public class ClientContractServiceImpl implements ClientContractService { record.put("expiry_date", DateUtils.addYears(now, 1)); record.put("sign_channel", channel); record.put("signatory", account.getString("display_name")); + contract = record; clientsContractMapper.save(record); } diff --git a/src/main/ui/static/boot/indexMainApp.js b/src/main/ui/static/boot/indexMainApp.js index db120c1d8..3edbbe8bf 100644 --- a/src/main/ui/static/boot/indexMainApp.js +++ b/src/main/ui/static/boot/indexMainApp.js @@ -42,6 +42,9 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo }) } connectWebSocket(); + if ($scope.currentUser.role == 1 || $scope.currentUser.role == 2) { + $scope.getAgStatus(); + } }, function (resp) { if (resp.status == 403) { location.href = 'login.html?f=' + encodeURIComponent(location.href); @@ -131,9 +134,7 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo }); }; - if ($scope.currentUser.role == 1 || $scope.currentUser.role == 2) { - $scope.getAgStatus(); - } + $scope.refundNotice = {counts: 0}; $scope.openRefundNotice = false; $scope.showRefundNotice = function () { diff --git a/src/main/ui/static/templates/payment/success.js b/src/main/ui/static/templates/payment/success.js index 85c7020b3..8bb8587a3 100644 --- a/src/main/ui/static/templates/payment/success.js +++ b/src/main/ui/static/templates/payment/success.js @@ -55,10 +55,10 @@ $(function () { method: 'GET', dataType: 'text', success: function (data) { - if (data > 0) { - $('.points-dialog .points-value').html('+ ' + data); - $('.points-dialog').removeClass('hide'); - } + // if (data > 0) { + // $('.points-dialog .points-value').html('+ ' + data); + // $('.points-dialog').removeClass('hide'); + // } }, error: function () { }