stefanocps
Registered User.
- Local time
- Today, 10:48
- Joined
- Jan 31, 2019
- Messages
- 175
as you know it is really complicateted..imagine how it is for meThe structure does not change, but when you change the agent table (add, edit, delete an agent) it archives the organization. So there are now archive tables. This is all done automatically. The user only selects "reports" to and add new agents.
NEVER delete an agent. Move them under inactive
The query to process the royalties is now very complex. It determines the royalties based on the organization at the time of sale. It is complex for me, but it appears to work correctly.
Here is another update that allows you to view the archived organizations.
View attachment 108311
As I said in the beginning, I believe to do this correctly it is complicated. There are few people who can do this. There are a lot of different pieces that have to come together for this to work.
This structure can do the following
1. Allow any number of levels
2. easily assign and reassign Agents
3. handles any royalty scheme
4. handles changes to organization and assigns royalties based on the organization at time of sale.
The things i am focusesing now is when somethign chag en the sctrucutre. You says it is automatically archived ok
But data are still available if igo to query the time when the structure was not changed right?
And at the same time te nowdays queires are referring to the new structure..
is it?