anchor.diff:  								<cfset loc.dealRec.dealQty++>
   									<cfif session.till.info.staff AND loc.data.discountable>	<!--- staff sale and is a discountable item --->
   										<cfset loc.itemDiscount = round(loc.data.unitPrice * 100 * session.till.prefs.discount) / 100>
  -										<cfset loc.data.discount = loc.itemDiscount * loc.data.qty>
  +										<cfset loc.data.discount = loc.itemDiscount * loc.data.qty * loc.rec.regMode>
   									</cfif>
   								<cfset loc.tran = {}>
   								<cfset loc.tran.prop = 1>
  
positive.code: 				<cfset loc.rec.totalGross = loc.rec.totalGross * loc.rec.regMode * loc.tranType>
  				<cfset loc.rec.totalNet = loc.rec.totalNet * loc.rec.regMode * loc.tranType>
  				<cfset loc.rec.totalVAT = loc.rec.totalVAT * loc.rec.regMode * loc.tranType>
  			</cfif>
  			<cfif loc.insertItem>	<!--- if item not in struct --->
  				<cfset StructInsert(loc.section,loc.itemKey,loc.rec)>
  
negative.code: 									<cfset loc.tran.itemClass = 'CASHINDW'>
  									<cfset loc.tran.itemType = 'pay'>
  									<cfset loc.tran.payID = 12>
  									<cfset loc.tran.accID = 1>
  									<cfset loc.tran.cashonly = "YES">
  									<cfset loc.tran.gross = loc.thisBasket.info.change>
  									<cfset loc.tran.net = loc.thisBasket.info.change>
  