|
|
|
@@ -168,6 +168,11 @@ export interface TraceGraphNode { |
|
|
|
/** Raw status codes (for coloring). */ |
|
|
|
processingStatus?: string; |
|
|
|
matchStatus?: string; |
|
|
|
/** Material-pick stock summary chips (JO pick cards). */ |
|
|
|
stockAvailableLabel?: string; |
|
|
|
stockStatusLabel?: string; |
|
|
|
bomReqQtyLabel?: string; |
|
|
|
stockReqQtyLabel?: string; |
|
|
|
} |
|
|
|
|
|
|
|
export interface TraceGraphDetailLabels extends TraceGraphNodeLabels { |
|
|
|
@@ -255,6 +260,16 @@ export interface TraceGraphDetailLabels extends TraceGraphNodeLabels { |
|
|
|
categoryTerminal: string; |
|
|
|
processingStatus: string; |
|
|
|
matchStatus: string; |
|
|
|
detailBomReqQty: string; |
|
|
|
detailStockReqQty: string; |
|
|
|
detailStockAvailable: string; |
|
|
|
detailStockStatus: string; |
|
|
|
stockStatusSufficient: string; |
|
|
|
stockStatusInsufficient: string; |
|
|
|
/** Displayed when a JO pick-table field does not apply. */ |
|
|
|
na: string; |
|
|
|
/** Unpicked pick-order line (no stock-out yet). */ |
|
|
|
pendingPick: string; |
|
|
|
} |
|
|
|
|
|
|
|
const categoryForKind = (kind: TraceGraphNodeKind, labels: TraceGraphDetailLabels): string => { |
|
|
|
@@ -873,10 +888,7 @@ export const buildTraceGraphNodes = ( |
|
|
|
fieldIf(labels.detailRemarks, m.remarks), |
|
|
|
) |
|
|
|
: detailsOf( |
|
|
|
field( |
|
|
|
labels.detailType, |
|
|
|
kind === "JO_CREATED" ? labels.nodeJoCreated : labels.tr.movementType(m.movementType), |
|
|
|
), |
|
|
|
field(labels.detailType, labels.tr.movementType(m.movementType)), |
|
|
|
field(labels.detailDirection, labels.tr.direction(m.direction)), |
|
|
|
field(labels.detailSourceDoc, m.refCode, { |
|
|
|
linkKind, |
|
|
|
|