cadrumo.application.filing._m200_projection module¶
Project modelo 200’s repeated party, holding and establishment rows.
Modelo 200’s generated layout carries repeated projection-kind fields.
_projection_plan_for_layout built a plan for M303 alone, so every one of them raised
“requires a snapshot-owned render context” and the Impuesto sobre Sociedades return could
not export at all. It failed CLOSED – refusing rather than emitting wrong bytes – but it
did not file, and nothing detected that.
One occurrence is emitted per row a family actually carries. A family with no rows emits no
occurrence, which is what AEAT expects of a page a filer has nothing to put on; whether
that absence is admissible is the record’s own required flag, checked by the caller.
Unlike modelo 296’s perceptores, whose data already exists as Withholding296Observation,
these rows are genuinely operator-supplied – the application holds no separate detail
register elsewhere – so they are read from the typed profile rather than projected from
an existing substrate.
- build_m200_filing_projection_plan(*, registry_snapshot, layout, producer_snapshot)[source]¶
Project every modelo 200 repeated-row family from one selected snapshot and layout.
Core types:
RegistrySnapshot.- Return type:
- Parameters:
registry_snapshot (RegistrySnapshot)
layout (ExportLayoutDefinition)
producer_snapshot (FilingProducerSnapshot)