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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
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