@page "/accounts/{AccountId:int}" @inject IAccountService AccountService @inject IEntryService EntryService @inject IBalanceQueryService BalanceQueryService @inject IPdfStatementService PdfStatementService @inject IFileSaveService FileSaveService @inject NavigationManager Navigation
@if (account == null) {
} else {

@account.Name

| |
@if (balance != null) {
Saldo
@FormatAmount(balance.TotalBalance)
Einnahmen
@FormatAmount(showCurrentYearOnly ? balance.CurrentYearIncome : balance.TotalIncome)
Ausgaben
@FormatAmount(showCurrentYearOnly ? balance.CurrentYearExpense : balance.TotalExpense)
@if (showCurrentYearOnly) {
Übertrag von @(DateTime.Now.Year - 1)
@FormatAmount(balance.CarryoverBalance)
Umsätze @DateTime.Now.Year
@FormatAmount(balance.CurrentYearIncome - balance.CurrentYearExpense)
} } @if (entries != null) {
} }
@if (showAddEntry) { } @if (showAddTransfer) { } @if (showEditName) { } @if (showEditCarryover) { } @if (confirmDeleteEntryId.HasValue) { } @if (confirmRestoreEntryId.HasValue) { } @if (!string.IsNullOrWhiteSpace(savedPdfPath)) { } @if (editingEntry != null) { } @if (editingTransferEntry != null) { }