cadrumo.application.modelo._m349_ledger_guard module¶
Modelo 349 raw-ledger safety guard.
Modelo 349 operator rows require counterparty identity fields that raw ledger transactions do not carry. The supported source paths are business invoices or explicit operador detail rows, so raw intra-community ledger classifications must fail closed instead of producing a zero-row declaration.
The IVA categories that make a ledger row intra-community are not restated here: the selected revision declares them on its ledger guard binding, and a revision that declares no such binding has no raw-ledger obligation to enforce.
- raise_if_m349_intracom_ledger_rows_need_operator_rows(*, work_unit, revision, transaction_repository, detail_rows)[source]¶
Refuse M349 calculation when raw ledger rows lack declarable operator rows.
Core types:
ModeloRevision.- Return type:
- Parameters:
work_unit (WorkUnit)
revision (ModeloRevision)
transaction_repository (TransactionCatalogueRepositoryProtocol)
detail_rows (tuple[Modelo184MemberRow | Modelo232VinculadaRow | Modelo349OperadorRow | Modelo349RectificacionRow | Modelo347ContraparteRow | Modelo210AgrupacionRentaRow, ...])