Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Posted: 31 Jul 2013 at 5:10am
Ahhh-I just noticed you altered the detail one to remove the space and comma
if you do not want a space between the Y or N for multiple rows then fix two things
details needs the comma after the Y or N
Fica := Fica + (If {ETax.tcode} In ["MED", "SS"] Then "Y," else "N,");
footer needs to only subtract 1 (removes the trailing ",")
Shared StringVar Fica := if Fica=0 then "Whatever you want here" else Left(Fica,len(Fica)-1);
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Posted: 31 Jul 2013 at 5:16am
Even though you should alwasy have at least 1 fica record I would still leave the if-then potion in the display footer formula to acount for the possibility of an error. You can display "Missing" or "Error" instead of having the report 'crash' in case the DB gets screwy.
Joined: 05 Sep 2012
Location: United States
Online Status: Offline
Posts: 177
Posted: 31 Jul 2013 at 5:46am
yeah that is a good point. i have it set up and fine tuning it to show correctly but so far this is what i'm getting.
every employee has 7 tax codes for various taxes according to payroll. so on the footer where all the records are shown in 1 line for this it will show like
NNNYNYN
becuase it's evaluating every tcode and answering accordingly but i only need a single Y if the employee as SS or MED tax code or a single N if they do not.
If i do something like this Shared StringVar Fica := Left(Fica,len(Fica)-6); in the footer then it will only show the last evaluated tcode instead of a correct Y or N.
Thanks for your help thus far. I'm just missing something.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum