fix(frontend): order status button colors, delivery gate logic, partial delivery chips, and scheduled message form tweaks
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user