@if (isLoading) {
} @if (!isLoading) {
@if (!savingsAccountData.status.rejected && !savingsAccountData.status.submittedAndPendingApproval) {

{{ 'labels.heading.Savings Details' | translate }}

@if (savingsAccountData.externalId) { } @if (!savingsAccountData.externalId) { }
{{ 'labels.inputs.External Id' | translate }} {{ 'labels.inputs.Not Provided' | translate }}
{{ 'labels.inputs.Activated On' | translate }} {{ savingsAccountData.timeline.activatedOnDate ? (savingsAccountData.timeline.activatedOnDate | dateFormat) : 'Not Activated' }}
{{ 'labels.inputs.Field Officer' | translate }} {{ savingsAccountData.fieldOfficerName ? savingsAccountData.fieldOfficerName : 'Unassigned' }}
{{ 'labels.inputs.Currency' | translate }} {{ savingsAccountData.currency.name }} [{{ savingsAccountData.currency.code }}]
{{ 'labels.inputs.Nominal Interest Rate' | translate }} @if (savingsAccountData.nominalAnnualInterestRate) { {{ savingsAccountData.nominalAnnualInterestRate | formatNumber }} % } @if (!savingsAccountData.nominalAnnualInterestRate) { 0 % }
} @else {

{{ 'labels.heading.Savings Details' | translate }}

{{ 'labels.inputs.Field Officer' | translate }} {{ savingsAccountData.fieldOfficerName ? savingsAccountData.fieldOfficerName : 'Unassigned' }}
{{ 'labels.inputs.Balance' | translate }} {{ savingsAccountData.summary.accountBalance | currency: currency.code : 'symbol-narrow' : '1.2-2' }}
} @if (!savingsAccountData.status.rejected && !savingsAccountData.status.submittedAndPendingApproval) {

{{ 'labels.heading.Performance History' | translate }}

@if (savingsAccountData.summary.totalDeposits) { } @if (savingsAccountData.summary.totalInterestEarned >= 0) { }
{{ 'labels.inputs.Total Deposits' | translate }} {{ savingsAccountData.summary.totalDeposits | currency: currency.code : 'symbol-narrow' : '1.2-2' }}
{{ 'labels.inputs.Total Interest Earned' | translate }} {{ savingsAccountData.summary.totalInterestEarned | currency: currency.code : 'symbol-narrow' : '1.2-2' }}
}
@if (isActive) {

{{ 'labels.heading.Account Summary' | translate }}

@if (savingsAccountData.summary.totalWithdrawals) { } @if (savingsAccountData.summary.totalWithdrawalFees) { } @if (savingsAccountData.summary.totalAnnualFees) { } @if (savingsAccountData.summary.totalInterestEarned >= 0) { } @if (savingsAccountData.summary.totalInterestPosted) { } @if (savingsAccountData.summary.interestNotPosted >= 0) { } @if (savingsAccountData.summary.totalOverdraftInterestDerived) { } @if (savingsAccountData.summary.interestNotPosted < 0) { } @if (savingsAccountData.nominalAnnualInterestRate) { } @if (savingsAccountData.withdrawalFee) { } @if (savingsAccountData.lastActiveTransactionDate) { } @if (!(savingsAccountData.subStatus.id === 0)) { } @if (savingsAccountData.daysToInactive) { } @if (savingsAccountData.daysToDormancy) { } @if (savingsAccountData.daysToEscheat) { } @if (savingsAccountData.annualFee) { } @if (savingsAccountData.allowOverdraft) { } @if (savingsAccountData.allowOverdraft) { } @if (savingsAccountData.minBalanceForInterestCalculation) { } @if (savingsAccountData.minRequiredBalance) { } @if (savingsAccountData.enforceMinRequiredBalance) { } @if (savingsAccountData.summary.lastInterestCalculationDate) { } @if (savingsAccountData.onHoldFunds) { } @if (savingsAccountData.withHoldTax) { }
{{ 'labels.inputs.Total Withdrawls' | translate }} {{ savingsAccountData.summary.totalWithdrawals | currency: currency.code : 'symbol-narrow' : '1.2-2' }}
{{ 'labels.inputs.Withdrawals Fees' | translate }} {{ savingsAccountData.summary.totalWithdrawalFees | currency: currency.code : 'symbol-narrow' : '1.2-2' }}
{{ 'labels.inputs.Annual Fees' | translate }} {{ savingsAccountData.summary.totalAnnualFees | currency: currency.code : 'symbol-narrow' : '1.2-2' }}
{{ 'labels.inputs.Interest Earned' | translate }} {{ savingsAccountData.summary.totalInterestEarned | currency: currency.code : 'symbol-narrow' : '1.2-2' }}
{{ 'labels.inputs.Interest Posted' | translate }} {{ savingsAccountData.summary.totalInterestPosted | currency: currency.code : 'symbol-narrow' : '1.2-2' }}
{{ 'labels.inputs.Interest Earned Not Posted' | translate }} {{ savingsAccountData.summary.interestNotPosted | currency: currency.code : 'symbol-narrow' : '1.2-2' }}
{{ 'labels.inputs.Interest On Overdraft' | translate }} {{ savingsAccountData.summary.totalOverdraftInterestDerived | currency: currency.code : 'symbol-narrow' : '1.2-2' }}
{{ 'labels.inputs.Overdraft Interest Not Posted' | translate }} {{ savingsAccountData.summary.interestNotPosted | currency: currency.code : 'symbol-narrow' : '1.2-2' }}
{{ 'labels.inputs.Nominal Interest Rate' | translate }} {{ savingsAccountData.nominalAnnualInterestRate | formatNumber }} %
{{ 'labels.inputs.Interest Compounding Period' | translate }} {{ savingsAccountData.interestCompoundingPeriodType.value | translateKey: 'catalogs' }}
{{ 'labels.inputs.Interest Posting Period' | translate }} {{ savingsAccountData.interestPostingPeriodType.value | translateKey: 'catalogs' }}
{{ 'labels.inputs.Interest Calculated Using' | translate }} {{ savingsAccountData.interestCalculationType.value | translateKey: 'catalogs' }}
{{ 'labels.inputs.Days in Year' | translate }} {{ savingsAccountData.interestCalculationDaysInYearType.value | translateKey: 'catalogs' }}
{{ 'labels.inputs.Withdrawal Fee' | translate }} {{ savingsAccountData.withdrawalFee.amount | currency: currency.code : 'symbol-narrow' : '1.2-2' }}
{{ 'labels.inputs.Last Active Transaction Date' | translate }} {{ savingsAccountData.lastActiveTransactionDate | dateFormat }}
{{ 'labels.inputs.Substatus' | translate }} {{ savingsAccountData.subStatus.value }}
{{ 'labels.inputs.Days to Inactive' | translate }} {{ savingsAccountData.daysToInactive }}
{{ 'labels.inputs.Days to Dormancy' | translate }} {{ savingsAccountData.daysToDormancy }}
{{ 'labels.inputs.Days to Escheat' | translate }} {{ savingsAccountData.daysToEscheat }}
{{ 'labels.inputs.Annual Fee' | translate }} {{ savingsAccountData.annualFee.amount | currency: currency.code : 'symbol-narrow' : '1.2-2' }}
{{ 'labels.inputs.Overdraft Limit' | translate }} {{ savingsAccountData.overdraftLimit | currency: currency.code : 'symbol-narrow' : '1.2-2' }}
{{ 'labels.inputs.Minimum Overdraft Required for Interest Calculation' | translate }} {{ savingsAccountData.minOverdraftForInterestCalculation | currency: currency.code : 'symbol-narrow' : '1.2-2' }}
{{ 'labels.inputs.Min Balance Required for Interest Calculation' | translate }} {{ savingsAccountData.minBalanceForInterestCalculation | formatNumber }}
{{ 'labels.inputs.Minimum Required Balance' | translate }} {{ savingsAccountData.minRequiredBalance | formatNumber }}
{{ 'labels.inputs.Enforce Minimum Required Balance' | translate }} {{ savingsAccountData.enforceMinRequiredBalance | yesNo }}
{{ 'labels.inputs.Interest Recalculation Date' | translate }} {{ savingsAccountData.summary.lastInterestCalculationDate | dateFormat }}
{{ 'labels.inputs.On Hold Funds' | translate }} {{ savingsAccountData.onHoldFunds | currency: currency.code : 'symbol-narrow' : '1.2-2' }}
{{ 'labels.inputs.Withhold Tax Group' | translate }} {{ savingsAccountData.taxGroup.name }}
} @else {

{{ 'labels.heading.Account Summary' | translate }}

@if (savingsAccountData.externalId) { } @if (!savingsAccountData.externalId) { }
{{ 'labels.inputs.External Id' | translate }} {{ 'labels.inputs.Not Provided' | translate }}
{{ 'labels.inputs.Activated On' | translate }} {{ savingsAccountData.timeline.activatedOnDate ? (savingsAccountData.timeline.activatedOnDate | dateFormat) : 'Not Activated' }}
{{ 'labels.inputs.Currency' | translate }} {{ savingsAccountData.currency.name }} [{{ savingsAccountData.currency.code }}]
}
}