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,
The method of replacement is mentioned in this link, have you checked?
community.dynamics.com/.../replacing-main-account-in-ledger-dimension
Hi André,
Which method can I use to combine the main account with the financial dimension?
thank you in advance
kind regards,
Hi Chahrazad,
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.
Hi,
I just want to know if it is possible! and what class or method I can use for this customization.
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 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 ChahrazadK,
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é,
for Sales Order
kind regards,
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?
André Arnaud de Cal...
292,111
Super User 2025 Season 1
Martin Dráb
230,934
Most Valuable Professional
nmaenpaa
101,156