diff --git a/TrafagSalesExporter/Components/Layout/NavMenu.razor b/TrafagSalesExporter/Components/Layout/NavMenu.razor index fd812f6..344fcfd 100644 --- a/TrafagSalesExporter/Components/Layout/NavMenu.razor +++ b/TrafagSalesExporter/Components/Layout/NavMenu.razor @@ -12,7 +12,22 @@ - @T("Uebersicht", "Overview") + @T("Finance Summary", "Finance summary") + + + @T("Laender", "Countries") + + + @T("Datenstatus", "Data status") + + + @T("Abweichungen", "Deviations") + + + @T("Gutschriften", "Credit notes") + + + @T("Datenqualitaet", "Data quality") @T("Sparten-Finanzanalyse", "Division finance") @@ -20,6 +35,9 @@ @T("Zentrale Spartenzuordnung", "Central division mapping") + + @T("Rohdaten Diagnose", "Raw-data diagnostics") + @if (ShowFinanceComparison) { diff --git a/TrafagSalesExporter/Components/Pages/ManagementCockpit.razor b/TrafagSalesExporter/Components/Pages/ManagementCockpit.razor index 5adbaec..37fda55 100644 --- a/TrafagSalesExporter/Components/Pages/ManagementCockpit.razor +++ b/TrafagSalesExporter/Components/Pages/ManagementCockpit.razor @@ -924,14 +924,27 @@ { if (string.Equals(Section, "division", StringComparison.OrdinalIgnoreCase)) { - _activeFinanceTabIndex = 6; + _activeFinanceTabIndex = ManagementFinanceTabIndexes.Division; _activeDivisionTabIndex = string.Equals(Division, "central", StringComparison.OrdinalIgnoreCase) ? 1 : 0; } else if (string.IsNullOrWhiteSpace(Section)) { - _activeFinanceTabIndex = 0; + _activeFinanceTabIndex = ManagementFinanceTabIndexes.Summary; _activeDivisionTabIndex = 0; } + else + { + _activeFinanceTabIndex = Section.ToLowerInvariant() switch + { + "countries" => ManagementFinanceTabIndexes.Countries, + "status" => ManagementFinanceTabIndexes.Status, + "deviations" => ManagementFinanceTabIndexes.Deviations, + "credits" => ManagementFinanceTabIndexes.Credits, + "quality" => ManagementFinanceTabIndexes.Quality, + "raw" => ManagementFinanceTabIndexes.Raw, + _ => ManagementFinanceTabIndexes.Summary + }; + } } protected override async Task OnInitializedAsync() @@ -1311,6 +1324,18 @@ public const string Division = "division"; } + private static class ManagementFinanceTabIndexes + { + public const int Summary = 0; + public const int Countries = 1; + public const int Status = 2; + public const int Deviations = 3; + public const int Credits = 4; + public const int Quality = 5; + public const int Division = 6; + public const int Raw = 7; + } + private sealed record ProductFinanceGroupingOption(string Key, string GermanLabel, string EnglishLabel); private sealed record ProductFinanceGroupKey(