IDEMPIERE-3350 Accounting Processor GL postings to "secondary" schema unreliable. Fix concurrency issue with accounting schema cache

This commit is contained in:
Heng Sin Low 2017-06-07 22:03:19 +08:00
parent 9eef8e0ca8
commit b17ce13062
1 changed files with 2 additions and 2 deletions

View File

@ -392,7 +392,7 @@ public class MAcctSchema extends X_C_AcctSchema
* Get Only Org Children * Get Only Org Children
* @return array of AD_Org_ID * @return array of AD_Org_ID
*/ */
public Integer[] getOnlyOrgs() public synchronized Integer[] getOnlyOrgs()
{ {
if (m_onlyOrgs == null) if (m_onlyOrgs == null)
{ {
@ -408,7 +408,7 @@ public class MAcctSchema extends X_C_AcctSchema
* @param AD_Org_ID * @param AD_Org_ID
* @return true if to skip * @return true if to skip
*/ */
public boolean isSkipOrg (int AD_Org_ID) public synchronized boolean isSkipOrg (int AD_Org_ID)
{ {
if (getAD_OrgOnly_ID() == 0) if (getAD_OrgOnly_ID() == 0)
return false; return false;