process state

This commit is contained in:
Frede Hundewadt 2023-10-19 11:27:57 +02:00
parent 4d38a02eb4
commit 304ec6f102
4 changed files with 23 additions and 4 deletions

View file

@ -13,5 +13,4 @@
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
*@
<i style="font-size:1.3em;" class="bi-@Icon @StateClass"></i>
<i style="font-size:1.3em;" class="bi-@Icon @StateClass-state"></i>

View file

@ -43,7 +43,7 @@
<td class="align-middle">@activity.Demo</td>
<td class="align-middle">@activity.Sales</td>
<td class="align-middle fw-bold">@activity.OfficeNote</td>
<td class="align-middle text-end">@($"{activity.SasAmount:N2}")</td>
<td class="align-middle text-end">@(activity.StatusTypeEnum == "Quote" ? "{0:N2}" : $"{activity.SasAmount:N2}")</td>
<td class="align-middle text-end">@(activity.StatusTypeEnum == "Quote" ? "{0:N2}" : $"{activity.OrderAmount:N2}")</td>
<td class="align-middle text-center">
@if (activity.OurRef.Contains("T:"))

View file

@ -5,7 +5,8 @@
@attribute [Authorize(Roles = "Admin,Office,Supervisor,Warehouse")]
@page "/sales/orderlist/{CountryCode}"
<PageTitle>Åbne ordrer @CountryCode</PageTitle>
<PageTitle>Ubehandlede Bestillinger @CountryCode</PageTitle>
<h2>Ubehandlede Bestillinger @CountryCode</h2>
@if (OrderLIst.Any())
{
<div class="list-group">

View file

@ -109,6 +109,25 @@ a, .btn-link {
background-color: mediumpurple;
}
.the-good-state {
color: green;
}
.the-bad-state {
color: orange;
}
.the-ugly-state {
color: red;
}
.the-dead-state {
color: black;
}
.the-fast-state {
color: orange;
}
.the-draw-state {
color: mediumpurple;
}
.the-good-bg {
color: white;
background-color: green;