GuestLog - StayEntry pages fixes

- Details/New - Fixed time field binding. Now it binds directly to the Model instead of using temp TimeSpans.
- New - Fixed StayEntry validation to allow creating Stays with a DateOut in the past.
- List - Added ordering to db results so limit behaves in a deterministic way. Fixed default search so stays created today are shown.
This commit is contained in:
2026-08-24 20:50:38 +02:00
parent 511bd023f2
commit b18bd7caa6
8 changed files with 67 additions and 29 deletions
+2 -2
View File
@@ -38,8 +38,8 @@ internal static class EntityMapping
return new()
{
Id = entity.Id,
DateIn = entity.DateIn,
DateOut = entity.DateOut,
DateIn = entity.DateIn.ToLocalTime(),
DateOut = entity.DateOut.ToLocalTime(),
RoomCount = entity.RoomCount,
RoomNumber = entity.RoomNumber,
PaymentMethod = entity.PaymentMethod,