Error quantity in work order

Hi ,

In AX2012, work order, there is an option to enter defective item qty in "Error Qty". So that good qty will come into stock and defective qty will not come into stock.

My question is that 1) where this error qty will sit 2) how to send back to supplier 3) how to dispose financially in case of scrap....

pls explain ....