cadrumo.application.modelo._m210_agrupacion_renta module

Modelo 210 annual grouped-renta boundary and verification contract.

The registry formula continues to calculate M210 from its declared casillas. This module owns only the legal evidence gate for the annual grouped-renta period (0A): it accepts the persisted typed rows, never sums them into an input or computed casilla, and converts any persisted-data drift into an ordinary verification finding.

See also

cadrumo.domain.modelos.row_models.validate_m210_agrupacion_renta_rows():

Domain-owned Article 2 compatibility validation for the row set.

cadrumo.application.modelo.calculation_actions.calculate_modelo_revision():

Calculation boundary that refuses an invalid row set before formula execution and revision persistence.

validate_m210_agrupacion_renta_rows_for_calculation(*, work_unit, detail_rows, m210_official_tipo_renta_code)[source]

Require a complete, homogeneous row set for M210’s annual 0A mode.

No other modelo can carry an M210 grouped-renta row, and non-annual M210 work remains on the established scalar manual path. The 0A path is strict: an empty or mixed row set is refused before formula evaluation, while the domain validator checks the statutory component compatibility.

Return type:

None

Parameters:
m210_agrupacion_renta_verification_findings(*, work_unit, revision, operation)[source]

Return a blocking finding when persisted annual-group evidence is invalid.

revision is the CalculationRevision under verification.

Normal calculation cannot persist this state because the calculate boundary above rejects it. Verify repeats the domain rule as an integrity check over stored revisions, preventing an old or malformed persisted record from becoming VERIFICADO_COMPLETO through a future import or storage path.

Return type:

tuple[ModeloVerificationFinding, ...]

Parameters: