I am trying to set up a database to work out sales commission but am not sure of the best way to set the tables and relationships. The commission structure for each person may be different. It is based on a percentage of the Gross Profit for that salesperson for invoices paid between 21 and 20th of a certaion month.
However, it maybe that one salesperson is paid 0% on total Profit below 8k but another salesperson may be paid 10% on 0-4k and 20% above 8k. To add to the complexity, a salespersons commission structure can change at any time. I think I need to make the commission for each salesperson into a derived field but dont know how to set up my tables to make that possible because of the potentially complex math. Please help!
However, it maybe that one salesperson is paid 0% on total Profit below 8k but another salesperson may be paid 10% on 0-4k and 20% above 8k. To add to the complexity, a salespersons commission structure can change at any time. I think I need to make the commission for each salesperson into a derived field but dont know how to set up my tables to make that possible because of the potentially complex math. Please help!