DennisRSI / AdminBrokerClientAgentPortal

For Admins Brokers Clients and Agents
3 stars 0 forks source link

Backend Math - Broker Assigning Commission to Agents #201

Closed hutch77 closed 5 years ago

hutch77 commented 5 years ago

Currently, when a Broker assigns Commission to an Agent, he assigns him a percentage of his Commission. Example:

The Broker makes 50% of a $100 Commission, so he gets $50. He tells Agent, I'll give you 10% of the total Commission which would be $10, but when he enters it, he has to do the math based on what HE'S getting, so he has to enter as 20% in order to give the Broker 10% of his Commission ($10 of the $100 made).

Broker wants to be able to enter 10% into the system so the Broker gets 10% of total commissionable amount, but we have to put in checks so Broker doesn't put in 50% for him and 50% for the Agent. I think we need to verify the amount the Broker enters does not equal a higher percentage than what he's making, so if his Commission is 50%, then whatever he puts in for the Agent cannot exceed 50%.

PROBLEM: If a Broker has multiple Agents on the same Client as per issues #195 and #194, the two Agents on that Client together cannot exceed the Broker's total percentage.