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 1d8eb1a87..2c9f3731d 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 @@ -125,7 +125,7 @@ export class LoanDetailsComponent implements OnInit { this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr; this.lenderShortName = this.pd_all_details.pdmaster_details.lender_short_name; - if (this.productAbbr == 'PL' || this.productAbbr == 'BL' || this.productAbbr == 'LAP') { + if (this.productAbbr == 'PL' || this.productAbbr == 'BL' || this.productAbbr == 'LAP' || this.productAbbr == 'LFMP') { this.isContribution = true; } if(this.productAbbr == 'HL' || this.productAbbr == 'NRPL' || this.productAbbr == 'LL'){ @@ -848,15 +848,15 @@ export class LoanDetailsComponent implements OnInit { } } } - if(this.lenderShortName == 'CLIX' || this.lenderShortName == 'MWISE'){ - this.loanDetailsForm.controls['own_contribution'].setValue(''); - this.loanDetailsForm.controls['own_contribution'].clearValidators(); - this.loanDetailsForm.controls['own_contribution'].updateValueAndValidity(); - this.loanDetailsForm.controls['source'].setValue(''); - this.loanDetailsForm.controls['source'].clearValidators(); - this.loanDetailsForm.controls['source'].updateValueAndValidity(); - console.log("con",this.isContribution); - } + // if(this.lenderShortName == 'CLIX' || this.lenderShortName == 'MWISE'){ + // this.loanDetailsForm.controls['own_contribution'].setValue(''); + // this.loanDetailsForm.controls['own_contribution'].clearValidators(); + // this.loanDetailsForm.controls['own_contribution'].updateValueAndValidity(); + // this.loanDetailsForm.controls['source'].setValue(''); + // this.loanDetailsForm.controls['source'].clearValidators(); + // this.loanDetailsForm.controls['source'].updateValueAndValidity(); + // console.log("con",this.isContribution); + // } if (!this.loanDetailsForm.valid) { @@ -902,7 +902,7 @@ export class LoanDetailsComponent implements OnInit { records.balance_transfer_amount = this.loanDetailsForm.controls['balance_transfer_amount'].value; } else if (this.loanDetailsForm.controls['is_transfer'].value == 'no') { - if (this.isContribution || this.lenderShortName == 'CLIX' || this.lenderShortName == 'MWISE') { + if (this.isContribution) { records.own_contribution = ''; records.source_group = ''; records.other_source = '';