Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Error VAT Calculation when posting invoice

Posted on by Microsoft Employee

Hello, good morning everyone, 

I'm writing because I have the followiing error when I try to post an invoice:

pastedimage1598014727792v1.png

I'm working with 2 lines, one is an item (with VAT calculation type Sales Tax) and the other is a GL account, with VAT calculation type: Full Tax.

This is US version. I tried this in W1 and had no trouble. I could work with both lines together.

How can I work in this version with both lines in the same document?

Thank you!

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error VAT Calculation when posting invoice

    Hello Brian, good morning,

    I've been reviewing this issue, and I have a little bit more information. I enclose the problem:

    The function SetTaxType of codeunits 80 y 90 validate that VAT calculation type is the same in every line. If not, this error shows up 'EveryLineMustHaveSameErr = Every sales line must have same %1 = %2.'

    We can not modify this objects directly because it is a cloud instance.

    Hope you can help me finding a solution.

    Thank you !!

  • Suggested answer
    Brian Wick Profile Picture
    Brian Wick on at
    RE: Error VAT Calculation when posting invoice

    Hi Belen,

    Most likely the reason is US version has localized sales tax code embedded into Codeunit 398 (Sales Tax Calculated) and other tables & pages related to Sales Tax functionality.  Mixing Sales Tax & Normal VAT on the same document is probably triggering a localized validation that is in place for this version that does not exist in W1.  I am just speculating based off the limited information provided. 

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!

Community AMA December 12th

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans