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.