10595 - Pricing dando refresh nos dados, quando é uma cópia (Continuação)
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@78891 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
5e25d978aa
commit
ce4ed3ac0b
|
@ -40,7 +40,7 @@ public class PricingOcupaAntecipaHibernateDAO extends GenericHibernateDAO<Pricin
|
|||
@Override
|
||||
public List<PricingOcupaAntecipa> buscarOcupaAntecipaPricing(Integer pricingId) {
|
||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||
c.add(Restrictions.eq("activo", Pricing.ATIVO));
|
||||
c.add(Restrictions.or(Restrictions.eq("activo", Pricing.ATIVO), Restrictions.eq("activo", Pricing.INATIVO)));
|
||||
c.add(Restrictions.eq("pricing.pricingId", pricingId));
|
||||
|
||||
return c.list();
|
||||
|
|
|
@ -233,7 +233,7 @@ public class Pricing implements Serializable {
|
|||
public List<PricingOcupaAntecipa> getPricingOcupaAntecipaList() {
|
||||
List<PricingOcupaAntecipa> poaList = new ArrayList<PricingOcupaAntecipa>();
|
||||
for (PricingOcupaAntecipa poa : this.pricingOcupaAntecipaList) {
|
||||
if (poa.getActivo() != EXCLUIDO.intValue() && poa.getActivo() != INATIVO.intValue()) {
|
||||
if (poa.getActivo() != EXCLUIDO.intValue()) {
|
||||
poaList.add(poa);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue