Skip to content

Commit

Permalink
Merge pull request #184 from afk11/balances
Browse files Browse the repository at this point in the history
getBalances (native); only use balance cache when date is null
  • Loading branch information
ar authored Sep 30, 2020
2 parents 05ee539 + 0d4699f commit 34e7ea8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/minigl/src/main/java/org/jpos/gl/GLSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -1153,7 +1153,7 @@ else if (acct.isFinalAccount()) {
BalanceCache bcache = null;
select.append(", transacc as txn\n");

if (!ignoreBalanceCache) {
if (date == null && !ignoreBalanceCache) {
short[] layersCopy = Arrays.copyOf(layers,layers.length);
bcache = getBalanceCache(journal, acct, layersCopy);
if (maxId > 0 && bcache != null && bcache.getRef() > maxId)
Expand Down

0 comments on commit 34e7ea8

Please sign in to comment.