We have enhanced the sales order screen such that when a credit is entered, you can indicate whether the stock was returned. If you answer N (i.e. stock not returned), when the sales order is invoiced, a stock adjustment will be generated to remove the inventory. This feature is also in the Duplicate as credit screen.