greenspeak
Programmer
I have a report in which I need to total service units for consecutive days in a MR day program.
The report is laid out like the following:
Report header
Page header
GH1 group on service code
GH2 group on Medical assistance number
GH3 Group on begin date
Details section, includes the following fields
units utilized and dollar amount for service date/s as well as the dates of service.
GF3 running sum for total units and dollars for Consecutive days
GF2 running totals for Client.
GF1 Running totals for the service type.
I have this formula in the detail section.
numbervar ttlunits;
If datediff("d" , {Billings.Begin Date},next({Billings.Begin Date})) = 0 then
ttlunits := {Billings.Number of Units};
If datediff("d" , {Billings.Begin Date},next({Billings.Begin Date})) = 1 then
ttlunits := {Billings.Number of Units}+ ttlunits;
I have this in the group header client.
ttlunits := 0;
When the report is run it won't grab the units from the last consecutive date in the range.
Also, some of the fields have numbers that I can't determine where they came from.
Any help is greatly appreciated,
Steve
The report is laid out like the following:
Report header
Page header
GH1 group on service code
GH2 group on Medical assistance number
GH3 Group on begin date
Details section, includes the following fields
units utilized and dollar amount for service date/s as well as the dates of service.
GF3 running sum for total units and dollars for Consecutive days
GF2 running totals for Client.
GF1 Running totals for the service type.
I have this formula in the detail section.
numbervar ttlunits;
If datediff("d" , {Billings.Begin Date},next({Billings.Begin Date})) = 0 then
ttlunits := {Billings.Number of Units};
If datediff("d" , {Billings.Begin Date},next({Billings.Begin Date})) = 1 then
ttlunits := {Billings.Number of Units}+ ttlunits;
I have this in the group header client.
ttlunits := 0;
When the report is run it won't grab the units from the last consecutive date in the range.
Also, some of the fields have numbers that I can't determine where they came from.
Any help is greatly appreciated,
Steve