[EN/PT-BR] Look who's back again! Creating more things with Claude.
EEEE AEEEEEEEEEEEEEEEEEEEE
I'm back again! But this time it's nothing too personal, it's more of a project for the company where I work. I suggested creating an intranet, like a website for all employees to access and use various tools that I will create.
The first is an XML validation for issued invoices, electronic invoices (NFe) and electronic consumer invoices (NFCe), some crazy things here in Brazil in terms of sending them to the respective agencies and thus showing everything you are selling or shipping.
The summary is quite simple: TAXES, as always, Brazil and taxes are friends, married and lovers, for the government, the more the better. So, sending the files to the SEFAZ (State Finance Secretariat) is what helps them know what you're doing.
Initially, you upload the XML file and click the "Validate XML" button. A series of validations will then be performed, and the idea is to get the most complete feedback possible on what is wrong.
To begin, a repository folder with a PDF file of approximately 4 MB and about 130 pages, called (Taxpayer Guidance Manual - MOC - version 7.0 - NF-e and NFC-e), was created. This consumed quite a few of Claude's credits haha, but it was enough to make the initial version.
After that, another folder called "Examples" with XMLs of authorized invoices, that is, invoices received by SEFAZ (Brazilian tax authority) and accepted, which worked. These XMLs will be constant examples of how the website should look at the XML I'm validating, thus providing a solid basis for them to follow this example for validation.
So far it has worked and the validation is OK. So, who knows, maybe I'll get some bonus for putting in the effort, right?
EEEE AEEEEEEEEEEEEEEEEEEEE
Ataco novamente! Mas agora não é nada muito pessoal, é mais um projeto para a empresa onde trabalho. Dei a ideia de criar uma intranet, tipo, um site para todos os funcionários acessarem e terem como acessar várias ferramentas que irei criar.
A primeira é uma validação de XML de notas emitidas, nota fiscal eletrônica (NFe) e Nota Fiscal consumidor eletrônica (NFCe), algumas loucuras aqui do Brasil em questão de enviar para os órgãos respectivos e assim mostrar tudo o que você está vendendo ou enviando.
O resumo é bem simples: IMPOSTO, como sempre, Brasil e imposto são amigos, casados e amantes, para o governo da picanha quanto mais melhor. Então, você enviar os arquivos para a SEFAZ é o que ajuda eles a saberem o que você anda fazendo.
A princípio, é carregar o arquivo XML e clicar no botão “Validar XML”, assim, uma série de validações será feita e a ideia é ter o retorno mais completo possível sobre o que está errado.
Para começar, uma pasta repositório com um arquivo PDF de mais ou menos 4 MB e umas 130 e poucas páginas, chamado “Manual de Orientação ao Contribuinte - MOC - versão 7.0 - NF-e e NFC-e”. Isso consumiu bastante créditos da Claude haha, mas deu para fazer a versão inicial.
Depois disso, outra pasta chamada "Exemplos" com XMLs de notas autorizadas, ou seja, notas recebidas pela SEFAZ e foram aceitas, que deram certo. Esses XML serão exemplos constantes de como o site deve olhar para o XML que estou validando e assim ter uma base sólida de que eles têm que seguir esse exemplo para validar.
Até o momento têm dado certo e a validação está OK. Então, quem sabe não ganho algum bônus por estar me empenhando nisso, não é mesmo?
My Game: https://horizonforge-production.up.railway.app/lobby
Follow me on X (Formerly Twitter)
🔥Please, consider helping by using my reference links🔥
| Post To Earn | DePIN | Win SATS | Win SATS | Have Fun To Earn |
| Publish0x | Honeygain | Slice | ZBD | Rumble Arcade |
Leave [EN/PT-BR] Look who's back again! Creating more things with Claude. to:
Read more #dev posts
Best Posts From Yan Patrick
We have not curated any of shiftrox's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From Yan Patrick
- [EN/PT-BR] Sky and clouds on a workday at the small farm.
- [EN/PT-BR] To be a little more grateful
- [EN/PT-BR] Hive Grove: Improvements to sharing and other things.
- [EN/PT-BR] I like night walks.
- [EN/PT-BR] Hive Grove: Some post update improvements.
- [EN/PT-BR] Hive Grove: More images and wishlist.
- [EN/PT-BR] Hive Grove: Small changes and new images
- [EN/PT-BR] Hive Grove Update: Send items, inventory and notification bell.
- [EN/PT-BR] Hive Grove: Theory and reality regarding game creation