fix(frontend): order status button colors, delivery gate logic, partial delivery chips, and scheduled message form tweaks

This commit is contained in:
Matthias Hochmeister
2026-04-17 10:50:42 +02:00
parent b91cf88812
commit 7d2ea57c17
5 changed files with 31 additions and 11 deletions

View File

@@ -108,7 +108,11 @@ function MeineAnfragenTab() {
<TableCell>{formatOrderId(r)}</TableCell>
<TableCell>{r.bezeichnung || '-'}</TableCell>
<TableCell><Chip label={AUSRUESTUNG_STATUS_LABELS[r.status]} color={AUSRUESTUNG_STATUS_COLORS[r.status]} size="small" /></TableCell>
<TableCell>{r.im_haus ? <Chip label="Im Haus" color="success" size="small" /> : null}</TableCell>
<TableCell>
{r.im_haus && r.geliefert_count != null && r.positionen_count != null && r.geliefert_count < r.positionen_count
? <Chip label="Teilweise im Haus" color="warning" size="small" />
: r.im_haus ? <Chip label="Im Haus" color="success" size="small" /> : null}
</TableCell>
<TableCell>{r.positionen_count ?? r.items_count ?? '-'}</TableCell>
<TableCell>
{r.positionen_count != null && r.positionen_count > 0
@@ -219,7 +223,11 @@ function AlleAnfragenTab() {
<TableCell>{r.bezeichnung || '-'}</TableCell>
<TableCell>{r.fuer_benutzer_name || r.anfrager_name || r.anfrager_id}</TableCell>
<TableCell><Chip label={AUSRUESTUNG_STATUS_LABELS[r.status]} color={AUSRUESTUNG_STATUS_COLORS[r.status]} size="small" /></TableCell>
<TableCell>{r.im_haus ? <Chip label="Im Haus" color="success" size="small" /> : null}</TableCell>
<TableCell>
{r.im_haus && r.geliefert_count != null && r.positionen_count != null && r.geliefert_count < r.positionen_count
? <Chip label="Teilweise im Haus" color="warning" size="small" />
: r.im_haus ? <Chip label="Im Haus" color="success" size="small" /> : null}
</TableCell>
<TableCell>{r.positionen_count ?? r.items_count ?? '-'}</TableCell>
<TableCell>
{r.positionen_count != null && r.positionen_count > 0