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



No Charge Hours Calculation report Expand / Collapse
Author
Message
Posted 2/9/2007 3:06:27 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
After I upgrade to version 3.3, this No charge hours calculation report (  is no longer displaying the client name and details. I tried to add the band prefix, somehow I have not been successful. Could you help please

Thanks

Post #2738
Posted 2/9/2007 3:14:35 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: Today @ 8:27:06 PM
Posts: 1,701, Visits: 4,008
Hi Raymond

Please export a copy of the report template, zip it using WinZip and attach so I can import it and see what report template you are referring to and what is occurring in it.

- Joyce

AyaNova Sales & Technical Support
http://www.ayanova.com
Post #2739
Posted 2/10/2007 8:16:04 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 Joyce,

The problem has been fixed by your recent posting

http://forum.ayanova.com/Topic2142-103-1.aspx

Thanks

Post #2749
Posted 2/10/2007 8:23:41 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: Today @ 8:27:06 PM
Posts: 1,701, Visits: 4,008
Good to hear. After the post by you, I went through the samples that were listed in http://forum.ayanova.com/Forum103-1.aspx and found that one that needed to be edited.

- Joyce

AyaNova Sales & Technical Support
http://www.ayanova.com
Post #2750
Posted 3/1/2007 5:03:55 AM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: 4/11/2008 8:56:51 AM
Posts: 41, Visits: 207
AyaNova Sales & Support (2/10/2007)
Good to hear. After the post by you, I went through the samples that were listed in http://forum.ayanova.com/Forum103-1.aspx and found that one that needed to be edited.

- Joyce

Joyce, I downloaded this report that you modified. Thank you again for this! I was going through the report template after I imported it and noticed that the Summary at the bottom, just below the client signature, for the No Charge hours does not show up even when there are hours that should be totalled there. I took a quick look at the scripts, but could not see why they were not visible. Any help is always appreciated. Thanks in advance!

Post #2833
Posted 3/1/2007 7:51:09 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: Today @ 8:27:06 PM
Posts: 1,701, Visits: 4,008
Hi

I will take a look and post back

- Joyce

AyaNova Sales & Technical Support
http://www.ayanova.com
Post #2839
Posted 3/1/2007 8:17:17 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: Today @ 8:27:06 PM
Posts: 1,701, Visits: 4,008
Hi

I see what is going on - let's say you have two Labor records, one is a No Charge Hours followed by an actual charge of hours, than what will occur with this report template is that it won't show the no charge total at the bottom of the report.

If you have only No Charge hours, than the no charge total at the bottom of the report template will display correctly.

I will look into why it is doing this and post back.

- Joyce

AyaNova Sales & Technical Support
http://www.ayanova.com
Post #2841
Posted 3/1/2007 10:47:52 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: Today @ 8:27:06 PM
Posts: 1,701, Visits: 4,008
Determined that if had a second labor item without No Charge Hours, the amounts would not show. Also determined that if had multiple workorder items with labor and no charge hours, the amounts would not show. And in some cases the yellow fields would show even though no No Charge Hours due to not having been zero'd out from previous  - end result is, have edited the sample report template with the following:

1. Added the following to the OnBeforePrint for the DetailReportItemLabor band

//declare the variable as zero for use in the groupfooter for Labor
decimal WONetNC = 0;
private void OnBeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e) {
}

2. Added the following lines to the OnBeforePrint for the xrLabel15 field

//this maintains a running total of hours for the groupfooter for this workorderitem
WONetNC += Convert.ToDecimal(NCQty);

3. Removed the existing OnBeforePrint and OnSummaryCalculated scripts for xrNetNCSum, as well as removed the data binding to the NoChargeQuantity data field, and removed the Summary settings for this field

4. Added a OnBeforePrint script for xrNetNCSum so it displays the running total of WONetNC, or if zero, doesn't display at all

private void OnBeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
{
if ("0.00"==(string.Format("{0:n2}", WONetNC)))
 {
 xrNetNCSum.Visible=false;
 }
else
 {
 xrNetNCSum.Visible=true;
 xrNetNCSum.Text = string.Format("{0:n2}", WONetNC);
 }
}

5. Edited the OnBeforePrint script for xrNetNCLabel with the following

private void OnBeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
{
if ("0.00"==(string.Format("{0:n2}", WONetNC)))
 {
 xrNetNCLabel.Visible=false;
 }
else
 {
 xrNetNCLabel.Visible=true;
 }
}

6. Added an OnAfterPrint script for the groupfooter for  with the following to zero out the WONetNC for the next workorder item

private void OnAfterPrint(object sender, System.EventArgs e)
{
WONetNC = 0;
}

Download the new March1 Sample Service Workorder with No Charge Amount

AyaNova Sales & Technical Support
http://www.ayanova.com
Post #2842
Posted 3/2/2007 10:53:19 AM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member