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.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Trunk
    • 14.12.01, 15.12.01
    • accounting
    • 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

        1. addConditionForLongTermAsset.patch
          1 kB
          Supatthra Nawicha

        Activity

          People

            Unassigned Unassigned
            tukkading Supatthra Nawicha
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: