Chile localization for ERPNext v16 — RUT validation and SII document types

Hi everyone,
I’m sharing two MIT-licensed apps for Chilean ERPNext v16 sites.
They do not issue electronic invoices (no XML, CAF, or SII Track ID). They store Chilean tax identity and SII document data inside ERPNext so other apps — or a future e-invoicing integration — can use it.

rut_chileno

Validates the Chilean RUT (modulo-11 check digit) and saves it as 12.345.678-5.

bench get-app https://github.com/joil/rut_chileno
bench --site $SITE install-app rut_chileno

sii_doctype

Official SII DTE catalog (33, 34, 39, 41, 43, 46, 48 honorarios, 52, 56, 61, 110–112) plus DTE reference types (801 Purchase Order, 802, 803, etc.).
Adds an SII Chile section on Sales Invoice, Purchase Invoice, Delivery Note, and Purchase Receipt: document type, folio, and references. It checks folio uniqueness, credit/debit notes, and Chile-company rules.

bench get-app https://github.com/joil/sii_doctype
bench --site $SITE install-app sii_doctype

Requires ERPNext v16. Feedback, issues, and PRs are welcome.

1 Like