Skip to content

Commit 19de0df

Browse files
committed
Disabling the cvr and chr lookup for now.
1 parent 31a3c39 commit 19de0df

File tree

4 files changed

+80
-80
lines changed

4 files changed

+80
-80
lines changed

eform-client/src/app/plugins/modules/backend-configuration-pn/components/properties/property-actions/property-create-modal/property-create-modal.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h3 mat-dialog-title>{{ 'New property' | translate }}</h3>
3232
id="createPropertyName"
3333
>
3434
</mat-form-field>
35-
<mat-form-field *ngIf="propertyIsFarm">
35+
<mat-form-field>
3636
<mat-label>{{'CHR Number' | translate}}</mat-label>
3737
<input
3838
matInput

eform-client/src/app/plugins/modules/backend-configuration-pn/components/properties/property-actions/property-create-modal/property-create-modal.component.ts

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -62,47 +62,47 @@ export class PropertyCreateModalComponent implements OnInit, OnDestroy {
6262

6363
onNameFilterChanged(number: string) {
6464
this.newProperty.cvr = number;
65-
if (+number === 0) {
66-
this.propertyIsFarm = false;
67-
}
68-
if (+number === 1111111) {
65+
// if (+number === 0) {
66+
// this.propertyIsFarm = false;
67+
// }
68+
// if (+number === 1111111) {
6969
this.propertyIsFarm = true;
7070
this.newProperty.isFarm = true;
71-
}
72-
if (+number > 1111111) {
73-
if (number.toString().length > 7) {
74-
this.getCompanyTypeSub$ = this.propertiesService.getCompanyType(+number)
75-
.subscribe((data) => {
76-
if (data && data.success) {
77-
if (data.model.industrycode.toString().slice(0, 2) === '01') {
78-
this.propertyIsFarm = true;
79-
this.newProperty.isFarm = true;
80-
if (data.model.error !== 'NOT_FOUND') {
81-
this.newProperty.address = data.model.address + ', ' + data.model.city;
82-
this.newProperty.name = data.model.name;
83-
this.newProperty.industryCode = data.model.industrycode;
84-
}
85-
} else {
86-
if (data.model.error === 'REQUIRES_PAID_SUBSCRIPTION') {
87-
this.propertyIsFarm = true;
88-
this.newProperty.isFarm = true;
89-
} else {
90-
this.propertyIsFarm = false;
91-
this.newProperty.isFarm = false;
92-
if (data.model.error !== 'NOT_FOUND') {
93-
this.newProperty.address = data.model.address + ', ' + data.model.city;
94-
this.newProperty.name = data.model.name;
95-
this.newProperty.industryCode = data.model.industrycode;
96-
}
97-
}
98-
}
99-
}
100-
});
101-
}
102-
} else {
103-
this.newProperty.name = '';
104-
this.newProperty.address = '';
105-
}
71+
// }
72+
// if (+number > 1111111) {
73+
// if (number.toString().length > 7) {
74+
// this.getCompanyTypeSub$ = this.propertiesService.getCompanyType(+number)
75+
// .subscribe((data) => {
76+
// if (data && data.success) {
77+
// if (data.model.industrycode.toString().slice(0, 2) === '01') {
78+
// this.propertyIsFarm = true;
79+
// this.newProperty.isFarm = true;
80+
// if (data.model.error !== 'NOT_FOUND') {
81+
// this.newProperty.address = data.model.address + ', ' + data.model.city;
82+
// this.newProperty.name = data.model.name;
83+
// this.newProperty.industryCode = data.model.industrycode;
84+
// }
85+
// } else {
86+
// if (data.model.error === 'REQUIRES_PAID_SUBSCRIPTION') {
87+
// this.propertyIsFarm = true;
88+
// this.newProperty.isFarm = true;
89+
// } else {
90+
// this.propertyIsFarm = false;
91+
// this.newProperty.isFarm = false;
92+
// if (data.model.error !== 'NOT_FOUND') {
93+
// this.newProperty.address = data.model.address + ', ' + data.model.city;
94+
// this.newProperty.name = data.model.name;
95+
// this.newProperty.industryCode = data.model.industrycode;
96+
// }
97+
// }
98+
// }
99+
// }
100+
// });
101+
// }
102+
// } else {
103+
// this.newProperty.name = '';
104+
// this.newProperty.address = '';
105+
// }
106106
}
107107

108108
onChrNumberChanged(number: number) {

eform-client/src/app/plugins/modules/backend-configuration-pn/components/properties/property-actions/property-edit-modal/property-edit-modal.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h3 mat-dialog-title>{{ 'Edit property' | translate }}</h3>
3232
id="editPropertyName"
3333
>
3434
</mat-form-field>
35-
<mat-form-field *ngIf="selectedProperty.isFarm">
35+
<mat-form-field>
3636
<mat-label>{{'CHR Number' | translate}}</mat-label>
3737
<input
3838
matInput

eform-client/src/app/plugins/modules/backend-configuration-pn/components/properties/property-actions/property-edit-modal/property-edit-modal.component.ts

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -70,47 +70,47 @@ export class PropertyEditModalComponent implements OnInit, OnDestroy {
7070
}
7171

7272
onNameFilterChanged(number: number) {
73-
if (number === 0) {
74-
this.propertyIsFarm = false;
75-
}
76-
if (number === 1111111) {
73+
// if (number === 0) {
74+
// this.propertyIsFarm = false;
75+
// }
76+
// if (number === 1111111) {
7777
this.propertyIsFarm = true;
7878
this.selectedProperty.isFarm = true;
79-
}
80-
if (number > 1111111) {
81-
if (number.toString().length > 7) {
82-
this.getCompanyTypeSub$ = this.propertiesService.getCompanyType(number)
83-
.subscribe((data) => {
84-
if (data && data.success) {
85-
if (data.model.industrycode.toString().slice(0, 2) === '01') {
86-
this.propertyIsFarm = true;
87-
this.selectedProperty.isFarm = true;
88-
if (data.model.error !== 'NOT_FOUND') {
89-
this.selectedProperty.address = data.model.address + ', ' + data.model.city;
90-
this.selectedProperty.name = data.model.name;
91-
this.selectedProperty.industryCode = data.model.industrycode;
92-
}
93-
} else {
94-
if (data.model.error === 'REQUIRES_PAID_SUBSCRIPTION') {
95-
this.propertyIsFarm = true;
96-
this.selectedProperty.isFarm = true;
97-
} else {
98-
this.propertyIsFarm = false;
99-
this.selectedProperty.isFarm = false;
100-
if (data.model.error !== 'NOT_FOUND') {
101-
this.selectedProperty.address = data.model.address + ', ' + data.model.city;
102-
this.selectedProperty.name = data.model.name;
103-
this.selectedProperty.industryCode = data.model.industrycode;
104-
}
105-
}
106-
}
107-
}
108-
});
109-
}
110-
} else {
111-
// this.selectedProperty.name = '';
112-
// this.selectedProperty.address = '';
113-
}
79+
// }
80+
// if (number > 1111111) {
81+
// if (number.toString().length > 7) {
82+
// this.getCompanyTypeSub$ = this.propertiesService.getCompanyType(number)
83+
// .subscribe((data) => {
84+
// if (data && data.success) {
85+
// if (data.model.industrycode.toString().slice(0, 2) === '01') {
86+
// this.propertyIsFarm = true;
87+
// this.selectedProperty.isFarm = true;
88+
// if (data.model.error !== 'NOT_FOUND') {
89+
// this.selectedProperty.address = data.model.address + ', ' + data.model.city;
90+
// this.selectedProperty.name = data.model.name;
91+
// this.selectedProperty.industryCode = data.model.industrycode;
92+
// }
93+
// } else {
94+
// if (data.model.error === 'REQUIRES_PAID_SUBSCRIPTION') {
95+
// this.propertyIsFarm = true;
96+
// this.selectedProperty.isFarm = true;
97+
// } else {
98+
// this.propertyIsFarm = false;
99+
// this.selectedProperty.isFarm = false;
100+
// if (data.model.error !== 'NOT_FOUND') {
101+
// this.selectedProperty.address = data.model.address + ', ' + data.model.city;
102+
// this.selectedProperty.name = data.model.name;
103+
// this.selectedProperty.industryCode = data.model.industrycode;
104+
// }
105+
// }
106+
// }
107+
// }
108+
// });
109+
// }
110+
// } else {
111+
// // this.selectedProperty.name = '';
112+
// // this.selectedProperty.address = '';
113+
// }
114114
}
115115

116116
// addToArray(e: any, languageId: number) {

0 commit comments

Comments
 (0)