diff --git a/modules/minigl/src/main/java/org/jpos/gl/GLSession.java b/modules/minigl/src/main/java/org/jpos/gl/GLSession.java index 5c96813e9e..6685eecb4e 100644 --- a/modules/minigl/src/main/java/org/jpos/gl/GLSession.java +++ b/modules/minigl/src/main/java/org/jpos/gl/GLSession.java @@ -1069,7 +1069,7 @@ else if (acct.isFinalAccount()) { } } else { BalanceCache bcache = getBalanceCache (journal, acct, layersCopy); - if (bcache != null && (maxId == 0 || bcache.getRef() <= maxId)) { + if (bcache != null && bcache.getRef() <= maxId) { balance[0] = bcache.getBalance(); entryCrit.add (Restrictions.gt("id", bcache.getRef())); }