Commit 94759686 by Tuukka Kivilahti

fix product counter

1 parent a0cdda9c
......@@ -103,7 +103,8 @@ public class PlaceSlotFacade extends IntegerPkGenericFacade<PlaceSlot> {
cb.or(cb.isNull(billexp),
cb.greaterThan(billexp, Calendar.getInstance())
),
cb.isNull(root.get(PlaceSlot_.place))
cb.isNull(root.get(PlaceSlot_.place)),
cb.isNull(root.get(PlaceSlot_.used))
);
Long count = super.getSingleNullableResult(getEm().createQuery(q));
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!