Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Date fields Post Reply Post New Topic
Author Message
jbrittnacher
Newbie
Newbie


Joined: 28 Mar 2012
Online Status: Offline
Posts: 1
Quote jbrittnacher Replybullet Topic: Date fields
     Posted: 28 Mar 2012 at 7:43am
I have a report that allows me to run the total remaining hours for jobs in our shop.  I want to modify the report to show 'behind hours' based on a cut off date parameter.  After I added in the parameter field into the report it cuts off the total remaining hours that used to calculate for the job.  Trying to figure out how the cut off date parameter relates to the total hours.  Here is the formula for remaining hours and behind hours:
 
Remaing Hours
if {@complete}=true then 0 else if
({job_routing.setup-time}+{job_routing.hrs-piece}*{job_routing.QtyToMfg})/3600<=
{job_routing.act-setup-hrs}+{job_routing.act-run-hrs} then 0.01 else
({job_routing.setup-time}+{job_routing.hrs-piece}*{job_routing.QtyToMfg})/3600
-{job_routing.act-run-hrs}+{job_routing.act-setup-hrs}
 
Behind Hours
if {job_routing.end-date}< {?Cut off date} then {@remain hours}
IP IP Logged
Printable version Printable version

Forum Jump
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