Skip to main content

Notifications

Announcements

No record found.

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

Purchasing Invoice Integration

(0) ShareShare
ReportReport
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.
  • Verified answer
    YUN ZHU Profile Picture
    YUN ZHU 74,115 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!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans