Exportação Fiscal : ECF e RMD (issue 8120)
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@64951 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
1727ba6b53
commit
2bde7f6696
|
@ -1323,6 +1323,7 @@ public class FiscalHibernateDAO extends HibernateDaoSupport implements FiscalDAO
|
||||||
registro.setValorTotal(BigDecimal.valueOf(Double.valueOf(rs.getString("totalvenda")) / 100));
|
registro.setValorTotal(BigDecimal.valueOf(Double.valueOf(rs.getString("totalvenda")) / 100));
|
||||||
registro.setValorIsentas(totalIsenta);
|
registro.setValorIsentas(totalIsenta);
|
||||||
registro.setEstabelecimentoECF(rs.getString("codestabelecimentoimpressora"));
|
registro.setEstabelecimentoECF(rs.getString("codestabelecimentoimpressora"));
|
||||||
|
registro.setNumeroSerie(rs.getString("numserie"));
|
||||||
|
|
||||||
retorno.add(registro);
|
retorno.add(registro);
|
||||||
}
|
}
|
||||||
|
|
|
@ -203,6 +203,7 @@ public class ExportacaoFiscal {
|
||||||
BigDecimal valorTotal = registro.getValorTotal();
|
BigDecimal valorTotal = registro.getValorTotal();
|
||||||
BigDecimal valorIsentas = registro.getValorIsentas();
|
BigDecimal valorIsentas = registro.getValorIsentas();
|
||||||
String estabelecimentoECF = registro.getEstabelecimentoECF();
|
String estabelecimentoECF = registro.getEstabelecimentoECF();
|
||||||
|
String numeroSerie = registro.getNumeroSerie();
|
||||||
|
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append("CFC").append(SEPARADOR);
|
sb.append("CFC").append(SEPARADOR);
|
||||||
|
@ -239,7 +240,8 @@ public class ExportacaoFiscal {
|
||||||
sb.append("").append(SEPARADOR); // Posição 32
|
sb.append("").append(SEPARADOR); // Posição 32
|
||||||
sb.append("V").append(SEPARADOR);
|
sb.append("V").append(SEPARADOR);
|
||||||
sb.append(formataCaracter(VAZIO, false, 15)).append(SEPARADOR); // Posição 34
|
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);
|
writer.print(sb.toString() + UtiliteriasFiscal.QUEBRA_LINHA);
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,6 +15,7 @@ public class ExportacaoECFTipoCFC {
|
||||||
private BigDecimal valorIsentas;
|
private BigDecimal valorIsentas;
|
||||||
private String estabelecimentoECF;
|
private String estabelecimentoECF;
|
||||||
private String ecf;
|
private String ecf;
|
||||||
|
private String numeroSerie;
|
||||||
|
|
||||||
public ExportacaoECFTipoCFC() {
|
public ExportacaoECFTipoCFC() {
|
||||||
|
|
||||||
|
@ -116,8 +117,16 @@ public class ExportacaoECFTipoCFC {
|
||||||
this.ecf = ecf;
|
this.ecf = ecf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getNumeroSerie() {
|
||||||
|
return numeroSerie;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNumeroSerie(String numeroSerie) {
|
||||||
|
this.numeroSerie = numeroSerie;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
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 + "]";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue