Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Setting an item tax code
Hi,
When creating an item (e.g. ServiceSaleItem) the tax code must be specified, as the following message says:
Status detail: ERROR, USER_ERROR, Please enter a value for Tax Code
To set the tax code I am using the following code:
ServiceSaleItem item = new ServiceSaleItem();
RecordRef rr = new RecordRef();
rr.setType(RecordType.???);
rr.setInternalId("0");
item.setSalesTaxCode(rr);
My question is what RecordType should be used? In the RecordType class I can find the following types related to taxes (there is no _taxCode or _salesTaxCode):
_salesTaxItem
_taxGroup
_taxType
Thanks,
Gaetan
0