Hi
I have two different data sets.
1.: Customer id's -these are split in 3, since we have a client hiracy.
Accounts is the lowest level, therefore hiracy level 3.
Customer is the middel, therefore hiracy level 2.
CompanyGroup is the highest, therefore hiracy level 1.
A CompanyGroup can have multiple customers.
A customer can have multiple accounts.
So I wanna populate all combinations for which customers belong to which customer groups, and which accounts to which customers.
Then I have our agreements made with our customers (customer groups).
The grouping could be like this:
CustomerGroup (Compagny Worldwide)
- Customer 1 (Comnagny - Europe)
Account 1 : Stores
Account 2 : Wholesale - Customer 2 (Comnagny - US)
Account 1 : Stores
Account 2 : Wholesale - Customer 3 (Comnagny - ASIA)
Account 1 : Stores
Account 2 : Wholesale
We can do agreements on all 3 levels. But we wanna look first if there is an agreement on Account level (level 3), else level 2, and then 1.
I have linked in a sample agreement, showing customer identifyer and agreement level.
The purpose is when the customers shoots on our API, with a account id - I want to be able to show which level agreement level to apply on that account id.
Any help is appriciated
Thank you