Hi there,
I found a post to tell me out to concatenate message code fields, which works great. But now I am having a problem with summary totals for detail lines that have more than 1 message code on a line. If the line does not have a message or only has 1 message the total is fine, but the dollar amount for a line that has 2 or more message codes is multiplied by how many codes there are. example a detail line with 3 concatenated messages has that dollar amount added into the total 3 times.
Here are the formulas:
GH
Details
GF2 (displays data based on claim id field)
Date line message Charge
2/28/08 1 50.00
2/28/08 2 O8, O16 850.00
GF1 (displays total based on dollar field)
Total 1750.00
Any ideas on how to fix this would be appreciated.
Many thanks,
mfenn
I found a post to tell me out to concatenate message code fields, which works great. But now I am having a problem with summary totals for detail lines that have more than 1 message code on a line. If the line does not have a message or only has 1 message the total is fine, but the dollar amount for a line that has 2 or more message codes is multiplied by how many codes there are. example a detail line with 3 concatenated messages has that dollar amount added into the total 3 times.
Here are the formulas:
GH
Code:
whileprintingrecords;
global stringvar strClmeCodes := "";
Details
Code:
whileprintingrecords;
if global stringvar strClmeCodes = "" then
global stringvar strClmeCodes := {p011e_csv.Event_Code}
else
if global stringvar strClmeCodes <> {p011e_csv.Event_Code} then
global stringvar strClmeCodes := strClmeCodes + ", " + {p011e_csv.Event_Code}
GF2 (displays data based on claim id field)
Date line message Charge
2/28/08 1 50.00
2/28/08 2 O8, O16 850.00
GF1 (displays total based on dollar field)
Total 1750.00
Any ideas on how to fix this would be appreciated.
Many thanks,
mfenn