Bugs on Accounts Receivable Reports

In Accounts Receivable reports, if we filter by Sales Person, for a customer, where the sales person has been changed, then the report acts differently.

For example, Sales Person Farid was set to this customer FARID ENTERPRISE , and the outstanding amount is 1,325. Later the salesperson is changed to Mahdi and the outstanding amount is 137,325 where the amount 1,325 is already included.

So if we are extract outstanding report by salesperson, this creates a huge confusion cause the outstanding amount is already included to some other report.

My suggestion here would be, to show outstanding by their last salesperson only.

An issue has been created on GitHub for this. https://github.com/frappe/erpnext/issues/25550