Fix chefin bestellungseinsicht

This commit is contained in:
MET18937 2023-06-26 11:40:53 +02:00
parent 9e8942ef43
commit c05d31975a

View File

@ -42,9 +42,20 @@
month = bestellungsposition.Datum.Month; month = bestellungsposition.Datum.Month;
year = bestellungsposition.Datum.Year; year = bestellungsposition.Datum.Year;
@*print kunde.code, hour and minute from last bestellungsposition*@ @*print only if date is higher than now datum, all expired hh:mm unvisible *@
@*print only if date is higher than now datum *@ @*if (bestellungsposition.Datum > DateTime.Now)
if (bestellungsposition.Datum > DateTime.Now) {
<tr>
<td>
<p @onclick="@(()=>BDetail(@kunde.Idkunde))" class="mb-0 pb-0">
#@kunde.Code &nbsp;
@hour:@minute
</p>
</td>
</tr>
}*@
@*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)
{ {
<tr> <tr>
<td> <td>
@ -55,7 +66,6 @@
</td> </td>
</tr> </tr>
} }
@*}*@
firstTime = false; firstTime = false;
} }
} }