To reinforce what Uncle has said, this is handled as a separate transaction. So the original order stays put and you have an audit trail of the original order and the return(credit note) as a negative transaction, which at the same time "returns" an item into the stock.