bug#11600
dev: julio qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@84234 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
0fe54d7d85
commit
88cdba3644
|
@ -100,7 +100,7 @@ public class BpeHibernateDAO extends HibernateDaoSupport implements BpeDAO {
|
||||||
sql.append("where c.activo = 1 and e.activo = 1 and ei.activo = 1 ");
|
sql.append("where c.activo = 1 and e.activo = 1 and ei.activo = 1 ");
|
||||||
sql.append(" and bpe.tipoamb = 1 and ep.activo = 1 ");
|
sql.append(" and bpe.tipoamb = 1 and ep.activo = 1 ");
|
||||||
//sql.append(" and bpe.codstat <> 150 "); // não deve ser enviados os registros de contigencia
|
//sql.append(" and bpe.codstat <> 150 "); // não deve ser enviados os registros de contigencia
|
||||||
sql.append(" and (codstat <> 135 and (tipoevento <> 110115 or tipoevento is null)) ");
|
sql.append(" and (tipoevento <> 110115 or tipoevento is null) ");
|
||||||
sql.append(" and (case when ei.indtribviagem = 1 then c.fechorviaje else c.feccreacion end) >= to_date(?,'DD/MM/YYYY HH24:MI:SS') ");
|
sql.append(" and (case when ei.indtribviagem = 1 then c.fechorviaje else c.feccreacion end) >= to_date(?,'DD/MM/YYYY HH24:MI:SS') ");
|
||||||
sql.append(" and (case when ei.indtribviagem = 1 then c.fechorviaje else c.feccreacion end) <= to_date(?,'DD/MM/YYYY HH24:MI:SS')");
|
sql.append(" and (case when ei.indtribviagem = 1 then c.fechorviaje else c.feccreacion end) <= to_date(?,'DD/MM/YYYY HH24:MI:SS')");
|
||||||
sql.append(" and ep.empresa_id = ? ");
|
sql.append(" and ep.empresa_id = ? ");
|
||||||
|
|
|
@ -55,8 +55,9 @@ public class ExportacaoBPEVo {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isBpeCancelado(ExportacaoBPEBase registro) {
|
public boolean isBpeCancelado(ExportacaoBPEBase registro) {
|
||||||
return (registro.getCodstatus() == null ? false : (registro.getCodstatus().equals(StatusBpe.EVENTOS))) &&
|
return (registro.getCodstatus() == null ? false : (registro.getCodstatus().equals(StatusBpe.EVENTOS)))
|
||||||
(registro.getTipoevento() == null ? true : (registro.getTipoevento().equals(EventosBpe.CANCELAMENTO)));
|
// && (registro.getTipoevento() == null ? true : (registro.getTipoevento().equals(EventosBpe.CANCELAMENTO)))
|
||||||
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void gerarListas(ExportacaoBPEBase registro) {
|
public void gerarListas(ExportacaoBPEBase registro) {
|
||||||
|
@ -79,7 +80,7 @@ public class ExportacaoBPEVo {
|
||||||
boolean isInterMunicipal = estadoOrigem.equals(estadoDestino);
|
boolean isInterMunicipal = estadoOrigem.equals(estadoDestino);
|
||||||
String codigoContabil = isInterMunicipal ? registro.getCodigocontabilMunicipal() : registro.getCodigoContabilEstadual();
|
String codigoContabil = isInterMunicipal ? registro.getCodigocontabilMunicipal() : registro.getCodigoContabilEstadual();
|
||||||
|
|
||||||
String tpDoc = isCancelamento ? "1" : (StringUtils.isBlank(registro.getChbpeSub()) ? "0" : "1");
|
String tpDoc = isCancelamento ? "1" : (StringUtils.isBlank(registro.getChbpeSub()) ? "0" : "0");
|
||||||
|
|
||||||
if (isCancelamento) {
|
if (isCancelamento) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue