|
|
|
@ -417,18 +417,12 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
$scope.partner.sameAsContactPerson = false;
|
|
|
|
|
$scope.checkboxOnclick = function (){
|
|
|
|
|
$scope.partner.sameAsContactPerson = !($scope.partner.sameAsContactPerson);
|
|
|
|
|
if($scope.partner.sameAsContactPerson)
|
|
|
|
|
{
|
|
|
|
|
if($scope.partner.sameAsContactPerson) {
|
|
|
|
|
$scope.partner.legal_representative_person = $scope.partner.contact_person;
|
|
|
|
|
|
|
|
|
|
$scope.partner.legal_representative_phone_a = $scope.partner.contact_phone_a;
|
|
|
|
|
|
|
|
|
|
$scope.partner.legal_representative_phone_c = $scope.partner.contact_phone_c;
|
|
|
|
|
|
|
|
|
|
$scope.partner.legal_representative_phone_p = $scope.partner.contact_phone_p;
|
|
|
|
|
|
|
|
|
|
$scope.partner.legal_representative_email = $scope.partner.contact_email;
|
|
|
|
|
|
|
|
|
|
$scope.partner.legal_representative_job = $scope.partner.contact_job;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -436,14 +430,10 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
$scope.partner.sameAsAddress=false;
|
|
|
|
|
$scope.sameAddress = function (){
|
|
|
|
|
$scope.partner.sameAsAddress = !($scope.partner.sameAsAddress);
|
|
|
|
|
if($scope.partner.sameAsAddress)
|
|
|
|
|
{
|
|
|
|
|
if($scope.partner.sameAsAddress) {
|
|
|
|
|
$scope.partner.registered_address = $scope.partner.address;
|
|
|
|
|
|
|
|
|
|
$scope.partner.registered_suburb = $scope.partner.suburb;
|
|
|
|
|
|
|
|
|
|
$scope.partner.registered_postcode = $scope.partner.postcode;
|
|
|
|
|
|
|
|
|
|
$scope.partner.registered_state = $scope.partner.state;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -1393,14 +1383,10 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
$scope.partner.sameAsContactPerson = false;
|
|
|
|
|
$scope.checkboxOnclick = function (){
|
|
|
|
|
$scope.partner.sameAsContactPerson = !($scope.partner.sameAsContactPerson);
|
|
|
|
|
if($scope.partner.sameAsContactPerson)
|
|
|
|
|
{
|
|
|
|
|
if($scope.partner.sameAsContactPerson) {
|
|
|
|
|
$scope.partner.legal_representative_person = $scope.partner.contact_person;
|
|
|
|
|
|
|
|
|
|
$scope.partner.legal_representative_phone = $scope.partner.contact_phone;
|
|
|
|
|
|
|
|
|
|
$scope.partner.legal_representative_email = $scope.partner.contact_email;
|
|
|
|
|
|
|
|
|
|
$scope.partner.legal_representative_job = $scope.partner.contact_job;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -1408,14 +1394,10 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
$scope.partner.sameAsAddress=false;
|
|
|
|
|
$scope.sameAddress = function (){
|
|
|
|
|
$scope.partner.sameAsAddress=!($scope.partner.sameAsAddress);
|
|
|
|
|
if($scope.partner.sameAsAddress)
|
|
|
|
|
{
|
|
|
|
|
if($scope.partner.sameAsAddress) {
|
|
|
|
|
$scope.partner.registered_address = $scope.partner.address;
|
|
|
|
|
|
|
|
|
|
$scope.partner.registered_suburb = $scope.partner.suburb;
|
|
|
|
|
|
|
|
|
|
$scope.partner.registered_postcode = $scope.partner.postcode;
|
|
|
|
|
|
|
|
|
|
$scope.partner.registered_state = $scope.partner.state;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -3106,16 +3088,11 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
$scope.partner.sameAsContactPerson = false;
|
|
|
|
|
$scope.checkboxOnclick = function (){
|
|
|
|
|
$scope.partner.sameAsContactPerson = !($scope.partner.sameAsContactPerson);
|
|
|
|
|
if($scope.partner.sameAsContactPerson)
|
|
|
|
|
{
|
|
|
|
|
if($scope.partner.sameAsContactPerson) {
|
|
|
|
|
$scope.partner.legal_representative_person = $scope.partner.contact_person;
|
|
|
|
|
|
|
|
|
|
$scope.partner.legal_representative_phone_a = $scope.partner.contact_phone_a;
|
|
|
|
|
|
|
|
|
|
$scope.partner.legal_representative_phone_c = $scope.partner.contact_phone_c;
|
|
|
|
|
|
|
|
|
|
$scope.partner.legal_representative_phone_p = $scope.partner.contact_phone_p;
|
|
|
|
|
|
|
|
|
|
$scope.partner.legal_representative_email = $scope.partner.contact_email;
|
|
|
|
|
$scope.partner.legal_representative_job = $scope.partner.contact_job;
|
|
|
|
|
}
|
|
|
|
@ -3124,14 +3101,10 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
$scope.partner.sameAsAddress=false;
|
|
|
|
|
$scope.sameAddress = function (){
|
|
|
|
|
$scope.partner.sameAsAddress=!($scope.partner.sameAsAddress);
|
|
|
|
|
if($scope.partner.sameAsAddress)
|
|
|
|
|
{
|
|
|
|
|
if($scope.partner.sameAsAddress) {
|
|
|
|
|
$scope.partner.registered_address = $scope.partner.address;
|
|
|
|
|
|
|
|
|
|
$scope.partner.registered_suburb = $scope.partner.suburb;
|
|
|
|
|
|
|
|
|
|
$scope.partner.registered_postcode = $scope.partner.postcode;
|
|
|
|
|
|
|
|
|
|
$scope.partner.registered_state = $scope.partner.state;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|