diff --git a/Wonky.Client/Helpers/Utils.cs b/Wonky.Client/Helpers/Utils.cs
index 46faf314..905e313e 100644
--- a/Wonky.Client/Helpers/Utils.cs
+++ b/Wonky.Client/Helpers/Utils.cs
@@ -336,7 +336,7 @@ public static class Utils
public static string GetVisitState(string dtNextVisit)
{
- if (dtNextVisit is "0001-01-01" or "1970-01-01")
+ if (dtNextVisit is "0001-01-01" or "1970-01-01" or "2010-01-01")
return "the-draw";
if (!DateTime.TryParse(dtNextVisit, out _))
return "the-draw";
diff --git a/Wonky.Client/OverlayOffice/OfficeCustomerInventoryReorderOverlay.razor b/Wonky.Client/OverlayOffice/OfficeCustomerInventoryItemReorderOverlay.razor
similarity index 100%
rename from Wonky.Client/OverlayOffice/OfficeCustomerInventoryReorderOverlay.razor
rename to Wonky.Client/OverlayOffice/OfficeCustomerInventoryItemReorderOverlay.razor
diff --git a/Wonky.Client/OverlayOffice/OfficeCustomerInventoryReorderOverlay.razor.cs b/Wonky.Client/OverlayOffice/OfficeCustomerInventoryItemReorderOverlay.razor.cs
similarity index 98%
rename from Wonky.Client/OverlayOffice/OfficeCustomerInventoryReorderOverlay.razor.cs
rename to Wonky.Client/OverlayOffice/OfficeCustomerInventoryItemReorderOverlay.razor.cs
index 95bf9900..cb1f14dc 100644
--- a/Wonky.Client/OverlayOffice/OfficeCustomerInventoryReorderOverlay.razor.cs
+++ b/Wonky.Client/OverlayOffice/OfficeCustomerInventoryItemReorderOverlay.razor.cs
@@ -24,7 +24,7 @@ using Wonky.Entity.Views;
namespace Wonky.Client.OverlayOffice;
-public partial class OfficeCustomerInventoryReorderOverlay
+public partial class OfficeCustomerInventoryItemReorderOverlay
{
// ##############################################################
[Parameter] public CompanyDto Company { get; set; }
diff --git a/Wonky.Client/OverlayOffice/OfficeCustomerInventoryListOverlay.razor b/Wonky.Client/OverlayOffice/OfficeCustomerInventoryListOverlay.razor
deleted file mode 100644
index 8b20f97f..00000000
--- a/Wonky.Client/OverlayOffice/OfficeCustomerInventoryListOverlay.razor
+++ /dev/null
@@ -1,110 +0,0 @@
-@* Copyright (C) 2022 FCS Frede's Computer Services.
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as
-// published by the Free Software Foundation, either version 3 of the
-// License, or (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-//
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
-*@
-
-@using Wonky.Client.Models
-@using Wonky.Client.Enums
-
-
diff --git a/Wonky.Client/OverlayOffice/OfficeCustomerInvoiceListOverlay.razor.cs b/Wonky.Client/OverlayOffice/OfficeCustomerInvoiceListOverlay.razor.cs
index b8f88af7..619796c9 100644
--- a/Wonky.Client/OverlayOffice/OfficeCustomerInvoiceListOverlay.razor.cs
+++ b/Wonky.Client/OverlayOffice/OfficeCustomerInvoiceListOverlay.razor.cs
@@ -38,10 +38,10 @@ public partial class OfficeCustomerInvoiceListOverlay
private OfficeCustomerInvoiceViewOverlay InvoiceView { get; set; } = new();
private List Invoices { get; set; } = new();
- protected override async Task OnParametersSetAsync()
+ protected override void OnParametersSet()
{
// extract company from customer invoices
- Logger.LogDebug("CustomerInvoiceListOverlay => company => {}", JsonSerializer.Serialize(Company));
+ Logger.LogDebug("OfficeInvoiceListOverlay => company => {}", JsonSerializer.Serialize(Company));
// if there is invoices -> order by document date
if (InvoiceList.Invoices.Any())
Invoices = InvoiceList.Invoices.OrderByDescending(x => x.DocumentDate).ToList();
diff --git a/Wonky.Client/OverlayOffice/OfficeCustomerInvoiceViewOverlay.razor b/Wonky.Client/OverlayOffice/OfficeCustomerInvoiceViewOverlay.razor
index 1103abb9..a117966e 100644
--- a/Wonky.Client/OverlayOffice/OfficeCustomerInvoiceViewOverlay.razor
+++ b/Wonky.Client/OverlayOffice/OfficeCustomerInvoiceViewOverlay.razor
@@ -1,4 +1,4 @@
-00@* Copyright (C) 2022 FCS Frede's Computer Services.
+@* Copyright (C) 2022 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
diff --git a/Wonky.Client/OverlayOffice/OfficeCustomerListInventoryOverlay.razor b/Wonky.Client/OverlayOffice/OfficeCustomerListInventoryOverlay.razor
new file mode 100644
index 00000000..0234b443
--- /dev/null
+++ b/Wonky.Client/OverlayOffice/OfficeCustomerListInventoryOverlay.razor
@@ -0,0 +1,112 @@
+@* Copyright (C) 2022 FCS Frede's Computer Services.
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Affero General Public License as
+// published by the Free Software Foundation, either version 3 of the
+// License, or (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Affero General Public License for more details.
+//
+// You should have received a copy of the GNU Affero General Public License
+// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
+*@
+
+@using Wonky.Client.Models
+@using Wonky.Client.Enums
+@using Wonky.Client.Components
+@using System.Text.Json
+
+
+
+
+
+
@Company.Name - Produkt oversigt
+
+
+
+ @if (DisplayList.Any())
+ {
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ @foreach (var product in DisplayList)
+ {
+
+
+
+
+ @product.LastInvoiceDate
+ @if (product.AgedProduct() && !product.Discontinued)
+ {
+
+ Længe siden
+ Længe siden
+
+ }
+