cadrumo.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.calendar.build_overview_calendar() appends these warnings
after legal deadline rows and additive events have already been projected. Each
warning names the catalogue action that answers it - profile edit, filed-history
pull, or modelo description - rather than a command string; this module never
starts those operations.
See also
next_actionsOwns the shared declaration helper these remedies are built with.
- calendar_applicability_profile_keys_for_modelo(modelo, *, operation, revision_inventory=None)[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.
Core types:
ModeloRevision.- Return type:
- Parameters:
modelo (str)
operation (PinnedAuthorityOperation)
revision_inventory (Iterable[tuple[str, ModeloRevision]] | None)