I see the mistake I put in my response: {@Wage amount to pay} is in gf2. The only way I get it to come out correctly is to print out the report, and then by hand add it. I did that 3 times to make sure I wasn't making a mistake on my calculator.
{@wage amount to pay} is in gf2, and the formula is:
if {@pay amount total} < 3
then 0
else
{@pay amount total} * {F060116_Employee_Master.YAPHRT_Hourly_Rate};
Hourly rate is not in the report, it is being pulled from the database. {@pay amount total) is in gf2 as well, and it's formula is:
if year ({F060116_Employee_Master.YADSI_Date_of_Original_Employment}) = 2006
then 0
else
{@Vaca fig1} + {@Vaca fig2};
{@vac fig1} and {2} are not in the report, just a function that is called. Date of original employment is being pulled from the database.
with a slight variation on the comparison, the formula for {@vaca fig1} is:
if {@Hours Used} >= {@Min Should Have Used}
then {@hours earned} - {@Hours Used}
and all of these are in gf2.
I hope that helps you! I, too, am still working on it.