web
You’re offline. This is a read only version of the page.
close
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

I have the same question (0)
  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    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

  • Ram Kumar Profile Picture
    454 on at

    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

    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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 544 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans