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.
Clarity on search criteria
I'm just looking from some clarity on a search I created
I made a search that looks for transactions that were created between a date range. Meaning I want to look for sales that were made 1 week ago, 2 weeks ago, 3 weeks ago.
To accomplish this I created the following formula.
case when {transaction.type} = 'Cash Sale' and {transaction.location} = {inventorylocation} and ({today} - {transaction.trandate}) BETWEEN 1 AND 7 then decode({transaction.type}, 'Cash Sale' , nvl(-{transaction.quantity},'0'),0) else 0 end
What my question is is:
When I use the BETWEEN statement does that include the end dates of the search or just the dates between that range?
0