When refunding an invoice upon which commission has been paid to an affiliate, the commission should also be removed. This would need to be recorded in the affiliates commission log, perhaps a negative value, to explain what has happened.
One tricky situation would be how to handle commission removal when the product is one of several items on an invoice and a partial refund is issued for just one product.
Featured Comment
Thanks for your votes and comments on this idea. I'm pleased to advise this feature has been implemented in version 8.3!
Check out the release notes here: https://docs.whmcs.com/Version_8.3_Release_Notes#Affiliate_Commission_Reversals
The feature documentation is here: https://docs.whmcs.com/Affiliates#Delays_and_Reversals
We hope you find this new feature beneficial!