https://netsuiteprofessionals.com logo
m

Marwan

04/24/2022, 12:34 PM
Hi, I am trying to create a salesorder, it works from the front-end, but while doing the same from the code, I get this error
Invalid Tax Code(s): VAT 14% -- valid
, any idea what could cause that?
a

ahmed saeed moawoad elmasry

04/24/2022, 2:29 PM
I think you have a fixed applied tax code to this item while this tax code is not will configured to this item as a test case. try to add the same lines from the UI with same tax-codes
m

Marwan

04/24/2022, 2:30 PM
I already tried, and it works.
a

ahmed saeed moawoad elmasry

04/24/2022, 3:12 PM
Okay. you set the tax code as id or as a text?
m

Marwan

04/24/2022, 3:12 PM
id
a

ahmed saeed moawoad elmasry

04/24/2022, 3:15 PM
mmm. Okay you could also check whether the item itself is set before setting the tax-code and do you commit the line or not and what type of script do you use?
m

Marwan

04/24/2022, 3:16 PM
The item is set before the tax-code yes, I do commit the line. It is a Restlet 2.1
a

ahmed saeed moawoad elmasry

04/24/2022, 3:18 PM
Are u sure you set the right subsidiary?
m

Marwan

04/24/2022, 3:18 PM
Yes
a

ahmed saeed moawoad elmasry

04/24/2022, 3:19 PM
and tax code is configured upon this item
m

Marwan

04/24/2022, 3:21 PM
I don't know this part, the functional team will, will ask them. In the item page, I see WH Tax Code, but not just Tax Code.
Never mind, I will open a ticket. Thanks for your help 🙏
s

Shawn Talbert

04/24/2022, 7:12 PM
try using standard mode
m

Marwan

04/24/2022, 7:13 PM
I turned out to be the most stupid person on the planet, it was the date. It works now.