|
|
|
@ -7143,7 +7143,7 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
params.company_website = null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (params.merchant_type == 'ENTERPRISE') {
|
|
|
|
|
// if (params.merchant_type == 'ENTERPRISE') {
|
|
|
|
|
params.director_name = $scope.subMerchantInfo.director_name
|
|
|
|
|
params.director_id_number = $scope.subMerchantInfo.director_id_number
|
|
|
|
|
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')
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
params.principal_name = $scope.subMerchantInfo.principal_name
|
|
|
|
|
params.principal_id_number = $scope.subMerchantInfo.principal_id_number
|
|
|
|
|
}
|
|
|
|
|
// } else {
|
|
|
|
|
// params.principal_name = $scope.subMerchantInfo.principal_name
|
|
|
|
|
// params.principal_id_number = $scope.subMerchantInfo.principal_id_number
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
$http.post('/sys/partners/' + $scope.subMerchantInfo.client_moniker + '/new_sub_apply', params).then(
|
|
|
|
|
function (resp) {
|
|
|
|
@ -7334,7 +7334,7 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
// params.principal_name = $scope.subMerchantInfo.principal_name;
|
|
|
|
|
// 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.certificat_expire_date = $scope.subMerchantInfo.certificat_expire_date
|
|
|
|
|
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')
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// }
|
|
|
|
|
$http.put('/sys/partners/' + $scope.merchantInfo.client_moniker + '/get_merchant_ids/' + $scope.subMerchantInfo.merchant_app_id, params).then(
|
|
|
|
|
function (resp) {
|
|
|
|
|
$scope.apply_sub_merchant_id = resp.data
|
|
|
|
|