Dominican Republic e-CF Electronic Invoicing - Facturacion Electronica DGII, e-NCF, Comprobante Fiscal Electronico
by Modvanta https://modvantaapps.tech$ 58.83

Issue Dominican e-CF from your Odoo invoices: credito fiscal, consumo, notas de debito y credito, regimenes especiales, gubernamental and exportaciones, signed in Odoo with your certificate and sent to the DGII.
The module picks the e-CF type from the customer, takes the next e-NCF from the range the DGII gave you, checks the XML against the DGII schema of that type, gets the DGII token from the seed, sends the e-CF and reads the result by TrackId.
Please read: not yet tested against the live DGII services
Built from the public DGII documents: Formato e-CF v1.0 and the XSD of each type, Formato RFCE v1.0, Formato Anulacion de e-NCF v1.0, the signing guide Firmado de e-CF and Descripcion Tecnica Servicios DGII.
Calls to the DGII were tested against a local simulator shaped like those documents. You still have to pass the DGII certification process with your own certificate before you issue real e-CF.
Who it is for
Companies in the Dominican Republic that must issue e-CF under Ley 32-23 and want to do it from Odoo 19 with their own certificate, without a monthly provider fee, and the Odoo partners who set it up for them.
Key features
e-NCF and status on the invoice list
Each invoice shows its e-NCF and where it stands with the DGII: to send, sent, accepted, accepted with conditions, rejected or a connection problem. You can search by e-NCF.

Everything about the e-CF on the invoice
The e-CF tab keeps the type, the e-NCF and its range, the signing time, the security code, the TrackId, the signed XML named RNC+e-NCF.xml and every call to the DGII with its answer.

Printed e-CF with QR
The printed representation carries the e-NCF, its expiry date, the buyer RNC, ITBIS by rate, the QR that opens the DGII timbre query, the 6 character codigo de seguridad and the signature date.

Consumer invoices under RD$250,000 go as RFCE
A Factura de Consumo below the limit is signed in full and kept in Odoo, and the signed summary (RFCE) goes to the DGII consumer service. Above the limit the full e-CF is sent.

Consumer printout
The QR of a summarised consumer invoice points to the DGII FC timbre query, with your own query page printed below if you set one.

Exports in foreign currency (e-CF 46)
Customers abroad get e-CF 46 at ITBIS 0%, with the incoterm as Condiciones de entrega, the foreign id of the buyer, the amounts in DOP and the totals in the invoice currency with the exchange rate.

Credit and debit notes with the modified e-NCF
A credit note becomes e-CF 34 and a debit note e-CF 33, both pointing to the original e-NCF (or the old paper NCF), with the modification code and the 30 day credit note indicator.

e-NCF ranges with a low-number warning
Add each range the DGII authorised with its expiry date. Numbers are taken under a row lock, expired ranges are skipped, overlaps are refused and the list warns when few numbers are left.

Void unused numbers (ANECF)
At year end, void the numbers you will not use. The module signs the ANECF, checks it against the schema, sends it and never lets you void a number that was used.

Settings
Simulation, TesteCF, CerteCF or production, the certificate, a button that tests the DGII authentication, automatic sending and the texts of the printed e-CF.

How it works
- Install the module on a company with the Dominican chart of accounts (l10n_do) and DOP as currency.
- In Accounting settings start with Simulation, then TesteCF and CerteCF with your certificate, then production.
- Add your e-NCF ranges and tick Dominican e-CF on the sales journal.
- Post an invoice and press Send e-CF to DGII, or turn on automatic sending and let the scheduled job do it.
- The module asks the DGII for a seed, signs it, gets the token, sends the e-CF (or the RFCE) and reads the result.
- If the DGII rejects it and says the e-NCF can be reused, fix and send again with the same number; otherwise issue it with a new e-NCF.
Settings
- Environment: Simulation, TesteCF, CerteCF or eCF. Only DGII's own hosts are called.
- Certificate (.p12) of a person delegated for your RNC, stored by the Odoo certificate module.
- The DGII token is kept in a field only administrators can read, and renewed before it expires.
- Per sales journal: e-CF on or off and the Sucursal name.
- Per customer: regime (normal, regimen especial for e-CF 44, gubernamental for e-CF 45).
- Per tax: the indicador de facturacion when the rate alone is not enough.
What was tested
- 48 automated tests: every e-CF type of this module, ITBIS 18/16/0 and exento, discounts and tax-included prices, USD exports, notes, RFCE, ranges, voiding, rejections with reusable and burned sequences, retries, the printed e-CF and access rights.
- Each e-CF, RFCE, ANECF and signed seed is validated against the DGII XSD and its signature is verified in the tests.
- Installed and tested next to our DGII 606/607/608 reports module: the accepted e-NCF fills its NCF field and its income type is used (64 tests together).
What is not included
- Receiving e-CF from suppliers as an electronic receptor (the receptor web services and aprobacion comercial).
- Purchase types e-CF 41, 43 and 47.
- Contingency printouts and the DGII certification test set loader.
- Propina legal and other additional taxes in ImpuestosAdicionales: invoices with them are stopped before sending.
FAQ
Do I need a provider?
No. Odoo signs with your certificate and calls the DGII services directly.
Can I try it without a certificate?
Yes. Simulation runs the whole flow locally with a throwaway key; those e-CF have no fiscal value.
What happens when the DGII does not answer?
The e-CF keeps its e-NCF and signed XML; the next try sends exactly the same bytes.
Does it work with your 606/607 reports module?
Yes. When both are installed, the accepted e-NCF goes into the NCF field of the reports module and its income type is used on the e-CF.
Which consumer invoices go as summary?
Type 32 under RD$250,000. The full signed e-CF stays attached to the invoice in case the DGII asks for it.
En espanol
Emita e-CF desde Odoo: credito fiscal (31), consumo (32), notas de debito (33) y credito (34), regimenes especiales (44), gubernamental (45) y exportaciones (46), firmados con su certificado y enviados a la DGII.
Incluye rangos de e-NCF con aviso, resumen RFCE para consumo menor a RD$250,000, anulacion de e-NCF (ANECF), consulta por TrackId y representacion impresa con QR y codigo de seguridad. Debe completar la certificacion de la DGII antes de emitir e-CF reales.
Compatibility
Odoo 19 Community and Enterprise. Depends on Dominican Republic accounting (l10n_do), debit notes and the certificate module, all part of Odoo.
Support
Write to modvantaapps@gmail.com.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
| Lines of code | 1454 |
| Technical Name |
mdv_do_ecf |
| License | OPL-1 |
| Website | https://modvantaapps.tech |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module