Discussions
Average Sold Per Day
This will be my first SuiteScript-ing.
I want to write a script to store in a custom field the Average Sold Per Day for inventory items. My plan is to query Sales Orders for the given item, sum the quantities of the line items connecting the given inventory item to the given Sales Order, divide by number of days, and store the value.
Can anyone point me in the right direction to start on this kind of operation?
I'm looking over the documentation but it seems like if someone who knows what they're doing takes 30 seconds to get me going, it'll save me hours.