Originally Posted by fryeguy
|
|
We would like to take the Line Item Detail report and group it by zone by location and show labor by zone by location.
|
This is certainly doable, though it requires the creation of a custom report.
Take a look at the attached report to see if it does the trick. I had to do some scripting to make the equipment totals show Extended Price (Equipment Price + Equipment Adjustment + Misc Parts). It also includes a custom Proposal Summary that shows Extended Price and does not break out Eq. Adjustment and Misc. Parts as well as labor.
Here are the steps I took to create this:
1) Create a new report based on the Line Item Detail Report
2) Create a report definition by Zone by Location
3) In the report definition, parameters, set "Show Labor Items" to true
4) Add a summary field to the GrpFooter2 section to summarize dtr:TotalLaborPrice. This shows the total labor price for this section
5) Add a summary field to the GrpFooter2 section to show the total Installed Price (dtr:InstallationPrice). This is where it gets tricky since Installation Price includes Eq Adjustment and Misc Parts.
6) Add some invisible summary fields to show the total Base Equipment Price, Equipment Adjustment, and Misc Parts (these are orange)
7) With scripting, make the total extended equipment price in GrpFooter2 equal to the Base Equipment Price + Equipment Adjustment + Misc Parts. This shows up on the report.
8) I also did step 7 in grpItemHeader, so that each item would show the extended price (and the totals would add up).
9) I created a custom subreport, Project Summary (extended), and bound this to the report where the project summary goes. This subreport has the same kind of logic as step 7.
This probably sounds complicated, but hopefully you can follow the logic when you look at the report. This type of operation can help you accomplish a lot with custom reports.
A quick comment - the only reason I needed to do all this scripting and calculations is that we do not have a dtr:ExtendedEquipmentPrice in the XML schema. Had this been there, this would have been a very simple operation. We'll do something to make this much easier in a future release.
For some reason, the .zip file below is being corrupted. Please contact me at beta@d-tools.com and I can email you the report.
Randy