From ecd3b84627a668ee737237527d6700ac86ad492a Mon Sep 17 00:00:00 2001 From: budaidev <53112929+budaidev@users.noreply.github.com> Date: Tue, 9 Dec 2025 16:30:44 +0100 Subject: [PATCH] WEB-455: fix alignments (#2879) LGTM --- .../loans-account-terms-step.component.ts | 7 +++-- .../loan-product-summary.component.html | 28 +++++++++++-------- 2 files changed, 21 insertions(+), 14 deletions(-) diff --git a/src/app/loans/loans-account-stepper/loans-account-terms-step/loans-account-terms-step.component.ts b/src/app/loans/loans-account-stepper/loans-account-terms-step/loans-account-terms-step.component.ts index cf5ffab06..257393a2c 100644 --- a/src/app/loans/loans-account-stepper/loans-account-terms-step/loans-account-terms-step.component.ts +++ b/src/app/loans/loans-account-stepper/loans-account-terms-step/loans-account-terms-step.component.ts @@ -567,6 +567,7 @@ export class LoansAccountTermsStepComponent implements OnInit, OnChanges { required: true, order: 2 }) + ]; const data = { title: 'Add Disbursement Details', @@ -708,10 +709,10 @@ export class LoansAccountTermsStepComponent implements OnInit, OnChanges { } /** - * Check if full term tranche option should be editable at loan level. - * Only available if the loan product has it enabled and is PROGRESSIVE schedule type. + * Check if full term tranche option should be visible at loan level. + * Available when PROGRESSIVE schedule type and multi-disbursement is enabled. */ isFullTermTrancheEditable(): boolean { - return this.isProgressive && this.loanProduct?.allowFullTermForTranche === true; + return this.isProgressive && this.multiDisburseLoan === true; } } diff --git a/src/app/products/loan-products/common/loan-product-summary/loan-product-summary.component.html b/src/app/products/loan-products/common/loan-product-summary/loan-product-summary.component.html index b951cacd4..0bf37ac29 100644 --- a/src/app/products/loan-products/common/loan-product-summary/loan-product-summary.component.html +++ b/src/app/products/loan-products/common/loan-product-summary/loan-product-summary.component.html @@ -718,20 +718,26 @@ {{ loanProduct.multiDisburseLoan | yesNo }} @if (loanProduct.multiDisburseLoan) { -
+
{{ 'labels.inputs.Maximum Tranche count' | translate }}: {{ loanProduct.maxTrancheCount }} - @if (loanProduct.outstandingLoanBalance) { -
- {{ 'labels.inputs.Maximum allowed outstanding balance' | translate }}: - {{ loanProduct.outstandingLoanBalance }} -
- } -
- {{ 'labels.inputs.Disallow Expected Disbursements' | translate }}: - {{ loanProduct.disallowExpectedDisbursements | yesNo }} -
+ @if (loanProduct.outstandingLoanBalance) { +
+ {{ 'labels.inputs.Maximum allowed outstanding balance' | translate }}: + {{ loanProduct.outstandingLoanBalance }} +
+ } +
+ {{ 'labels.inputs.Disallow Expected Disbursements' | translate }}: + {{ loanProduct.disallowExpectedDisbursements | yesNo }} +
+ @if (loanProduct.loanScheduleType && loanProduct.loanScheduleType.code === 'PROGRESSIVE') { +
+ {{ 'labels.inputs.Allow full term for each tranche' | translate }}: + {{ loanProduct.allowFullTermForTranche | yesNo }} +
+ } }

{{ 'labels.heading.Event Settings' | translate }}