I have added a checkbox to my subform “employeedata” and if checked I would like the total time to be 1-1/2 instead of normal can you help me with the code?
var vtime as int=1 var vmaxtime as int = @formresultsettotal("employeedata") Var vgrandtime as double = 0
while vtime <= vmaxtime
//Need to add code that if overtime box is checked then time on job will be equal to 1-1/2 time.
{ vgrandtime = vgrandtime + @Tonumber(@formfieldvalue("employeedata","Time on job",vtime)) vtime = vtime + 1 } Total time on job = vgrandtime
Days to Complete = wo_Date_Completed - wo_Date_started Days Backlogged = wo_Date_Started - Date_Received MateriaLCharge = Grand total0
TotalCharge = Materialcharge + Labor charge
xpost(@Fn,LE35,"Wk_Req_Form!Request_Number",WO_Number,"Work_Order_Number","") xpost(@Fn,LE35,"Wk_Req_Form!Request_Number",Statis,"LE8","") xpost(@Fn,LE35,"Wk_Req_Form!Request_Number",Statis,"WO_Statis","") xpost(@Fn,WO_Number,"Schedule!Wonumber",Statis,"Statis","")
|