AyaNova service management & work order software
AyaNova Support Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Workorder total time report Expand / Collapse
Author
Message
Posted 12/30/2009 11:33:08 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 1/4/2010 4:21:16 PM
Posts: 19, Visits: 74
Hi,
I need to create a report for each closed workorder that will show the total time taken from the moment the workorder was created to the moment it was closed. Is it possible? My guess is that the Service Date in the workorder header would be the start date. What about the close date? Does it get created when I close the workorder? If so, where can I find that close date? Thx.
Post #4955
Posted 12/30/2009 11:48:31 AM
AyaNova Sales & Support

AyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & Support

Group: Administrators
Last Login: 3/17/2010 7:34:22 AM
Posts: 2,190, Visits: 5,029
Hi

A suggestion may be to use the Record Last Modified field in a detailed report template - as whenever you modify a service workorder, that field gets updated. And once you checkmark the Closed field in a workorder, you can not modify the workorder any more so it could be the closed date.

Of course, if you log in as the AyaNova Administrator and uncheck the Closed, and then Close it again, do note that the Last Modified Date will be changed - so kept that in mind.

Or another suggestion is to use the Labor's Service Stop Date & Time field.

Or if you do not neccesarily complete service for a workorder the same day you check the Closed field of the workorder or you have multiple Labor items in a workorder that all have different stop date/times, you might want to use another date field such as the Close By Date field so you specifically set the date and time closed.

Do to take a look at the sample at http://forum.ayanova.com/Topic3035-103-1.aspx for subtracting dates.

Also check out the sample detailed type report template installed with AyaNova for use with the Service Workorder grid and Items grid Sample Labor from Request Date Average Response Time as it too shows an example of the scripts you can refer to in the Before Print script for the Detail1 band and Before Print script for the Report Footer band.

Or if you would like me to create this custom report for you, or create a custom script for you, send details as per http://forum.ayanova.com/Topic3447-100-1.aspx and I can quote for you.

- Joyce

AyaNova Sales & Technical Support
http://www.ayanova.com
Post #4956
Posted 12/31/2009 9:30:01 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 1/4/2010 4:21:16 PM
Posts: 19, Visits: 74
I fallowed your sample but I'm getting nothing but zeros. I used the same script to calculate total hours spent but it looks like my dt1 and dt2 values are not being read properly. I'm attaching this test report. If you could take a look at it and tell me where the problem is I'd appreciate it.

  Post Attachments 
ReportTest.ayr.zip (1 view, 37.77 KB)
Post #4957
Posted 12/31/2009 10:12:37 AM
AyaNova Sales & Support

AyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & Support

Group: Administrators
Last Login: 3/17/2010 7:34:22 AM
Posts: 2,190, Visits: 5,029
Hi Mospan, I will download and take a look and get back to you what I find.

- Joyce

AyaNova Sales & Technical Support
http://www.ayanova.com
Post #4958
Posted 12/31/2009 10:24:28 AM
AyaNova Sales & Support

AyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & Support

Group: Administrators
Last Login: 3/17/2010 7:34:22 AM
Posts: 2,190, Visits: 5,029
Hi again Mospan

0 was being returned because the GetColumnValue needed to be identified as getting the data for the detailReportBand1

Edit your script so that it includes the detailReportBand1, save and now preview.

- Joyce

AyaNova Sales & Technical Support
http://www.ayanova.com
Post #4959
Posted 12/31/2009 10:55:35 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 1/4/2010 4:21:16 PM
Posts: 19, Visits: 74
That was it Joyce, thank you. Happy New Year to you.
Post #4960
Posted 1/4/2010 10:29:37 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 1/4/2010 4:21:16 PM
Posts: 19, Visits: 74
Hi Joyce,
Turns out it wasn't all. Maybe you could help me with this. I added one more section called "Report Summary" but can't get very far with it. Also, I wanted to change "Format String" on xrLabel3 to "n" or "XXX.00" but i'm not able to save it. Please advise. Thank you.

  Post Attachments 
Workorder Total Service Time.ayr.zip (1 view, 39.39 KB)
Post #4961
Posted 1/4/2010 12:53:13 PM
AyaNova Sales & Support

AyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & Support

Group: Administrators
Last Login: 3/17/2010 7:34:22 AM
Posts: 2,190, Visits: 5,029
mospan (1/4/2010)
Hi Joyce,
Turns out it wasn't all. Maybe you could help me with this. I added one more section called "Report Summary" but can't get very far with it. Also, I wanted to change "Format String" on xrLabel3 to "n" or "XXX.00" but i'm not able to save it. Please advise. Thank you.

Hi Mospan

If wanting to format a string that is actually a number of the total hours derived from such a script, I did a search online and found this web page that gave example to use http://www.csharp-examples.net/string-format-double/ - so would use:

xrLabel3.Text = String.Format("{0:0.00}", ts.TotalHours);

(previously you had xrLabel3.Text =  ts.TotalHours.ToString(); which just converted the ts.TotalHours to a string, whereas the above line converts to a string that is formated with two decimal points 0.00).

If you would like me to create custom scripts to determine your Report Summary fields, I would be happy to do so. Let me know, and I will send you a quote to your email address. Otherwise, a suggestion would be to do a search through existing posts for similar, as well as searching online for C# formatting and scripting examples etc, but providing this would be outside our free support.

- Joyce

AyaNova Sales & Technical Support
http://www.ayanova.com
Post #4962
Posted 1/4/2010 1:59:51 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 1/4/2010 4:21:16 PM
Posts: 19, Visits: 74
Thank you Joyce, I appreciate it. Let me talk to few people here and find out. If anything I'll get back to you. Thx.
Post #4963
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: AyaNova Sales & Support

Permissions Expand / Collapse

All times are GMT -8:00, Time now is 5:27am

Powered by InstantForum.NET v4.1.4 © 2010
Execution: 0.063. 10 queries. Compression Disabled.