Update BR docs to extended simples nacional - #511
Merged
Merged
Conversation
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the Brazil DF-e documentation examples to cover Simples Nacional issuers with additional regime-related metadata, and adds a new NFC-e (B2C) Simples example to the BR invoice accordion.
Changes:
- Extend the Brazil supplier party example with additional
br-nfse-*andbr-nfe-*extensions for incentives/regimes. - Add/adjust BR invoice examples to include state registration identities and CFOP on lines, plus a new NFC-e Simples Nacional example pair (
.min.mdx+ built.mdx). - Update the BR invoice accordion and supplier guide to explain the new/updated fields and add the new example section.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| snippets/parties/br/supplier.mdx | Extends the BR supplier party snippet with additional NFS-e/NF-e regime-related extensions. |
| snippets/invoices/br/dfe-product-invoice-simples.min.mdx | Adds customer state registration identity to support Simples Nacional credit scenarios. |
| snippets/invoices/br/dfe-product-invoice-simples.mdx | Regenerated built example reflecting the updated minimal input and new customer identity. |
| snippets/invoices/br/dfe-consumer-invoice.min.mdx | Adds per-line CFOP extension required for NFC-e classification. |
| snippets/invoices/br/dfe-consumer-invoice.mdx | Regenerated built example reflecting the updated minimal input with CFOP. |
| snippets/invoices/br/dfe-consumer-invoice-simples.min.mdx | Introduces a new minimal NFC-e Simples Nacional example (CSOSN/CST/CFOP). |
| snippets/invoices/br/dfe-consumer-invoice-simples.mdx | Adds the generated “Built version” for the new NFC-e Simples Nacional example. |
| snippets/invoices/br/accordion.mdx | Imports and documents the new example, and clarifies Simples Nacional notes around regimes/CSOSN/CFOP/state registration. |
| guides/br-dfe-supplier.mdx | Adds an Info note clarifying br-nfse-* vs br-nfe-* identities/extensions for suppliers. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated no new comments.
Comments suppressed due to low confidence (1)
snippets/invoices/br/accordion.mdx:129
- The NFC-e section says each line "must" include
br-nfe-cfop, but the BR NF-e FAQ table documents CFOP as optional for model 65 (NFC-e) and required for model 55. This is an internal documentation inconsistency that may confuse readers; consider aligning this bullet with the FAQ wording (or updating the FAQ in a follow-up if CFOP truly became mandatory for NFC-e).
- we've added the [`br-nfe-v4`](https://docs.gobl.org/addons/br-nfe-v4) addon with the `simplified` tag; this sets the [`br-nfe-model`](https://docs.gobl.org/addons/br-nfe-v4#model) extension to `65` (NFC-e),
- the customer is optional and in this example we've omitted it,
- extensions (`ext`) and identities have been used in multiple locations for fields whose values cannot be determined any other way,
- each line must include a [`br-nfe-cfop`](https://docs.gobl.org/addons/br-nfe-v4#cfop-fiscal-operations-and-services-code) extension to classify the fiscal operation, just as on an NF-e,
- the payment instructions key is set to `card`, which causes the [`br-nfe-payment-means`](https://docs.gobl.org/addons/br-nfe-v4#payment-method) extension to be set automatically to `03` (cartão de crédito),
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of APP-636