diff --git a/Wonky.Client/Components/CompanyListHeader.razor b/Wonky.Client/Components/CompanyListHeader.razor deleted file mode 100644 index 7c975db0..00000000 --- a/Wonky.Client/Components/CompanyListHeader.razor +++ /dev/null @@ -1,25 +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] -// -*@ - -
-
-
Navn
-
Konto
-
Bynavn
-
-
- diff --git a/Wonky.Client/Components/CompanySearchDropdown.razor b/Wonky.Client/Components/CompanySearchDropdown.razor index 09d6927b..91be6b08 100644 --- a/Wonky.Client/Components/CompanySearchDropdown.razor +++ b/Wonky.Client/Components/CompanySearchDropdown.razor @@ -16,7 +16,7 @@ *@ - + \ No newline at end of file diff --git a/Wonky.Client/Components/ItemGroupDropdown.razor b/Wonky.Client/Components/ItemGroupDropdown.razor index 73957f29..7a3c826d 100644 --- a/Wonky.Client/Components/ItemGroupDropdown.razor +++ b/Wonky.Client/Components/ItemGroupDropdown.razor @@ -16,7 +16,7 @@ *@ - + diff --git a/Wonky.Client/Components/ItemSortDropdown.razor b/Wonky.Client/Components/ItemSortDropdown.razor index 9319c1ba..e9b02d57 100644 --- a/Wonky.Client/Components/ItemSortDropdown.razor +++ b/Wonky.Client/Components/ItemSortDropdown.razor @@ -16,7 +16,7 @@ *@ \ No newline at end of file diff --git a/Wonky.Client/Components/PageSizeDropdown.razor b/Wonky.Client/Components/PageSizeDropdown.razor index 1e6d0a0d..b46e5cff 100644 --- a/Wonky.Client/Components/PageSizeDropdown.razor +++ b/Wonky.Client/Components/PageSizeDropdown.razor @@ -16,7 +16,7 @@ *@ - + diff --git a/Wonky.Client/Pages/SalesReport.razor.cs b/Wonky.Client/Pages/SalesReport.razor.cs index ac2f60dd..290ae2c4 100644 --- a/Wonky.Client/Pages/SalesReport.razor.cs +++ b/Wonky.Client/Pages/SalesReport.razor.cs @@ -34,7 +34,7 @@ public partial class SalesReport private Preferences _prefs { get; set; } = new(); private bool _formInvalid = true; private List? Activities { get; set; } = new(); - + private DateTime _workDate; protected override async Task OnInitializedAsync() { Interceptor.RegisterEvent(); @@ -44,9 +44,11 @@ public partial class SalesReport _editContext.OnValidationStateChanged += ValidationChanged; _prefs = await UserPrefs.GetPreferences(); - _reportDto.CheckIn = string.IsNullOrWhiteSpace(_prefs.WorkDate) + _workDate =string.IsNullOrWhiteSpace(_prefs.WorkDate) ? DateTime.Now : DateTime.Parse(_prefs.WorkDate); + + _reportDto.CheckIn = new DateTime(_workDate.Year, _workDate.Month, _workDate.Day, 12, 0,0); _reportDto.CheckOut = _reportDto.CheckIn; await UserPrefs.SetWorkDate(_reportDto.CheckIn); } diff --git a/Wonky.Client/Shared/NavMenu.razor b/Wonky.Client/Shared/NavMenu.razor index eacb8bc2..876db0f1 100644 --- a/Wonky.Client/Shared/NavMenu.razor +++ b/Wonky.Client/Shared/NavMenu.razor @@ -44,28 +44,28 @@