Skip to content

Commit

Permalink
- Finalizado Versao 4.00.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel-Oliveira committed Dec 16, 2018
1 parent 19e894b commit bf37356
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 9 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Projeto Para implementação do Java-Nfe Utilizando JAXB.
## Gostou do Projeto? Dê sua colaboração: [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=TX9K693QQYA6W)

Para Iniciar :
- Baixe o java-nfe-4.00.9b.jar (https://github.com/Samuel-Oliveira/Java_NFe/raw/master/java-nfe-4.00.9b.jar) e o adicione às bibliotecas de Seu Projeto.
- Baixe o java-nfe-4.00.9.jar (https://github.com/Samuel-Oliveira/Java_NFe/raw/master/java-nfe-4.00.9.jar) e o adicione às bibliotecas de Seu Projeto.
- Baixe o Schemas.rar (https://github.com/Samuel-Oliveira/Java_NFe/raw/master/Schemas.rar) e extraia na sua Máquina.

- Maven :
Expand All @@ -17,7 +17,7 @@ Para Iniciar :
<dependency>
<groupId>br.com.samuelweb</groupId>
<artifactId>java-nfe</artifactId>
<version>4.00.9b</version>
<version>4.00.9</version>
</dependency>
```

Expand All @@ -27,9 +27,12 @@ ________________________________________________________________________________

# Historico de Versões

## v4.00.9 -
## v4.00.9 - 16/12/2018
- Corrigido URLs PE
- Adicionado metodo Que remove Acentos Automaticamente.
- Corrigido URL Consulta Csdastro MG
- Corrigido URL Qrcode TO
- Atualizado Cacert

## v4.00.8 - 11/10/2018
- Adicionado Melhorias
Expand Down
Binary file renamed java-nfe-4.00.9b.jar → java-nfe-4.00.9.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>br.com.samuelweb</groupId>
<artifactId>java-nfe</artifactId>
<version>4.00.9b</version>
<version>4.00.9</version>
<name>Java_NFe</name>

<!-- Repositorios SVN Autocom -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static ConfiguracoesIniciaisNfe iniciaConfiguracoes(Estados estado, Strin
String pastaSchemas, Boolean log) {
new ConfiguracoesIniciaisNfe(estado, ambiente, certificado, pastaSchemas, log);
if (log) {
System.out.println("Api Java Nfe Versão 4.00.9b - Samuel Olivera - [email protected]");
System.out.println("Api Java Nfe Versão 4.00.9 - Samuel Olivera - [email protected]");
System.out.println("Certificado: " + certificado.getTipo().toUpperCase() + " - "
+ certificado.getNome().toUpperCase() + " - Vencimento: " + certificado.getVencimento());
System.out.println("Ambiente: " + (ambiente.equals("1") ? "Produção" : "Homologação") + " - Estado: "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public static ConfiguracoesWebNfe iniciaConfiguracoes(Estados estado, String amb
instance.setVersaoNfe();
instance.setLog(log);
if (log) {
System.out.println("Api Java Nfe Versão 4.00.9b - Samuel Olivera - [email protected]");
System.out.println("Api Java Nfe Versão 4.00.9 - Samuel Olivera - [email protected]");
System.out.println("Certificado: " + certificado.getTipo().toUpperCase() + " - "
+ certificado.getNome().toUpperCase() + " - Vencimento: " + certificado.getVencimento());
System.out.println("Ambiente: " + (ambiente.equals("1") ? "Produção" : "Homologação") + " - Estado: "
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/br/com/samuelweb/nfe/util/CacertUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class CacertUtil {

private static final int TIMEOUT_WS = 30;
private static final int PORTA = 443;
private static final String CACERT = "d:/java/util/Cacert/Cacert-11-10-2018";
private static final String CACERT = "d:/java/util/Cacert/Cacert-16-12-2018";
private static String cacert;

public static void main(String[] args) {
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/br/com/samuelweb/nfe/util/XmlUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,7 @@ public static String removeAcentos(String str) {
str = str.replaceAll("\n", "");
str = str.replaceAll("&", "E");
str = str.replaceAll(">\\s+<", "><");
CharSequence cs = new StringBuilder(str == null ? "" : str);
return Normalizer.normalize(cs, Normalizer.Form.NFKD).replaceAll("\\p{InCombiningDiacriticalMarks}+", "");
return Normalizer.normalize(str, Normalizer.Form.NFKD).replaceAll("\\p{InCombiningDiacriticalMarks}+", "").replaceAll("[^\\p{ASCII}]", "");

}

Expand Down
Binary file modified src/main/resources/Cacert
Binary file not shown.

0 comments on commit bf37356

Please sign in to comment.