From 758ce05589c12852e7514c72f8a524fd905b5e07 Mon Sep 17 00:00:00 2001 From: Alejandro Revilla Date: Thu, 23 Jun 2016 11:21:03 -0300 Subject: [PATCH] bugfix: createBalanceCache should return latest balance getBalance and createBalanceCache used to be interchangeable. With the latest fix to use a safe maxId in createBalanceCache, we were not returning the latest balance but the balance at safeMaxId time. --- modules/minigl/src/main/java/org/jpos/gl/GLSession.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 db5096fc63..b29ee3c719 100644 --- a/modules/minigl/src/main/java/org/jpos/gl/GLSession.java +++ b/modules/minigl/src/main/java/org/jpos/gl/GLSession.java @@ -1298,7 +1298,7 @@ else if (acct instanceof FinalAccount) { session.saveOrUpdate (c); } } - return balance; + return getBalance(journal, acct, layers); } /**