From 3f6485f6529455163c2626b096594e6054e86aba Mon Sep 17 00:00:00 2001
From: Nitesh Yadav
Date: Mon, 28 Sep 2026 13:03:47 +0530
Subject: [PATCH] feat(fd): restrict Payment to Matured accounts, unify its
behavior with Dashboard Renew
Payment showed for both Active and Matured FDs, even though an Active FD
already has Premature Close for closing early. Now Matured-only.
That also meant a genuinely matured, past-grace FD closed via the account's
own Payment button (rather than the FD Dashboard's Renew action) silently
skipped crediting its gap-period interest -- the date-locking and
gap-interest preview/crediting were gated behind dashboard-only data, not
the account's actual matured state. Both now key off the same
renewal-preview response regardless of entry point, so Payment and Renew
are functionally identical once an FD has matured, as they should be since
they're already the same dialog component.
Co-Authored-By: Claude Sonnet 5
---
.../payment-dialog.component.html | 12 ++--
.../payment-dialog.component.ts | 67 +++++++++++--------
.../fixed-deposits-buttons.config.ts | 11 +++
3 files changed, 55 insertions(+), 35 deletions(-)
diff --git a/src/app/deposits/fixed-deposits/fixed-deposit-account-view/custom-dialogs/payment-dialog/payment-dialog.component.html b/src/app/deposits/fixed-deposits/fixed-deposit-account-view/custom-dialogs/payment-dialog/payment-dialog.component.html
index 646c9f4f9..94cd1ea54 100644
--- a/src/app/deposits/fixed-deposits/fixed-deposit-account-view/custom-dialogs/payment-dialog/payment-dialog.component.html
+++ b/src/app/deposits/fixed-deposits/fixed-deposit-account-view/custom-dialogs/payment-dialog/payment-dialog.component.html
@@ -18,7 +18,7 @@
{{
isDashboardRenewalMode
? 'Renew ' + (dashboardRenewalRow?.accountNo ?? 'this matured FD') + '.'
- : "Process this Fixed Deposit now -- works whether it's Active or Matured."
+ : 'Process this matured Fixed Deposit now.'
}}
@@ -40,10 +40,10 @@
} @else {