Add empty account
This commit is contained in:
parent
ff2ef4aba0
commit
e76644a122
1 changed files with 58 additions and 48 deletions
|
|
@ -27,7 +27,13 @@
|
|||
Cancel
|
||||
</FluentButton>
|
||||
|
||||
<table>
|
||||
@if (matchingBankTransactions == null || matchingBankTransactions.Count == 0)
|
||||
{
|
||||
<p>Keine Transaktionen vorhanden!</p>
|
||||
}
|
||||
else
|
||||
{
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Buchungsdatum</th>
|
||||
|
|
@ -44,11 +50,13 @@
|
|||
@foreach (var transaction in matchingBankTransactions)
|
||||
{
|
||||
<tr>
|
||||
<td><div>@transaction.BookingDate.ToString("dd.MM.yyyy")</div></td>
|
||||
<td><div>@transaction.ValueDate.ToString("dd.MM.yyyy")</div></td>
|
||||
<td>
|
||||
<div>@transaction.BookingDate.ToString("dd.MM.yyyy")</div></td>
|
||||
<td>
|
||||
<div>@transaction.ValueDate.ToString("dd.MM.yyyy")</div></td>
|
||||
<td>
|
||||
<div class="text-column">
|
||||
<input list="texts" @bind="@transaction.Text" placeholder="Type or select..." />
|
||||
<input list="texts" @bind="@transaction.Text" placeholder="Type or select..."/>
|
||||
<datalist id="texts">
|
||||
@foreach (var text in bookingTexts.OrderBy(t => t))
|
||||
{
|
||||
|
|
@ -62,7 +70,8 @@
|
|||
</td>
|
||||
<td>
|
||||
<select @bind="@transaction.TargetAccountId">
|
||||
@foreach (var account in accounts.OrderBy(a=> a.Number).ThenBy(a => a.Name))
|
||||
<option value=""></option>
|
||||
@foreach (var account in accounts.OrderBy(a => a.Number).ThenBy(a => a.Name))
|
||||
{
|
||||
<option value="@account.Id">@($"{account.Number} / {@account.Name}")</option>
|
||||
}
|
||||
|
|
@ -76,4 +85,5 @@
|
|||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</table>
|
||||
}
|
||||
Loading…
Reference in a new issue