diff --git a/src/com/rjconsultores/ventaboletos/dao/hibernate/FiscalHibernateDAO.java b/src/com/rjconsultores/ventaboletos/dao/hibernate/FiscalHibernateDAO.java index 2361d2e55..3a4f1a2d9 100644 --- a/src/com/rjconsultores/ventaboletos/dao/hibernate/FiscalHibernateDAO.java +++ b/src/com/rjconsultores/ventaboletos/dao/hibernate/FiscalHibernateDAO.java @@ -1322,7 +1322,8 @@ public class FiscalHibernateDAO extends HibernateDaoSupport implements FiscalDAO registro.setCro(Integer.valueOf(rs.getString("cro"))); registro.setValorTotal(BigDecimal.valueOf(Double.valueOf(rs.getString("totalvenda")) / 100)); registro.setValorIsentas(totalIsenta); - registro.setEstabelecimentoECF(rs.getString("codestabelecimentoimpressora")); + registro.setEstabelecimentoECF(rs.getString("codestabelecimentoimpressora")); + registro.setNumeroSerie(rs.getString("numserie")); retorno.add(registro); } diff --git a/src/com/rjconsultores/ventaboletos/utilerias/exportacaofiscal/ExportacaoFiscal.java b/src/com/rjconsultores/ventaboletos/utilerias/exportacaofiscal/ExportacaoFiscal.java index 0fa730b4f..ea2564903 100644 --- a/src/com/rjconsultores/ventaboletos/utilerias/exportacaofiscal/ExportacaoFiscal.java +++ b/src/com/rjconsultores/ventaboletos/utilerias/exportacaofiscal/ExportacaoFiscal.java @@ -203,6 +203,7 @@ public class ExportacaoFiscal { BigDecimal valorTotal = registro.getValorTotal(); BigDecimal valorIsentas = registro.getValorIsentas(); String estabelecimentoECF = registro.getEstabelecimentoECF(); + String numeroSerie = registro.getNumeroSerie(); StringBuilder sb = new StringBuilder(); sb.append("CFC").append(SEPARADOR); @@ -239,7 +240,8 @@ public class ExportacaoFiscal { sb.append("").append(SEPARADOR); // Posição 32 sb.append("V").append(SEPARADOR); sb.append(formataCaracter(VAZIO, false, 15)).append(SEPARADOR); // Posição 34 - sb.append(formataCaracter(estabelecimentoECF, false, 4)); + sb.append(formataCaracter(estabelecimentoECF, false, 4)).append(SEPARADOR); + sb.append(formataCaracter(numeroSerie, false, 6)); writer.print(sb.toString() + UtiliteriasFiscal.QUEBRA_LINHA); } diff --git a/src/com/rjconsultores/ventaboletos/utilerias/exportacaofiscal/vo/ExportacaoECFTipoCFC.java b/src/com/rjconsultores/ventaboletos/utilerias/exportacaofiscal/vo/ExportacaoECFTipoCFC.java index 19d5a38e5..4cb086111 100644 --- a/src/com/rjconsultores/ventaboletos/utilerias/exportacaofiscal/vo/ExportacaoECFTipoCFC.java +++ b/src/com/rjconsultores/ventaboletos/utilerias/exportacaofiscal/vo/ExportacaoECFTipoCFC.java @@ -15,6 +15,7 @@ public class ExportacaoECFTipoCFC { private BigDecimal valorIsentas; private String estabelecimentoECF; private String ecf; + private String numeroSerie; public ExportacaoECFTipoCFC() { @@ -116,8 +117,16 @@ public class ExportacaoECFTipoCFC { this.ecf = ecf; } + public String getNumeroSerie() { + return numeroSerie; + } + + public void setNumeroSerie(String numeroSerie) { + this.numeroSerie = numeroSerie; + } + @Override public String toString() { - return "ExportacaoECFTipoCFC [estabelecimento=" + estabelecimento + ", dataEmissao=" + dataEmissao + ", numeroIdentificacaoECF=" + numeroIdentificacaoECF + ", cooReducaoZ=" + cooReducaoZ + ", cooInicial=" + cooInicial + ", cooFinal=" + cooFinal + ", contadorReducao=" + contadorReducao + ", cro=" + cro + ", valorTotal=" + valorTotal + ", valorIsentas=" + valorIsentas + ", estabelecimentoECF=" + estabelecimentoECF + ", ecf=" + ecf + "]"; + return "ExportacaoECFTipoCFC [estabelecimento=" + estabelecimento + ", dataEmissao=" + dataEmissao + ", numeroIdentificacaoECF=" + numeroIdentificacaoECF + ", cooReducaoZ=" + cooReducaoZ + ", cooInicial=" + cooInicial + ", cooFinal=" + cooFinal + ", contadorReducao=" + contadorReducao + ", cro=" + cro + ", valorTotal=" + valorTotal + ", valorIsentas=" + valorIsentas + ", estabelecimentoECF=" + estabelecimentoECF + ", ecf=" + ecf + ", numeroSerie=" + numeroSerie + "]"; } }