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.
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"); |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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"); |
There was a problem hiding this comment.
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