web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

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

How to create ledger transaction with posting type MSTDiff via X++

(1) ShareShare
ReportReport
Posted on by 57
Hi experts,
 
Can anybody tell me how to general ledger transaction with posting type MSTDiff via x++ code?
 
Thanks a lot.
 
Bernard
I have the same question (0)
  • Hana Xue Profile Picture
    Microsoft Employee on at
    Hi,
    Please check if the blog is helpful. https://denistrunin.com/xpptools-createledgerjournal/
    Best Regards,
    Hana
  • Suggested answer
    ByteCode Profile Picture
    4 on at
    Hi Bernard,
     
    "Penny difference" accounting entries are supposed to be created automatically based on GL parameter setup.
    Is there any specific scenario that you are trying to address?
     
    Please review this class/method - CustVendSettlement/postPennyDiff. This method creates a penny difference entry for the cust/vend settlement process.
     
    In general, if you want to create an entry with a penny difference based on some custom calculation, then create a regular entry with a calculated penny difference amount.
     
    Thanks.
  • YQ-12070237-0 Profile Picture
    57 on at
    Thanks ByteCode and Hana for your replay.
     
    Sorry for my description not clear. I try to post a sales invoice with foreign currency and get the voucher with calculated amount for both AccountingCurrencyAmount and TransactionCurrencyAmount in GeneralJournalAccountEntry.
     
    However, the posted AccountingCurrencyAmount has tiny difference but TransactionCurrencyAmount is exactly same. So I want to create an additional voucher to adjust the AmountCurrencyAmount, such as the voucher created via Foreign Currency Revaluation function.
     
    Or Can I post sales invoice with specified transaction amount and accounting amount?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 463 Super User 2026 Season 1

#2
Subra Profile Picture

Subra 409

#3
Martin Dráb Profile Picture

Martin Dráb 280 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans