aeat.application.modelo._ledger_evidence_gate module¶
Filing-grade ledger evidence gates for modelo lifecycle finish lines.
These helpers inspect the CalculationRevision evidence bundle before
verification, export, or local filing lets deductible input IVA proceed.
- ledger_evidence_row_missing_deductible_vat_evidence(row)[source]¶
Return whether an evidence row claims deductible IVA without linked proof.
- Return type:
- Parameters:
row (LedgerEvidenceRow)
- deductible_vat_evidence_gap_transaction_ids(revision)[source]¶
Return ledger transaction ids whose bundled evidence cannot support deduction.
- Parameters:
revision (
CalculationRevision) –CalculationRevisioncarrying the ledger filing evidence rows to inspect.- Return type:
- raise_if_deductible_vat_evidence_missing(revision, *, error_type, surface, suggestion)[source]¶
Raise
error_typewhen a finalized revision has unsupported input IVA.- Parameters:
revision (
CalculationRevision) –CalculationRevisionwhose bundled ledger evidence is checked before the lifecycle finish line.error_type (
type[ModeloError]) – Modelo error class raised when deductible IVA lacks evidence.surface (
str) – Human-readable lifecycle surface used in the refusal message.suggestion (
str) – Operator command or action hint attached to the refusal.
- Return type: