commit
2c91ac7082
2 changed files with 4 additions and 3 deletions
|
|
@ -1,5 +1,4 @@
|
|||
@using Schaad.Accounting.Models
|
||||
@implements IDialogContentComponent<Schaad.Accounting.Models.Transaction>
|
||||
@implements IDialogContentComponent<Schaad.Accounting.Models.Transaction>
|
||||
@rendermode InteractiveServer
|
||||
|
||||
<FluentDialogHeader ShowDismiss="true">
|
||||
|
|
@ -37,6 +36,7 @@
|
|||
@bind-Value="@Content.TargetAccountId" />
|
||||
<FluentNumberField @bind-Value="@Content.Value" Label="Betrag" Style="width: 300px;"/>
|
||||
<FluentTextField @bind-Value="@Content.Text" Label="Buchungstext" Style="width: 300px;" />
|
||||
<FluentNumberField @bind-Value="@Content.FxRate" Label="Kurs" Style="width: 100px;" />
|
||||
|
||||
<div>
|
||||
<FluentValidationSummary />
|
||||
|
|
|
|||
|
|
@ -54,7 +54,8 @@ public partial class Transactions : ComponentBase
|
|||
{
|
||||
ValueDate = DateTime.Now,
|
||||
BookingDate = DateTime.Now,
|
||||
TargetAccountId = selectedAccountId
|
||||
TargetAccountId = selectedAccountId,
|
||||
FxRate = 1
|
||||
};
|
||||
var dialog = await dialogService.ShowDialogAsync<TransactionDialog>(data, new DialogParameters()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue