Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
NetSuite has launched SuiteSuccess Wholesale Distribution Edition, in Japan. Please join us the webinar on February 12 that introduces NetSuite solution with demos and case studies for Wholesale Industry.
Register Now
How to write to line level department on Invoice
Hi,
We currently have a POS integration. The solution links up our POS system to NetSuite and creates an invoice for every sale. The invoice is created through a locked custom form. The problem I am having is the locked form does not include the line level department field. We want to be able to track the line level department on these POS sales.
The solution I have so far is a script that runs on invoices / the custom form. It switches the form to another custom form that we created that includes the line level department field. After the new form is set it looks through the items on the invoice. It looks at the item department and is supposed to write that department to the line level department on the new custom form. Everything works fine except I cannot get the department to write to the form. Below is my code, any idea why department isn't writing to the form? Thank