Sales App - If and then

Goal: We are building an app for resellers in which there are different levels of commissions. We want to build a system where the following things can happen

  1. Whenever the reseller completes a level, his commission should increase by a certain percentage.
  2. For Completing a level, the reseller should do x amount of business
  3. There should be a complete report for commission earning for every level.
  4. There should be report of commission withdrawal also.