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!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Can't populate tax code field by script....
Hi-
We ahve a script on the invoice form that is used to bill employee travel expenses to customers... The issue is that the "tax code" for each lines (sometimes there are 50 lines) comes up as blank, but it is a required field. We have a tax code called "-Not Taxable-" which has an internal ID of -7, however, when I try to set the tax code column field I get:
nlapiSetLineItemValue('expcost', 'expcosttaxcode_display', x, "-Not Taxable-");
//sets the fields with a string of "Not Taxable" but they are not recognized as valid values...
OR
nlapiSetLineItemValue('expcost', 'expcosttaxcode_display', x, -7);
0