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


Sample Labor Cost for Displayed Workorders... Expand / Collapse
Author
Message
Posted 2/11/2008 9:31:02 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: Yesterday @ 6:04:54 PM
Posts: 2,018, Visits: 4,604
Below is link to a sample Labor Cost report template for the Service Workorders grid

Sample Labor Cost for Displayed Workorders Report Template


This report template will display labor cost for all workorders you have displaying in your Service Workorders or Item grid, as you can filter to only show specific workorders based on many different columns (service date, client, etc),

Download the report template, unzip using WinZip, and than import into your AyaNova as per the AyaNova Help file section http://www.ayanova.com/AyaNova4webHelp/importing_a_report_template.htm

ReportHeader band has a OnBeforePrint script to identify the item we will use in this report template

decimal TotalNetCost = 0;


The GroupHeader band is above the Workorder Header band, as this is a detailed report template, but we are only displaying informaiton from the Labor band.

In the Labor band, the field xrNetCost has an OnBeforePrint script of:


private void OnBeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
{
//this displays the Cost multiplied by the Service Rate Quantity
if(DetailReport1.GetCurrentColumnValue("LT_Rate_Label_Cost") != System.DBNull.Value)
{
xrNetCost.Text = string.Format("{0:c2}", (Convert.ToDouble(DetailReport1.GetCurrentColumnValue("LT_Rate_Label_Cost"))) * (Convert.ToDouble(DetailReport1.GetCurrentColumnValue("LT_WorkorderItemLabor_Label_ServiceRateQuantity"))));

///this keeps a running total of the net cost for display in the groupfooter
TotalNetCost += Convert.ToDecimal((Convert.ToDouble(DetailReport1.GetCurrentColumnValue("LT_Rate_Label_Cost"))) * (Convert.ToDouble(DetailReport1.GetCurrentColumnValue("LT_WorkorderItemLabor_Label_ServiceRateQuantity"))));
}

}


In the GroupFooter for this report, the field xrTotalCost has an OnBeforePrint script of:


private void OnBeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
{
//this displays the running total of all Net Cost displayed
xrTotalCost.Text = string.Format("{0:c2}", TotalNetCost);
}


As always, feel free to customize this sample report template or refer to it when creating your own.

AyaNova Sales & Technical Support
http://www.ayanova.com
Post #3821
« 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 1:20pm

Powered by InstantForum.NET v4.1.4 © 2009
Execution: 0.031. 10 queries. Compression Disabled.