Posted: Thu Feb 04, 2010 4:35 pm Post subject: Report to count pkgs shipped per service type
I'm looking for a report that will out-put info as follows:
USPS Priority: 10
UPS Ground: 10
UPS 2nd Day Air: 5
All I can get is the total # of orders in the filter. (Using this example, it prints "25").
I tried altering the tracking number report, to no avail. I know I'm missing something really simple, but... Any help is greatly appreciated.
Thanks _________________ Paul
V-LEDS.com
If you look towards the top of the template, we actually define shipment_typeKey as an XSL key. XSL keys are great shortcuts for grouping order, shipment or customer nodes for summary reports like these. One of the many unsung heroes of XSLT
Brandon (or any other capable help );
I see others have, in the past, asked for one more piece of this: Displaying the charges/costs by ServiceUsed. Once the shipments are broken out by carrier in this template Brandon supplied, can the charges/costs for the shipments by carrier be displayed?
All the codes I see have a total for all orders. So, can the display look like this?
I tried using this code but didn't really get the any information. For some reason it only showed "CARRIER PIECES SHIP_REVENUE SHIP_EXPENSE SHIP_P&L" in the report but no information. I am very new in using templates so I could be doing something wrong. My steps were 1. Create New Template under Reports 2. Copy and Paste the code you provided 3. Highlight Multiple shipments in customer grid 4. Preview with new template. Let me know if I am missing something.
<body>
<font style="font-size:16pt; font-weight:bold;">Order Charge and Shipping Report</font><br />
<br />
Printed: <xsl:value-of select="sw:ToShortDate(//Generated)" /><br />
Filter Used: <xsl:value-of select="//ActiveFilter" /><br />
Orders Selected: <xsl:value-of select="count(//Order)" /><br />
Total Line Items: <xsl:value-of select="count(//Order/Item)" /><br />
Total Quantity of All Items: <xsl:value-of select="sum(//Order/Item/Quantity)" /><br />
<Br />
<b>For All <xsl:value-of select="count(//Order)" /> Orders Currently Selected:</b><br />
<table width="85%" cellspacing="0" id="details">
<tr class="gridrow">
<td>Total of all Orders<br />
(Includes Tax, Shipping, Insurance, Etc.):</td>
<td align="right">$<xsl:value-of select="format-number(sum(//Order/Total), '#,##0.00')" /></td>
</tr>
<tr class="gridrow">
<td width="80%">Total of all Line Items:</td>
<td align="right">$<xsl:value-of select="format-number(sum(//Order/Item/Total), '#,##0.00')" /></td>
</tr>