-
Notifications
You must be signed in to change notification settings - Fork 0
SKYW-496 - Atualizar biblioteca java nfe v4.00.41 #33
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
SKYW-496 - Atualizar biblioteca java nfe v4.00.41 #33
Conversation
Tagging version 4.00.40 4.00.40
…00.41-31-07-2025-Schemas-PL.009p1-e-PL.010b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the Java NF-e library to version 4.00.41 with several community-driven enhancements. The update includes URL changes for various state tax systems, layout updates following Technical Note 2025.002.v.1.20, and the addition of new NFe, NFCe, and CCe printing capabilities.
Key changes include:
- Updated URLs for AM cadastral consultation, GO QRCode, and RN NFCe consultation
- Added comprehensive printing functionality for NFe, NFCe, and CCe documents
- Updated RT layout according to latest technical specifications
Reviewed Changes
Copilot reviewed 30 out of 37 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| TesteImpressaoPdfByte.java | Test class for PDF byte array generation |
| TesteImpressaoPdfArquivo.java | Test class for PDF file generation |
| TesteImpressaoNFe.java | Test class for NFe printing |
| TesteImpressaoNFCe.java | Test class for NFCe printing |
| TesteImpressaoJasperPreview.java | Test class for Jasper report preview |
| TesteImpressaoHtml.java | Test class for HTML generation |
| TesteImpressaoCCe.java | Test class for CCe printing |
| danfe_fatura.jrxml | JasperReports template for invoice data |
| danfe.jrxml | Main DANFE template with extensive layout and fields |
| danfce.jrxml | DANFCE template for consumer electronic invoices |
| ImpressaoDTO impressao = ImpressaoNfeUtil.impressaoPadraoNFe(xml); | ||
|
|
||
| //Faz a impressão em pdf File passando o caminho do Arquivo | ||
| ImpressaoNfeUtil.impressaoPdfArquivo(impressao, "/d/teste/teste-nfe.pdf"); |
Copilot
AI
Aug 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The file path uses an absolute path with Unix-style path separator. This creates platform dependency issues. Consider using relative paths or Path.of() for better cross-platform compatibility.
| ImpressaoNfeUtil.impressaoPdfArquivo(impressao, "/d/teste/teste-nfe.pdf"); | |
| ImpressaoNfeUtil.impressaoPdfArquivo(impressao, Path.of("d:", "teste", "teste-nfe.pdf").toString()); |
| //Faz a impressão e retorna um Jasper Preview | ||
| JasperViewer jasperViewer = ImpressaoNfeUtil.impressaoPreview(impressao); | ||
|
|
||
| //PAra mostrar o Preview |
Copilot
AI
Aug 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a typo in the comment. 'PAra' should be 'Para'.
| //PAra mostrar o Preview | |
| //Para mostrar o Preview |
|
|
||
| public class TesteImpressaoJasperPreview { | ||
|
|
||
| public static void main(String[] args) { | ||
| try { | ||
| //Faça a leitura do Arquivo | ||
| String xml = XmlNfeUtil.leXml("D:\\teste\\nfe.xml"); |
Copilot
AI
Aug 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The file path uses Windows-style absolute path with escaped backslashes. This creates platform dependency and maintainability issues. Consider using relative paths or standardized path separators for better portability.
| public class TesteImpressaoJasperPreview { | |
| public static void main(String[] args) { | |
| try { | |
| //Faça a leitura do Arquivo | |
| String xml = XmlNfeUtil.leXml("D:\\teste\\nfe.xml"); | |
| import java.nio.file.Paths; | |
| public class TesteImpressaoJasperPreview { | |
| public static void main(String[] args) { | |
| try { | |
| //Faça a leitura do Arquivo | |
| String xml = XmlNfeUtil.leXml(Paths.get("teste", "nfe.xml").toString()); |
Descrição
Atualiza a biblioteca Java NF-e com a comunidade, trazendo as seguintes alterações.
O que entra nessa atualização:
PR Relacionadas
Link da tarefa no JIRA
https://asaasdev.atlassian.net/browse/SKYW-496
Serviços afetados
Prints do desenvolvimento