cadrumo.domain.calculations.registry.m303_regimen_simplificado_projection module

Typed DP30302 projection from canonical regimen-simplificado rows.

validate_m303_regimen_simplificado_endpoint_epoch(refs, *, revision_id)[source]

Refuse simplified fact multiplicity that the selected record-design epoch never admits.

Return type:

None

Parameters:
  • refs (tuple[_RegimenSimplificadoProjectionRef, ...])

  • revision_id (str)

class M303RegimenSimplificadoFieldProjection(**data)[source]

Bases: BaseModel

One exact typed projection reference and its canonical value.

Parameters:

data (Any)

projection_ref: FilingProjectionRef
value: str | Decimal | None
class M303RegimenSimplificadoRecordProjection(**data)[source]

Bases: BaseModel

All typed simplified-regime fields for one DP30302 occurrence.

Parameters:

data (Any)

record: int
fields: tuple[M303RegimenSimplificadoFieldProjection, ...]
project_m303_regimen_simplificado_rows(*, projection_refs, rows, orden, agricultural_authority, applicable, calculation_result, censo_iae_epigraphs)[source]

Select exact authored fields from immutable evidence and calculated results.

Return type:

tuple[M303RegimenSimplificadoRecordProjection, ...]

Parameters:
m303_iae_epigraph_wire_value(iae_epigrafe)[source]

Encode one canonical annual-Orden IAE identity for DP30302’s four-byte field.

The annual Orden keeps an epigraph such as 691.9 in its official, human-facing identity form. DP30302’s alphanumeric four-byte field carries that same identity without its separator (6919); a three-digit identity such as 722 remains three characters and is padded by the declared fixed-width field codec. The conversion is deliberately closed so malformed source identities never reach the renderer as an implicit truncation case.

Return type:

str

Parameters:

iae_epigrafe (str)