From c05d31975aa9ebcf223a43818fcf187ae8f8397d Mon Sep 17 00:00:00 2001 From: MET18937 <79221078+MET18937@users.noreply.github.com> Date: Mon, 26 Jun 2023 11:40:53 +0200 Subject: [PATCH] Fix chefin bestellungseinsicht --- .../Chefin/Bestelluebersicht-Chefin.razor | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/src/y4f/Shared/Chefin/Bestelluebersicht-Chefin.razor b/src/y4f/Shared/Chefin/Bestelluebersicht-Chefin.razor index db1ffc4..30b50cd 100644 --- a/src/y4f/Shared/Chefin/Bestelluebersicht-Chefin.razor +++ b/src/y4f/Shared/Chefin/Bestelluebersicht-Chefin.razor @@ -42,9 +42,20 @@ month = bestellungsposition.Datum.Month; year = bestellungsposition.Datum.Year; - @*print kunde.code, hour and minute from last bestellungsposition*@ - @*print only if date is higher than now datum *@ - if (bestellungsposition.Datum > DateTime.Now) + @*print only if date is higher than now datum, all expired hh:mm unvisible *@ + @*if (bestellungsposition.Datum > DateTime.Now) + { + + +

+ #@kunde.Code   + @hour:@minute +

+ + + }*@ + @*print only if date is in current day month year *@ + if (bestellungsposition.Datum.Day == DateTime.Now.Day && bestellungsposition.Datum.Month == DateTime.Now.Month && bestellungsposition.Datum.Year == DateTime.Now.Year) { @@ -55,7 +66,6 @@ } - @*}*@ firstTime = false; } }