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?
Good good, you got me worried there for a while :)
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
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.
Hello,
Why do you want to do that?
Thank you.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,104 Most Valuable Professional
nmaenpaa 101,156