fixes bug #7985
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@62459 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
e8f48cfc79
commit
679edb1e97
|
@ -9,7 +9,7 @@ import org.zkoss.util.resource.Labels;
|
||||||
import com.rjconsultores.ventaboletos.enums.comissao.StatusLogConferencia;
|
import com.rjconsultores.ventaboletos.enums.comissao.StatusLogConferencia;
|
||||||
|
|
||||||
public class EventosFinanceirosVO {
|
public class EventosFinanceirosVO {
|
||||||
|
|
||||||
private Long eventoextraId;
|
private Long eventoextraId;
|
||||||
private String numdocumento;
|
private String numdocumento;
|
||||||
private Date fechoringreso;
|
private Date fechoringreso;
|
||||||
|
@ -20,17 +20,19 @@ public class EventosFinanceirosVO {
|
||||||
private Integer formapagoId;
|
private Integer formapagoId;
|
||||||
private String descpago;
|
private String descpago;
|
||||||
private Boolean indconferenciafisicacomissao;
|
private Boolean indconferenciafisicacomissao;
|
||||||
private String indtipo; /* 0- Debito, 1- Credito */
|
private String indtipo; /* 0- Debito, 1- Credito */
|
||||||
private String nombusuario;
|
private String nombusuario;
|
||||||
|
|
||||||
private Integer comemptipoeventoextraId;
|
private Integer comemptipoeventoextraId;
|
||||||
private Integer comempformapagoId;
|
private Integer comempformapagoId;
|
||||||
|
|
||||||
private Long logconferenciaId;
|
private Long logconferenciaId;
|
||||||
private boolean conferido;
|
private boolean conferido;
|
||||||
|
|
||||||
private Boolean exigeConferenciaAba;
|
private Boolean exigeConferenciaAba;
|
||||||
|
|
||||||
|
private Long boletoId;
|
||||||
|
|
||||||
public Long getEventoextraId() {
|
public Long getEventoextraId() {
|
||||||
return eventoextraId;
|
return eventoextraId;
|
||||||
}
|
}
|
||||||
|
@ -86,10 +88,10 @@ public class EventosFinanceirosVO {
|
||||||
public void setStatus(Integer status) {
|
public void setStatus(Integer status) {
|
||||||
this.status = status;
|
this.status = status;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getStatusDescricao() {
|
public String getStatusDescricao() {
|
||||||
StatusLogConferencia statusLogConferencia = StatusLogConferencia.getStatusLogConferencia(status);
|
StatusLogConferencia statusLogConferencia = StatusLogConferencia.getStatusLogConferencia(status);
|
||||||
if(statusLogConferencia != null) {
|
if (statusLogConferencia != null) {
|
||||||
return statusLogConferencia.toString();
|
return statusLogConferencia.toString();
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
|
@ -126,15 +128,15 @@ public class EventosFinanceirosVO {
|
||||||
public void setIndtipo(String indtipo) {
|
public void setIndtipo(String indtipo) {
|
||||||
this.indtipo = indtipo;
|
this.indtipo = indtipo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isCredito() {
|
public boolean isCredito() {
|
||||||
return StringUtils.isNotBlank(getIndtipo()) && "1".equals(getIndtipo());
|
return StringUtils.isNotBlank(getIndtipo()) && "1".equals(getIndtipo());
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isDebito() {
|
public boolean isDebito() {
|
||||||
return StringUtils.isNotBlank(getIndtipo()) && "0".equals(getIndtipo());
|
return StringUtils.isNotBlank(getIndtipo()) && "0".equals(getIndtipo());
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDebitoCredito() {
|
public String getDebitoCredito() {
|
||||||
return isCredito() ? Labels.getLabel("conferenciaController.lbCredito.value") : Labels.getLabel("conferenciaController.lbDebito.value");
|
return isCredito() ? Labels.getLabel("conferenciaController.lbCredito.value") : Labels.getLabel("conferenciaController.lbDebito.value");
|
||||||
}
|
}
|
||||||
|
@ -178,7 +180,7 @@ public class EventosFinanceirosVO {
|
||||||
public void setComempformapagoId(Integer comempformapagoId) {
|
public void setComempformapagoId(Integer comempformapagoId) {
|
||||||
this.comempformapagoId = comempformapagoId;
|
this.comempformapagoId = comempformapagoId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isExigeConferencia() {
|
public boolean isExigeConferencia() {
|
||||||
return getComemptipoeventoextraId() != null || getComempformapagoId() != null;
|
return getComemptipoeventoextraId() != null || getComempformapagoId() != null;
|
||||||
}
|
}
|
||||||
|
@ -192,14 +194,22 @@ public class EventosFinanceirosVO {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getOrderExigeConferencia() {
|
public String getOrderExigeConferencia() {
|
||||||
if((getExigeConferenciaAba() != null && getExigeConferenciaAba()) || isExigeConferencia()) {
|
if ((getExigeConferenciaAba() != null && getExigeConferenciaAba()) || isExigeConferencia()) {
|
||||||
if(!isConferido()) {
|
if (!isConferido()) {
|
||||||
return "A";
|
return "A";
|
||||||
} else if (isConferido()){
|
} else if (isConferido()) {
|
||||||
return "B";
|
return "B";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return "C";
|
return "C";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Long getBoletoId() {
|
||||||
|
return boletoId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBoletoId(Long boletoId) {
|
||||||
|
this.boletoId = boletoId;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue