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 ModeloScheduleDefinition items whose profile predicates match the supplied facts.

Parameters:
Return type:

tuple[ModeloScheduleDefinition, ...]

evaluate_profile_conditions(conditions, profile_facts, *, mode)[source]
Return type:

tuple[str, ...] | None

Parameters:
profile_condition_matches(condition, profile_facts)[source]
Return type:

bool

Parameters: