Mohammad Daoud offers up a Historical Stock Status Script for inventory.
Mohammad R. Daoud: Historical Stock Status Script
Archived post from 2013. Dynamics GP and the links it points to have changed since; check current documentation before relying on version-specific steps.