I am working on a cost report in Crystal Reports ver. 10 and I am trying to display cost distributed over a chargeback percentage. Below is an example of how the report should look. For this example Job #1 has a total cost of $200.00
Job Chargeback Code %Distribution Chargeback Cost
1 100 20 40.00
1 150 5 10.00
1 200 75 150.00
Below is the formula used to calculate the Chargeback Cost:
{@OQ_Price} * ({ChargeBackDistrib.DistPercent}/100)
The issue is that the individual chargeback costs do not always add up to the total cost that was allocated. There is sometimes a cent or two difference. I have tried rounding and truncating functions within the formula, but have not found a fix for this.
Is there any way to ensure that the indvidual allocations add up to the original total amount?
Thanks.
Job Chargeback Code %Distribution Chargeback Cost
1 100 20 40.00
1 150 5 10.00
1 200 75 150.00
Below is the formula used to calculate the Chargeback Cost:
{@OQ_Price} * ({ChargeBackDistrib.DistPercent}/100)
The issue is that the individual chargeback costs do not always add up to the total cost that was allocated. There is sometimes a cent or two difference. I have tried rounding and truncating functions within the formula, but have not found a fix for this.
Is there any way to ensure that the indvidual allocations add up to the original total amount?
Thanks.