mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 13:28:11 +00:00
fix
This commit is contained in:
@@ -164,6 +164,8 @@ const tripSlipRows = (record: FirstMileRecord): [string, string][] => [
|
|||||||
["Vehicle", vehicleLabel(record) ?? "Unassigned"],
|
["Vehicle", vehicleLabel(record) ?? "Unassigned"],
|
||||||
["Contact", `${contactPersonName(record)} · ${contactPhone(record)}`],
|
["Contact", `${contactPersonName(record)} · ${contactPhone(record)}`],
|
||||||
["Requested date", requestedDate(record)],
|
["Requested date", requestedDate(record)],
|
||||||
|
["Est. Distance (KM)", record.estimatedKm != null ? String(record.estimatedKm) : "—"],
|
||||||
|
["Actual Distance (KM)", record.exactKm != null ? String(record.exactKm) : "—"],
|
||||||
["Status", STATUS_META[record.status].label],
|
["Status", STATUS_META[record.status].label],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -157,6 +157,8 @@ const tripSlipRows = (record: LastMileRecord): [string, string][] => [
|
|||||||
["Vehicle", vehicleLabel(record) ?? "Unassigned"],
|
["Vehicle", vehicleLabel(record) ?? "Unassigned"],
|
||||||
["Contact", `${contactPersonName(record)} · ${contactPhone(record)}`],
|
["Contact", `${contactPersonName(record)} · ${contactPhone(record)}`],
|
||||||
["Requested date", requestedDate(record)],
|
["Requested date", requestedDate(record)],
|
||||||
|
["Est. Distance (KM)", record.estimatedKm != null ? String(record.estimatedKm) : "—"],
|
||||||
|
["Actual Distance (KM)", record.exactKm != null ? String(record.exactKm) : "—"],
|
||||||
["Status", STATUS_META[record.status].label],
|
["Status", STATUS_META[record.status].label],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user