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.
Please note that on Saturday, April 11, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 30 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
Scripting to check if a date is in a closed period?
Hi,
We use sales orders as a rolling order for a monthly service. We have a single sales order that is raised when the service starts (rather than having a memorised monthly SO).
When the client cancels the service our process is that the single sales order is edited and an end date is put into the SO.
I want to be able to validate this date to make sure the end date can't be in a closed period.
I presume I need to script this but I can't find any reference to how I can check whether a date is in a closed period.
0