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



How to create and display a calculated date... Expand / Collapse
Author
Message
Posted 4/19/2007 9:40:05 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 6/7/2007 4:48:55 AM
Posts: 23, Visits: 87
Hi,

I am having a problem with creating a new "Total Hours spent" column to the Sample Schedulable User Billing Report with Grand Total .  The total hours spend is the difference between the Labour Service start date &Time and service stop date & Time. This is either displayed in hours or minutes. This will help to identify some discrepancies on the true non chargeable time for the technician

I would also like to break the group by date if possible. So I can see my daily hours total.

Many thanks,

Raymond Widjaja

Post #3032
Posted 4/19/2007 11:10:36 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: 2 days ago @ 2:53:05 PM
Posts: 1,840, Visits: 4,267
Hi Raymond

I will have to get back to you on this - I'm pretty sure there is C# code to subtract date/time values from each other, and will have to play with it to determine exactly how it could be done.

- Joyce

AyaNova Sales & Technical Support
http://www.ayanova.com
Post #3034
Posted 4/20/2007 11:26:58 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: 2 days ago @ 2:53:05 PM
Posts: 1,840, Visits: 4,267
Hi Raymond

I have posted a new sample report template at http://forum.ayanova.com/Topic3035-103-1.aspx that shows using a OnBeforePrint script for a field to subtract the Service Start Date & Time from the Service Stop Date & Time.

As groupings via the report template are based on a single datafield and either the Service Start Date & Time or the Stop Date & Time is a specific time of a specific date, it is not possible to set a grouping for an entire day. I would suggest that if you want to view hours for a specific day, that you set a custom filter selecting greater than and less than (example check out http://forum.ayanova.com/Topic1430-100-1.aspx?Highlight=greater+than  to display all records for a specific day for the user, and than select to print.

- Joyce

AyaNova Sales & Technical Support
http://www.ayanova.com
Post #3036
Posted 4/21/2007 3:29:47 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 6/7/2007 4:48:55 AM
Posts: 23, Visits: 87
Thank you Joyce.

The report does the trick. I can use it as a base.

As to the grouping, is there away to group by week  or month within a filter date range ? Curently I had to generate the report filtered by each week or month date-range.

Raymond. 

Post #3037
Posted 4/21/2007 8:29:13 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: 2 days ago @ 2:53:05 PM
Posts: 1,840, Visits: 4,267
Hi Raymond

Refer to the topic http://forum.ayanova.com/Topic1430-100-1.aspx?Highlight=greater+than suggested above, which shows an example of how to create a custom filter selecting Operator of Less than or equal to and Operand of last date of service of the range you want to report on; and Operator of Greater Than or equal to and Operand of first date of service you want to report on.

The grid will than show all records that have this date between the two dates selected.

- Joyce

AyaNova Sales & Technical Support
http://www.ayanova.com
Post #3038
« 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 11:08am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.047. 10 queries. Compression Disabled.