Announcements
No record found.
Hi Experts,
I have a requirement in Microsoft Dynamics 365 Finance & Operations related to purchase invoice posting through X++.
Purchase order contains multiple line items
Sales tax group is already correctly assigned at the line level
Invoice data is first stored in a custom table via a third-party API
This data is then used to post the invoice programmatically through X++
I need to adjust the calculated sales tax amount per line item (not at the total/document level).
For example:
Line 1 calculated tax = 96.512, required = 96.52
Line 2 calculated tax = 170.403, required = 170.41
So the requirement is to override the calculated amounts coming in from third-party API to ensure correct tax posting based on each line’s ledger configuration.
Standard functionality allows adjustment only at the total tax level, not per line
Since posting is done via X++ using external data, manual adjustment is not an option
Line-level rounding/override of tax amounts does not seem to be supported out of the box
Is it possible in standard D365FO to adjust/override sales tax per line during invoice posting?
If not, is there any supported customization approach to achieve this requirement?
Or is this a limitation of the tax framework where such control is not feasible even with customization?
Any guidance, suggestions, or real-world experience would be highly appreciated.
Thanks in advance!
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!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Giorgio Bonacorsi 653
André Arnaud de Cal... 493 Super User 2026 Season 1
Syed Haris Shah 317 Super User 2026 Season 1