Does anyone know a good way to track “days with 0 ...
# inventory
d
Does anyone know a good way to track “days with 0 available stock” within a date-range in inventory reports?
k
Map/Reduce Script -> Runs 1x a day -> creates a custom record with date stamp and item field for knowing when items were out of stock - then you can run search on the custom record.
🤔 1
If you need - I can help you with that. Otherwise - most competent developers can probably run with it.
If you want to get really cheap and don't have boatloads of items out of stock - you could do a scheduled workflow that runs every day to create the records.
Heck - now that I think about it - I could probably write a scheduled workflow to do this in way less time than a map/reduce.
Maybe 5-10 hours.
d
Thanks very much--its not a ton of sku’s, roughly 500, but its enough that I really, really dont want to do anything with them individually or have to create a new one for each new sku, if thats what you mean. I appreciate the help, will look into on my end and will contact if it looks like it would make sense to have someone do this for us.
k
It'd be a workflow that ran of a saved search looking at items that were out of stock. Probably want to do a couple unconventional things to make sure it creates for all of them, but doesn't create duplicates, but otherwise it's a pretty simple workflow to write.
So then you could just run a search "Show me items that were out of stock between these dates"
👍 1