Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i would like suggest add the function of electronic invoice #91

Open
svjr opened this issue May 31, 2020 · 4 comments
Open

i would like suggest add the function of electronic invoice #91

svjr opened this issue May 31, 2020 · 4 comments

Comments

@svjr
Copy link

svjr commented May 31, 2020

Hello,

First, I would like to congratulate this idea of project! Nice!

I would like suggest add the function of electronic invoice.

Based on the 44-character code of an electronic key, to create one function to idnetify the type of document, for example:

Link: https://www.oobj.com.br/bc/article/como-%C3%A9-formada-a-chave-de-acesso-de-uma-nf-e-nfc-e-de-um-ct-e-e-um-mdf-e-281.html

@hyanmandian
Copy link
Member

Hello @svjr. I'm happy with your feedback, thanks!

About your idea, I really don't know what is it, I'm tried to read and I didn't understand to much... Can you explain your idea to us? I think that we can discuss and do something from that.

@svjr
Copy link
Author

svjr commented Jun 6, 2020

Hello hyanmandian!

So, in Brazil I fear the electronic invoice composed of 44 characters. There is a rule for the formation of each part of this character set.
See the example:

51080701212344000127550010000000981364112281
(02 digits) *** State code (UF) of the issuer
(04 digits) *** Year and month of issue of the NF-e (in AAMM format)
(14 digits) *** CNPJ of the NF-e issuer (CNPJ of your company)
(02 digits) *** NF-e model
(03 digits) *** NF-e series
(09 digits) *** NF-e number
(09 digits) *** NF-e code - Number generated by the system
(01 digits) *** Checksum - DV (Calculation in module 11).

My initial suggestion was to create features that could read and extract this information.

There are numerous types of electronic invoices, see:

Electronic Invoice (NFe) - model 55
Electronic Consumer Invoice (NFCe) - model 65
Electronic Bill of Lading (CTe) - model 57
Electronic Manifesto of Tax Documents (MDFe) - model 58

Here are some links that explain it a little better:
http://www.sistemaunico.com.br/arquivos/manuais/chave_nfe.pdf
https://bsoft.com.br/blog/tipos-de-documentos-fiscais-eletronicos

@svjr
Copy link
Author

svjr commented Jun 6, 2020

hyanmandian,

I developed the nf utility for the project ...
it finds in my repository, if it finds it pertinent, it can trigger a pull request.

https://github.com/svjr/brazilian-utils/tree/master/src/utilities/nf

@hyanmandian
Copy link
Member

Wow! Nice @svjr! I saw your fork and what awesome job! Please, do a pull request, we appreciate your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants