-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #427 from invopop/br-issuer
Brazil suppliers
- Loading branch information
Showing
27 changed files
with
1,178 additions
and
145 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package nfse | ||
|
||
import ( | ||
"github.com/invopop/gobl/cbc" | ||
"github.com/invopop/gobl/i18n" | ||
) | ||
|
||
// Brazilian identity keys required to issue NFS-e documents. In an initial | ||
// assessment, these identities do not seem to apply to documents other than | ||
// NFS-e. However, if when implementing other Fiscal Notes it is found that some | ||
// of these extensions are common, they can be moved to the regime or to a | ||
// shared addon. | ||
const ( | ||
IdentityKeyMunicipalReg = "br-nfse-municipal-reg" | ||
IdentityKeyNationalReg = "br-nfse-national-reg" | ||
) | ||
|
||
var identities = []*cbc.KeyDefinition{ | ||
{ | ||
Key: IdentityKeyMunicipalReg, | ||
Name: i18n.String{ | ||
i18n.EN: "Company Municipal Registration", | ||
i18n.PT: "Inscrição Municipal da Empresa", | ||
}, | ||
}, | ||
{ | ||
Key: IdentityKeyNationalReg, | ||
Name: i18n.String{ | ||
i18n.EN: "Company National Registration", | ||
i18n.PT: "Inscrição Nacional da Empresa", | ||
}, | ||
}, | ||
} |
This file contains 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
Oops, something went wrong.