I think this relates to a feature request I made (which ended up as a private message so I can’t link it here) but it was essentially to allow credit notes to be just posted to an account as per any other purchase invoice rather than all this specific crediting to invoices.
I made a feature request for this as it seems to be a not unpopular request.