Hi Maja,
You can possibly mark inventory transactions to link them for correct recalculations. Marking the credit note with the invoice is only for open customer or vendor transactions.
Can you indicate if you are referring to credit on the sales or the purchase?