Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

I want to modify Customer Ledger Entry when post preview sales Order

Posted on by 184

I want to modify Customer Ledger Entry when post preview sales Order. Is there any event subscriber or Codeunit I can use to do this?

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: I want to modify Customer Ledger Entry when post preview sales Order

    Good good, you got me worried there for a while :)

  • Suggested answer
    Muaaz Deyab Profile Picture
    Muaaz Deyab 184 on at
    RE: I want to modify Customer Ledger Entry when post preview sales Order

    I do not want to modify the customer ledger entry after posting, I just want to show amount in different currencies when preview posting only, and it is temporary record of CLE.

    I used the codeunit 80 and this event OnAfterPostGLAndCustomer, there is PreviewMode flag so I am only modifing when it is preview mode 

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: I want to modify Customer Ledger Entry when post preview sales Order

    You should never modify the customer ledger entry table in Business Central,

    This is a transaction table where records are inserted during posting.

    If there is something wrong with the transactions you see in post preview than that is due to incorrect setup that needs to be adjusted.

  • Suggested answer
    Marco Mels Profile Picture
    Marco Mels on at
    RE: I want to modify Customer Ledger Entry when post preview sales Order

    Hello,

    Why do you want to do that?

    Thank you.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans