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!
Saved Search to show business days open on a work order
We are trying to find a formula to help us display how many business days a work order has been open. We want the count to start when the work order is released and stop counting when the quantity equals built. We currently are using a transaction search and we have this formula but it keeps counting even when the work order is completed.
FLOOR((trunc({today})-trunc({appliedtotransaction.datecreated}))/7)*5 + mod(trunc({today})-trunc({appliedtotransaction.datecreated}),7) - case when to_number(to_char({today},'D')) < to_number(to_char({appliedtotransaction.datecreated},'D')) then 2 else 0 end
0