Calculate and Pay commission to CUSTOMER

In AX, there is functionality to calculate commission on sales and pay to Sales Person. We have a scenario where company needs to pay to commission to its customer itself. do we have some function to calculate and pay commissions to our customers ?????
In this scenario, company first sells its products to its distributors, and once distributors sells to further customers and then distributor notifies to company and then company calculates commissions on sold products (by distributors) and then pay to distributors.

Related
Recommended