fixes bug #7082
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@52506 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
812556e15b
commit
5983115a0d
|
@ -6,6 +6,9 @@ package com.rjconsultores.ventaboletos.dao;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.ComEmpCategoria;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.ComEmpFormapago;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.ComEmpTipoEventoExtra;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
import com.rjconsultores.ventaboletos.entidad.InscricaoEstadual;
|
import com.rjconsultores.ventaboletos.entidad.InscricaoEstadual;
|
||||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||||
|
@ -43,4 +46,17 @@ public interface EmpresaDAO {
|
||||||
public List<Empresa> buscaLike(String nombempresa);
|
public List<Empresa> buscaLike(String nombempresa);
|
||||||
|
|
||||||
public List<Empresa> obtenerTodosIncluindoEmpresaTodas();
|
public List<Empresa> obtenerTodosIncluindoEmpresaTodas();
|
||||||
|
|
||||||
|
public ComEmpCategoria adicionarComissaoCategoria(ComEmpCategoria comEmpCategoria);
|
||||||
|
|
||||||
|
public void removerComissaoCategoria(ComEmpCategoria comEmpCategoria);
|
||||||
|
|
||||||
|
public ComEmpFormapago adicionarComissaoFormapago(ComEmpFormapago comEmpFormapago);
|
||||||
|
|
||||||
|
public void removerComissaoFormapago(ComEmpFormapago comEmpFormapago);
|
||||||
|
|
||||||
|
public ComEmpTipoEventoExtra adicionarComissaoTipoEventoExtra(ComEmpTipoEventoExtra comEmpTipoEventoExtra);
|
||||||
|
|
||||||
|
public void removerComissaoTipoEventoExtra(ComEmpTipoEventoExtra comEmpTipoEventoExtra);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -592,7 +592,7 @@ public class ConferenciaComissaoHibernateDAO extends GenericHibernateDAO<Confere
|
||||||
.append("NVL(B.IMPORTEPEDAGIO,0) AS \"pedagio\", NVL(B.IMPORTESEGURO,0) AS \"seguro\", NVL(B.IMPORTETAXAEMBARQUE,0) AS \"embarque\", ")
|
.append("NVL(B.IMPORTEPEDAGIO,0) AS \"pedagio\", NVL(B.IMPORTESEGURO,0) AS \"seguro\", NVL(B.IMPORTETAXAEMBARQUE,0) AS \"embarque\", ")
|
||||||
.append("B.TIPOVENTA_ID AS \"tipoVenta\", B.INDSTATUSBOLETO AS \"indstatusboleto\", LOG.STATUS AS \"status\", ")
|
.append("B.TIPOVENTA_ID AS \"tipoVenta\", B.INDSTATUSBOLETO AS \"indstatusboleto\", LOG.STATUS AS \"status\", ")
|
||||||
.append("FP.FORMAPAGO_ID AS \"formapagoId\", FP.DESCPAGO AS \"descpago\", FP.INDCONFERENCIAFISICACOMISSAO AS \"indconferenciafisicacomissao\", ")
|
.append("FP.FORMAPAGO_ID AS \"formapagoId\", FP.DESCPAGO AS \"descpago\", FP.INDCONFERENCIAFISICACOMISSAO AS \"indconferenciafisicacomissao\", ")
|
||||||
.append("MC.DESCMOTIVO AS \"descmotivocancelacion\" ")
|
.append("MC.DESCMOTIVO AS \"descmotivocancelacion\", U.NOMBUSUARIO AS \"nombusuario\" ")
|
||||||
.append("FROM BOLETO B ")
|
.append("FROM BOLETO B ")
|
||||||
.append("LEFT JOIN PARADA ORI ON ORI.PARADA_ID = B.ORIGEN_ID ")
|
.append("LEFT JOIN PARADA ORI ON ORI.PARADA_ID = B.ORIGEN_ID ")
|
||||||
.append("LEFT JOIN CIUDAD CID ON CID.CIUDAD_ID = ORI.PARADA_ID ")
|
.append("LEFT JOIN CIUDAD CID ON CID.CIUDAD_ID = ORI.PARADA_ID ")
|
||||||
|
@ -602,6 +602,7 @@ public class ConferenciaComissaoHibernateDAO extends GenericHibernateDAO<Confere
|
||||||
.append("LEFT JOIN MOTIVO_CANCELACION MC ON MC.MOTIVOCANCELACION_ID = B.MOTIVOCANCELACION_ID ")
|
.append("LEFT JOIN MOTIVO_CANCELACION MC ON MC.MOTIVOCANCELACION_ID = B.MOTIVOCANCELACION_ID ")
|
||||||
.append("INNER JOIN BOLETO_FORMAPAGO BF ON BF.BOLETO_ID = B.BOLETO_ID ")
|
.append("INNER JOIN BOLETO_FORMAPAGO BF ON BF.BOLETO_ID = B.BOLETO_ID ")
|
||||||
.append("INNER JOIN FORMA_PAGO FP ON FP.FORMAPAGO_ID = BF.FORMAPAGO_ID ")
|
.append("INNER JOIN FORMA_PAGO FP ON FP.FORMAPAGO_ID = BF.FORMAPAGO_ID ")
|
||||||
|
.append("INNER JOIN USUARIO U ON B.USUARIO_ID = U.USUARIO_ID ")
|
||||||
.append("WHERE B.ACTIVO = 1 ")
|
.append("WHERE B.ACTIVO = 1 ")
|
||||||
.append("AND TO_DATE(B.FECHORVENTA,'DD/MM/YY') = :datamovimento ");
|
.append("AND TO_DATE(B.FECHORVENTA,'DD/MM/YY') = :datamovimento ");
|
||||||
|
|
||||||
|
@ -678,6 +679,7 @@ public class ConferenciaComissaoHibernateDAO extends GenericHibernateDAO<Confere
|
||||||
.addScalar("descpago", Hibernate.STRING)
|
.addScalar("descpago", Hibernate.STRING)
|
||||||
.addScalar("indconferenciafisicacomissao", Hibernate.BOOLEAN)
|
.addScalar("indconferenciafisicacomissao", Hibernate.BOOLEAN)
|
||||||
.addScalar("descmotivocancelacion", Hibernate.STRING)
|
.addScalar("descmotivocancelacion", Hibernate.STRING)
|
||||||
|
.addScalar("nombusuario", Hibernate.STRING)
|
||||||
.setResultTransformer(Transformers.aliasToBean(BoletoComissao.class));
|
.setResultTransformer(Transformers.aliasToBean(BoletoComissao.class));
|
||||||
setParametros(qr, parametros);
|
setParametros(qr, parametros);
|
||||||
|
|
||||||
|
@ -844,11 +846,13 @@ public class ConferenciaComissaoHibernateDAO extends GenericHibernateDAO<Confere
|
||||||
.append("FROM BOLETO B ")
|
.append("FROM BOLETO B ")
|
||||||
.append("LEFT JOIN LOG_CONFERENCIA LOG ON LOG.BOLETO_ID = B.BOLETO_ID AND LOG.ACTIVO = 1 ")
|
.append("LEFT JOIN LOG_CONFERENCIA LOG ON LOG.BOLETO_ID = B.BOLETO_ID AND LOG.ACTIVO = 1 ")
|
||||||
.append("INNER JOIN CATEGORIA CAT ON CAT.CATEGORIA_ID = B.CATEGORIA_ID ")
|
.append("INNER JOIN CATEGORIA CAT ON CAT.CATEGORIA_ID = B.CATEGORIA_ID ")
|
||||||
|
.append("LEFT JOIN COM_EMP_CATEGORIA COMCAT ON COMCAT.CATEGORIA_ID = B.CATEGORIA_ID AND COMCAT.EMPRESA_ID = B.EMPRESACORRIDA_ID ")
|
||||||
.append("INNER JOIN BOLETO_FORMAPAGO BF ON BF.BOLETO_ID = B.BOLETO_ID ")
|
.append("INNER JOIN BOLETO_FORMAPAGO BF ON BF.BOLETO_ID = B.BOLETO_ID ")
|
||||||
.append("INNER JOIN FORMA_PAGO FP ON FP.FORMAPAGO_ID = BF.FORMAPAGO_ID ")
|
.append("INNER JOIN FORMA_PAGO FP ON FP.FORMAPAGO_ID = BF.FORMAPAGO_ID ")
|
||||||
|
.append("LEFT JOIN COM_EMP_FORMAPAGO COMFP ON COMFP.FORMAPAGO_ID = FP.FORMAPAGO_ID AND COMFP.EMPRESA_ID = B.EMPRESACORRIDA_ID ")
|
||||||
.append("WHERE B.ACTIVO = 1 ")
|
.append("WHERE B.ACTIVO = 1 ")
|
||||||
.append("AND LOG.LOGCONFERENCIA_ID IS NULL ")
|
.append("AND LOG.LOGCONFERENCIA_ID IS NULL ")
|
||||||
.append("AND (FP.INDCONFERENCIAFISICACOMISSAO = 1 OR CAT.INDCONFERENCIAFISICACOMISSAO = 1) ")
|
.append("AND (COMFP.COMEMPFORMAPAGO_ID IS NOT NULL OR COMCAT.COMEMPCATEGORIA_ID IS NOT NULL) ")
|
||||||
.append("AND TO_DATE(B.FECHORVENTA,'DD/MM/YY') = :datamovimento ")
|
.append("AND TO_DATE(B.FECHORVENTA,'DD/MM/YY') = :datamovimento ")
|
||||||
.append("AND B.TIPOVENTA_ID IN (:tipoVenta) ")
|
.append("AND B.TIPOVENTA_ID IN (:tipoVenta) ")
|
||||||
.append("AND ( ")
|
.append("AND ( ")
|
||||||
|
@ -892,11 +896,13 @@ public class ConferenciaComissaoHibernateDAO extends GenericHibernateDAO<Confere
|
||||||
sQuery.append("SELECT DISTINCT EE.EVENTOEXTRA_ID AS \"eventoextraId\" ")
|
sQuery.append("SELECT DISTINCT EE.EVENTOEXTRA_ID AS \"eventoextraId\" ")
|
||||||
.append("FROM EVENTO_EXTRA EE ")
|
.append("FROM EVENTO_EXTRA EE ")
|
||||||
.append("JOIN TIPO_EVENTO_EXTRA TEE ON EE.TIPOEVENTOEXTRA_ID = TEE.TIPOEVENTOEXTRA_ID ")
|
.append("JOIN TIPO_EVENTO_EXTRA TEE ON EE.TIPOEVENTOEXTRA_ID = TEE.TIPOEVENTOEXTRA_ID ")
|
||||||
|
.append("LEFT JOIN COM_EMP_TIPOEVENTOEXTRA COMTEE ON COMTEE.TIPOEVENTOEXTRA_ID = TEE.TIPOEVENTOEXTRA_ID AND COMTEE.EMPRESA_ID = EE.EMPRESA_ID ")
|
||||||
.append("LEFT JOIN LOG_CONFERENCIA LOG ON LOG.EVENTOEXTRA_ID = EE.EVENTOEXTRA_ID AND LOG.ACTIVO = 1 ")
|
.append("LEFT JOIN LOG_CONFERENCIA LOG ON LOG.EVENTOEXTRA_ID = EE.EVENTOEXTRA_ID AND LOG.ACTIVO = 1 ")
|
||||||
.append("LEFT JOIN FORMA_PAGO FP ON FP.FORMAPAGO_ID = EE.FORMAPAGO_ID ")
|
.append("LEFT JOIN FORMA_PAGO FP ON FP.FORMAPAGO_ID = EE.FORMAPAGO_ID ")
|
||||||
|
.append("LEFT JOIN COM_EMP_FORMAPAGO COMFP ON COMFP.FORMAPAGO_ID = FP.FORMAPAGO_ID AND COMFP.EMPRESA_ID = EE.EMPRESA_ID ")
|
||||||
.append("WHERE EE.ACTIVO = 1 ")
|
.append("WHERE EE.ACTIVO = 1 ")
|
||||||
.append("AND LOG.LOGCONFERENCIA_ID IS NULL ")
|
.append("AND LOG.LOGCONFERENCIA_ID IS NULL ")
|
||||||
.append("AND FP.INDCONFERENCIAFISICACOMISSAO = 1 ")
|
.append("AND (COMTEE.COMEMPTIPOEVENTOEXTRA_ID IS NOT NULL OR COMFP.COMEMPFORMAPAGO_ID IS NOT NULL) ")
|
||||||
.append("AND TO_DATE(EE.FECHORINGRESO,'DD/MM/YY') = :datamovimento ");
|
.append("AND TO_DATE(EE.FECHORINGRESO,'DD/MM/YY') = :datamovimento ");
|
||||||
|
|
||||||
parametros.put("datamovimento", conferencia.getDatamovimento());
|
parametros.put("datamovimento", conferencia.getDatamovimento());
|
||||||
|
|
|
@ -22,8 +22,12 @@ import org.hibernate.criterion.Restrictions;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.beans.factory.annotation.Qualifier;
|
import org.springframework.beans.factory.annotation.Qualifier;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.dao.EmpresaDAO;
|
import com.rjconsultores.ventaboletos.dao.EmpresaDAO;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.ComEmpCategoria;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.ComEmpFormapago;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.ComEmpTipoEventoExtra;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
import com.rjconsultores.ventaboletos.entidad.InscricaoEstadual;
|
import com.rjconsultores.ventaboletos.entidad.InscricaoEstadual;
|
||||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||||
|
@ -193,4 +197,44 @@ public class EmpresaHibernateDAO extends GenericHibernateDAO<Empresa, Integer> i
|
||||||
|
|
||||||
return c.list();
|
return c.list();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@Transactional
|
||||||
|
public ComEmpCategoria adicionarComissaoCategoria(ComEmpCategoria comEmpCategoria) {
|
||||||
|
getSession().save(comEmpCategoria);
|
||||||
|
return comEmpCategoria;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@Transactional
|
||||||
|
public void removerComissaoCategoria(ComEmpCategoria comEmpCategoria) {
|
||||||
|
getSession().merge(comEmpCategoria);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@Transactional
|
||||||
|
public ComEmpFormapago adicionarComissaoFormapago(ComEmpFormapago comEmpFormapago) {
|
||||||
|
getSession().save(comEmpFormapago);
|
||||||
|
return comEmpFormapago;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@Transactional
|
||||||
|
public void removerComissaoFormapago(ComEmpFormapago comEmpFormapago) {
|
||||||
|
getSession().merge(comEmpFormapago);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@Transactional
|
||||||
|
public ComEmpTipoEventoExtra adicionarComissaoTipoEventoExtra(ComEmpTipoEventoExtra comEmpTipoEventoExtra) {
|
||||||
|
getSession().save(comEmpTipoEventoExtra);
|
||||||
|
return comEmpTipoEventoExtra;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@Transactional
|
||||||
|
public void removerComissaoTipoEventoExtra(ComEmpTipoEventoExtra comEmpTipoEventoExtra) {
|
||||||
|
getSession().merge(comEmpTipoEventoExtra);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,117 @@
|
||||||
|
package com.rjconsultores.ventaboletos.entidad;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
import javax.persistence.Column;
|
||||||
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.FetchType;
|
||||||
|
import javax.persistence.GeneratedValue;
|
||||||
|
import javax.persistence.GenerationType;
|
||||||
|
import javax.persistence.Id;
|
||||||
|
import javax.persistence.JoinColumn;
|
||||||
|
import javax.persistence.ManyToOne;
|
||||||
|
import javax.persistence.SequenceGenerator;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.persistence.Temporal;
|
||||||
|
import javax.persistence.TemporalType;
|
||||||
|
|
||||||
|
@Entity
|
||||||
|
@SequenceGenerator(name = "COM_EMP_CATEGORIA_SEQ", sequenceName = "COM_EMP_CATEGORIA_SEQ", allocationSize = 1)
|
||||||
|
@Table(name = "COM_EMP_CATEGORIA")
|
||||||
|
public class ComEmpCategoria implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.AUTO, generator = "COM_EMP_CATEGORIA_SEQ")
|
||||||
|
@Column(name = "COMEMPCATEGORIA_ID")
|
||||||
|
private Long comempcategoriaId;
|
||||||
|
|
||||||
|
@ManyToOne(fetch = FetchType.LAZY)
|
||||||
|
@JoinColumn(name = "EMPRESA_ID")
|
||||||
|
private Empresa empresa;
|
||||||
|
@ManyToOne(fetch = FetchType.LAZY)
|
||||||
|
@JoinColumn(name = "CATEGORIA_ID")
|
||||||
|
private Categoria categoria;
|
||||||
|
|
||||||
|
@Column(name = "ACTIVO")
|
||||||
|
private boolean activo;
|
||||||
|
@Column(name = "USUARIO_ID")
|
||||||
|
private Integer usuarioId;
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
@Column(name = "FECMODIF")
|
||||||
|
private Date fecmodif;
|
||||||
|
|
||||||
|
public Long getComempcategoriaId() {
|
||||||
|
return comempcategoriaId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setComempcategoriaId(Long comempcategoriaId) {
|
||||||
|
this.comempcategoriaId = comempcategoriaId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Empresa getEmpresa() {
|
||||||
|
return empresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpresa(Empresa empresa) {
|
||||||
|
this.empresa = empresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Categoria getCategoria() {
|
||||||
|
return categoria;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCategoria(Categoria categoria) {
|
||||||
|
this.categoria = categoria;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isActivo() {
|
||||||
|
return activo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setActivo(boolean activo) {
|
||||||
|
this.activo = activo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getUsuarioId() {
|
||||||
|
return usuarioId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuarioId(Integer usuarioId) {
|
||||||
|
this.usuarioId = usuarioId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getFecmodif() {
|
||||||
|
return fecmodif;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFecmodif(Date fecmodif) {
|
||||||
|
this.fecmodif = fecmodif;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
final int prime = 31;
|
||||||
|
int result = 1;
|
||||||
|
result = prime * result + ((comempcategoriaId == null) ? 0 : comempcategoriaId.hashCode());
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object obj) {
|
||||||
|
if (this == obj)
|
||||||
|
return true;
|
||||||
|
if (obj == null)
|
||||||
|
return false;
|
||||||
|
ComEmpCategoria other = (ComEmpCategoria) obj;
|
||||||
|
if (comempcategoriaId == null) {
|
||||||
|
if (other.comempcategoriaId != null)
|
||||||
|
return false;
|
||||||
|
} else if (!comempcategoriaId.equals(other.comempcategoriaId))
|
||||||
|
return false;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,117 @@
|
||||||
|
package com.rjconsultores.ventaboletos.entidad;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
import javax.persistence.Column;
|
||||||
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.FetchType;
|
||||||
|
import javax.persistence.GeneratedValue;
|
||||||
|
import javax.persistence.GenerationType;
|
||||||
|
import javax.persistence.Id;
|
||||||
|
import javax.persistence.JoinColumn;
|
||||||
|
import javax.persistence.ManyToOne;
|
||||||
|
import javax.persistence.SequenceGenerator;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.persistence.Temporal;
|
||||||
|
import javax.persistence.TemporalType;
|
||||||
|
|
||||||
|
@Entity
|
||||||
|
@SequenceGenerator(name = "COM_EMP_FORMAPAGO_SEQ", sequenceName = "COM_EMP_FORMAPAGO_SEQ", allocationSize = 1)
|
||||||
|
@Table(name = "COM_EMP_FORMAPAGO")
|
||||||
|
public class ComEmpFormapago implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@Column(name = "COMEMPFORMAPAGO_ID")
|
||||||
|
@GeneratedValue(strategy = GenerationType.AUTO, generator = "COM_EMP_FORMAPAGO_SEQ")
|
||||||
|
private Long comempformapagoId;
|
||||||
|
|
||||||
|
@ManyToOne(fetch = FetchType.LAZY)
|
||||||
|
@JoinColumn(name = "EMPRESA_ID")
|
||||||
|
private Empresa empresa;
|
||||||
|
@ManyToOne(fetch = FetchType.LAZY)
|
||||||
|
@JoinColumn(name = "FORMAPAGO_ID")
|
||||||
|
private FormaPago formaPago;
|
||||||
|
|
||||||
|
@Column(name = "ACTIVO")
|
||||||
|
private boolean activo;
|
||||||
|
@Column(name = "USUARIO_ID")
|
||||||
|
private Integer usuarioId;
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
@Column(name = "FECMODIF")
|
||||||
|
private Date fecmodif;
|
||||||
|
|
||||||
|
public Long getComempformapagoId() {
|
||||||
|
return comempformapagoId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setComempformapagoId(Long comempformapagoId) {
|
||||||
|
this.comempformapagoId = comempformapagoId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Empresa getEmpresa() {
|
||||||
|
return empresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpresa(Empresa empresa) {
|
||||||
|
this.empresa = empresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public FormaPago getFormaPago() {
|
||||||
|
return formaPago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFormaPago(FormaPago formaPago) {
|
||||||
|
this.formaPago = formaPago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isActivo() {
|
||||||
|
return activo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setActivo(boolean activo) {
|
||||||
|
this.activo = activo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getUsuarioId() {
|
||||||
|
return usuarioId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuarioId(Integer usuarioId) {
|
||||||
|
this.usuarioId = usuarioId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getFecmodif() {
|
||||||
|
return fecmodif;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFecmodif(Date fecmodif) {
|
||||||
|
this.fecmodif = fecmodif;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
final int prime = 31;
|
||||||
|
int result = 1;
|
||||||
|
result = prime * result + ((comempformapagoId == null) ? 0 : comempformapagoId.hashCode());
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object obj) {
|
||||||
|
if (this == obj)
|
||||||
|
return true;
|
||||||
|
if (obj == null)
|
||||||
|
return false;
|
||||||
|
ComEmpFormapago other = (ComEmpFormapago) obj;
|
||||||
|
if (comempformapagoId == null) {
|
||||||
|
if (other.comempformapagoId != null)
|
||||||
|
return false;
|
||||||
|
} else if (!comempformapagoId.equals(other.comempformapagoId))
|
||||||
|
return false;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,117 @@
|
||||||
|
package com.rjconsultores.ventaboletos.entidad;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
import javax.persistence.Column;
|
||||||
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.FetchType;
|
||||||
|
import javax.persistence.GeneratedValue;
|
||||||
|
import javax.persistence.GenerationType;
|
||||||
|
import javax.persistence.Id;
|
||||||
|
import javax.persistence.JoinColumn;
|
||||||
|
import javax.persistence.ManyToOne;
|
||||||
|
import javax.persistence.SequenceGenerator;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.persistence.Temporal;
|
||||||
|
import javax.persistence.TemporalType;
|
||||||
|
|
||||||
|
@Entity
|
||||||
|
@SequenceGenerator(name = "COM_EMP_TIPOEVENTOEXTRA_SEQ", sequenceName = "COM_EMP_TIPOEVENTOEXTRA_SEQ", allocationSize = 1)
|
||||||
|
@Table(name = "COM_EMP_TIPOEVENTOEXTRA")
|
||||||
|
public class ComEmpTipoEventoExtra implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@Column(name = "COMEMPTIPOEVENTOEXTRA_ID")
|
||||||
|
@GeneratedValue(strategy = GenerationType.AUTO, generator = "COM_EMP_TIPOEVENTOEXTRA_SEQ")
|
||||||
|
private Long comemptipoeventoextraId;
|
||||||
|
|
||||||
|
@ManyToOne(fetch = FetchType.LAZY)
|
||||||
|
@JoinColumn(name = "EMPRESA_ID")
|
||||||
|
private Empresa empresa;
|
||||||
|
@ManyToOne(fetch = FetchType.LAZY)
|
||||||
|
@JoinColumn(name = "TIPOEVENTOEXTRA_ID")
|
||||||
|
private TipoEventoExtra tipoEventoExtra;
|
||||||
|
|
||||||
|
@Column(name = "ACTIVO")
|
||||||
|
private boolean activo;
|
||||||
|
@Column(name = "USUARIO_ID")
|
||||||
|
private Integer usuarioId;
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
@Column(name = "FECMODIF")
|
||||||
|
private Date fecmodif;
|
||||||
|
|
||||||
|
public Long getComemptipoeventoextraId() {
|
||||||
|
return comemptipoeventoextraId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setComemptipoeventoextraId(Long comemptipoeventoextraId) {
|
||||||
|
this.comemptipoeventoextraId = comemptipoeventoextraId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Empresa getEmpresa() {
|
||||||
|
return empresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpresa(Empresa empresa) {
|
||||||
|
this.empresa = empresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TipoEventoExtra getTipoEventoExtra() {
|
||||||
|
return tipoEventoExtra;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTipoEventoExtra(TipoEventoExtra tipoEventoExtra) {
|
||||||
|
this.tipoEventoExtra = tipoEventoExtra;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isActivo() {
|
||||||
|
return activo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setActivo(boolean activo) {
|
||||||
|
this.activo = activo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getUsuarioId() {
|
||||||
|
return usuarioId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuarioId(Integer usuarioId) {
|
||||||
|
this.usuarioId = usuarioId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getFecmodif() {
|
||||||
|
return fecmodif;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFecmodif(Date fecmodif) {
|
||||||
|
this.fecmodif = fecmodif;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
final int prime = 31;
|
||||||
|
int result = 1;
|
||||||
|
result = prime * result + ((comemptipoeventoextraId == null) ? 0 : comemptipoeventoextraId.hashCode());
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object obj) {
|
||||||
|
if (this == obj)
|
||||||
|
return true;
|
||||||
|
if (obj == null)
|
||||||
|
return false;
|
||||||
|
ComEmpTipoEventoExtra other = (ComEmpTipoEventoExtra) obj;
|
||||||
|
if (comemptipoeventoextraId == null) {
|
||||||
|
if (other.comemptipoeventoextraId != null)
|
||||||
|
return false;
|
||||||
|
} else if (!comemptipoeventoextraId.equals(other.comemptipoeventoextraId))
|
||||||
|
return false;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -26,6 +26,7 @@ import javax.persistence.TemporalType;
|
||||||
|
|
||||||
import org.apache.commons.collections.CollectionUtils;
|
import org.apache.commons.collections.CollectionUtils;
|
||||||
import org.apache.commons.collections.Predicate;
|
import org.apache.commons.collections.Predicate;
|
||||||
|
import org.hibernate.annotations.Where;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -102,6 +103,18 @@ public class Empresa implements Serializable {
|
||||||
|
|
||||||
@OneToMany(mappedBy = "empresa", cascade = CascadeType.ALL)
|
@OneToMany(mappedBy = "empresa", cascade = CascadeType.ALL)
|
||||||
private List<EmpresaContaBancaria> empresaContaBancaria;
|
private List<EmpresaContaBancaria> empresaContaBancaria;
|
||||||
|
|
||||||
|
@OneToMany(mappedBy = "empresa")
|
||||||
|
@Where(clause="ACTIVO=1")
|
||||||
|
private List<ComEmpCategoria> comEmpCategorias;
|
||||||
|
|
||||||
|
@OneToMany(mappedBy = "empresa")
|
||||||
|
@Where(clause="ACTIVO=1")
|
||||||
|
private List<ComEmpFormapago> comEmpFormapagos;
|
||||||
|
|
||||||
|
@OneToMany(mappedBy = "empresa")
|
||||||
|
@Where(clause="ACTIVO=1")
|
||||||
|
private List<ComEmpTipoEventoExtra> comEmpTipoEventoExtras;
|
||||||
|
|
||||||
public Empresa() {
|
public Empresa() {
|
||||||
super();
|
super();
|
||||||
|
@ -407,6 +420,30 @@ public class Empresa implements Serializable {
|
||||||
|
|
||||||
public void setIndcarboletosdevolvidosconf(Boolean indcarboletosdevolvidosconf) {
|
public void setIndcarboletosdevolvidosconf(Boolean indcarboletosdevolvidosconf) {
|
||||||
this.indcarboletosdevolvidosconf = indcarboletosdevolvidosconf;
|
this.indcarboletosdevolvidosconf = indcarboletosdevolvidosconf;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<ComEmpCategoria> getComEmpCategorias() {
|
||||||
|
return comEmpCategorias;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setComEmpCategorias(List<ComEmpCategoria> comEmpCategorias) {
|
||||||
|
this.comEmpCategorias = comEmpCategorias;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<ComEmpFormapago> getComEmpFormapagos() {
|
||||||
|
return comEmpFormapagos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setComEmpFormapagos(List<ComEmpFormapago> comEmpFormapagos) {
|
||||||
|
this.comEmpFormapagos = comEmpFormapagos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<ComEmpTipoEventoExtra> getComEmpTipoEventoExtras() {
|
||||||
|
return comEmpTipoEventoExtras;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setComEmpTipoEventoExtras(List<ComEmpTipoEventoExtra> comEmpTipoEventoExtras) {
|
||||||
|
this.comEmpTipoEventoExtras = comEmpTipoEventoExtras;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,9 @@ package com.rjconsultores.ventaboletos.service;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.ComEmpCategoria;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.ComEmpFormapago;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.ComEmpTipoEventoExtra;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
import com.rjconsultores.ventaboletos.entidad.InscricaoEstadual;
|
import com.rjconsultores.ventaboletos.entidad.InscricaoEstadual;
|
||||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||||
|
@ -41,4 +44,17 @@ public interface EmpresaService {
|
||||||
public void actualizaInscEstadual(InscricaoEstadual inscricaoEstadual);
|
public void actualizaInscEstadual(InscricaoEstadual inscricaoEstadual);
|
||||||
|
|
||||||
public List<Empresa> buscaLike(String nombempresa);
|
public List<Empresa> buscaLike(String nombempresa);
|
||||||
|
|
||||||
|
public ComEmpCategoria adicionarComissaoCategoria(ComEmpCategoria comEmpCategoria);
|
||||||
|
|
||||||
|
public void removerComissaoCategoria(ComEmpCategoria comEmpCategoria);
|
||||||
|
|
||||||
|
public ComEmpFormapago adicionarComissaoFormapago(ComEmpFormapago comEmpFormapago);
|
||||||
|
|
||||||
|
public void removerComissaoFormapago(ComEmpFormapago comEmpFormapago);
|
||||||
|
|
||||||
|
public ComEmpTipoEventoExtra adicionarComissaoTipoEventoExtra(ComEmpTipoEventoExtra comEmpTipoEventoExtra);
|
||||||
|
|
||||||
|
public void removerComissaoTipoEventoExtra(ComEmpTipoEventoExtra comEmpTipoEventoExtra);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,6 +14,9 @@ import org.springframework.transaction.annotation.Transactional;
|
||||||
import com.rjconsultores.ventaboletos.dao.EmpresaDAO;
|
import com.rjconsultores.ventaboletos.dao.EmpresaDAO;
|
||||||
import com.rjconsultores.ventaboletos.dao.EsquemaCorridaDAO;
|
import com.rjconsultores.ventaboletos.dao.EsquemaCorridaDAO;
|
||||||
import com.rjconsultores.ventaboletos.dao.RutaEmpresaDAO;
|
import com.rjconsultores.ventaboletos.dao.RutaEmpresaDAO;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.ComEmpCategoria;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.ComEmpFormapago;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.ComEmpTipoEventoExtra;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
import com.rjconsultores.ventaboletos.entidad.InscricaoEstadual;
|
import com.rjconsultores.ventaboletos.entidad.InscricaoEstadual;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Marca;
|
import com.rjconsultores.ventaboletos.entidad.Marca;
|
||||||
|
@ -136,4 +139,52 @@ public class EmpresaServiceImpl implements EmpresaService {
|
||||||
public List<Empresa> buscaLike(String nombempresa){
|
public List<Empresa> buscaLike(String nombempresa){
|
||||||
return empresaDAO.buscaLike(nombempresa);
|
return empresaDAO.buscaLike(nombempresa);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ComEmpCategoria adicionarComissaoCategoria(ComEmpCategoria comEmpCategoria) {
|
||||||
|
comEmpCategoria.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||||
|
comEmpCategoria.setFecmodif(Calendar.getInstance().getTime());
|
||||||
|
comEmpCategoria.setActivo(Boolean.TRUE);
|
||||||
|
return empresaDAO.adicionarComissaoCategoria(comEmpCategoria);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void removerComissaoCategoria(ComEmpCategoria comEmpCategoria) {
|
||||||
|
comEmpCategoria.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||||
|
comEmpCategoria.setFecmodif(Calendar.getInstance().getTime());
|
||||||
|
comEmpCategoria.setActivo(Boolean.FALSE);
|
||||||
|
empresaDAO.removerComissaoCategoria(comEmpCategoria);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ComEmpFormapago adicionarComissaoFormapago(ComEmpFormapago comEmpFormapago) {
|
||||||
|
comEmpFormapago.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||||
|
comEmpFormapago.setFecmodif(Calendar.getInstance().getTime());
|
||||||
|
comEmpFormapago.setActivo(Boolean.TRUE);
|
||||||
|
return empresaDAO.adicionarComissaoFormapago(comEmpFormapago);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void removerComissaoFormapago(ComEmpFormapago comEmpFormapago) {
|
||||||
|
comEmpFormapago.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||||
|
comEmpFormapago.setFecmodif(Calendar.getInstance().getTime());
|
||||||
|
comEmpFormapago.setActivo(Boolean.FALSE);
|
||||||
|
empresaDAO.removerComissaoFormapago(comEmpFormapago);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ComEmpTipoEventoExtra adicionarComissaoTipoEventoExtra(ComEmpTipoEventoExtra comEmpTipoEventoExtra) {
|
||||||
|
comEmpTipoEventoExtra.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||||
|
comEmpTipoEventoExtra.setFecmodif(Calendar.getInstance().getTime());
|
||||||
|
comEmpTipoEventoExtra.setActivo(Boolean.TRUE);
|
||||||
|
return empresaDAO.adicionarComissaoTipoEventoExtra(comEmpTipoEventoExtra);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void removerComissaoTipoEventoExtra(ComEmpTipoEventoExtra comEmpTipoEventoExtra) {
|
||||||
|
comEmpTipoEventoExtra.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||||
|
comEmpTipoEventoExtra.setFecmodif(Calendar.getInstance().getTime());
|
||||||
|
comEmpTipoEventoExtra.setActivo(Boolean.FALSE);
|
||||||
|
empresaDAO.removerComissaoTipoEventoExtra(comEmpTipoEventoExtra);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,10 @@ package com.rjconsultores.ventaboletos.vo.comissao;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import org.apache.commons.lang.StringUtils;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.constantes.DescricaoTipoVenta;
|
||||||
|
import com.rjconsultores.ventaboletos.enums.IndStatusBoleto;
|
||||||
import com.rjconsultores.ventaboletos.enums.comissao.StatusLogConferencia;
|
import com.rjconsultores.ventaboletos.enums.comissao.StatusLogConferencia;
|
||||||
|
|
||||||
public class BoletoComissao {
|
public class BoletoComissao {
|
||||||
|
@ -39,6 +43,7 @@ public class BoletoComissao {
|
||||||
|
|
||||||
private Set<FormapagoVO> formapagos;
|
private Set<FormapagoVO> formapagos;
|
||||||
private BigDecimal icmsBase;
|
private BigDecimal icmsBase;
|
||||||
|
private String nombusuario;
|
||||||
|
|
||||||
public Integer getEmpresaId() {
|
public Integer getEmpresaId() {
|
||||||
return empresaId;
|
return empresaId;
|
||||||
|
@ -339,5 +344,26 @@ public class BoletoComissao {
|
||||||
|
|
||||||
return total;
|
return total;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getDescTipoVenta() {
|
||||||
|
return DescricaoTipoVenta.getDescricaoTipoVenta(getTipoVenta());
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSituacaoBilhete() {
|
||||||
|
if(StringUtils.isNotBlank(getDescmotivocancelacion())) {
|
||||||
|
return getDescmotivocancelacion();
|
||||||
|
} else {
|
||||||
|
IndStatusBoleto indStatusBoleto = IndStatusBoleto.getIndStatusBoleto(getIndstatusboleto());
|
||||||
|
return indStatusBoleto != null ? indStatusBoleto.getValue() : "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNombusuario() {
|
||||||
|
return nombusuario;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNombusuario(String nombusuario) {
|
||||||
|
this.nombusuario = nombusuario;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -4,6 +4,7 @@ import java.math.BigDecimal;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
|
import org.zkoss.util.resource.Labels;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.enums.comissao.StatusLogConferencia;
|
import com.rjconsultores.ventaboletos.enums.comissao.StatusLogConferencia;
|
||||||
|
|
||||||
|
@ -120,5 +121,9 @@ public class EventosFinanceirosVO {
|
||||||
public boolean isCredito() {
|
public boolean isCredito() {
|
||||||
return StringUtils.isNotBlank(getIndtipo()) && "1".equals(getIndtipo());
|
return StringUtils.isNotBlank(getIndtipo()) && "1".equals(getIndtipo());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getDebitoCredito() {
|
||||||
|
return isCredito() ? Labels.getLabel("conferenciaController.lbCredito.value") : Labels.getLabel("conferenciaController.lbDebito.value");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -249,5 +249,9 @@ public class LogConferenciaVO {
|
||||||
public String getDescricaoTipoventa() {
|
public String getDescricaoTipoventa() {
|
||||||
return DescricaoTipoVenta.getDescricaoTipoVenta(getTipoventa());
|
return DescricaoTipoVenta.getDescricaoTipoVenta(getTipoventa());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getDescdebitocredito() {
|
||||||
|
return isIndcredito() ? "C" : "D";
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,8 @@ package com.rjconsultores.ventaboletos.vo.comissao;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
|
import org.zkoss.util.resource.Labels;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.enums.comissao.StatusLogConferencia;
|
import com.rjconsultores.ventaboletos.enums.comissao.StatusLogConferencia;
|
||||||
|
|
||||||
public class OcdVO {
|
public class OcdVO {
|
||||||
|
@ -175,5 +177,9 @@ public class OcdVO {
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getDescindpago() {
|
||||||
|
return getIndpago() != null && getIndpago() ? Labels.getLabel("conferenciaController.lbl.sim") : Labels.getLabel("conferenciaController.lbl.nao");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue