From 304ec6f1026ba2f74ac91cb02caa31e2cc210246 Mon Sep 17 00:00:00 2001 From: Frede Hundewadt Date: Thu, 19 Oct 2023 11:27:57 +0200 Subject: [PATCH] process state --- .../Components/ProcessStateComponent.razor | 3 +-- .../ReportViewActivityListComponent.razor | 2 +- Wonky.Client/Pages/OfficeOrderListPage.razor | 3 ++- Wonky.Client/wwwroot/css/app.css | 19 +++++++++++++++++++ 4 files changed, 23 insertions(+), 4 deletions(-) diff --git a/Wonky.Client/Components/ProcessStateComponent.razor b/Wonky.Client/Components/ProcessStateComponent.razor index 7878ea74..77ade033 100644 --- a/Wonky.Client/Components/ProcessStateComponent.razor +++ b/Wonky.Client/Components/ProcessStateComponent.razor @@ -13,5 +13,4 @@ // along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] *@ - - + diff --git a/Wonky.Client/Components/ReportViewActivityListComponent.razor b/Wonky.Client/Components/ReportViewActivityListComponent.razor index dec2e9d0..85a1792c 100644 --- a/Wonky.Client/Components/ReportViewActivityListComponent.razor +++ b/Wonky.Client/Components/ReportViewActivityListComponent.razor @@ -43,7 +43,7 @@ @activity.Demo @activity.Sales @activity.OfficeNote - @($"{activity.SasAmount:N2}") + @(activity.StatusTypeEnum == "Quote" ? "{0:N2}" : $"{activity.SasAmount:N2}") @(activity.StatusTypeEnum == "Quote" ? "{0:N2}" : $"{activity.OrderAmount:N2}") @if (activity.OurRef.Contains("T:")) diff --git a/Wonky.Client/Pages/OfficeOrderListPage.razor b/Wonky.Client/Pages/OfficeOrderListPage.razor index 9a8d0901..a4090f08 100644 --- a/Wonky.Client/Pages/OfficeOrderListPage.razor +++ b/Wonky.Client/Pages/OfficeOrderListPage.razor @@ -5,7 +5,8 @@ @attribute [Authorize(Roles = "Admin,Office,Supervisor,Warehouse")] @page "/sales/orderlist/{CountryCode}" -Åbne ordrer @CountryCode +Ubehandlede Bestillinger @CountryCode +

Ubehandlede Bestillinger @CountryCode

@if (OrderLIst.Any()) {
diff --git a/Wonky.Client/wwwroot/css/app.css b/Wonky.Client/wwwroot/css/app.css index f7804799..ada0de20 100644 --- a/Wonky.Client/wwwroot/css/app.css +++ b/Wonky.Client/wwwroot/css/app.css @@ -109,6 +109,25 @@ a, .btn-link { background-color: mediumpurple; } +.the-good-state { + color: green; +} +.the-bad-state { + color: orange; +} +.the-ugly-state { + color: red; +} +.the-dead-state { + color: black; +} +.the-fast-state { + color: orange; +} +.the-draw-state { + color: mediumpurple; +} + .the-good-bg { color: white; background-color: green;