Notifications
Announcements
No record found.
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
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
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"); } } }
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.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 544 Most Valuable Professional
André Arnaud de Cal... 450 Super User 2025 Season 2
Sohaib Cheema 250 User Group Leader