thementornetwork
MIS
Crystal XI
Goal:
Bring back service details (amount used, date, duration etc.) on screen for any services covered under the contract.
The report gives the user a chance to compare total used vs total allowed.
Facts:
- Each contract covers 1 or many services
- Each contract covers up to a certain amount
- Each group of service is stored as a long string like:
"200&260&2270&301&333&389&430&466"
Current Contract table structure looks like:
____________________________________________
Contract|Cust_ID |Svc_Code | Max_Dollar |
________|________|____________|____________|
100 | C16 | 200&260&370| $1000 |
170 | C29 | 102&235 | $ 800 |
________|________|____________|____________|
Challenge:
The IDs I can link the Contract Table to the Services Details table would be:
Cust ID
Service Code
How can I break the Service Code string and retrieve the Service details corresponding
to each of the Service Code?
I am almost sure you need to create an array to store those codes but I do not know
how to proceed nor where to start?
Ideal look of the report:
---------------------------------------------------------------
Group H:|Contract 100 Max Dollars allowed: $1000 Cust# C16
---------------------------------------------------------------
Details |Service Date: Service: Charges:
|
|09/10/2007 200 - Laundry pick up $100
|09/17/2007 260 - Lawn mowing $50
|09/25/2007 200 - Laundry pick up $100
|10/04/2007 370 - Heater repair $250
|10/16/2007 200 - Laundry pick up $100
---------------------------------------------------------------
Group F:| Subtotal used: $600
---------------------------------------------------------------
Group F:| Remaining: $400
---------------------------------------------------------------
Group H:| Contract 100 Max Dollars allowed: $ 800 Cust# C19
---------------------------------------------------------------
Details |Service Date: Service: Charges:
|
|08/31/2007 235 - Groceries delivery $200
|09/14/2007 235 - Groceries delivery $350
|09/28/2007 102 - Dog walk $100
|10/14/2007 102 - Dog walk $100
|10/30/2007 235 - Groceries delivery $250
---------------------------------------------------------------
Group F:| Subtotal used: $1000
---------------------------------------------------------------
Group F:| Remaining: $(200)
Goal:
Bring back service details (amount used, date, duration etc.) on screen for any services covered under the contract.
The report gives the user a chance to compare total used vs total allowed.
Facts:
- Each contract covers 1 or many services
- Each contract covers up to a certain amount
- Each group of service is stored as a long string like:
"200&260&2270&301&333&389&430&466"
Current Contract table structure looks like:
____________________________________________
Contract|Cust_ID |Svc_Code | Max_Dollar |
________|________|____________|____________|
100 | C16 | 200&260&370| $1000 |
170 | C29 | 102&235 | $ 800 |
________|________|____________|____________|
Challenge:
The IDs I can link the Contract Table to the Services Details table would be:
Cust ID
Service Code
How can I break the Service Code string and retrieve the Service details corresponding
to each of the Service Code?
I am almost sure you need to create an array to store those codes but I do not know
how to proceed nor where to start?
Ideal look of the report:
---------------------------------------------------------------
Group H:|Contract 100 Max Dollars allowed: $1000 Cust# C16
---------------------------------------------------------------
Details |Service Date: Service: Charges:
|
|09/10/2007 200 - Laundry pick up $100
|09/17/2007 260 - Lawn mowing $50
|09/25/2007 200 - Laundry pick up $100
|10/04/2007 370 - Heater repair $250
|10/16/2007 200 - Laundry pick up $100
---------------------------------------------------------------
Group F:| Subtotal used: $600
---------------------------------------------------------------
Group F:| Remaining: $400
---------------------------------------------------------------
Group H:| Contract 100 Max Dollars allowed: $ 800 Cust# C19
---------------------------------------------------------------
Details |Service Date: Service: Charges:
|
|08/31/2007 235 - Groceries delivery $200
|09/14/2007 235 - Groceries delivery $350
|09/28/2007 102 - Dog walk $100
|10/14/2007 102 - Dog walk $100
|10/30/2007 235 - Groceries delivery $250
---------------------------------------------------------------
Group F:| Subtotal used: $1000
---------------------------------------------------------------
Group F:| Remaining: $(200)