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) {
|
if (this.loansAccountProductTemplate) {
|
||||||
this.loanPurposeOptions = this.loansAccountProductTemplate.loanPurposeOptions;
|
this.loanPurposeOptions = this.loansAccountProductTemplate.loanPurposeOptions;
|
||||||
this.chargeData = this.loansAccountProductTemplate.chargeOptions;
|
this.chargeData = this.loansAccountProductTemplate.chargeOptions;
|
||||||
// filter chargeData to have charges that have chargePaymentMode not 'Account Transfer' if loansSavingsAccountLinked is false
|
// filter chargeData to have charges that have chargePaymentMode not 'Account Transfer' if no savings account is linked
|
||||||
if (!this.loansSavingsAccountLinked) {
|
const hasLinkedGSIMAccount = this.loansAccountTemplate?.gsimData?.groupId != null;
|
||||||
|
if (!this.loansSavingsAccountLinked && !hasLinkedGSIMAccount) {
|
||||||
this.chargeData = this.chargeData.filter(
|
this.chargeData = this.chargeData.filter(
|
||||||
(charge: any) => charge.chargePaymentMode?.value != 'Account transfer'
|
(charge: any) => charge.chargePaymentMode?.value != 'Account transfer'
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user