smart pd changes
This commit is contained in:
parent
8f9bdfaac2
commit
d9bd3c29da
@ -297,8 +297,13 @@ export class BusinessAssetsInfoComponent implements OnInit {
|
||||
let selectedCity = this.cityArr.filter(element => element.city_id == dataValue.city)[0];
|
||||
// console.log(selectedCity,dataValue.city,selectedState);
|
||||
let selectedPincode = this.pinArr.filter(element => element.pincode_id == dataValue.pincode)[0];
|
||||
console.log(selectedAddressType)
|
||||
|
||||
let addressType = dataValue.address_type != 1 ? selectedAddressType.address_type : dataValue.address_type_others;
|
||||
let addressType = dataValue.address_type != 1 && selectedAddressType ? selectedAddressType.address_type : dataValue.address_type_others;
|
||||
console.log(addressType)
|
||||
if(addressType == undefined){
|
||||
addressType= ''
|
||||
}
|
||||
this.address_type = addressType;
|
||||
let address = dataValue.address.replace(/\n/g,"") + ' , ' + selectedCity.city_name + ',' + selectedState.name + '-' + (dataValue.pincode == 1 ? dataValue.pincode_others : selectedPincode.pincode);
|
||||
|
||||
|
||||
@ -201,6 +201,7 @@ export class GeneralInfoComponent implements OnInit {
|
||||
|
||||
/** init form */
|
||||
initFormDetails() {
|
||||
console.log(this.fk_pd_type)
|
||||
this._generalForm = this._fb.group({
|
||||
parent_pdid: this.parent_pdid,
|
||||
pdid: this.pdid,
|
||||
@ -212,7 +213,7 @@ export class GeneralInfoComponent implements OnInit {
|
||||
company_with_relationships: this._fb.array([]),
|
||||
rental_income_rcv_in_years: '',
|
||||
rental_income_rcv_in_month: '',
|
||||
is_kyc: ['',Validators.compose([Validators.required])],
|
||||
is_kyc: ['',this.fk_pd_type != '2' && this.fk_pd_type != '3' ? Validators.compose([Validators.required]) : ''],
|
||||
kyc_and_captur_the_name: '',
|
||||
general_remark: ''
|
||||
})
|
||||
@ -1107,7 +1108,9 @@ salariedcheck(){
|
||||
this._generalForm.get('is_kyc').clearValidators();
|
||||
}
|
||||
else{
|
||||
if(this.fk_pd_type != '2' && this.fk_pd_type != '3'){
|
||||
this._generalForm.get('is_kyc').setValidators(Validators.compose([Validators.required]))
|
||||
}
|
||||
}
|
||||
this._generalForm.get('is_kyc').updateValueAndValidity()
|
||||
}
|
||||
|
||||
@ -100,7 +100,7 @@
|
||||
<span *ngIf="RMCommentCard">
|
||||
<mat-form-field style="width:90%">
|
||||
<mat-select placeholder="Is the stock of Raw Materials observed, sufficient considering the size of operations"
|
||||
formControlName="is_sufficiant_raw" required>
|
||||
formControlName="is_sufficiant_raw" >
|
||||
<mat-option>Select</mat-option>
|
||||
<mat-option *ngFor="let val of RMsufficientList" [value]="val.value" [disabled]="val.disabled">
|
||||
{{val.isdisplayvalue}}
|
||||
@ -386,7 +386,7 @@
|
||||
<br>
|
||||
<mat-form-field style="width:90%">
|
||||
<mat-select placeholder="Is the stock of finished / traded goods observed, sufficient considering the size of operations"
|
||||
formControlName="is_sufficiant_finished_and_traded_goods" required>
|
||||
formControlName="is_sufficiant_finished_and_traded_goods">
|
||||
<mat-option>Select</mat-option>
|
||||
<mat-option *ngFor="let val of TGsufficientList" [value]="val.value" [disabled]="val.isdisabled">
|
||||
{{val.isdisplayvalue}}
|
||||
@ -502,7 +502,7 @@
|
||||
<br>
|
||||
<mat-form-field style="width:90%">
|
||||
<mat-select placeholder="Is the stock of finished / goods observed, sufficient considering the size of operations"
|
||||
formControlName="is_sufficiant_service_goods" required>
|
||||
formControlName="is_sufficiant_service_goods">
|
||||
<mat-option>Select</mat-option>
|
||||
<mat-option *ngFor="let val of SPsufficientList" [value]="val.value" [disabled]="val.isdisabled">
|
||||
{{val.isdisplayvalue}}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user