Reverted latest changes in inventory adjustment to ensure database consistency.