Announcements
No record found.
Hi all!
is there a (Class, Method) we can put conditions to link to the article to change the account at time invoice validation.
Suppose I have a ledger dimension 401100-001---audio and I want to replace just the Main account segment and make it 601100-001---audio
kind regard
Hi ChahrazadK,
What type of invoice is your question related to? Sales order, Free text, Purchase order, Vendor cost invoice, or project invoice?
What is the exact business requirement to change the main account?
Hi André,
for Sales Order
kind regards,
If the ledger account is the revenue account, you can specify another account on the sales order lines. This needs to be done before you post the invoice.
Still, I wonder about the exact business scenario to think if there is a better option for your requirement.
Hi André,Exactly,
for example, all orders have a posting type "Sales order revenue" and I want to change it to a different posting type with conditions.Kind regards.
Hi Chahrazad,
In that case, you would need a customization, but also ensure you will not break the application behavior where logic is dependent on the posting type. What is the exact reason for another posting type?
Hi,
I just want to know if it is possible! and what class or method I can use for this customization.
It will require an impact analysis if there are dependencies on the current posting type. Just another main account has less impact and would be feasible. To check where to interact, you would need to find the place which retrieves the current main account for the sales order.
Which method can I use to combine the main account with the financial dimension?
thank you in advance
The method of replacement is mentioned in this link, have you checked?
community.dynamics.com/.../replacing-main-account-in-ledger-dimension
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.
Congratulations to our 2026 Super Stars!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 545 Super User 2026 Season 1
Giorgio Bonacorsi 408
Adis 267 Super User 2026 Season 1