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!
Update taxcode in line items inside fieldChanged event
Hi everyone, I'm having an issue with setting a sublist value in a client script attached to a Sales Order. The script runs on the fieldChanged event and it executes on 'item' field update in item sublist and 'shipaddress' update on the main form. It works as such:
- When a user adds/updates an item on the item sublist the code checks the value of the 'shipcountry' field. The value of 'taxcode' on the sublist line is then set based on the value of 'shipcountry' (e.g. if US then the appropriate US taxcode is set, if CA then appropriate Canadian taxcode is set, etc.)
0