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-87c2c4800839master
parent
0c80e08f16
commit
b5ded0bffd
|
@ -143,6 +143,13 @@ public class BusquedaExportacaoFiscalController extends MyGenericForwardComposer
|
|||
InputStream isFile = new FileInputStream(arquivoTxt);
|
||||
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);
|
||||
|
||||
if (arquivoTxt != null) {
|
||||
|
|
Loading…
Reference in New Issue