anchor.diff:  		<cfargument name="args" type="struct" required="yes">
   		<cfset var loc = {}>
   		<cfset loc.result = {}>
  -
  +		<cfset loc.result.msg = "">
   		<cftry>
   			<cfset loc.dayHeader = LoadDayHeader({"reportDate" = args.reportDate})>
   			<cfquery name="loc.QTrans" datasource="#GetDataSource()#">
  
positive.code: 			output="#application.site.dir_logs#epos\err-#DateFormat(Now(),'yyyymmdd')#-#TimeFormat(Now(),'HHMMSS')#.htm">
  		</cfcatch>
  		</cftry>
  		<cfreturn loc.result>
  	</cffunction>
  
  </cfcomponent>
  
negative.code: 		<cfset var loc = {}>
  		<cftry>
  			<cfif IsDate(args.reportDate)>
  				<cfquery name="loc.QDayHeader" datasource="#GetDataSource()#">	<!--- get specified day header record --->
  					SELECT *
  					FROM tblepos_dayheader
  					WHERE DATE(dhTimeStamp) = '#args.reportDate#'
  				</cfquery>
  				<cfif loc.QDayHeader.recordcount is 0>
  					<cfquery name="loc.QDayHeader" datasource="#GetDataSource()#">	<!--- get most recent day header record --->
  						SELECT *
  						FROM tblepos_dayheader
  						ORDER BY dhID DESC
  						LIMIT 0,1
  					</cfquery>
  				</cfif>
  
  				<cfreturn QueryToStruct(loc.QDayHeader)>
  			<cfelse>
  				<cfreturn {}>
  			</cfif>
  			
  		<cfcatch type="any">
  			<cfdump var="#loc#" label="LoadDayHeader" expand="yes" format="html"
  				output="#application.site.dir_logs#epos\err-#DateFormat(Now(),'yyyymmdd')#-#TimeFormat(Now(),'HHMMSS')#.htm">
  		</cfcatch>
  		</cftry>
  