Exportação Fiscal : ECF e RMD (issue 8120)

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@65754 d1611594-4594-4d17-8e1d-87c2c4800839
master
alberto 2017-02-08 20:19:08 +00:00
parent 0c80e08f16
commit b5ded0bffd
1 changed files with 7 additions and 0 deletions

View File

@ -143,6 +143,13 @@ public class BusquedaExportacaoFiscalController extends MyGenericForwardComposer
InputStream isFile = new FileInputStream(arquivoTxt); InputStream isFile = new FileInputStream(arquivoTxt);
String nomeArquivo = arquivoTxt.getName(); String nomeArquivo = arquivoTxt.getName();
if (nomeArquivo.contains(".fs")) {
String nome = nomeArquivo.substring(0, nomeArquivo.length() - 3);
String[] parte = nome.split("-");
nomeArquivo = parte[0].toString() + ".fs";
}
Filedownload.save(isFile, contentType, nomeArquivo); Filedownload.save(isFile, contentType, nomeArquivo);
if (arquivoTxt != null) { if (arquivoTxt != null) {