Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-6845

On the balance sheet, it display incorrect value on the total of long-term asset.

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Trunk
    • Fix Version/s: 14.12.01, 15.12.01
    • Component/s: accounting
    • Labels:
      None

      Description

      Now, it display the totals of all transactions of any assets. I have checked on the code and I have found the missing condition checked in there.

      BalanceSheet.groovy
      List longtermAssetAndExprs = mainAndExprs as LinkedList;
      longtermAssetAndExprs.add(EntityCondition.makeCondition("glAccountClassId", EntityOperator.IN, longtermAssetAccountClassIds));
      transactionTotals = select("glAccountId", "accountName", "accountCode", "debitCreditFlag", "amount").from("AcctgTransEntrySums").orderBy("glAccountId").queryList();
      
      

      Actually, it should be:

      List longtermAssetAndExprs = mainAndExprs as LinkedList;
      longtermAssetAndExprs.add(EntityCondition.makeCondition("glAccountClassId", EntityOperator.IN, longtermAssetAccountClassIds));
      transactionTotals = select("glAccountId", "accountName", "accountCode", "debitCreditFlag", "amount").from("AcctgTransEntrySums").where(longtermAssetAndExprs).orderBy("glAccountId").queryList();
      
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tukkading Supatthra Nawicha

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment