clix changes : ps

This commit is contained in:
venbatechnologies@gmail.com 2019-06-15 19:41:40 +05:30
parent 5003877721
commit b690f05847
5 changed files with 7 additions and 5 deletions

View File

@ -116,6 +116,7 @@ export class AddPdComponent implements OnInit, OnDestroy {
console.log('lender',lender); console.log('lender',lender);
this.lenderBranchList = lender['branches']; this.lenderBranchList = lender['branches'];
this.lenderShortName = lender['short_name']; this.lenderShortName = lender['short_name'];
console.log(this.lenderShortName);
this._PDtriggerForm.controls.pd_branch_id.setValue(null); this._PDtriggerForm.controls.pd_branch_id.setValue(null);
if(this.lenderShortName == 'CLIX'){ if(this.lenderShortName == 'CLIX'){

View File

@ -1788,7 +1788,7 @@
</div> </div>
<div fxLayout="row" *ngIf="lender_short_name == 'CLIX' || product_abbr == 'LAEP'" > <div fxLayout="row" *ngIf="product_abbr == 'LAEP'" >
<mat-form-field> <mat-form-field>
<mat-select placeholder="Fire NOC" formControlName="fire_noc" (selectionChange)="radioChange($event,8)" required> <mat-select placeholder="Fire NOC" formControlName="fire_noc" (selectionChange)="radioChange($event,8)" required>
<mat-option value="yes">Yes</mat-option> <mat-option value="yes">Yes</mat-option>

View File

@ -626,7 +626,7 @@ export class BusinessInfoComponent implements OnInit {
// load exist company list from master // load exist company list from master
// this.existCompanyList = this.pd_all_details.pdapplicants_detials.filter(item=>item.company_name!=null).map(mapItem=>mapItem.company_name); // this.existCompanyList = this.pd_all_details.pdapplicants_detials.filter(item=>item.company_name!=null).map(mapItem=>mapItem.company_name);
this.lender_short_name == 'CLIX' || this.product_abbr == 'LAEP' ? this.businessForm.addControl('fire_noc', new FormControl('', Validators.required)) : this.businessForm.removeControl('fire_noc'); this.product_abbr == 'LAEP' ? this.businessForm.addControl('fire_noc', new FormControl('', Validators.required)) : this.businessForm.removeControl('fire_noc');
// change relation with businees update dat sorce table // change relation with businees update dat sorce table
this.businessForm.controls['persons_with_relationships'].valueChanges.subscribe(val => { this.businessForm.controls['persons_with_relationships'].valueChanges.subscribe(val => {
@ -788,7 +788,7 @@ export class BusinessInfoComponent implements OnInit {
this.businessForm.value.service_provider_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('applicant_use_mobile_wallets', new FormControl(this.businessForm.value.applicant_use_mobile_wallets)) : this.businessForm.removeControl('applicant_use_mobile_wallets'); this.businessForm.value.service_provider_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('applicant_use_mobile_wallets', new FormControl(this.businessForm.value.applicant_use_mobile_wallets)) : this.businessForm.removeControl('applicant_use_mobile_wallets');
this.businessForm.value.service_provider_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('applicant_use_pos_machines', new FormControl(this.businessForm.value.applicant_use_pos_machines)) : this.businessForm.removeControl('applicant_use_pos_machines'); this.businessForm.value.service_provider_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('applicant_use_pos_machines', new FormControl(this.businessForm.value.applicant_use_pos_machines)) : this.businessForm.removeControl('applicant_use_pos_machines');
if (this.businessForm.value.service_provider_activity_details.length > 0 || this.businessForm.value.retail_trading_activity_details.length > 0 || this.businessForm.value.wholesale_trading_activity_details.length > 0) { if (this.businessForm.value.service_provider_activity_details.length > 0 || this.businessForm.value.retail_trading_activity_details.length > 0 || this.businessForm.value.wholesale_trading_activity_details.length > 0) {
if(this.businessForm.controls['applicant_use_pos_machines'] && (this.lender_short_name == 'CLIX' || this.product_abbr == 'LAEP' )){ if(this.businessForm.controls['applicant_use_pos_machines'] && this.product_abbr == 'LAEP'){
this.businessForm.controls['applicant_use_pos_machines'].setValue('yes'); this.businessForm.controls['applicant_use_pos_machines'].setValue('yes');
} }
this.changePOSMachinesAvailablity(this.businessForm.value.applicant_use_pos_machines, 2); this.changePOSMachinesAvailablity(this.businessForm.value.applicant_use_pos_machines, 2);

View File

@ -232,7 +232,8 @@
<mat-card> <mat-card>
<mat-card-header> <mat-card-header>
<mat-card-title> <mat-card-title>
<p> Financial as per Customer</p> <!-- <p> Financial as per Customer</p> -->
<p>Latest years financials as per Applicant met</p>
</mat-card-title> </mat-card-title>
</mat-card-header> </mat-card-header>
<mat-form-field style="width:35%"> <mat-form-field style="width:35%">

View File

@ -171,7 +171,7 @@ export class FuturePlansAndBusinessEnvironmentComponent implements OnInit {
return; return;
} else { } else {
var answerFormValues = this._futurePlansForm.value; var answerFormValues = this._futurePlansForm.value;
answerFormValues.company_id = this.company_id;
//To Remove The "Null" With Key also //To Remove The "Null" With Key also
// Object.keys(answerFormValues).forEach((key) => (answerFormValues[key] == null) && delete answerFormValues[key]); // Object.keys(answerFormValues).forEach((key) => (answerFormValues[key] == null) && delete answerFormValues[key]);