resolveEstadoEfectivo
resolveEstadoEfectivo(
linea):EstadoEfectivo
Defined in: src/xml/parse-suministro.ts:263
Resolves what a response line actually means.
Error 3000 inverts: the outer EstadoRegistro reads Incorrecto, but the
RegistroDuplicado block may report the ALREADY-STORED record as Correcta.
Reading the outer status as authoritative would mark an accepted record
rejected and halt a healthy chain — the opposite of the truth.
status_unknown means AEAT’s line status is missing or unrecognized; the
caller must keep the CSV and investigate instead of assuming rejection.
duplicate_unknown means AEAT holds something under this identity but did
not say what; the caller must resolve it with a consulta and compare the
stored huella. duplicate_annulled means AEAT holds an annulled record
there, which needs attention rather than a retry.