Searching for Brazilian invoices #2069
paulobreim
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In many cases, when we are analyzing a HD, it is necessary to locate invoices, which are mostly represented by XML files. I have a case exactly like this and I used the following sequence that I am passing on to colleagues who need it.
It's not 100% perfect but you can use it without any problems.
1 - Open the file conf/ReghexConfig.txt, and write the line at the end of file.
BR_CHAVE_DANFE = \b(11|12|13|14|15|16|17|21|22|23|24|25|26|27|28|29|31|32|33|35|41|42|43|50|51|52|53)[1-2]{1}[0-9]{1}[0-1]{1}[0-9]{1}[0-9]{14}(55|65)[0-9]{22}\b
Run IPED normally.
When you search for IPED you will see something like this:
2 - Select the XML category, check the duplicate filter and select all files in the metadata, as shown in the image below.
3 -Select all xml files and export to any location.
4 - Now that you have all the XMLs saved, you will need a program that reads these files and shows the details.
This program is free and can be downloaded here:
https://www.nfe.fazenda.gov.br/portal/download.aspx?tipoConteudo=vBO/4eBj5F4=
5- Install the program, go to Files, Import, and select all the files you exported.
You will have a screen where you can see the details of the NFE.
6 - On the same government website, you can use the DANFE number to see the invoice itself, or you can also see it via the link https://www.webdanfe.com.br/
7 - Obviously you can change the Regex to, for example, select the invoices from a specific State, which are the first 2 characters.
11-Rondônia
12-Acre
13-Amazonas
14-Roraima
15-Pará
16-Amapá
17-Tocantins
21-Maranhão
22-Piauí
23-Ceará
24-Rio Grande do Norte
25-Paraíba
26-Pernambuco
27-Alagoas
28-Sergipe
29-Bahia
31-Minas Gerais
32-Espírito Santo
33-Rio de Janeiro
35-São Paulo
41-Paraná
42-Santa Catarina
43-Rio Grande do Sul
50-Mato Grosso do Sul
51-Mato Grosso
52-Goiás
53-Distrito Federal
Beta Was this translation helpful? Give feedback.
All reactions