Skip to content
PokutsoftPokutsoft
GlobalAccounting/Localizations
Bolivia SIAT Inbound icon

Bolivia SIAT Inbound

Parse inbound Bolivia SIAT fiscal XML, validate the CUF and reconcile to vendor bills

Odoo 20.0Odoo 19.0Odoo 18.0

Bolivia SIAT Inbound

Parse supplier SIAT fiscal documents, validate the CUF, reconcile to vendor bills

A purpose-built tool for Bolivian taxpayers that receive electronic fiscal documents from their suppliers. It reads the supplier's SIAT XML (factura electronica and computarizada), decodes and validates the CUF (Codigo Unico de Factura) with the official Modulo 11 self-check, verifies the issuer NIT, and automatically reconciles each document against your vendor bills. A pure parser and reconciliation engine - it does not transmit anything to the SIN.

What it does

SIAT XML parser

Reads the canonical SIAT document structures (facturaElectronicaCompraVenta, facturaComputarizadaCompraVenta, export and sector variants), namespace-tolerant, using the Python standard library only. Header, parties, totals, payment method, currency and all detail lines are extracted into a clean Odoo document.

CUF decode & validation

The 54-digit CUF is decoded into its nine component fields (issuer NIT, date-time, branch, modality, emission type, invoice type, document sector, invoice number, sales point) and its Modulo 11 self-check digit is verified. Both the raw numeric form and the Base-16 presentation form are accepted and round-tripped, including the printed/QR form in which the CUFD control code follows the CUF: pass the document's CUFD and it is stripped before decoding. A value that is longer than a CUF and carries no CUFD is refused by name rather than decoded into a plausible but wrong issuer and date.

Automatic reconciliation

A weighted scoring engine matches each parsed document to the right vendor bill using CUF, issuer NIT, invoice number, total amount (within the tolerance you set on the company, in Bolivianos) and issue date. Amounts are only ever compared within the same currency, so a foreign-currency document is never matched to a same-numbered Boliviano bill. Matches are graded as reconciled, partial or unmatched, with a transparent per-criterion breakdown. The scheduled job runs only for companies that leave Auto-reconcile SIAT Documents ticked.

IVA & coherence checks

Computes the recoverable 13% IVA credito fiscal on credit-fiscal invoices, and validates that the document's line totals reconcile to its declared montoTotal, that the declared taxable base does not exceed that total (IVA in Bolivia is por dentro, so a base above the total would overstate the recoverable credit) and that the CUF-embedded NIT matches the document header.

Validation rules

CodeCheck
CUF-01/02CUF is well-formed and exactly 54 numeric digits (or valid Base-16).
CUF-03Modulo 11 self-check digit is correct.
CUF-04/05/06Modality, emission type and invoice type belong to the SIN catalogues.
CUF-07The CUF date-time field is a valid timestamp.
SIAT-10The NIT embedded in the CUF matches the document nitEmisor.
SIAT-11/12Issuer NIT and buyer document are structurally valid.
SIAT-13Detail line totals reconcile to the header montoTotal.

Key features

  • Batch import wizard - drop in one or many supplier SIAT XML files.
  • Per-document and per-vendor-bill reconciliation buttons, plus a scheduled auto-reconcile job.
  • CUF field on vendor bills with a one-click validation action.
  • Bolivia NIT field on partners and the company, with structural validation.
  • Decoded SIAT catalogues (modality, emission, document sector, payment method, currency) shown in clear labels.
  • Full audit trail: raw XML stored, validation results, match score and chatter history.

Scope & boundary

This module is a pure parser and reconciliation engine for documents you have already received from your suppliers. It does not connect to, authenticate against, or transmit anything to the SIN / SIAT platform, and it is not a certified invoicing system. All processing happens inside your own Odoo database.

Screenshots

Inbound Documents

Inbound Documents

Import Xml

Import Xml

Update date: 2026-10-01

User guides (PDF)

Related modules