|
|
@ -7143,7 +7143,7 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
params.company_website = null
|
|
|
|
params.company_website = null
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (params.merchant_type == 'ENTERPRISE') {
|
|
|
|
// if (params.merchant_type == 'ENTERPRISE') {
|
|
|
|
params.director_name = $scope.subMerchantInfo.director_name
|
|
|
|
params.director_name = $scope.subMerchantInfo.director_name
|
|
|
|
params.director_id_number = $scope.subMerchantInfo.director_id_number
|
|
|
|
params.director_id_number = $scope.subMerchantInfo.director_id_number
|
|
|
|
params.company_register_no = $scope.subMerchantInfo.company_register_no
|
|
|
|
params.company_register_no = $scope.subMerchantInfo.company_register_no
|
|
|
@ -7159,10 +7159,10 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
alert('Certificate expiration time is required')
|
|
|
|
alert('Certificate expiration time is required')
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
// } else {
|
|
|
|
params.principal_name = $scope.subMerchantInfo.principal_name
|
|
|
|
// params.principal_name = $scope.subMerchantInfo.principal_name
|
|
|
|
params.principal_id_number = $scope.subMerchantInfo.principal_id_number
|
|
|
|
// params.principal_id_number = $scope.subMerchantInfo.principal_id_number
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
$http.post('/sys/partners/' + $scope.subMerchantInfo.client_moniker + '/new_sub_apply', params).then(
|
|
|
|
$http.post('/sys/partners/' + $scope.subMerchantInfo.client_moniker + '/new_sub_apply', params).then(
|
|
|
|
function (resp) {
|
|
|
|
function (resp) {
|
|
|
@ -7334,7 +7334,7 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
// params.principal_name = $scope.subMerchantInfo.principal_name;
|
|
|
|
// params.principal_name = $scope.subMerchantInfo.principal_name;
|
|
|
|
// params.principal_id_number = $scope.subMerchantInfo.principal_id_number;
|
|
|
|
// params.principal_id_number = $scope.subMerchantInfo.principal_id_number;
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
if (params.merchant_type == 'ENTERPRISE') {
|
|
|
|
// if (params.merchant_type == 'ENTERPRISE') {
|
|
|
|
params.company_register_no = $scope.subMerchantInfo.company_register_no
|
|
|
|
params.company_register_no = $scope.subMerchantInfo.company_register_no
|
|
|
|
params.certificat_expire_date = $scope.subMerchantInfo.certificat_expire_date
|
|
|
|
params.certificat_expire_date = $scope.subMerchantInfo.certificat_expire_date
|
|
|
|
if ($scope.subMerchantInfo.certificat_expire_date_d) {
|
|
|
|
if ($scope.subMerchantInfo.certificat_expire_date_d) {
|
|
|
@ -7347,7 +7347,7 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
alert('Certificate expiration time is required')
|
|
|
|
alert('Certificate expiration time is required')
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
$http.put('/sys/partners/' + $scope.merchantInfo.client_moniker + '/get_merchant_ids/' + $scope.subMerchantInfo.merchant_app_id, params).then(
|
|
|
|
$http.put('/sys/partners/' + $scope.merchantInfo.client_moniker + '/get_merchant_ids/' + $scope.subMerchantInfo.merchant_app_id, params).then(
|
|
|
|
function (resp) {
|
|
|
|
function (resp) {
|
|
|
|
$scope.apply_sub_merchant_id = resp.data
|
|
|
|
$scope.apply_sub_merchant_id = resp.data
|
|
|
|