Work order and b-stock

Sometimes when manufacturing our goods we end up with B-stock we sell at a discounted rate rather than scaping the items. Does anyone have a process for accounting for b-stock in the when completing a work order? Our b-stock items have a different item number but the valuation is the same.