Bennie47250
Programmer
Using Crystal CD Developer version 14.0
Hopefully I can explain what I wanting to do clearly.
Our distributors are assigned sales territories and they are allowed to have other distributors in the territory. Let’s call the distributor assigned to the territory the Master Distributor (MD) and the other distributors in the territory Sub Distributors (SB)
Where we measure the performance of the MD they get credit for everything sold in the territory not to just their customer number.
Therefore I cannot just pull records based on the MD customer number as that would not include the sales to the SD’s
1) So what I think needs to happen is
2) Query the customer master to find the MD and their assigned territories
3) Use this list to get the territories numbers
4) Pull records based on territories numbers
The customer list is dynamic so I’m trying to advice hard coding the list
Would like to do all this inside the Crystal report if possible.
Hopefully I can explain what I wanting to do clearly.
Our distributors are assigned sales territories and they are allowed to have other distributors in the territory. Let’s call the distributor assigned to the territory the Master Distributor (MD) and the other distributors in the territory Sub Distributors (SB)
Where we measure the performance of the MD they get credit for everything sold in the territory not to just their customer number.
Therefore I cannot just pull records based on the MD customer number as that would not include the sales to the SD’s
1) So what I think needs to happen is
2) Query the customer master to find the MD and their assigned territories
3) Use this list to get the territories numbers
4) Pull records based on territories numbers
The customer list is dynamic so I’m trying to advice hard coding the list
Would like to do all this inside the Crystal report if possible.