aeat.domain.calculations.registry._schedules module¶
Filing schedule selection from registry profile predicates.
Evaluates the profile conditions declared on filing schedules of a
ModeloRevision against a profile facts mapping and returns only
the schedules whose predicates are satisfied.
- applicable_filing_schedules(revision, profile_facts, *, period=None)[source]¶
Return
ModeloScheduleDefinitionitems whose profile predicates match the supplied facts.- Parameters:
revision (
ModeloRevision) – TheModeloRevisionwhose filing schedules to evaluate.profile_facts (
Mapping[str,object] |object) – Profile facts (mapping or aggregate) consulted by each schedule’sProfilePredicateDefinitionset.period (
str|None) – Optional period token; when supplied, schedules whoseperiodsset excludes it are filtered out before predicate evaluation.
- Return type: