Hi,
This is standard system behavior.
1. If AR credit memo is based on AR invoice then open quantity is restored in sales order
2. If AR credit memo is based on AR reserve invoice, there is no restoring open quantity.
Thanks & Regards,
Nagarajan