From f0396d5c9aebea7044a16b12761c313c553f9127 Mon Sep 17 00:00:00 2001 From: gayathri1990 Date: Wed, 5 May 2021 20:38:01 +0530 Subject: [PATCH] remove field business asset form --- .../business-assets-info.component.html | 18 +++++++++--------- .../business-assets-info.component.ts | 10 +++++----- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-assets-info/business-assets-info.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-assets-info/business-assets-info.component.html index d4d2f0295..f8460ef09 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-assets-info/business-assets-info.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-assets-info/business-assets-info.component.html @@ -117,7 +117,7 @@ -
@@ -155,21 +155,21 @@ *ngIf="itemrow.controls['business_name_of_the_other_owner'].hasError('required')">Asset Owned by Required - +
Age of Asset in Years - + Age of Asset in Months - + @@ -178,13 +178,13 @@ - +
-
+ --> - + @@ -449,7 +449,7 @@
Is There a Loan Existing Against This Asset? - Select Yes diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-assets-info/business-assets-info.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-assets-info/business-assets-info.component.ts index 7e5fdfbf0..514470f4e 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-assets-info/business-assets-info.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-assets-info/business-assets-info.component.ts @@ -365,7 +365,7 @@ console.log(selectedAddressType) business_address_availability: '', business_is_pd_visited: '', business_pd_visited_remark: '', - business_approximate_market_value: '', + business_approximate_market_value: '', business_ownership_type: '', business_monthly_rented_amt: '', business_name_of_the_owner: '', @@ -507,7 +507,7 @@ console.log(selectedAddressType) business_name_of_the_other_owner: [''], business_vintage: [''], asset_months:[''], - business_purchase_year: ['', Validators.compose([Validators.pattern("[1-9]{1}[0-9]{3}")])], + business_purchase_year: [''], business_emi: [''], }); } @@ -530,7 +530,7 @@ console.log(selectedAddressType) business_name_of_the_other_owner: [''], business_vintage: [''], asset_months:[''], - business_purchase_year: ['', Validators.compose([Validators.pattern("[1-9]{1}[0-9]{3}")])], + business_purchase_year: [''], business_emi: [''], }); } @@ -1350,8 +1350,8 @@ console.log(selectedAddressType) if (value == 'owned') { item.controls.business_monthly_rented_amt.setValue(''); item.controls.business_monthly_rented_amt.clearValidators(); - item.controls.business_name_of_the_owner.setValidators([Validators.required]); - item.controls.business_approximate_market_value.setValidators([Validators.required]); + item.controls.business_name_of_the_owner.setValidators(); + item.controls.business_approximate_market_value.setValidators(); } else { item.controls.business_monthly_rented_amt.setValidators([Validators.required]);