-
Notifications
You must be signed in to change notification settings - Fork 0
SKYW-496-Atualizar biblioteca Java_NFe v4.00.41 - merge release para master_base #34
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
Conversation
Tagging version 4.00.40 4.00.40
…00.41-31-07-2025-Schemas-PL.009p1-e-PL.010b
…va_NFe-v4.00.41-31-07-2025-Schemas-PL.009p1-e-PL.010b SKYW-496 - Atualizar biblioteca java nfe v4.00.41
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 merges the release branch into the master_base branch, updating the Java NFe library to version 4.00.41. The update includes new test classes for various NFe printing functionalities and two new JasperReports templates.
- Addition of comprehensive test examples for NFe, NFCe, CCe, HTML, PDF, and Jasper printing functionality
- Introduction of new JasperReports templates for NFe invoice printing (DANFE) and NFCe consumer receipt printing
- Update to support modern printing requirements with enhanced layout and field handling
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 from NFe XML |
| TesteImpressaoPdfArquivo.java | Test class for PDF file generation from NFe XML |
| TesteImpressaoNFe.java | Test class for standard NFe PDF printing |
| TesteImpressaoNFCe.java | Test class for NFCe PDF printing with URL consultation |
| TesteImpressaoJasperPreview.java | Test class for Jasper preview functionality |
| TesteImpressaoHtml.java | Test class for HTML generation from NFe XML |
| TesteImpressaoCCe.java | Test class for CCe (Carta de Correção) PDF printing |
| danfe_fatura.jrxml | JasperReports template for invoice/duplicate printing in NFe |
| danfe.jrxml | Main JasperReports template for DANFE (NFe auxiliary document) |
| danfce.jrxml | JasperReports template for DANFCE (NFCe auxiliary document) |
| 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 12, 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 inconsistent format compared to other test files. This file uses "/d/teste/" while others use "d:/teste/". Consider standardizing the path format across all test files for consistency.
| ImpressaoNfeUtil.impressaoPdfArquivo(impressao, "/d/teste/teste-nfe.pdf"); | |
| ImpressaoNfeUtil.impressaoPdfArquivo(impressao, "d:/teste/teste-nfe.pdf"); |
| public static void main(String[] args) { | ||
| try { | ||
| //Faça a leitura do Arquivo | ||
| String xml = XmlNfeUtil.leXml("D:\\teste\\nfe.xml"); |
Copilot
AI
Aug 12, 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 backslashes (D:\teste\) while other test files use forward slashes (d:/teste/). Consider standardizing the path format across all test files for consistency and cross-platform compatibility.
| String xml = XmlNfeUtil.leXml("D:\\teste\\nfe.xml"); | |
| String xml = XmlNfeUtil.leXml("D:/teste/nfe.xml"); |
| //Faz a impressão e retorna um Jasper Preview | ||
| JasperViewer jasperViewer = ImpressaoNfeUtil.impressaoPreview(impressao); | ||
|
|
||
| //PAra mostrar o Preview |
Copilot
AI
Aug 12, 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's a typo in the comment: 'PAra' should be 'Para'.
| //PAra mostrar o Preview | |
| //Para mostrar o Preview |
Descrição
Esse PR faz merge da branch release para a branch master_base, aplicando as atualizações da biblioteca.
PR Relacionadas
Link da tarefa no JIRA
Serviços afetados
Prints do desenvolvimento