@if (renewalHistory.length) {
FD Number {{ fdNumber }}
Terms So Far {{ renewalHistory.length }}
Original Principal {{ originalPrincipal | currency: currency.code : 'symbol-narrow' }}
Current Value {{ currentValue | currency: currency.code : 'symbol-narrow' }}
Lifetime Interest {{ lifetimeInterestEarned | currency: currency.code : 'symbol-narrow' }}
@for ( term of renewalHistory; track term.historyid ?? term.accountid + '-' + term.renewalcycleno; let last = $last ) {
@if (term.renewalstatus === 'ACTIVE') { } @if (!last) { }

{{ term.renewalcycleno === 0 ? 'Original Term' : 'Renewal ' + term.renewalcycleno }}

{{ term.renewalstatus === 'ACTIVE' ? 'Active' : 'Matured' }} @if (renewalTypeLabel(term)) { {{ renewalTypeLabel(term) }} }
{{ term.activatedondate | dateFormat }} {{ term.maturitydate | dateFormat }} @if (tenureLabel(term)) { ({{ tenureLabel(term) }}) }
Principal {{ term.depositamount | currency: currency.code : 'symbol-narrow' }}
Rate {{ term.interestrate }}%
{{ term.renewalstatus === 'ACTIVE' ? 'Interest So Far' : 'Interest Earned' }} {{ term.interestearned === null || term.interestearned === undefined ? '—' : (term.interestearned | currency: currency.code : 'symbol-narrow') }}
{{ term.maturedamount === null || term.maturedamount === undefined ? 'Projected Maturity' : 'Matured At' }} {{ maturityFor(term) | currency: currency.code : 'symbol-narrow' }}
Ledger account: @if (term.accountid === fixedDepositsAccountData.id) { {{ term.accountno }} } @else { {{ term.accountno }} }
}
} @else {

{{ 'labels.messages.No Renewal History Available' | translate }}

}