A customer sends back an order with two problems: 3 units of ITEM001 that were simply the wrong size (coming back to stock), and 2 units of ITEM002 that arrived broken (not coming back).
On the same credit memo: line 1 (ITEM001, qty 3) stays on Return to Stock; line 2 (ITEM002, qty 2) is set to Credit + Write Off Stock.
On posting: ITEM001's on-hand goes up by 3 (a genuine return). ITEM002's on-hand is unchanged (the write-off cancels the automatic return-assumption, nothing more). Both lines credit the customer/G-L side normally. One document, two different inventory outcomes, exactly matching what physically happened.