|
|
|
@ -37,15 +37,6 @@ define(['angular', 'decimal', 'uiRouter', 'ngBootSwitch', 'ngFileUpload','uiBoot
|
|
|
|
|
return $http.get('/client/partner_info/compliance/files');
|
|
|
|
|
}]
|
|
|
|
|
}
|
|
|
|
|
}).state('payment_materials', {
|
|
|
|
|
url: '/payment_materials',
|
|
|
|
|
templateUrl: '/static/payment/partner/templates/client_payment_materials.html',
|
|
|
|
|
controller: 'clientPaymentMaterialCtrl',
|
|
|
|
|
resolve: {
|
|
|
|
|
partner: ['$http', function ($http) {
|
|
|
|
|
return $http.get('/client/partner_info');
|
|
|
|
|
}]
|
|
|
|
|
}
|
|
|
|
|
}).state('basic.clearing_config', {
|
|
|
|
|
url: '/clearing_config',
|
|
|
|
|
templateUrl: '/static/payment/partner/templates/client_bankaccounts.html',
|
|
|
|
@ -868,16 +859,6 @@ define(['angular', 'decimal', 'uiRouter', 'ngBootSwitch', 'ngFileUpload','uiBoot
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}]);
|
|
|
|
|
app.controller('clientPaymentMaterialCtrl', ['$scope', '$http', 'partner', function ($scope, $http, partner) {
|
|
|
|
|
$scope.paymentInfo = partner.data;
|
|
|
|
|
$scope.qrConfig = {currency: 'AUD'};
|
|
|
|
|
$scope.reloadQRCode = function () {
|
|
|
|
|
$http.get('/client/partner_info/qrcode', {params: $scope.qrConfig}).then(function (resp) {
|
|
|
|
|
$scope.qrcode = resp.data;
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
$scope.reloadQRCode();
|
|
|
|
|
}]);
|
|
|
|
|
app.controller('clientParameterCtrl', ['$scope', '$http', 'commonDialog', 'timezone', function ($scope, $http, commonDialog, timezone) {
|
|
|
|
|
$scope.getClientConfig = function () {
|
|
|
|
|
$http.get('/client/partner_info').then(function (resp) {
|
|
|
|
|