cadrumo.domain.modelos.m232_row_materialisation module

M232 related-party row materialisation into positional casillas.

Rows come from CLI input as Modelo232VinculadaRow objects and are materialised into the selected revision’s positional casillas. The selected revision owns the row capacity, field declarations, binding identities, and export layout; this module retains only the row-materialisation boundary.

Materialise related-party rows using selected registry declarations.

The row capacity, slot and field identities, and the casilla id template are revision-owned data read from the selected mapping fact; every produced casilla id must be declared by the revision that fact names.

Parameters:
Return type:

dict[TypeAliasType, str | Decimal]

Returns:

Mapping of casilla id to its scalar value, ordered by row then field – text for the NIF and coded fields, Decimal for the amount.

Raises:

RegistryValidationError – If rows exceed the declared capacity, or the mapping declares a field or casilla the selected revision lacks.