This commit is contained in:
2026-08-28 14:33:57 +08:00
parent 7b50e92baf
commit ae48f46c9f
21 changed files with 282 additions and 24 deletions
@@ -1,5 +1,6 @@
import type { InventoryBalanceDto } from './api/inventory'
import type { InventoryListItem } from './types'
import { formatOverseasDateTime } from './lastMilePresentation'
function text(value: unknown) {
const normalized = String(value ?? '').trim()
@@ -40,6 +41,6 @@ export function toInventoryListItem(dto: InventoryBalanceDto): InventoryListItem
inTransit: count(dto.inTransitPackages),
purchase: count(dto.procurementPackages),
status: inventoryStatusLabel(dto),
updatedAt: text(dto.updatedAt),
updatedAt: formatOverseasDateTime(dto.updatedAt),
}
}