Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

error when posting a GL journal

(0) ShareShare
ReportReport
Posted on by 454

Hi,

I'm getting the following message when posting a GL journal.  

"Sum is different from quantity * production cost". 

I have debugged in the class methods I found there is a function to round off the value. So when comparing the roundoff value and Actual table value it throws error. How to fix this.

Regards,

Ram

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: error when posting a GL journal

    Hi Ram,

    Have you tried changing the GL parameter rounding setting?

    If there is no adjustment then the GL parameter setting shall pick that up and allow you posting.

    Best regards,

    Ludwig

  • Ram Kumar Profile Picture
    454 on at
    RE: error when posting a GL journal

    Hi Ludwig,

    Its a standard code , the reason for the issue is round off value not equal to the value returned from table.  

     if (_ledgerJournalTrans.AccountType == LedgerJournalACType::Project &&
            _ledgerJournalTrans.ledgerJournalTable().JournalType != LedgerJournalType::Cost)
        {
           amount = Currency::amount((_ledgerJournalTrans_Project.Qty * _ledgerJournalTrans_Project.CostPrice), _ledgerJournalTrans.CurrencyCode);
    
            if (_ledgerJournalTrans.AmountCurDebit)
            {
                if (_ledgerJournalTrans.AmountCurDebit != amount && _ledgerJournalTrans.AmountCurDebit != -amount)
                {
                    if (_ledgerPostingMessageCollection)
                    {
                        return _ledgerPostingMessageCollection.logCheckFailed("@SYS50951");
                    }
                    else
                    {
                        return checkFailed("@SYS50951");
                    }
                }
            }

    Regards,

    Ram

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: error when posting a GL journal

    Hi Ram,

    A GL journal does not have a field for the production cost.

    This must be something that has been modified.

    Have you talked to the developer who made this adjustment?

    Best regards,

    Ludwig

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,202 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,923 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans