|
- @transaction.BookingDate.ToString("dd.MM.yyyy") |
+ @transaction.BookingDate.ToString("dd.MM.yyyy")
+
- @transaction.ValueDate.ToString("dd.MM.yyyy") |
+ @transaction.ValueDate.ToString("dd.MM.yyyy")
+
+
+ @Math.Abs(transaction.Value).ToFormattedString()
+ |
+
+ @transaction.BankTransactionText
+ |
@@ -65,23 +75,24 @@ else
|
-
- @transaction.Value.ToFormattedString()
- |
-
+ @if (transaction.Value > 0)
+ {
+
+ }
+ else
+ {
+
+ }
|
-
- @transaction.BankTransactionText
+ |
+
+ |
+
+
|
- |
- |
}
diff --git a/Schaad.Accounting.UI/Components/Pages/Home.razor.cs b/Schaad.Accounting.UI/Components/Pages/Home.razor.cs
index 65b0ab4..a4f9e8f 100644
--- a/Schaad.Accounting.UI/Components/Pages/Home.razor.cs
+++ b/Schaad.Accounting.UI/Components/Pages/Home.razor.cs
@@ -5,6 +5,7 @@ using Microsoft.FluentUI.AspNetCore.Components;
using Schaad.Accounting.Datasets;
using Schaad.Accounting.Interfaces;
using Schaad.Accounting.Models;
+using Schaad.Accounting.UI.Components.Pages.Dialogs;
namespace Schaad.Accounting.UI.Components.Pages;
@@ -19,6 +20,9 @@ public partial class Home : ComponentBase
[Inject]
private IMessageService messageService { get; set; } = null!;
+ [Inject]
+ private IDialogService dialogService { get; set; } = null!;
+
[Inject]
private ISettingsService settingsService { get; set; } = null!;
@@ -166,7 +170,20 @@ public partial class Home : ComponentBase
private async Task SplitBankTransactionAsync(Transaction transaction)
{
- ShowToast("Split noch nicht implementiert!", ToastIntent.Warning);
- await Task.CompletedTask;
+ var dialog = await dialogService.ShowDialogAsync