Skip to main content

Notifications

Small and medium business | Business Central, N...
Answered

Purchasing Invoice Integration

Posted on by 2
Good morning,
 
I am creating a Purchase Invoice integration in Business Central via a combination of AL and middleware (SmartConnect). There is no need to go into too much depth here, but everything is working properly except for line-level tax amounts that need to be added to the invoice.  I asked the client if we could simply roll the tax into the cost field, but they need it broken out.  I have a precalculated tax amount in the data feed that creates the purchasing invoices so there is no need for Business Central to calculate the taxes.  However, when I store the tax amount on the purchase line, BC is overwriting it with the tax area code percentage from the company setup.  
 
My question is, hopefully, simple: how can I store a precalculated tax amount on the purchase line without Business Central overwriting it with its own calculations?  I can provide code snippets if necessary.
 
Thank you in advance.
Categories:
  • Verified answer
    YUN ZHU Profile Picture
    YUN ZHU 73,339 Super User 2024 Season 2 on at
    Purchasing Invoice Integration
    Hi, the standard logic related to taxes is quite complicated, and I don't recommend you to change the standard logic.
    I think you can add a new field to hold the tax calculated by your external system, and then add a summary field as a reference.
     
    Hope this can give you some hints.
    Thanks.
    ZHU

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!

Community AMA December 12th

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

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans