{{ isDashboardRenewalMode ? 'Renew Fixed Deposit' : ('labels.heading.Payment' | translate) }}

{{ isDashboardRenewalMode ? 'Renew ' + (dashboardRenewalRow?.accountNo ?? 'this matured FD') + '.' : 'Process this matured Fixed Deposit now.' }}

@if (loadingTemplate) {
} @else if (loadFailed) { } @else {
@if (isMaturedRenewal) {

{{ maturedRenewalTimingText }}

@if (renewalPreviewLoading) {

Calculating gap-period interest...

} @else if (renewalPreview && !renewalPreview.withinGrace) { @if (!renewalPreview.linkedAccountId) { } @else {
FD Maturity Balance (renews as-is below) {{ renewalPreview.currentBalance | formatNumber }}
Gap Days ({{ renewalPreview.maturityDate }} → today) {{ renewalPreview.gapDays }}
Deposit Account Link {{ renewalPreview.linkedAccountNo }}
Its Interest Rate {{ renewalPreview.linkedAccountRate }}%
Gap-Period Interest → paid to {{ renewalPreview.linkedAccountNo }} + {{ renewalPreview.gapInterestAmount | formatNumber }}

This gap interest was earned at the linked account's own rate, not the FD's -- it is credited straight to account {{ renewalPreview.linkedAccountNo }} (the FD's Deposit Account Link), separately from whatever you choose below. The FD itself renews from its own maturity balance, unchanged.

} } } @if (reinvestCap !== null && reinvestCap !== undefined) {
{{ isMaturedRenewal || !remainderIsApproximate ? ('labels.inputs.Maturity Amount' | translate) : 'Amount available on the selected date' }} {{ reinvestCap | formatNumber }}
} @if (!isMaturedRenewal) { {{ 'labels.inputs.Closed On Date' | translate }} @if (paymentForm.controls.closedOnDate.hasError('required')) { {{ 'labels.inputs.Closed On Date' | translate }} {{ 'labels.commons.is' | translate }} {{ 'labels.commons.required' | translate }} } }
@for (closureOption of onAccountClosureOptions; track closureOption) { }
@if ( paymentForm.controls.onAccountClosureId.hasError('required') && paymentForm.controls.onAccountClosureId.touched ) {
{{ 'labels.inputs.Account action' | translate }} {{ 'labels.commons.is' | translate }} {{ 'labels.commons.required' | translate }}
} @if (isPartialReinvest) {
{{ 'labels.inputs.Reinvest Amount' | translate }} @if (paymentForm.controls.reinvestAmount?.hasError('required')) { {{ 'labels.inputs.Reinvest Amount' | translate }} {{ 'labels.commons.is' | translate }} {{ 'labels.commons.required' | translate }} } @if (paymentForm.controls.reinvestAmount?.hasError('min')) { {{ 'labels.inputs.Reinvest Amount must be greater than zero' | translate }} } @if (paymentForm.controls.reinvestAmount?.hasError('belowMaturityAmount')) { {{ 'labels.inputs.Reinvest Amount must be less than the maturity amount' | translate }} }
{{ 'labels.inputs.Remainder to Transfer' | translate }} {{ remainderAmount !== null ? (remainderAmount | formatNumber) : '—' }}
@if (remainderIsApproximate) {

The selected date is before maturity. Interest up to that date is posted first, so the amount actually transferred will be at least the figure shown.

} } @if (noDestinationAccounts) { } @if (paymentForm.contains('toSavingsAccountId')) { {{ 'labels.inputs.Transfer to Savings' | translate }} @for (account of savingsAccountsData; track account) { {{ account.accountNo }} } @if (paymentForm.controls.toSavingsAccountId?.hasError('required')) { {{ 'labels.inputs.Transfer to savings account' | translate }} {{ 'labels.commons.is' | translate }} {{ 'labels.commons.required' | translate }} } } @if (paymentForm.contains('transferDescription')) { {{ 'labels.inputs.Transfer Description' | translate }} } @if (!isMaturedRenewal) { {{ 'labels.inputs.Note' | translate }} } @if (submitError) { }
}