Variable: CONTROL_NUMBER_PAIRS
constCONTROL_NUMBER_PAIRS:object
Which header/trailer control-number pair disagreed. A library-owned discriminant, NOT a value read out of the document: the useful part of the diagnostic is that the two disagree and where each one sits, never what either one says.
Type Declaration
GROUP
readonlyGROUP:"group"="group"
GS-06 against GE-02.
INTERCHANGE
readonlyINTERCHANGE:"interchange"="interchange"
ISA-13 against IEA-02.
TRANSACTION
readonlyTRANSACTION:"transaction"="transaction"
ST-02 against SE-02.
Example
import { controlNumberMismatch, CONTROL_NUMBER_PAIRS } from "@cosyte/x12";
const w = controlNumberMismatch({ segmentIndex: 6 }, CONTROL_NUMBER_PAIRS.INTERCHANGE);