cadrumo.domain.calculations.registry._invoice_row_materialization module¶
Private row materialisation for invoice-shaped registry bindings.
- InvoiceGrouping¶
How invoice rows are grouped before an M349 or M347 binding resolves them.
Public rather than underscore-private because invoice_bindings needs it too. It was private here and separately restated there, byte for byte, which is this campaign’s most frequent cause: a definition that cannot be reached is a definition that gets rewritten.
alias of
Literal[‘operator_clave’, ‘operator_clave_period’, ‘contraparte_clave’]
- m349_public_row_union(rows)[source]¶
Append payable acquisition rows onto the public Modelo 349 row ids.
- build_invoice_rows(grouping, observations, *, m347_threshold_filter)[source]¶
- Return type:
- Parameters:
grouping (Literal['operator_clave', 'operator_clave_period', 'contraparte_clave'])
observations (tuple[InvoiceObservation, ...])
m347_threshold_filter (Callable[[tuple[InvoiceObservation, ...]], tuple[InvoiceObservation, ...]])