Incorrect calculation of netbalance
-----------------------------------

                 Key: OFBIZ-214
                 URL: http://issues.apache.org/jira/browse/OFBIZ-214
             Project: OFBiz (The Open for Business Project)
          Issue Type: Bug
          Components: accounting
            Reporter: Eriks Dobelis
         Attachments: utilaccounting.diff

UtilAccounting.getNetBalance is incorrectly calculating balances, because it 
assumes that ParentGlAccountClassId should be either DEBIT or CREDIT, but 
actually it could be more hierarchical levels, e.g. DEBIT/ASSET/CURRENT_ASSET. 
For accounts with class as CURRENT_ASSET the returned balance would be 0.
Supplied patch gives a quick fix, but may be it could be done in a safer way.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to