anchor.diff:  									<cfset loc.dealRec.lastQual = loc.count>
   									<cfset loc.dealRec.dealQty++>
   									<cfset loc.dealRec.dealTotal = loc.dealRec.dealQty * loc.dealData.edAmount>
  +									<cfset loc.totProp = 0>
   									<cfloop from="#loc.start#" to="#loc.count#" index="loc.i">
   										<cfset loc.tran = {}>
   										<cfset loc.tran.prodID = ListLast(loc.dealRec.prices[loc.i]," ")>
  
positive.code: 									</cfloop>
  									<cfset loc.dealRec.groupRetail = 0>
  									<cfset loc.start = loc.count + 1>
  								</cfif>									
  							</cfloop>
  							<cfif loc.dealRec.lastQual lt loc.count>
  								<cfloop from="#loc.dealRec.lastQual + 1#" to="#loc.count#" index="loc.i">
  
negative.code: 										<cfset loc.tran.itemClass = loc.data.itemClass>
  										<cfset loc.tran.unitTrade = loc.data.unitTrade>
  										<cfset loc.tran.price = loc.data.unitprice>
  										<cfset loc.tran.prop = Round((loc.tran.price / loc.dealRec.groupRetail) * 100) / 100>
  										<cfif loc.i gte loc.count>
  											<cfset loc.tran.prop = 1 - loc.totProp> <!--- make total of proportions add up to 1.00 --->
  										</cfif>
  										<cfset loc.totProp += loc.tran.prop>
  										<cfset loc.tran.gross = Round(loc.dealData.edAmount * loc.tran.prop * 100) / 100>
  										<cfset loc.tran.net = Round(loc.tran.gross / (1 + (loc.tran.vrate / 100)) * 100) / 100>
  										<cfset loc.tran.vat = loc.tran.gross - loc.tran.net>
  