Files
cbsnexora/src/app/deposits/fixed-deposits/fixed-deposits-account-actions/fixed-deposits-account-actions.component.html
T
niteshandClaude Sonnet 5 8d0d8822f0 feat(fd): convert Premature Close to a dialog, with its full calculation shown
Was a full-page form at a dedicated route, reached by navigating away from
the account -- now a popup dialog in the same visual language as the
Payment/Renew dialog, just in this Danger Zone action's own red accent.
Also fixes a real gap in the form it replaces: the premature amount/action
options never loaded until a maker happened to touch the date picker, since
the calculation was only ever triggered on value change, never on open.

Added a breakdown panel showing exactly how the shown Maturity Amount was
reached -- Deposit Amount, Contracted Interest Rate, Pre-Closure Penalty
(when applicable), and the resulting Interest Earned -- using data the
account-view page already had, since the calculation endpoint itself only
ever returns the final number.

Removed the now-dead full-page component/route target it replaces.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-28 13:03:01 +05:30

33 lines
1.2 KiB
HTML

<!--
Copyright since 2025 Mifos Initiative
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
-->
@if (actions['Approve']) {
<mifosx-approve-fixed-deposits-account></mifosx-approve-fixed-deposits-account>
}
@if (actions['Reject']) {
<mifosx-reject-fixed-deposits-account></mifosx-reject-fixed-deposits-account>
}
@if (actions['Activate']) {
<mifosx-activate-fixed-deposits-account></mifosx-activate-fixed-deposits-account>
}
@if (actions['Undo Approval'] || actions['Undo Activation']) {
<mifosx-undo-approval-fixed-deposits-account></mifosx-undo-approval-fixed-deposits-account>
}
@if (actions['Withdrawn by Client']) {
<mifosx-withdraw-by-client-fixed-deposits-account></mifosx-withdraw-by-client-fixed-deposits-account>
}
@if (actions['Add Charge']) {
<mifosx-add-charge-fixed-deposits-account></mifosx-add-charge-fixed-deposits-account>
}
@if (actions['Close']) {
<mifosx-close-fixed-deposits-account></mifosx-close-fixed-deposits-account>
}
@if (actions['Withdrawal'] || actions['Deposit']) {
<mifosx-fixed-deposits-cash-transaction></mifosx-fixed-deposits-cash-transaction>
}