cadrumo.application.aggregation.m303_arrivals module

Generic evidence-arrival and transition-validation mechanics.

class M303SupplierRegimeArrival(**data)[source]

Bases: BaseModel

Period-specific evidence that the taxpayer received supplier-regime operations.

Parameters:

data (Any)

period: Period
recipient_of_cash_accounting_operations: bool
source_ledger_ids: tuple[str, ...]
class M303ProrrataTransitionArrival(**data)[source]

Bases: BaseModel

Period-specific prorrata option or revocation evidence.

Parameters:

data (Any)

period: Period
transition: ProrrataEspecialTransitionKind | None
register_evidence: tuple[ProrrataRegisterEntry, ...]
property is_applicable: bool

Whether the selected registry revision applies the transition.

resolve_m303_supplier_regime_arrival(*, period, iva_aggregation)[source]

Derive the recipient fact solely from the canonical IVA observation set.

This fact records supplier-regime participation in the filing period, not a monetary box contribution. It therefore deliberately spans both the operation-information and settlement projection roles, while retaining a stable one-ledger-id evidence set when one operation has several partial settlements in the same period.

Return type:

M303SupplierRegimeArrival

Parameters:
resolve_m303_prorrata_transition_arrival(*, period, prorrata_register, operation=None)[source]

Resolve a registry-selected prorrata transition from register evidence.

Return type:

M303ProrrataTransitionArrival

Parameters: