|
|
|
@ -2395,7 +2395,7 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
$scope.init = {
|
|
|
|
|
child_each_refund: false,
|
|
|
|
|
sub_manage: false
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$scope.newSubClient = function () {
|
|
|
|
|
$uibModal.open({
|
|
|
|
@ -2431,10 +2431,6 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
if (!$scope.paymentInfo) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (!$scope.init.sub_manage) {
|
|
|
|
|
$scope.init.sub_manage = true;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
$http.put('/sys/partners/' + $scope.partner.client_moniker + '/sub_manage', {allow: $scope.partner.sub_manage}).then(function () {
|
|
|
|
|
//$scope.loadPartnerPaymentInfo();
|
|
|
|
|
}, function (resp) {
|
|
|
|
|