Reverse commission due to sales return - expected behaviour or bug?

Hi ERPNext Community,

I am trying to do a sales return as per describe here.

However, when I checked the commission report, I noticed that the system does not reverse the commission paid to the sales person/partner as it doesn’t keep track of sales return.

Can anyone enlighten me if I did something wrong, or if there’s a workaround?

Thank you!

Can anyone help?

Is custom script required?

This has been fixed recently. Please update to pull the changes and check.