|
|
|
@ -98,6 +98,9 @@ define(['angular', 'decimal', 'uiRouter', 'ngBootSwitch', 'ngFileUpload', 'uiBoo
|
|
|
|
|
$scope.checkboxOnclick = function () {
|
|
|
|
|
$scope.partner.sameAsContactPerson = !($scope.partner.sameAsContactPerson);
|
|
|
|
|
if ($scope.partner.sameAsContactPerson) {
|
|
|
|
|
if ($scope.partner.representativeInfo == null) {
|
|
|
|
|
$scope.partner.representativeInfo = {};
|
|
|
|
|
}
|
|
|
|
|
$scope.partner.representativeInfo.representative_person = $scope.partner.contact_person;
|
|
|
|
|
$scope.partner.representativeInfo.phone = $scope.partner.contact_phone.substring(1, $scope.partner.contact_phone.length);
|
|
|
|
|
$scope.partner.representativeInfo.email = $scope.partner.contact_email;
|
|
|
|
@ -108,6 +111,9 @@ define(['angular', 'decimal', 'uiRouter', 'ngBootSwitch', 'ngFileUpload', 'uiBoo
|
|
|
|
|
$scope.sameAddress = function (){
|
|
|
|
|
$scope.partner.sameAsAddress = !($scope.partner.sameAsAddress);
|
|
|
|
|
if($scope.partner.sameAsAddress){
|
|
|
|
|
if ($scope.partner.representativeInfo == null) {
|
|
|
|
|
$scope.partner.representativeInfo = {};
|
|
|
|
|
}
|
|
|
|
|
$scope.partner.representativeInfo.address = $scope.partner.address;
|
|
|
|
|
$scope.partner.representativeInfo.suburb = $scope.partner.suburb;
|
|
|
|
|
$scope.partner.representativeInfo.postcode = $scope.partner.postcode;
|
|
|
|
|