web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Error VAT Calculation when posting invoice

(0) ShareShare
ReportReport
Posted on by

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!

I have the same question (0)
  • Suggested answer
    Brian Wick Profile Picture
    on at

    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. 

  • Community Member Profile Picture
    on at

    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 !!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans