javascript icon indicating copy to clipboard operation
javascript copied to clipboard

i would like suggest add the function of electronic invoice

Open svjr opened this issue 6 years ago • 5 comments

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

svjr avatar May 31 '20 21:05 svjr

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.

hyanmandian avatar Jun 06 '20 05:06 hyanmandian

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 avatar Jun 06 '20 11:06 svjr

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

svjr avatar Jun 06 '20 13:06 svjr

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

hyanmandian avatar Jun 06 '20 19:06 hyanmandian

Hey @svjr does it still relevant? We migrate the whole project to v2, it should be simple to work with now!

hyanmandian avatar Jan 21 '26 18:01 hyanmandian