Symptoms

General Journal report printing with wrong Ledger account.

 

Techincal problem Description:

 

While posting the project cost, system is where to post the cost either Balance sheet or operations. In our case it is Balance sheet, but when we posting the system is checking the project line property “Capitalize cost” is marked or not. In our case it is not marked hence system is posting for the operations. As per the below code \Classes\ProjPost\newCreateProjCostAndLedger

   

   if ( projPost.parmLedgerStatusCost() == ProjLedgerStatus::BalanceSheet)

    {

        if (projTrans.projLineProperty().ToBeCapitalize)

        {

            if (ProjTable::isPLPostingRequired(projTrans.projTable().ProjId))

            {

                projPost.parmLedgerStatusCost(ProjLedgerStatus::Operations);

            }

        }

        else

        {

            projPost.parmLedgerStatusCost(ProjLedgerStatus::Operations);

        }

    }

Based on that system is taking the ledger account. But when we running the report system is not checking the above the condition. From the below code \Classes\ProjTrans\journalReportLedgerDimension 

 

public LedgerDimensionDefaultAccount journalReportLedgerDimension(ProjFundingSourceRefId _fundingSourceID )

{

    LedgerDimensionDefaultAccount       ledgerDimension;

    ProjLedgerStatus    costTransCost   = ProjGroup::find(ProjTable::find(this.projId()).ProjGroupId).CostTransCost;

 

    if (costTransCost)

    {

        switch(costTransCost)

        {

                case ProjLedgerStatus::BalanceSheet:

                        ledgerDimension = ProjPosting::getLedgerDimension(ProjAccountType::StatusAccount,

                                        this.projId(),

                                        this.categoryId(),

                                        _fundingSourceID);

                        break;

                default :

                        ledgerDimension = ProjPosting::getLedgerDimension(ProjAccountType::CostAccount,

                                        this.projId(),

                                        this.categoryId(),

                                        _fundingSourceID);

                        break;

        }

    }

    return    ledgerDimension;

}

 

System is taking the ledger account from the ProjLedgerStatus :: BalanceSheet instead of Default case. Hence in the report we are getting the wrong account and even though its show the correct account in vouchers.

 

Resolution

From this fix onwards system will show the correct ledger account when we print the General Journal report.

 

Solution Description:

While taking the ledger account from the journal report, as like posting the will check the project line property “Capitalize cost” is marked or not. In our case it is not marked hence system is posting for the operations. As per the below code \Classes\ProjPost\newCreateProjCostAndLedger

   

   public LedgerDimensionDefaultAccount journalReportLedgerDimension(ProjFundingSourceRefId _fundingSourceID )

{

    LedgerDimensionDefaultAccount       ledgerDimension;

    ProjLedgerStatus    costTransCost   = ProjGroup::find(ProjTable::find(this.projId()).ProjGroupId).CostTransCost;

 

    if ( costTransCost == ProjLedgerStatus::BalanceSheet)

    {

        if (this.projLineProperty().ToBeCapitalize)

        {

            if (ProjTable::isPLPostingRequired(this.projTable().ProjId))

            {

                costTransCost = ProjLedgerStatus::Operations;

            }

        }

        else

        {

            costTransCost = ProjLedgerStatus::Operations;

        }

    }

 

    if (costTransCost)

    {

        switch(costTransCost)

        {

                case ProjLedgerStatus::BalanceSheet:

                        ledgerDimension = ProjPosting::getLedgerDimension(ProjAccountType::StatusAccount,

                                        this.projId(),

                                        this.categoryId(),

                                        _fundingSourceID);

                        break;

                default :

                        ledgerDimension = ProjPosting::getLedgerDimension(ProjAccountType::CostAccount,

                                        this.projId(),

                                        this.categoryId(),

                                        _fundingSourceID);

                        break;

        }

    }

    return    ledgerDimension;

}

Based on that system will take the Ledger account.

 

Affected File:

\Classes\ProjTrans\journalReportLedgerDimension 

More information

Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained here in is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.
Properties

Article ID: 4010471 - Last Review: 2017, ജനു 20 - Revision: 1

ഫീഡ്‌ബാക്ക്