Function: groupCountMismatch()
groupCountMismatch(
position):X12ParseWarning
Build an X12_GROUP_COUNT_MISMATCH warning. Emitted when IEA-01 does not
equal the actual number of GS..GE groups present in the interchange.
Trading partners use this to detect transmission truncation. Both numbers
stay on the model (iea.elements[1] and ix.groups.length) and neither
is silently corrected.
Parameters
position
Returns
Example
import { groupCountMismatch } from "@cosyte/x12";
const w = groupCountMismatch({ segmentIndex: 5, interchangeIndex: 0, elementIndex: 1 });