WEB-111 GSIM-linked GLIM Application Does Not Show Account-Transfer Charges (#2660)
This commit is contained in:
+3
-2
@@ -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'
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user