aeat.domain.deadlines._plazo module¶
Registry lookup for filing window close dates (plazo voluntario).
Provides a profile-free function to ask “when does the plazo voluntario
close for this modelo + filing year + period?” directly from the registry
deadline windows. The result feeds the extemporaneidad detection surface
in aeat.entrypoints.cli._modelo._work_unit_plazo_lines() and in the
anti-tautology test suite.
- resolve_filing_closes_on(modelo, filing_year, period)[source]¶
Return the close date of the plazo voluntario for a modelo+year+period.
Queries the validated registry authority for
filing_yearand returns thecloses_onof the first matchingDeadlineWindowDefinition.Matching rule: the registry window period must carry the same filing year and bare registry period token as the supplied WorkUnit period (e.g.
"1T","0A","01").Returns
Nonewhen the registry carries no window for the combination — either the modelo has no deadline windows registered for that year, or the period token does not match any window.Noneis a benign data-gap signal; callers should degrade gracefully rather than treating it as fatal.- Parameters:
- Return type:
- Returns:
The
dateon which the filing window closes, orNoneif not found.