优化
This commit is contained in:
@@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user