diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.html
index 1e1b622f6..f7df7d64c 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.html
@@ -75,16 +75,13 @@
-
+
-
- Select
-
+ Select
{{SPL.subproduct_name}}
-
-
+
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts
index 7bd0368f0..b49203d34 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts
@@ -32,6 +32,7 @@ export class AddPdComponent implements OnInit, OnDestroy {
subProductList: any;
lenderList: any;
lenderBranchList: any;
+ customerSegmentAllList: any;
customerSegmentList: any;
stateList: any = [];
cityList: any = [];
@@ -136,7 +137,7 @@ export class AddPdComponent implements OnInit, OnDestroy {
this._pd.getCustomersDetails().subscribe(
data => {
if (data.status == 200) {
- this.customerSegmentList = data.records
+ this.customerSegmentAllList = data.records
}
}, error => this.errorMessage = error);
}
@@ -164,9 +165,12 @@ export class AddPdComponent implements OnInit, OnDestroy {
//get sub product list based on prokduct id
getSubproductList(productID: string) {
+ console.log('productID',productID);
this.subProductList = this.productList.filter(item => item.product_id == productID);
this.subProductList = this.subProductList[0].subproducts;
this.subProductList = this.subProductList.filter(item => item.is_others == 0);
+ this.customerSegmentList = (productID != '4')?this.customerSegmentAllList:this.customerSegmentAllList.filter(s => (s.customer_segment).includes('Self'));
+ if(productID != '4'){this._PDtriggerForm.controls['fk_subproduct_id'].setValue('')}
}
@@ -253,7 +257,7 @@ export class AddPdComponent implements OnInit, OnDestroy {
coapplicant_name: [null, Validators.compose([Validators.required])],
coapplicant_mobile_no: [null,Validators.compose([Validators.minLength(10),Validators.maxLength(10)])],
coapplicant_stdcode:[null, Validators.compose([Validators.minLength(3), Validators.maxLength(5), Validators.pattern('^[0-9]*$')])],
- coapplicant_landline : [null,Validators.compose([Validators.minLength(12),Validators.maxLength(13)])],
+ coapplicant_landline: [null, Validators.compose([Validators.minLength(6), Validators.maxLength(8), Validators.pattern('^[0-9]*$')])],
company_name:[null],
relationship: [null],
});
@@ -340,9 +344,14 @@ export class AddPdComponent implements OnInit, OnDestroy {
this._PDtriggerForm.controls['fk_product_id'].setValidators([Validators.required]);
this._PDtriggerForm.controls['fk_product_id'].updateValueAndValidity();
-
- this._PDtriggerForm.controls['fk_subproduct_id'].setValidators([Validators.required]);
- this._PDtriggerForm.controls['fk_subproduct_id'].updateValueAndValidity();
+
+ if(formValue.fk_product_id != '4'){
+ this._PDtriggerForm.controls['fk_subproduct_id'].setValidators([Validators.required]);
+ this._PDtriggerForm.controls['fk_subproduct_id'].updateValueAndValidity();
+ }
+ else{
+ this._PDtriggerForm.controls['fk_subproduct_id'].setValue('');
+ }
this._PDtriggerForm.controls['fk_pd_type'].setValidators([Validators.required]);
this._PDtriggerForm.controls['fk_pd_type'].updateValueAndValidity();
@@ -386,8 +395,13 @@ export class AddPdComponent implements OnInit, OnDestroy {
this._PDtriggerForm.controls['fk_product_id'].clearValidators();
this._PDtriggerForm.controls['fk_product_id'].updateValueAndValidity();
- this._PDtriggerForm.controls['fk_subproduct_id'].clearValidators();
- this._PDtriggerForm.controls['fk_subproduct_id'].updateValueAndValidity();
+ if(this._PDtriggerForm.controls.fk_product_id.value != '4'){
+ this._PDtriggerForm.controls['fk_subproduct_id'].clearValidators();
+ this._PDtriggerForm.controls['fk_subproduct_id'].updateValueAndValidity();
+ }
+ else{
+ this._PDtriggerForm.controls['fk_subproduct_id'].setValue('');
+ }
this._PDtriggerForm.controls['fk_pd_type'].clearValidators();
this._PDtriggerForm.controls['fk_pd_type'].updateValueAndValidity();
@@ -473,7 +487,7 @@ export class AddPdComponent implements OnInit, OnDestroy {
"pd_contact_mobileno": formValue.lender_contact_mobile,
"pd_contact_landline": lender_landline_no,
"fk_product_id": formValue.fk_product_id,
- "fk_subproduct_id": formValue.fk_subproduct_id,
+ "fk_subproduct_id": formValue.fk_product_id != 4 ? formValue.fk_subproduct_id : '',
"fk_pd_type": formValue.fk_pd_type,
"fk_customer_segment": formValue.fk_customer_segment,
"loan_amount": formValue.loan_amount,
@@ -489,6 +503,7 @@ export class AddPdComponent implements OnInit, OnDestroy {
var pd_applicant_details: any = [];
+ var addresses_details: any = [];
if (formValue.applicant_name) {
pd_applicant_details.push({
"applicant_name": formValue.applicant_name,
@@ -529,6 +544,20 @@ export class AddPdComponent implements OnInit, OnDestroy {
pd_applicant_details.push(obj1)
});
+ if (formValue.addresses.length > 0) {
+ formValue.addresses.forEach((addressElement, itemIndex) => {
+ let addressobj = {
+ "addressline1": addressElement.addressline1.toUpperCase(),
+ "fk_city": addressElement.fk_city,
+ "fk_state": addressElement.fk_state,
+ "pincode": addressElement.pincode,
+ "other_pincode": addressElement.other_pincode,
+ }
+ addresses_details.push(addressobj);
+ });
+ }
+
+
// docs details
let pd_form: FormData = new FormData();
@@ -544,31 +573,21 @@ export class AddPdComponent implements OnInit, OnDestroy {
AllFilesObj.push(element.doc_name);
});
pd_form.append("pd_details", JSON.stringify(pd_details))
+
if (pd_applicant_details.length > 0) {
pd_form.append("pd_applicant_details", JSON.stringify(pd_applicant_details))
}
+ if(addresses_details.length>0){
+ pd_form.append("addresses", JSON.stringify(addresses_details));
+ }
+
pd_form.append("pd_document_titles", JSON.stringify(AllFilesObj))
if (formValue.addtional_requirements.length > 0) {
pd_form.append("addtional_requirements", JSON.stringify(formValue.addtional_requirements))
}
- // formValue.addresses.forEach((addressElement, itemIndex) => {
- // let addressobj = {
- // "addressline": addressElement.addressline.toUpperCase(),
- // "fk_city": addressElement.fk_city,
- // "fk_state": addressElement.fk_state,
- // "pincode": addressElement.pincode,
- // "other_pincode": addressElement.other_pincode,
- // }
-
- // });
-
- if (formValue.addresses.length > 0) {
- pd_form.append("addresses", JSON.stringify(formValue.addresses))
- }
-
this._pd.addPdDetails(pd_form).subscribe(result => {
if (result.status == 200) {
this.disableAfterSubmit = false;
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.html
index 952abdbd1..9b5e92a98 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.html
@@ -82,9 +82,9 @@
- {{details.lender_full_name}}
+ {{details.lender_short_name}}
- {{details.product_abbr}}/{{details.subproduct_abbr}}
+ {{details.product_abbr}}/{{details.subproduct_abbr}}
{{details.loan_amount}}
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.html
index 9f6dac593..ae95eb38f 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.html
@@ -78,8 +78,8 @@
- {{details.lender_full_name}}
- {{details.product_abbr}}/{{details.subproduct_abbr}}
+ {{details.lender_short_name}}
+ {{details.product_abbr}}/{{details.subproduct_abbr}}
{{details.loan_amount}}
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.html
index d6e682141..f661a0258 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.html
@@ -86,7 +86,8 @@
-
+
+
Select
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.ts
index b7578d5a9..776528167 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.ts
@@ -17,6 +17,7 @@ export class EditPdMasterComponent implements OnInit {
productList:any;
subProductList:any;
lenderList:any;
+ customerSegmentAllList:any;
customerSegmentList:any;
stateList:any;
cityList:any = [];
@@ -100,7 +101,6 @@ export class EditPdMasterComponent implements OnInit {
if(this.data.records.fk_product_id){
this.getSubproductList(this.data.records.fk_product_id);
}
-
}
}, error => this.errorMessage = error);
}
@@ -108,7 +108,7 @@ export class EditPdMasterComponent implements OnInit {
this._pd.getCustomersDetails().subscribe(
data => {
if (data.status == 200) {
- this.customerSegmentList=data.records
+ this.customerSegmentAllList=data.records
}
}, error => this.errorMessage = error);
}
@@ -158,7 +158,6 @@ export class EditPdMasterComponent implements OnInit {
}
}
-
// let getpincodeid = this.data.records.pincode != '' ? this.data.records.pincode != null ? (this.pincodeList.filter(data => data.pincode == this.data.records.pincode).pincode_id)
// : this.data.records.pincode
// : this.data.records.pincode;
@@ -205,14 +204,19 @@ export class EditPdMasterComponent implements OnInit {
}
this.getCityList(val.fk_state,index);
this.getPincode(val.pincode_id,index);
+
+ console.log('this.addressesList.length',this.addressesList.length);
+ this.addressesDeactivited[this.addressesList.length] = true;
addressesArray.push(this.createAddresses(obj));
});
}
else{
+ this.addressesDeactivited[0] = true;
addressesArray.push(this.createAddresses(null));
}
}
else{
+ this.addressesDeactivited[0] = true;
addressesArray.push(this.createAddresses(null));
}
});
@@ -225,6 +229,10 @@ export class EditPdMasterComponent implements OnInit {
this.subProductList= this.productList.filter(item => item.product_id == productID);
this.subProductList=this.subProductList[0].subproducts;
+ this.customerSegmentList=(productID != '4')?this.customerSegmentAllList:this.customerSegmentAllList.filter(s => (s.customer_segment).includes('Self'));
+
+ // this.customerSegmentList = (productID != '4')?this.customerSegmentAllList:(this.customerSegmentAllList.filter(s => (s.customer_segment).includes('Self')),this._EditPDtriggerForm.controls['fk_subproduct_id'].setValue(''));
+
}
// //get city list details based on state id
@@ -272,12 +280,8 @@ export class EditPdMasterComponent implements OnInit {
}
};
addAddresses(index) {
- console.log(index);
- this.addressesDeactivited[index] = true;
- console.log('this.addressesDeactivited[index]',this.addressesDeactivited[index]);
this.addresses = this._EditPDtriggerForm.get('addresses') as FormArray;
this.addresses.push(this.createAddresses(null));
-
}
removeAddresses(index: number,strflag : any) {
@@ -439,7 +443,7 @@ export class EditPdMasterComponent implements OnInit {
"pd_contact_mobileno": my_array.pd_contact_mobileno,
"pd_contact_landline": concat_landline,
"fk_product_id": my_array.fk_product_id,
- "fk_subproduct_id": my_array.fk_subproduct_id,
+ "fk_subproduct_id": my_array.fk_product_id != '4' ? my_array.fk_subproduct_id : '',
"fk_pd_type": my_array.fk_pd_type,
"fk_customer_segment": my_array.fk_customer_segment,
"loan_amount": my_array.loan_amount,
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.html
index 2b210d292..ec36e21ec 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.html
@@ -75,8 +75,8 @@
- {{details.lender_full_name}}
- {{details.product_abbr}}/{{details.subproduct_abbr}}
+ {{details.lender_short_name}}
+ {{details.product_abbr}}/{{details.subproduct_abbr}}
{{details.loan_amount}}
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/qc-completed-pd/qc-completed-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/qc-completed-pd/qc-completed-pd.component.html
index 04626951e..61fb3c35e 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/qc-completed-pd/qc-completed-pd.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/qc-completed-pd/qc-completed-pd.component.html
@@ -77,8 +77,8 @@
- {{details.lender_full_name}}
- {{details.product_abbr}}/{{details.subproduct_abbr}}
+ {{details.lender_short_name}}
+ {{details.product_abbr}}/{{details.subproduct_abbr}}
{{details.loan_amount}}
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/scheduled-pd/scheduled-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/scheduled-pd/scheduled-pd.component.html
index bf3ad7162..e246206ab 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/scheduled-pd/scheduled-pd.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/scheduled-pd/scheduled-pd.component.html
@@ -76,8 +76,8 @@
- {{details.lender_full_name}}
- {{details.product_abbr}}/{{details.subproduct_abbr}}
+ {{details.lender_short_name}}
+ {{details.product_abbr}}/{{details.subproduct_abbr}}
{{details.loan_amount}}
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.html
index f1971d12f..25299b839 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.html
@@ -61,7 +61,7 @@
+ formControlName="pincode_others" OnlyNumber type="text">
@@ -139,7 +139,7 @@
+ OnlyNumber type="text">
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.ts
index ea09b4586..8c0141199 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.ts
@@ -518,16 +518,6 @@ createAddresses(AddressDetails): FormGroup {
});
}
- /** On Key Press Event For Numbers */
- keyPress(event: any) {
- const pattern = /[0-9]/;
-
- let inputChar = String.fromCharCode(event.charCode);
- if (event.keyCode != 8 && !pattern.test(inputChar)) {
- event.preventDefault();
- }
- }
-
/** For DOCS Tab */
public viewerOptions: any = {
navbar: false,
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/assets-info/assets-info.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/assets-info/assets-info.component.html
index 4572e9cad..b09397b92 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/assets-info/assets-info.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/assets-info/assets-info.component.html
@@ -158,8 +158,9 @@
-
+
{{"₹"}} {{OtherPremiumPaidInwords[s]}} Only
+
@@ -174,7 +175,7 @@
-
+
{{"₹"}} {{OtherSumAssuredInwords[s]}} Only
@@ -210,7 +211,7 @@
-
+
@@ -254,7 +255,7 @@
-
+
{{"₹"}} {{OtherAppxMarketAmtInwords[i]}} Only
@@ -279,14 +280,22 @@
-
{{val.name}}
-
+ -->
+
+
+
+ {{val.name}}
+
+
+
@@ -309,14 +318,14 @@
Age of Asset in Years
-
+
Purchase Year
-
+
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/assets-info/assets-info.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/assets-info/assets-info.component.ts
index 2066a1bad..cf2dbe496 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/assets-info/assets-info.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/assets-info/assets-info.component.ts
@@ -279,7 +279,7 @@ export class AssetsInfoComponent implements OnInit {
// this.initDetails(),
]),
// business_assets_details : this._formBuilder.array([]),
- assets_form_remark:[value.assets_form_remark || 'check']
+ assets_form_remark:[value.assets_form_remark]
});
this.addAssetsDetailsWithData(value.assets_details);
// this.addBusinessAssetsDetailsWithData(value.business_assets_details);
@@ -611,17 +611,20 @@ export class AssetsInfoComponent implements OnInit {
};
const control = this._assetsQuesFrom.controls['assets_details'];
- // let Avaliablity = 1;
- // val.name_of_the_owner.forEach(option => {
- // if(option.id == 0 && option.group_id == 2){
- // Avaliablity = option.id;
- // }
- // });
- // this.isOtherOwner = Avaliablity == 0 ? true : false;
+
control.push(this.initDetailsWithdata(vals));
this.setAssetsDetailsWithData(vals.assets_mode, val.details, control.length - 1)
}
result.forEach((datas,index) => {
+ // let Avaliablity = 1;
+ // if(datas.name_of_the_owner.length>0){
+ // datas.name_of_the_owner.forEach(option => {
+ // if(option.id == 0 && option.group_id == 2){
+ // Avaliablity = option.id;
+ // }
+ // });
+ // }
+ // this.isOtherOwner[index] = Avaliablity == 0 ? true : false;
this.OtherAppxMarketAmtInwords[index] = this.pdTrigerService.convertNumberToWords(+datas.approximate_market_value);
this.setRequiredValidation(datas.name_of_the_owner,index,'',4);
});
@@ -840,16 +843,6 @@ export class AssetsInfoComponent implements OnInit {
// this.getPdSupplierFormDetails();
// }
- /** On Key Press Event For Number only Accepting */
- keyPress(event: any) {
- const pattern = /[0-9]/;
-
- let inputChar = String.fromCharCode(event.charCode);
- if (event.keyCode != 8 && !pattern.test(inputChar)) {
- event.preventDefault();
- }
- }
-
/** To calculating Loan Elapsed Tenure both "Other Asset" And "Business Asset" using Flag */
loanTenureCalc(details ,flag)
{
@@ -872,7 +865,7 @@ export class AssetsInfoComponent implements OnInit {
}
setRequiredValidation(value,ParInx,ChdInx,flag) {
- // console.log('value',value,'ParInx',ParInx,'ChdInx',ChdInx,'flag',flag);
+ console.log('value',value,'ParInx',ParInx,'ChdInx',ChdInx,'flag',flag);
let ParCtrls = this._assetsQuesFrom.controls.assets_details;
// console.log('ParCtrls',ParCtrls);
let ChdCtrls:any = ParCtrls.controls[ParInx];
@@ -905,19 +898,21 @@ export class AssetsInfoComponent implements OnInit {
if (flag == 4) {
let Avaliablity = 1;
// console.log('val',value);
+ if(value.length>0){
value.forEach(option => {
if(option.id == 0 && option.group_id == 2){
Avaliablity = option.id;
}
});
+ }
if(Avaliablity == 0){
- // console.log('if Avaliablity',Avaliablity);
+ console.log('if Avaliablity',Avaliablity);
// console.log('if this.isOtherOwner[ParInx]',this.isOtherOwner[ParInx]);
ChdCtrls.controls.other_owner.setValidators([Validators.required]);
this.isOtherOwner[ParInx] = true;
// console.log('if this.isOtherOwner[ParInx]',this.isOtherOwner[ParInx]);
}else if(Avaliablity == 1){
- // console.log('else Avaliablity',Avaliablity);
+ console.log('else Avaliablity',Avaliablity);
// console.log('esle this.isOtherOwner[ParInx]',this.isOtherOwner[ParInx]);
ChdCtrls.controls.other_owner.setValue('');
ChdCtrls.controls.other_owner.clearValidators();
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/banking-details/banking-details.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/banking-details/banking-details.component.html
index 8f1d2edd7..c48fae6ce 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/banking-details/banking-details.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/banking-details/banking-details.component.html
@@ -147,7 +147,7 @@
+ formControlName="limit" OnlyNumber type="text" (keyup)="inWords($event,i,1)">
{{"₹"}} {{amtInwords[i]}} Only
@@ -156,10 +156,10 @@
-
+
-
+
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/banking-details/banking-details.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/banking-details/banking-details.component.ts
index 85969821f..1152b35b6 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/banking-details/banking-details.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/banking-details/banking-details.component.ts
@@ -357,13 +357,4 @@ export class BankingDetailsComponent implements OnInit {
}
}
- /** On Key Press Event For Numbers */
- keyPress(event: any) {
- const pattern = /[0-9]/;
-
- let inputChar = String.fromCharCode(event.charCode);
- if (event.keyCode != 8 && !pattern.test(inputChar)) {
- event.preventDefault();
- }
- }
}
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 c4a49beca..6d7073527 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
@@ -44,14 +44,14 @@
+ (change)="checkWithExistBusinessYear($event.target.value,i)" OnlyNumber type="text">
{{yearErrorMessage[i]}}
+ OnlyNumber type="text" (change)="ConvertMonthintoYear($event.target.value,i)">
{{monthErrorMessage[i]}}
@@ -90,7 +90,7 @@
+ OnlyNumber type="text" (keyup)="inWords($event,i,9)">
{{"₹"}}
{{RentAmtInwordsForAddress[i]}} Only
Monthly Rent Amount Required
@@ -101,7 +101,7 @@
+ OnlyNumber type="text" autocomplete="off" (keyup)="inWords($event,i,10)">
{{"₹"}}
{{appxMarketAmtInwordsForAddress[i]}} Only
@@ -126,14 +126,14 @@
Approx Vintage
+ minlength="1" maxlength="3" OnlyNumber type="text" (keyup)="calculateVintagePurchase($event.target.value,i,3)">
Purchase Year
+ minlength="4" maxlength="4" OnlyNumber type="text" (keyup)="calculateVintagePurchase($event.target.value,i,4)">
@@ -288,7 +288,7 @@
+ OnlyNumber type="text" (keyup)="inWords($event,i,8)">
{{"₹"}}
{{RentAmtInwords[i]}} Only
Monthly Rent Amount Required
@@ -298,7 +298,7 @@
+ OnlyNumber type="text" autocomplete="off" (keyup)="inWords($event,i,1)">
{{"₹"}}
{{appxMarketAmtInwords[i]}} Only
@@ -323,14 +323,14 @@
Approx Vintage
+ minlength="1" maxlength="3" OnlyNumber type="text" (keyup)="calculateVintagePurchase($event.target.value,i,1)">
Purchase Year
+ minlength="4" maxlength="4" OnlyNumber type="text" (keyup)="calculateVintagePurchase($event.target.value,i,2)">
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 d2415150f..15938b197 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
@@ -608,12 +608,14 @@ export class BusinessAssetsInfoComponent implements OnInit {
this.appxMarketAmtInwords[index] = this.pdTrigerService.convertNumberToWords(+datas.business_approximate_market_value);
this.RentAmtInwords[index] = this.pdTrigerService.convertNumberToWords(+datas.business_monthly_rented_amt);
let Avaliablity = 1;
-
+ console.log('datas.business_name_of_the_owner.length',datas.business_name_of_the_owner.length);
+ if(datas.business_name_of_the_owner.length > 0){
datas.business_name_of_the_owner.forEach(option => {
if(option.id == 0 && option.group_id == 2){
Avaliablity = option.id;
}
});
+ }
this.isOtherOwner[index] = Avaliablity == 0 ? true : false;
});
@@ -777,17 +779,6 @@ export class BusinessAssetsInfoComponent implements OnInit {
}
}
- /** On Key Press Event For Number only Accepting */
- keyPress(event: any) {
- const pattern = /[0-9]/;
-
- let inputChar = String.fromCharCode(event.charCode);
- if (event.keyCode != 8 && !pattern.test(inputChar)) {
- event.preventDefault();
- }
- }
-
-
/** To Convert Month into Year */
ConvertMonthintoYear(e,i) {
// const address_control = this._EditPDtriggerForm.controls['addresses'];
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-banking-details/business-banking-details.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-banking-details/business-banking-details.component.html
index 3fe220cc1..fce0202d3 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-banking-details/business-banking-details.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-banking-details/business-banking-details.component.html
@@ -82,7 +82,7 @@
+ formControlName="limit" OnlyNumber type="text" (keyup)="inWords($event,i,1)">
{{"₹"}} {{amtInwords[i]}} Only
@@ -91,10 +91,10 @@
-
+
-
+
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-banking-details/business-banking-details.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-banking-details/business-banking-details.component.ts
index 4206e8787..0be70f0f9 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-banking-details/business-banking-details.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-banking-details/business-banking-details.component.ts
@@ -330,16 +330,6 @@ export class BusinessBankingDetailsComponent implements OnInit {
}
}
- /** On Key Press Event For Numbers */
- keyPress(event: any) {
- const pattern = /[0-9]/;
-
- let inputChar = String.fromCharCode(event.charCode);
- if (event.keyCode != 8 && !pattern.test(inputChar)) {
- event.preventDefault();
- }
- }
-
setRequiredValidation(value,item,flag) {
if(flag == 1){
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-info/business-info.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-info/business-info.component.html
index a74cb1ed0..a4d93c429 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-info/business-info.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-info/business-info.component.html
@@ -52,7 +52,7 @@
-
@@ -69,16 +69,16 @@
-
+
{{yearErrorMessage[i]}}
-
+
{{monthErrorMessage[i]}}
+ formControlName="total_business_experiance" OnlyNumber type="text" (keyup)="getWorkExperience(members.value,i)" autocomplete="off" required (change)="checkWithExistTotalWorkExperience($event.target.value,i,members)">
{{errorMessageForExistTotalWorkExperience[i]}}
@@ -1158,7 +1158,7 @@
- 0">
+
Export Sale As a % Total Sales
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-info/business-info.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-info/business-info.component.ts
index e6c418c2a..3f7db69fb 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-info/business-info.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-info/business-info.component.ts
@@ -166,7 +166,7 @@ export class BusinessInfoComponent implements OnInit {
const retailControl: any = this.businessForm.controls['retail_trading_activity_details'];
const wholesaleControl: any = this.businessForm.controls['wholesale_trading_activity_details'];
const serviceProviderControl: any = this.businessForm.controls['service_provider_activity_details'];
- const othersControl: any = this.businessForm.controls['others_activity_details'];
+ // const othersControl: any = this.businessForm.controls['others_activity_details'];
if (data.status == 200) {
let DocArray: any;
@@ -553,25 +553,26 @@ export class BusinessInfoComponent implements OnInit {
businessVal.service_provider_activity_details=[];
}
- if(data.records.others_activity_details){
+ //others type of Activity_details comment
+ // if(data.records.others_activity_details){
- // update others activity details
- let selectedOthers = Object.keys(data.records.others_activity_details).map(function (key) {
- return data.records.others_activity_details[key];
- });
- if(selectedOthers.length > 0) {
- selectedOthers.forEach((element,index)=>{
- othersControl.push(this.createOthersActivity());
- });
- businessVal.others_activity_details=selectedOthers;
- }
- else{
- businessVal.others_activity_details=[];
- }
- }
- else {
- businessVal.others_activity_details=[];
- }
+ // // update others activity details
+ // let selectedOthers = Object.keys(data.records.others_activity_details).map(function (key) {
+ // return data.records.others_activity_details[key];
+ // });
+ // if(selectedOthers.length > 0) {
+ // selectedOthers.forEach((element,index)=>{
+ // othersControl.push(this.createOthersActivity());
+ // });
+ // businessVal.others_activity_details=selectedOthers;
+ // }
+ // else{
+ // businessVal.others_activity_details=[];
+ // }
+ // }
+ // else {
+ // businessVal.others_activity_details=[];
+ // }
if(businessVal.applicant_use_pos_machines == 'yes'){
this.businessForm.controls.no_of_pos_machines.setValue(businessVal.no_of_pos_machines);
const posControl: any = this.businessForm.controls['pos_machines_details'];
@@ -660,7 +661,7 @@ export class BusinessInfoComponent implements OnInit {
retail_trading_activity_details: this.fb.array([]),
wholesale_trading_activity_details: this.fb.array([]),
service_provider_activity_details: this.fb.array([]),
- others_activity_details: this.fb.array([]),
+ // others_activity_details: this.fb.array([]),
});
}
@@ -724,15 +725,15 @@ export class BusinessInfoComponent implements OnInit {
serviceControl.push(this.createServiceActivity());
}
- if(event.value.exist_status==true && event.value.type_of_activity_id==1){
- let othersControl = this.businessForm.controls['others_activity_details'];
- othersControl.controls = [];
- othersControl.setValue([]);
- }
- else if(event.value.exist_status==false && event.value.type_of_activity_id==1){
- let othersControl = this.businessForm.controls['others_activity_details'];
- othersControl.push(this.createOthersActivity());
- }
+ // if(event.value.exist_status==true && event.value.type_of_activity_id==1){
+ // let othersControl = this.businessForm.controls['others_activity_details'];
+ // othersControl.controls = [];
+ // othersControl.setValue([]);
+ // }
+ // else if(event.value.exist_status==false && event.value.type_of_activity_id==1){
+ // let othersControl = this.businessForm.controls['others_activity_details'];
+ // othersControl.push(this.createOthersActivity());
+ // }
// check activity type for make dosument sighted filed dynamically
this.businessForm.value.manufacturing_activity_details.length > 0 || this.businessForm.value.retail_trading_activity_details.length > 0 || this.businessForm.value.wholesale_trading_activity_details.length > 0 ? this.businessForm.addControl('export_import_cert', new FormControl(this.businessForm.value.export_import_cert, Validators.required)) : this.businessForm.removeControl('export_import_cert');
this.businessForm.value.manufacturing_activity_details.length > 0 ? this.businessForm.addControl('factory_cert', new FormControl(this.businessForm.value.factory_cert, Validators.required)) : this.businessForm.removeControl('factory_cert');
@@ -1208,7 +1209,7 @@ export class BusinessInfoComponent implements OnInit {
this._pd.getAllMasterDatas(master_name).subscribe(data => {
data.records.forEach(val => {
let entityTypeControl = this.businessForm.controls['select_business_activity_type'];
- if (val.isactive == 1) {
+ if (val.isactive == 1 && val.type_of_activity_id != 1) {
this.activityData.push(val);
}
})
@@ -1325,15 +1326,15 @@ export class BusinessInfoComponent implements OnInit {
}
// add more others details
- addMoreOthersActivity() {
- let othersControl = this.businessForm.controls['others_activity_details'];
- othersControl.push(this.createOthersActivity());
- }
+ // addMoreOthersActivity() {
+ // let othersControl = this.businessForm.controls['others_activity_details'];
+ // othersControl.push(this.createOthersActivity());
+ // }
- deleteOthersActivity(index) {
- let othersControl = this.businessForm.controls['others_activity_details'];
- othersControl.removeAt(index);
- }
+ // deleteOthersActivity(index) {
+ // let othersControl = this.businessForm.controls['others_activity_details'];
+ // othersControl.removeAt(index);
+ // }
// update partner group other form control
changePartnerGroup(value,key) {
@@ -1657,16 +1658,6 @@ export class BusinessInfoComponent implements OnInit {
return [];
}
}
-
- /** On Key Press Event For Amount */
- keyPress(event: any) {
- const pattern = /[0-9]/;
-
- let inputChar = String.fromCharCode(event.charCode);
- if (event.keyCode != 8 && !pattern.test(inputChar)) {
- event.preventDefault();
- }
- }
/** To Convert Amount into Words */
// inWords(e){
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/client-info/client-info.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/client-info/client-info.component.html
index a0140fec6..c2eb30ada 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/client-info/client-info.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/client-info/client-info.component.html
@@ -65,11 +65,11 @@
Enter Valid Mobile Number.
-
+
Enter Valid STD Code Number.
-
-
+
Enter Valid LandLine Number.
@@ -177,15 +177,15 @@
-
+
Enter Valid Mobile Number.
-
+
Enter Valid STD Code Number.
-
-
+
Enter Valid LandLine Number.
@@ -299,11 +299,11 @@
Enter Valid Mobile Number.
-
+
Enter Valid STD Code Number.
-
-
+
Enter Valid LandLine Number.
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/client-info/client-info.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/client-info/client-info.component.ts
index 94b2c1134..a453b926f 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/client-info/client-info.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/client-info/client-info.component.ts
@@ -676,16 +676,6 @@ export class ClientInfoComponent implements OnInit {
// this._addQuesFrom.reset();
}
- /** On Key Press Event For Mobile Number */
- keyPress(event: any) {
- const pattern = /[0-9]/;
-
- let inputChar = String.fromCharCode(event.charCode);
- if (event.keyCode != 8 && !pattern.test(inputChar)) {
- event.preventDefault();
- }
- }
-
selectedPersonDesignation(items,e,flag){
if(flag == 1){
e==1 ? items.controls['other_person_designation'].setValidators([Validators.required])
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/current-loan/current-loan.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/current-loan/current-loan.component.html
index 0b36181b6..4398ec76f 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/current-loan/current-loan.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/current-loan/current-loan.component.html
@@ -54,7 +54,7 @@
-
+
{{"₹"}} {{amtInwords[i]}} Only
@@ -96,8 +96,8 @@
-
-
+
+
{{"₹"}} {{emiAmtInwords[i]}} Only
+
+ Select
+ {{ cl.company_name }}
+
@@ -42,10 +46,23 @@
-
+
+
+ Select
+
+ {{person.applicant_name | titlecase}}
+
+
+
@@ -83,7 +100,7 @@
-
+
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/employment-info/employment-info.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/employment-info/employment-info.component.ts
index 8b799ce04..c7d4c40e7 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/employment-info/employment-info.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/employment-info/employment-info.component.ts
@@ -43,6 +43,11 @@ export class EmploymentInfoComponent implements OnInit {
private notifier: NotifierService;
public pd_cus_segment:string;
public frequency_data:any[];
+ public company_list:any[];
+ public person_met_list:any[];
+ public company_related_applicants_list:any[];
+ public company_relationship_list:any[];
+ public filtered_company_relationship_list:any[];
constructor(notifier: NotifierService, private fb: FormBuilder, private route: ActivatedRoute,
private router: Router,
@@ -78,11 +83,26 @@ export class EmploymentInfoComponent implements OnInit {
}
};
ngOnInit() {
+ console.log('clear');
+ console.clear();
this.pd_cus_segment=this.pd_all_details.pdmaster_details.customer_segment_abbr.toUpperCase();
this.initemploymentForm();
let params: any = {};
params.pd_id = this.pdid;
params.pd_form_id = this.form_id;
+ console.log('abcd');
+ let param: any = {};
+ param.pd_id = this.pdid;
+ param.pd_form_id = '18';
+ this._pd.retriveForm(param).subscribe(data => {
+ if(data.dataStatus) {
+ console.log(data.records);
+ this.company_list = data.records.companies.filter(com=>com.is_active == true );
+ this.person_met_list = data.records.individuals.filter(app=>app.is_person_met == true && app.is_active == true);
+ this.company_related_applicants_list = data.records.company_with_relationships;
+ }
+ });
+
this._pd.retriveForm(params).subscribe(value => {
if (value.status == 200) {
this.employmentForm.controls['employer_name'].setValue(value.records.employer_name);
@@ -120,7 +140,17 @@ export class EmploymentInfoComponent implements OnInit {
this.frequency_data = this.frequency_data.filter(freq=>freq.isactive == 1 );
}
});
+
+ this._pd.getAllMasterDatas('COMPANYRELATIONSHIPS').subscribe(
+ data => {
+ if (data.status == 200) {
+ this.company_relationship_list = data.records.filter(item => item.isactive == 1);
+ this.company_relationship_list = data.records.filter(item => item.name != 'Others');
+ this.company_relationship_list.push({'company_relationship_id':0,'name':'Not Applicable'});
+ }
+ });
}
+
public initemploymentForm(): void {
this.employmentForm = this.fb.group({
employer_name: ['', Validators.compose([Validators.required])],
@@ -141,10 +171,28 @@ export class EmploymentInfoComponent implements OnInit {
bonus_type: [''],
bonus_type_other: [''],
any_delays: ['', Validators.compose([Validators.required])],
+ // employment_details: this.fb.array([]),
employment_remarks: ['', Validators.compose([Validators.required])],
});
}
+ filtercompanyrelationship(companyid,applicantid){
+ var array = companyid.split("-");
+ // console.log(array[0]);
+ // console.log('companyid',companyid);
+ // console.log('applicantid',applicantid);
+ let data = this.company_related_applicants_list.filter(freq=>freq.relation_to_company == array[0] &&freq.applicant_name == applicantid);
+
+ if(data.length>0){
+
+ this.filtered_company_relationship_list = this.company_relationship_list.filter(freq=>freq.company_relationship_id == data[0].company_relationship );
+ this.employmentForm.controls['designation_person_met'].setValue(this.filtered_company_relationship_list[0]['name'] +' '+array[1]);
+ }
+ else{
+ this.employmentForm.controls['designation_person_met'].setValue('');
+ }
+ }
+
ConvertMonthintoYear(e){
let how_long_year = this.employmentForm.controls.how_long_year.value;
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/family-details/family-details.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/family-details/family-details.component.html
index e508f58cb..4dd6f72fb 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/family-details/family-details.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/family-details/family-details.component.html
@@ -74,7 +74,7 @@
-->
-
+
@@ -91,7 +91,7 @@
-
+
{{"₹"}} {{RentAmount[i]}} Only
@@ -146,7 +146,7 @@
-
+
{{"₹"}} {{IncomePerMonth[i]}} Only
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/family-details/family-details.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/family-details/family-details.component.ts
index fadbf148e..47a10bbf4 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/family-details/family-details.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/family-details/family-details.component.ts
@@ -568,16 +568,6 @@ removeFamilyMembers(inx,i) {
// });
// }
- /** On Key Press Event For Age */
- keyPress(event: any) {
- const pattern = /[0-9]/;
-
- let inputChar = String.fromCharCode(event.charCode);
- if (event.keyCode != 8 && !pattern.test(inputChar)) {
- event.preventDefault();
- }
- }
-
/** To Convert Amount into Words */
inWords(e,flag:number,i){
switch(flag){
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.html
index 080e1b084..0841a8fe4 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.html
@@ -36,13 +36,13 @@
Enter year from which financials provided
+ OnlyNumber type="text" [readonly]="isReadOnly">
Invalid year format
+ OnlyNumber type="text" [readonly]="isReadOnly">
@@ -57,7 +57,7 @@
+ OnlyNumber type="text" (keyup)="inWords($event,i,1)">
{{"₹"}}
{{FY_annualSalesInwords[i]}} Only
@@ -65,7 +65,7 @@
0 ? 'greenhighlight' : 'highlight'"
- (keypress)="keyPress($event)" readonly>
+ OnlyNumber type="text" readonly>
No difference in Sales in FY
@@ -99,7 +99,7 @@
-
+
Net Profit
@@ -110,13 +110,13 @@
+ OnlyNumber type="text" (keyup)="inWords($event,i,2)">
{{"₹"}}
{{FY_netProfitAmtInwords[i]}} Only
@@ -124,13 +124,13 @@
+ OnlyNumber type="text" (keyup)="inWords($event,i,3)">
{{"₹"}}
{{FY_netLossAmtInwords[i]}} Only
@@ -139,7 +139,7 @@
0 ? 'greenhighlight' : 'highlight'"
placeholder="Profit Variation from Previous Year in %"
- formControlName="financial_variation" (keypress)="keyPress($event)"
+ formControlName="financial_variation" OnlyNumber type="text"
readonly>
@@ -174,7 +174,7 @@
0 ? 'greenhighlight' : 'highlight'"
placeholder="Variation of Profit % over sales" formControlName="financial_profit_to_sale_variation"
- (keypress)="keyPress($event)" readonly>
+ OnlyNumber type="text" readonly>
No difference in Profit sales % in FY
@@ -277,17 +277,17 @@
@@ -302,14 +302,14 @@
{{"₹"}}
{{AV_netProfitAmtFrmInwords[i]}} Only
{{"₹"}}
{{AV_netProfitAmtToInwords[i]}} Only
@@ -320,7 +320,7 @@
{{"₹"}}
{{AV_netProfitAmtInwords[i]}} Only
@@ -330,16 +330,16 @@
+ OnlyNumber type="text" (change)="calculateMarginLoss( i, details);">
+ OnlyNumber type="text" (change)="calculateMarginLoss( i, details);">
@@ -352,14 +352,14 @@
{{"₹"}}
{{AV_netLossAmtFrmInwords[i]}} Only
{{"₹"}}
{{AV_netLossAmtToInwords[i]}} Only
@@ -370,7 +370,7 @@
+ formControlName="estimate_net_loss" OnlyNumber type="text" readonly>
{{"₹"}}
{{AV_netLossAmtInwords[i]}} Only
@@ -400,15 +400,15 @@
+ formControlName="receive_the_money_in_days" OnlyNumber type="text">
+ formControlName="pay_the_money_in_days" OnlyNumber type="text">
+ formControlName="unsold_stock_lies_in_days" OnlyNumber type="text">
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.ts
index 0d6adea81..90f55cd0e 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.ts
@@ -1693,17 +1693,6 @@ export class FinancialInfoComponent implements OnInit {
});
}
- /** On Key Press Event For Input Field */
- keyPress(event: any) {
- //const pattern = /[0-9\-\.\ ]/;
- const pattern = /[0-9\.]/;
-
- let inputChar = String.fromCharCode(event.charCode);
- if (event.keyCode != 8 && !pattern.test(inputChar)) {
- event.preventDefault();
- }
- }
-
/** To Convert Amount into Words */
inWords(e,i,flag:number){
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/general-info/general-info.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/general-info/general-info.component.html
index cba606396..d4f878cd9 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/general-info/general-info.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/general-info/general-info.component.html
@@ -49,7 +49,7 @@
Age
+ OnlyNumber type="text" autocomplete="off">
@@ -126,12 +126,12 @@
Number of Years For Which The Business Has Been Running
+ autocomplete="off" OnlyNumber type="text">
Please Enter Correct Year
+ autocomplete="off" OnlyNumber type="text" (change)="ConvertMonthintoYearforBusiness($event.target.value,c)">
{{"₹"}}
{{loanAmtInWords}} Only
Loan Tenure applied for?
-
@@ -59,7 +59,7 @@
{{"₹"}}
{{balTxrfAmtInWords}} Only
@@ -80,7 +80,7 @@
-
{{"₹"}}
@@ -106,7 +106,7 @@
{{"₹"}}
{{ownContributionInWords}} Only
@@ -134,7 +134,7 @@
+ OnlyNumber type="text" (keyup)="inWords($event,6)" autocomplete="off">
{{"₹"}}
{{emiAmtInWords}} Only
@@ -204,7 +204,7 @@
{{"₹"}}
{{emvAmtInWords}} Only
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.ts
index eb7badb24..57763bc9c 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.ts
@@ -524,16 +524,6 @@ export class LoanDetailsComponent implements OnInit {
}
- /** On Key Press Event For Amount */
- keyPress(event: any) {
- const pattern = /[0-9]/;
-
- let inputChar = String.fromCharCode(event.charCode);
- if (event.keyCode != 8 && !pattern.test(inputChar)) {
- event.preventDefault();
- }
- }
-
/** To Convert Amount into Words */
inWords(e, flag: number) {
switch (flag) {
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/neighbour-hood/neighbour-hood.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/neighbour-hood/neighbour-hood.component.html
index 4f23b10b7..ace8290ba 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/neighbour-hood/neighbour-hood.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/neighbour-hood/neighbour-hood.component.html
@@ -43,17 +43,17 @@
-
+
-
+
-
+
@@ -134,15 +134,15 @@
-
+
Enter Valid Mobile Number.
-
+
Enter Valid STD Code.
-
-
+
Enter Valid Landline Number.
@@ -162,13 +162,13 @@
Period of Relationship
-
+
-
+
-
+
{{"₹"}} {{amtInwords[r]}} Only
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/neighbour-hood/neighbour-hood.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/neighbour-hood/neighbour-hood.component.ts
index 2a8551fcb..cd1edeaae 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/neighbour-hood/neighbour-hood.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/neighbour-hood/neighbour-hood.component.ts
@@ -222,16 +222,6 @@ export class NeighbourHoodComponent implements OnInit {
remove_control.removeAt(renoveIndex)
}
- /** On Key Press Event For Mobile Number */
- keyPress(event: any) {
- const pattern = /[0-9]/;
-
- let inputChar = String.fromCharCode(event.charCode);
- if (event.keyCode != 8 && !pattern.test(inputChar)) {
- event.preventDefault();
- }
- }
-
//save heighbourhood forms
saveNeighbourhood(formData:any){
let resultMessage:string='';
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/other-income/other-income.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/other-income/other-income.component.html
index aaef973c2..0e39034b8 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/other-income/other-income.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/other-income/other-income.component.html
@@ -59,7 +59,7 @@
-
+ Rental Info Details
@@ -78,7 +78,7 @@
-
+
{{"₹"}} {{amtInwords[i]}} Only
@@ -333,7 +333,7 @@
-
+
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/other-income/other-income.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/other-income/other-income.component.ts
index 193103930..46af33780 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/other-income/other-income.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/other-income/other-income.component.ts
@@ -237,22 +237,13 @@ public viewerOptions: any = {
});
}
- /** On Key Press Event For Amount */
- keyPress(event: any) {
- const pattern = /[0-9]/;
-
- let inputChar = String.fromCharCode(event.charCode);
- if (event.keyCode != 8 && !pattern.test(inputChar)) {
- event.preventDefault();
- }
- }
/** Amount InWords */
inWords(e,i){
this.amtInwords[i] = this._pd.convertNumberToWords(e.target.value);
}
Toview(){
- alert('Rental Info ');
+ // alert('Rental Info ');
// const dialogRef = this.dialog.open(RentalInfoComponent, {
// data: {}
// });
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/personal-info/personal-info.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/personal-info/personal-info.component.html
index a3459ae4f..e9e4c39a5 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/personal-info/personal-info.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/personal-info/personal-info.component.html
@@ -39,7 +39,7 @@
-
+
Enter Valid Age.
@@ -69,7 +69,7 @@
-
+
Enter Valid Vintage.
@@ -155,7 +155,7 @@
-
+
Enter Valid Vintage.
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/personal-info/personal-info.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/personal-info/personal-info.component.ts
index c06d1da6a..e5a386855 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/personal-info/personal-info.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/personal-info/personal-info.component.ts
@@ -193,17 +193,6 @@ public viewerOptions: any = {
}, error => this.errorMessage =
error);
}
-
-/** On Key Press Event For Mobile Number */
-keyPress(event: any) {
- const pattern = /[0-9]/;
-
- let inputChar = String.fromCharCode(event.charCode);
- if (event.keyCode != 8 && !pattern.test(inputChar)) {
- event.preventDefault();
- }
-}
-
// init form details
public initFormDetails(): void {
this._personalForm = this._fb.group({
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/stock/stock.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/stock/stock.component.html
index b6e4a311c..f1ecb659f 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/stock/stock.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/stock/stock.component.html
@@ -9,7 +9,6 @@