SOH showing items returned on credit note, but items are not on the credit note.

Question

 Why does the inventory maintenance > SOH > Transaction Detail grid show items returned on a credit note, but when I drill to the credit note the items are not on that form?

  

Answer

When a credit note is created from an existing sales order, all original sales order lines are added to the credit note. Then the user saves. There are now IN_SOH rows for all of those lines. The user then deletes the lines they don't want from the credit note. The IN_SOH rows are not deleted, but the QuantityLeft is set to 0. The screenshots provided show those lines because the "Show Zero Values" option is ticked.

Even though the Quantity In is a number greater than zero, it's the Quantity Left that's important, and that is zero.