|
|
|
@ -549,6 +549,7 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
if ($state.params.commitCrossBorderPayment) {
|
|
|
|
|
$scope.enablePaymentType('enable_cross_payment');
|
|
|
|
|
}
|
|
|
|
|
$scope.partner.industry=$filter('industryMapFilter')($scope.partner.industry)
|
|
|
|
|
|
|
|
|
|
function hasRole() {
|
|
|
|
|
var rolenum;
|
|
|
|
@ -917,5 +918,19 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}]);
|
|
|
|
|
app.filter('industryMapFilter', [
|
|
|
|
|
'industryMap',
|
|
|
|
|
function (industryMap) {
|
|
|
|
|
return function (values) {
|
|
|
|
|
var vxindustry = ''
|
|
|
|
|
angular.forEach(industryMap.configs(), function (industry) {
|
|
|
|
|
if (industry.value == values) {
|
|
|
|
|
vxindustry = industry.value
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
return vxindustry
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
])
|
|
|
|
|
return app;
|
|
|
|
|
});
|
|
|
|
|