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
0Amode.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:
- Parameters:
work_unit (WorkUnit)
detail_rows (tuple[Modelo184MemberRow | Modelo232VinculadaRow | Modelo349OperadorRow | Modelo349RectificacionRow | Modelo347ContraparteRow | Modelo210AgrupacionRentaRow, ...])
m210_official_tipo_renta_code (str | None)
- m210_agrupacion_renta_verification_findings(*, work_unit, revision, operation)[source]¶
Return a blocking finding when persisted annual-group evidence is invalid.
revisionis theCalculationRevisionunder 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_COMPLETOthrough a future import or storage path.- Return type:
- Parameters:
work_unit (WorkUnit)
revision (CalculationRevision)
operation (PinnedAuthorityOperation)