Install
Works with Drupal: ^10.3 || ^11 || ^12Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
50.89 KB
MD5: 893ca12c1897ac634193fb6bad0bb69a
SHA-1: 081a6f44f1a61f0a5246f886d6f4b14f4dffdad4
SHA-256: 3ef8d596fc17bee8be8cb58774cee9ca286610fe3f47fa583d87bee6da22c168
Download zip
87.98 KB
MD5: 7ed899e71f7ccf27490eabb831ce3948
SHA-1: 688d60805e040398882a9f3ddd2203c376f45700
SHA-256: 6da434c7936d4847c3de1692a0086ef09d0d57975bf280bfd5cbe475a0d2d8c4
Release notes
First alpha release. Issues Brazilian electronic invoices (NF-e and NFS-e) through Anuen. Not ready for production yet: test it with an Anuen testing token.
Anuen (base module)
- API client for customers, products, services, NF-e and NFS-e.
- Local invoice entity with PDF and XML download.
- Signed webhooks (HMAC-SHA256), handled once per event, ignoring out-of-order data.
- Cron fallback that refreshes invoices still in progress.
- Idempotent issuing: a retry never creates a duplicate invoice.
- Token and webhook secret read from settings.php, never from exported config.
- Connection test and status report checks.
Anuen Commerce (submodule)
- Issues the NF-e automatically when an order is fully paid (queued, run on cron).
- Invoices tab on the order: issue, resend rejected, cancel, correction letter, PDF/XML.
- NF-e tax data field on product variations (NCM, CEST, CFOP, origin, CSOSN, unit, GTIN).
- Configurable defaults for CFOP, payment method, freight and product tax data.
- Order activity log entries (with commerce_log).
hook_anuen_commerce_nfe_alter()to customize the NF-e.
Known limitations
- Shipping and fees are not included in the NF-e: the Anuen API has no fields for them.
- The defaults fit a Simples Nacional retailer. Check your tax codes with an accountant.
- Tested on Drupal 11. Drupal 10.3+ and 12 are supported but not yet tested on a real site.