fixes bug#22868
dev: Celio qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@108453 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
deeeceb2f5
commit
8ad9bebc1b
|
@ -34,6 +34,7 @@ public class SapHibernateDAO extends GenericHibernateDAO<FechamentoCntcorrente,
|
|||
sb.append(" fc.total, ");
|
||||
sb.append(" es.cveestado, ");
|
||||
sb.append(" pv.numpuntoventa, ");
|
||||
sb.append(" pv.numdocpuntoventa, ");
|
||||
sb.append(" pv.nombpuntoventa, ");
|
||||
sb.append(" fc.empresa_id, ");
|
||||
sb.append(" emp.nombempresa, ");
|
||||
|
@ -76,6 +77,7 @@ public class SapHibernateDAO extends GenericHibernateDAO<FechamentoCntcorrente,
|
|||
List<FechamentoCntCorrenteVO> retorno = new ArrayList<FechamentoCntCorrenteVO>();
|
||||
|
||||
for(Object[] tupla : list){
|
||||
String cnpj = tupla[5].toString().replaceAll("[^0-9]", "");
|
||||
|
||||
FechamentoCntCorrenteVO fcc = new FechamentoCntCorrenteVO();
|
||||
fcc.setFechamentocntcorrenteId( Long.valueOf(tupla[0].toString()));
|
||||
|
@ -83,16 +85,17 @@ public class SapHibernateDAO extends GenericHibernateDAO<FechamentoCntcorrente,
|
|||
fcc.setTotal( (BigDecimal)tupla[2] );
|
||||
fcc.setUfEmpresa(tupla[3].toString());
|
||||
fcc.setNumPuntoVenta(tupla[4].toString());
|
||||
fcc.setNombpuntoventa(tupla[5].toString());
|
||||
fcc.setCnpjPuntoVenta(cnpj);
|
||||
fcc.setNombpuntoventa(tupla[6].toString());
|
||||
|
||||
fcc.setEmpresaId( Integer.valueOf( tupla[6].toString() ) );
|
||||
fcc.setNombEmpresa( tupla[7].toString());
|
||||
fcc.setEmpresaId( Integer.valueOf( tupla[7].toString() ) );
|
||||
fcc.setNombEmpresa( tupla[8].toString());
|
||||
|
||||
fcc.setIntegradoSap( tupla[8]==null?false:tupla[8].toString().equals("1")?true:false );
|
||||
fcc.setIntegradoSap( tupla[9]==null?false:tupla[9].toString().equals("1")?true:false );
|
||||
|
||||
fcc.setAnofechamento(tupla[9].toString());
|
||||
fcc.setMesfechamento(tupla[10].toString());
|
||||
fcc.setFeclancamento(tupla[11].toString());
|
||||
fcc.setAnofechamento(tupla[10].toString());
|
||||
fcc.setMesfechamento(tupla[11].toString());
|
||||
fcc.setFeclancamento(tupla[12].toString());
|
||||
|
||||
retorno.add(fcc);
|
||||
}
|
||||
|
|
|
@ -75,7 +75,7 @@ public class IntegracaoSapRest {
|
|||
json.append("{");
|
||||
json.append(" \"ID_LEGADO\": \"010\",");
|
||||
json.append(" \"AGENCIA\": {");
|
||||
json.append(" \"KUNNR\": \"").append( formatarValorPorTamanhoZeroEsquerda(fcc.getNumPuntoVenta(), 10)).append("\"");
|
||||
json.append(" \"TSTCD1\": \"").append( fcc.getCnpjPuntoVenta()).append("\"");
|
||||
json.append(" },");
|
||||
json.append(" \"BOLETO\": [{");
|
||||
json.append(" \"ZBUKRS\": \"").append(fcc.getEmpresaId()).append("\",");
|
||||
|
|
|
@ -16,6 +16,7 @@ public class FechamentoCntCorrenteVO {
|
|||
private String mesfechamento;
|
||||
private BigDecimal total;
|
||||
private String nombpuntoventa;
|
||||
private String cnpjPuntoVenta;
|
||||
private String numPuntoVenta;
|
||||
private Integer empresaId;
|
||||
private String nombEmpresa;
|
||||
|
@ -23,7 +24,7 @@ public class FechamentoCntCorrenteVO {
|
|||
private Boolean integradoSap;
|
||||
private boolean enviar;
|
||||
|
||||
public FechamentoCntCorrenteVO(Long fechamentocntcorrenteId, String fecfechamento, String feclancamento, String anofechamento, String mesfechamento, BigDecimal total, String nombpuntoventa, String numPuntoVenta, Integer empresaId, String nombEmpresa, String ufEmpresa, Boolean integradoSap) {
|
||||
public FechamentoCntCorrenteVO(Long fechamentocntcorrenteId, String fecfechamento, String feclancamento, String anofechamento, String mesfechamento, BigDecimal total, String nombpuntoventa, String cnpjPuntoVenta, Integer empresaId, String nombEmpresa, String ufEmpresa, Boolean integradoSap) {
|
||||
super();
|
||||
this.fechamentocntcorrenteId = fechamentocntcorrenteId;
|
||||
this.fecfechamento = fecfechamento;
|
||||
|
@ -32,7 +33,7 @@ public class FechamentoCntCorrenteVO {
|
|||
this.mesfechamento = mesfechamento;
|
||||
this.total = total;
|
||||
this.nombpuntoventa = nombpuntoventa;
|
||||
this.numPuntoVenta = numPuntoVenta;
|
||||
this.cnpjPuntoVenta = cnpjPuntoVenta;
|
||||
this.empresaId = empresaId;
|
||||
this.nombEmpresa = nombEmpresa;
|
||||
this.ufEmpresa = ufEmpresa;
|
||||
|
@ -71,12 +72,12 @@ public class FechamentoCntCorrenteVO {
|
|||
this.nombpuntoventa = nombpuntoventa;
|
||||
}
|
||||
|
||||
public String getNumPuntoVenta() {
|
||||
return numPuntoVenta;
|
||||
public String getCnpjPuntoVenta() {
|
||||
return cnpjPuntoVenta;
|
||||
}
|
||||
|
||||
public void setNumPuntoVenta(String numPuntoVenta) {
|
||||
this.numPuntoVenta = numPuntoVenta;
|
||||
public void setCnpjPuntoVenta(String cnpjPuntoVenta) {
|
||||
this.cnpjPuntoVenta = cnpjPuntoVenta;
|
||||
}
|
||||
|
||||
public Integer getEmpresaId() {
|
||||
|
@ -142,5 +143,13 @@ public class FechamentoCntCorrenteVO {
|
|||
public void setEnviar(Boolean enviar) {
|
||||
this.enviar = enviar;
|
||||
}
|
||||
|
||||
public String getNumPuntoVenta() {
|
||||
return numPuntoVenta;
|
||||
}
|
||||
|
||||
public void setNumPuntoVenta(String numPuntoVenta) {
|
||||
this.numPuntoVenta = numPuntoVenta;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue