WEB-111 GSIM-linked GLIM Application Does Not Show Account-Transfer Charges (#2660)

This commit is contained in:
Soni Jay
2025-09-20 19:45:18 -06:00
committed by GitHub
parent 79751111e9
commit 415eb733fd
@@ -152,8 +152,9 @@ export class LoansAccountChargesStepComponent implements OnInit, OnChanges {
if (this.loansAccountProductTemplate) {
this.loanPurposeOptions = this.loansAccountProductTemplate.loanPurposeOptions;
this.chargeData = this.loansAccountProductTemplate.chargeOptions;
// filter chargeData to have charges that have chargePaymentMode not 'Account Transfer' if loansSavingsAccountLinked is false
if (!this.loansSavingsAccountLinked) {
// filter chargeData to have charges that have chargePaymentMode not 'Account Transfer' if no savings account is linked
const hasLinkedGSIMAccount = this.loansAccountTemplate?.gsimData?.groupId != null;
if (!this.loansSavingsAccountLinked && !hasLinkedGSIMAccount) {
this.chargeData = this.chargeData.filter(
(charge: any) => charge.chargePaymentMode?.value != 'Account transfer'
);