loan details issue fix
This commit is contained in:
parent
cd9a92b1c9
commit
2d0c79e91d
@ -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 = '';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user