 				<td></td>
 			</tr>
 			<tr>
-				<th align="right" colspan="4">Totals</th>
+				<th align="right" colspan="5">Totals</th>
 				<th align="right">#DecimalFormat(drtotal)#</th>
 				<th align="right">#DecimalFormat(-crtotal)#</th>
 				<th align="right">#countTotal#</th>

	<cfset epos = ecfc.LoadEPOSTotals(parm)>
	<!---<cfdump var="#epos#" label="epos" expand="true">--->
	<cfquery name="QItemSum2" datasource="#parm.datasource#">
		SELECT pcatGroup, prodCatID,prodEposCatID, eiClass, eiType, pgTitle, pgNomGroup, nomTitle, SUM(eiNet) AS net, SUM(eiVAT) as vat, Count(*) AS itemCount
		FROM `tblEPOS_Items`
		INNER JOIN tblEPOS_Header ON ehID = eiParent
		INNER JOIN tblProducts ON prodID = eiProdID

				</cfif>
				<tr>
					<td>#pcatGroup#</td>
					<td>#prodEposCatID#</td>
					<td>#eiClass#</td>
					<td>#eiType#</td>
					<td>#pgTitle#</td>
					<td align="right"><cfif gross gt 0>
							#DecimalFormat(net)#
						</cfif></td>
