fixed bug #9847
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@73986 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
2b85f7899b
commit
63ae190183
|
@ -207,7 +207,9 @@ public class CajaHibernateDAO extends GenericHibernateDAO<Object, Long> implemen
|
||||||
if (cajaDetalleVO.getFormaspagamento() == null){
|
if (cajaDetalleVO.getFormaspagamento() == null){
|
||||||
cajaDetalleVO.setFormaspagamento(new ArrayList<PagamentoVO>());
|
cajaDetalleVO.setFormaspagamento(new ArrayList<PagamentoVO>());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!cd.getDescPago().equalsIgnoreCase("RESERVA")
|
||||||
|
&& !cd.getDescPago().equalsIgnoreCase("TROCA DE PASSAGEM")){
|
||||||
PagamentoVO pagamentoVO = new PagamentoVO();
|
PagamentoVO pagamentoVO = new PagamentoVO();
|
||||||
pagamentoVO.setFormapagamento(cd.getDescPago());
|
pagamentoVO.setFormapagamento(cd.getDescPago());
|
||||||
pagamentoVO.setMoeda("R$");
|
pagamentoVO.setMoeda("R$");
|
||||||
|
@ -215,6 +217,7 @@ public class CajaHibernateDAO extends GenericHibernateDAO<Object, Long> implemen
|
||||||
pagamentoVO.setIdentificacaoEmpresa(cd.getCvesecretaria());
|
pagamentoVO.setIdentificacaoEmpresa(cd.getCvesecretaria());
|
||||||
pagamentoVO.setRazaoSocial(cd.getDescsecretaria());
|
pagamentoVO.setRazaoSocial(cd.getDescsecretaria());
|
||||||
|
|
||||||
|
|
||||||
if(cd.getNotacreditovendapacoteId() != null) {
|
if(cd.getNotacreditovendapacoteId() != null) {
|
||||||
NotaCreditoVendaPacoteVO notacredito = new NotaCreditoVendaPacoteVO();
|
NotaCreditoVendaPacoteVO notacredito = new NotaCreditoVendaPacoteVO();
|
||||||
notacredito.setVouchernotacredito(cd.getNotacreditovendapacoteId().toString());
|
notacredito.setVouchernotacredito(cd.getNotacreditovendapacoteId().toString());
|
||||||
|
@ -253,13 +256,20 @@ public class CajaHibernateDAO extends GenericHibernateDAO<Object, Long> implemen
|
||||||
if(pagamentoVO.getDadosBancarios().isEmpty()) {
|
if(pagamentoVO.getDadosBancarios().isEmpty()) {
|
||||||
pagamentoVO.setDadosBancarios(null);
|
pagamentoVO.setDadosBancarios(null);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (indexOf == -1){
|
if (indexOf == -1){
|
||||||
lsResultado.add(cajaDetalleVO);
|
lsResultado.add(cajaDetalleVO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
List<CajaDetalleVO> filtrados = new ArrayList<CajaDetalleVO>();
|
||||||
|
for(CajaDetalleVO c : lsResultado){
|
||||||
|
if(c.getFormaspagamento() != null && !c.getFormaspagamento().isEmpty()){
|
||||||
|
filtrados.add(c);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return lsResultado;
|
return filtrados;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<UsuarioVO> buscarCajaCerrado(Date fecha, String cveusuario, String turnoid) {
|
public List<UsuarioVO> buscarCajaCerrado(Date fecha, String cveusuario, String turnoid) {
|
||||||
|
|
Loading…
Reference in New Issue