aeat.application.overview._calendar_warnings module

Calendar completeness and evidence-warning helpers.

These helpers inspect already-built OverviewCalendarEntry and OverviewCalendarEvent DTOs to derive CalendarWarning and CalendarCompleteness payloads. They do not read remote state; warnings about censo provenance, missing justificante verification, and conflicting AEAT evidence only describe gaps in the local projection.

application.overview.build_overview_calendar() appends these warnings after legal deadline rows and additive events have already been projected. The fix commands point operators at existing profile-edit, censo-read, or filed-history pull surfaces; this module never starts those operations.

calendar_censo_enrolment_profile_keys()[source]

Return profile paths whose censo provenance can witness enrolment.

The paths are compared with live Modelo 036 / censo-stamped profile facts before OverviewCensoEnrolmentState and CalendarWarning values are produced.

Return type:

tuple[str, ...]

calendar_applicability_profile_keys_for_modelo(modelo)[source]

Return profile keys that can influence calendar applicability for modelo.

The result combines registry applicability rules, IVA-regime coverage, and corporate censo axes so calendar provenance warnings use the same profile facts that determine legal obligation rows.

Return type:

tuple[str, ...]

Parameters:

modelo (str)