Skip to content

Validation

Validation utilities including cross-phase comparison.

CrossPhaseValidator

CrossPhaseValidator

Opt-in validator for verifying source <-> response file compatibility.

Supports
  • X83 -> X84 (tender -> bid): structural identity, prices required
  • X86 -> X88 (contract -> addendum): new items allowed with CONo traceability
  • X86 -> X89 (contract -> invoice): unit prices must match, qty may differ

Example::

tender = GAEBParser.parse("tender.X83")
bid = GAEBParser.parse("bid.X84")
issues = CrossPhaseValidator.check(source=tender, response=bid)

check staticmethod

check(source, response)

Validate cross-phase compatibility between source and response.

Automatically dispatches to the appropriate validation logic based on the detected phase pair.

check_tender_bid staticmethod

check_tender_bid(source, response)

Explicitly validate X83 -> X84 structural identity.

check_contract_invoice staticmethod

check_contract_invoice(source, response)

Explicitly validate X86 -> X89 contract-invoice consistency.

check_contract_addendum staticmethod

check_contract_addendum(source, response)

Explicitly validate X86 -> X88 contract-addendum consistency.