Library Server: The requested document cannot be located: file:///c:/aspect7/Library/Store/FAtpynFZQ3ndC8nsnCmTiUW6AvnpKWk<widget name="Import Aspect6 Sales" group="" category="Aspect6 Utilities" description="" type="Container" Mobile="false" Processing=0 metadata="" IncludeInViewer="false" PublicName="Import Aspect6 Sales" modified="12-20-2017 15:51:16" modifiedby="Thnikpad3" TaskEnabled=false IsAgent=true ContainsAgentSensors=false ContainsAgentActions=true TaskInitialStartTime=12-09-2017 21:37:11:000 TaskIntervalType=0 TaskLastExecuted= TaskCatchUpMissedTasks=false TaskYearsBetweenExecution=0 TaskMonthsBetweenExecution=0 TaskDaysBetweenExecution=0 TaskHoursBetweenExecution=0 TaskMinutesBetweenExecution=0 TaskSecondsBetweenExecution=0 TaskExecuteSun=true TaskExecuteMon=true TaskExecuteTue=true TaskExecuteWed=true TaskExecuteThu=true TaskExecuteFri=true TaskExecuteSat=true TaskConditional_Expression="" TaskConditional_Expression_Description="" TaskState_Function="" TaskState_Expression_Description="" TaskWidgetParams="" TaskWindowForExecution=0>
Preferences|toolboxx=105|toolboxy=179|aspectfuncx=100|aspectfuncy=100|aspectfuncw=750|aspectfunch=auto|aspectfuncLock=false|aspectfuncVisible=false|PublishFtpFilename=Import Aspect6 Sales.html|PublishToFtpSite=false|PublishFTPAccount=0|PublishFtpDirectory=/|PublishFtpPublicDirectory=/|PublishCopyFile=false|PublishCopyFilename=|PublishIncludeAspectScript=false|PublishIncludeAspectStyleshet=false|PublishAsText=false|
^
ID=top_bar|X=0|Y=0|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=false|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=left_bar|X=0|Y=22|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=false|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=top_bar|AttachLeft=|AlignLeft=top_bar|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=code|X=300|Y=100|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<table class='tabdialog'>//crlf////tab//<tr>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'662042')\\quot\\>Javascript</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'AspectScript')\\quot\\>AspectScript</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'sensor_list')\\quot\\>Sensors</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'action_list')\\quot\\>Actions</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'debug_console')\\quot\\>Console</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'449926')\\quot\\>Notes</span></td>//crlf////tab//</tr>//crlf//</table>
^
ID=662042|X=300|Y=120|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Javascript|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=AspectScript|X=300|Y=120|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Aspect_Script|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=sensor_list|X=300|Y=120|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Aspect_Script|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>//crlf////tab//{@if(\\quot\\__SensorExec__\\quot\\=\\quot\\true\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf////tab//{@if(getSystemValue(\\quot\\DevelopmentMode\\quot\\)\\comma\\fileModified(getToken(\\quot\\homedir\\quot\\)+\\quot\\cache\WidgetEdit_VWaUGu88BMN0hDYWzZj57VpG_Import Aspect6 Sales.html\\quot\\)\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//<conditional expression:(\\quot\\__sensor_list__\\quot\\=\\quot\\true\\quot\\)>//crlf//</conditional>//crlf////crlf//
^
ID=action_list|X=300|Y=120|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=Aspect_Script|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>//crlf////tab//{@if(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf////tab//{@if(getSystemValue(\\quot\\DevelopmentMode\\quot\\)\\comma\\fileModified(getToken(\\quot\\homedir\\quot\\)+\\quot\\cache\WidgetEdit_VWaUGu88BMN0hDYWzZj57VpG_Import Aspect6 Sales.html\\quot\\)\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//<conditional expression:(\\quot\\__action_list__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab//Import Aspect6 Sales\\comma\\importCheckHeaders\\comma\\action_list\\comma\\Action=importCheckHeaders\\comma\\private//crlf////tab//Import Aspect6 Sales\\comma\\importCheckDetails\\comma\\action_list\\comma\\Action=importCheckDetails\\comma\\private//crlf////tab//Import Aspect6 Inventory Data\\comma\\importMenuItemSales\\comma\\action_list\\comma\\Action=importMenuItemSales\\comma\\private//crlf//</conditional>//crlf////crlf//<conditional expression:false>//crlf//========================================================================//crlf//importCheckHeaders//crlf//========================================================================//crlf//</conditional>//crlf//<conditional expression:(\\quot\\__Action__\\quot\\=\\quot\\importCheckHeaders\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__ActionDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Imports check header files from Aspect6//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Aspect6StoreDir - Directory containing Aspect6 files//crlf////tab////tab//Aspect7StoreDir - Directory containing Aspect7 files//crlf////tab////tab//DtFrom - Starting date of range to be imported in MM-dd-yyyy format//crlf////tab////tab//DtTo - Ending date of range to be imported in MM-dd-yyyy format//crlf////tab////tab//Replace - Optional.  If true\\comma\\ the existing file will be deleted before the import//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//\\quot\\Ok\\quot\\ or \\quot\\Error\\quot\\//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; commands:\\quot\\//crlf////tab////tab////tab//appendToLog(\\quot\\__Action__ Aspect6StoreDir=__Aspect6StoreDir__ Aspect7StoreDir=__Aspect7StoreDir__\\quot\\)//crlf////tab////crlf////tab////tab////tab////abort if Aspect6 store directory is not specified//crlf////tab////tab////tab//if(undefined(\\quot\\__Aspect6StoreDir__\\quot\\))//crlf////tab////tab////tab////tab//scriptSetResult(\\quot\\Error: Missing Aspect6 store directory\\quot\\)//crlf////tab////tab////tab////tab//exit//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if Aspect7 store directory is not specified//crlf////tab////tab////tab//if(undefined(\\quot\\__Aspect7StoreDir__\\quot\\))//crlf////tab////tab////tab////tab//scriptSetResult(\\quot\\Error: Missing Aspect7 store directory\\quot\\)//crlf////tab////tab////tab////tab//exit//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if start date not specified//crlf////tab////tab////tab//if(undefined(\\quot\\__DtFrom__\\quot\\))//crlf////tab////tab////tab////tab//scriptSetResult(\\quot\\Error: Missing starting date\\quot\\)//crlf////tab////tab////tab////tab//exit//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if end date not specified//crlf////tab////tab////tab//if(undefined(\\quot\\__DtTo__\\quot\\))//crlf////tab////tab////tab////tab//scriptSetResult(\\quot\\Error: Missing ending date\\quot\\)//crlf////tab////tab////tab////tab//exit//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////set alias fields//crlf////tab////tab////tab//sAlias=\\quot\\Time_Open=ID_TCHECKHDRREC_TIME_OPEN\\quot\\//crlf////tab////tab////tab//sAlias=sAlias+\\quot\\~~pipe~~Time_Close=ID_TCHECKHDRREC_TIME_CLOSE\\quot\\//crlf////tab////tab////tab//sAlias=sAlias+\\quot\\~~pipe~~Aspect6_DiskIndex=DiskIndex\\quot\\//crlf////tab////tab////tab////crlf////tab////tab////tab////set fields to merge//tab////crlf////tab////tab////tab//sFieldsToMerge=\\quot\\CheckNumber~~pipe~~TransNum~~pipe~~Time_Open~~pipe~~Time_Close~~pipe~~Net_Sales~~pipe~~Voids~~pipe~~Tax1~~pipe~~Tax2~~pipe~~Tax3~~pipe~~Tax4~~pipe~~Comps~~pipe~~Discounts~~pipe~~Tendered~~pipe~~ChangeGiven~~pipe~~AutoGrat~~pipe~~Gc_Amount~~pipe~~Gc_Id~~pipe~~Emp_Open~~pipe~~Emp_Close~~pipe~~Rev_Ctr~~pipe~~Room~~pipe~~Guests~~pipe~~TableNumber~~pipe~~Aspect6_DiskIndex\\quot\\//crlf////tab////tab////crlf////tab////tab////tab//sKeyFields=\\quot\\Aspect6_DiskIndex\\quot\\//crlf////crlf////tab////tab////tab//dtFrom=parseTime(\\quot\\__DtFrom__\\quot\\\\comma\\\\quot\\MM-dd-yyyy\\quot\\)//crlf////tab////tab////tab//dtTo=parseTime(\\quot\\__DtTo__\\quot\\\\comma\\\\quot\\MM-dd-yyyy\\quot\\)//crlf////tab////tab////tab//dt=dtFrom//crlf////tab////tab////tab//while(dt<=dtTo)//crlf////tab////tab////tab////tab//sAspect6Date=formatDate(dt\\comma\\\\quot\\MM-dd-yy\\quot\\)//crlf////tab////tab////tab////tab//sAspect6Filename=addDirSlash(\\quot\\__Aspect6StoreDir__\\quot\\)+sAspect6Date+\\quot\\.ckh\\quot\\//crlf////tab////tab////tab////tab//sDate=formatDate(dt\\comma\\\\quot\\MM-dd-yyyy\\quot\\)//crlf////tab////tab////tab////tab//sAspect7Filename=addDirSlash(\\quot\\__Aspect7StoreDir__\\quot\\)+\\quot\\ckh.\\quot\\+sDate+\\quot\\.bin\\quot\\//crlf////crlf////tab////tab////tab////tab//if(fileExists(sAspect6Filename))//crlf////tab////tab////tab////tab////tab////delete existing file if Replace is true//crlf////tab////tab////tab////tab////tab//if(\\quot\\__Replace__\\quot\\=\\quot\\true\\quot\\)//crlf////tab////tab////tab////tab////tab////tab//fileDelete(sAspect7Filename)//crlf////tab////tab////tab////tab////tab//endif//crlf////tab////tab////crlf////tab////tab////tab////tab////tab////open the drivers//crlf////tab////tab////tab////tab////tab//driverOpen(Aspect6_Driver_Check_Header_By_Filename\\comma\\drv6\\comma\\READ\\comma\\false\\comma\\\\quot\\Filename=\\quot\\+sAspect6Filename)//crlf////tab////tab////tab////tab////tab//driverOpen(POS_Generic_Check_Header_Dta_Buffered\\comma\\drv7\\comma\\WRITE\\comma\\false\\comma\\\\quot\\Filename=\\quot\\+sAspect7Filename)//crlf////tab////tab////tab////tab////tab//driverSetFilter(drv6\\comma\\\\quot\\(ID_RESERVED_USED=true)\\quot\\\\comma\\true)//crlf////tab////tab////tab////tab////tab//driverSetFilter(drv7\\comma\\\\quot\\true\\quot\\\\comma\\true)//crlf////tab////crlf////tab////tab////tab////tab////tab////merge the drivers//crlf////tab////tab////tab////tab////tab//s=driverMerge(true\\comma\\drv7\\comma\\true\\comma\\drv6\\comma\\\\quot\\true\\quot\\\\comma\\sKeyFields\\comma\\sFieldsToMerge\\comma\\sAlias\\comma\\\\quot\\\\quot\\\\comma\\false)//crlf////tab////tab////tab////tab////tab//driverClose(drv6)//crlf////tab////tab////tab////tab////tab//driverClose(drv7)//crlf////tab////tab////tab////tab////tab//scriptSetResult(s)//crlf////tab////tab////tab////tab//endif//crlf////tab////crlf////tab////tab////tab////tab//dt=incrementTime(dt\\comma\\1)//crlf////tab////tab////tab//endwhile//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf////crlf//<conditional expression:false>//crlf//========================================================================//crlf//importCheckDetails//crlf//========================================================================//crlf//</conditional>//crlf//<conditional expression:(\\quot\\__Action__\\quot\\=\\quot\\importCheckDetails\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__ActionDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Imports check detail files from Aspect6//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Aspect6StoreDir - Directory containing Aspect6 files//crlf////tab////tab//Aspect7StoreDir - Directory containing Aspect7 files//crlf////tab////tab//DtFrom - Starting date of range to be imported in MM-dd-yyyy format//crlf////tab////tab//DtTo - Ending date of range to be imported in MM-dd-yyyy format//crlf////tab////tab//Replace - Optional.  If true\\comma\\ the existing file will be deleted before the import//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//\\quot\\Ok\\quot\\ or \\quot\\Error\\quot\\//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; commands:\\quot\\//crlf////tab////tab////tab//appendToLog(\\quot\\__Action__ Aspect6StoreDir=__Aspect6StoreDir__ Aspect7StoreDir=__Aspect7StoreDir__\\quot\\)//crlf////tab////crlf////tab////tab////tab////abort if Aspect6 store directory is not specified//crlf////tab////tab////tab//if(undefined(\\quot\\__Aspect6StoreDir__\\quot\\))//crlf////tab////tab////tab////tab//scriptSetResult(\\quot\\Error: Missing Aspect6 store directory\\quot\\)//crlf////tab////tab////tab////tab//exit//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if Aspect7 store directory is not specified//crlf////tab////tab////tab//if(undefined(\\quot\\__Aspect7StoreDir__\\quot\\))//crlf////tab////tab////tab////tab//scriptSetResult(\\quot\\Error: Missing Aspect7 store directory\\quot\\)//crlf////tab////tab////tab////tab//exit//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if start date not specified//crlf////tab////tab////tab//if(undefined(\\quot\\__DtFrom__\\quot\\))//crlf////tab////tab////tab////tab//scriptSetResult(\\quot\\Error: Missing starting date\\quot\\)//crlf////tab////tab////tab////tab//exit//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if end date not specified//crlf////tab////tab////tab//if(undefined(\\quot\\__DtTo__\\quot\\))//crlf////tab////tab////tab////tab//scriptSetResult(\\quot\\Error: Missing ending date\\quot\\)//crlf////tab////tab////tab////tab//exit//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////set alias fields//crlf////tab////tab////tab//sAlias=\\quot\\Aspect6_DiskIndex=DiskIndex\\quot\\//crlf////tab////tab////tab////crlf////tab////tab////tab////set fields to merge//tab////crlf////tab////tab////tab//sFieldsToMerge=\\quot\\Rectype~~pipe~~Employee~~pipe~~Quantity~~pipe~~Department~~pipe~~Category~~pipe~~Menuitem~~pipe~~Id1~~pipe~~Amount~~pipe~~Id2~~pipe~~CheckNumber~~pipe~~Time\\quot\\//crlf////tab////tab////crlf////tab////tab////tab//sKeyFields=\\quot\\Aspect6_DiskIndex\\quot\\//crlf////crlf////tab////tab////tab//dtFrom=parseTime(\\quot\\__DtFrom__\\quot\\\\comma\\\\quot\\MM-dd-yyyy\\quot\\)//crlf////tab////tab////tab//dtTo=parseTime(\\quot\\__DtTo__\\quot\\\\comma\\\\quot\\MM-dd-yyyy\\quot\\)//crlf////tab////tab////tab//dt=dtFrom//crlf////tab////tab////tab//while(dt<=dtTo)//crlf////tab////tab////tab////tab//sAspect6Date=formatDate(dt\\comma\\\\quot\\MM-dd-yy\\quot\\)//crlf////tab////tab////tab////tab//sAspect6Filename=addDirSlash(\\quot\\__Aspect6StoreDir__\\quot\\)+sAspect6Date+\\quot\\.ckd\\quot\\//crlf////tab////tab////tab////tab//sDate=formatDate(dt\\comma\\\\quot\\MM-dd-yyyy\\quot\\)//crlf////tab////tab////tab////tab//sAspect7Filename=addDirSlash(\\quot\\__Aspect7StoreDir__\\quot\\)+\\quot\\ckd.\\quot\\+sDate+\\quot\\.bin\\quot\\//crlf////crlf////tab////tab////tab////tab//if(fileExists(sAspect6Filename))//crlf////tab////tab////tab////tab////tab////delete existing file if Replace is true//crlf////tab////tab////tab////tab////tab//if(\\quot\\__Replace__\\quot\\=\\quot\\true\\quot\\)//crlf////tab////tab////tab////tab////tab////tab//fileDelete(sAspect7Filename)//crlf////tab////tab////tab////tab////tab//endif//crlf////tab////tab////crlf////tab////tab////tab////tab////tab////open the drivers//crlf////tab////tab////tab////tab////tab//driverOpen(Aspect6_Driver_Check_Detail_By_Filename\\comma\\drv6\\comma\\READ\\comma\\false\\comma\\\\quot\\Filename=\\quot\\+sAspect6Filename)//crlf////tab////tab////tab////tab////tab//driverOpen(POS_Generic_Check_Detail_Dta_Buffered\\comma\\drv7\\comma\\WRITE\\comma\\false\\comma\\\\quot\\Filename=\\quot\\+sAspect7Filename)//crlf////tab////tab////tab////tab////tab//driverSetFilter(drv6\\comma\\\\quot\\true\\quot\\\\comma\\true)//crlf////tab////tab////tab////tab////tab//driverSetFilter(drv7\\comma\\\\quot\\true\\quot\\\\comma\\true)//crlf////tab////tab////tab////tab////tab////crlf////tab////tab////tab////tab////tab////merge the drivers//crlf////tab////tab////tab////tab////tab//s=driverMerge(true\\comma\\drv7\\comma\\true\\comma\\drv6\\comma\\\\quot\\true\\quot\\\\comma\\sKeyFields\\comma\\sFieldsToMerge\\comma\\sAlias\\comma\\\\quot\\\\quot\\\\comma\\false)//crlf////tab////tab////tab////tab////tab//driverClose(drv6)//crlf////tab////tab////tab////tab////tab//driverClose(drv7)//crlf////tab////tab////tab////tab////tab//scriptSetResult(s)//crlf////tab////tab////tab////tab//endif//crlf////tab////crlf////tab////tab////tab////tab//dt=incrementTime(dt\\comma\\1)//crlf////tab////tab////tab//endwhile//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf////crlf//<conditional expression:false>//crlf//========================================================================//crlf//importMenuItemSales//crlf//========================================================================//crlf//</conditional>//crlf//<conditional expression:(\\quot\\__Action__\\quot\\=\\quot\\importMenuItemSales\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__ActionDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Aspect6StoreDir - Directory containing Aspect6 files//crlf////tab////tab//Aspect7StoreDir - Directory containing Aspect7 files//crlf////tab////tab//DtFrom - Starting date of range to be imported in MM-dd-yyyy format//crlf////tab////tab//DtTo - Ending date of range to be imported in MM-dd-yyyy format//crlf////tab////tab//Replace - Optional.  If true\\comma\\ the existing file will be deleted before the import//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//\\quot\\Ok\\quot\\ or \\quot\\Error\\quot\\//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; commands:\\quot\\//crlf////tab////tab////tab//appendToLog(\\quot\\__Action__ Aspect6StoreDir=__Aspect6StoreDir__ Aspect7StoreDir=__Aspect7StoreDir__\\quot\\)//crlf////tab////crlf////tab////tab////tab////abort if Aspect6 store directory is not specified//crlf////tab////tab////tab//if(undefined(\\quot\\__Aspect6StoreDir__\\quot\\))//crlf////tab////tab////tab////tab//scriptSetResult(\\quot\\Error: Missing Aspect6 store directory\\quot\\)//crlf////tab////tab////tab////tab//exit//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if Aspect7 store directory is not specified//crlf////tab////tab////tab//if(undefined(\\quot\\__Aspect7StoreDir__\\quot\\))//crlf////tab////tab////tab////tab//scriptSetResult(\\quot\\Error: Missing Aspect7 store directory\\quot\\)//crlf////tab////tab////tab////tab//exit//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if start date not specified//crlf////tab////tab////tab//if(undefined(\\quot\\__DtFrom__\\quot\\))//crlf////tab////tab////tab////tab//scriptSetResult(\\quot\\Error: Missing starting date\\quot\\)//crlf////tab////tab////tab////tab//exit//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if end date not specified//crlf////tab////tab////tab//if(undefined(\\quot\\__DtTo__\\quot\\))//crlf////tab////tab////tab////tab//scriptSetResult(\\quot\\Error: Missing ending date\\quot\\)//crlf////tab////tab////tab////tab//exit//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////open system driver used to lookup Aspect7 ID's of menu items //crlf////tab////tab////tab////These are passed to the Aspect6 driver.//crlf////tab////tab////tab//sAspect7MenuItemDriver=getSalt(5)//crlf////tab////tab////tab//driverOpen(POS_Generic_Menu_Item_Dta_Buffered\\comma\\sAspect7MenuItemDriver\\comma\\READ\\comma\\true\\comma\\\\quot\\Filename=\\quot\\+addDirSlash(\\quot\\__Aspect7StoreDir__\\quot\\)+\\quot\\menuitem.bin\\quot\\)//crlf////tab////tab////tab//driverSetFilter(sAspect7MenuItemDriver\\comma\\\\quot\\true\\quot\\\\comma\\true)//crlf////crlf////tab////tab////tab////set alias fields//crlf////tab////tab////tab//sAlias=\\quot\\\\quot\\//crlf////tab////tab////tab////crlf////tab////tab////tab////set fields to merge//tab////crlf////tab////tab////tab//sFieldsToMerge=\\quot\\MenuItemID~~pipe~~Sold~~pipe~~Net_Sales~~pipe~~Comps\\quot\\//crlf////tab////tab////crlf////tab////tab////tab//sKeyFields=\\quot\\MenuItemID\\quot\\//crlf////crlf////tab////tab////tab//dtFrom=parseTime(\\quot\\__DtFrom__\\quot\\\\comma\\\\quot\\MM-dd-yyyy\\quot\\)//crlf////tab////tab////tab//dtTo=parseTime(\\quot\\__DtTo__\\quot\\\\comma\\\\quot\\MM-dd-yyyy\\quot\\)//crlf////tab////tab////tab//dt=dtFrom//crlf////tab////tab////tab//while(dt<=dtTo)//crlf////tab////tab////tab////tab//sAspect6Date=formatDate(dt\\comma\\\\quot\\MM-dd-yy\\quot\\)//crlf////tab////tab////tab////tab//sAspect6Filename=addDirSlash(\\quot\\__Aspect6StoreDir__\\quot\\)+sAspect6Date+\\quot\\.mix\\quot\\//crlf////tab////tab////tab////tab//sDate=formatDate(dt\\comma\\\\quot\\MM-dd-yyyy\\quot\\)//crlf////crlf////tab////tab////tab////tab//if(fileExists(sAspect6Filename))//crlf////tab////tab////tab////tab////tab////delete existing file if Replace is true//crlf////tab////tab////tab////tab////tab//if(\\quot\\__Replace__\\quot\\=\\quot\\true\\quot\\)//crlf////tab////tab////tab////tab////tab////tab//fileDelete(addDirSlash(\\quot\\__Aspect7StoreDir__\\quot\\)+\\quot\\mix.\\quot\\+sDate+\\quot\\.bin\\quot\\)//crlf////tab////tab////tab////tab////tab//endif//crlf////tab////tab////crlf////tab////tab////tab////tab////tab////open the drivers//crlf////tab////tab////tab////tab////tab//driverOpen(Aspect6_Driver_Sales_Mix_By_Filename\\comma\\drv6\\comma\\READ\\comma\\false\\comma\\\\quot\\Filename=\\quot\\+sAspect6Filename+\\quot\\~~pipe~~Aspect7MenuItemDriver=\\quot\\+sAspect7MenuItemDriver)//crlf////tab////tab////tab////tab////tab//driverOpen(POS_Generic_SalesMix_Dta_Buffered\\comma\\drv7\\comma\\WRITE\\comma\\false\\comma\\\\quot\\Filename=\\quot\\+addDirSlash(\\quot\\__Aspect7StoreDir__\\quot\\)+\\quot\\mix.\\quot\\+sDate+\\quot\\.bin\\quot\\)//crlf////tab////tab////tab////tab////tab//driverSetFilter(drv6\\comma\\\\quot\\(ID_RESERVED_USED=true)\\quot\\\\comma\\true)//crlf////tab////tab////tab////tab////tab//driverSetFilter(drv7\\comma\\\\quot\\true\\quot\\\\comma\\true)//crlf////tab////tab////tab////tab////tab////crlf////tab////tab////tab////tab////tab////merge the drivers//crlf////tab////tab////tab////tab////tab//s=driverMerge(true\\comma\\drv7\\comma\\true\\comma\\drv6\\comma\\\\quot\\true\\quot\\\\comma\\sKeyFields\\comma\\sFieldsToMerge\\comma\\sAlias\\comma\\\\quot\\\\quot\\\\comma\\false)//crlf////tab////tab////tab////tab////tab//driverClose(drv6)//crlf////tab////tab////tab////tab////tab//driverClose(drv7)//crlf////tab////tab////tab////tab////tab//scriptSetResult(s)//crlf////tab////tab////tab////tab//endif//crlf////tab////crlf////tab////tab////tab////tab//dt=incrementTime(dt\\comma\\1)//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab//driverClose(sAspect7MenuItemDriver)//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf////crlf////crlf////crlf//
^
ID=debug_console|X=300|Y=120|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=debug_console|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=449926|X=300|Y=120|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=AgentStart|X=183|Y=42|W=150|H=20|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=AgentStart|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=left_bar|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=809884|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|AgentSuspended=false|AgentDebug=false|AgentReport=never|
^
ID=809884|X=183|Y=218|W=119|H=45|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=AgentTerminate|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=AgentTabs|X=183|Y=22|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=top_bar|AttachLeft=left_bar|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<table class='tabdialog'>//crlf////tab//<tr>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentStart');agentSetVisible(true)\\quot\\>Agent</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentDescription');agentSetVisible(false)\\quot\\>Description</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentStatus');agentSetVisible(false)\\quot\\>Status</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentScript');agentSetVisible(false)\\quot\\>Script</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'ScriptText');agentSetVisible(false)\\quot\\>Script (Text)</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentChart');agentSetVisible(false);agentFormatNodes(document.getElementById('AgentChart'));agentDrawConnectors(document.getElementById('AgentChart'))\\quot\\>Chart</span></td>//crlf////tab//</tr>//crlf//</table>//crlf//
^
ID=AgentScript|X=183|Y=42|W=1000|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Aspect_Script|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<conditional expression:(\\quot\\__ExecAgentScript__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab//<!include type:script; name:\\quot\\agent_Import Aspect6 Sales\\quot\\; commands:\\quot\\//crlf////crlf////tab////tab//::node\\comma\\VWaUGu88BMN0hDYWzZj57VpG_Import Aspect6 Sales\\comma\\AgentStart\\comma\\AgentStart\\comma\\0\\comma\\//crlf////tab////tab////Created 07-20-2014 14:39:10//crlf////crlf////tab////tab////Force reporting when the agent is executed manually//crlf////tab////tab//bForceReport=((\\quot\\__ManualExecAgent__\\quot\\=\\quot\\true\\quot\\) or (false))//crlf////crlf////tab////tab////Record the starting time//crlf////tab////tab//tAgentStart=now()//crlf////crlf////tab////tab//::node\\comma\\VWaUGu88BMN0hDYWzZj57VpG_Import Aspect6 Sales\\comma\\AgentTerminate\\comma\\809884\\comma\\2\\comma\\//crlf////tab////tab//scriptSetResult(2)//crlf////tab//\\quot\\>//crlf//</conditional>
^
ID=ScriptText|X=183|Y=42|W=1000|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<span style='font:8pt tahoma;color:black'>//amp//lt;state//amp//gt;07202014//amp//nbsp;143910//amp//lt;/state//amp//gt;<br>//amp//lt;<span class='includecontrol'>conditional</span>//amp//nbsp;expression:(\\quot\\__ExecAgentScript__\\quot\\=\\quot\\true\\quot\\)//amp//gt;<br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//lt;!<span class='includecontrol'>include</span>//amp//nbsp;type:script;//amp//nbsp;name:\\quot\\agent_Import//amp//nbsp;Aspect6//amp//nbsp;Sales\\quot\\;//amp//nbsp;commands:\\quot\\<br><br><span class='comment'>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//Created//amp//nbsp;07-20-2014//amp//nbsp;14:39:10</span><br><br><span class='comment'>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//Force//amp//nbsp;reporting//amp//nbsp;when//amp//nbsp;the//amp//nbsp;agent//amp//nbsp;is//amp//nbsp;executed//amp//nbsp;manually</span><br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;bForceReport=((\\quot\\__ManualExecAgent__\\quot\\=\\quot\\true\\quot\\)//amp//nbsp;or//amp//nbsp;(false))<br><br><span class='comment'>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//Record//amp//nbsp;the//amp//nbsp;starting//amp//nbsp;time</span><br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;tAgentStart=<span class='keyword'>now</span>()<br><br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;<span class='keyword'>scriptSetResult</span>(2)<br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;\\quot\\//amp//gt;<br>//amp//lt;/<span class='includecontrol'>conditional</span>//amp//gt;<br><br></span>
^
ID=AgentDescription|X=183|Y=42|W=1000|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=AgentStatus|X=183|Y=42|W=1000|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Aspect_Script|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=AgentChart|X=183|Y=42|W=1000|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>07202014 143910</state>//crlf//<canvas height=\\quot\\100\\quot\\ width=\\quot\\100\\quot\\ style=\\quot\\position: absolute; top: 0px; left: 0px; width: 100px; height: 100px; border-style: none; z-index: 2;\\quot\\ id=\\quot\\agent_doc_canvas\\quot\\></canvas><div agentchildyesnode=\\quot\\chart809884\\quot\\ content_type=\\quot\\AgentAction\\quot\\ style=\\quot\\position: absolute; top: 0px; left: 0px; width: 120px; height: auto; display: block;\\quot\\ isagentdoc=\\quot\\true\\quot\\ id=\\quot\\chartAgentStart\\quot\\><canvas height=\\quot\\124\\quot\\ width=\\quot\\120\\quot\\ style=\\quot\\width: 120px; height: 124px; position: absolute; top: 0px; left: 0px;\\quot\\></canvas><div class=\\quot\\agentstart\\quot\\><b>Import Aspect6 Sales</b><br><span style=\\quot\\font-weight:normal;color:green\\quot\\>Active</span><br><span style=\\quot\\font-weight:normal;color:black\\quot\\>Debugging Is Off</span><br>Report Status: never<br>Report To: <br>Name Params: </div></div><div content_type=\\quot\\AgentTerminate\\quot\\ style=\\quot\\position: absolute; top: 153px; left: 172px; width: 120px; height: auto; display: block;\\quot\\ isagentdoc=\\quot\\true\\quot\\ id=\\quot\\chart809884\\quot\\><canvas height=\\quot\\46\\quot\\ width=\\quot\\120\\quot\\ style=\\quot\\width: 120px; height: 46px; position: absolute; top: 0px; left: 0px;\\quot\\></canvas><div class=\\quot\\agentterminator\\quot\\>Terminate<br><span style=\\quot\\color:black\\quot\\>Other</span></div></div>
</widget><widget name="Sales Dialogs" group="" category="Drivers / Dialogs" description="" type="Container" Mobile="false" Processing=0 metadata="" IncludeInViewer="false" PublicName="Sales Dialogs" modified="07-17-2018 18:57:21" modifiedby="Thnikpad3" TaskEnabled=false IsAgent=false ContainsAgentSensors=false ContainsAgentActions=false TaskInitialStartTime=03-05-2018 01:30:00:000 TaskIntervalType=0 TaskLastExecuted= TaskCatchUpMissedTasks=false TaskYearsBetweenExecution=0 TaskMonthsBetweenExecution=0 TaskDaysBetweenExecution=0 TaskHoursBetweenExecution=0 TaskMinutesBetweenExecution=0 TaskSecondsBetweenExecution=0 TaskExecuteSun=true TaskExecuteMon=true TaskExecuteTue=true TaskExecuteWed=true TaskExecuteThu=true TaskExecuteFri=true TaskExecuteSat=true TaskConditional_Expression="" TaskConditional_Expression_Description="" TaskState_Function="" TaskState_Expression_Description="" TaskWidgetParams="" TaskWindowForExecution=0>
Preferences|toolboxx=68|toolboxy=282|aspectfuncx=100|aspectfuncy=100|aspectfuncw=750|aspectfunch=auto|aspectfuncLock=false|aspectfuncVisible=false|PublishFtpFilename=Sales Dialogs.html|PublishToFtpSite=false|PublishFTPAccount=0|PublishFtpDirectory=/|PublishFtpPublicDirectory=/|PublishCopyFile=false|PublishCopyFilename=|PublishIncludeAspectScript=false|PublishIncludeAspectStyleshet=false|PublishAsText=false|
^
ID=top_bar|X=0|Y=0|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=false|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=left_bar|X=0|Y=22|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=false|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=top_bar|AttachLeft=|AlignLeft=top_bar|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=code|X=1500|Y=0|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<table class='tabdialog'>//crlf////tab//<tr>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'620760')\\quot\\>Javascript</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'AspectScript')\\quot\\>AspectScript</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'sensor_list')\\quot\\>Sensors</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'action_list')\\quot\\>Actions</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'debug_console')\\quot\\>Console</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'242917')\\quot\\>Notes</span></td>//crlf////tab//</tr>//crlf//</table>
^
ID=620760|X=1500|Y=23|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Javascript|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=AspectScript|X=1500|Y=23|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Aspect_Script|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=sensor_list|X=1500|Y=23|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Aspect_Script|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>//crlf////tab//{@if(\\quot\\__SensorExec__\\quot\\=\\quot\\true\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf////tab//{@if(getSystemValue(\\quot\\DevelopmentMode\\quot\\)\\comma\\fileModified(getToken(\\quot\\homedir\\quot\\)+\\quot\\cache\WidgetEdit_VWaUGu88BMN0hDYWzZj57VpG_Sales Dialogs.html\\quot\\)\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//<conditional expression:(\\quot\\__sensor_list__\\quot\\=\\quot\\true\\quot\\)>//crlf//</conditional>//crlf////crlf//
^
ID=action_list|X=1500|Y=23|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Aspect_Script|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>//crlf////tab//{@if(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf////tab//{@if(getSystemValue(\\quot\\DevelopmentMode\\quot\\)\\comma\\fileModified(getToken(\\quot\\homedir\\quot\\)+\\quot\\cache\WidgetEdit_VWaUGu88BMN0hDYWzZj57VpG_Sales Dialogs.html\\quot\\)\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//<conditional expression:(\\quot\\__action_list__\\quot\\=\\quot\\true\\quot\\)>//crlf//</conditional>//crlf////crlf//
^
ID=debug_console|X=1500|Y=23|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=debug_console|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=242917|X=1500|Y=23|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=965352|X=183|Y=22|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=top_bar|AttachLeft=left_bar|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<select onChange=\\quot\\showTab(this)\\quot\\>//crlf////tab//<option value='202111'>Sales Mix</option>//crlf////tab//<option value='739285'>Check Header</option>//crlf////tab//<option value='699938'>Check Detail</option>//crlf////tab//<option value='878842'>Tender</option>//crlf//</select>//crlf//
^
ID=202111|X=183|Y=43|W=735|H=682|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=965352|AttachLeft=|AlignLeft=965352|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<!-- Dialog used to edit a record -->//crlf//<div ID=\\quot\\POS_GENERIC_SALESMIX_DTA__DialogID__\\quot\\ class=\\quot\\default_table_dialog\\quot\\ style=\\quot\\height:auto; width:100\\percent\\; max-width:300px; display:<!!include type:expression; expression:if(\\quot\\__ParentW__\\quot\\=\\quot\\Sales Dialogs\\quot\\\\comma\\\\quot\\block\\quot\\\\comma\\\\quot\\none\\quot\\)>\\quot\\>//crlf////tab//<div style=\\quot\\padding:5px;width:100\\percent\\\\quot\\>//crlf////tab////tab//<!-- set this image to visible to include a close icon when the dialog header is disabled -->//crlf////tab////tab//<div class=\\quot\\EditDialogCloseIcon\\quot\\ onclick=\\quot\\closeTableEditDialog(this)\\quot\\></div>//crlf////crlf////tab////tab//<!include type:expression; expression:htmlConstant(\\quot\\TextFieldWidth\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\\\quot\\300px\\quot\\)>//crlf////tab////tab//<!include type:expression; expression:htmlConstant(\\quot\\NumberFieldWidth\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\\\quot\\150px\\quot\\)>//crlf////crlf////tab////tab//<!-- The TableEditDialogTabsContainerExclusive and TableEditDialogSelectContainerExclusive//crlf////tab////tab////tab//classes are used to make either the tabs or the select box visible\\comma\\ depending on the//crlf////tab////tab////tab//size of the browser.  If only one or two tabs are to be included\\comma\\ the //crlf////tab////tab////tab//TableEditDialogTabsContainer class can be used for the tabs and the select box can//crlf////tab////tab////tab//be ommitted.//crlf////tab////tab//-->//crlf////tab////tab//<div class=\\quot\\TableEditDialogTabsContainerExclusive\\quot\\>//crlf////tab////tab////tab//<table class=\\apos\\tabdialog\\apos\\>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\\\apos\\__salt__Sales\\apos\\)\\quot\\>Sales</span></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab//</table>//tab////crlf////tab////tab//</div>//crlf////crlf////tab////tab//<div class=\\quot\\TableEditDialogSelectContainerExclusive\\quot\\>//crlf////tab////tab////tab//<select onChange=\\quot\\showTab(this);this.blur();\\quot\\ class=\\quot\\TableEditDialogSelect\\quot\\>//crlf////tab////tab////tab////tab//<option value=\\apos\\__salt__main\\apos\\>Main</option>//crlf////tab////tab////tab//</select>//crlf////tab////tab//</div>//crlf////crlf////tab////tab//<!-- Sales -->//crlf////tab////tab//<div ID=\\quot\\__salt__Sales\\quot\\ class=\\quot\\DialogTabContent\\quot\\>//crlf////tab////tab////tab//<table style=\\quot\\width:auto\\quot\\>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Name</td>//crlf////tab////tab////tab////tab////tab//<td><span name=\\quot\\Item_Name\\quot\\></span></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Quantity</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ ONKEYDOWN=\\quot\\return keyDown(event\\comma\\this);\\quot\\ CLASS=\\quot\\DefaultNumberInput\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Sold\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Sales</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ ONKEYDOWN=\\quot\\return keyDown(event\\comma\\this);\\quot\\ CLASS=\\quot\\DefaultNumberInput\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Net_Sales\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Comps</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ ONKEYDOWN=\\quot\\return keyDown(event\\comma\\this);\\quot\\ CLASS=\\quot\\DefaultNumberInput\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Comps\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab//</table>//crlf////tab////tab//</div>//crlf////crlf////tab//</div>//crlf//</div>//crlf////crlf//
^
ID=739285|X=183|Y=43|W=735|H=682|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=965352|AttachLeft=|AlignLeft=965352|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<!-- Dialog used to edit a record -->//crlf//<div ID=\\quot\\POS_GENERIC_CHECK_HEADER__DialogID__\\quot\\ class=\\quot\\default_table_dialog\\quot\\ style=\\quot\\height:420px; width:auto; display:<!!include type:expression; expression:if(\\quot\\__ParentW__\\quot\\=\\quot\\Sales Dialogs\\quot\\\\comma\\\\quot\\block\\quot\\\\comma\\\\quot\\none\\quot\\)>\\quot\\>//crlf////tab//<div style=\\quot\\padding:5px\\quot\\>//crlf////tab////tab//<!-- set this image to visible to include a close icon when the dialog header is disabled -->//crlf////tab////tab//<img onclick=\\quot\\closeTableEditDialog(this)\\quot\\ style=\\quot\\float:right;display:block\\quot\\ src=\\quot\\__RequestServer__/?Network=Greenlight//amp//ID=getImage//amp//filename=close20x20.png\\quot\\>//crlf////crlf////tab////tab//<!-- Create a random ID used in the tab ID's below.  This is necessary when the table is included several times in one container.  //crlf////tab////tab////tab//If the tabs and associated divs do not have unique ID's\\comma\\ they will not be shown/hidden properly. -->//crlf////tab////tab//<include type:expression; expression:htmlConstant(\\quot\\tabrandom\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\getSalt(8))>//crlf////tab////tab////crlf////tab////tab//<div style=\\quot\\width:100\\percent\\; border-bottom:solid 1px //pound//c9c9c9\\quot\\>//crlf////tab////tab////tab//<table class='tabdialog'>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'__tabrandom__Main')\\quot\\>Main</span></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab//</table>//tab////crlf////tab////tab//</div>//crlf////crlf////tab////tab//<!-- Main -->//crlf////tab////tab//<div ID=\\quot\\__tabrandom__Main\\quot\\ style=\\quot\\height:350px;\\quot\\>//crlf////tab////tab////tab//<table>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Check Number</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\null;width:150px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\CheckNumber\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Transaction Num</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\null;text-align:right;width:60px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\TransNum\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Time Open</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\null;width:80px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Time_Open\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Time Close</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\null;width:80px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Time_Close\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Net Sales</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\null;text-align:right;width:60px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Net_Sales\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Voids</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\null;text-align:right;width:60px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Voids\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Tax1</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\null;text-align:right;width:60px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Tax1\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Tax2</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\null;text-align:right;width:60px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Tax2\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Tax3</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\null;text-align:right;width:60px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Tax3\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Tax4</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\null;text-align:right;width:60px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Tax4\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Tax5</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\null;text-align:right;width:60px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Tax5\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Tax6</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\null;text-align:right;width:60px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Tax6\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Tax7</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\null;text-align:right;width:60px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Tax7\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Tax8</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\null;text-align:right;width:60px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Tax8\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td COLSPAN=\\quot\\2\\quot\\><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Tax_Exempt\\quot\\ TYPE=\\quot\\checkbox\\quot\\></input> Tax Exempt</td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Comps</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\null;text-align:right;width:60px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Comps\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Discounts</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\null;text-align:right;width:60px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Discounts\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Tendered</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\null;text-align:right;width:60px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Tendered\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Change Given</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\null;text-align:right;width:60px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\ChangeGiven\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Auto Gratuity</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\null;text-align:right;width:60px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\AutoGrat\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Gift Cert Amount</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\null;text-align:right;width:60px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Gc_Amount\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Gift Cert ID</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\null;text-align:right;width:60px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Gc_Id\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Employee Open</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\null;width:150px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Emp_Open\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Employee Close</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\null;width:150px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Emp_Close\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Revenue Center ID</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\null;width:150px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Rev_Ctr\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Room</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\null;width:150px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Room\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Guests</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\null;text-align:right;width:60px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Guests\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Table Number</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\null;width:150px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\TableNumber\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab//</table>//crlf////tab////tab//</div>//crlf////crlf////tab//</div>//crlf//</div>//crlf//
^
ID=699938|X=183|Y=43|W=735|H=682|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=965352|AttachLeft=|AlignLeft=965352|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<!-- Dialog used to edit a record -->//crlf//<div ID=\\quot\\POS_GENERIC_CHECK_DETAIL__DialogID__\\quot\\ class=\\quot\\default_table_dialog\\quot\\ style=\\quot\\height:420px; width:auto; display:<!!include type:expression; expression:if(\\quot\\__ParentW__\\quot\\=\\quot\\Sales Dialogs\\quot\\\\comma\\\\quot\\block\\quot\\\\comma\\\\quot\\none\\quot\\)>\\quot\\>//crlf////tab//<div style=\\quot\\padding:5px\\quot\\>//crlf////tab////tab//<!-- set this image to visible to include a close icon when the dialog header is disabled -->//crlf////tab////tab//<img onclick=\\quot\\closeTableEditDialog(this)\\quot\\ style=\\quot\\float:right;display:block\\quot\\ src=\\quot\\__RequestServer__/?Network=Greenlight//amp//ID=getImage//amp//filename=close20x20.png\\quot\\>//crlf////crlf////tab////tab//<!-- Create a random ID used in the tab ID's below.  This is necessary when the table is included several times in one container.  //crlf////tab////tab////tab//If the tabs and associated divs do not have unique ID's\\comma\\ they will not be shown/hidden properly. -->//crlf////tab////tab//<include type:expression; expression:htmlConstant(\\quot\\tabrandom\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\getSalt(8))>//crlf////tab////tab////crlf////tab////tab//<div style=\\quot\\width:100\\percent\\; border-bottom:solid 1px //pound//c9c9c9\\quot\\>//crlf////tab////tab////tab//<table class='tabdialog'>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'__tabrandom__Main')\\quot\\>Main</span></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab//</table>//tab////crlf////tab////tab//</div>//crlf////crlf////tab////tab//<!-- Main -->//crlf////tab////tab//<div ID=\\quot\\__tabrandom__Main\\quot\\ style=\\quot\\height:350px;\\quot\\>//crlf////tab////tab////tab//<table>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Check Number</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\null;width:150px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\CheckNumber\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Time</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\null;width:80px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Time\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Record Type</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\null;text-align:right;width:60px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Rectype\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Employee</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\null;text-align:right;width:60px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Employee\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Quantity</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\null;text-align:right;width:60px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Quantity\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Department</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\null;width:150px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Department\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Category</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\null;width:150px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Category\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Menuitem</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\null;width:150px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Menuitem\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Id1</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\null;width:150px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Id1\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Amount</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\null;text-align:right;width:60px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Amount\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Id2</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\null;width:150px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Id2\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab//</table>//crlf////tab////tab//</div>//crlf////crlf////tab//</div>//crlf//</div>//crlf//
^
ID=878842|X=183|Y=43|W=784|H=600|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=965352|AttachLeft=|AlignLeft=965352|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<!-- Dialog used to edit a record -->//crlf//<div ID=\\quot\\POS_GENERIC_POS_IDS_TENDER__DialogID__\\quot\\ class=\\quot\\default_table_dialog\\quot\\ style=\\quot\\height:auto; width:100\\percent\\; max-width:300px; display:<!!include type:expression; expression:if(\\quot\\__ParentW__\\quot\\=\\quot\\Sales Dialogs\\quot\\\\comma\\\\quot\\block\\quot\\\\comma\\\\quot\\none\\quot\\)>;\\quot\\>//crlf////tab//<div style=\\quot\\padding:5px;width:100\\percent\\\\quot\\>//crlf////tab////tab//<!-- set this image to visible to include a close icon when the dialog header is disabled -->//crlf////tab////tab//<div class=\\quot\\EditDialogCloseIcon\\quot\\ onclick=\\quot\\closeTableEditDialog(this)\\quot\\></div>//crlf////crlf////tab////tab//<!include type:expression; expression:htmlConstant(\\quot\\TextFieldWidth\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\\\quot\\300px\\quot\\)>//crlf////tab////tab//<!include type:expression; expression:htmlConstant(\\quot\\NumberFieldWidth\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\\\quot\\150px\\quot\\)>//crlf////crlf////tab////tab//<!-- The TableEditDialogTabsContainerExclusive and TableEditDialogSelectContainerExclusive//crlf////tab////tab////tab//classes are used to make either the tabs or the select box visible\\comma\\ depending on the//crlf////tab////tab////tab//size of the browser.  If only one or two tabs are to be included\\comma\\ the //crlf////tab////tab////tab//TableEditDialogTabsContainer class can be used for the tabs and the select box can//crlf////tab////tab////tab//be ommitted.//crlf////tab////tab//-->//crlf////tab////tab//<div class=\\quot\\TableEditDialogTabsContainerExclusive\\quot\\>//crlf////tab////tab////tab//<table class='tabdialog'>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'__salt__Tender')\\quot\\>Tender</span></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab//</table>//tab////crlf////tab////tab//</div>//crlf////crlf////tab////tab//<div class=\\quot\\TableEditDialogSelectContainerExclusive\\quot\\>//crlf////tab////tab////tab//<select onChange=\\quot\\showTab(this);this.blur();\\quot\\ class=\\quot\\TableEditDialogSelect\\quot\\>//crlf////tab////tab////tab////tab//<option value='__salt__main'>Main</option>//crlf////tab////tab////tab//</select>//crlf////tab////tab//</div>//crlf////crlf////tab////tab//<!-- Tender -->//crlf////tab////tab//<div ID=\\quot\\__salt__Tender\\quot\\ class=\\quot\\DialogTabContent\\quot\\>//crlf////tab////tab////tab//<table style=\\quot\\width:100\\percent\\\\quot\\>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Name</td>//crlf////tab////tab////tab////tab////tab//<td><input name=\\quot\\Name\\quot\\ type=\\quot\\text\\quot\\ class=\\quot\\medium\\quot\\ disabled readonly style=\\quot\\background-color://pound//ebebeb\\quot\\ style=\\quot\\background-color://pound//ebebeb\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Number</td>//crlf////tab////tab////tab////tab////tab//<td><input name=\\quot\\Number\\quot\\ type=\\quot\\text\\quot\\ class=\\quot\\medium\\quot\\ disabled readonly style=\\quot\\background-color://pound//ebebeb\\quot\\ style=\\quot\\background-color://pound//ebebeb\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Type</td>//crlf////tab////tab////tab////tab////tab//<td><!include type:expression; expression:htmlSelect(\\quot\\POS_Generic_Tender_Type_Description\\quot\\\\comma\\\\quot\\Tender_Type\\quot\\\\comma\\\\quot\\\\quot\\\\comma\\\\quot\\class='medium' onChange=\\quot\\+quote(\\quot\\submitDialogCell(this)\\quot\\))></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab//</table>//crlf////tab////tab//</div>//crlf////crlf////tab//</div>//crlf//</div>//crlf////crlf//
</widget><widget name="Sales Drivers" group="" category="Drivers / Dialogs" description="Contains drivers for all sales related reports - check headers, details, sales mix and identifiers.  Includes the scripts used to consolidate drivers." type="Container" Mobile="false" Processing=0 metadata="" IncludeInViewer="false" PublicName="Sales Drivers" modified="03-28-2024 22:19:14" modifiedby="Thnikpad3" TaskEnabled=false IsAgent=false ContainsAgentSensors=false ContainsAgentActions=false TaskInitialStartTime=12-27-2022 21:35:22:000 TaskIntervalType=0 TaskLastExecuted= TaskCatchUpMissedTasks=false TaskYearsBetweenExecution=0 TaskMonthsBetweenExecution=0 TaskDaysBetweenExecution=0 TaskHoursBetweenExecution=0 TaskMinutesBetweenExecution=0 TaskSecondsBetweenExecution=0 TaskExecuteSun=true TaskExecuteMon=true TaskExecuteTue=true TaskExecuteWed=true TaskExecuteThu=true TaskExecuteFri=true TaskExecuteSat=true TaskConditional_Expression="" TaskConditional_Expression_Description="" TaskState_Function="" TaskState_Expression_Description="" TaskWidgetParams="" TaskWindowForExecution=0>
Preferences|toolboxx=1150|toolboxy=139|aspectfuncx=229|aspectfuncy=100|aspectfuncw=750|aspectfunch=811|aspectfuncLock=true|aspectfuncVisible=false|PublishFtpFilename=Sales Drivers.html|PublishToFtpSite=false|PublishFTPAccount=0|PublishFtpDirectory=/|PublishFtpPublicDirectory=/|PublishCopyFile=false|PublishCopyFilename=|PublishWysiwig=false|PublishIncludeAspectScript=false|PublishIncludeAspectStyleshet=false|PublishAsText=false|^
ID=top_bar|X=0|Y=0|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=false|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=left_bar|X=0|Y=15|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=false|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=top_bar|AttachLeft=|AlignLeft=top_bar|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=code|X=1500|Y=0|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<table class='tabdialog'>//crlf////tab//<tr>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'215702')\\quot\\>Javascript</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'AspectScript')\\quot\\>AspectScript</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'sensor_list')\\quot\\>Sensors</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'action_list')\\quot\\>Actions</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'debug_console')\\quot\\>Console</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'484225')\\quot\\>Notes</span></td>//crlf////tab//</tr>//crlf//</table>^
ID=215702|X=1500|Y=25|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=Javascript|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=AspectScript|X=1500|Y=25|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Aspect_Script|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=sensor_list|X=1500|Y=25|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Aspect_Script|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>//crlf////tab//{@if(\\quot\\__SensorExec__\\quot\\=\\quot\\true\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf////tab//{@if(getSystemValue(\\quot\\DevelopmentMode\\quot\\)\\comma\\fileModified(getToken(\\quot\\homedir\\quot\\)+\\quot\\cache\WidgetEdit_VWaUGu88BMN0hDYWzZj57VpG_Sales Drivers.html\\quot\\)\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//<conditional expression:(\\quot\\__sensor_list__\\quot\\=\\quot\\true\\quot\\)>//crlf//</conditional>//crlf////crlf//^
ID=action_list|X=1500|Y=25|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=Aspect_Script|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>//crlf////tab//{@if(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf////tab//{@if(getSystemValue(\\quot\\DevelopmentMode\\quot\\)\\comma\\fileModified(getToken(\\quot\\homedir\\quot\\)+\\quot\\cache\WidgetEdit_VWaUGu88BMN0hDYWzZj57VpG_Sales Drivers.html\\quot\\)\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//<conditional expression:(\\quot\\__action_list__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab//Sales Drivers\\comma\\initializeSalesMix\\comma\\action_list\\comma\\Action=initializeSalesMix\\comma\\private//crlf//</conditional>//crlf////crlf//<conditional expression:false>//crlf//========================================================================//crlf//initializeSalesMix//crlf//========================================================================//crlf//</conditional>//crlf//<conditional expression:(\\quot\\__Action__\\quot\\=\\quot\\initializeSalesMix\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__ActionDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Adds menu item records to sales mix for a given store and date.  Existing//crlf////tab////tab//records are unaffected.  New records are added for any menu items not included//crlf////tab////tab//in the driver.  This includes menu item for which no sales were recorded during//crlf////tab////tab//the pos import and may include all menu items if the sales mix file does not//crlf////tab////tab//exist.  This can be used to initialize a sales mix so that numbers can be //crlf////tab////tab//edited manually.//crlf////crlf////tab////tab//Menu items are added from the inventory item driver.  This allows a sales mix to //crlf////tab////tab//be initialized when//tab//data has been imported from Aspect6 but has not yet been //crlf////tab////tab//imported from the POS//tab//system.//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//StoreID - Store ID//crlf////tab////tab//Date - Date//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\initializeSalesMix\\quot\\; commands:\\quot\\//crlf////tab////tab////tab//appendToLog(\\quot\\initializeSalesMix\\quot\\)//crlf////crlf////tab////tab////tab////abort if missing storeID//crlf////tab////tab////tab//if(undefined(\\quot\\__StoreID__\\quot\\))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing StoreID\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if missing date//crlf////tab////tab////tab//if(undefined(\\quot\\__Date__\\quot\\))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing date\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////open inventory items and filter to menu items//crlf////tab////tab////tab//driverOpen(Aspect_Back_Office_Inventory_Item\\comma\\dItem\\comma\\READ\\comma\\false\\comma\\\\quot\\StoreID=__StoreID__\\quot\\)//crlf////tab////tab////tab//driverSetFilter(dItem\\comma\\\\quot\\(Record_Type=2) and (gt(len(Menu_Item_POS_ID)\\comma\\0\\comma\\n))\\quot\\\\comma\\true)//crlf////crlf////tab////tab////tab////open sales mix//crlf////tab////tab////tab//driverOpen(POS_Generic_SalesMix_Dta\\comma\\d\\comma\\WRITE\\comma\\false\\comma\\\\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\)//crlf////tab////tab////tab//driverSetFilter(d\\comma\\\\quot\\true\\quot\\\\comma\\true)//crlf////crlf////tab////tab////tab//arAlias=\\quot\\MenuItemID=Menu_Item_POS_ID\\quot\\//crlf////tab////tab////tab//s=driverMerge(true\\comma\\d\\comma\\\\quot\\\\quot\\\\comma\\dItem\\comma\\\\quot\\\\quot\\\\comma\\\\quot\\MenuItemID\\quot\\\\comma\\\\quot\\MenuItemID\\quot\\\\comma\\arAlias\\comma\\\\quot\\\\quot\\\\comma\\true)//crlf////crlf////tab////tab////tab//driverClose(d)//crlf////tab////tab////tab//driverClose(dItem)//crlf////crlf////tab////tab////tab//return(s);//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf////crlf//^
ID=debug_console|X=1500|Y=25|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=debug_console|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=484225|X=1500|Y=25|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=709760|X=151|Y=15|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=top_bar|AttachLeft=left_bar|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<select onChange=\\quot\\showTab(this)\\quot\\>//crlf////tab//<option value='0'>=========================</option>//crlf////tab//<option value='0'>Items reviewed since 03-23-2016</option>//crlf////tab//<option value='0'>=========================</option>//crlf////tab//<option value='275986'>Controllables</option>//crlf////tab//<option value='91460'>Check Headers</option>//crlf////tab//<option value='66964'>Check Details</option>//crlf////tab//<option value='76850'>Check Detail Addendum</option>//crlf////tab//<option value='917285'>Sales Mix</option>//crlf////tab//<option value='75851'>Departments</option>//crlf////tab//<option value='295534'>Menu Categories</option>//crlf////tab//<option value='774907'>POS Identifiers - Tenders</option>//crlf////tab//<option value='769496'>POS Identifiers - Comps</option>//crlf////tab//<option value='551550'>POS Identifiers - Discounts</option>//crlf////tab//<option value='342181'>Daily Sales Driver</option>//crlf////tab//<option value='635161'>User-Defined Sales Structure</option>//crlf////tab//<option value='574856'>Chart Of Accounts</option>//crlf////tab//<option value='682232'>User-Defined Daily Sales</option>//crlf////tab//<option value='410103'>User-Defined Daily Sales Transposed</option>//crlf////tab//<option value='627685'>Sales Summary</option>//crlf////tab//<option value='0'</option>//crlf////tab//<option value='0'>=========================</option>//crlf////tab//<option value='0'>Deprecated items</option>//crlf////tab//<option value='0'>=========================</option>//crlf////tab//<option value='271600'>[OLD] POS Identifiers</option>//crlf////tab//<option value='499280'>[OLD] Check Details</option>//crlf////tab//<option value='394769'>[OLD] Sales Mix</option>//crlf////tab//<option value='243043'>[OLD] Check Headers</option>//crlf////tab//<option value='299699'>[OLD] Check Details</option>//crlf//</select>//crlf//^
ID=271600|X=151|Y=32|W=1066|H=705|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=Aspect_Script|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=709760|AttachLeft=|AlignLeft=709760|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=03-23-2016<br>//crlf//This item has been deprecated __d__ : __w__ : __i__<br>//crlf//Use dimensional view instead.//crlf////crlf//<conditional expression:false>//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\salt\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\lowercase(getSalt(4)))>//crlf////tab//<conditional expression:(\\quot\\__action__\\quot\\=\\quot\\getConsolidatedIdentifers\\quot\\)>//crlf////tab////tab//<!!include type:driver;//crlf////tab////tab////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab////tab////tab//title: \\quot\\\\quot\\;//crlf////tab////tab////tab//ID: \\quot\\\\quot\\;//crlf////tab////tab////tab//HashID: \\quot\\\\quot\\;//crlf////tab////tab////tab//driver: \\quot\\POS_Generic_Consolidated_Identifiers\\quot\\;//crlf////tab////tab////tab//name: \\quot\\\\quot\\;//crlf////tab////tab////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab////tab////tab//dispose: \\quot\\false\\quot\\;//crlf////tab////tab////tab//state: \\quot\\\\quot\\;//crlf////tab////tab////tab//params: \\quot\\keyexpression=<!include type:expression; expression:if(\\quot\\__orientation__\\quot\\=\\quot\\vertical\\quot\\\\comma\\\\quot\\ID\\quot\\\\comma\\\\quot\\__key__\\quot\\)>~~pipe~~CacheTtl=0~~pipe~~DocumentID=VWaUGu88BMN0hDYWzZj57VpG~~pipe~~Widget=Sales Drivers~~pipe~~ContainerItemID=271600~~pipe~~StoreID1=__StoreID__~~pipe~~DataType=__DataType__~~pipe~~Orientation=__Orientation__~~pipe~~Action=getConsolidatedIdentifiers~~pipe~~Key=__Key__~~pipe~~Metadata=POS_Generic___Orientation___Consolidated_Identifiers__DataType__\\quot\\;//crlf////tab////tab////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab////tab////tab//display: \\quot\\\\quot\\;//crlf////tab////tab////tab//fields: \\quot\\\\quot\\;//crlf////tab////tab////tab//IncludeFields: \\quot\\\\quot\\;//crlf////tab////tab////tab//ExcludeFields: \\quot\\\\quot\\;//crlf////tab////tab////tab//sort: \\quot\\ID\\quot\\;//crlf////tab////tab////tab//filter: \\quot\\true\\quot\\;//crlf////tab////tab////tab//BaseFilter: \\quot\\\\quot\\;//crlf////tab////tab////tab//class: \\quot\\basic1\\quot\\;//crlf////tab////tab////tab//maxrecords: \\quot\\250\\quot\\;//crlf////tab////tab////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab////tab////tab//style: \\quot\\width:auto\\quot\\;//crlf////tab////tab////tab//canSelect: \\quot\\false\\quot\\;//crlf////tab////tab////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab////tab////tab//canEdit: \\quot\\false\\quot\\;//crlf////tab////tab////tab//canAdd: \\quot\\false\\quot\\;//crlf////tab////tab////tab//canDelete: \\quot\\false\\quot\\;//crlf////tab////tab////tab//EmbedValues: \\quot\\\\quot\\;//crlf////tab////tab////tab//EditDialogID: \\quot\\\\quot\\;//crlf////tab////tab////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab////tab////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab////tab////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab////tab////tab//ExternalFilters: \\quot\\\\quot\\;//crlf////tab////tab////tab//TableControls: \\quot\\true\\quot\\;//crlf////tab////tab////tab//TableHeader: \\quot\\true\\quot\\;//crlf////tab////tab////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab////tab////tab//SelectDisplay: \\quot\\true\\quot\\;//crlf////tab////tab////tab//EditDisplay: \\quot\\true\\quot\\;//crlf////tab////tab////tab//Menu: \\quot\\\\quot\\;//crlf////tab////tab////tab//Messages: \\quot\\true\\quot\\;//crlf////tab////tab////tab//ChartType: \\quot\\\\quot\\;//crlf////tab////tab////tab//ChartWidth: \\quot\\640\\quot\\;//crlf////tab////tab////tab//ChartHeight: \\quot\\480\\quot\\;//crlf////tab////tab////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab////tab////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab////tab////tab//ChartStyle: \\quot\\display:none\\quot\\;//crlf////tab////tab////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab////tab////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab////tab////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab////tab////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab////tab////tab//Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab////tab////tab//debug: \\quot\\false\\quot\\;//crlf////tab////tab//>//crlf////tab//</conditional>//crlf////crlf////tab//<conditional expression:false>//crlf////tab//=============================================================================//crlf////tab//Opens a vertically or horizontally consolidated driver of pos identifiers//crlf////crlf////tab//NOTES: The include tag above calls the Aspect_Commaon_openScriptDriver script to//crlf////tab//open a script driver.  The document ID\\comma\\ widget\\comma\\ container item and other params//crlf////tab//required to open the driver are defined in the driver params in the include tag.//crlf////tab//These tell it what widget will be used to open the driver (this one right here)//crlf////tab//and what parameters to pass to the driver.//crlf////crlf////tab//It is the responsibility of this widget to pass any necessary driver params //crlf////tab//(like the KeyExpression) to the consolidated driver.  Defining a KeyExpression//crlf////tab//in the include tag just gets it to this widget.  This widget must then pass//crlf////tab//it on to the consolidated driver.//crlf////crlf////tab//Params://crlf////tab////tab//DataType //tab//: A pos data type e.g. id_menu_categories\\comma\\ id_discount\\comma\\ ...//crlf////tab////tab//StoreID1//tab//: Comma-delimited list of store or store group ID's//crlf////tab////tab//key//tab////tab////tab////tab//: Field ID for horizontal consolidation//crlf////tab//=============================================================================//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__action__\\quot\\=\\quot\\getConsolidatedIdentifiers\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\getConsolidatedIdentifiers\\quot\\; commands:\\quot\\//crlf////tab////tab////tab////get the associated driver ID//crlf////tab////tab////tab//sDriverID=lookup(Aspect_BackOffice_Data_Type_Associated_DriverID\\comma\\\\quot\\__DataType__\\quot\\)//crlf////tab////tab////tab////crlf////tab////tab////tab////get the associated file name//crlf////tab////tab////tab//sFilename=lookup(Aspect_BackOffice_Data_Type_Associated_Filenames\\comma\\\\quot\\__DataType__\\quot\\)//crlf////crlf////tab////tab////tab////get set of store ID's//crlf////tab////tab////tab//arStore=expandStoreID(\\quot\\__StoreID1__\\quot\\)//crlf////crlf////tab////tab////tab////get set of store names//crlf////tab////tab////tab//setStoreName=execSetCommand(arStore\\comma\\\\quot\\lookup(Aspect_BackOffice_Store_Name_By_ID\\comma\\$e$)\\quot\\\\comma\\char(0x2C))//crlf////crlf////tab////tab////tab////get set of store directories//crlf////tab////tab////tab//arStoreDir=execSetCommand(arStore\\comma\\\\quot\\lookup(Aspect_BackOffice_Store_Directory_By_ID\\comma\\$e$)\\quot\\\\comma\\char(0x2C))//crlf////crlf////tab////tab////tab////get set of file names//crlf////tab////tab////tab//arFilename=getSetFor(arStoreDir\\comma\\sFilename)//crlf////crlf////tab////tab////tab////get set of driver params.  This is only necessary so that a description paramater//crlf////tab////tab////tab////can be passed to horizontal drivers.  //crlf////tab////tab////tab//setDriverParams=getSetFor(\\quot\\Filename=$e$~~pipe~~KeyExpression=__Key__~~pipe~~Description=\\quot\\\\comma\\setStoreName)//crlf////crlf////tab////tab////tab////open a set of system drivers//crlf////tab////tab////tab////arSet=getSetDriver(sDriverID\\comma\\arFilename\\comma\\WRITE\\comma\\\\quot\\Filename=$e$~~pipe~~Description=test\\quot\\)//crlf////tab////tab////tab//arSet=getSetDriver(sDriverID\\comma\\arFilename\\comma\\WRITE\\comma\\setDriverParams)//crlf////crlf////tab////tab////tab////it's not necessary to delineate fields if they will all be included//crlf////tab////tab////tab//arFields=\\quot\\\\quot\\//crlf////crlf////tab////tab////tab//sysdrv=getSetConsolidate(\\quot\\__orientation__\\quot\\\\comma\\\\quot\\\\quot\\\\comma\\arFields\\comma\\\\quot\\true\\quot\\\\comma\\\\quot\\__key__\\quot\\\\comma\\arSet)//crlf////tab////tab////tab//driverSetDriverParams(sysdrv\\comma\\\\quot\\KeyExpression=__Key__\\quot\\)//crlf////crlf////tab////tab////tab//scriptSetResult(sysdrv)//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf////crlf//^
ID=394769|X=151|Y=32|W=1066|H=705|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=709760|AttachLeft=|AlignLeft=709760|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<h1>This Item __d__ : __w__: __i__ has been deprecated</h1>//crlf//<h1>Use a dimensional view template instead</h1>//crlf////crlf//<conditional expression:false>//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\salt\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\lowercase(getSalt(4)))>//crlf////crlf////tab//<conditional expression:(\\quot\\__action__\\quot\\=\\quot\\getConsolidatedSalesMix\\quot\\)>//crlf////crlf////tab////tab//Menu Item POS ID <!include type:ExternalDriverFilter;//crlf////tab////tab////tab//Comment: \\quot\\InputType is Text\\comma\\ Select\\comma\\ Checkbox\\comma\\ Date\\comma\\ Time or Hidden\\quot\\;//crlf////tab////tab////tab//Comment: \\quot\\Double quotes can be used in all fields.  E.g. onBlur=\\quot\\alert('test')\\quot\\\\quot\\;//crlf////tab////tab////tab//Comment: \\quot\\Driver params are pipe-delimited and do not contain quotes\\quot\\;//crlf////tab////tab////tab//InputType:\\quot\\Text\\quot\\;//crlf////tab////tab////tab//ID:\\quot\\SelectMenuItem{PSID__salt__\\quot\\;//crlf////tab////tab////tab//Condition:\\quot\\not(len(trim('$value$'))=0)\\quot\\;//crlf////tab////tab////tab//Expression:\\quot\\MenuItemID='$value$'\\quot\\;//crlf////tab////tab////tab//Tooltip:\\quot\\\\quot\\;//crlf////tab////tab////tab//HtmlParams:\\quot\\\\quot\\;//crlf////tab////tab////tab//CollectionID:\\quot\\\\quot\\;//crlf////tab////tab////tab//Selected:\\quot\\\\quot\\;//crlf////tab////tab////tab//DriverParams:\\quot\\\\quot\\;//crlf////tab////tab////tab//Filter:\\quot\\\\quot\\;//crlf////tab////tab////tab//SystemDriverName:\\quot\\\\quot\\;//crlf////tab////tab//>//crlf////crlf////tab////tab//<!!include type:driver;//crlf////tab////tab////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab////tab////tab//title: \\quot\\\\quot\\;//crlf////tab////tab////tab//ID: \\quot\\\\quot\\;//crlf////tab////tab////tab//HashID: \\quot\\\\quot\\;//crlf////tab////tab////tab//driver: \\quot\\POS_Generic_Consolidated_Sales_Mix\\quot\\;//crlf////tab////tab////tab//name: \\quot\\\\quot\\;//crlf////tab////tab////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab////tab////tab//dispose: \\quot\\false\\quot\\;//crlf////tab////tab////tab//state: \\quot\\\\quot\\;//crlf////tab////tab////tab//params: \\quot\\keyexpression=<!include type:expression; expression:if(\\quot\\__orientation__\\quot\\=\\quot\\vertical\\quot\\\\comma\\\\quot\\ID\\quot\\\\comma\\\\quot\\__key__\\quot\\)>~~pipe~~CacheTtl=0~~pipe~~DocumentID=VWaUGu88BMN0hDYWzZj57VpG~~pipe~~Widget=Sales Drivers~~pipe~~ContainerItemID=394769~~pipe~~StoreID1=__StoreID__~~pipe~~DataType=sales_mix~~pipe~~DateFrom=__DateFrom__~~pipe~~DateTo=__DateTo__~~pipe~~Orientation=__Orientation__~~pipe~~Action=openConsolidatedSalesMix~~pipe~~Key=__Key__~~pipe~~Metadata=POS Generic Consolidated Sales Mix___Orientation___\\quot\\;//crlf////tab////tab////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab////tab////tab//display: \\quot\\\\quot\\;//crlf////tab////tab////tab//fields: \\quot\\\\quot\\;//crlf////tab////tab////tab//IncludeFields: \\quot\\\\quot\\;//crlf////tab////tab////tab//ExcludeFields: \\quot\\\\quot\\;//crlf////tab////tab////tab//sort: \\quot\\ID\\quot\\;//crlf////tab////tab////tab//filter: \\quot\\true\\quot\\;//crlf////tab////tab////tab//BaseFilter: \\quot\\\\quot\\;//crlf////tab////tab////tab//class: \\quot\\basic1\\quot\\;//crlf////tab////tab////tab//maxrecords: \\quot\\250\\quot\\;//crlf////tab////tab////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab////tab////tab//style: \\quot\\width:auto\\quot\\;//crlf////tab////tab////tab//canSelect: \\quot\\false\\quot\\;//crlf////tab////tab////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab////tab////tab//canEdit: \\quot\\false\\quot\\;//crlf////tab////tab////tab//canAdd: \\quot\\false\\quot\\;//crlf////tab////tab////tab//canDelete: \\quot\\false\\quot\\;//crlf////tab////tab////tab//EmbedValues: \\quot\\\\quot\\;//crlf////tab////tab////tab//EditDialogID: \\quot\\\\quot\\;//crlf////tab////tab////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab////tab////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab////tab////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab////tab////tab//ExternalFilters: \\quot\\SelectMenuItem{PSID__salt__\\quot\\;//crlf////tab////tab////tab//TableControls: \\quot\\true\\quot\\;//crlf////tab////tab////tab//TableHeader: \\quot\\true\\quot\\;//crlf////tab////tab////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab////tab////tab//SelectDisplay: \\quot\\true\\quot\\;//crlf////tab////tab////tab//EditDisplay: \\quot\\true\\quot\\;//crlf////tab////tab////tab//Menu: \\quot\\\\quot\\;//crlf////tab////tab////tab//Messages: \\quot\\true\\quot\\;//crlf////tab////tab////tab//ChartType: \\quot\\\\quot\\;//crlf////tab////tab////tab//ChartWidth: \\quot\\640\\quot\\;//crlf////tab////tab////tab//ChartHeight: \\quot\\480\\quot\\;//crlf////tab////tab////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab////tab////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab////tab////tab//ChartStyle: \\quot\\display:none\\quot\\;//crlf////tab////tab////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab////tab////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab////tab////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab////tab////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab////tab////tab//Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab////tab////tab//debug: \\quot\\false\\quot\\;//crlf////tab////tab//>//crlf////tab//</conditional>//crlf////crlf////tab//<conditional expression:false>//crlf////tab//=============================================================================//crlf////tab//Opens a vertically or horizontally consolidated salex mix driver //crlf////crlf////tab//Params://crlf////tab////tab//DataType //tab//: Constant - \\quot\\sales_mix\\quot\\//crlf////tab////tab//StoreID1//tab//: Comma-delimited list of store or store group ID's//crlf////tab////tab//DateFrom//tab//: Starting date (MM-dd-yyyy)//crlf////tab////tab//DateTo//tab////tab//: Ending date (MM-dd-yyyy)//crlf////tab////tab//key//tab////tab////tab////tab//: Field ID for horizontal consolidation//crlf////tab//=============================================================================//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__action__\\quot\\=\\quot\\openConsolidatedSalesMix\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\getConsolidatedIdentifiers\\quot\\; commands:\\quot\\//crlf////tab////tab////tab////get the associated driver ID//crlf////tab////tab////tab//sDriverID=lookup(Aspect_BackOffice_Data_Type_Associated_DriverID\\comma\\\\quot\\__DataType__\\quot\\)//crlf////crlf////tab////tab////tab////get the associated file name//crlf////tab////tab////tab//sFilename=lookup(Aspect_BackOffice_Data_Type_Associated_Filenames\\comma\\\\quot\\__DataType__\\quot\\)//crlf////crlf////tab////tab////tab////get set of store ID's//crlf////tab////tab////tab//arStore=expandStoreID(\\quot\\__StoreID1__\\quot\\)//crlf////crlf////tab////tab////tab////get set of store names//crlf////tab////tab////tab//setStoreName=execSetCommand(arStore\\comma\\\\quot\\lookup(Aspect_BackOffice_Store_Name_By_ID\\comma\\$e$)\\quot\\\\comma\\char(0x2C))//crlf////crlf////tab////tab////tab////get set of store directories//crlf////tab////tab////tab//arStoreDir=execSetCommand(arStore\\comma\\\\quot\\lookup(Aspect_BackOffice_Store_Directory_By_ID\\comma\\$e$)\\quot\\\\comma\\char(0x2C))//crlf////crlf////tab////tab////tab////get set of dates //crlf////tab////tab////tab////[GET THE FILENAMES HERE]//crlf////tab////tab////tab//setDate=getSetTime(\\quot\\__DateFrom__\\quot\\\\comma\\\\quot\\__DateTo__\\quot\\\\comma\\60*1440\\comma\\\\quot\\MM-dd-yyyy\\quot\\\\comma\\\\quot\\\\quot\\\\comma\\replaceSubstring(sFilename\\comma\\\\quot\\$date$\\quot\\\\comma\\\\quot\\$e$\\quot\\)\\comma\\char(0x2C))//crlf////crlf////tab////tab////tab////get set of file names //crlf////tab////tab////tab//arFilename=getSetFor(arStoreDir\\comma\\setDate)//crlf////crlf////tab////tab////tab////get set of driver params.  This is only necessary so that a description paramater//crlf////tab////tab////tab////can be passed to horizontal drivers.  //crlf////tab////tab////tab//setDriverParams=getSetFor(\\quot\\Filename=$e$~~pipe~~KeyExpression=__Key__~~pipe~~Description=\\quot\\\\comma\\setStoreName)//crlf////crlf////tab////tab////tab////open a set of system drivers//crlf////tab////tab////tab//arSet=getSetDriver(sDriverID\\comma\\arFilename\\comma\\WRITE\\comma\\setDriverParams)//crlf////crlf////tab////tab////tab////it's not necessary to delineate fields if they will all be included//crlf////tab////tab////tab//arFields=\\quot\\\\quot\\//crlf////crlf////tab////tab////tab//sysdrv=getSetConsolidate(\\quot\\__orientation__\\quot\\\\comma\\\\quot\\\\quot\\\\comma\\arFields\\comma\\\\quot\\true\\quot\\\\comma\\\\quot\\__key__\\quot\\\\comma\\arSet)//crlf////tab////tab////tab//driverSetDriverParams(sysdrv\\comma\\\\quot\\KeyExpression=__Key__\\quot\\)//crlf////crlf////tab////tab////tab//scriptSetResult(sysdrv)//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf//^
ID=243043|X=151|Y=32|W=1066|H=705|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=709760|AttachLeft=|AlignLeft=709760|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<h1>This Item __d__ : __w__: __i__ has been deprecated</h1>//crlf//<h1>Use a dimensional view template instead</h1>//crlf////crlf//<conditional expression:false>//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\salt\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\lowercase(getSalt(4)))>//crlf////crlf////tab//<conditional expression:(\\quot\\__action__\\quot\\=\\quot\\getConsolidatedCheckHeaders\\quot\\)>//crlf////crlf////tab////tab//<!!include type:driver;//crlf////tab////tab////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab////tab////tab//title: \\quot\\\\quot\\;//crlf////tab////tab////tab//ID: \\quot\\\\quot\\;//crlf////tab////tab////tab//HashID: \\quot\\\\quot\\;//crlf////tab////tab////tab//driver: \\quot\\POS_Generic_Consolidated_Check_Headers\\quot\\;//crlf////tab////tab////tab//name: \\quot\\\\quot\\;//crlf////tab////tab////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab////tab////tab//dispose: \\quot\\false\\quot\\;//crlf////tab////tab////tab//state: \\quot\\\\quot\\;//crlf////tab////tab////tab//params: \\quot\\keyexpression=<!include type:expression; expression:if(\\quot\\__orientation__\\quot\\=\\quot\\vertical\\quot\\\\comma\\\\quot\\ID\\quot\\\\comma\\\\quot\\__key__\\quot\\)>~~pipe~~CacheTtl=0~~pipe~~DocumentID=VWaUGu88BMN0hDYWzZj57VpG~~pipe~~Widget=Sales Drivers~~pipe~~ContainerItemID=243043~~pipe~~StoreID1=__StoreID__~~pipe~~DataType=check_headers~~pipe~~DateFrom=__DateFrom__~~pipe~~DateTo=__DateTo__~~pipe~~Orientation=__Orientation__~~pipe~~Action=openConsolidatedCheckHeaders~~pipe~~Key=__Key__~~pipe~~Metadata=POS_Generic_Consolidated_Check_Headers___Orientation__\\quot\\;//crlf////tab////tab////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab////tab////tab//display: \\quot\\\\quot\\;//crlf////tab////tab////tab//fields: \\quot\\\\quot\\;//crlf////tab////tab////tab//IncludeFields: \\quot\\\\quot\\;//crlf////tab////tab////tab//ExcludeFields: \\quot\\\\quot\\;//crlf////tab////tab////tab//sort: \\quot\\ID\\quot\\;//crlf////tab////tab////tab//filter: \\quot\\true\\quot\\;//crlf////tab////tab////tab//BaseFilter: \\quot\\\\quot\\;//crlf////tab////tab////tab//class: \\quot\\basic1\\quot\\;//crlf////tab////tab////tab//maxrecords: \\quot\\250\\quot\\;//crlf////tab////tab////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab////tab////tab//style: \\quot\\width:auto\\quot\\;//crlf////tab////tab////tab//canSelect: \\quot\\false\\quot\\;//crlf////tab////tab////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab////tab////tab//canEdit: \\quot\\false\\quot\\;//crlf////tab////tab////tab//canAdd: \\quot\\false\\quot\\;//crlf////tab////tab////tab//canDelete: \\quot\\false\\quot\\;//crlf////tab////tab////tab//EmbedValues: \\quot\\\\quot\\;//crlf////tab////tab////tab//EditDialogID: \\quot\\\\quot\\;//crlf////tab////tab////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab////tab////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab////tab////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab////tab////tab//ExternalFilters: \\quot\\\\quot\\;//crlf////tab////tab////tab//TableControls: \\quot\\true\\quot\\;//crlf////tab////tab////tab//TableHeader: \\quot\\true\\quot\\;//crlf////tab////tab////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab////tab////tab//SelectDisplay: \\quot\\true\\quot\\;//crlf////tab////tab////tab//EditDisplay: \\quot\\true\\quot\\;//crlf////tab////tab////tab//Menu: \\quot\\\\quot\\;//crlf////tab////tab////tab//Messages: \\quot\\true\\quot\\;//crlf////tab////tab////tab//ChartType: \\quot\\\\quot\\;//crlf////tab////tab////tab//ChartWidth: \\quot\\640\\quot\\;//crlf////tab////tab////tab//ChartHeight: \\quot\\480\\quot\\;//crlf////tab////tab////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab////tab////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab////tab////tab//ChartStyle: \\quot\\display:none\\quot\\;//crlf////tab////tab////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab////tab////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab////tab////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab////tab////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab////tab////tab//Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab////tab////tab//debug: \\quot\\false\\quot\\;//crlf////tab////tab//>//crlf////tab//</conditional>//crlf////crlf////tab//<conditional expression:false>//crlf////tab//=============================================================================//crlf////tab//Opens a vertically or horizontally consolidated salex mix driver //crlf////crlf////tab//Params://crlf////tab////tab//DataType //tab//: Constant - \\quot\\sales_mix\\quot\\//crlf////tab////tab//StoreID1//tab//: Comma-delimited list of store or store group ID's//crlf////tab////tab//DateFrom//tab//: Starting date (MM-dd-yyyy)//crlf////tab////tab//DateTo//tab////tab//: Ending date (MM-dd-yyyy)//crlf////tab////tab//key//tab////tab////tab////tab//: Field ID for horizontal consolidation//crlf////tab//=============================================================================//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__action__\\quot\\=\\quot\\openConsolidatedCheckHeaders\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\getConsolidatedIdentifiers\\quot\\; commands:\\quot\\//crlf////tab////tab////tab////get the associated driver ID//crlf////tab////tab////tab//sDriverID=lookup(Aspect_BackOffice_Data_Type_Associated_DriverID\\comma\\\\quot\\__DataType__\\quot\\)//crlf////crlf////tab////tab////tab////get the associated file name//crlf////tab////tab////tab//sFilename=lookup(Aspect_BackOffice_Data_Type_Associated_Filenames\\comma\\\\quot\\__DataType__\\quot\\)//crlf////crlf////tab////tab////tab////get set of store ID's//crlf////tab////tab////tab//arStore=expandStoreID(\\quot\\__StoreID1__\\quot\\)//crlf////crlf////tab////tab////tab////get set of store names//crlf////tab////tab////tab//setStoreName=execSetCommand(arStore\\comma\\\\quot\\lookup(Aspect_BackOffice_Store_Name_By_ID\\comma\\$e$)\\quot\\\\comma\\char(0x2C))//crlf////crlf////tab////tab////tab////get set of store directories//crlf////tab////tab////tab//arStoreDir=execSetCommand(arStore\\comma\\\\quot\\lookup(Aspect_BackOffice_Store_Directory_By_ID\\comma\\$e$)\\quot\\\\comma\\char(0x2C))//crlf////crlf////tab////tab////tab////get set of dates //crlf////tab////tab////tab//setDate=getSetTime(\\quot\\__DateFrom__\\quot\\\\comma\\\\quot\\__DateTo__\\quot\\\\comma\\60*1440\\comma\\\\quot\\MM-dd-yyyy\\quot\\\\comma\\\\quot\\\\quot\\\\comma\\replaceSubstring(sFilename\\comma\\\\quot\\$date$\\quot\\\\comma\\\\quot\\$e$\\quot\\)\\comma\\char(0x2C))//crlf////crlf////tab////tab////tab////get set of file names //crlf////tab////tab////tab//arFilename=getSetFor(arStoreDir\\comma\\setDate)//crlf////crlf////tab////tab////tab////get set of driver params.  This is only necessary so that a description paramater//crlf////tab////tab////tab////can be passed to horizontal drivers.  //crlf////tab////tab////tab//setDriverParams=getSetFor(\\quot\\Filename=$e$~~pipe~~KeyExpression=__Key__~~pipe~~Description=\\quot\\\\comma\\setStoreName)//crlf////crlf////tab////tab////tab////open a set of system drivers//crlf////tab////tab////tab//arSet=getSetDriver(sDriverID\\comma\\arFilename\\comma\\WRITE\\comma\\setDriverParams)//crlf////crlf////tab////tab////tab////it's not necessary to delineate fields if they will all be included//crlf////tab////tab////tab//arFields=\\quot\\\\quot\\//crlf////crlf////tab////tab////tab//sysdrv=getSetConsolidate(\\quot\\__orientation__\\quot\\\\comma\\\\quot\\\\quot\\\\comma\\arFields\\comma\\\\quot\\true\\quot\\\\comma\\\\quot\\__key__\\quot\\\\comma\\arSet)//crlf////tab////tab////tab//driverSetDriverParams(sysdrv\\comma\\\\quot\\KeyExpression=__Key__\\quot\\)//crlf////crlf////tab////tab////tab//scriptSetResult(sysdrv)//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf////crlf//^
ID=299699|X=151|Y=32|W=1066|H=705|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=709760|AttachLeft=|AlignLeft=709760|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<h1>This Item __d__ : __w__: __i__ has been deprecated</h1>//crlf//<h1>Use a dimensional view template instead</h1>//crlf////crlf//<conditional expression:false>//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\salt\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\lowercase(getSalt(4)))>//crlf////crlf////tab//<conditional expression:(\\quot\\__action__\\quot\\=\\quot\\getConsolidatedCheckdetails\\quot\\)>//crlf////crlf////tab////tab//<conditional expression:false>//crlf////tab////tab//==============================================================//crlf////tab////tab//Filter: start time//crlf////tab////tab//==============================================================//crlf////tab////tab//</conditional>//crlf////tab////tab//<!include type:ExternalDriverFilter;//crlf////tab////tab////tab//InputType:\\quot\\select\\quot\\;//crlf////tab////tab////tab//ID:\\quot\\__salt__StartTime\\quot\\;//crlf////tab////tab////tab//Condition:\\quot\\not('$value$'=0)\\quot\\;//crlf////tab////tab////tab//Expression:\\quot\\Minute1440>=$value$\\quot\\;//crlf////tab////tab////tab//Tooltip:\\quot\\\\quot\\;//crlf////tab////tab////tab//HtmlParams:\\quot\\\\quot\\;//crlf////tab////tab////tab//CollectionID:\\quot\\Time_Start_Hour\\quot\\;//crlf////tab////tab////tab//Selected:\\quot\\0\\quot\\;//crlf////tab////tab////tab//DriverParams:\\quot\\\\quot\\;//crlf////tab////tab////tab//Filter:\\quot\\\\quot\\;//crlf////tab////tab////tab//SystemDriverName:\\quot\\\\quot\\;//crlf////tab////tab//>//crlf////crlf////tab////tab//<conditional expression:false>//crlf////tab////tab//==============================================================//crlf////tab////tab//Filter: end time//crlf////tab////tab//==============================================================//crlf////tab////tab//</conditional>//crlf////tab////tab//<!include type:ExternalDriverFilter;//crlf////tab////tab////tab//InputType:\\quot\\select\\quot\\;//crlf////tab////tab////tab//ID:\\quot\\__salt__EndTime\\quot\\;//crlf////tab////tab////tab//Condition:\\quot\\not('$value$'=0)\\quot\\;//crlf////tab////tab////tab//Expression:\\quot\\Minute1440<=$value$\\quot\\;//crlf////tab////tab////tab//Tooltip:\\quot\\\\quot\\;//crlf////tab////tab////tab//HtmlParams:\\quot\\\\quot\\;//crlf////tab////tab////tab//CollectionID:\\quot\\Time_End_Hour\\quot\\;//crlf////tab////tab////tab//Selected:\\quot\\0\\quot\\;//crlf////tab////tab////tab//DriverParams:\\quot\\\\quot\\;//crlf////tab////tab////tab//Filter:\\quot\\\\quot\\;//crlf////tab////tab////tab//SystemDriverName:\\quot\\\\quot\\;//crlf////tab////tab//>//crlf////crlf////tab////tab//<conditional expression:false>//crlf////tab////tab//==============================================================//crlf////tab////tab//Filter: time period//crlf////tab////tab//==============================================================//crlf////tab////tab//</conditional>//crlf////tab////tab//<!include type:ExternalDriverFilter;//crlf////tab////tab////tab//InputType:\\quot\\select\\quot\\;//crlf////tab////tab////tab//ID:\\quot\\__salt__TimePeriod\\quot\\;//crlf////tab////tab////tab//Condition:\\quot\\not('$value$'='all')\\quot\\;//crlf////tab////tab////tab//Expression:\\quot\\(Minute1440>=lookup(Aspect_BackOffice_Time_Periods_Start_Minute_by_ID\\comma\\$value$)) and (Minute1440<=lookup(Aspect_BackOffice_Time_Periods_End_Minute_by_ID\\comma\\$value$))\\quot\\;//crlf////tab////tab////tab//Tooltip:\\quot\\\\quot\\;//crlf////tab////tab////tab//HtmlParams:\\quot\\\\quot\\;//crlf////tab////tab////tab//CollectionID:\\quot\\Aspect_BackOffice_Time_Periods_by_ID_with_Select\\quot\\;//crlf////tab////tab////tab//Selected:\\quot\\all\\quot\\;//crlf////tab////tab////tab//DriverParams:\\quot\\\\quot\\;//crlf////tab////tab////tab//Filter:\\quot\\\\quot\\;//crlf////tab////tab////tab//SystemDriverName:\\quot\\\\quot\\;//crlf////tab////tab//>//crlf////crlf////tab////tab//<!!include type:driver;//crlf////tab////tab////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab////tab////tab//title: \\quot\\\\quot\\;//crlf////tab////tab////tab//ID: \\quot\\\\quot\\;//crlf////tab////tab////tab//HashID: \\quot\\\\quot\\;//crlf////tab////tab////tab//driver: \\quot\\POS_Generic_Consolidated_Check_Details\\quot\\;//crlf////tab////tab////tab//name: \\quot\\\\quot\\;//crlf////tab////tab////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab////tab////tab//dispose: \\quot\\false\\quot\\;//crlf////tab////tab////tab//state: \\quot\\\\quot\\;//crlf////tab////tab////tab//params: \\quot\\keyexpression=<!include type:expression; expression:if(\\quot\\__orientation__\\quot\\=\\quot\\vertical\\quot\\\\comma\\\\quot\\ID\\quot\\\\comma\\\\quot\\__key__\\quot\\)>~~pipe~~CacheTtl=0~~pipe~~DocumentID=VWaUGu88BMN0hDYWzZj57VpG~~pipe~~Widget=Sales Drivers~~pipe~~ContainerItemID=299699~~pipe~~StoreID1=__StoreID__~~pipe~~DataType=check_details~~pipe~~DateFrom=__DateFrom__~~pipe~~DateTo=__DateTo__~~pipe~~Orientation=__Orientation__~~pipe~~Action=openConsolidatedCheckDetails~~pipe~~Key=__Key__~~pipe~~Metadata=POS_Generic_Consolidated_Check_Details___Orientation__\\quot\\;//crlf////tab////tab////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab////tab////tab//display: \\quot\\\\quot\\;//crlf////tab////tab////tab//fields: \\quot\\\\quot\\;//crlf////tab////tab////tab//IncludeFields: \\quot\\\\quot\\;//crlf////tab////tab////tab//ExcludeFields: \\quot\\\\quot\\;//crlf////tab////tab////tab//sort: \\quot\\ID\\quot\\;//crlf////tab////tab////tab//filter: \\quot\\true\\quot\\;//crlf////tab////tab////tab//BaseFilter: \\quot\\\\quot\\;//crlf////tab////tab////tab//class: \\quot\\basic1\\quot\\;//crlf////tab////tab////tab//maxrecords: \\quot\\250\\quot\\;//crlf////tab////tab////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab////tab////tab//style: \\quot\\width:auto\\quot\\;//crlf////tab////tab////tab//canSelect: \\quot\\false\\quot\\;//crlf////tab////tab////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab////tab////tab//canEdit: \\quot\\false\\quot\\;//crlf////tab////tab////tab//canAdd: \\quot\\false\\quot\\;//crlf////tab////tab////tab//canDelete: \\quot\\false\\quot\\;//crlf////tab////tab////tab//EmbedValues: \\quot\\\\quot\\;//crlf////tab////tab////tab//EditDialogID: \\quot\\\\quot\\;//crlf////tab////tab////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab////tab////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab////tab////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab////tab////tab//ExternalFilters: \\quot\\__salt__StartTime\\comma\\__salt__EndTime\\comma\\__salt__TimePeriod\\quot\\;//crlf////tab////tab////tab//TableControls: \\quot\\true\\quot\\;//crlf////tab////tab////tab//TableHeader: \\quot\\true\\quot\\;//crlf////tab////tab////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab////tab////tab//SelectDisplay: \\quot\\true\\quot\\;//crlf////tab////tab////tab//EditDisplay: \\quot\\true\\quot\\;//crlf////tab////tab////tab//Menu: \\quot\\\\quot\\;//crlf////tab////tab////tab//Messages: \\quot\\true\\quot\\;//crlf////tab////tab////tab//ChartType: \\quot\\\\quot\\;//crlf////tab////tab////tab//ChartWidth: \\quot\\640\\quot\\;//crlf////tab////tab////tab//ChartHeight: \\quot\\480\\quot\\;//crlf////tab////tab////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab////tab////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab////tab////tab//ChartStyle: \\quot\\display:none\\quot\\;//crlf////tab////tab////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab////tab////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab////tab////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab////tab////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab////tab////tab//Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab////tab////tab//debug: \\quot\\false\\quot\\;//crlf////tab////tab//>//crlf////tab//</conditional>//crlf////crlf////tab//<conditional expression:false>//crlf////tab//=============================================================================//crlf////tab//Opens a vertically or horizontally consolidated check details driver //crlf////crlf////tab//Params://crlf////tab////tab//DataType //tab//: Constant - \\quot\\sales_mix\\quot\\//crlf////tab////tab//StoreID1//tab//: Comma-delimited list of store or store group ID's//crlf////tab////tab//DateFrom//tab//: Starting date (MM-dd-yyyy)//crlf////tab////tab//DateTo//tab////tab//: Ending date (MM-dd-yyyy)//crlf////tab////tab//key//tab////tab////tab////tab//: Field ID for horizontal consolidation//crlf////tab//=============================================================================//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__action__\\quot\\=\\quot\\openConsolidatedCheckDetails\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\getConsolidatedIdentifiers\\quot\\; commands:\\quot\\//crlf////tab////tab////tab////get the associated driver ID//crlf////tab////tab////tab//sDriverID=lookup(Aspect_BackOffice_Data_Type_Associated_DriverID\\comma\\\\quot\\__DataType__\\quot\\)//crlf////crlf////tab////tab////tab////get the associated file name//crlf////tab////tab////tab//sFilename=lookup(Aspect_BackOffice_Data_Type_Associated_Filenames\\comma\\\\quot\\__DataType__\\quot\\)//crlf////crlf////tab////tab////tab////get set of store ID's//crlf////tab////tab////tab//arStore=expandStoreID(\\quot\\__StoreID1__\\quot\\)//crlf////crlf////tab////tab////tab////get set of store names//crlf////tab////tab////tab//setStoreName=execSetCommand(arStore\\comma\\\\quot\\lookup(Aspect_BackOffice_Store_Name_By_ID\\comma\\$e$)\\quot\\\\comma\\char(0x2C))//crlf////crlf////tab////tab////tab////get set of store directories//crlf////tab////tab////tab//arStoreDir=execSetCommand(arStore\\comma\\\\quot\\lookup(Aspect_BackOffice_Store_Directory_By_ID\\comma\\$e$)\\quot\\\\comma\\char(0x2C))//crlf////crlf////tab////tab////tab////get set of dates //crlf////tab////tab////tab//setDate=getSetTime(\\quot\\__DateFrom__\\quot\\\\comma\\\\quot\\__DateTo__\\quot\\\\comma\\60*1440\\comma\\\\quot\\MM-dd-yyyy\\quot\\\\comma\\\\quot\\\\quot\\\\comma\\replaceSubstring(sFilename\\comma\\\\quot\\$date$\\quot\\\\comma\\\\quot\\$e$\\quot\\)\\comma\\char(0x2C))//crlf////crlf////tab////tab////tab////get set of file names //crlf////tab////tab////tab//arFilename=getSetFor(arStoreDir\\comma\\setDate)//crlf////crlf////tab////tab////tab////get set of driver params.  This is only necessary so that a description paramater//crlf////tab////tab////tab////can be passed to horizontal drivers.  //crlf////tab////tab////tab//setDriverParams=getSetFor(\\quot\\Filename=$e$~~pipe~~KeyExpression=__Key__~~pipe~~Description=\\quot\\\\comma\\setStoreName)//crlf////crlf////tab////tab////tab////open a set of system drivers//crlf////tab////tab////tab//arSet=getSetDriver(sDriverID\\comma\\arFilename\\comma\\WRITE\\comma\\setDriverParams)//crlf////crlf////tab////tab////tab////it's not necessary to delineate fields if they will all be included//crlf////tab////tab////tab//arFields=\\quot\\\\quot\\//crlf////crlf////tab////tab////tab//sysdrv=getSetConsolidate(\\quot\\__orientation__\\quot\\\\comma\\\\quot\\\\quot\\\\comma\\arFields\\comma\\\\quot\\true\\quot\\\\comma\\\\quot\\__key__\\quot\\\\comma\\arSet)//crlf////tab////tab////tab//driverSetDriverParams(sysdrv\\comma\\\\quot\\KeyExpression=__Key__\\quot\\)//crlf////crlf////tab////tab////tab//scriptSetResult(sysdrv)//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf////crlf//^
ID=499280|X=151|Y=32|W=1066|H=705|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=709760|AttachLeft=|AlignLeft=709760|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<h1>This Item __d__ : __w__: __i__ has been deprecated</h1>//crlf//<h1>Use a dimensional view template instead</h1>//crlf////crlf//<conditional expression:false>//crlf////tab//<conditional expression:false>//crlf////tab//==================================================================================//tab////crlf////tab//Description://crlf////crlf////tab//This item open a table of check details either for a single store or a group of stores.//crlf////tab//This item is called from the dimensional view named \\quot\\Check Details\\quot\\.  //crlf////crlf////tab//The StoreID selected in the view uses the Aspect_BackOffice_Stores_And_Groups//crlf////tab//collection.  The StoreID passed to this item is either \\quot\\Store\\comma\\XXXXX\\quot\\ or \\quot\\Group\\comma\\XXX\\comma\\XXX\\comma\\...\\quot\\.  //crlf////tab//The prefix (store or group) is used so that a group consisting of a single store can //crlf////tab//be differentiated from a single store//crlf////crlf////tab//If a group of stores is selected\\comma\\ the table is displayed using a dimensional driver.//crlf////tab//The parameters to be passed to the dimensional driver are passed to this item//crlf////tab//by the UI in DimDriverParams.  The format of this argument is //crlf////crlf////tab////tab//ViewID=LDIQnvEU//power//Arg1=Value1//power//Arg2=Value2//power//Argn=Valuen//crlf////crlf////tab//If a single store is selected\\comma\\ the table is displayed using a driver include in this//crlf////tab//item.//crlf////crlf////tab//The following constants are initialized below://crlf////crlf////tab////tab//Salt - Used for table ID to prevent conflicts if more than one table is opened//crlf////tab////tab////tab//in a browser window.//crlf////crlf////tab////tab//IsSingleStore - True if a store was selected in the UI parameter or false if a //crlf////tab////tab////tab//store group was selected.  //crlf////crlf////tab////tab//IsSingleDate - True if a single day is selected.  Records can only be added if //crlf////tab////tab////tab//a single day is selected//crlf////crlf////tab////tab//SingleStoreID - The ID of the first store in the StoreID//crlf////tab//==================================================================================//tab////crlf////tab//</conditional>//crlf////crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\salt\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\lowercase(getSalt(4)))>//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\IssingleStore\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\startsWith(\\quot\\__StoreID__\\quot\\\\comma\\\\quot\\Store\\quot\\))>//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\IssingleDate\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\(\\quot\\__From__\\quot\\=\\quot\\__To__\\quot\\))>//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\SingleStoreID\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\getElement(\\quot\\__StoreID__\\quot\\\\comma\\1))>//crlf////crlf////tab//<conditional expression:false>//crlf////tab//==================================================================================//tab////crlf////tab//Table of debugging information//crlf////tab//==================================================================================//tab////crlf////tab//</conditional>//crlf////tab//<conditional expression:(false) and (getToken(\\quot\\execmode\\quot\\)=\\quot\\development\\quot\\)>//crlf////tab////tab//<h1>Debugging</h1>//crlf////tab////tab//<table class='bordered' style=\\quot\\max-width:800px\\quot\\>//crlf////tab////tab////tab//<tr><td>DimensionalViewID</td><td>__DimensionalViewID__</td></tr>//crlf////tab////tab////tab//<tr><td>StoreID</td><td>__StoreID__</td></tr>//crlf////tab////tab////tab//<tr><td>IsSingleStore</td><td>__IsSingleStore__</td></tr>//crlf////tab////tab////tab//<tr><td>IssingleDate</td><td>__IssingleDate__</td></tr>//crlf////tab////tab////tab//<tr><td>SingleStoreID</td><td>__SingleStoreID__</td></tr>//crlf////tab////tab////tab//<tr><td>DimDriverParams</td><td>__DimDriverParams__</td></tr>//crlf////tab////tab////tab//<tr><td>PageArgs</td><td>{@breakHtmlLine(\\quot\\__PageArgs__\\quot\\)}</td></tr>//crlf////tab////tab//</table>//crlf////tab//</conditional>//crlf////crlf////tab//<conditional expression:false>//crlf////tab//==================================================================================//tab////crlf////tab//A store group was selected\\comma\\ so open a dimensional driver//crlf////tab//==================================================================================//tab////crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__IsSingleStore__\\quot\\=\\quot\\false\\quot\\) or (\\quot\\__IsSingleDate__\\quot\\=\\quot\\false\\quot\\)>//crlf////tab////tab//< include type:view; viewid:\\quot\\tYktWG93\\quot\\; Source:\\quot\\\\quot\\; params:\\quot\\DimDriverParams=__DimDriverParams__\\quot\\;> //crlf////crlf////tab////tab//<conditional expression:false>//crlf////tab////tab//<!include type:widget; //crlf////tab////tab////tab//server:{AspectHashID}; //crlf////tab////tab////tab//secure:true; //tab////crlf////tab////tab////tab//documentID:\\quot\\K4Ui6j3Y1rwlvukPkOqn25Em\\quot\\; //crlf////tab////tab////tab//widget:\\quot\\Dimensional Views\\quot\\; //crlf////tab////tab////tab//containerItemID:\\quot\\379605\\quot\\; //crlf////tab////tab////tab//params:\\quot\\DimensionalViewID=__DimensionalViewID__//crlf////tab////tab////tab////tab////amp//_DimDriverParams=StoreID=__StoreID__//crlf////tab////tab////tab////tab////amp//DimDriverParams=__DimDriverParams__//crlf////tab////tab////tab////tab////amp//EditDialogID=//crlf////tab////tab////tab////tab////amp//canEdit=false//crlf////tab////tab////tab////tab////amp//canAdd=false//crlf////tab////tab////tab////tab////amp//canDelete=false\\quot\\;//crlf////tab////tab//>//crlf////tab////tab//</conditional>//crlf////tab//</conditional>//crlf////crlf////tab//<conditional expression:false>//crlf////tab//==================================================================================//tab////crlf////tab//A single store was selected\\comma\\ so open a table for the single driver//crlf////tab//==================================================================================//tab////crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__IsSingleStore__\\quot\\=\\quot\\true\\quot\\) and (\\quot\\__IsSingleDate__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:driver;//crlf////tab////tab////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab////tab////tab//title: \\quot\\\\quot\\;//crlf////tab////tab////tab//ID: \\quot\\\\quot\\;//crlf////tab////tab////tab//HashID: \\quot\\\\quot\\;//crlf////tab////tab////tab//driver: \\quot\\POS_GENERIC_CHECK_DETAIL_DTA\\quot\\;//crlf////tab////tab////tab//name: \\quot\\\\quot\\;//crlf////tab////tab////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab////tab////tab//dispose: \\quot\\false\\quot\\;//crlf////tab////tab////tab//state: \\quot\\\\quot\\;//crlf////tab////tab////tab//params: \\quot\\StoreID=__SingleStoreID__~~pipe~~Date=__From__~~pipe~~keyexpression=ID~~pipe~~CacheTtl=0~~pipe~~Metadata=POS_GENERIC_CHECK_DETAIL_DTA\\quot\\;//crlf////tab////tab////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab////tab////tab//display: \\quot\\\\quot\\;//crlf////tab////tab////tab//fields: \\quot\\\\quot\\;//crlf////tab////tab////tab//IncludeFields: \\quot\\\\quot\\;//crlf////tab////tab////tab//ExcludeFields: \\quot\\\\quot\\;//crlf////tab////tab////tab//sort: \\quot\\ID\\quot\\;//crlf////tab////tab////tab//filter: \\quot\\true\\quot\\;//crlf////tab////tab////tab//BaseFilter: \\quot\\\\quot\\;//crlf////tab////tab////tab//class: \\quot\\basic1\\quot\\;//crlf////tab////tab////tab//maxrecords: \\quot\\250\\quot\\;//crlf////tab////tab////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab////tab////tab//style: \\quot\\width:auto\\quot\\;//crlf////tab////tab////tab//_style: \\quot\\float:left;width:100\\percent\\\\quot\\;//crlf////tab////tab////tab//height:\\quot\\auto\\quot\\;//crlf////tab////tab////tab//_maxheight:\\quot\\300px\\quot\\;//crlf////tab////tab////tab//canSelect: \\quot\\false\\quot\\;//crlf////tab////tab////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab////tab////tab//canEdit: \\quot\\false\\quot\\;//crlf////tab////tab////tab//canAdd: \\quot\\false\\quot\\;//crlf////tab////tab////tab//canDelete: \\quot\\false\\quot\\;//crlf////tab////tab////tab//inspectMenu: \\quot\\\\quot\\;//crlf////tab////tab////tab//EmbedValues: \\quot\\\\quot\\;//crlf////tab////tab////tab//EditDialogID: \\quot\\POS_GENERIC_CHECK_DETAIL_DTADialog\\quot\\;//crlf////tab////tab////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab////tab////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab////tab////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab////tab////tab//ExternalFilters: \\quot\\\\quot\\;//crlf////tab////tab////tab//TableControls: \\quot\\true\\quot\\;//crlf////tab////tab////tab//TableHeader: \\quot\\true\\quot\\;//crlf////tab////tab////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab////tab////tab//SelectDisplay: \\quot\\true\\quot\\;//crlf////tab////tab////tab//EditDisplay: \\quot\\true\\quot\\;//crlf////tab////tab////tab//Menu: \\quot\\\\quot\\;//crlf////tab////tab////tab//Messages: \\quot\\true\\quot\\;//crlf////tab////tab////tab//ChartType: \\quot\\\\quot\\;//crlf////tab////tab////tab//ChartWidth: \\quot\\640\\quot\\;//crlf////tab////tab////tab//ChartHeight: \\quot\\480\\quot\\;//crlf////tab////tab////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab////tab////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab////tab////tab//ChartStyle: \\quot\\display:none\\quot\\;//crlf////tab////tab////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab////tab////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab////tab////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab////tab////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab////tab////tab//_Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab////tab////tab//debug: \\quot\\false\\quot\\;//crlf////tab////tab//>//crlf////tab//</conditional>//crlf////crlf////tab//<div style=\\quot\\width:100px;height:500px\\quot\\></div>//crlf////crlf////tab//__servertimerresults__//crlf//</conditional>^
ID=66964|X=151|Y=32|W=1066|H=705|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=709760|AttachLeft=|AlignLeft=709760|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=[!------------------------------------------------------------------------//crlf//This driver is used to inspect a check detail for a single store and date.//crlf//For example\\comma\\ it is used to inspect employee sales in the labor detail driver.//crlf////crlf//Parameters://crlf////tab//StoreID - ID of store//crlf////tab//Date - Date in MM-dd-yyyy format//crlf////tab//RecordType - Optional.  Comma delimited list of record type numbers.//crlf////crlf////tab//---------------------------------------------------------------------//crlf////tab//These parameters are used to select displays and to enable selection of displays and //crlf////tab//custom displays//crlf////tab//---------------------------------------------------------------------//crlf////tab//Display - Name of display to select//crlf////tab//Metadata - Optional.  If defined\\comma\\ it will be appended to the display metadata.//crlf////tab////tab//Use this to create a new set of display options.  For example\\comma\\ displays used to //crlf////tab////tab//inspect checks for an employee should not be mixed in with displays used to inspect//crlf////tab////tab//comps.//crlf////tab//SelectDisplay - If false\\comma\\ the select display drop-down will be hidden.  Default is true.//crlf////tab//EditDisplay - If false\\comma\\ the customize option is removed from the menu.  Default is true.//crlf////tab//Timestamp - If false\\comma\\ the timestamp will not be displayed at the top of the table.  Default is true.//crlf////tab////crlf////tab//---------------------------------------------------------------------//crlf////tab//These parameters are used when inspecting a labor detail report//crlf////tab//---------------------------------------------------------------------//crlf////tab//EmployeePOSID - Optional.  POS Number of employee//crlf////tab//TimeFrom - Optional.  Time in HH:mm format//crlf////tab//TimeTo - Optional.  Time in HH:mm format//crlf////tab//InspectLabor - Optionsl.  Used to create a separate display metadata and to //crlf////tab////tab//disable selecting/editing of the display.//crlf////crlf////tab//---------------------------------------------------------------------//crlf////tab//These parameters are used when inspecting the daily sales driver//crlf////tab//---------------------------------------------------------------------//crlf////tab//POSID - POS ID of the given record type.  E.g. the comp ID when RecordType is set to comps//crlf////tab//CategoryID - POS ID of a menu category//crlf//--------------------------------------------------------------------------]//crlf//<state>//crlf////tab//__StoreID__//crlf////tab//__Date__//crlf////tab//__RecordType__//crlf////crlf////tab//__Display__//crlf////tab//__Metadata__//crlf////tab//__SelectDisplay__//crlf////tab//__EditDisplay__//crlf////tab//__Timestamp__//crlf////crlf////tab//__EmployeePOSID__//crlf////tab//__TimeFrom__//crlf////tab//__TimeTo__//crlf////tab//__InspectLabor__//crlf////crlf////tab//__POSID__//crlf////tab//__CategoryID__//crlf////crlf////tab//{@gfs(getStoreDir(\\quot\\__StoreID__\\quot\\)+\\quot\\ckd.__Date__.bin\\quot\\)}//crlf////tab//{@if(formatDate(now()\\comma\\\\quot\\MMddyyyy\\quot\\)=\\quot\\11062018\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf////tab//1.01//crlf//</state>//crlf////crlf//<conditional expression:not(defined(\\quot\\__StoreID__\\quot\\))>//crlf////tab//Error: Missing StoreID<br>//crlf//</conditional>//crlf////crlf//<conditional expression:not(defined(\\quot\\__Date__\\quot\\))>//crlf////tab//Error: Missing Date<br>//crlf//</conditional>//crlf////crlf//<include type:expression; expression:htmlConstant(\\quot\\salt\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\lowercase(getSalt(4)))>//crlf////crlf//[!------------------------------------------------------------------------//crlf//Debugging//crlf//< _include type:expression; expression:htmlConstant(\\quot\\StoreID\\quot\\\\comma\\\\quot\\__StoreID__\\quot\\\\comma\\\\quot\\55TVk637szZ3M900W3WfEWyr\\quot\\)>//crlf//< _include type:expression; expression:htmlConstant(\\quot\\Date\\quot\\\\comma\\\\quot\\__Date__\\quot\\\\comma\\\\quot\\12-31-2017\\quot\\)>//crlf//< _include type:expression; expression:htmlConstant(\\quot\\TimeFrom\\quot\\\\comma\\\\quot\\__TimeFrom__\\quot\\\\comma\\\\quot\\11:00\\quot\\)>//crlf//< _include type:expression; expression:htmlConstant(\\quot\\TimeTo\\quot\\\\comma\\\\quot\\__TimeTo__\\quot\\\\comma\\\\quot\\13:00\\quot\\)>//crlf//--------------------------------------------------------------------------]//crlf////crlf//<conditional expression:(defined(\\quot\\__StoreID__\\quot\\)) and (defined(\\quot\\__Date__\\quot\\))>//crlf////tab//[!------------------------------------------------------------------------//crlf////tab//Set constants for datenumbers used to compare time against from/to times//crlf////tab//--------------------------------------------------------------------------]//crlf////tab//<!include type:script; commands:\\quot\\//crlf////tab////tab//sTime=if(defined(\\quot\\__TimeFrom__\\quot\\)\\comma\\\\quot\\__TimeFrom__\\quot\\\\comma\\\\quot\\00:00\\quot\\)//crlf////tab////tab//longFrom=dateNumber(parseTime(\\quot\\__Date__ \\quot\\+sTime\\comma\\\\quot\\MM-dd-yyyy HH:mm\\quot\\))//crlf////tab////tab//sTime=if(defined(\\quot\\__TimeTo__\\quot\\)\\comma\\\\quot\\__TimeTo__\\quot\\\\comma\\\\quot\\23:59\\quot\\)//crlf////tab////tab//longTo=dateNumber(parseTime(\\quot\\__Date__ \\quot\\+sTime\\comma\\\\quot\\MM-dd-yyyy HH:mm\\quot\\))//crlf////tab////tab//if(longTo<longFrom) //crlf////tab////tab////tab//longTo=longTo+1440*60*1000//crlf////tab////tab//endif//crlf////tab////tab//s=htmlConstant(\\quot\\FromDateNumber\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\longFrom)//crlf////tab////tab//s=s+htmlConstant(\\quot\\ToDateNumber\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\longTo)//crlf////tab////tab//scriptSetResult(s)//crlf////tab//\\quot\\>//crlf////crlf////tab//<!include type:expression; expression:htmlConstant(\\quot\\Display\\quot\\\\comma\\\\quot\\\\quot\\\\comma\\\\quot\\Inspect For Labor\\quot\\)>//crlf////tab//<!include type:expression; expression:htmlConstant(\\quot\\SelectDisplay\\quot\\\\comma\\\\quot\\__SelectDisplay__\\quot\\\\comma\\\\quot\\true\\quot\\)>//crlf////tab//<!include type:expression; expression:htmlConstant(\\quot\\EditDisplay\\quot\\\\comma\\\\quot\\__EditDisplay__\\quot\\\\comma\\\\quot\\true\\quot\\)>//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\TableControls\\quot\\\\comma\\\\quot\\__TableControls__\\quot\\\\comma\\true)>//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\TableStyle\\quot\\\\comma\\\\quot\\__TableStyle__\\quot\\\\comma\\\\quot\\width:auto\\quot\\)>//crlf////crlf////tab//<!include type:expression; expression:htmlConstant(\\quot\\Timestamp\\quot\\\\comma\\\\quot\\__Timestamp__\\quot\\\\comma\\\\quot\\true\\quot\\)>//crlf////tab//<!include type:expression; expression:htmlConstant(\\quot\\DisplayMetadata\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\\\quot\\POS_GENERIC_CHECK_DETAIL_DTA\\quot\\+if(defined(\\quot\\__metadata__\\quot\\)\\comma\\\\quot\\_\\quot\\+\\quot\\__Metadata__\\quot\\\\comma\\\\quot\\\\quot\\))>//crlf////crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\ChartVisible\\quot\\\\comma\\\\quot\\__ChartVisible__\\quot\\\\comma\\false)>//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\ChartCanClose\\quot\\\\comma\\\\quot\\__ChartCanClose__\\quot\\\\comma\\\\quot\\false\\quot\\)>//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\ChartWidth\\quot\\\\comma\\\\quot\\__ChartWidth__\\quot\\\\comma\\\\quot\\640px\\quot\\)>//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\ChartHeight\\quot\\\\comma\\\\quot\\__ChartHeight__\\quot\\\\comma\\\\quot\\480px\\quot\\)>//crlf////crlf////tab//<div ID=\\quot\\__salt__Chart\\quot\\ style=\\quot\\display:none;width:__ChartWidth__;height:__ChartHeight__\\quot\\></div>//crlf////tab//<div style=\\quot\\clear:both\\quot\\></div>//crlf////crlf////tab//<conditional expression:(__TableControls__)>//crlf////tab////tab//[!------------------------------------------------------------------------//crlf////tab////tab//Filter: Record type//crlf////tab////tab//--------------------------------------------------------------------------]//crlf////tab////tab//<!include type:ExternalDriverFilter;//crlf////tab////tab////tab//InputType:\\quot\\select\\quot\\;//crlf////tab////tab////tab//ID:\\quot\\__salt__FilterRecordType\\quot\\;//crlf////tab////tab////tab//Condition:\\quot\\not('$value$'='all')\\quot\\;//crlf////tab////tab////tab//Expression:\\quot\\RecType='$value$'\\quot\\;//crlf////tab////tab////tab//Tooltip:\\quot\\\\quot\\;//crlf////tab////tab////tab//HtmlParams:\\quot\\\\quot\\;//crlf////tab////tab////tab//CollectionID:\\quot\\POS_Generic_Check_Detail_Record_Types_for_Check_Detail_Filter\\quot\\;//crlf////tab////tab////tab//Datalist:\\quot\\\\quot\\;//crlf////tab////tab////tab//Selected:\\quot\\\\quot\\;//crlf////tab////tab////tab//DriverParams:\\quot\\\\quot\\;//crlf////tab////tab////tab//Filter:\\quot\\\\quot\\;//crlf////tab////tab////tab//SystemDriverName:\\quot\\\\quot\\;//crlf////tab////tab//>//crlf////crlf////tab////tab//[!------------------------------------------------------------------------//crlf////tab////tab//Filter - Contains Text//crlf////tab//--------------------------------------------------------------------------]//crlf////tab////tab//<!include type:ExternalDriverFilter;//crlf////tab////tab////tab//InputType:\\quot\\text\\quot\\;//crlf////tab////tab////tab//ID:\\quot\\__salt__FilterContainsText\\quot\\;//crlf////tab////tab////tab//Condition:\\quot\\not(len(trim('$value$'))=0)\\quot\\;//crlf////tab////tab////tab//Expression:\\quot\\gte(pos('$value$'\\comma\\ Record_Type_Description+Id1+Amount+Category_ID+MenuItemID+CategoryName+CheckNumber+Comp_Name+Department_ID+Department_Name+Discount_Name+Employee_Close_Name+Employee_Close_POS_ID+Employee_Name+Employee_Open_Name+Employee_Open_POS_ID+Employee+Lookup_Tender_Type+Menu_Item_Name+Quantity+Store_Name+Tax_Name+Tax+Tender_Name+Tender)\\comma\\0\\comma\\n)\\quot\\;//crlf////tab////tab////tab//Tooltip:\\quot\\\\quot\\;//crlf////tab////tab////tab//HtmlParams:\\quot\\placeholder='Contains text'\\quot\\;//crlf////tab////tab////tab//CollectionID:\\quot\\\\quot\\;//crlf////tab////tab////tab//Datalist:\\quot\\\\quot\\;//crlf////tab////tab////tab//Selected:\\quot\\\\quot\\;//crlf////tab////tab////tab//DriverParams:\\quot\\\\quot\\;//crlf////tab////tab////tab//Filter:\\quot\\\\quot\\;//crlf////tab////tab////tab//SystemDriverName:\\quot\\\\quot\\;//crlf////tab////tab//>//crlf////crlf////tab////tab//[!------------------------------------------------------------------------//crlf////tab////tab//Filter: Amount//crlf////tab////tab//--------------------------------------------------------------------------]//crlf////tab////tab//<!include type:ExternalDriverFilter;//crlf////tab////tab////tab//InputType:\\quot\\text\\quot\\;//crlf////tab////tab////tab//ID:\\quot\\__salt__FilterAmount\\quot\\;//crlf////tab////tab////tab//Condition:\\quot\\not(len(trim('$value$'))=0)\\quot\\;//crlf////tab////tab////tab//Expression:\\quot\\Amount=$value$\\quot\\;//crlf////tab////tab////tab//Tooltip:\\quot\\\\quot\\;//crlf////tab////tab////tab//HtmlParams:\\quot\\placeholder='Amount'\\quot\\;//crlf////tab////tab////tab//CollectionID:\\quot\\\\quot\\;//crlf////tab////tab////tab//Datalist:\\quot\\\\quot\\;//crlf////tab////tab////tab//Selected:\\quot\\\\quot\\;//crlf////tab////tab////tab//DriverParams:\\quot\\\\quot\\;//crlf////tab////tab////tab//Filter:\\quot\\\\quot\\;//crlf////tab////tab////tab//SystemDriverName:\\quot\\\\quot\\;//crlf////tab////tab//>//crlf////crlf////tab////tab//[!------------------------------------------------------------------------//crlf////tab////tab//Filter: DiskIndex//crlf////tab////tab//--------------------------------------------------------------------------]//crlf////tab////tab//<!include type:ExternalDriverFilter;//crlf////tab////tab////tab//InputType:\\quot\\text\\quot\\;//crlf////tab////tab////tab//ID:\\quot\\__salt__FilterDiskIndex\\quot\\;//crlf////tab////tab////tab//Condition:\\quot\\not(len(trim('$value$'))=0)\\quot\\;//crlf////tab////tab////tab//Expression:\\quot\\DiskIndex=$value$\\quot\\;//crlf////tab////tab////tab//Tooltip:\\quot\\\\quot\\;//crlf////tab////tab////tab//HtmlParams:\\quot\\placeholder='Record'\\quot\\;//crlf////tab////tab////tab//CollectionID:\\quot\\\\quot\\;//crlf////tab////tab////tab//Datalist:\\quot\\\\quot\\;//crlf////tab////tab////tab//Selected:\\quot\\\\quot\\;//crlf////tab////tab////tab//DriverParams:\\quot\\\\quot\\;//crlf////tab////tab////tab//Filter:\\quot\\\\quot\\;//crlf////tab////tab////tab//SystemDriverName:\\quot\\\\quot\\;//crlf////tab////tab//>//crlf////tab//</conditional>//crlf////crlf////tab//<!!include type:driver;//crlf////tab////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab////tab//title: \\quot\\\\quot\\;//crlf////tab////tab//ID: \\quot\\__salt__\\quot\\;//crlf////tab////tab//HashID: \\quot\\\\quot\\;//crlf////tab////tab//driver: \\quot\\POS_Generic_Check_Detail_With_Addendum\\quot\\;//crlf////tab////tab//name: \\quot\\\\quot\\;//crlf////tab////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab////tab//dispose: \\quot\\false\\quot\\;//crlf////tab////tab//state: \\quot\\\\quot\\;//crlf////tab////tab//params: \\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__~~pipe~~keyexpression=ID~~pipe~~CacheTtl=0~~pipe~~Metadata=__DisplayMetaData__\\quot\\;//crlf////tab////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab////tab//display: \\quot\\__display__\\quot\\;//crlf////tab////tab//fields: \\quot\\\\quot\\;//crlf////tab////tab//IncludeFields: \\quot\\\\quot\\;//crlf////tab////tab//ExcludeFields: \\quot\\\\quot\\;//crlf////tab////tab//sort: \\quot\\ID\\quot\\;//crlf////tab////tab//filter: \\quot\\true\\quot\\;//crlf////tab////tab//BaseFilter: \\quot\\//crlf////tab////tab////tab//(true)//crlf////tab////tab////tab//<conditional expression:defined(\\quot\\__EmployeePOSID__\\quot\\)>//crlf////tab////tab////tab////tab//and (Employee_Close_POS_ID='__EmployeePOSID__')//crlf////tab////tab////tab//</conditional>//crlf////tab////tab////tab//<conditional expression:(defined(\\quot\\__TimeFrom__\\quot\\)) and (defined(\\quot\\__TimeTo__\\quot\\))>//crlf////tab////tab////tab////tab//and (//crlf////tab////tab////tab////tab//((gte(dateNumber(Check_Time_Open)\\comma\\__FromDateNumber__\\comma\\'N')) and (lte(dateNumber(Check_Time_Open)\\comma\\__ToDateNumber__\\comma\\'N')))//crlf////tab////tab////tab////tab//or//crlf////tab////tab////tab////tab//((gte(dateNumber(Check_Time_Close)\\comma\\__FromDateNumber__\\comma\\'N')) and (lte(dateNumber(Check_Time_Close)\\comma\\__ToDateNumber__\\comma\\'N')))//crlf////tab////tab////tab////tab//)//crlf////tab////tab////tab//</conditional>//crlf////tab////tab////tab//<conditional expression:defined(\\quot\\__TimeTo__\\quot\\)>//crlf////tab////tab////tab////tab//and (lte(dateNumber(Check_Time_Close)\\comma\\__ToDateNumber__\\comma\\'N'))//crlf////tab////tab////tab//</conditional>//crlf////tab////tab////tab//<conditional expression:defined(\\quot\\__RecordType__\\quot\\)>//crlf////tab////tab////tab////tab//and (isSubSet(RecType\\comma\\'__RecordType__'))//crlf////tab////tab////tab//</conditional>//crlf////tab////tab////tab//<conditional expression:defined(\\quot\\__POSID__\\quot\\)>//crlf////tab////tab////tab////tab//and (ID1='__POSID__')//crlf////tab////tab////tab//</conditional>//crlf////tab////tab////tab//<conditional expression:defined(\\quot\\__CategoryID__\\quot\\)>//crlf////tab////tab////tab////tab//and (Category_ID='__CategoryID__')//crlf////tab////tab////tab//</conditional>//crlf////tab////tab//\\quot\\;//crlf////tab////tab//class: \\quot\\basic1\\quot\\;//crlf////tab////tab//maxrecords: \\quot\\250\\quot\\;//crlf////tab////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab////tab//style: \\quot\\__TableStyle__\\quot\\;//crlf////tab////tab//_style: \\quot\\float:left;width:100\\percent\\\\quot\\;//crlf////tab////tab//height:\\quot\\auto\\quot\\;//crlf////tab////tab//_maxheight:\\quot\\300px\\quot\\;//crlf////tab////tab//canSelect: \\quot\\false\\quot\\;//crlf////tab////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab////tab//canEdit: \\quot\\false\\quot\\;//crlf////tab////tab//canAdd: \\quot\\false\\quot\\;//crlf////tab////tab//canDelete: \\quot\\false\\quot\\;//crlf////tab////tab//inspectMenu: \\quot\\\\quot\\;//crlf////tab////tab//EmbedValues: \\quot\\\\quot\\;//crlf////tab////tab//EditDialogID: \\quot\\POS_GENERIC_CHECK_DETAIL_DTADialog\\quot\\;//crlf////tab////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab////tab//ExternalFilters: \\quot\\__salt__FilterRecordType\\comma\\__salt__FilterContainsText\\comma\\__salt__FilterAmount\\comma\\__salt__FilterDiskIndex\\quot\\;//crlf////tab////tab//TableControls: \\quot\\__TableControls__\\quot\\;//crlf////tab////tab//TableHeader: \\quot\\true\\quot\\;//crlf////tab////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab////tab//RecordCount: \\quot\\true\\quot\\;//crlf////tab////tab//Timestamp: \\quot\\__Timestamp__\\quot\\;//crlf////tab////tab//SelectDisplay: \\quot\\__SelectDisplay__\\quot\\;//crlf////tab////tab//EditDisplay: \\quot\\__EditDisplay__\\quot\\;//crlf////tab////tab//Menu: \\quot\\\\quot\\;//crlf////tab////tab//Messages: \\quot\\true\\quot\\;//crlf////tab////tab//ChartType: \\quot\\\\quot\\;//crlf////tab////tab//ChartVisible: \\quot\\__ChartVisible__\\quot\\;//crlf////tab////tab//ChartCanClose: \\quot\\__ChartCanClose__\\quot\\;//crlf////tab////tab//ChartWidth: \\quot\\\\quot\\;//crlf////tab////tab//ChartHeight: \\quot\\\\quot\\;//crlf////tab////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab////tab//ChartStyle: \\quot\\\\quot\\;//crlf////tab////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab////tab//_Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab////tab//debug: \\quot\\true\\quot\\;//crlf////tab//>//crlf//</conditional>//crlf////crlf//^
ID=774907|X=151|Y=32|W=1066|H=705|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=709760|AttachLeft=|AlignLeft=709760|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=[!------------------------------------------------------------------------//crlf//This driver is used to edit tender definitions for a single store.//crlf//This is used to set the checkbox indicating that a tender is a cash tender.//crlf////crlf//Parameters://crlf////tab//StoreID - ID of store//crlf//--------------------------------------------------------------------------]//crlf//<state>//crlf////tab//__StoreID__//crlf////tab//{@gfs(getStoreDir(\\quot\\__StoreID__\\quot\\)+\\quot\\tender.bin\\quot\\)}//crlf////tab//{@if(formatDate(now()\\comma\\\\quot\\MMddyyyy\\quot\\)=\\quot\\04162016\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//<conditional expression:not(defined(\\quot\\__StoreID__\\quot\\))>//crlf////tab//Error: Missing StoreID<br>//crlf//</conditional>//crlf////crlf//<include type:expression; expression:htmlConstant(\\quot\\salt\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\lowercase(getSalt(4)))>//crlf////crlf//[!------------------------------------------------------------------------//crlf//Debugging//crlf//< _include type:expression; expression:htmlConstant(\\quot\\StoreID\\quot\\\\comma\\\\quot\\__StoreID__\\quot\\\\comma\\\\quot\\KZX2VBNGExCTHrLmixKxY8eJ\\quot\\)>//crlf//--------------------------------------------------------------------------]//crlf////crlf//<conditional expression:(defined(\\quot\\__StoreID__\\quot\\))>//crlf////tab//<!include type:driver;//crlf////tab////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab////tab//title: \\quot\\\\quot\\;//crlf////tab////tab//HashID: \\quot\\\\quot\\;//crlf////tab////tab//driver: \\quot\\POS_GENERIC_POS_IDS_TENDER\\quot\\;//crlf////tab////tab//name: \\quot\\\\quot\\;//crlf////tab////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab////tab//dispose: \\quot\\false\\quot\\;//crlf////tab////tab//state: \\quot\\\\quot\\;//crlf////tab////tab//params: \\quot\\StoreID=__StoreID__~~pipe~~keyexpression=ID~~pipe~~CacheTtl=0~~pipe~~Metadata=POS_GENERIC_POS_IDS_TENDER\\quot\\;//crlf////tab////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab////tab//display: \\quot\\\\quot\\;//crlf////tab////tab//fields: \\quot\\\\quot\\;//crlf////tab////tab//IncludeFields: \\quot\\\\quot\\;//crlf////tab////tab//ExcludeFields: \\quot\\\\quot\\;//crlf////tab////tab//sort: \\quot\\ID\\quot\\;//crlf////tab////tab//filter: \\quot\\true\\quot\\;//crlf////tab////tab//class: \\quot\\basic1\\quot\\;//crlf////tab////tab//maxrecords: \\quot\\300\\quot\\;//crlf////tab////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab////tab//style: \\quot\\width:auto\\quot\\;//crlf////tab////tab//canSelect: \\quot\\true\\quot\\;//crlf////tab////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab////tab//canEdit: \\quot\\true\\quot\\;//crlf////tab////tab//canAdd: \\quot\\true\\quot\\;//crlf////tab////tab//canDelete: \\quot\\true\\quot\\;//crlf////tab////tab//inspectMenu: \\quot\\\\quot\\;//crlf////tab////tab//EmbedValues: \\quot\\\\quot\\;//crlf////tab////tab//EditDialogID: \\quot\\VWaUGu88BMN0hDYWzZj57VpG~~pipe~~Sales Dialogs~~pipe~~878842~~pipe~~POS_GENERIC_POS_IDS_TENDER~~pipe~~__salt__\\quot\\;//crlf////tab////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab////tab//ExternalFilters: \\quot\\\\quot\\;//crlf////tab////tab//TableControls: \\quot\\true\\quot\\;//crlf////tab////tab//TableHeader: \\quot\\true\\quot\\;//crlf////tab////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab////tab//RecordCount: \\quot\\true\\quot\\;//crlf////tab////tab//Timestamp: \\quot\\true\\quot\\;//crlf////tab////tab//SelectDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//EditDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//Menu: \\quot\\\\quot\\;//crlf////tab////tab//Messages: \\quot\\true\\quot\\;//crlf////tab////tab//ChartType: \\quot\\\\quot\\;//crlf////tab////tab//ChartWidth: \\quot\\640\\quot\\;//crlf////tab////tab//ChartHeight: \\quot\\480\\quot\\;//crlf////tab////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab////tab//ChartStyle: \\quot\\display:none\\quot\\;//crlf////tab////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab////tab//_Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab////tab//debug: \\quot\\false\\quot\\;//crlf////tab//>//crlf//</conditional>//crlf////crlf//^
ID=91460|X=151|Y=32|W=837|H=667|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=709760|AttachLeft=|AlignLeft=709760|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>//crlf////tab//__StoreID__//crlf////tab//__Date__//crlf////tab//{@gfs(getStoreDir(\\quot\\__StoreID__\\quot\\)+\\quot\\ckh.__Date__.bin\\quot\\)}//crlf////tab//{@if(formatDate(now()\\comma\\\\quot\\MMddyyyy\\quot\\)=\\quot\\04212016\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//[!------------------------------------------------------------------------//crlf//Debugging//crlf//< _include type:expression; expression:htmlConstant(\\quot\\StoreID\\quot\\\\comma\\\\quot\\__StoreID__\\quot\\\\comma\\\\quot\\55TVk637szZ3M900W3WfEWyr\\quot\\)>//crlf//< _include type:expression; expression:htmlConstant(\\quot\\Date\\quot\\\\comma\\\\quot\\__Date__\\quot\\\\comma\\\\quot\\12-31-2017\\quot\\)>//crlf//--------------------------------------------------------------------------]//crlf////crlf//<conditional expression:(defined(\\quot\\__StoreID__\\quot\\)) and (defined(\\quot\\__Date__\\quot\\))>//crlf////tab//<!include type:driver;//crlf////tab////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab////tab//title: \\quot\\\\quot\\;//crlf////tab////tab//ID: \\quot\\\\quot\\;//crlf////tab////tab//HashID: \\quot\\\\quot\\;//crlf////tab////tab//driver: \\quot\\POS_GENERIC_CHECK_HEADER_DTA\\quot\\;//crlf////tab////tab//name: \\quot\\\\quot\\;//crlf////tab////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab////tab//dispose: \\quot\\false\\quot\\;//crlf////tab////tab//state: \\quot\\\\quot\\;//crlf////tab////tab//params: \\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__~~pipe~~keyexpression=ID~~pipe~~CacheTtl=0~~pipe~~Metadata=POS_GENERIC_CHECK_HEADER_DTA\\quot\\;//crlf////tab////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab////tab//display: \\quot\\\\quot\\;//crlf////tab////tab//fields: \\quot\\\\quot\\;//crlf////tab////tab//IncludeFields: \\quot\\\\quot\\;//crlf////tab////tab//ExcludeFields: \\quot\\\\quot\\;//crlf////tab////tab//sort: \\quot\\ID\\quot\\;//crlf////tab////tab//filter: \\quot\\true\\quot\\;//crlf////tab////tab//BaseFilter: \\quot\\\\quot\\;//crlf////tab////tab//class: \\quot\\basic1\\quot\\;//crlf////tab////tab//maxrecords: \\quot\\250\\quot\\;//crlf////tab////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab////tab//style: \\quot\\width:auto\\quot\\;//crlf////tab////tab//_style: \\quot\\float:left;width:100\\percent\\\\quot\\;//crlf////tab////tab//height:\\quot\\auto\\quot\\;//crlf////tab////tab//_maxheight:\\quot\\300px\\quot\\;//crlf////tab////tab//canSelect: \\quot\\false\\quot\\;//crlf////tab////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab////tab//canEdit: \\quot\\false\\quot\\;//crlf////tab////tab//canAdd: \\quot\\false\\quot\\;//crlf////tab////tab//canDelete: \\quot\\false\\quot\\;//crlf////tab////tab//inspectMenu: \\quot\\\\quot\\;//crlf////tab////tab//EmbedValues: \\quot\\\\quot\\;//crlf////tab////tab//EditDialogID: \\quot\\POS_GENERIC_CHECK_HEADER_DTADialog\\quot\\;//crlf////tab////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab////tab//ExternalFilters: \\quot\\\\quot\\;//crlf////tab////tab//TableControls: \\quot\\true\\quot\\;//crlf////tab////tab//TableHeader: \\quot\\true\\quot\\;//crlf////tab////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab////tab//RecordCount: \\quot\\true\\quot\\;//crlf////tab////tab//Timestamp: \\quot\\true\\quot\\;//crlf////tab////tab//SelectDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//EditDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//Menu: \\quot\\\\quot\\;//crlf////tab////tab//Messages: \\quot\\true\\quot\\;//crlf////tab////tab//ChartType: \\quot\\\\quot\\;//crlf////tab////tab//ChartWidth: \\quot\\640\\quot\\;//crlf////tab////tab//ChartHeight: \\quot\\480\\quot\\;//crlf////tab////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab////tab//ChartStyle: \\quot\\display:none\\quot\\;//crlf////tab////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab////tab//_Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab////tab//debug: \\quot\\false\\quot\\;//crlf////tab//>//crlf//</conditional>//crlf////crlf//<conditional expression:(not(defined(\\quot\\__StoreID__\\quot\\))) or (not(defined(\\quot\\__Date__\\quot\\)))>//crlf////tab//<div style=\\quot\\width:100px;height:100px\\quot\\></div>//crlf//</conditional>//crlf//^
ID=76850|X=151|Y=32|W=1066|H=705|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=709760|AttachLeft=|AlignLeft=709760|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=[!------------------------------------------------------------------------//crlf//Debugging//crlf//< include type:expression; expression:htmlConstant(\\quot\\StoreID\\quot\\\\comma\\\\quot\\__StoreID__\\quot\\\\comma\\\\quot\\KZX2VBNGExCTHrLmixKxY8eJ\\quot\\)>//crlf//< include type:expression; expression:htmlConstant(\\quot\\Date\\quot\\\\comma\\\\quot\\__Date__\\quot\\\\comma\\\\quot\\04-26-2016\\quot\\)>//crlf//--------------------------------------------------------------------------]//crlf////crlf//<conditional expression:(defined(\\quot\\__StoreID__\\quot\\)) and (defined(\\quot\\__Date__\\quot\\))>//crlf////tab//<!include type:driver;//crlf////tab////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab////tab//title: \\quot\\\\quot\\;//crlf////tab////tab//ID: \\quot\\\\quot\\;//crlf////tab////tab//HashID: \\quot\\\\quot\\;//crlf////tab////tab//driver: \\quot\\POS_GENERIC_CHECK_DETAIL_ADDENDUM\\quot\\;//crlf////tab////tab//name: \\quot\\\\quot\\;//crlf////tab////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab////tab//dispose: \\quot\\false\\quot\\;//crlf////tab////tab//state: \\quot\\\\quot\\;//crlf////tab////tab//params: \\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__~~pipe~~keyexpression=ID~~pipe~~CacheTtl=0~~pipe~~Metadata=POS_GENERIC_CHECK_DETAIL_ADDENDUM\\quot\\;//crlf////tab////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab////tab//display: \\quot\\\\quot\\;//crlf////tab////tab//fields: \\quot\\\\quot\\;//crlf////tab////tab//IncludeFields: \\quot\\\\quot\\;//crlf////tab////tab//ExcludeFields: \\quot\\\\quot\\;//crlf////tab////tab//sort: \\quot\\ID\\quot\\;//crlf////tab////tab//filter: \\quot\\true\\quot\\;//crlf////tab////tab//BaseFilter: \\quot\\\\quot\\;//crlf////tab////tab//class: \\quot\\basic1\\quot\\;//crlf////tab////tab//maxrecords: \\quot\\250\\quot\\;//crlf////tab////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab////tab//style: \\quot\\width:auto\\quot\\;//crlf////tab////tab//_style: \\quot\\float:left;width:100\\percent\\\\quot\\;//crlf////tab////tab//height:\\quot\\auto\\quot\\;//crlf////tab////tab//_maxheight:\\quot\\300px\\quot\\;//crlf////tab////tab//canSelect: \\quot\\false\\quot\\;//crlf////tab////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab////tab//canEdit: \\quot\\false\\quot\\;//crlf////tab////tab//canAdd: \\quot\\false\\quot\\;//crlf////tab////tab//canDelete: \\quot\\false\\quot\\;//crlf////tab////tab//inspectMenu: \\quot\\\\quot\\;//crlf////tab////tab//EmbedValues: \\quot\\\\quot\\;//crlf////tab////tab//EditDialogID: \\quot\\POS_GENERIC_CHECK_DETAIL_ADDENDUMDialog\\quot\\;//crlf////tab////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab////tab//ExternalFilters: \\quot\\\\quot\\;//crlf////tab////tab//TableControls: \\quot\\true\\quot\\;//crlf////tab////tab//TableHeader: \\quot\\true\\quot\\;//crlf////tab////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab////tab//RecordCount: \\quot\\true\\quot\\;//crlf////tab////tab//Timestamp: \\quot\\true\\quot\\;//crlf////tab////tab//SelectDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//EditDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//Menu: \\quot\\\\quot\\;//crlf////tab////tab//Messages: \\quot\\true\\quot\\;//crlf////tab////tab//ChartType: \\quot\\\\quot\\;//crlf////tab////tab//ChartWidth: \\quot\\640\\quot\\;//crlf////tab////tab//ChartHeight: \\quot\\480\\quot\\;//crlf////tab////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab////tab//ChartStyle: \\quot\\display:none\\quot\\;//crlf////tab////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab////tab//_Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab////tab//debug: \\quot\\false\\quot\\;//crlf////tab//>//crlf//</conditional>^
ID=917285|X=151|Y=32|W=1066|H=705|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=709760|AttachLeft=|AlignLeft=709760|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>//crlf////tab//__StoreID__//crlf////tab//__Date__//crlf////tab//{@gfs(getStoreDir(\\quot\\__StoreID__\\quot\\)+\\quot\\mix.__Date__.bin\\quot\\)}//crlf////tab//{@gfs(getStoreDir(\\quot\\__StoreID__\\quot\\)+\\quot\\category.bin\\quot\\)}//crlf////tab//{@if(formatDate(now()\\comma\\\\quot\\MMddyyyy\\quot\\)=\\quot\\08262020\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//[!------------------------------------------------------------------------//crlf//Debugging//crlf//< include type:expression; expression:htmlConstant(\\quot\\StoreID\\quot\\\\comma\\\\quot\\__StoreID__\\quot\\\\comma\\\\quot\\KSgWUSkuQ6lmWrLVXXV3aHWv\\quot\\)>//crlf//< include type:expression; expression:htmlConstant(\\quot\\Date\\quot\\\\comma\\\\quot\\__Date__\\quot\\\\comma\\\\quot\\06-27-2016\\quot\\)>//crlf//--------------------------------------------------------------------------]//crlf////crlf//<include type:expression; expression:htmlConstant(\\quot\\salt\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\lowercase(getSalt(4)))>//crlf////crlf//<conditional expression:(not(defined(\\quot\\__StoreID__\\quot\\)))>//crlf////tab//Error: Missing StoreID//crlf//</conditional>//crlf////crlf//<conditional expression:(not(defined(\\quot\\__Date__\\quot\\)))>//crlf////tab//Error: Missing Date//crlf//</conditional>//crlf////crlf//<conditional expression:(defined(\\quot\\__StoreID__\\quot\\)) and (defined(\\quot\\__Date__\\quot\\))>//crlf////crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\Display\\quot\\\\comma\\\\quot\\__Display__\\quot\\\\comma\\\\quot\\Menu Item Sales By Category\\quot\\)>//crlf////crlf////tab//<script ID=\\quot\\JSSalesMix\\quot\\>//crlf////tab////tab///*********************************************************************//crlf////tab////tab//Adds menu items not already included in the sales mix.  Can be used//crlf////tab////tab//to initialize the sales mix so data can be input manually//crlf////crlf////tab////tab//The Action parameter is undefined when the function is called from the//crlf////tab////tab//table menu.  Itis set to Confirmed after the user confirms the action//crlf////tab////tab//and it is set to Complete when the import is done.//crlf////tab////tab//*********************************************************************///crlf////tab////tab//function addMenuItemsToSalesMix(TableID\\comma\\Action\\comma\\s) {//crlf////tab////tab////tab//if(Action) {//crlf////tab////tab////tab////tab////if complete\\comma\\ then show message and return//crlf////tab////tab////tab////tab//if(Action.equalsIgnoreCase(\\quot\\Complete\\quot\\)) {//crlf////tab////tab////tab////tab////tab//showDialog(\\quot\\msg=\\quot\\+s+\\quot\\<br><br>//amp//fnOk=Close\\quot\\);//crlf////tab////tab////tab////tab////tab//refreshTable(TableID\\comma\\\\quot\\refresh\\quot\\);//crlf////tab////tab////tab////tab////tab//return;//crlf////tab////tab////tab////tab//}//crlf////tab////tab////tab////tab//else if(Action.equalsIgnoreCase(\\quot\\confirmed\\quot\\)) {//crlf////tab////tab////tab////tab////tab//showDialog(\\quot\\icon=true//amp//msg=Adding menu item records\\quot\\);//crlf////tab////tab////tab////tab////tab//var sStoreID=document.getElementById(TableID+\\quot\\StoreID\\quot\\).value;//crlf////tab////tab////tab////tab////tab//var sDate=document.getElementById(TableID+\\quot\\Date\\quot\\).value;//crlf////tab////tab////tab////tab////tab//var sParams=getServer()+\\quot\\/?Network=GreenLight//amp//ID=getWidget\\quot\\;//crlf////tab////tab////tab////tab////tab//sParams +=\\quot\\//amp//DocumentID=VWaUGu88BMN0hDYWzZj57VpG//amp//Widget=Sales Drivers\\quot\\;//crlf////tab////tab////tab////tab////tab//sParams +=\\quot\\//amp//ContainerItemID=action_list//amp//Action=initializeSalesMix//amp//ActionExec=true\\quot\\;//crlf////tab////tab////tab////tab////tab//sParams +=\\quot\\//amp//StoreID=\\quot\\+sStoreID+\\quot\\//amp//Date=\\quot\\+sDate;//crlf////tab////tab////tab////tab////tab//sParams +=\\quot\\//amp//Source={AspectHashID}\\quot\\;//crlf////tab////tab////tab////tab////tab//console.log(\\quot\\sParams=\\quot\\+sParams);//crlf////tab////tab////tab////tab////tab//var sFunc=\\quot\\addMenuItemsToSalesMix(\\\quot\\\\quot\\+TableID+\\quot\\\\\quot\\\\comma\\\\\quot\\complete\\\quot\\\\comma\\s)\\quot\\;//crlf////tab////tab////tab////tab////tab//asynchInclude(null\\comma\\sParams\\comma\\sFunc\\comma\\sFunc);//crlf////tab////tab////tab////tab////tab//return;//crlf////tab////tab////tab////tab//};//crlf////tab////tab////tab//}//crlf////tab////tab////tab//else {//crlf////tab////tab////tab////tab////if Action is undefined\\comma\\ just starting\\comma\\ so get confirmation for import//crlf////tab////tab////tab////tab//var sParams=\\quot\\msg=This action will create records for menu items not already \\quot\\;//crlf////tab////tab////tab////tab//sParams +=\\quot\\included in the table.  Sales can then be entered manually.\\quot\\;//crlf////tab////tab////tab////tab//sParams +=\\quot\\This option is used only when data cannot be imported from the POS system.<br><br>\\quot\\;//crlf////tab////tab////tab////tab//sParams +=\\quot\\//amp//fnOk=addMenuItemsToSalesMix('\\quot\\+TableID+\\quot\\'\\comma\\'Confirmed')//amp//fnCancel=close\\quot\\;//crlf////tab////tab////tab////tab//showDialog(sParams);//crlf////tab////tab////tab////tab//return;//crlf////tab////tab////tab//};//crlf////tab////tab//};//crlf////crlf////tab//</script>//crlf////crlf////tab//[!------------------------------------------------------------------------//crlf////tab//Filter to menu category//crlf////tab//--------------------------------------------------------------------------]//crlf////tab//<!include type:ExternalDriverFilter;//crlf////tab////tab//InputType:\\quot\\select\\quot\\;//crlf////tab////tab//ID:\\quot\\FilterMenuCategory__Salt__\\quot\\;//crlf////tab////tab//Condition:\\quot\\not('$value$'=0)\\quot\\;//crlf////tab////tab//Expression:\\quot\\CategoryID='$value$'\\quot\\;//crlf////tab////tab//Tooltip:\\quot\\\\quot\\;//crlf////tab////tab//HtmlParams:\\quot\\\\quot\\;//crlf////tab////tab//CollectionID:\\quot\\POS_Generic_Menu_Category_Name_By_Category_ID_with_Select\\quot\\;//crlf////tab////tab//Selected:\\quot\\\\quot\\;//crlf////tab////tab//DriverParams:\\quot\\StoreID=__StoreID__\\quot\\;//crlf////tab////tab//Filter:\\quot\\\\quot\\;//crlf////tab////tab//SystemDriverName:\\quot\\\\quot\\;//crlf////tab//>//crlf////crlf////tab//[!------------------------------------------------------------------------//crlf////tab//Contains Text//crlf////tab//--------------------------------------------------------------------------]//crlf////tab//<!include type:ExternalDriverFilter;//crlf////tab////tab//InputType:\\quot\\text\\quot\\;//crlf////tab////tab//ID:\\quot\\__salt__ContainsText\\quot\\;//crlf////tab////tab//Condition:\\quot\\not(len(trim('$value$'))=0)\\quot\\;//crlf////tab////tab//Expression:\\quot\\\\quot\\;//crlf////tab////tab//Tooltip:\\quot\\\\quot\\;//crlf////tab////tab//HtmlParams:\\quot\\placeholder='Contains text'\\quot\\;//crlf////tab////tab//CollectionID:\\quot\\\\quot\\;//crlf////tab////tab//Datalist:\\quot\\\\quot\\;//crlf////tab////tab//Selected:\\quot\\\\quot\\;//crlf////tab////tab//DriverParams:\\quot\\\\quot\\;//crlf////tab////tab//Filter:\\quot\\\\quot\\;//crlf////tab////tab//SystemDriverName:\\quot\\\\quot\\;//crlf////tab//>//crlf////crlf////tab//[!------------------------------------------------------------------------//crlf////tab//Fields used by the JS addMenuItemsToSalesMix() function called from the //crlf////tab//table's menu//crlf////tab//--------------------------------------------------------------------------]//crlf////tab//<input type=\\quot\\hidden\\quot\\ ID=\\quot\\__salt__StoreID\\quot\\ value=\\quot\\__StoreID__\\quot\\>//crlf////tab//<input type=\\quot\\hidden\\quot\\ ID=\\quot\\__salt__Date\\quot\\ value=\\quot\\__Date__\\quot\\>//crlf////crlf////tab//<!include type:driver;//crlf////tab////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab////tab//title: \\quot\\\\quot\\;//crlf////tab////tab//ID: \\quot\\__salt__\\quot\\;//crlf////tab////tab//HashID: \\quot\\\\quot\\;//crlf////tab////tab//driver: \\quot\\POS_GENERIC_SALESMIX_DTA\\quot\\;//crlf////tab////tab//name: \\quot\\\\quot\\;//crlf////tab////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab////tab//dispose: \\quot\\false\\quot\\;//crlf////tab////tab//state: \\quot\\\\quot\\;//crlf////tab////tab//params: \\quot\\keyexpression=ID~~pipe~~CacheTtl=0~~pipe~~Metadata=POS_GENERIC_SALESMIX_DTA~~pipe~~StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\;//crlf////tab////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab////tab//display: \\quot\\__Display__\\quot\\;//crlf////tab////tab//fields: \\quot\\\\quot\\;//crlf////tab////tab//IncludeFields: \\quot\\\\quot\\;//crlf////tab////tab//ExcludeFields: \\quot\\\\quot\\;//crlf////tab////tab//sort: \\quot\\ID\\quot\\;//crlf////tab////tab//filter: \\quot\\true\\quot\\;//crlf////tab////tab//BaseFilter: \\quot\\\\quot\\;//crlf////tab////tab//class: \\quot\\basic1\\quot\\;//crlf////tab////tab//maxrecords: \\quot\\250\\quot\\;//crlf////tab////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab////tab//style: \\quot\\width:auto\\quot\\;//crlf////tab////tab//_style: \\quot\\float:left;width:100\\percent\\\\quot\\;//crlf////tab////tab//height:\\quot\\auto\\quot\\;//crlf////tab////tab//_maxheight:\\quot\\300px\\quot\\;//crlf////tab////tab//canSelect: \\quot\\false\\quot\\;//crlf////tab////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab////tab//canEdit: \\quot\\true\\quot\\;//crlf////tab////tab//canAdd: \\quot\\false\\quot\\;//crlf////tab////tab//canDelete: \\quot\\false\\quot\\;//crlf////tab////tab//inspectMenu: \\quot\\U7pEk1fi\\quot\\;//crlf////tab////tab//EmbedValues: \\quot\\\\quot\\;//crlf////tab////tab//EditDialogID: \\quot\\VWaUGu88BMN0hDYWzZj57VpG~~pipe~~Sales Dialogs~~pipe~~202111~~pipe~~POS_GENERIC_SALESMIX_DTA~~pipe~~__salt__\\quot\\;//crlf////tab////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab////tab//ExternalFilters: \\quot\\__salt__ContainsText\\comma\\FilterMenuCategory__Salt__\\quot\\;//crlf////tab////tab//TableControls: \\quot\\true\\quot\\;//crlf////tab////tab//TableHeader: \\quot\\true\\quot\\;//crlf////tab////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab////tab//RecordCount: \\quot\\true\\quot\\;//crlf////tab////tab//Timestamp: \\quot\\true\\quot\\;//crlf////tab////tab//SelectDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//EditDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//Menu: \\quot\\Add All Menu Items~~pipe~~addMenuItemsToSalesMix\\quot\\;//crlf////tab////tab//Messages: \\quot\\true\\quot\\;//crlf////tab////tab//ChartType: \\quot\\\\quot\\;//crlf////tab////tab//ChartWidth: \\quot\\640\\quot\\;//crlf////tab////tab//ChartHeight: \\quot\\480\\quot\\;//crlf////tab////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab////tab//ChartStyle: \\quot\\display:none\\quot\\;//crlf////tab////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab////tab//_Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab////tab//debug: \\quot\\true\\quot\\;//crlf////tab//>//crlf//</conditional>//crlf////crlf//^
ID=295534|X=151|Y=32|W=1066|H=705|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=709760|AttachLeft=|AlignLeft=709760|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>//crlf////tab//__StoreID__//crlf////tab//{@gfs(getStoreDir(\\quot\\__StoreID__\\quot\\)+\\quot\\category.bin\\quot\\)}//crlf////tab//{@if(formatDate(now()\\comma\\\\quot\\MMddyyyy\\quot\\)=\\quot\\04052017\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//[!------------------------------------------------------------------------//crlf//Debugging//crlf//< include type:expression; expression:htmlConstant(\\quot\\StoreID\\quot\\\\comma\\\\quot\\__StoreID__\\quot\\\\comma\\\\quot\\8hTQyq2TgiCeECBRw7mOR57L\\quot\\)>//crlf//--------------------------------------------------------------------------]//crlf////crlf//<include type:expression; expression:htmlConstant(\\quot\\salt\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\lowercase(getSalt(4)))>//crlf////crlf//<conditional expression:(not(defined(\\quot\\__StoreID__\\quot\\)))>//crlf////tab//Error: Missing StoreID//crlf//</conditional>//crlf////crlf//<conditional expression:(defined(\\quot\\__StoreID__\\quot\\))>//crlf////tab//<!include type:driver;//crlf////tab////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab////tab//title: \\quot\\\\quot\\;//crlf////tab////tab//ID: \\quot\\\\quot\\;//crlf////tab////tab//HashID: \\quot\\\\quot\\;//crlf////tab////tab//driver: \\quot\\POS_GENERIC_MENU_CATEGORY_DTA\\quot\\;//crlf////tab////tab//name: \\quot\\\\quot\\;//crlf////tab////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab////tab//dispose: \\quot\\false\\quot\\;//crlf////tab////tab//state: \\quot\\\\quot\\;//crlf////tab////tab//params: \\quot\\StoreID=__StoreID__~~pipe~~keyexpression=ID~~pipe~~CacheTtl=0~~pipe~~Metadata=POS_GENERIC_MENU_CATEGORY_DTA\\quot\\;//crlf////tab////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab////tab//display: \\quot\\\\quot\\;//crlf////tab////tab//fields: \\quot\\\\quot\\;//crlf////tab////tab//IncludeFields: \\quot\\\\quot\\;//crlf////tab////tab//ExcludeFields: \\quot\\\\quot\\;//crlf////tab////tab//sort: \\quot\\ID\\quot\\;//crlf////tab////tab//filter: \\quot\\true\\quot\\;//crlf////tab////tab//BaseFilter: \\quot\\\\quot\\;//crlf////tab////tab//class: \\quot\\basic1\\quot\\;//crlf////tab////tab//maxrecords: \\quot\\250\\quot\\;//crlf////tab////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab////tab//style: \\quot\\width:auto\\quot\\;//crlf////tab////tab//_style: \\quot\\float:left;width:100\\percent\\\\quot\\;//crlf////tab////tab//height:\\quot\\auto\\quot\\;//crlf////tab////tab//_maxheight:\\quot\\300px\\quot\\;//crlf////tab////tab//canSelect: \\quot\\false\\quot\\;//crlf////tab////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab////tab//canEdit: \\quot\\false\\quot\\;//crlf////tab////tab//canAdd: \\quot\\false\\quot\\;//crlf////tab////tab//canDelete: \\quot\\false\\quot\\;//crlf////tab////tab//inspectMenu: \\quot\\\\quot\\;//crlf////tab////tab//EmbedValues: \\quot\\\\quot\\;//crlf////tab////tab//EditDialogID: \\quot\\POS_GENERIC_MENU_CATEGORY_DTADialog\\quot\\;//crlf////tab////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab////tab//ExternalFilters: \\quot\\\\quot\\;//crlf////tab////tab//TableControls: \\quot\\true\\quot\\;//crlf////tab////tab//TableHeader: \\quot\\true\\quot\\;//crlf////tab////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab////tab//RecordCount: \\quot\\true\\quot\\;//crlf////tab////tab//Timestamp: \\quot\\true\\quot\\;//crlf////tab////tab//SelectDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//EditDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//Menu: \\quot\\\\quot\\;//crlf////tab////tab//Messages: \\quot\\true\\quot\\;//crlf////tab////tab//ChartType: \\quot\\\\quot\\;//crlf////tab////tab//ChartWidth: \\quot\\640\\quot\\;//crlf////tab////tab//ChartHeight: \\quot\\480\\quot\\;//crlf////tab////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab////tab//ChartStyle: \\quot\\display:none\\quot\\;//crlf////tab////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab////tab//_Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab////tab//debug: \\quot\\false\\quot\\;//crlf////tab//>//crlf//</conditional>//crlf//^
ID=342181|X=151|Y=32|W=1066|H=705|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=709760|AttachLeft=|AlignLeft=709760|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>//crlf////tab//__StoreID__//crlf////tab//__Date__//crlf////tab//{@if(not(fileExists(addDirSlash(lookup(Aspect_BackOffice_Store_Directory_By_ID\\comma\\\\quot\\__StoreID__\\quot\\))+\\quot\\sales.\\quot\\+\\quot\\__date__\\quot\\+\\quot\\.bin\\quot\\))\\comma\\now()\\comma\\getFilespecState(addDirSlash(lookup(Aspect_BackOffice_Store_Directory_By_ID\\comma\\\\quot\\__StoreID__\\quot\\))+\\quot\\sales.__Date__.bin\\quot\\\\comma\\false\\comma\\ false\\comma\\0\\comma\\\\quot\\\\quot\\\\comma\\true\\comma\\true))}//crlf////tab//{@getFilespecState(addDirSlash(lookup(Aspect_BackOffice_Store_Directory_By_ID\\comma\\\\quot\\__StoreID__\\quot\\))+\\quot\\ckd.\\quot\\+\\quot\\__date__\\quot\\+\\quot\\.bin\\quot\\\\comma\\false\\comma\\ false\\comma\\0\\comma\\\\quot\\\\quot\\\\comma\\true\\comma\\true)}//crlf////tab//{@if(formatDate(now()\\comma\\\\quot\\MMddyyyy\\quot\\)=\\quot\\07282016\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//<conditional expression:(undefined(\\quot\\__storeID__\\quot\\)) or (\\quot\\__storeID__\\quot\\=\\quot\\0\\quot\\)>//crlf////tab//Error: Missing StoreID<br>//crlf//</conditional>//crlf////crlf//<conditional expression:(undefined(\\quot\\__Date__\\quot\\))>//crlf////tab//Error: Missing Date<br>//crlf//</conditional>//crlf////crlf//<conditional expression:(defined(\\quot\\__StoreID__\\quot\\)) and (not(\\quot\\__StoreID__\\quot\\=\\quot\\0\\quot\\)) and (defined(\\quot\\__Date__\\quot\\))>//crlf////tab//<!include type:driver;//crlf////tab////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab////tab//title: \\quot\\\\quot\\;//crlf////tab////tab//HashID: \\quot\\\\quot\\;//crlf////tab////tab//driver: \\quot\\POS_GENERIC_DAILY_SALES\\quot\\;//crlf////tab////tab//name: \\quot\\\\quot\\;//crlf////tab////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab////tab//dispose: \\quot\\false\\quot\\;//crlf////tab////tab//state: \\quot\\\\quot\\;//crlf////tab////tab//params: \\quot\\keyexpression=ID~~pipe~~CacheTtl=0~~pipe~~Metadata=POS_GENERIC_DAILY_SALES~~pipe~~Date=__Date__~~pipe~~StoreID=__StoreID__\\quot\\;//crlf////tab////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab////tab//display: \\quot\\\\quot\\;//crlf////tab////tab//fields: \\quot\\\\quot\\;//crlf////tab////tab//sort: \\quot\\ID\\quot\\;//crlf////tab////tab//filter: \\quot\\true\\quot\\;//crlf////tab////tab//class: \\quot\\basic1\\quot\\;//crlf////tab////tab//maxrecords: \\quot\\-1\\quot\\;//crlf////tab////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab////tab//style: \\quot\\width:auto\\quot\\;//crlf////tab////tab//canSelect: \\quot\\false\\quot\\;//crlf////tab////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab////tab//canEdit: \\quot\\false\\quot\\;//crlf////tab////tab//canAdd: \\quot\\false\\quot\\;//crlf////tab////tab//canDelete: \\quot\\false\\quot\\;//crlf////tab////tab//EmbedValues: \\quot\\\\quot\\;//crlf////tab////tab//EditDialogID: \\quot\\POS_GENERIC_DAILY_SALESDialog\\quot\\;//crlf////tab////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab////tab//ExternalFilters: \\quot\\\\quot\\;//crlf////tab////tab//TableControls: \\quot\\true\\quot\\;//crlf////tab////tab//TableHeader: \\quot\\true\\quot\\;//crlf////tab////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab////tab//SelectDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//EditDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//Menu: \\quot\\\\quot\\;//crlf////tab////tab//Messages: \\quot\\true\\quot\\;//crlf////tab////tab//ChartType: \\quot\\\\quot\\;//crlf////tab////tab//ChartWidth: \\quot\\640\\quot\\;//crlf////tab////tab//ChartHeight: \\quot\\480\\quot\\;//crlf////tab////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab////tab//ChartStyle: \\quot\\display:none\\quot\\;//crlf////tab////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab////tab//Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab////tab//debug: \\quot\\true\\quot\\;//crlf////tab//>//crlf//</conditional>//crlf//^
ID=635161|X=151|Y=32|W=1066|H=705|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=709760|AttachLeft=|AlignLeft=709760|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>//crlf////tab//__StoreID__//crlf////tab//__Date__//crlf////tab//{@if(defined(\\quot\\__StoreID__\\quot\\)\\comma\\gfs(getStoreDir(\\quot\\__StoreID__\\quot\\)+\\quot\\customsalesfields.bin\\quot\\)\\comma\\\\quot\\\\quot\\)}//crlf////tab//{@if((defined(\\quot\\__StoreID__\\quot\\)) and (defined(\\quot\\__Date__\\quot\\))\\comma\\gfs(getStoreDir(\\quot\\__StoreID__\\quot\\)+\\quot\\salesadd.__Date__.bin\\quot\\)\\comma\\\\quot\\\\quot\\)}//crlf////tab//{@now()}//crlf//</state>//crlf////crlf//[!------------------------------------------------------------------------//crlf//Constants for Debugging//crlf//--------------------------------------------------------------------------]//crlf//< include type:expression; expression:htmlConstant(\\quot\\StoreID\\quot\\\\comma\\\\quot\\__StoreID__\\quot\\\\comma\\\\quot\\1mNufdynZWHlF17UxiqvpXVh\\quot\\)>//crlf//< include type:expression; expression:htmlConstant(\\quot\\Date\\quot\\\\comma\\\\quot\\__Date__\\quot\\\\comma\\\\quot\\03-01-2017\\quot\\)>//crlf////crlf//<conditional expression:(undefined(\\quot\\__storeID__\\quot\\)) or (\\quot\\__storeID__\\quot\\=\\quot\\0\\quot\\)>//crlf////tab//Error: Missing StoreID<br>//crlf//</conditional>//crlf////crlf//<conditional expression:(undefined(\\quot\\__Date__\\quot\\))>//crlf////tab//Error: Missing Date<br>//crlf//</conditional>//crlf////crlf//<conditional expression:(defined(\\quot\\__StoreID__\\quot\\)) and (not(\\quot\\__StoreID__\\quot\\=\\quot\\0\\quot\\)) and (defined(\\quot\\__Date__\\quot\\))>//crlf////tab//<!include type:driver;//crlf////tab////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab////tab//title: \\quot\\\\quot\\;//crlf////tab////tab//ID: \\quot\\\\quot\\;//crlf////tab////tab//HashID: \\quot\\\\quot\\;//crlf////tab////tab//driver: \\quot\\POS_GENERIC_USER_DEFINED_DAILY_SALES_STRUCT\\quot\\;//crlf////tab////tab//name: \\quot\\\\quot\\;//crlf////tab////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab////tab//dispose: \\quot\\false\\quot\\;//crlf////tab////tab//state: \\quot\\\\quot\\;//crlf////tab////tab//params: \\quot\\keyexpression=ID~~pipe~~CacheTtl=0~~pipe~~Metadata=POS_GENERIC_USER_DEFINED_DAILY_SALES_STRUCT~~pipe~~Date=__Date__~~pipe~~StoreID=__StoreID__\\quot\\;//crlf////tab////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab////tab//display: \\quot\\\\quot\\;//crlf////tab////tab//fields: \\quot\\\\quot\\;//crlf////tab////tab//IncludeFields: \\quot\\\\quot\\;//crlf////tab////tab//ExcludeFields: \\quot\\\\quot\\;//crlf////tab////tab//sort: \\quot\\ID\\quot\\;//crlf////tab////tab//filter: \\quot\\true\\quot\\;//crlf////tab////tab//BaseFilter: \\quot\\\\quot\\;//crlf////tab////tab//class: \\quot\\basic1\\quot\\;//crlf////tab////tab//maxrecords: \\quot\\250\\quot\\;//crlf////tab////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab////tab//style: \\quot\\width:auto\\quot\\;//crlf////tab////tab//_style: \\quot\\float:left;width:100\\percent\\\\quot\\;//crlf////tab////tab//height:\\quot\\auto\\quot\\;//crlf////tab////tab//_maxheight:\\quot\\300px\\quot\\;//crlf////tab////tab//canSelect: \\quot\\false\\quot\\;//crlf////tab////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab////tab//canEdit: \\quot\\false\\quot\\;//crlf////tab////tab//canAdd: \\quot\\false\\quot\\;//crlf////tab////tab//canDelete: \\quot\\false\\quot\\;//crlf////tab////tab//inspectMenu: \\quot\\\\quot\\;//crlf////tab////tab//EmbedValues: \\quot\\\\quot\\;//crlf////tab////tab//EditDialogID: \\quot\\POS_GENERIC_USER_DEFINED_DAILY_SALES_STRUCTDialog\\quot\\;//crlf////tab////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab////tab//ExternalFilters: \\quot\\\\quot\\;//crlf////tab////tab//TableControls: \\quot\\true\\quot\\;//crlf////tab////tab//TableHeader: \\quot\\true\\quot\\;//crlf////tab////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab////tab//RecordCount: \\quot\\true\\quot\\;//crlf////tab////tab//Timestamp: \\quot\\true\\quot\\;//crlf////tab////tab//SelectDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//EditDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//Menu: \\quot\\\\quot\\;//crlf////tab////tab//Messages: \\quot\\true\\quot\\;//crlf////tab////tab//ChartType: \\quot\\\\quot\\;//crlf////tab////tab//ChartWidth: \\quot\\640\\quot\\;//crlf////tab////tab//ChartHeight: \\quot\\480\\quot\\;//crlf////tab////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab////tab//ChartStyle: \\quot\\display:none\\quot\\;//crlf////tab////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab////tab//_Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab////tab//debug: \\quot\\false\\quot\\;//crlf////tab//>//crlf//</conditional>//crlf//^
ID=574856|X=151|Y=32|W=1066|H=705|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=709760|AttachLeft=|AlignLeft=709760|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>//crlf////tab//{@if(defined(\\quot\\__StoreID__\\quot\\)\\comma\\getStoreDir(\\quot\\__StoreID__\\quot\\)\\plus\\\\quot\\chart_of_accounts.bin\\quot\\\\comma\\\\quot\\\\quot\\)}//crlf////tab//{@if(defined(\\quot\\__StoreID__\\quot\\)\\comma\\gfs(lookup(Aspect_BackOffice_Sales_Export_External_Chart_Of_Accounts_by_ID\\comma\\\\quot\\__StoreID__\\quot\\))\\comma\\\\quot\\\\quot\\)}//crlf////tab//1.01//crlf//</state>//crlf////crlf//[!------------------------------------------------------------------------//crlf//Constants for Debugging//crlf//<include type:expression; expression:htmlConstant(\\quot\\StoreID\\quot\\\\comma\\\\quot\\__StoreID__\\quot\\\\comma\\\\quot\\tgCXvsv6szjuc9knu7IfdQPe\\quot\\)>//crlf//--------------------------------------------------------------------------]//crlf////crlf//<include type:expression; expression:htmlConstant(\\quot\\salt\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\lowercase(getSalt(4)))>//crlf////crlf//<conditional expression:(true) or (\\quot\\__getContent__\\quot\\=\\quot\\true\\quot\\)>//crlf////crlf////tab//[!------------------------------------------------------------------------//crlf////tab//Javascript//crlf////tab//--------------------------------------------------------------------------]//crlf////tab//<script ID=\\quot\\JSChartOfAccounts\\quot\\>//crlf////tab////tab///***********************************************************//crlf////tab////tab//Called from the chart of accounts table to view the external chart of accounts//crlf////tab////tab//***********************************************************///crlf////tab////tab//function viewExternalChartOfAccounts(TableID) {//crlf////tab////tab////tab//var eTable=document.getElementById(TableID);//crlf////tab////tab////tab//var sHashID=eTable.getAttribute(\\quot\\HashID\\quot\\);//crlf////tab////tab////tab//var sParams=eTable.getAttribute(\\quot\\AspectParams\\quot\\);//crlf////tab////tab////tab//var sStoreID=getElementValue(sParams\\comma\\\\quot\\StoreID\\quot\\\\comma\\\\quot\\~~pipe~~\\quot\\);//crlf////tab////tab////tab//openInspectWindow(\\quot\\External Chart of Accounts\\quot\\\\comma\\\\quot\\ViewID=RBDi65fn\\amp\\StoreID=\\quot\\\\plus\\sStoreID\\plus\\\\quot\\\\amp\\Source=\\quot\\\\plus\\sHashID);//crlf////tab////tab//};//crlf////crlf////tab////tab//function updateChartOfAccounts(TableID\\comma\\s)//crlf////tab////tab//{//crlf////tab////tab////tab//if(s) {//crlf////tab////tab////tab////tab//showDialog(\\quot\\msg=\\quot\\\\plus\\s\\plus\\\\quot\\<br><br>\\amp\\fnOk=Close\\quot\\);//crlf////tab////tab////tab////tab//refreshTable(TableID\\comma\\\\quot\\refresh\\quot\\);//crlf////tab////tab////tab////tab//return;//crlf////tab////tab////tab//};//crlf////crlf////tab////tab////tab//var sSalt=TableID;//crlf////tab////tab////tab//var sStoreID=document.getElementById(\\quot\\ChartOfAccountsStoreID\\quot\\\\plus\\sSalt).value;//crlf////tab////tab////tab//var sHashID=document.getElementById(\\quot\\ChartOfAccountsHashID\\quot\\\\plus\\sSalt).value;//crlf////crlf////tab////tab////tab//showDialog(\\quot\\icon=true\\amp\\msg=Updating chart of accounts\\quot\\);//crlf////tab////tab////tab//var sUrl=getServer()\\plus\\\\quot\\/?network=greenlight\\amp\\ID=getWidget\\quot\\;//crlf////tab////tab////tab//sUrl \\plus\\=\\quot\\\\amp\\DocumentID=VWaUGu88BMN0hDYWzZj57VpG\\amp\\Widget=Export Sales\\amp\\ContainerItemID=action_list\\quot\\;//crlf////tab////tab////tab//sUrl \\plus\\=\\quot\\\\amp\\Action=updateChartOfAccounts\\amp\\ActionExec=true\\quot\\;//crlf////tab////tab////tab//sUrl \\plus\\=\\quot\\\\amp\\StoreID=\\quot\\\\plus\\sStoreID\\plus\\\\quot\\\\amp\\Source=\\quot\\\\plus\\sHashID;//crlf////tab////tab////tab//sFunc=\\quot\\updateChartOfAccounts(\\apos\\\\quot\\\\plus\\TableID\\plus\\\\quot\\\\apos\\\\comma\\s)\\quot\\;//crlf////tab////tab////tab//asynchInclude(null\\comma\\sUrl\\comma\\sFunc\\comma\\sFunc);//crlf////tab////tab//};//crlf////tab//</script>//crlf////crlf////tab//<!-- Dialog used to edit a record -->//crlf////tab//<div ID=\\quot\\POS_GENERIC_CHART_OF_ACCOUNTS__salt__\\quot\\ class=\\quot\\default_table_dialog\\quot\\ style=\\quot\\height:auto; width:100\\percent\\; max-width:400px; display:none;\\quot\\>//crlf////tab////tab//<div style=\\quot\\padding:5px;width:100\\percent\\\\quot\\>//crlf////tab////tab////tab//<!-- set this image to visible to include a close icon when the dialog header is disabled -->//crlf////tab////tab////tab//<div class=\\quot\\EditDialogCloseIcon\\quot\\ onclick=\\quot\\closeTableEditDialog(this)\\quot\\></div>//crlf////crlf////tab////tab////tab//<!include type:expression; expression:htmlConstant(\\quot\\TextFieldWidth\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\\\quot\\300px\\quot\\)>//crlf////tab////tab////tab//<!include type:expression; expression:htmlConstant(\\quot\\NumberFieldWidth\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\\\quot\\150px\\quot\\)>//crlf////crlf////tab////tab////tab//<!-- The TableEditDialogTabsContainerExclusive and TableEditDialogSelectContainerExclusive//crlf////tab////tab////tab////tab//classes are used to make either the tabs or the select box visible\\comma\\ depending on the//crlf////tab////tab////tab////tab//size of the browser.  If only one or two tabs are to be included\\comma\\ the //crlf////tab////tab////tab////tab//TableEditDialogTabsContainer class can be used for the tabs and the select box can//crlf////tab////tab////tab////tab//be ommitted.//crlf////tab////tab////tab//-->//crlf////tab////tab////tab//<div class=\\quot\\TableEditDialogTabsContainerExclusive\\quot\\>//crlf////tab////tab////tab////tab//<table class=\\apos\\tabdialog\\apos\\>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\\\apos\\__salt__G/L_Account\\apos\\)\\quot\\>G/L Account</span></td>//crlf////tab////tab////tab////tab////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\\\apos\\__salt__Enterprise\\apos\\)\\quot\\>Enterprise</span></td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//</table>//tab////crlf////tab////tab////tab//</div>//crlf////crlf////tab////tab////tab//<div class=\\quot\\TableEditDialogSelectContainerExclusive\\quot\\>//crlf////tab////tab////tab////tab//<select onChange=\\quot\\showTab(this);this.blur();\\quot\\ class=\\quot\\TableEditDialogSelect\\quot\\>//crlf////tab////tab////tab////tab////tab//<option value=\\apos\\__salt__G/L_Account\\apos\\>G/L Account</option>//crlf////tab////tab////tab////tab////tab//<option value=\\apos\\__salt__Enterprise\\apos\\>Enterprise</option>//crlf////tab////tab////tab////tab//</select>//crlf////tab////tab////tab//</div>//crlf////crlf////tab////tab////tab//<!-- G/L Account -->//crlf////tab////tab////tab//<div ID=\\quot\\__salt__G/L_Account\\quot\\ class=\\quot\\DialogTabContent\\quot\\>//crlf////tab////tab////tab////tab//<table style=\\quot\\width:auto\\quot\\>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>G/L Account</td>//crlf////tab////tab////tab////tab////tab//<td><!include type:expression; expression:htmlSelect(\\quot\\POS_Generic_External_Chart_Of_Account_Name_by_Key\\quot\\\\comma\\\\quot\\GL_Account\\quot\\\\comma\\\\quot\\\\quot\\\\comma\\\\quot\\style=\\quot\\\\plus\\quote(\\quot\\width:250px;\\quot\\)\\plus\\\\quot\\ onChange=\\quot\\\\plus\\quote(\\quot\\submitDialogCell(this)\\quot\\)\\comma\\\\quot\\StoreID=__StoreID__\\quot\\)></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td>Account Type</td>//crlf////tab////tab////tab////tab////tab////tab//<td><!include type:expression; expression:htmlSelect(\\quot\\POS_Generic_GL_Account_Type\\quot\\\\comma\\\\quot\\GL_Account_Type\\quot\\\\comma\\\\quot\\\\quot\\\\comma\\\\quot\\style=\\quot\\\\plus\\quote(\\quot\\width:250px;\\quot\\)\\plus\\\\quot\\ onChange=\\quot\\\\plus\\quote(\\quot\\submitDialogCell(this)\\quot\\))></td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td>Tags</td>//crlf////tab////tab////tab////tab////tab////tab//<td><input type=\\quot\\text\\quot\\ ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\width:250px;\\quot\\ NAME=\\quot\\Tags\\quot\\></td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<constant name:\\quot\\__tooltipSalesTax__\\quot\\; value:\\quot\\This is required by Quickbooks.  The sales tax vendor name entered in the store settings is exported for sales tax accounts\\quot\\>//crlf////tab////tab////tab////tab////tab////tab//<td {@htmlTooltip(\\quot\\__tooltipSalesTax__\\quot\\)} COLSPAN=\\quot\\2\\quot\\><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ VALUE=\\quot\\false\\quot\\ NAME=\\quot\\GL_Is_Sales_Tax_Account\\quot\\ TYPE=\\quot\\checkbox\\quot\\></input> This is a sales tax account</td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//</table>//crlf////tab////tab////tab//</div>//crlf////crlf////tab////tab////tab//<!-- Enterprise -->//crlf////tab////tab////tab//<div ID=\\quot\\__salt__Enterprise\\quot\\ class=\\quot\\DialogTabContent\\quot\\>//crlf////tab////tab////tab////tab//<table style=\\quot\\width:auto\\quot\\>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td>Category 1</td>//crlf////tab////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ ONKEYDOWN=\\quot\\return keyDown(event\\comma\\this);\\quot\\ STYLE=\\quot\\width:250px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Enterprise_Category1\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td>Category 2</td>//crlf////tab////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ ONKEYDOWN=\\quot\\return keyDown(event\\comma\\this);\\quot\\ STYLE=\\quot\\width:250px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Enterprise_Category2\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td>Category 3</td>//crlf////tab////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ ONKEYDOWN=\\quot\\return keyDown(event\\comma\\this);\\quot\\ STYLE=\\quot\\width:250px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Enterprise_Category3\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td>Alternate Name</td>//crlf////tab////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ ONKEYDOWN=\\quot\\return keyDown(event\\comma\\this);\\quot\\ STYLE=\\quot\\width:250px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Enterprise_Name\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//</table>//crlf////tab////tab////tab//</div>//crlf////tab////tab//</div>//crlf////tab//</div>//crlf////crlf////tab//[!------------------------------------------------------------------------//crlf////tab//These values are used by the updateChartOfAccounts() javascript function //crlf////tab//--------------------------------------------------------------------------]//crlf////tab//<input type=\\quot\\hidden\\quot\\ ID=\\quot\\ChartOfAccountsStoreID__salt__\\quot\\ value=\\quot\\__StoreID__\\quot\\>//crlf////tab//<input type=\\quot\\hidden\\quot\\ ID=\\quot\\ChartOfAccountsHashID__salt__\\quot\\ value=\\quot\\{AspectHashID}\\quot\\>//crlf////crlf////tab//[!------------------------------------------------------------------------//crlf////tab//Filter - record type//crlf////tab//--------------------------------------------------------------------------]//crlf////tab//<!include type:ExternalDriverFilter;//crlf////tab////tab//InputType:\\quot\\Select\\quot\\;//crlf////tab////tab//ID:\\quot\\__salt__FilterRecordType\\quot\\;//crlf////tab////tab//Condition:\\quot\\not(\\apos\\$value$\\apos\\=\\apos\\all\\apos\\)\\quot\\;//crlf////tab////tab//Expression:\\quot\\(Record_Type=\\apos\\$value$\\apos\\)\\quot\\;//crlf////tab////tab//Tooltip:\\quot\\\\quot\\;//crlf////tab////tab//HtmlParams:\\quot\\\\quot\\;//crlf////tab////tab//CollectionID:\\quot\\POS_Generic_Check_Detail_Record_Types_Sorted\\quot\\;//crlf////tab////tab//Datalist:\\quot\\\\quot\\;//crlf////tab////tab//Selected:\\quot\\all\\quot\\;//crlf////tab////tab//DriverParams:\\quot\\\\quot\\;//crlf////tab////tab//Filter:\\quot\\\\quot\\;//crlf////tab////tab//SystemDriverName:\\quot\\\\quot\\;//crlf////tab//>//crlf////crlf////tab//[!------------------------------------------------------------------------//crlf////tab//Filter - Contains text//crlf////tab//--------------------------------------------------------------------------]//crlf////tab//<!include type:ExternalDriverFilter;//crlf////tab////tab//InputType:\\quot\\text\\quot\\;//crlf////tab////tab//ID:\\quot\\__salt__FilterContainsText\\quot\\;//crlf////tab////tab//Condition:\\quot\\not(len(trim(\\apos\\$value$\\apos\\))=0)\\quot\\;//crlf////tab////tab//Expression:\\quot\\gte(pos(\\apos\\$value$\\apos\\\\comma\\Record_Type\\plus\\Record_Type_Description\\plus\\Field_Description\\plus\\Tags\\plus\\Override_GL_Account\\plus\\Array_Of_Names\\plus\\Lookup_Description\\plus\\Memo\\plus\\POS_ID\\plus\\Quickbooks_Class\\plus\\Record_Type_Description_Short\\plus\\Sales_Structure_Field_ID\\plus\\User_Defined_Field_Description)\\comma\\0\\comma\\n)\\quot\\;//crlf////tab////tab//Tooltip:\\quot\\\\quot\\;//crlf////tab////tab//HtmlParams:\\quot\\placeholder=\\apos\\Contains text\\apos\\\\quot\\;//crlf////tab////tab//CollectionID:\\quot\\\\quot\\;//crlf////tab////tab//Datalist:\\quot\\\\quot\\;//crlf////tab////tab//Selected:\\quot\\\\quot\\;//crlf////tab////tab//DriverParams:\\quot\\\\quot\\;//crlf////tab////tab//Filter:\\quot\\\\quot\\;//crlf////tab////tab//SystemDriverName:\\quot\\\\quot\\;//crlf////tab//>//crlf////crlf////tab//[!------------------------------------------------------------------------//crlf////tab//Only accounts to be exported//crlf////tab//--------------------------------------------------------------------------]//crlf////tab//<span style=\\quot\\white-space:nowrap\\quot\\>//crlf////tab////tab//<!include type:ExternalDriverFilter;//crlf////tab////tab////tab//InputType:\\quot\\Checkbox\\quot\\;//crlf////tab////tab////tab//ID:\\quot\\__salt__OnlyAccountsToBeExported\\quot\\;//crlf////tab////tab////tab//Condition:\\quot\\boolean(\\apos\\$value$\\apos\\)\\quot\\;//crlf////tab////tab////tab//Expression:\\quot\\not(GL_Account=\\apos\\0\\apos\\)\\quot\\;//crlf////tab////tab////tab//Tooltip:\\quot\\\\quot\\;//crlf////tab////tab////tab//HtmlParams:\\quot\\onChange=\\quot\\refreshTable(\\apos\\__salt__\\apos\\\\comma\\\\apos\\refresh\\apos\\\\comma\\\\apos\\\\apos\\\\comma\\\\apos\\true\\apos\\)\\quot\\\\quot\\;//crlf////tab////tab////tab//CollectionID:\\quot\\\\quot\\;//crlf////tab////tab////tab//Datalist:\\quot\\\\quot\\;//crlf////tab////tab////tab//Selected:\\quot\\\\quot\\;//crlf////tab////tab////tab//DriverParams:\\quot\\\\quot\\;//crlf////tab////tab////tab//Filter:\\quot\\\\quot\\;//crlf////tab////tab////tab//SystemDriverName:\\quot\\\\quot\\;//crlf////tab////tab//> Only accounts to be exported//crlf////tab//</span>//crlf////crlf////tab//<!include type:driver;//crlf////tab////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab////tab//title: \\quot\\\\quot\\;//crlf////tab////tab//ID: \\quot\\__salt__\\quot\\;//crlf////tab////tab//HashID: \\quot\\\\quot\\;//crlf////tab////tab//driver: \\quot\\POS_GENERIC_CHART_OF_ACCOUNTS\\quot\\;//crlf////tab////tab//name: \\quot\\\\quot\\;//crlf////tab////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab////tab//dispose: \\quot\\false\\quot\\;//crlf////tab////tab//state: \\quot\\\\quot\\;//crlf////tab////tab//params: \\quot\\keyexpression=ID~~pipe~~CacheTtl=0~~pipe~~Metadata=POS_GENERIC_CHART_OF_ACCOUNTS~~pipe~~StoreID=__StoreID__\\quot\\;//crlf////tab////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab////tab//display: \\quot\\\\quot\\;//crlf////tab////tab//fields: \\quot\\\\quot\\;//crlf////tab////tab//IncludeFields: \\quot\\\\quot\\;//crlf////tab////tab//ExcludeFields: \\quot\\\\quot\\;//crlf////tab////tab//sort: \\quot\\ID\\quot\\;//crlf////tab////tab//filter: \\quot\\true\\quot\\;//crlf////tab////tab//class: \\quot\\basic1\\quot\\;//crlf////tab////tab//maxrecords: \\quot\\300\\quot\\;//crlf////tab////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab////tab//style: \\quot\\width:auto\\quot\\;//crlf////tab////tab//canSelect: \\quot\\true\\quot\\;//crlf////tab////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab////tab//canEdit: \\quot\\true\\quot\\;//crlf////tab////tab//canAdd: \\quot\\true\\quot\\;//crlf////tab////tab//canDelete: \\quot\\true\\quot\\;//crlf////tab////tab//inspectMenu: \\quot\\\\quot\\;//crlf////tab////tab//EmbedValues: \\quot\\\\quot\\;//crlf////tab////tab//EditDialogID: \\quot\\POS_GENERIC_CHART_OF_ACCOUNTS__salt__\\quot\\;//crlf////tab////tab//_EditDialogID: \\quot\\DocumentID~~pipe~~Widget~~pipe~~Item~~pipe~~POS_GENERIC_CHART_OF_ACCOUNTS~~pipe~~__salt__\\quot\\;//crlf////tab////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab////tab//ExternalFilters: \\quot\\__salt__FilterRecordType\\comma\\__salt__FilterContainsText\\comma\\__salt__OnlyAccountsToBeExported\\quot\\;//crlf////tab////tab//TableControls: \\quot\\true\\quot\\;//crlf////tab////tab//TableHeader: \\quot\\true\\quot\\;//crlf////tab////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab////tab//RecordCount: \\quot\\true\\quot\\;//crlf////tab////tab//Timestamp: \\quot\\true\\quot\\;//crlf////tab////tab//SelectDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//EditDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//Menu: \\quot\\Update Chart Of Accounts~~pipe~~updateChartOfAccounts\\comma\\View External Chart of Accounts~~pipe~~viewExternalChartOfAccounts\\quot\\;//crlf////tab////tab//Messages: \\quot\\true\\quot\\;//crlf////tab////tab//ChartType: \\quot\\\\quot\\;//crlf////tab////tab//ChartWidth: \\quot\\640\\quot\\;//crlf////tab////tab//ChartHeight: \\quot\\480\\quot\\;//crlf////tab////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab////tab//ChartStyle: \\quot\\display:none\\quot\\;//crlf////tab////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab////tab//_Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab////tab//debug: \\quot\\true\\quot\\;//crlf////tab//>//crlf//</conditional>//crlf////crlf//<div style=\\quot\\width:100px;height:600px\\quot\\></div>//crlf//^
ID=682232|X=151|Y=32|W=1066|H=705|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=709760|AttachLeft=|AlignLeft=709760|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=[!------------------------------------------------------------------------//crlf//This driver is only used during development in order to view the user-defined//crlf//sales driver.  It uses the POS_Generic_User_Defined_Daily_Sales driver which //crlf//is opened with a script driver.  //crlf////crlf//The user-defined structure must be associated with a driver before the fields //crlf//it defines can be read or edited.  The POS_Generic_User_Defined_Daily_Sales //crlf//driver serves this purpose.  The scrpt used to open the driver adds a single //crlf//record to the driver that can be used to read/write the data.  Because the //crlf//data is all stored as external data\\comma\\ it is only necessary to create a single //crlf//dummy record to access the data.//crlf//--------------------------------------------------------------------------]//crlf////crlf//[!------------------------------------------------------------------------//crlf//Constants for Debugging//crlf//--------------------------------------------------------------------------]//crlf//< include type:expression; expression:htmlConstant(\\quot\\StoreID\\quot\\\\comma\\\\quot\\__StoreID__\\quot\\\\comma\\\\quot\\KZX2VBNGExCTHrLmixKxY8eJ\\quot\\)>//crlf//< include type:expression; expression:htmlConstant(\\quot\\Date\\quot\\\\comma\\\\quot\\__Date__\\quot\\\\comma\\\\quot\\07-04-2016\\quot\\)>//crlf////crlf//<conditional expression:(defined(\\quot\\__StoreID__\\quot\\)) and (defined(\\quot\\__Date__\\quot\\))>//crlf////tab//<!include type:driver;//crlf////tab////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab////tab//title: \\quot\\\\quot\\;//crlf////tab////tab//ID: \\quot\\\\quot\\;//crlf////tab////tab//HashID: \\quot\\\\quot\\;//crlf////tab////tab//driver: \\quot\\POS_GENERIC_USER_DEFINED_DAILY_SALES\\quot\\;//crlf////tab////tab//name: \\quot\\\\quot\\;//crlf////tab////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab////tab//dispose: \\quot\\false\\quot\\;//crlf////tab////tab//state: \\quot\\\\quot\\;//crlf////tab////tab//params: \\quot\\keyexpression=ID~~pipe~~CacheTtl=0~~pipe~~Metadata=POS_GENERIC_USER_DEFINED_DAILY_SALES~~pipe~~StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\;//crlf////tab////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab////tab//display: \\quot\\\\quot\\;//crlf////tab////tab//fields: \\quot\\\\quot\\;//crlf////tab////tab//IncludeFields: \\quot\\\\quot\\;//crlf////tab////tab//ExcludeFields: \\quot\\\\quot\\;//crlf////tab////tab//sort: \\quot\\ID\\quot\\;//crlf////tab////tab//filter: \\quot\\true\\quot\\;//crlf////tab////tab//BaseFilter: \\quot\\\\quot\\;//crlf////tab////tab//class: \\quot\\basic1\\quot\\;//crlf////tab////tab//maxrecords: \\quot\\250\\quot\\;//crlf////tab////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab////tab//style: \\quot\\width:auto\\quot\\;//crlf////tab////tab//_style: \\quot\\float:left;width:100\\percent\\\\quot\\;//crlf////tab////tab//height:\\quot\\auto\\quot\\;//crlf////tab////tab//maxheight:\\quot\\300px\\quot\\;//crlf////tab////tab//canSelect: \\quot\\false\\quot\\;//crlf////tab////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab////tab//canEdit: \\quot\\false\\quot\\;//crlf////tab////tab//canAdd: \\quot\\false\\quot\\;//crlf////tab////tab//canDelete: \\quot\\false\\quot\\;//crlf////tab////tab//inspectMenu: \\quot\\\\quot\\;//crlf////tab////tab//EmbedValues: \\quot\\\\quot\\;//crlf////tab////tab//EditDialogID: \\quot\\POS_GENERIC_USER_DEFINED_DAILY_SALESDialog\\quot\\;//crlf////tab////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab////tab//ExternalFilters: \\quot\\\\quot\\;//crlf////tab////tab//TableControls: \\quot\\true\\quot\\;//crlf////tab////tab//TableHeader: \\quot\\true\\quot\\;//crlf////tab////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab////tab//RecordCount: \\quot\\true\\quot\\;//crlf////tab////tab//Timestamp: \\quot\\true\\quot\\;//crlf////tab////tab//SelectDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//EditDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//Menu: \\quot\\\\quot\\;//crlf////tab////tab//Messages: \\quot\\true\\quot\\;//crlf////tab////tab//ChartType: \\quot\\\\quot\\;//crlf////tab////tab//ChartWidth: \\quot\\640\\quot\\;//crlf////tab////tab//ChartHeight: \\quot\\480\\quot\\;//crlf////tab////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab////tab//ChartStyle: \\quot\\display:none\\quot\\;//crlf////tab////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab////tab//_Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab////tab//debug: \\quot\\false\\quot\\;//crlf////tab//>//crlf//</conditional>//crlf//^
ID=410103|X=151|Y=32|W=1066|H=705|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=709760|AttachLeft=|AlignLeft=709760|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=[!------------------------------------------------------------------------//crlf//This driver is used during development and shows how the //crlf//POS_Generic_User_Defined_Daily_Sales_Transposed driver can be used to //crlf//transpose the POS_Generic_User_Defined_Daily_Sales driver.  //crlf////crlf//The single record created to read/write the user-defined data is manually //crlf//transposed by the script used to open the transposed driver.  The transposed //crlf//driver uses the daily sales structure.  The script adds a record to the driver //crlf//for each field contained in the user-defined data.//crlf////crlf//For example\\comma\\ user defined data that looks like://crlf////crlf//Paid In ~~pipe~~ Paid Out ~~pipe~~ Deposit Due//crlf//100       200        300//crlf////crlf//Looks like this in the transposed driver//crlf////crlf//Paid In//tab////tab////tab//100//crlf//Paid Out//tab////tab//200//crlf//Deposit Due 300//crlf////crlf//This provides a way to consolidate the user-defined fields with the daily //crlf//sales fields in a single table.  This table is used to export sales to //crlf//an accounting package.//crlf//--------------------------------------------------------------------------]//crlf////crlf//[!------------------------------------------------------------------------//crlf//Constants for Debugging//crlf//--------------------------------------------------------------------------]//crlf//< include type:expression; expression:htmlConstant(\\quot\\StoreID\\quot\\\\comma\\\\quot\\__StoreID__\\quot\\\\comma\\\\quot\\KZX2VBNGExCTHrLmixKxY8eJ\\quot\\)>//crlf//< include type:expression; expression:htmlConstant(\\quot\\Date\\quot\\\\comma\\\\quot\\__Date__\\quot\\\\comma\\\\quot\\07-04-2016\\quot\\)>//crlf////crlf//<conditional expression:(defined(\\quot\\__StoreID__\\quot\\)) and (defined(\\quot\\__Date__\\quot\\))>//crlf////tab//<!include type:driver;//crlf////tab////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab////tab//title: \\quot\\\\quot\\;//crlf////tab////tab//ID: \\quot\\\\quot\\;//crlf////tab////tab//HashID: \\quot\\\\quot\\;//crlf////tab////tab//driver: \\quot\\POS_GENERIC_USER_DEFINED_DAILY_SALES_TRANSPOSED\\quot\\;//crlf////tab////tab//name: \\quot\\\\quot\\;//crlf////tab////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab////tab//dispose: \\quot\\false\\quot\\;//crlf////tab////tab//state: \\quot\\\\quot\\;//crlf////tab////tab//params: \\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__~~pipe~~keyexpression=ID~~pipe~~CacheTtl=0~~pipe~~Metadata=POS_GENERIC_USER_DEFINED_DAILY_SALES_TRANSPOSED\\quot\\;//crlf////tab////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab////tab//display: \\quot\\\\quot\\;//crlf////tab////tab//fields: \\quot\\\\quot\\;//crlf////tab////tab//IncludeFields: \\quot\\\\quot\\;//crlf////tab////tab//ExcludeFields: \\quot\\\\quot\\;//crlf////tab////tab//sort: \\quot\\ID\\quot\\;//crlf////tab////tab//filter: \\quot\\true\\quot\\;//crlf////tab////tab//BaseFilter: \\quot\\\\quot\\;//crlf////tab////tab//class: \\quot\\basic1\\quot\\;//crlf////tab////tab//maxrecords: \\quot\\250\\quot\\;//crlf////tab////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab////tab//style: \\quot\\width:auto\\quot\\;//crlf////tab////tab//_style: \\quot\\float:left;width:100\\percent\\\\quot\\;//crlf////tab////tab//height:\\quot\\auto\\quot\\;//crlf////tab////tab//_maxheight:\\quot\\300px\\quot\\;//crlf////tab////tab//canSelect: \\quot\\false\\quot\\;//crlf////tab////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab////tab//canEdit: \\quot\\false\\quot\\;//crlf////tab////tab//canAdd: \\quot\\false\\quot\\;//crlf////tab////tab//canDelete: \\quot\\false\\quot\\;//crlf////tab////tab//inspectMenu: \\quot\\\\quot\\;//crlf////tab////tab//EmbedValues: \\quot\\\\quot\\;//crlf////tab////tab//EditDialogID: \\quot\\POS_GENERIC_USER_DEFINED_DAILY_SALES_TRANSPOSEDDialog\\quot\\;//crlf////tab////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab////tab//ExternalFilters: \\quot\\\\quot\\;//crlf////tab////tab//TableControls: \\quot\\true\\quot\\;//crlf////tab////tab//TableHeader: \\quot\\true\\quot\\;//crlf////tab////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab////tab//RecordCount: \\quot\\true\\quot\\;//crlf////tab////tab//Timestamp: \\quot\\true\\quot\\;//crlf////tab////tab//SelectDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//EditDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//Menu: \\quot\\\\quot\\;//crlf////tab////tab//Messages: \\quot\\true\\quot\\;//crlf////tab////tab//ChartType: \\quot\\\\quot\\;//crlf////tab////tab//ChartWidth: \\quot\\640\\quot\\;//crlf////tab////tab//ChartHeight: \\quot\\480\\quot\\;//crlf////tab////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab////tab//ChartStyle: \\quot\\display:none\\quot\\;//crlf////tab////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab////tab//_Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab////tab//debug: \\quot\\false\\quot\\;//crlf////tab//>//crlf//</conditional>//crlf////crlf//<div style=\\quot\\width:100px;height:800px\\quot\\></div>^
ID=75851|X=151|Y=32|W=785|H=667|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=709760|AttachLeft=|AlignLeft=709760|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>//crlf////tab//__StoreID__//crlf////tab//{@gfs(getStoreDir(\\quot\\__StoreID__\\quot\\)+\\quot\\department.bin\\quot\\)}//crlf////tab//{@if(formatDate(now()\\comma\\\\quot\\MMddyyyy\\quot\\)=\\quot\\05062017\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//[!------------------------------------------------------------------------//crlf//Debugging//crlf//< include type:expression; expression:htmlConstant(\\quot\\StoreID\\quot\\\\comma\\\\quot\\__StoreID__\\quot\\\\comma\\\\quot\\8hTQyq2TgiCeECBRw7mOR57L\\quot\\)>//crlf//--------------------------------------------------------------------------]//crlf////crlf//<include type:expression; expression:htmlConstant(\\quot\\salt\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\lowercase(getSalt(4)))>//crlf////crlf//<conditional expression:(not(defined(\\quot\\__StoreID__\\quot\\)))>//crlf////tab//Error: Missing StoreID//crlf//</conditional>//crlf////crlf//<conditional expression:(defined(\\quot\\__StoreID__\\quot\\))>//crlf////tab//<!-- Dialog used to edit a record -->//crlf////tab//<div ID=\\quot\\POS_GENERIC_POS_IDS_DEPARTMENTS__salt__\\quot\\ class=\\quot\\default_table_dialog\\quot\\ style=\\quot\\height:auto; width:100\\percent\\; max-width:300px; display:none;\\quot\\>//crlf////tab////tab//<div style=\\quot\\padding:5px;width:100\\percent\\\\quot\\>//crlf////tab////tab////tab//<!-- set this image to visible to include a close icon when the dialog header is disabled -->//crlf////tab////tab////tab//<div class=\\quot\\EditDialogCloseIcon\\quot\\ onclick=\\quot\\closeTableEditDialog(this)\\quot\\></div>//crlf////crlf////tab////tab////tab//<!--//tab//Note:  If a a Javascript function named initializeDialogxxx where xxx is the dialog ID is defined\\comma\\ //crlf////tab////tab////tab////tab//it will be called//tab//after the dialog values have been set and before the dialog is made visible.//crlf////tab////tab////tab////tab////crlf////tab////tab////tab////tab//An initialization function may also be specified by including it in an attribute named 'aspectinit'//crlf////tab////tab////tab////tab//in the dialog div above.  Only include the function name with no parentheses or arguments.  //crlf////tab////tab////tab////tab//Arguments can be made//tab//available to the function by including them as attributes or by embedding //crlf////tab////tab////tab////tab//them in this div.  Use this method when the dialog ID is randomized to allow for multiple instances//crlf////tab////tab////tab////tab//in one document.//crlf////crlf////tab////tab////tab////tab//If an Aspect script is defined with the ID xxx_DataSubmitted where xxx is the driver ID\\comma\\ it will//crlf////tab////tab////tab////tab//be called whenever data is submitted due to an edit in either the table or the dialog.//crlf////tab////tab////tab////tab//Arguments passed to the script are in the form://crlf////crlf////tab////tab////tab////tab////tab//driver=xxx//amp//r=n//amp//fields=//amp//values=//crlf////crlf////tab////tab////tab////tab//where driver is the name of a system driver\\comma\\ r is the absolute record number\\comma\\//crlf////tab////tab////tab////tab//fields is a pipe-delimited list of field ID's and values is a pipe-delimited list of//crlf////tab////tab////tab////tab//values.  Ampersands and pipes in the values are tokenized by surrounding//crlf////tab////tab////tab////tab//them with two forward slashes.//crlf////tab////tab////tab//-->//crlf////tab// //crlf////tab////tab////tab//<!include type:expression; expression:htmlConstant(\\quot\\TextFieldWidth\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\\\quot\\300px\\quot\\)>//crlf////tab////tab////tab//<!include type:expression; expression:htmlConstant(\\quot\\NumberFieldWidth\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\\\quot\\150px\\quot\\)>//crlf////crlf////tab////tab////tab//<!-- The TableEditDialogTabsContainerExclusive and TableEditDialogSelectContainerExclusive//crlf////tab////tab////tab////tab//classes are used to make either the tabs or the select box visible\\comma\\ depending on the//crlf////tab////tab////tab////tab//size of the browser.  If only one or two tabs are to be included\\comma\\ the //crlf////tab////tab////tab////tab//TableEditDialogTabsContainer class can be used for the tabs and the select box can//crlf////tab////tab////tab////tab//be ommitted.//crlf////tab////tab////tab//-->//crlf////tab////tab////tab//<div class=\\quot\\TableEditDialogTabsContainerExclusive\\quot\\>//crlf////tab////tab////tab////tab//<table class='tabdialog'>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'__salt__Main')\\quot\\>Department</span></td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//</table>//tab////crlf////tab////tab////tab//</div>//crlf////crlf////tab////tab////tab//<div class=\\quot\\TableEditDialogSelectContainerExclusive\\quot\\>//crlf////tab////tab////tab////tab//<select onChange=\\quot\\showTab(this);this.blur();\\quot\\ class=\\quot\\TableEditDialogSelect\\quot\\>//crlf////tab////tab////tab////tab////tab//<option value='__salt__main'>Department</option>//crlf////tab////tab////tab////tab//</select>//crlf////tab////tab////tab//</div>//crlf////crlf////tab////tab////tab//<!-- Main -->//crlf////tab////tab////tab//<div ID=\\quot\\__salt__Main\\quot\\ class=\\quot\\DialogTabContent\\quot\\>//crlf////tab////tab////tab////tab//<table style=\\quot\\width:auto\\quot\\>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td>POS ID</td>//crlf////tab////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ ONKEYDOWN=\\quot\\return keyDown(event\\comma\\this);\\quot\\ STYLE=\\quot\\width:100\\percent\\;max-width:__TextFieldWidth__\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Number\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td>Name</td>//crlf////tab////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ ONKEYDOWN=\\quot\\return keyDown(event\\comma\\this);\\quot\\ STYLE=\\quot\\width:100\\percent\\;max-width:__TextFieldWidth__\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Name\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//</table>//crlf////tab////tab////tab//</div>//crlf////crlf////tab////tab//</div>//crlf////tab//</div>//crlf////crlf////tab//<!include type:driver;//crlf////tab////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab////tab//title: \\quot\\\\quot\\;//crlf////tab////tab//HashID: \\quot\\\\quot\\;//crlf////tab////tab//driver: \\quot\\POS_GENERIC_POS_IDS_DEPARTMENTS\\quot\\;//crlf////tab////tab//name: \\quot\\\\quot\\;//crlf////tab////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab////tab//dispose: \\quot\\false\\quot\\;//crlf////tab////tab//state: \\quot\\\\quot\\;//crlf////tab////tab//params: \\quot\\StoreID=__StoreID__~~pipe~~keyexpression=ID~~pipe~~CacheTtl=0~~pipe~~Metadata=POS_GENERIC_POS_IDS_DEPARTMENTS\\quot\\;//crlf////tab////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab////tab//display: \\quot\\\\quot\\;//crlf////tab////tab//fields: \\quot\\\\quot\\;//crlf////tab////tab//IncludeFields: \\quot\\\\quot\\;//crlf////tab////tab//ExcludeFields: \\quot\\\\quot\\;//crlf////tab////tab//sort: \\quot\\ID\\quot\\;//crlf////tab////tab//filter: \\quot\\true\\quot\\;//crlf////tab////tab//class: \\quot\\basic1\\quot\\;//crlf////tab////tab//maxrecords: \\quot\\300\\quot\\;//crlf////tab////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab////tab//style: \\quot\\width:auto\\quot\\;//crlf////tab////tab//canSelect: \\quot\\true\\quot\\;//crlf////tab////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab////tab//canEdit: \\quot\\true\\quot\\;//crlf////tab////tab//canAdd: \\quot\\true\\quot\\;//crlf////tab////tab//canDelete: \\quot\\true\\quot\\;//crlf////tab////tab//InsertPosition: \\quot\\top\\quot\\;//crlf////tab////tab//RefreshOnDataSubmit: \\quot\\true\\quot\\;//crlf////tab////tab//inspectMenu: \\quot\\\\quot\\;//crlf////tab////tab//EmbedValues: \\quot\\\\quot\\;//crlf////tab////tab//EditDialogID: \\quot\\POS_GENERIC_POS_IDS_DEPARTMENTS__salt__\\quot\\;//crlf////tab////tab//_EditDialogID: \\quot\\DocumentID~~pipe~~Widget~~pipe~~Item~~pipe~~POS_GENERIC_POS_IDS_DEPARTMENTS~~pipe~~__salt__\\quot\\;//crlf////tab////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab////tab//ExternalFilters: \\quot\\\\quot\\;//crlf////tab////tab//TableControls: \\quot\\true\\quot\\;//crlf////tab////tab//TableHeader: \\quot\\true\\quot\\;//crlf////tab////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab////tab//RecordCount: \\quot\\true\\quot\\;//crlf////tab////tab//Timestamp: \\quot\\true\\quot\\;//crlf////tab////tab//SelectDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//EditDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//Menu: \\quot\\\\quot\\;//crlf////tab////tab//faq: \\quot\\\\quot\\;//crlf////tab////tab//procedure: \\quot\\\\quot\\;//crlf////tab////tab//video: \\quot\\\\quot\\;//crlf////tab////tab//Messages: \\quot\\true\\quot\\;//crlf////tab////tab//ChartType: \\quot\\\\quot\\;//crlf////tab////tab//ChartWidth: \\quot\\640\\quot\\;//crlf////tab////tab//ChartHeight: \\quot\\480\\quot\\;//crlf////tab////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab////tab//ChartStyle: \\quot\\display:none\\quot\\;//crlf////tab////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab////tab//_Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab////tab//debug: \\quot\\false\\quot\\;//crlf////tab//>//crlf//</conditional>//crlf////crlf////crlf//^
ID=769496|X=151|Y=32|W=881|H=693|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=709760|AttachLeft=|AlignLeft=709760|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=[!------------------------------------------------------------------------//crlf//This driver is used to edit tender definitions for a single store.//crlf//This is used to set the checkbox indicating that a tender is a cash tender.//crlf////crlf//Parameters://crlf////tab//StoreID - ID of store//crlf//--------------------------------------------------------------------------]//crlf//<state>//crlf////tab//__StoreID__//crlf////tab//{@gfs(getStoreDir(\\quot\\__StoreID__\\quot\\)+\\quot\\tender.bin\\quot\\)}//crlf////tab//{@if(formatDate(now()\\comma\\\\quot\\MMddyyyy\\quot\\)=\\quot\\04162016\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf////tab//1.0//crlf//</state>//crlf////crlf//<conditional expression:not(defined(\\quot\\__StoreID__\\quot\\))>//crlf////tab//Error: Missing StoreID<br>//crlf//</conditional>//crlf////crlf//<include type:expression; expression:htmlConstant(\\quot\\salt\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\lowercase(getSalt(4)))>//crlf////crlf//[!------------------------------------------------------------------------//crlf//Debugging//crlf//< _include type:expression; expression:htmlConstant(\\quot\\StoreID\\quot\\\\comma\\\\quot\\__StoreID__\\quot\\\\comma\\\\quot\\KZX2VBNGExCTHrLmixKxY8eJ\\quot\\)>//crlf//--------------------------------------------------------------------------]//crlf////crlf//<conditional expression:(defined(\\quot\\__StoreID__\\quot\\))>//crlf////tab//<!include type:driver;//crlf////tab////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab////tab//title: \\quot\\\\quot\\;//crlf////tab////tab//ID: \\quot\\\\quot\\;//crlf////tab////tab//HashID: \\quot\\\\quot\\;//crlf////tab////tab//driver: \\quot\\POS_GENERIC_POS_IDS_COMPS\\quot\\;//crlf////tab////tab//name: \\quot\\\\quot\\;//crlf////tab////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab////tab//dispose: \\quot\\false\\quot\\;//crlf////tab////tab//state: \\quot\\\\quot\\;//crlf////tab////tab//params: \\quot\\StoreID=__StoreID__~~pipe~~keyexpression=ID~~pipe~~CacheTtl=0~~pipe~~Metadata=POS_GENERIC_POS_IDS_COMPS\\quot\\;//crlf////tab////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab////tab//display: \\quot\\\\quot\\;//crlf////tab////tab//fields: \\quot\\\\quot\\;//crlf////tab////tab//IncludeFields: \\quot\\\\quot\\;//crlf////tab////tab//ExcludeFields: \\quot\\\\quot\\;//crlf////tab////tab//sort: \\quot\\ID\\quot\\;//crlf////tab////tab//filter: \\quot\\true\\quot\\;//crlf////tab////tab//BaseFilter: \\quot\\\\quot\\;//crlf////tab////tab//class: \\quot\\basic1\\quot\\;//crlf////tab////tab//maxrecords: \\quot\\250\\quot\\;//crlf////tab////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab////tab//style: \\quot\\width:auto\\quot\\;//crlf////tab////tab//_style: \\quot\\float:left;width:100\\percent\\\\quot\\;//crlf////tab////tab//height:\\quot\\auto\\quot\\;//crlf////tab////tab//_maxheight:\\quot\\300px\\quot\\;//crlf////tab////tab//canSelect: \\quot\\false\\quot\\;//crlf////tab////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab////tab//canEdit: \\quot\\false\\quot\\;//crlf////tab////tab//canAdd: \\quot\\false\\quot\\;//crlf////tab////tab//canDelete: \\quot\\false\\quot\\;//crlf////tab////tab//inspectMenu: \\quot\\\\quot\\;//crlf////tab////tab//EmbedValues: \\quot\\\\quot\\;//crlf////tab////tab//EditDialogID: \\quot\\\\quot\\;//crlf////tab////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab////tab//ExternalFilters: \\quot\\\\quot\\;//crlf////tab////tab//TableControls: \\quot\\true\\quot\\;//crlf////tab////tab//TableHeader: \\quot\\true\\quot\\;//crlf////tab////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab////tab//RecordCount: \\quot\\true\\quot\\;//crlf////tab////tab//Timestamp: \\quot\\true\\quot\\;//crlf////tab////tab//SelectDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//EditDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//Menu: \\quot\\\\quot\\;//crlf////tab////tab//faq: \\quot\\\\quot\\;//crlf////tab////tab//procedure: \\quot\\\\quot\\;//crlf////tab////tab//video: \\quot\\\\quot\\;//crlf////tab////tab//Messages: \\quot\\true\\quot\\;//crlf////tab////tab//ChartType: \\quot\\\\quot\\;//crlf////tab////tab//ChartWidth: \\quot\\640\\quot\\;//crlf////tab////tab//ChartHeight: \\quot\\480\\quot\\;//crlf////tab////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab////tab//ChartStyle: \\quot\\display:none\\quot\\;//crlf////tab////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab////tab//_Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab////tab//debug: \\quot\\false\\quot\\;//crlf////tab//>//crlf//</conditional>//crlf////crlf//^
ID=551550|X=151|Y=32|W=858|H=707|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=709760|AttachLeft=|AlignLeft=709760|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=[!------------------------------------------------------------------------//crlf//This driver is used to edit tender definitions for a single store.//crlf//This is used to set the checkbox indicating that a tender is a cash tender.//crlf////crlf//Parameters://crlf////tab//StoreID - ID of store//crlf//--------------------------------------------------------------------------]//crlf//<state>//crlf////tab//__StoreID__//crlf////tab//{@gfs(getStoreDir(\\quot\\__StoreID__\\quot\\)+\\quot\\tender.bin\\quot\\)}//crlf////tab//{@if(formatDate(now()\\comma\\\\quot\\MMddyyyy\\quot\\)=\\quot\\04162016\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf////tab//1.0//crlf//</state>//crlf////crlf//<conditional expression:not(defined(\\quot\\__StoreID__\\quot\\))>//crlf////tab//Error: Missing StoreID<br>//crlf//</conditional>//crlf////crlf//<include type:expression; expression:htmlConstant(\\quot\\salt\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\lowercase(getSalt(4)))>//crlf////crlf//[!------------------------------------------------------------------------//crlf//Debugging//crlf//< _include type:expression; expression:htmlConstant(\\quot\\StoreID\\quot\\\\comma\\\\quot\\__StoreID__\\quot\\\\comma\\\\quot\\KZX2VBNGExCTHrLmixKxY8eJ\\quot\\)>//crlf//--------------------------------------------------------------------------]//crlf////crlf//<conditional expression:(defined(\\quot\\__StoreID__\\quot\\))>//crlf////tab//<!include type:driver;//crlf////tab////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab////tab//title: \\quot\\\\quot\\;//crlf////tab////tab//ID: \\quot\\\\quot\\;//crlf////tab////tab//HashID: \\quot\\\\quot\\;//crlf////tab////tab//driver: \\quot\\POS_GENERIC_POS_IDS_DISCOUNT\\quot\\;//crlf////tab////tab//name: \\quot\\\\quot\\;//crlf////tab////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab////tab//dispose: \\quot\\false\\quot\\;//crlf////tab////tab//state: \\quot\\\\quot\\;//crlf////tab////tab//params: \\quot\\StoreID=__StoreID__~~pipe~~keyexpression=ID~~pipe~~CacheTtl=0~~pipe~~Metadata=POS_GENERIC_POS_IDS_DISCOUNT\\quot\\;//crlf////tab////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab////tab//display: \\quot\\\\quot\\;//crlf////tab////tab//fields: \\quot\\\\quot\\;//crlf////tab////tab//IncludeFields: \\quot\\\\quot\\;//crlf////tab////tab//ExcludeFields: \\quot\\\\quot\\;//crlf////tab////tab//sort: \\quot\\ID\\quot\\;//crlf////tab////tab//filter: \\quot\\true\\quot\\;//crlf////tab////tab//BaseFilter: \\quot\\\\quot\\;//crlf////tab////tab//class: \\quot\\basic1\\quot\\;//crlf////tab////tab//maxrecords: \\quot\\250\\quot\\;//crlf////tab////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab////tab//style: \\quot\\width:auto\\quot\\;//crlf////tab////tab//_style: \\quot\\float:left;width:100\\percent\\\\quot\\;//crlf////tab////tab//height:\\quot\\auto\\quot\\;//crlf////tab////tab//_maxheight:\\quot\\300px\\quot\\;//crlf////tab////tab//canSelect: \\quot\\false\\quot\\;//crlf////tab////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab////tab//canEdit: \\quot\\false\\quot\\;//crlf////tab////tab//canAdd: \\quot\\false\\quot\\;//crlf////tab////tab//canDelete: \\quot\\false\\quot\\;//crlf////tab////tab//inspectMenu: \\quot\\\\quot\\;//crlf////tab////tab//EmbedValues: \\quot\\\\quot\\;//crlf////tab////tab//EditDialogID: \\quot\\\\quot\\;//crlf////tab////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab////tab//ExternalFilters: \\quot\\\\quot\\;//crlf////tab////tab//TableControls: \\quot\\true\\quot\\;//crlf////tab////tab//TableHeader: \\quot\\true\\quot\\;//crlf////tab////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab////tab//RecordCount: \\quot\\true\\quot\\;//crlf////tab////tab//Timestamp: \\quot\\true\\quot\\;//crlf////tab////tab//SelectDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//EditDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//Menu: \\quot\\\\quot\\;//crlf////tab////tab//faq: \\quot\\\\quot\\;//crlf////tab////tab//procedure: \\quot\\\\quot\\;//crlf////tab////tab//video: \\quot\\\\quot\\;//crlf////tab////tab//Messages: \\quot\\true\\quot\\;//crlf////tab////tab//ChartType: \\quot\\\\quot\\;//crlf////tab////tab//ChartWidth: \\quot\\640\\quot\\;//crlf////tab////tab//ChartHeight: \\quot\\480\\quot\\;//crlf////tab////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab////tab//ChartStyle: \\quot\\display:none\\quot\\;//crlf////tab////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab////tab//_Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab////tab//debug: \\quot\\false\\quot\\;//crlf////tab//>//crlf//</conditional>//crlf////crlf//^
ID=275986|X=151|Y=32|W=1237|H=703|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=709760|AttachLeft=|AlignLeft=709760|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<_include type:expression; expression:htmlConstant(\\quot\\salt\\quot\\\\comma\\\\quot\\__salt__\\quot\\\\comma\\lowercase(getSalt(4)))>//crlf//<_include type:expression; expression:htmlConstant(\\quot\\salt_sales\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\lowercase(getSalt(4)))>//crlf//<_include type:expression; expression:htmlConstant(\\quot\\salt_labor\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\lowercase(getSalt(4)))>//crlf////crlf//[!------------------------------------------------------------------------//crlf//Debugging constants//crlf//Period is 1-daily\\comma\\ 2-weekly\\comma\\ 3-monthly//crlf//--------------------------------------------------------------------------]//crlf//<_include type:expression; expression:htmlConstant(\\quot\\Period\\quot\\\\comma\\\\quot\\__Period__\\quot\\\\comma\\\\quot\\2\\quot\\)>//crlf//<_include type:expression; expression:htmlConstant(\\quot\\StoreID\\quot\\\\comma\\\\quot\\__StoreID__\\quot\\\\comma\\\\quot\\zVRMH84Ex0PGgyOVeA4y1rup\\quot\\)>//crlf//<_include type:expression; expression:htmlConstant(\\quot\\To\\quot\\\\comma\\\\quot\\__To__\\quot\\\\comma\\\\quot\\07-30-2017\\quot\\)>//crlf////crlf//[!------------------------------------------------------------------------//crlf//Get the starting date//crlf//--------------------------------------------------------------------------]//crlf//<include type:script; commands:\\quot\\//crlf////tab//dtTo=parseTime(\\quot\\__to__\\quot\\)//crlf////crlf////tab//if(\\quot\\__Period__\\quot\\=1)//crlf////tab////tab//dtFrom=incrementTime(dtTo\\comma\\-7)//crlf////tab//elseif(\\quot\\__Period__\\quot\\=2)//crlf////tab////tab//dtFrom=incrementTime(dtTo\\comma\\-35)//crlf////tab//elseif(\\quot\\__Period__\\quot\\=3)//crlf////tab////tab//dtFrom=parseTime(\\quot\\01-01-\\quot\\+year(dtTo)\\comma\\\\quot\\MM-dd-yyyy\\quot\\)//crlf////tab//endif//crlf////crlf////tab//return(htmlConstant(\\quot\\From\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\formatDate(dtFrom\\comma\\\\quot\\MM-dd-yyyy\\quot\\)))//crlf//\\quot\\>//crlf////crlf//[!------------------------------------------------------------------------//crlf//This include tag loads the Period Controllables dimensional view.//crlf//--------------------------------------------------------------------------]//crlf//<!include //crlf////tab//type:view; //crlf////tab//viewid:\\quot\\0nUM0cWi\\quot\\; //crlf////tab//Source:\\quot\\\\quot\\; //crlf////tab//params:\\quot\\salt=salt_sales//amp////crlf////tab////tab//ExternalFilters=//amp////crlf////tab////tab//StoreID=__StoreID__//amp////crlf////tab////tab//Period=__Period__//amp////crlf////tab////tab//From=__From__//amp////crlf////tab////tab//To=__To__//amp////crlf////tab////tab//InspectMenu=\\quot\\;//crlf//>//crlf////crlf//[!------------------------------------------------------------------------//crlf//This includes the Period Labor dimensional view.  It is not currently used //crlf//because labor has been included in the table above.//crlf//--------------------------------------------------------------------------]//crlf//[!------------------------------------------------------------------------//crlf//< include //crlf////tab//type:view; //crlf////tab//viewid:\\quot\\re30SCLX\\quot\\; //crlf////tab//Source:\\quot\\\\quot\\; //crlf////tab//params:\\quot\\salt=salt_labor//amp////crlf////tab////tab//ExternalFilters=//amp////crlf////tab////tab//StoreID=__StoreID__//amp////crlf////tab////tab//Period=__Period__//amp////crlf////tab////tab//From=__From__//amp////crlf////tab////tab//To=__To__//amp////crlf////tab////tab//InspectMenu=\\quot\\;//crlf//>//crlf//--------------------------------------------------------------------------]//crlf////crlf//<!--servertimer=false-->//crlf//__servertimerresults__//crlf////crlf//<div style=\\quot\\width:100px;height:800px\\quot\\></div>//crlf//^
ID=627685|X=151|Y=32|W=901|H=555|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=709760|AttachLeft=|AlignLeft=709760|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=[!------------------------------------------------------------------------//crlf//This item opens the Sales Summary dimensional view.  This item provides //crlf//a state expression and allows for filters and driver params.//crlf//--------------------------------------------------------------------------]//crlf//<state>//crlf////tab//__StoreID__//crlf////tab//__From__//crlf////tab//__To__//crlf////tab//{@gfs(getSetTime(\\quot\\__From__\\quot\\\\comma\\\\quot\\__To__\\quot\\\\comma\\1440*60\\comma\\\\quot\\MM-dd-yyyy\\quot\\\\comma\\\\quot\\\\quot\\\\comma\\getStoreDir(\\quot\\__StoreID__\\quot\\)+\\quot\\sales.$e$.bin;\\quot\\+getStoreDir(\\quot\\__StoreID__\\quot\\)+\\quot\\salesadd.$e$.bin;\\quot\\+getStoreDir(\\quot\\__StoreID__\\quot\\)+\\quot\\ckd.$e$.bin;\\quot\\+getStoreDir(\\quot\\__StoreID__\\quot\\)+\\quot\\ckh.$e$.bin\\quot\\\\comma\\char(0x3B)))} //crlf////tab//{@gfs(getStoreDir(\\quot\\__StoreID__\\quot\\) + \\quot\\category.bin\\quot\\)}//crlf////tab//{@gfs(getStoreDir(\\quot\\__StoreID__\\quot\\) + \\quot\\department.bin\\quot\\)}//crlf////tab//{@gfs(getStoreDir(\\quot\\__StoreID__\\quot\\) + \\quot\\customsalesfields.bin\\quot\\)}//crlf////tab//{@gfs(getToken(\\quot\\homedir\\quot\\)+\\quot\\Aspect_BackOffice\local_widgets.html\\quot\\)}//crlf////tab//{ @if(formatDate(now()\\comma\\\\quot\\MMddyyyy\\quot\\)=\\quot\\01272018\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//[!------------------------------------------------------------------------//crlf//Debugging//crlf//< include type:expression; expression:htmlConstant(\\quot\\StoreID\\quot\\\\comma\\\\quot\\__StoreID__\\quot\\\\comma\\\\quot\\Es134hBQNJBUojYEL0ZGpNLO\\quot\\)>//crlf//<include type:expression; expression:htmlConstant(\\quot\\From\\quot\\\\comma\\\\quot\\__From__\\quot\\\\comma\\\\quot\\01-08-2018\\quot\\)>//crlf//<include type:expression; expression:htmlConstant(\\quot\\To\\quot\\\\comma\\\\quot\\__To__\\quot\\\\comma\\\\quot\\01-14-2018\\quot\\)>//crlf//--------------------------------------------------------------------------]//crlf////crlf//<include type:expression; expression:htmlConstant(\\quot\\salt\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\lowercase(getSalt(4)))>//crlf////crlf////crlf//<conditional expression:(\\quot\\{@formatDate(now()\\comma\\\\quot\\MMddyyyy\\quot\\)}\\quot\\=\\quot\\01262018\\quot\\) or (defined(\\quot\\__StoreID__\\quot\\))>//crlf////crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\Display\\quot\\\\comma\\\\quot\\__Display__\\quot\\\\comma\\\\quot\\\\quot\\)>//crlf////crlf////tab//[!------------------------------------------------------------------------//crlf////tab//Hesder//crlf////tab//--------------------------------------------------------------------------]//crlf////tab//<div>//crlf////tab////tab//<h1>{@getStoreName(\\quot\\__StoreID__\\quot\\)}</h1>//crlf////tab////tab//<h1>Sales Summary : __From__ - __To__</h1>//crlf////tab//</div>//crlf////crlf////tab//[!------------------------------------------------------------------------//crlf////tab//Include the sales summary dimensional view//crlf////tab//--------------------------------------------------------------------------]//crlf////tab//<!include//crlf////tab////tab//type:view;//crlf////tab////tab//viewid:\\quot\\BRmulCu3\\quot\\;//crlf////tab////tab//Source:\\quot\\\\quot\\;//crlf////tab////tab//params:\\quot\\salt=__salt__//amp////crlf////tab////tab////tab//ExternalFilters=//amp////crlf////tab////tab////tab//BaseFilter=//amp////crlf////tab////tab////tab//StoreID=__StoreID__//amp////crlf////tab////tab////tab//From=__From__//amp////crlf////tab////tab////tab//To=__To__//amp////crlf////tab////tab////tab//Display=__Display__//amp////crlf////tab////tab////tab//InspectMenu=//amp////crlf////tab////tab////tab//jsviewid=\\quot\\;//crlf////tab//>//crlf//</conditional>//crlf////crlf//<div style=\\quot\\width:100px;height:100px\\quot\\></div>//crlf//
</widget><widget name="Daily Sales" group="Sales" category="Dependent Drivers" description="Contains the updateDailySalesSingleDay agent action used to update a daily sales driver for a single day.  

Also acts as an agent to create daily sales files when check details are updated.  This is not required since the daily sales driver is a dependent driver and will be updated as necessary.  This agent just updates the file before it's needed to speed up processing." type="Container" Mobile="false" Processing=0 metadata="" IncludeInViewer="false" PublicName="Daily Sales" modified="07-13-2022 22:41:44" modifiedby="Thnikpad3" TaskEnabled=true IsAgent=true ContainsAgentSensors=true ContainsAgentActions=true TaskInitialStartTime=03-09-2016 00:00:00:000 TaskIntervalType=0 TaskLastExecuted= TaskCatchUpMissedTasks=false TaskYearsBetweenExecution=0 TaskMonthsBetweenExecution=0 TaskDaysBetweenExecution=0 TaskHoursBetweenExecution=0 TaskMinutesBetweenExecution=1 TaskSecondsBetweenExecution=0 TaskExecuteSun=true TaskExecuteMon=true TaskExecuteTue=true TaskExecuteWed=true TaskExecuteThu=true TaskExecuteFri=true TaskExecuteSat=true TaskConditional_Expression="(not(isServer())) and (not(boolean(getSystemValue(\\quote\\DevelopmentMode\\quote\\)))) and (value(getToken(\\quote\\AspectCoreVersion\\quote\\))\\gt\\=7.52) and (scriptCount(\\quote\\Aspect_BackOffice_execPosSynchTask\\quote\\)=0) and (hour(now())\\gt\\6) and (now()-value(getToken(\\quote\\LastPOSSynch\\quote\\))\\gt\\10*60*1000)" TaskConditional_Expression_Description="There is a problem with this agent attempting to update the daily sales driver while check details are being imported.  The hour check is a temporary fix." TaskState_Function="gfs(getBackofficeFilespec(\\quote\\\\quote\\,\\quote\\sales.*|ckd.*\\quote\\,incrementTime(LastBusinessDay(\\quote\\00:00\\quote\\),-30),LastBusinessDay(\\quote\\00:00\\quote\\),char(0x3B)))" TaskState_Expression_Description="Executes whenever sales or check detail files are modified for the last 30 days." TaskWidgetParams="" TaskWindowForExecution=0>
Preferences|toolboxx=65|toolboxy=79|aspectfuncx=221|aspectfuncy=100|aspectfuncw=844|aspectfunch=807|aspectfuncLock=true|aspectfuncVisible=false|PublishFtpFilename=Daily Sales.html|PublishToFtpSite=false|PublishFTPAccount=0|PublishFtpDirectory=/|PublishFtpPublicDirectory=/|PublishCopyFile=false|PublishCopyFilename=|PublishWysiwig=false|PublishIncludeAspectScript=false|PublishIncludeAspectStyleshet=false|PublishAsText=false|^
ID=top_bar|X=0|Y=0|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=false|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=left_bar|X=0|Y=16|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=false|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=top_bar|AttachLeft=|AlignLeft=top_bar|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=code|X=300|Y=100|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<table class='tabdialog'>//crlf////tab//<tr>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'368278')\\quot\\>Javascript</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AspectScript')\\quot\\>AspectScript</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'sensor_list')\\quot\\>Sensors</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'action_list')\\quot\\>Actions</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'check_details')\\quot\\>Check Detail Driver</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'daily_sales')\\quot\\>Daily Sales Driver</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'373826')\\quot\\>User Struct</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'debug_console')\\quot\\>Console</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'313539')\\quot\\>Notes</span></td>//crlf////tab//</tr>//crlf//</table>^
ID=368278|X=300|Y=127|W=796|H=663|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=Javascript|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=AspectScript|X=300|Y=127|W=796|H=663|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Aspect_Script|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=sensor_list|X=300|Y=127|W=796|H=663|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=Aspect_Script|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>//crlf////tab//{@if(\\quot\\__SensorExec__\\quot\\=\\quot\\true\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf////tab//{@if(getSystemValue(\\quot\\DevelopmentMode\\quot\\)\\comma\\fileModified(getToken(\\quot\\homedir\\quot\\)+\\quot\\cache\WidgetEdit_VWaUGu88BMN0hDYWzZj57VpG_Daily Sales.html\\quot\\)\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//<conditional expression:(\\quot\\__sensor_list__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab//Daily Sales\\comma\\CollectionDailySalesFieldNamesById\\comma\\sensor_list\\comma\\Sensor=CollectionDailySalesFieldNamesById\\comma\\private//crlf////tab//Daily Sales\\comma\\collectionDailySalesValueByFieldID\\comma\\sensor_list\\comma\\Sensor=collectionDailySalesValueByFieldID\\comma\\private//crlf//</conditional>//crlf////crlf//[!------------------------------------------------------------------------//crlf//CollectionDailySalesFieldNamesById//crlf//--------------------------------------------------------------------------]//crlf//<conditional expression:(\\quot\\__sensor__\\quot\\=\\quot\\CollectionDailySalesFieldNamesById\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__SensorDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//This is a sensor collection used to get a collection of field names by ID from the //crlf////tab////tab//daily sales driver\\comma\\ including any user-defined fields.  Sales fields are read from //crlf////tab////tab//the 7 most recent daily sales drivers in the last 90 days.//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__SensorParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//StoreID - Store ID//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__SensorReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__SensorExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\CollectionDailySalesFieldNamesById\\quot\\; commands:\\quot\\//crlf////tab////tab////tab////enable profiling//crlf////tab////tab////tab//if(getToken(\\quot\\AspectHashID\\quot\\)=\\quot\\4idczse69\\quot\\)//crlf////tab////tab////tab////tab//profile()//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab//dSensor=getSalt(4)//crlf////tab////tab////tab//driverOpen(Sensor_Collection\\comma\\dSensor\\comma\\WRITE\\comma\\true)//crlf////crlf////tab////tab////tab////abort if missing StoreID //crlf////tab////tab////tab//if(undefined(\\quot\\__StoreID__\\quot\\))//crlf////tab////tab////tab////tab//appendToLog(\\quot\\Error: Missing Store ID\\quot\\)//crlf////tab////tab////tab////tab//return(dSensor)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////initialize a hashtable used to track fields that have been added//crlf////tab////tab////tab//hashCreate(hashField)//crlf////crlf////tab////tab////tab//sStoreID=\\quot\\__StoreID__\\quot\\//crlf////tab////tab////tab//sStoreDir=getStoreDir(sStoreID)//crlf////crlf////tab////tab////tab////add fields from user-defined structure//crlf////tab////tab////tab////These fields are added first because the external sales record is added to the //crlf////tab////tab////tab////driver when fields are read from the daily sales drivers in the next step.//crlf////tab////tab////tab////Descriptions are not available for user-defined fields in those drivers\\comma\\ so //crlf////tab////tab////tab////get them here first.  Since the fields are added to the hashtable\\comma\\ they will//crlf////tab////tab////tab////not be added again below.//crlf////tab////tab////tab//driverOpen(POS_Generic_User_Defined_Daily_Sales_Struct\\comma\\dUserDefined\\comma\\READ\\comma\\false\\comma\\\\quot\\StoreID=\\quot\\+sStoreID)//crlf////tab////tab////tab//driverSetFilter(dUserDefined\\comma\\\\quot\\true\\quot\\\\comma\\true)//crlf////tab////tab////tab//c=driverGetRecordCount(dUserDefined)//crlf////tab////tab////tab//n=0//crlf////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab//sFieldID=driverGetField(dUserDefined\\comma\\\\quot\\FieldID\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab//sName=driverGetField(dUserDefined\\comma\\\\quot\\Description\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab//r=driverAddNewRecord(dSensor)//crlf////tab////tab////tab////tab//driverPutFieldAbsolute(dSensor\\comma\\\\quot\\Index\\quot\\\\comma\\r\\comma\\sFieldID)//crlf////tab////tab////tab////tab//driverPutFieldAbsolute(dSensor\\comma\\\\quot\\Value\\quot\\\\comma\\r\\comma\\sName)//crlf////tab////tab////tab////tab//hashPut(hashField\\comma\\sFieldID\\comma\\sName)//crlf////tab////tab////tab////tab//n++//crlf////tab////tab////tab//endwhile//crlf////tab////tab////tab//driverClose(dUserDefined)//crlf////crlf////tab////tab////tab////look for files from the last 30 days//crlf////tab////tab////tab//dt2=now(true)//crlf////tab////tab////tab//dt1=incrementTime(dt2\\comma\\-90)//crlf////tab////tab////tab//cAddedFile=0//crlf////tab////tab////tab//dt=dt2//crlf////tab////tab////tab//while((dt>=dt1) and (cAddedFile<7))//crlf////tab////tab////tab////tab//sDate=formatDate(dt\\comma\\\\quot\\MM-dd-yyyy\\quot\\)//crlf////tab////tab////tab////tab//Filename=sStoreDir+\\quot\\sales.\\quot\\+sDate+\\quot\\.bin\\quot\\//crlf////tab////tab////tab////tab//if(fileExists(Filename))//crlf////tab////tab////tab////tab////tab//sParams=\\quot\\StoreID=\\quot\\+sStoreID+\\quot\\~~pipe~~Date=\\quot\\+sDate+\\quot\\~~pipe~~Transpose=true~~pipe~~TransposeID=Sales_Structure_Field_ID\\quot\\//crlf////tab////tab////tab////tab////tab//driverOpen(POS_Generic_Daily_Sales\\comma\\dSales\\comma\\READ\\comma\\false\\comma\\sParams)//crlf////crlf////tab////tab////tab////tab////tab////look up the correct row in the driver from which to get the name//crlf////tab////tab////tab////tab////tab////This will change if fields are added to the daily sales driver//crlf////tab////tab////tab////tab////tab//nCorrectIndex=-1//crlf////tab////tab////tab////tab////tab//c=driverGetRecordCount(dSales\\comma\\true)//crlf////tab////tab////tab////tab////tab//n=0//crlf////tab////tab////tab////tab////tab//while((n<c) and (nCorrectIndex<0))//crlf////tab////tab////tab////tab////tab////tab//s=driverGetFieldAbsolute(dSales\\comma\\\\quot\\Transpose_ID\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab////tab//if(s=\\quot\\Field Description\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab//nCorrectIndex=n//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab//n++//crlf////tab////tab////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab////tab////tab//appendToLog(\\quot\\Reading field name from record \\quot\\+nCorrectIndex)//crlf////crlf////tab////tab////tab////tab////tab//arField=driverGetFieldIDs(dSales\\comma\\0)//crlf////tab////tab////tab////tab////tab//cField=getElementCount(arField)//crlf////tab////tab////tab////tab////tab//nField=0//crlf////tab////tab////tab////tab////tab//while(nField<cField)//crlf////tab////tab////tab////tab////tab////tab//sFieldID=getElement(arField\\comma\\nField)//crlf////tab////tab////tab////tab////tab////tab//if(sFieldID<>\\quot\\Transpose_ID\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab//if(not(hashContainsKey(hashField\\comma\\sFieldID)))//crlf////tab////tab////tab////tab////tab////tab////tab////tab////---------------------------------------------------------------------//crlf////tab////tab////tab////tab////tab////tab////tab////tab////08-18-2015: Changed the record number from 7 to 20.  It looks like//crlf////tab////tab////tab////tab////tab////tab////tab////tab////fields in the POS_Generic_Daily_Sales structure have been moved//crlf////tab////tab////tab////tab////tab////tab////tab////tab////which causes the record number to be different in the transposed driver//crlf////tab////tab////tab////tab////tab////tab////tab////tab////Look at the transposed driver in the Daily Sales Driver tab to view//crlf////tab////tab////tab////tab////tab////tab////tab////tab////the transposed driver used to create this collection.  The value for //crlf////tab////tab////tab////tab////tab////tab////tab////tab////this collection needs to come from the record where the value in the //crlf////tab////tab////tab////tab////tab////tab////tab////tab////Description field is Field Description.//crlf////tab////tab////tab////tab////tab////tab////tab////tab//////crlf////tab////tab////tab////tab////tab////tab////tab////tab////06-20-2018 - Count the records going down the page.  The correct record //crlf////tab////tab////tab////tab////tab////tab////tab////tab////is the one that has Field Description as the description.//crlf////tab////tab////tab////tab////tab////tab////tab////tab////---------------------------------------------------------------------//crlf////tab////tab////tab////tab////tab////tab////tab////tab////sName=driverGetFieldAbsolute(dSales\\comma\\sFieldID\\comma\\20)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////sName=driverGetFieldAbsolute(dSales\\comma\\sFieldID\\comma\\22)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////sName=driverGetFieldAbsolute(dSales\\comma\\sFieldID\\comma\\24)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sName=driverGetFieldAbsolute(dSales\\comma\\sFieldID\\comma\\nCorrectIndex)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dSensor)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dSensor\\comma\\\\quot\\Index\\quot\\\\comma\\r\\comma\\sFieldID)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dSensor\\comma\\\\quot\\Value\\quot\\\\comma\\r\\comma\\sName)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//hashPut(hashField\\comma\\sFieldID\\comma\\sName)//crlf////tab////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab//nField++//crlf////tab////tab////tab////tab////tab//endwhile//tab////tab////crlf////tab////tab////tab////tab////tab//driverClose(dSales)//crlf////tab////tab////tab////tab////tab//cAddedFile++//crlf////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab//dt=incrementTime(dt\\comma\\-1)//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab//return(dSensor)//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf////crlf//[!------------------------------------------------------------------------//crlf//collectionDailySalesValueByFieldID//crlf//--------------------------------------------------------------------------]//crlf//<conditional expression:(\\quot\\__sensor__\\quot\\=\\quot\\collectionDailySalesValueByFieldID\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__SensorDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//This is a sensor collection used to create a collection of daily sales field ID's //crlf////tab////tab//and associated values for a given field (amount or quantity).  It may be created for //crlf////tab////tab//a specific date or a range of dates.//crlf////crlf////tab////tab//When a collection is created for a single day\\comma\\ all field values are added\\comma\\ including //crlf////tab////tab//date and text fields.  When a range of days is specified\\comma\\ only number fields are //crlf////tab////tab//available.  Date\\comma\\ text and boolean fields will not be included.//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__SensorParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//StoreID - ID of store//crlf////tab////tab//DateFrom - Optional.  Starting date of period (MM-dd-yyyy)/  Defaults to value of //crlf////tab////tab////tab//DateTo to create a collection for a single day if not specified.//crlf////tab////tab//DateTo - Ending date of period (MM-dd-yyyy).  //crlf////tab////tab//Selection - \\quot\\Quanrity\\quot\\ or \\quot\\Amount\\quot\\//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__SensorReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//System driver containing collection//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__SensorExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\collectionDailySalesValueByFieldID\\quot\\; commands:\\quot\\//crlf////tab////tab////tab//appendToLog(\\quot\\collectionDailySalesValueByFieldID StoreID=__StoreID__ DateFrom=__DateFrom__ DateTo=__DateTo__ Selection=__Selection__\\quot\\)//crlf////crlf////tab////tab////tab////enable profiling//crlf////tab////tab////tab//if(getToken(\\quot\\AspectHashID\\quot\\)=\\quot\\4idczse69\\quot\\)//crlf////tab////tab////tab////tab//profile()//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab//dSensor=getSalt(4)//crlf////tab////tab////tab//driverOpen(Sensor_Collection\\comma\\dSensor\\comma\\WRITE\\comma\\true)//crlf////crlf////tab////tab////tab//if(\\quot\\__StoreID__\\quot\\=\\quot\\null\\quot\\)//crlf////tab////tab////tab////tab//appendToLog(\\quot\\collectionDailySalesValueByFieldID aborted because StoreID is null\\quot\\)//crlf////tab////tab////tab////tab//return(dSensor)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if missing StoreID //crlf////tab////tab////tab//if(undefined(\\quot\\__StoreID__\\quot\\))//crlf////tab////tab////tab////tab//appendToLog(\\quot\\Error: Missing Store ID\\quot\\)//crlf////tab////tab////tab////tab//return(dSensor)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if DateTo//crlf////tab////tab////tab//if(undefined(\\quot\\__DateTo__\\quot\\))//crlf////tab////tab////tab////tab//appendToLog(\\quot\\Error: Missing DateTo\\quot\\)//crlf////tab////tab////tab////tab//return(dSensor)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////get selection.  Remove quotes.  The Selection parameter in getDailySalesValue is not //crlf////tab////tab////tab////evaluated\\comma\\ so if the function is called with quotes around the parameter they will appear here//crlf////tab////tab////tab//sSelection=\\quot\\__Selection__\\quot\\//crlf////tab////tab////tab//sSelection=replaceSubstring(sSelection\\comma\\char(0x22)\\comma\\\\quot\\\\quot\\)//crlf////tab////tab////tab//sSelection=replaceSubstring(sSelection\\comma\\char(0x27)\\comma\\\\quot\\\\quot\\)//crlf////crlf////tab////tab////tab////abort if selection is invalid//crlf////tab////tab////tab//if((sSelection<>\\quot\\Quantity\\quot\\) and (sSelection<>\\quot\\Amount\\quot\\))//crlf////tab////tab////tab////tab//appendToLog(\\quot\\Error: Invalid Selection: __Selection__\\quot\\)//crlf////tab////tab////tab////tab//return(dSensor)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab//Dt2=parseTime(\\quot\\__DateTo__\\quot\\\\comma\\\\quot\\MM-dd-yyyy\\quot\\)//crlf////tab////tab////tab//if(defined(\\quot\\__DateFrom__\\quot\\))//crlf////tab////tab////tab////tab//Dt1=parseTime(\\quot\\__DateFrom__\\quot\\\\comma\\\\quot\\MM-dd-yyyy\\quot\\)//crlf////tab////tab////tab//else//crlf////tab////tab////tab////tab//Dt1=Dt2//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////initialize a hashtable used to record the record numbers of field ID's in the driver//crlf////tab////tab////tab//hashCreate(hashRecords)//crlf////crlf////tab////tab////tab//sStoreID=\\quot\\__StoreID__\\quot\\//crlf////tab////tab////tab//sStoreDir=getStoreDir(sStoreID)//crlf////crlf////tab////tab////tab////read data from each day in the period//crlf////tab////tab////tab////appendToLog(\\quot\\DailySalesValueByFieldID Dt1=\\quot\\+Dt1+\\quot\\ Dt2=\\quot\\+Dt2)//crlf////tab////tab////tab//dt=dt1//crlf////tab////tab////tab//while(dt<=dt2)//crlf////tab////tab////tab////tab////open the daily sales driver//crlf////tab////tab////tab////tab//sDate=formatDate(dt\\comma\\\\quot\\MM-dd-yyyy\\quot\\)//crlf////tab////tab////tab////tab//Filename=sStoreDir+\\quot\\sales.\\quot\\+sDate+\\quot\\.bin\\quot\\//crlf////tab////tab////tab////tab////appendToLog(\\quot\\DailySalesValueByFieldID Filename=\\quot\\+Filename)//crlf////tab////tab////tab////tab//if(fileExists(Filename))//crlf////tab////tab////tab////tab////tab//sParams=\\quot\\StoreID=\\quot\\+sStoreID+\\quot\\~~pipe~~Date=\\quot\\+sDate+\\quot\\~~pipe~~Transpose=true~~pipe~~TransposeID=Sales_Structure_Field_ID~~pipe~~TransposeName=Field_Description~~pipe~~NoDepend\\quot\\//crlf////tab////tab////tab////tab////tab////appendToLog(\\quot\\DailySalesValueByFieldID sParams=\\quot\\+sParams)//crlf////tab////tab////tab////tab////tab//driverOpen(POS_Generic_Daily_Sales\\comma\\dSales\\comma\\READ\\comma\\false\\comma\\sParams)//crlf////tab////tab////tab////tab////tab//arField=driverGetFieldIDs(dSales\\comma\\0)//crlf////tab////tab////tab////tab////tab////appendToLog(\\quot\\collectionDailySalesValueByFieldID arField=\\quot\\+arField)//crlf////tab////tab////tab////tab////tab//cField=getElementCount(arField)//crlf////tab////tab////tab////tab////tab//nField=0//crlf////tab////tab////tab////tab////tab////appendToLog(\\quot\\DailySalesValueByFieldID cField=\\quot\\+cField)//crlf////tab////tab////tab////tab////tab//while(nField<cField)//crlf////tab////tab////tab////tab////tab////tab//sFieldID=getElement(arField\\comma\\nField)//crlf////crlf////tab////tab////tab////tab////tab////tab////------------------------------------------------------------------//crlf////tab////tab////tab////tab////tab////tab////08-18-2016: Modified record numbers from 3 and 4 to 4 and 5.//crlf////tab////tab////tab////tab////tab////tab////It looks like another field was inserted into the //crlf////tab////tab////tab////tab////tab////tab////POS_Generic_Daily_Sales structure which causes the record numbers //crlf////tab////tab////tab////tab////tab////tab////to change in the transposed field.//crlf////tab////tab////tab////tab////tab////tab////Look at the transposed driver in the Daily Sales Driver tab to view//crlf////tab////tab////tab////tab////tab////tab////the transposed driver used to create this collection.  The value for //crlf////tab////tab////tab////tab////tab////tab////this collection needs to come from the records where the value in the //crlf////tab////tab////tab////tab////tab////tab////Description field is Quantity or Amount//crlf////tab////tab////tab////tab////tab////tab//////crlf////tab////tab////tab////tab////tab////tab////08-31-2017 Changed record numbers back to 3 and 4.  This may need to //crlf////tab////tab////tab////tab////tab////tab////be looked into. It may be necessary to determine the record numbers//crlf////tab////tab////tab////tab////tab////tab////dynamically but there is no known reason for them to change.//crlf////tab////tab////tab////tab////tab////tab////------------------------------------------------------------------//crlf////tab////tab////tab////tab////tab////tab//if(sSelection=\\quot\\Quantity\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab//sValue=driverGetFieldAbsolute(dSales\\comma\\sFieldID\\comma\\3)//crlf////tab////tab////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////tab////tab//sValue=driverGetFieldAbsolute(dSales\\comma\\sFieldID\\comma\\4)//crlf////crlf////tab////tab////tab////tab////tab////tab////tab////This is only for debugging.  An empty string will not be included in the //crlf////tab////tab////tab////tab////tab////tab////tab////collection and it may appear that a user-defined text input field is missing//crlf////tab////tab////tab////tab////tab////tab////tab////from the collection.//crlf////tab////tab////tab////tab////tab////tab////tab//if(len(sValue)=0)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sValue=\\quot\\_\\quot\\//crlf////tab////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////tab////appendToLog(\\quot\\DailySalesValueByFieldID sFieldID=\\quot\\+sFieldID+\\quot\\ sValue=\\quot\\+sValue+\\quot\\ sSelection=\\quot\\+sSelection)//crlf////crlf////tab////tab////tab////tab////tab////tab//if(hashContainsKey(hashRecords\\comma\\sFieldID))//crlf////tab////tab////tab////tab////tab////tab////tab////add value to the previous value//crlf////tab////tab////tab////tab////tab////tab////tab//r=hashGet(hashRecords\\comma\\sFieldID)//crlf////tab////tab////tab////tab////tab////tab////tab//dPreviousValue=driverGetFieldAbsolute(dSensor\\comma\\\\quot\\Value\\quot\\\\comma\\r)//crlf////tab////tab////tab////tab////tab////tab////tab//sValue=value(dPreviousValue)+value(sValue)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dSensor\\comma\\\\quot\\Value\\quot\\\\comma\\r\\comma\\sValue)//crlf////tab////tab////tab////tab////tab////tab////tab////appendToLog(\\quot\\DailySalesValueByFieldID Added value=\\quot\\+sValue+\\quot\\ at record \\quot\\+r)//crlf////tab////tab////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////tab////tab////record the value in a new record//crlf////tab////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dSensor)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dSensor\\comma\\\\quot\\Index\\quot\\\\comma\\r\\comma\\sFieldID)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dSensor\\comma\\\\quot\\Value\\quot\\\\comma\\r\\comma\\sValue)//crlf////tab////tab////tab////tab////tab////tab////tab//hashPut(hashRecords\\comma\\sFieldID\\comma\\r)//crlf////tab////tab////tab////tab////tab////tab////tab////appendToLog(\\quot\\DailySalesValueByFieldID Initialized value=\\quot\\+sValue+\\quot\\ at record \\quot\\+r)//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////tab//nField++//crlf////tab////tab////tab////tab////tab//endwhile//crlf////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab//dt=incrementTime(dt\\comma\\1)//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab////appendToLog(\\quot\\DailySalesValueByFieldID returns \\quot\\+driverGetRecordCount(dSensor\\comma\\true)+\\quot\\ records\\quot\\)//crlf////crlf////tab////tab////tab////record keys/values from the hashtable in the driver//crlf////crlf////tab////tab////tab//return(dSensor)//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf//^
ID=action_list|X=300|Y=127|W=796|H=663|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=Aspect_Script|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>//crlf////tab//{@if(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf////tab//{@if(getSystemValue(\\quot\\DevelopmentMode\\quot\\)\\comma\\fileModified(getToken(\\quot\\homedir\\quot\\)\\plus\\\\quot\\cache~~backslash~~WidgetEdit_VWaUGu88BMN0hDYWzZj57VpG_Daily Sales.html\\quot\\)\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//<conditional expression:(\\quot\\__action_list__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab//Daily Sales\\comma\\initializeTimePeriods\\comma\\action_list\\comma\\Action=initializeTimePeriods\\comma\\private//crlf////tab//Daily Sales\\comma\\importUserDefinedSalesFields\\comma\\action_list\\comma\\Action=importUserDefinedSalesFields\\comma\\private//crlf////tab//Daily Sales\\comma\\createDefaultUserStruct\\comma\\action_list\\comma\\Action=createDefaultUserStruct\\comma\\private//crlf////tab//Daily Sales\\comma\\updateCheckDetailAddendumSingleDay\\comma\\action_list\\comma\\Action=updateCheckDetailAddendumSingleDay\\comma\\private//crlf////tab//Daily Sales\\comma\\updateDailySalesSingleDay\\comma\\action_list\\comma\\Action=updateDailySalesSingleDay\\comma\\private//crlf////tab//Daily Sales\\comma\\updateDailySalesAllDays\\comma\\action_list\\comma\\Action=updateDailySalesAllDays\\comma\\private//crlf//</conditional>//crlf////crlf//[!------------------------------------------------------------------------//crlf//initializeTimePeriods//crlf//--------------------------------------------------------------------------]//crlf//<conditional expression:(\\quot\\__Action__\\quot\\=\\quot\\initializeTimePeriods\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__ActionDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Creates default time period records//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//None//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Ok or Error//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\initializeTimePeriods\\quot\\; commands:\\quot\\//crlf////tab////tab////tab//driverOpen(Aspect_BackOffice_Time_Period\\comma\\d\\comma\\WRITE\\comma\\false\\comma\\\\quot\\nodepend\\quot\\)//crlf////tab////tab////tab////crlf////tab////tab////tab////add breakfast//crlf////tab////tab////tab//r=driverFindRecordAbsolute(d\\comma\\0\\comma\\\\quot\\Name=\\quot\\\\plus\\quote(\\quot\\Breakfast\\quot\\))//crlf////tab////tab////tab//r=if(r<0\\comma\\driverAddNewRecord(d)\\comma\\r)//crlf////tab////tab////tab//driverPutField(d\\comma\\\\quot\\Name\\quot\\\\comma\\r\\comma\\\\quot\\Breakfast\\quot\\)//crlf////tab////tab////tab//driverPutField(d\\comma\\\\quot\\Time_Start\\quot\\\\comma\\r\\comma\\\\quot\\05:00\\quot\\)//crlf////tab////tab////tab//driverPutField(d\\comma\\\\quot\\Time_End\\quot\\\\comma\\r\\comma\\\\quot\\10:59\\quot\\)//crlf////crlf////tab////tab////tab////add lunch//crlf////tab////tab////tab//r=driverFindRecordAbsolute(d\\comma\\0\\comma\\\\quot\\Name=\\quot\\\\plus\\quote(\\quot\\Lunch\\quot\\))//crlf////tab////tab////tab//r=if(r<0\\comma\\driverAddNewRecord(d)\\comma\\r)//crlf////tab////tab////tab//driverPutField(d\\comma\\\\quot\\Name\\quot\\\\comma\\r\\comma\\\\quot\\Lunch\\quot\\)//crlf////tab////tab////tab//driverPutField(d\\comma\\\\quot\\Time_Start\\quot\\\\comma\\r\\comma\\\\quot\\11:00\\quot\\)//crlf////tab////tab////tab//driverPutField(d\\comma\\\\quot\\Time_End\\quot\\\\comma\\r\\comma\\\\quot\\16:59\\quot\\)//crlf////crlf////tab////tab////tab////add dinner//crlf////tab////tab////tab//r=driverFindRecordAbsolute(d\\comma\\0\\comma\\\\quot\\Name=\\quot\\\\plus\\quote(\\quot\\Dinner\\quot\\))//crlf////tab////tab////tab//r=if(r<0\\comma\\driverAddNewRecord(d)\\comma\\r)//crlf////tab////tab////tab//driverPutField(d\\comma\\\\quot\\Name\\quot\\\\comma\\r\\comma\\\\quot\\Dinner\\quot\\)//crlf////tab////tab////tab//driverPutField(d\\comma\\\\quot\\Time_Start\\quot\\\\comma\\r\\comma\\\\quot\\17:00\\quot\\)//crlf////tab////tab////tab//driverPutField(d\\comma\\\\quot\\Time_End\\quot\\\\comma\\r\\comma\\\\quot\\02:00\\quot\\)//crlf////crlf////tab////tab////tab//driverClose(d)//crlf////tab////tab////tab//return(\\quot\\ok\\quot\\)//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf////crlf////crlf//<conditional expression:false>//crlf//========================================================================//crlf//importUserDefinedSalesFields//crlf//========================================================================//crlf//</conditional>//crlf//<conditional expression:(\\quot\\__Action__\\quot\\=\\quot\\importUserDefinedSalesFields\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__ActionDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Imports user-defined files from a file.  The file must be formatted as://crlf////crlf////tab////tab//Date\\comma\\FieldID\\comma\\FieldID...//crlf////tab////tab//xx-xx-xxxx\\comma\\Value\\comma\\Value//crlf////crlf////tab////tab//The values are read from each line in the file and recorded in the field ID specified//crlf////tab////tab//in the column header.//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//StoreID - Store ID//crlf////tab////tab//Filename - Name of the file to be imported//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Ok or Error//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\importUserDefinedSalesFields\\quot\\; commands:\\quot\\//crlf////tab////tab////tab////abort if missing store ID//crlf////tab////tab////tab//if(undefined(\\quot\\__StoreID__\\quot\\))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing StoreID\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if missing filename//crlf////tab////tab////tab//if(undefined(\\quot\\__Filename__\\quot\\))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing Filename\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if file does not exist//crlf////tab////tab////tab//if(not(fileExists(\\quot\\__Filename__\\quot\\)))//crlf////tab////tab////tab////tab//return(\\quot\\Error: File does not exist: __Filename__\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab//sStoreDir=getStoreDir(\\quot\\__StoreID__\\quot\\)//crlf////crlf////tab////tab////tab////read the contents of the file//crlf////tab////tab////tab//sContent=fileGetContent(\\quot\\__Filename__\\quot\\)//crlf////tab////tab////tab////crlf////tab////tab////tab////replace cr/lf with just lf//crlf////tab////tab////tab//sContent=replaceSubstring(sContent\\comma\\char(13)\\comma\\\\quot\\\\quot\\)//crlf////crlf////tab////tab////tab////get the field ID\\apos\\s from the header//crlf////tab////tab////tab//c=getElementCount(sContent)//crlf////tab////tab////tab//appendToLog(\\quot\\Importing \\quot\\\\plus\\(c-1)\\plus\\\\quot\\ records\\quot\\)//crlf////tab////tab////tab//arHeader=getElement(sContent\\comma\\0\\comma\\char(10))//crlf////tab////tab////tab////crlf////tab////tab////tab////get the date pattern from the first field in the header//crlf////tab////tab////tab//sDateFormat=getElement(arHeader\\comma\\0)//crlf////crlf////tab////tab////tab////read the file and import the data//crlf////tab////tab////tab//n=1//crlf////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab//s=getElement(sContent\\comma\\n\\comma\\char(10))//crlf////tab////tab////tab////tab////crlf////tab////tab////tab////tab////get the date//crlf////tab////tab////tab////tab//sDate=getElement(s\\comma\\0)//crlf////tab////tab////tab////tab//dt=parseTime(sDate\\comma\\sDateFormat)//crlf////crlf////tab////tab////tab////tab////if the date is valid\\comma\\ import the record//crlf////tab////tab////tab////tab//if(dateNumber(dt)>0)//tab////tab////tab////tab////crlf////tab////tab////tab////tab////tab////open the driver//crlf////tab////tab////tab////tab////tab//sDriverParams=\\quot\\StoreID=__StoreID__~~pipe~~Date=\\quot\\\\plus\\formatDate(dt\\comma\\\\quot\\MM-dd-yyyy\\quot\\)\\plus\\\\quot\\~~pipe~~Transpose=true~~pipe~~TransposeID=Sales_Structure_Field_ID~~pipe~~TransposeFields=Amount~~pipe~~TransposeName=Field_Description\\quot\\//crlf////tab////tab////tab////tab////tab//driverOpen(POS_GENERIC_DAILY_SALES\\comma\\d\\comma\\WRITE\\comma\\false\\comma\\sDriverParams)//crlf////tab////tab////tab////tab////tab//arFieldID=getStructureFieldIDs(d\\comma\\\\quot\\\\quot\\\\comma\\true)//crlf////crlf////tab////tab////tab////tab////tab//cField=getElementCount(s)//crlf////tab////tab////tab////tab////tab//nField=1//crlf////tab////tab////tab////tab////tab//while(nField<cField)//crlf////tab////tab////tab////tab////tab////tab//sFieldID=trim(removeQuotes(trim(getElement(arHeader\\comma\\nField))))//crlf////tab////tab////tab////tab////tab////tab//if(containsElement(arFieldID\\comma\\sFieldID)>=0)//crlf////tab////tab////tab////tab////tab////tab////tab//sValue=trim(removeQuotes(trim(getElement(s\\comma\\nField))))//crlf////tab////tab////tab////tab////tab////tab////tab//sValue=replaceSubstring(replaceSubstring(sValue\\comma\\\\quot\\$\\quot\\\\comma\\\\quot\\\\quot\\)\\comma\\\\quot\\\\comma\\\\quot\\\\comma\\\\quot\\\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab//dValue=value(sValue)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\sFieldID\\comma\\0\\comma\\dValue)//crlf////tab////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\Recorded Date: \\quot\\\\plus\\formatDate(dt\\comma\\\\quot\\MM-dd-yyyy\\quot\\)\\plus\\\\quot\\ FieldID: \\quot\\\\plus\\sFieldID\\plus\\\\quot\\ Value: \\quot\\\\plus\\dValue)//crlf////tab////tab////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\Error: Invalid fieldID: \\quot\\\\plus\\sFieldID\\plus\\\\quot\\ for field \\quot\\\\plus\\nField)//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab//nField\\plus\\\\plus\\//crlf////tab////tab////tab////tab////tab//endwhile//crlf////tab////tab////tab////tab////tab//driverClose(d)//crlf////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab//appendToLog(\\quot\\Error: Invalid date in record \\quot\\\\plus\\n\\plus\\\\quot\\: \\quot\\\\plus\\s)//crlf////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab//n\\plus\\\\plus\\//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab//return(\\quot\\Ok: Imported \\quot\\\\plus\\(c-1)\\plus\\\\quot\\ records\\quot\\)//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf////crlf//<conditional expression:false>//crlf//========================================================================//crlf//createDefaultUserStruct//crlf//========================================================================//crlf//</conditional>//crlf//<conditional expression:(\\quot\\__Action__\\quot\\=\\quot\\createDefaultUserStruct\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__ActionDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Adds default fields for paid in/out\\comma\\ actual deposit\\comma\\ etc to the user-defined//crlf////tab////tab//daily sales structure.  This action is called when the driver is opened using//crlf////tab////tab//a dependency if the driver does not exist.  It can also be called from the //crlf////tab////tab//menu in the table used to edit the structure.//crlf////crlf////tab////tab//The default custom sales record is located in the Aspect_backoffice //crlf////tab////tab//supporting_files directory.  It is merged into the active driver using the //crlf////tab////tab//description as the key.  //crlf////crlf////tab////tab//The default structure can be edited using the //crlf////tab////tab//Back-Office / Templates / Default Use Defined Sales Structure view.//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//StoreID - Store ID//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Ok or Error//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\createDefaultUserStruct\\quot\\; commands:\\quot\\//crlf////tab////tab////tab//appendToLog(\\quot\\createDefaultUserStruct started StoreID=__StoreID__\\quot\\)//crlf////crlf////tab////tab////tab////abort if missing Store ID//crlf////tab////tab////tab//if(undefined(\\quot\\__StoreID__\\quot\\))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing StoreID\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////get store directory//crlf////tab////tab////tab//sStoreDir=getStoreDir(\\quot\\__StoreID__\\quot\\)//crlf////crlf////tab////tab////tab////abort if store directory is invalid//crlf////tab////tab////tab//if(len(sStoreDir)=0)//crlf////tab////tab////tab////tab//return(\\quot\\Error: Invalid store directory for store with ID=__StoreID__\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////open the template//crlf////tab////tab////tab//sFilename=getToken(\\quot\\Packageurl_Aspect_BackOffice\\quot\\)\\plus\\\\quot\\supporting_files/customsalesfields.bin\\quot\\//crlf////tab////tab////tab//driverOpen(POS_Generic_User_Defined_Daily_Sales_Struct\\comma\\dTemplate\\comma\\READ\\comma\\false\\comma\\\\quot\\filename=\\quot\\\\plus\\sFilename\\plus\\\\quot\\~~pipe~~nodepend\\quot\\)//crlf////tab////tab////tab//driverSetFilter(dTemplate\\comma\\\\quot\\true\\quot\\\\comma\\true)//crlf////crlf////tab////tab////tab////open the driver for the store//crlf////tab////tab////tab//driverOpen(POS_Generic_User_Defined_Daily_Sales_Struct\\comma\\d\\comma\\WRITE\\comma\\false\\comma\\\\quot\\StoreID=__StoreID__~~pipe~~nodepend\\quot\\)//crlf////tab////tab////tab//driverSetFilter(d\\comma\\\\quot\\true\\quot\\\\comma\\true)//crlf////crlf////tab////tab////tab////merge the template into the active driver//crlf////tab////tab////tab//s=driverMerge(true\\comma\\d\\comma\\dTemplate\\comma\\\\quot\\Description\\quot\\\\comma\\\\quot\\\\quot\\\\comma\\false)//crlf////tab////tab////tab//appendToLog(s)//crlf////tab////tab////tab////crlf////tab////tab////tab//driverClose(dTemplate)//crlf////tab////tab////tab//driverClose(d)//crlf////crlf////tab////tab////tab//return(\\quot\\Ok: \\quot\\\\plus\\s)//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf////crlf//<conditional expression:false>//crlf//========================================================================//crlf//updateCheckDetailAddendumSingleDay//crlf//========================================================================//crlf//</conditional>//crlf//<conditional expression:(\\quot\\__Action__\\quot\\=\\quot\\updateCheckDetailAddendumSingleDay\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__ActionDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Creates the POS_Generic_Check_Detail_Addendum driver for a given store and day.//crlf////tab////tab//The check detail addendum contains additional details derived from the original check//crlf////tab////tab//detail driver including comps and discounts by both category and department.//crlf////crlf////tab////tab//The addendum is consolidated with the original check details when creating the daily //crlf////tab////tab//sales driver.//crlf////crlf////tab////tab//Note: 04-19-2016 - Record types 14 and 15 (comps/discounts by category) were added //crlf////tab////tab//to the Aloha check details because they are available in the gndsale file.  However\\comma\\//crlf////tab////tab//this will not normally be the case and this routine will need to be modified to record//crlf////tab////tab//those values.  Right now\\comma\\ it only records record type 16 (sales less comps/discounts).//crlf////tab////tab//It might be a good idea to scan the check details for record types 14 and 15 and then //crlf////tab////tab//write them only if they do not already exist.//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//StoreID - ID of the store to be updated//crlf////tab////tab//Date - The date to be updated (MM-dd-yyyy)//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Ok or Error//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\updateCheckDetailAddendumSingleDay\\quot\\; commands:\\quot\\//crlf////tab////tab////tab////abort if store is undefiend//crlf////tab////tab////tab//if(undefined(\\quot\\__StoreID__\\quot\\))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing StoreID\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if store code is invalid//crlf////tab////tab////tab//if(len(trim(lookup(Aspect_BackOffice_Store_ID_By_ID\\comma\\\\quot\\__StoreID__\\quot\\)))=0)//crlf////tab////tab////tab////tab//return(\\quot\\Error: Invalid StoreID: __StoreID__\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if date is undefined//crlf////tab////tab////tab//if(undefined(\\quot\\__date__\\quot\\))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing date\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////get filenames//crlf////tab////tab////tab//StoreDir=addDirSlash(lookup(Aspect_BackOffice_Store_Directory_By_ID\\comma\\\\quot\\__StoreID__\\quot\\))//crlf////tab////tab////tab//sCheckDetailsFilename=StoreDir\\plus\\\\quot\\ckd.__Date__.bin\\quot\\//crlf////tab////tab////tab//sAddendumFilename=StoreDir\\plus\\\\quot\\ckdadd.__Date__.bin\\quot\\//crlf////crlf////tab////tab////tab////clear the addendum file.  Leave an empty file so it can be opened without//crlf////tab////tab////tab////giving an error.  //crlf////tab////tab////tab//if(fileExists(sAddendumFilename))//crlf////tab////tab////tab////tab//fileSetLength(sAddendumFilename\\comma\\0)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if check details file does not exist//crlf////tab////tab////tab//if(not(fileExists(sCheckDetailsFilename)))//crlf////tab////tab////tab////tab//return(\\quot\\Error: File does not exist: \\quot\\\\plus\\sCheckDetailsFilename)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////get the pos type//crlf////tab////tab////tab//sPosType=lookup(Aspect_BackOffice_POS_Type_By_Store_ID\\comma\\\\quot\\__StoreID__\\quot\\)//crlf////crlf////tab////tab////tab//appendToLog(\\quot\\Debug: sCheckDetailsFilename=\\quot\\\\plus\\sCheckDetailsFilename\\plus\\\\quot\\ size=\\quot\\\\plus\\fileSize(sCheckDetailsFilename)\\plus\\\\quot\\ Modified=\\quot\\\\plus\\formatDate(fileModified(sCheckDetailsFilename)\\comma\\\\quot\\MM-dd-yyyy HH:mm:ss:SSS\\quot\\))//crlf////tab////tab////tab//appendToLog(\\quot\\POSType=\\quot\\\\plus\\sPosType)//crlf////tab////tab////tab////crlf////tab////tab////tab////open check details//crlf////tab////tab////tab//driverOpen(POS_Generic_Check_Detail_Dta\\comma\\drvCheckDetails\\comma\\READ\\comma\\false\\comma\\\\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\)//crlf////tab////crlf////tab////tab////tab////open check detail addendum//crlf////tab////tab////tab//driverOpen(POS_Generic_Check_Detail_Addendum\\comma\\drvAddendum\\comma\\WRITE\\comma\\false\\comma\\\\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__~~pipe~~NoDepend\\quot\\)//crlf////crlf////tab////tab////tab////Add records for sales less comps/discounts by category//crlf////tab////tab////tab////also add records for Total Sales and Net Sales//crlf////crlf////tab////tab////tab////The bHasCompsByCategory flag is used to determine if comps/discounts can be read//crlf////tab////tab////tab////using record types 14 and 15.  This is true for an Aloha system.  If not\\comma\\ total //crlf////tab////tab////tab////comps/discounts are calculated in another step using record types 2 and 3//crlf////tab////tab////tab//bHasCompsByCategory=false//crlf////crlf////tab////tab////tab//driverSetSubtotal(drvCheckDetails\\comma\\\\quot\\Sum\\quot\\\\comma\\\\quot\\Rectype~~pipe~~ID_For_Daily_Sales_Summary\\quot\\)//crlf////tab////tab////tab//driverSetDetails(drvCheckDetails\\comma\\false)//crlf////tab////tab////tab//driverSetFilter(drvCheckDetails\\comma\\\\quot\\(not(Amount=0)) and ((RecType=0) or (RecType=14) or (RecType=15))\\quot\\\\comma\\true)//crlf////tab////tab////tab//appendToLog(\\quot\\Adding check details for sales less comps/discounts.  Records=\\quot\\\\plus\\driverGetRecordCount(drvCheckDetails\\comma\\false)\\plus\\\\quot\\ of \\quot\\\\plus\\driverGetRecordCount(drvCheckDetails\\comma\\true))//crlf////tab////tab////tab//dTotalSales=0//crlf////tab////tab////tab//dTotalCompsAndDiscounts=0//crlf////tab////tab////tab//hashCreate(hSalesTotals)//crlf////tab////tab////tab//hashCreate(hDeptNetSales)//crlf////tab////tab////tab//hashCreate(hDeptTotalSales)//crlf////tab////tab////tab//c=driverGetRecordCount(drvCheckDetails)//crlf////tab////tab////tab//n=0//crlf////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab//iRecType=driverGetField(drvCheckDetails\\comma\\\\quot\\RecType\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab//dAmount=driverGetField(drvCheckDetails\\comma\\\\quot\\Amount\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab//CategoryID=driverGetField(drvCheckDetails\\comma\\\\quot\\ID_For_Daily_Sales_Summary\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab//DepartmentID=lookup(POS_Generic_Lookup_Department_ID_By_Category_ID\\comma\\CategoryID\\comma\\0\\comma\\\\quot\\StoreID=__StoreID__\\quot\\)//crlf////crlf////tab////tab////tab////tab////determine if the category or department will be excluded from net sales//crlf////tab////tab////tab////tab//bExcludeCategoryFromSales=boolean(lookup(POS_Generic_Category_Exclude_From_Net_Sales\\comma\\CategoryID\\comma\\0\\comma\\\\quot\\StoreID=__StoreID__\\quot\\))//crlf////tab////tab////tab////tab//bExcludeDepartmentFromSales=boolean(lookup(POS_Generic_Department_Exclude_From_Net_Sales\\comma\\DepartmentID\\comma\\0\\comma\\\\quot\\StoreID=__StoreID__\\quot\\))//crlf////crlf////tab////tab////tab////tab////appendToLog(\\quot\\CategoryID=\\quot\\\\plus\\CategoryID\\plus\\\\quot\\ DepartmentID=\\quot\\\\plus\\DepartmentID\\plus\\\\quot\\ RecType=\\quot\\\\plus\\iRecType\\plus\\\\quot\\ Amount=\\quot\\\\plus\\dAmount)//crlf////tab////tab////tab////tab//if((CategoryID=\\quot\\0\\quot\\) or (len(CategoryID)=0))//crlf////tab////tab////tab////tab////tab//appendToLog(\\quot\\Error: CategoryID is undefined in updateCheckDetailAddendumSingleDay\\quot\\)//crlf////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab//if(len(trim(DepartmentID))=0)//crlf////tab////tab////tab////tab////tab//iCheckNumber=driverGetField(drvCheckDetails\\comma\\\\quot\\CheckNumber\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab//iAbsoluteIndex=driverGetAbsoluteIndex(drvCheckDetails\\comma\\n)//crlf////tab////tab////tab////tab////tab//appendToLog(\\quot\\Error: Cannot get department ID for category ID=\\quot\\\\plus\\CategoryID\\plus\\\\quot\\ RecType=\\quot\\\\plus\\iRecType\\plus\\\\quot\\ CheckNumber=\\quot\\\\plus\\iCheckNumber\\plus\\\\quot\\ n=\\quot\\\\plus\\n\\plus\\\\quot\\ c=\\quot\\\\plus\\c\\plus\\\\quot\\ iAbsoluteIndex=\\quot\\\\plus\\iAbsoluteIndex)//crlf////tab////tab////tab////tab////tab//DepartmentID=\\quot\\0\\quot\\//crlf////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab//if(iRecType=0)//crlf////tab////tab////tab////tab////tab//if(not(bExcludeCategoryFromSales))//crlf////tab////tab////tab////tab////tab////tab//dTotalSales=dTotalSales \\plus\\ dAmount//crlf////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab//dTotalCompsAndDiscounts=dTotalCompsAndDiscounts \\plus\\ dAmount//crlf////tab////tab////tab////tab////tab//dAmount=-dAmount//crlf////tab////tab////tab////tab////tab//bHasCompsByCategory=true//crlf////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////appendToLog(\\quot\\dTotalSales=\\quot\\\\plus\\dTotalSales)//crlf////tab////tab////tab////tab////crlf////tab////tab////tab////tab////add to category net sales//crlf////tab////tab////tab////tab//if(hashContainsKey(hSalesTotals\\comma\\CategoryID))//crlf////tab////tab////tab////tab////tab//d=hashGet(hSalesTotals\\comma\\CategoryID)//crlf////tab////tab////tab////tab////tab//hashPut(hSalesTotals\\comma\\CategoryID\\comma\\d\\plus\\dAmount)//crlf////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab//hashPut(hSalesTotals\\comma\\CategoryID\\comma\\dAmount)//crlf////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////crlf////tab////tab////tab////tab//if(DepartmentID<>\\quot\\0\\quot\\)//crlf////tab////tab////tab////tab////tab////add to department net sales//crlf////tab////tab////tab////tab////tab//if(hashContainsKey(hDeptNetSales\\comma\\DepartmentID))//crlf////tab////tab////tab////tab////tab////tab//d=hashGet(hDeptNetSales\\comma\\DepartmentID)//crlf////tab////tab////tab////tab////tab////tab//hashPut(hDeptNetSales\\comma\\DepartmentID\\comma\\d\\plus\\dAmount)//crlf////tab////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////tab//hashPut(hDeptNetSales\\comma\\DepartmentID\\comma\\dAmount)//crlf////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////crlf////tab////tab////tab////tab////tab////add to department total sales//crlf////tab////tab////tab////tab////tab//if(iRecType=0)//crlf////tab////tab////tab////tab////tab////tab//if(hashContainsKey(hDeptTotalSales\\comma\\DepartmentID))//crlf////tab////tab////tab////tab////tab////tab////tab//d=hashGet(hDeptTotalSales\\comma\\DepartmentID)//crlf////tab////tab////tab////tab////tab////tab////tab//hashPut(hDeptTotalSales\\comma\\DepartmentID\\comma\\d\\plus\\dAmount)//crlf////tab////tab////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////tab////tab//hashPut(hDeptTotalSales\\comma\\DepartmentID\\comma\\dAmount)//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////crlf////tab////tab////tab////tab//n\\plus\\\\plus\\//crlf////tab////tab////tab//endwhile//crlf////tab////tab////tab//appendToLog(\\quot\\Added \\quot\\\\plus\\c\\plus\\\\quot\\ check detail records for sales less comps/discounts\\quot\\)//crlf////crlf////tab////tab////tab////write the category sales//crlf////tab////tab////tab//arKeys=hashGetKeys(hSalesTotals)//crlf////tab////tab////tab//c=getElementCount(arKeys)//crlf////tab////tab////tab//n=0//crlf////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab//sKey=getElement(arKeys\\comma\\n)//crlf////tab////tab////tab////tab//dAmount=hashGet(hSalesTotals\\comma\\sKey)//crlf////tab////tab////tab////tab//r=driverAddNewRecord(drvAddendum)//crlf////tab////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\RecType\\quot\\\\comma\\r\\comma\\16)//crlf////tab////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\ID1\\quot\\\\comma\\r\\comma\\sKey)//crlf////tab////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dAmount)//crlf////tab////tab////tab////tab//n\\plus\\\\plus\\//crlf////tab////tab////tab//endwhile//crlf////tab////tab////tab////crlf////tab////tab////tab////write department net sales//crlf////tab////tab////tab//dTtlDepartmentSales=0//crlf////tab////tab////tab//arKeys=hashGetKeys(hDeptNetSales)//crlf////tab////tab////tab//c=getElementCount(arKeys)//crlf////tab////tab////tab//appendToLog(\\quot\\Writing department totals.  Count=\\quot\\\\plus\\c)//crlf////tab////tab////tab//n=0//crlf////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab//sKey=getElement(arKeys\\comma\\n)//crlf////tab////tab////tab////tab//dAmount=hashGet(hDeptNetSales\\comma\\sKey)//crlf////tab////tab////tab////tab//r=driverAddNewRecord(drvAddendum)//crlf////tab////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\RecType\\quot\\\\comma\\r\\comma\\34)//crlf////tab////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\ID1\\quot\\\\comma\\r\\comma\\sKey)//crlf////tab////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dAmount)//crlf////tab////tab////tab////tab//dTtlDepartmentSales=dTtlDepartmentSales\\plus\\dAmount//crlf////tab////tab////tab////tab//n\\plus\\\\plus\\//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab////add field for total department net sales//crlf////tab////tab////tab//r=driverAddNewRecord(drvAddendum)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\RecType\\quot\\\\comma\\r\\comma\\39)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\ID1\\quot\\\\comma\\r\\comma\\\\quot\\0\\quot\\)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dTtlDepartmentSales)//crlf////tab////tab////tab////crlf////tab////tab////tab////write department total sales//crlf////tab////tab////tab//dTtlDepartmentSales=0//crlf////tab////tab////tab//arKeys=hashGetKeys(hDeptTotalSales)//crlf////tab////tab////tab//c=getElementCount(arKeys)//crlf////tab////tab////tab//appendToLog(\\quot\\Writing department totals.  Count=\\quot\\\\plus\\c)//crlf////tab////tab////tab//n=0//crlf////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab//sKey=getElement(arKeys\\comma\\n)//crlf////tab////tab////tab////tab//bExcludeDepartmentFromSales=lookup(POS_Generic_Department_Exclude_From_Net_Sales\\comma\\sKey\\comma\\0\\comma\\\\quot\\StoreID=__StoreID__\\quot\\)//crlf////tab////tab////tab////tab//dAmount=hashGet(hDeptTotalSales\\comma\\sKey)//crlf////tab////tab////tab////tab//r=driverAddNewRecord(drvAddendum)//crlf////tab////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\RecType\\quot\\\\comma\\r\\comma\\40)//crlf////tab////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\ID1\\quot\\\\comma\\r\\comma\\sKey)//crlf////tab////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dAmount)//crlf////tab////tab////tab////tab//if(not(bExcludeDepartmentFromSales))//crlf////tab////tab////tab////tab////tab//dTtlDepartmentSales=dTtlDepartmentSales\\plus\\dAmount//crlf////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab//n\\plus\\\\plus\\//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab////add field for total department net sales//crlf////tab////tab////tab////This field is used in the cash reconciliation display to determine if departments have been set up//crlf////tab////tab////tab////properly and can be displayed on the report.  This requires that all categories be assigned to a //crlf////tab////tab////tab////department and that the total department sales match the category sales//crlf////tab////tab////tab//r=driverAddNewRecord(drvAddendum)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\RecType\\quot\\\\comma\\r\\comma\\41)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\ID1\\quot\\\\comma\\r\\comma\\\\quot\\0\\quot\\)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dTtlDepartmentSales)//crlf////tab////tab////tab////crlf////tab////tab////tab////add field for total sales//crlf////tab////tab////tab//r=driverAddNewRecord(drvAddendum)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\RecType\\quot\\\\comma\\r\\comma\\17)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\ID1\\quot\\\\comma\\r\\comma\\\\quot\\0\\quot\\)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dTotalSales)//crlf////crlf////tab////tab////tab////get comps / discounts using record types 2 and 3.  If total comps/discounts were//crlf////tab////tab////tab////not calculated above\\comma\\ get the total here//crlf////tab////tab////tab//dTotalComps=driverRangeSum(drvCheckDetails\\comma\\\\quot\\Amount\\quot\\\\comma\\true\\comma\\\\quot\\(RecType=2)\\quot\\)//crlf////tab////tab////tab//dTotalDiscounts=driverRangeSum(drvCheckDetails\\comma\\\\quot\\Amount\\quot\\\\comma\\true\\comma\\\\quot\\(RecType=3)\\quot\\)//crlf////tab////tab////tab//if((not(bHasCompsByCategory)) or (sPosType=\\quot\\Heartland\\quot\\))//crlf////tab////tab////tab////tab//dTotalCompsAndDiscounts=dTotalComps\\plus\\dTotalDiscounts//crlf////tab////tab////tab//endif//crlf////tab////tab////tab//appendToLog(\\quot\\bHasCompsByCategory=\\quot\\\\plus\\bHasCompsByCategory\\plus\\\\quot\\ dTotalComps=\\quot\\\\plus\\dTotalComps\\plus\\\\quot\\ dTotalDiscounts=\\quot\\\\plus\\dTotalDiscounts\\plus\\\\quot\\ dTotalCompsAndDiscounts=\\quot\\\\plus\\dTotalCompsAndDiscounts)//crlf////crlf////tab////tab////tab////add field for total comps/discounts//crlf////tab////tab////tab//r=driverAddNewRecord(drvAddendum)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\RecType\\quot\\\\comma\\r\\comma\\18)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\ID1\\quot\\\\comma\\r\\comma\\\\quot\\0\\quot\\)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dTotalCompsAndDiscounts)//crlf////crlf////tab////tab////tab////add field for inclusive tax//crlf////tab////tab////tab////02-01-2017: This is disabled because inclusive tax is included by category.  Another record type could be //crlf////tab////tab////tab////created to add total inclusive tax//crlf////tab////tab////tab//if(false)//crlf////tab////tab////tab////tab//dInclusiveTax=driverRangeSum(drvCheckDetails\\comma\\\\quot\\Amount\\quot\\\\comma\\true\\comma\\\\quot\\(RecType=13)\\quot\\)//crlf////tab////tab////tab////tab//r=driverAddNewRecord(drvAddendum)//crlf////tab////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\RecType\\quot\\\\comma\\r\\comma\\13)//crlf////tab////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\ID1\\quot\\\\comma\\r\\comma\\\\quot\\0\\quot\\)//crlf////tab////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dInclusiveTax)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////add field for total tax//crlf////tab////tab////tab////02-01-2017: Added inclusive tax to total tax calculation.//crlf////tab////tab////tab//dTotalTax=driverRangeSum(drvCheckDetails\\comma\\\\quot\\Amount\\quot\\\\comma\\true\\comma\\\\quot\\(RecType=4) or (RecType=5) or (RecType=6) or (RecType=7) or (RecType=13)\\quot\\)//crlf////tab////tab////tab//r=driverAddNewRecord(drvAddendum)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\RecType\\quot\\\\comma\\r\\comma\\20)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\ID1\\quot\\\\comma\\r\\comma\\\\quot\\0\\quot\\)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dTotalTax)//crlf////crlf////tab////tab////tab////add field for gross sales//crlf////tab////tab////tab//dGrossSales=dTotalSales\\plus\\dTotalTax//crlf////tab////tab////tab//r=driverAddNewRecord(drvAddendum)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\RecType\\quot\\\\comma\\r\\comma\\21)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\ID1\\quot\\\\comma\\r\\comma\\\\quot\\0\\quot\\)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dGrossSales)//crlf////crlf////tab////tab////tab////add field for total comps//crlf////tab////tab////tab//r=driverAddNewRecord(drvAddendum)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\RecType\\quot\\\\comma\\r\\comma\\22)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\ID1\\quot\\\\comma\\r\\comma\\\\quot\\0\\quot\\)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dTotalComps)//crlf////crlf////tab////tab////tab////add field for total discounts//crlf////tab////tab////tab//r=driverAddNewRecord(drvAddendum)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\RecType\\quot\\\\comma\\r\\comma\\23)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\ID1\\quot\\\\comma\\r\\comma\\\\quot\\0\\quot\\)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dTotalDiscounts)//crlf////crlf////tab////tab////tab////add field for net sales//crlf////tab////tab////tab//r=driverAddNewRecord(drvAddendum)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\RecType\\quot\\\\comma\\r\\comma\\19)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\ID1\\quot\\\\comma\\r\\comma\\\\quot\\0\\quot\\)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dTotalSales-dTotalComps-dTotalDiscounts)//crlf////crlf////tab////tab////tab////add field for total tender//crlf////tab////tab////tab//dTotalTender=driverRangeSum(drvCheckDetails\\comma\\\\quot\\Amount\\quot\\\\comma\\true\\comma\\\\quot\\(RecType=8)\\quot\\)//crlf////tab////tab////tab//r=driverAddNewRecord(drvAddendum)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\RecType\\quot\\\\comma\\r\\comma\\24)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\ID1\\quot\\\\comma\\r\\comma\\\\quot\\0\\quot\\)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dTotalTender)//crlf////crlf////tab////tab////tab////add field for cash tender//crlf////tab////tab////tab//dCashTender=driverRangeSum(drvCheckDetails\\comma\\\\quot\\Amount\\quot\\\\comma\\true\\comma\\\\quot\\(RecType=8) and (Is_Cash_Tender)\\quot\\)//crlf////tab////tab////tab//r=driverAddNewRecord(drvAddendum)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\RecType\\quot\\\\comma\\r\\comma\\25)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\ID1\\quot\\\\comma\\r\\comma\\\\quot\\0\\quot\\)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dCashTender)//crlf////crlf////tab////tab////tab////add field for non-cash tender//crlf////tab////tab////tab//dNonCashTender=dTotalTender-dCashTender//crlf////tab////tab////tab//r=driverAddNewRecord(drvAddendum)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\RecType\\quot\\\\comma\\r\\comma\\26)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\ID1\\quot\\\\comma\\r\\comma\\\\quot\\0\\quot\\)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dNonCashTender)//crlf////crlf////tab////tab////tab////add field for total tips//crlf////tab////tab////tab//dTotalTips=driverRangeSum(drvCheckDetails\\comma\\\\quot\\Amount\\quot\\\\comma\\true\\comma\\\\quot\\(RecType=10)\\quot\\)//crlf////tab////tab////tab//r=driverAddNewRecord(drvAddendum)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\RecType\\quot\\\\comma\\r\\comma\\27)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\ID1\\quot\\\\comma\\r\\comma\\\\quot\\0\\quot\\)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dTotalTips)//crlf////crlf////tab////tab////tab////add field for cash tips//crlf////tab////tab////tab//dCashTips=driverRangeSum(drvCheckDetails\\comma\\\\quot\\Amount\\quot\\\\comma\\true\\comma\\\\quot\\(RecType=10) and (Is_Cash_Tender)\\quot\\)//crlf////tab////tab////tab//r=driverAddNewRecord(drvAddendum)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\RecType\\quot\\\\comma\\r\\comma\\28)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\ID1\\quot\\\\comma\\r\\comma\\\\quot\\0\\quot\\)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dCashTips)//crlf////crlf////tab////tab////tab////add field for non-cash tips//crlf////tab////tab////tab//dNonCashTips=dTotalTips-dCashTips//crlf////tab////tab////tab//r=driverAddNewRecord(drvAddendum)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\RecType\\quot\\\\comma\\r\\comma\\29)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\ID1\\quot\\\\comma\\r\\comma\\\\quot\\0\\quot\\)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dNonCashTips)//crlf////crlf////tab////tab////tab////add field for gift cert sale//crlf////tab////tab////tab//dTotalGiftCertSale=driverRangeSum(drvCheckDetails\\comma\\\\quot\\Amount\\quot\\\\comma\\true\\comma\\\\quot\\(RecType=9)\\quot\\)//crlf////tab////tab////tab//r=driverAddNewRecord(drvAddendum)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\RecType\\quot\\\\comma\\r\\comma\\30)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\ID1\\quot\\\\comma\\r\\comma\\\\quot\\0\\quot\\)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dTotalGiftCertSale)//crlf////crlf////tab////tab////tab////add field for total paid-in//crlf////tab////tab////tab//dTotalPaidIn=driverRangeSum(drvCheckDetails\\comma\\\\quot\\Amount\\quot\\\\comma\\true\\comma\\\\quot\\(RecType=35)\\quot\\)//crlf////tab////tab////tab//r=driverAddNewRecord(drvAddendum)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\RecType\\quot\\\\comma\\r\\comma\\37)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\ID1\\quot\\\\comma\\r\\comma\\\\quot\\0\\quot\\)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\abs(dTotalPaidIn))//crlf////crlf////tab////tab////tab////add field for total paid-out//crlf////tab////tab////tab//dTotalPaidOut=driverRangeSum(drvCheckDetails\\comma\\\\quot\\Amount\\quot\\\\comma\\true\\comma\\\\quot\\(RecType=36)\\quot\\)//crlf////tab////tab////tab//r=driverAddNewRecord(drvAddendum)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\RecType\\quot\\\\comma\\r\\comma\\38)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\ID1\\quot\\\\comma\\r\\comma\\\\quot\\0\\quot\\)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\abs(dTotalPaidOut))//crlf////crlf////tab////tab////tab////add field for cash due//crlf////tab////tab////tab//dCashDue=dGrossSales-dTotalCompsAndDiscounts-dNonCashTender\\plus\\dTotalGiftCertSale//crlf////tab////tab////tab//r=driverAddNewRecord(drvAddendum)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\RecType\\quot\\\\comma\\r\\comma\\31)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\ID1\\quot\\\\comma\\r\\comma\\\\quot\\0\\quot\\)//crlf////tab////tab////tab//driverPutFieldAbsolute(drvAddendum\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dCashDue)//crlf////crlf////tab////tab////tab//driverClose(drvAddendum)//crlf////tab////tab////tab//driverClose(drvCheckDetails)//crlf////crlf////tab////tab////tab//return(\\quot\\ok\\quot\\)//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf////crlf////crlf//<conditional expression:false>//crlf//========================================================================//crlf//updateDailySalesSingleDay//crlf//========================================================================//crlf//</conditional>//crlf//<conditional expression:(\\quot\\__Action__\\quot\\=\\quot\\updateDailySalesSingleDay\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__ActionDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Updates the daily sales file for a single day.  The daily sales file contains//crlf////tab////tab//totals for each identifier - category sales\\comma\\ department sales\\comma\\ comps\\comma\\ tenders\\comma\\ etc.//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//StoreID - ID of the store to be updated//crlf////tab////tab//Date - The date to be updated (MM-dd-yyyy)//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Ok or Error//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\updateDailySalesSingleDay\\quot\\; commands:\\quot\\//crlf////tab////tab////tab//appendToLog(\\quot\\updateDailySalesSingleDay started StoreID=__StoreID__ Date=__Date__\\quot\\)//crlf////crlf////tab////tab////tab////abort if store is undefiend//crlf////tab////tab////tab//if(undefined(\\quot\\__StoreID__\\quot\\))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing StoreID\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if store code is invalid//crlf////tab////tab////tab//if(len(trim(lookup(Aspect_BackOffice_Store_ID_By_ID\\comma\\\\quot\\__StoreID__\\quot\\)))=0)//crlf////tab////tab////tab////tab//return(\\quot\\Error: Invalid StoreID: __StoreID__\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if date is undefined//crlf////tab////tab////tab//if(undefined(\\quot\\__date__\\quot\\))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing date\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////get filenames//crlf////tab////tab////tab//StoreDir=addDirSlash(lookup(Aspect_BackOffice_Store_Directory_By_ID\\comma\\\\quot\\__StoreID__\\quot\\))//crlf////tab////tab////tab//sCheckDetailsFilename=StoreDir\\plus\\\\quot\\ckd.__Date__.bin\\quot\\//crlf////tab////tab////tab//sDailySalesFilename=StoreDir\\plus\\\\quot\\sales.__Date__.bin\\quot\\//crlf////crlf////tab////tab////tab////clear the daily sales file.  Leave an empty file so it can be opened without//crlf////tab////tab////tab////giving error.  //crlf////tab////tab////tab//if(fileExists(sDailySalesFilename))//crlf////tab////tab////tab////tab//fileSetLength(sDailySalesFilename\\comma\\0)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////open daily sales//crlf////tab////tab////tab//driverOpen(POS_Generic_Daily_Sales\\comma\\drvDailySales\\comma\\WRITE\\comma\\false\\comma\\\\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__~~pipe~~NoDepend\\quot\\)//crlf////tab////tab////tab//driverSetFilter(drvDailySales\\comma\\\\quot\\true\\quot\\\\comma\\true)//crlf////crlf////tab////tab////tab////abort if check details file does not exist//crlf////tab////tab////tab////add a record for the datenumber so the daily sales widget does not show an //crlf////tab////tab////tab////\\quot\\No fields in key: DateNumber\\quot\\ error is not displayed in the cash reconciliation//crlf////tab////tab////tab//if(not(fileExists(sCheckDetailsFilename)))//crlf////tab////tab////tab////tab//r=driverAddNewRecord(drvDailySales)//crlf////tab////tab////tab////tab//driverPutField(drvDailySales\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\99)//crlf////tab////tab////tab////tab//driverPutField(drvDailySales\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\\\quot\\DateNumber\\quot\\)//crlf////tab////tab////tab////tab//driverPutField(drvDailySales\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dateNumber(parseTime(\\quot\\__Date__\\quot\\\\comma\\\\quot\\MM-dd-yyyy\\quot\\)))//crlf////tab////tab////tab////tab//driverClose(drvDailySales)//crlf////crlf////tab////tab////tab////tab////return Ok so the dependency state will be updated//crlf////tab////tab////tab////tab//return(\\quot\\Ok: No check details: \\quot\\\\plus\\sCheckDetailsFilename)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////open check details//crlf////tab////tab////tab//driverOpen(POS_Generic_Check_Detail_With_Addendum\\comma\\drvCheckDetails\\comma\\READ\\comma\\false\\comma\\\\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\)//crlf////tab////crlf////tab////tab////tab////merge check details to daily sales//crlf////tab////tab////tab////When setting the filter\\comma\\ always include record types for totals\\comma\\ even if the amount//crlf////tab////tab////tab////is zero.  This is done to ensure that the field is defined so it can be included //crlf////tab////tab////tab////in the sales reconciliation dialog//crlf////tab////tab////tab//driverSetSubtotal(drvCheckDetails\\comma\\\\quot\\Sum\\quot\\\\comma\\\\quot\\Rectype~~pipe~~ID_For_Daily_Sales_Summary\\quot\\)//crlf////tab////tab////tab//driverSetDetails(drvCheckDetails\\comma\\false)//crlf////crlf////tab////tab////tab//driverSetFilter(drvCheckDetails\\comma\\\\quot\\true\\quot\\\\comma\\true)//crlf////tab////tab////tab//appendToLog(\\quot\\Records in drvCheckDetails1=\\quot\\\\plus\\driverGetRecordCount(drvCheckDetails))//crlf////crlf////tab////tab////tab//driverSetFilter(drvCheckDetails\\comma\\\\quot\\((gte(RecType\\comma\\22\\comma\\\\quot\\\\plus\\quote(\\quot\\n\\quot\\)\\plus\\\\quot\\)) or (not(Amount=0))) and (not(len(trim(ID_For_Daily_Sales_Summary))=0))\\quot\\\\comma\\true)//crlf////tab////tab////tab//appendToLog(\\quot\\Records in drvCheckDetails2=\\quot\\\\plus\\driverGetRecordCount(drvCheckDetails))//crlf////crlf////tab////tab////tab//appendToLog(\\quot\\Merging check details.  Records=\\quot\\\\plus\\driverGetRecordCount(drvCheckDetails\\comma\\false)\\plus\\\\quot\\ of \\quot\\\\plus\\driverGetRecordCount(drvCheckDetails\\comma\\true))//crlf////tab////tab////tab//s=driverMerge(true\\comma\\drvDailySales\\comma\\\\quot\\true\\quot\\\\comma\\drvCheckDetails\\comma\\\\quot\\true\\quot\\\\comma\\\\quot\\Record_Type~~pipe~~POS_ID\\quot\\\\comma\\\\quot\\Record_Type~~pipe~~POS_ID~~pipe~~Quantity~~pipe~~Amount\\quot\\\\comma\\\\quot\\Record_Type=RecType~~pipe~~POS_ID=ID_For_Daily_Sales_Summary\\quot\\\\comma\\\\quot\\\\quot\\\\comma\\false)//crlf////tab////tab////tab//appendToLog(s)//crlf////crlf////tab////tab////tab////add another field for the date using record type 99//crlf////tab////tab////tab//r=driverAddNewRecord(drvDailySales)//crlf////tab////tab////tab//driverPutField(drvDailySales\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\99)//crlf////tab////tab////tab//driverPutField(drvDailySales\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\\\quot\\DateNumber\\quot\\)//crlf////tab////tab////tab//driverPutField(drvDailySales\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dateNumber(parseTime(\\quot\\__Date__\\quot\\\\comma\\\\quot\\MM-dd-yyyy\\quot\\)))//crlf////crlf////tab////tab////tab//driverClose(drvCheckDetails)//crlf////tab////tab////tab//driverClose(drvDailySales)//crlf////crlf////tab////tab////tab//return(\\quot\\ok\\quot\\)//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf////crlf//<conditional expression:false>//crlf//========================================================================//crlf//updateDailySalesAllDays//crlf//========================================================================//crlf//</conditional>//crlf//<conditional expression:(\\quot\\__Action__\\quot\\=\\quot\\updateDailySalesAllDays\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__ActionDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Updates all daily sales files for all stores.  It is necessary to update data for//crlf////tab////tab//all stores in order to update files on office computers.//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//None//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Ok or Error//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\updateDailySalesAllDays\\quot\\; commands:\\quot\\//crlf////tab////tab////tab//appendToLog(\\quot\\updateDailySalesAllDays started\\quot\\)//crlf////tab////tab////tab////get collection of store ID\\apos\\s//crlf////tab////tab////tab//arStoreID=getCollection(\\quot\\Aspect_BackOffice_Store_ID_By_ID\\quot\\\\comma\\\\quot\\\\quot\\\\comma\\\\quot\\\\quot\\\\comma\\\\quot\\\\quot\\\\comma\\char(0x2c)\\comma\\\\quot\\Key\\quot\\)//crlf////crlf////tab////tab////tab//cChecked=0//crlf////tab////tab////tab//cUpdated=0//crlf////tab////tab////tab//cCreated=0//crlf////tab////tab////tab//cStore=getElementCount(arStoreID)//crlf////tab////tab////tab//nStore=0//crlf////tab////tab////tab//while(nStore<cStore)//crlf////crlf////tab////tab////tab////tab////get store ID//crlf////tab////tab////tab////tab//StoreID=getElement(arStoreID\\comma\\nStore)//crlf////crlf////tab////tab////tab////tab//if(StoreID<>\\quot\\0\\quot\\)//crlf////tab////tab////tab////tab////tab////get store directory//crlf////tab////tab////tab////tab////tab//StoreDir=addDirSlash(lookup(Aspect_BackOffice_Store_Directory_By_ID\\comma\\StoreID))//crlf////tab////tab////tab////tab////tab//sCheckDetailsFilename=StoreDir\\plus\\\\quot\\ckd.__Date__.bin\\quot\\//crlf////crlf////tab////tab////tab////tab////tab////get list of check detail files//crlf////tab////tab////tab////tab////tab//arCheckDetail=getMatchingFiles(StoreDir\\plus\\\\quot\\ckd.*\\quot\\\\comma\\false\\comma\\false)//crlf////crlf////tab////tab////tab////tab////tab//c=getElementCount(arCheckDetail\\comma\\\\quot\\~~pipe~~\\quot\\)//crlf////tab////tab////tab////tab////tab//n=0//crlf////tab////tab////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab////tab////tab//sCheckDetailFilename=getElement(arCheckDetail\\comma\\n\\comma\\\\quot\\~~pipe~~\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////sParams=\\quot\\StoreID=\\quot\\\\plus\\StoreID\\plus\\\\quot\\\\amp\\Date=\\quot\\\\plus\\getElement(sCheckDetailFilename\\comma\\1\\comma\\\\quot\\.\\quot\\)//crlf////tab////tab////tab////tab////tab////tab//sParams=\\quot\\StoreID=\\quot\\\\plus\\StoreID\\plus\\\\quot\\~~pipe~~Date=\\quot\\\\plus\\getElement(sCheckDetailFilename\\comma\\1\\comma\\\\quot\\.\\quot\\)//crlf////tab////tab////tab////tab////tab////tab//if(fileExists(sCheckDetailFilename))//crlf////tab////tab////tab////tab////tab////tab////tab////===============================================================//crlf////tab////tab////tab////tab////tab////tab////tab////04-24-2017: Modified this to use updateDependentDriver instead of calling//crlf////tab////tab////tab////tab////tab////tab////tab////the agent action.  Calling the agent action would not update the dependency //crlf////tab////tab////tab////tab////tab////tab////tab////information and the driver would have to be updated again//crlf////tab////tab////tab////tab////tab////tab////tab////===============================================================//crlf////tab////tab////tab////tab////tab////tab////tab//sDailySalesFilename=replaceSubstring(sCheckDetailFilename\\comma\\\\quot\\ckd.\\quot\\\\comma\\\\quot\\sales.\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab//if(fileExists(sDailySalesFilename))//crlf////tab////tab////tab////tab////tab////tab////tab////tab//if(fileModified(sCheckDetailFilename)>=fileModified(sDailySalesFilename))//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab////execAgentAction(\\quot\\updateDailySalesSingleDay\\quot\\\\comma\\sParams)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//updateDependentDriver(POS_Generic_Daily_Sales\\comma\\sParams)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//cUpdated\\plus\\\\plus\\//crlf////tab////tab////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////tab////tab////tab////execAgentAction(\\quot\\updateDailySalesSingleDay\\quot\\\\comma\\sParams)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//updateDependentDriver(POS_Generic_Daily_Sales\\comma\\sParams)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//cCreated\\plus\\\\plus\\//crlf////tab////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////tab////tab////update the dependency state so the driver is not updated again//crlf////tab////tab////tab////tab////tab////tab////tab//setDependencyStates(POS_Generic_Daily_Sales\\comma\\sParams\\comma\\\\quot\\\\quot\\\\comma\\\\quot\\\\quot\\\\comma\\\\quot\\No check details\\quot\\)//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////tab//cChecked\\plus\\\\plus\\//crlf////tab////tab////tab////tab////tab////crlf////tab////tab////tab////tab////tab////tab//n\\plus\\\\plus\\//crlf////tab////tab////tab////tab////tab//endwhile//crlf////tab////tab////tab////tab//endif//crlf////tab////crlf////tab////tab////tab////tab//nStore\\plus\\\\plus\\//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab//return(\\quot\\Ok: Checked \\quot\\\\plus\\cChecked\\plus\\\\quot\\ files in \\quot\\\\plus\\cStore\\plus\\\\quot\\ store directories.  Created: \\quot\\\\plus\\cCreated\\plus\\\\quot\\ Updated: \\quot\\\\plus\\cUpdated)//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>^
ID=debug_console|X=300|Y=127|W=796|H=663|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=debug_console|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=313539|X=300|Y=127|W=796|H=663|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=AgentStart|X=151|Y=43|W=150|H=20|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=AgentStart|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=left_bar|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=19867|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|AgentSuspended=false|AgentDebug=false|AgentReport=never|^
ID=976023|X=183|Y=468|W=119|H=45|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=AgentTerminate|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=0|AgentAction=0|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=Result|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=0|^
ID=AgentTabs|X=151|Y=16|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=top_bar|AttachLeft=left_bar|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<table class='tabdialog'>//crlf////tab//<tr>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentStart');agentSetVisible(true)\\quot\\>Agent</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentDescription');agentSetVisible(false)\\quot\\>Description</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentStatus');agentSetVisible(false)\\quot\\>Status</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentScript');agentSetVisible(false)\\quot\\>Script</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'ScriptText');agentSetVisible(false)\\quot\\>Script (Text)</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentChart');agentSetVisible(false);agentFormatNodes(document.getElementById('AgentChart'));agentDrawConnectors(document.getElementById('AgentChart'))\\quot\\>Chart</span></td>//crlf////tab//</tr>//crlf//</table>//crlf//^
ID=AgentScript|X=151|Y=43|W=1000|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Aspect_Script|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<conditional expression:(\\quot\\__ExecAgentScript__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab//<!include type:script; name:\\quot\\agent_Daily Sales\\quot\\; commands:\\quot\\//crlf////crlf////tab////tab//::node\\comma\\VWaUGu88BMN0hDYWzZj57VpG_Daily Sales\\comma\\AgentStart\\comma\\AgentStart\\comma\\0\\comma\\//crlf////tab////tab////Created 03-16-2016 23:41:01//crlf////crlf////tab////tab////Force reporting when the agent is executed manually//crlf////tab////tab//bForceReport=((\\quot\\__ManualExecAgent__\\quot\\=\\quot\\true\\quot\\) or (false))//crlf////crlf////tab////tab////Record the starting time//crlf////tab////tab//tAgentStart=now()//crlf////crlf////tab////tab//::node\\comma\\VWaUGu88BMN0hDYWzZj57VpG_Daily Sales\\comma\\AgentAction\\comma\\19867\\comma\\0\\comma\\Update daily sales files for all days//crlf////crlf////tab////tab////Update daily sales files for all days//crlf////tab////tab//Result=execAgentAction(\\quot\\updateDailySalesAllDays\\quot\\)//crlf////crlf////tab////tab////Success?//crlf////tab////tab//if(startsWith(Result\\comma\\\\quot\\ok\\quot\\))//crlf////tab////tab////tab//::node\\comma\\VWaUGu88BMN0hDYWzZj57VpG_Daily Sales\\comma\\AgentTerminate\\comma\\976023\\comma\\0\\comma\\//crlf////tab////tab////tab//scriptSetResult(Result)//crlf////tab////tab//else//crlf////tab////tab////tab//::node\\comma\\VWaUGu88BMN0hDYWzZj57VpG_Daily Sales\\comma\\AgentTerminate\\comma\\738121\\comma\\1\\comma\\Error//crlf////tab////tab////tab//scriptSetResult(Result)//crlf////tab////tab//endif//crlf////tab//\\quot\\>//crlf//</conditional>^
ID=ScriptText|X=151|Y=43|W=1000|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<span style='font:8pt tahoma;color:black'>//amp//lt;state//amp//gt;03162016//amp//nbsp;234101//amp//lt;/state//amp//gt;<br>//amp//lt;<span class='includecontrol'>conditional</span>//amp//nbsp;expression:(\\quot\\__ExecAgentScript__\\quot\\=\\quot\\true\\quot\\)//amp//gt;<br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//lt;!<span class='includecontrol'>include</span>//amp//nbsp;type:script;//amp//nbsp;name:\\quot\\agent_Daily//amp//nbsp;Sales\\quot\\;//amp//nbsp;commands:\\quot\\<br><br><span class='comment'>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//Created//amp//nbsp;03-16-2016//amp//nbsp;23:41:01</span><br><br><span class='comment'>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//Force//amp//nbsp;reporting//amp//nbsp;when//amp//nbsp;the//amp//nbsp;agent//amp//nbsp;is//amp//nbsp;executed//amp//nbsp;manually</span><br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;bForceReport=((\\quot\\__ManualExecAgent__\\quot\\=\\quot\\true\\quot\\)//amp//nbsp;or//amp//nbsp;(false))<br><br><span class='comment'>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//Record//amp//nbsp;the//amp//nbsp;starting//amp//nbsp;time</span><br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;tAgentStart=<span class='keyword'>now</span>()<br><br><br><span class='comment'>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//Update//amp//nbsp;daily//amp//nbsp;sales//amp//nbsp;files//amp//nbsp;for//amp//nbsp;all//amp//nbsp;days</span><br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;Result=<span class='keyword'>execAgentAction</span>(\\quot\\updateDailySalesAllDays\\quot\\)<br><br><span class='comment'>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//Success?</span><br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;<span class='flowcontrol'><span class='keyword'>if</span>(</span><span class='keyword'>startsWith</span>(Result\\comma\\\\quot\\ok\\quot\\))<br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;<span class='keyword'>scriptSetResult</span>(Result)<br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;<span class='flowcontrol'>else</span><br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;<span class='keyword'>scriptSetResult</span>(Result)<br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;<span class='flowcontrol'>endif</span><br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;\\quot\\//amp//gt;<br>//amp//lt;/<span class='includecontrol'>conditional</span>//amp//gt;<br><br></span>^
ID=AgentDescription|X=151|Y=43|W=1000|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=AgentStatus|X=151|Y=43|W=1000|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<include type:expression; expression:htmlConstant(\\quot\\salt\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\getSalt(4))>//crlf////crlf//<conditional expression:(\\quot\\__table__\\quot\\=\\quot\\checkdetails\\quot\\)>//crlf////tab//<include type:widget; server:{aspecthashid}; secure:false; documentID:\\quot\\h0BE4ziTlLytqKxtWLMy5CVY\\quot\\; widget:\\quot\\Notification Container\\quot\\; containerItemID:\\quot\\select_store_and_dates\\quot\\; params:\\quot\\Select=store//amp//From=false//amp//To=true//amp//func=showCheckDetails//amp//salt=__salt__\\quot\\;>//crlf////tab//<script ID=\\quot\\JSCheckDetails\\quot\\>//crlf////tab////tab//function showCheckDetails(Salt\\comma\\Store\\comma\\Date) {//crlf////tab////tab////tab//var e=document.getElementById(\\quot\\CheckDetails\\quot\\+Salt);//crlf////tab////tab////tab//e.setAttribute(\\quot\\url\\quot\\\\comma\\e.getAttribute(\\quot\\_url\\quot\\)+\\quot\\//amp//StoreID=\\quot\\+Store+\\quot\\//amp//Date=\\quot\\+Date);//crlf////tab////tab////tab//setInterval(e\\comma\\0\\comma\\true);//crlf////tab////tab//};//crlf////tab//</script>//crlf////tab////crlf////tab//<div ID=\\quot\\CheckDetails__salt__\\quot\\ _url=\\quot\\__RequestServer__/?Network=GreenLight//amp//ID=getWidget//amp//DocumentID=VWaUGu88BMN0hDYWzZj57VpG//amp//Widget=Daily Sales//amp//ContainerItemID=check_details\\quot\\></div>//crlf//</conditional>//crlf////crlf//<conditional expression:(\\quot\\__table__\\quot\\=\\quot\\dailysales\\quot\\)>//crlf////tab//<include type:widget; server:{aspecthashid}; secure:false; documentID:\\quot\\h0BE4ziTlLytqKxtWLMy5CVY\\quot\\; widget:\\quot\\Notification Container\\quot\\; containerItemID:\\quot\\select_store_and_dates\\quot\\; params:\\quot\\Select=store//amp//From=false//amp//To=true//amp//func=showDailySales//amp//salt=__salt__\\quot\\;>//crlf////tab//<script ID=\\quot\\JSdailySales\\quot\\>//crlf////tab////tab//function showDailySales(Salt\\comma\\Store\\comma\\Date) {//crlf////tab////tab////tab//var e=document.getElementById(\\quot\\DailySales\\quot\\+Salt);//crlf////tab////tab////tab//e.setAttribute(\\quot\\url\\quot\\\\comma\\e.getAttribute(\\quot\\_url\\quot\\)+\\quot\\//amp//StoreID=\\quot\\+Store+\\quot\\//amp//Date=\\quot\\+Date);//crlf////tab////tab////tab//setInterval(e\\comma\\0\\comma\\true);//crlf////tab////tab//};//crlf////tab//</script>//crlf////tab////crlf////tab//<div ID=\\quot\\DailySales__salt__\\quot\\ _url=\\quot\\__RequestServer__/?Source={AspectHashID}//amp//Network=GreenLight//amp//ID=getWidget//amp//DocumentID=VWaUGu88BMN0hDYWzZj57VpG//amp//Widget=Daily Sales//amp//ContainerItemID=daily_sales\\quot\\></div>//crlf//</conditional>^
ID=AgentChart|X=151|Y=43|W=1000|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>03162016 234101</state>//crlf//<canvas height=\\quot\\100\\quot\\ width=\\quot\\100\\quot\\ style=\\quot\\position: absolute; top: 0px; left: 0px; width: 100px; height: 100px; border-style: none; z-index: 2;\\quot\\ id=\\quot\\agent_doc_canvas\\quot\\></canvas><div agentchildyesnode=\\quot\\chart19867\\quot\\ content_type=\\quot\\AgentAction\\quot\\ style=\\quot\\position: absolute; top: 0px; left: 0px; width: 120px; height: auto; display: block;\\quot\\ isagentdoc=\\quot\\true\\quot\\ id=\\quot\\chartAgentStart\\quot\\><canvas height=\\quot\\111\\quot\\ width=\\quot\\120\\quot\\ style=\\quot\\width: 120px; height: 111px; position: absolute; top: 0px; left: 0px;\\quot\\></canvas><div class=\\quot\\agentstart\\quot\\><b>Daily Sales</b><br><span style=\\quot\\font-weight:normal;color:green\\quot\\>Active</span><br><span style=\\quot\\font-weight:normal;color:black\\quot\\>Debugging Is Off</span><br>Report Status: never<br>Report To: <br>Name Params: </div></div><div content_type=\\quot\\AgentTerminate\\quot\\ style=\\quot\\position: absolute; top: 426px; left: 0px; width: 120px; height: 48px; display: block;\\quot\\ isagentdoc=\\quot\\true\\quot\\ id=\\quot\\chart976023\\quot\\><canvas height=\\quot\\46\\quot\\ width=\\quot\\120\\quot\\ style=\\quot\\width: 120px; height: 46px; position: absolute; top: 0px; left: 0px;\\quot\\></canvas><div class=\\quot\\agentterminator\\quot\\>Terminate<br><span style=\\quot\\color:green\\quot\\>Success</span></div></div><div agentchildyesnode=\\quot\\chart567310\\quot\\ content_type=\\quot\\AgentAction\\quot\\ style=\\quot\\position: absolute; top: 163px; left: 0px; width: 150px; height: auto; display: block;\\quot\\ isagentdoc=\\quot\\true\\quot\\ id=\\quot\\chart19867\\quot\\><canvas height=\\quot\\95\\quot\\ width=\\quot\\120\\quot\\ style=\\quot\\width: 150px; height: 95px; position: absolute; top: 0px; left: 0px;\\quot\\></canvas><div class=\\quot\\agentaction\\quot\\>Update daily sales files for all days<hr><table tabsinitialized=\\quot\\true\\quot\\><tbody><tr><td><u>Action</u></td><td>updateDailySalesAllDays<br></td></tr><tr><td><u>Return</u></td><td>Result</td></tr></tbody></table></div></div><div agentchildnonode=\\quot\\chart738121\\quot\\ agentchildyesnode=\\quot\\chart976023\\quot\\ content_type=\\quot\\AgentDecision\\quot\\ style=\\quot\\position: absolute; top: 310px; left: 0px; width: 150px; height: auto; display: block;\\quot\\ isagentdoc=\\quot\\true\\quot\\ id=\\quot\\chart567310\\quot\\><canvas height=\\quot\\64\\quot\\ width=\\quot\\120\\quot\\ style=\\quot\\width: 150px; height: 64px; position: absolute; top: 0px; left: 0px;\\quot\\></canvas><div class=\\quot\\agentdecision\\quot\\>Success?<hr><table tabsinitialized=\\quot\\true\\quot\\><tbody><tr><td><u>Sensor</u></td><td>Expression<br></td></tr></tbody></table></div></div><div content_type=\\quot\\AgentTerminate\\quot\\ style=\\quot\\position: absolute; top: 310px; left: 190px; width: 120px; height: 86px; display: block;\\quot\\ isagentdoc=\\quot\\true\\quot\\ id=\\quot\\chart738121\\quot\\><canvas height=\\quot\\84\\quot\\ width=\\quot\\120\\quot\\ style=\\quot\\width: 120px; height: 84px; position: absolute; top: 0px; left: 0px;\\quot\\></canvas><div class=\\quot\\agentterminator\\quot\\>Terminate<br><hr>Error<hr><span style=\\quot\\color:red\\quot\\>Fail</span></div></div>^
ID=daily_sales|X=300|Y=127|W=860|H=654|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>//crlf////tab//__StoreID__//crlf////tab//__Date__//crlf////tab//{@if(not(fileExists(addDirSlash(lookup(Aspect_BackOffice_Store_Directory_By_ID\\comma\\\\quot\\__StoreID__\\quot\\))+\\quot\\sales.\\quot\\+\\quot\\__date__\\quot\\+\\quot\\.bin\\quot\\))\\comma\\now()\\comma\\getFilespecState(addDirSlash(lookup(Aspect_BackOffice_Store_Directory_By_ID\\comma\\\\quot\\__StoreID__\\quot\\))+\\quot\\sales.__Date__.bin\\quot\\\\comma\\false\\comma\\ false\\comma\\0\\comma\\\\quot\\\\quot\\\\comma\\true\\comma\\true))}//crlf////tab//{@getFilespecState(addDirSlash(lookup(Aspect_BackOffice_Store_Directory_By_ID\\comma\\\\quot\\__StoreID__\\quot\\))+\\quot\\ckd.\\quot\\+\\quot\\__date__\\quot\\+\\quot\\.bin\\quot\\\\comma\\false\\comma\\ false\\comma\\0\\comma\\\\quot\\\\quot\\\\comma\\true\\comma\\true)}//crlf////tab//{@gfs(addDirSlash(lookup(Aspect_BackOffice_Store_Directory_By_ID\\comma\\\\quot\\__StoreID__\\quot\\))+\\quot\\customsalesfields.bin\\quot\\)}//crlf////tab//{@if(formatDate(now()\\comma\\\\quot\\MMddyyyy\\quot\\)=\\quot\\08182016\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf////tab//1.03//crlf//</state>//crlf////crlf//[!------------------------------------------------------------------------//crlf//Constants for Debugging//crlf//<include type:expression; expression:htmlConstant(\\quot\\StoreID\\quot\\\\comma\\\\quot\\__StoreID__\\quot\\\\comma\\\\quot\\Es134hBQNJBUojYEL0ZGpNLO\\quot\\)>//crlf//<include type:expression; expression:htmlConstant(\\quot\\Date\\quot\\\\comma\\\\quot\\__Date__\\quot\\\\comma\\\\quot\\01-01-2018\\quot\\)>//crlf//--------------------------------------------------------------------------]//crlf////crlf//<conditional expression:(undefined(\\quot\\__storeID__\\quot\\)) or (\\quot\\__storeID__\\quot\\=\\quot\\0\\quot\\)>//crlf////tab//Error: Missing StoreID<br>//crlf//</conditional>//crlf////crlf//<conditional expression:(undefined(\\quot\\__Date__\\quot\\))>//crlf////tab//Error: Missing Date<br>//crlf//</conditional>//crlf////crlf//<conditional expression:(defined(\\quot\\__StoreID__\\quot\\)) and (not(\\quot\\__StoreID__\\quot\\=\\quot\\0\\quot\\)) and (defined(\\quot\\__Date__\\quot\\))>//crlf////tab//<h2>Transposed Driver</h2>//crlf////crlf////tab//<p>This table is the same one used to create these collections.</p>//crlf////tab//<ul>//crlf////tab////tab//<li>POS_Generic_Daily_Sales_Field_Amount_by_ID</li>//crlf////tab////tab//<li>POS_Generic_Daily_Sales_Field_Name_by_ID</li>//crlf////tab////tab//<li>POS_Generic_Daily_Sales_Field_Quantity_by_ID</li>//crlf////tab//</ul>//crlf////tab//<p>The collections are sensor collections created by calling the //crlf////tab////tab//CollectionDailySalesFieldNamesById and collectionDailySalesValueByFieldID sensors//crlf////tab////tab//in this widget.</p>//crlf////tab//<p>It is important to be careful when adding fields to the POS_Generic_Daily_Sales//crlf////tab////tab//structure.  These sensor collections get their values from specific records in the //crlf////tab////tab//transposed daily sales driver.  If the structure is modified\\comma\\ the record numbers //crlf////tab////tab//used by the collections may be changed.</p>//crlf////tab//<p>To view the records in the order that they are read by the sensors\\comma\\ it is necessary to //crlf////tab////tab//customize this table and change the sort option to --select-- to eliminate the sort.//crlf////tab////tab//The Description column will reflect the fields in the structure and be in the same order.  //crlf////tab////tab//The fields used by the sensor collections are Quantity\\comma\\ Amount and Field Description.</p>//crlf////crlf////tab//<!include type:driver;//crlf////tab////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab////tab//title: \\quot\\\\quot\\;//crlf////tab////tab//HashID: \\quot\\\\quot\\;//crlf////tab////tab//driver: \\quot\\POS_GENERIC_DAILY_SALES\\quot\\;//crlf////tab////tab//name: \\quot\\\\quot\\;//crlf////tab////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab////tab//dispose: \\quot\\false\\quot\\;//crlf////tab////tab//state: \\quot\\\\quot\\;//crlf////tab////tab//_params: \\quot\\keyexpression=DateNumber~~pipe~~CacheTtl=0~~pipe~~Metadata=POS_GENERIC_DAILY_SALES_Transposed~~pipe~~Date=__Date__~~pipe~~StoreID=__StoreID__~~pipe~~Transpose=true~~pipe~~TransposeID=Sales_Structure_Field_ID~~pipe~~TransposeFields=Amount\\quot\\;//crlf////tab////tab//params: \\quot\\keyexpression=DateNumber~~pipe~~CacheTtl=0~~pipe~~Metadata=POS_GENERIC_DAILY_SALES_Transposed~~pipe~~Date=__Date__~~pipe~~StoreID=__StoreID__~~pipe~~Transpose=true~~pipe~~TransposeID=Sales_Structure_Field_ID\\quot\\;//crlf////tab////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab////tab//display: \\quot\\\\quot\\;//crlf////tab////tab//fields: \\quot\\\\quot\\;//crlf////tab////tab//sort: \\quot\\ID\\quot\\;//crlf////tab////tab//filter: \\quot\\true\\quot\\;//crlf////tab////tab//class: \\quot\\basic1\\quot\\;//crlf////tab////tab//maxrecords: \\quot\\-1\\quot\\;//crlf////tab////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab////tab//style: \\quot\\width:auto\\quot\\;//crlf////tab////tab//canSelect: \\quot\\false\\quot\\;//crlf////tab////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab////tab//canEdit: \\quot\\true\\quot\\;//crlf////tab////tab//canAdd: \\quot\\false\\quot\\;//crlf////tab////tab//canDelete: \\quot\\false\\quot\\;//crlf////tab////tab//EmbedValues: \\quot\\\\quot\\;//crlf////tab////tab//EditDialogID: \\quot\\POS_GENERIC_DAILY_SALESDialog\\quot\\;//crlf////tab////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab////tab//ExternalFilters: \\quot\\\\quot\\;//crlf////tab////tab//TableControls: \\quot\\true\\quot\\;//crlf////tab////tab//TableHeader: \\quot\\true\\quot\\;//crlf////tab////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab////tab//SelectDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//EditDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//Menu: \\quot\\\\quot\\;//crlf////tab////tab//Messages: \\quot\\true\\quot\\;//crlf////tab////tab//ChartType: \\quot\\\\quot\\;//crlf////tab////tab//ChartWidth: \\quot\\640\\quot\\;//crlf////tab////tab//ChartHeight: \\quot\\480\\quot\\;//crlf////tab////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab////tab//ChartStyle: \\quot\\display:none\\quot\\;//crlf////tab////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab////tab//Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab////tab//debug: \\quot\\false\\quot\\;//crlf////tab//>//crlf////crlf////tab//<h2>Daily Sales Driver</h2>//crlf////tab//<!include type:driver;//crlf////tab////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab////tab//title: \\quot\\\\quot\\;//crlf////tab////tab//HashID: \\quot\\\\quot\\;//crlf////tab////tab//driver: \\quot\\POS_GENERIC_DAILY_SALES\\quot\\;//crlf////tab////tab//name: \\quot\\\\quot\\;//crlf////tab////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab////tab//dispose: \\quot\\false\\quot\\;//crlf////tab////tab//state: \\quot\\\\quot\\;//crlf////tab////tab//params: \\quot\\keyexpression=ID~~pipe~~CacheTtl=0~~pipe~~Metadata=POS_GENERIC_DAILY_SALES~~pipe~~Date=__Date__~~pipe~~StoreID=__StoreID__\\quot\\;//crlf////tab////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab////tab//display: \\quot\\\\quot\\;//crlf////tab////tab//fields: \\quot\\\\quot\\;//crlf////tab////tab//sort: \\quot\\ID\\quot\\;//crlf////tab////tab//filter: \\quot\\true\\quot\\;//crlf////tab////tab//class: \\quot\\basic1\\quot\\;//crlf////tab////tab//maxrecords: \\quot\\-1\\quot\\;//crlf////tab////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab////tab//style: \\quot\\width:auto\\quot\\;//crlf////tab////tab//canSelect: \\quot\\false\\quot\\;//crlf////tab////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab////tab//canEdit: \\quot\\false\\quot\\;//crlf////tab////tab//canAdd: \\quot\\false\\quot\\;//crlf////tab////tab//canDelete: \\quot\\false\\quot\\;//crlf////tab////tab//EmbedValues: \\quot\\\\quot\\;//crlf////tab////tab//EditDialogID: \\quot\\POS_GENERIC_DAILY_SALESDialog\\quot\\;//crlf////tab////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab////tab//ExternalFilters: \\quot\\\\quot\\;//crlf////tab////tab//TableControls: \\quot\\true\\quot\\;//crlf////tab////tab//TableHeader: \\quot\\true\\quot\\;//crlf////tab////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab////tab//SelectDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//EditDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//Menu: \\quot\\\\quot\\;//crlf////tab////tab//Messages: \\quot\\true\\quot\\;//crlf////tab////tab//ChartType: \\quot\\\\quot\\;//crlf////tab////tab//ChartWidth: \\quot\\640\\quot\\;//crlf////tab////tab//ChartHeight: \\quot\\480\\quot\\;//crlf////tab////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab////tab//ChartStyle: \\quot\\display:none\\quot\\;//crlf////tab////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab////tab//Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab////tab//debug: \\quot\\true\\quot\\;//crlf////tab//>//crlf//</conditional>//crlf//^
ID=check_details|X=300|Y=127|W=796|H=663|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<conditional expression:(undefined(\\quot\\__storeID__\\quot\\)) or (\\quot\\__storeID__\\quot\\=\\quot\\0\\quot\\)>//crlf////tab//Error: Missing StoreID<br>//crlf//</conditional>//crlf////crlf//<conditional expression:(undefined(\\quot\\__Date__\\quot\\))>//crlf////tab//Error: Missing Date<br>//crlf//</conditional>//crlf////crlf//<conditional expression:(defined(\\quot\\__StoreID__\\quot\\)) and (not(\\quot\\__StoreID__\\quot\\=\\quot\\0\\quot\\)) and (defined(\\quot\\__Date__\\quot\\))>//crlf////tab//<!include type:driver;//crlf////tab////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab////tab//title: \\quot\\\\quot\\;//crlf////tab////tab//HashID: \\quot\\\\quot\\;//crlf////tab////tab//driver: \\quot\\POS_GENERIC_CHECK_DETAIL_DTA\\quot\\;//crlf////tab////tab//name: \\quot\\\\quot\\;//crlf////tab////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab////tab//dispose: \\quot\\false\\quot\\;//crlf////tab////tab//state: \\quot\\\\quot\\;//crlf////tab////tab//params: \\quot\\keyexpression=ID~~pipe~~CacheTtl=0~~pipe~~Metadata=POS_GENERIC_CHECK_DETAIL_DTA~~pipe~~Date=__Date__~~pipe~~StoreID=__StoreID__\\quot\\;//crlf////tab////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab////tab//display: \\quot\\\\quot\\;//crlf////tab////tab//fields: \\quot\\\\quot\\;//crlf////tab////tab//sort: \\quot\\ID\\quot\\;//crlf////tab////tab//filter: \\quot\\true\\quot\\;//crlf////tab////tab//class: \\quot\\basic1\\quot\\;//crlf////tab////tab//maxrecords: \\quot\\250\\quot\\;//crlf////tab////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab////tab//style: \\quot\\width:auto\\quot\\;//crlf////tab////tab//canSelect: \\quot\\false\\quot\\;//crlf////tab////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab////tab//canEdit: \\quot\\false\\quot\\;//crlf////tab////tab//canAdd: \\quot\\false\\quot\\;//crlf////tab////tab//canDelete: \\quot\\false\\quot\\;//crlf////tab////tab//EmbedValues: \\quot\\\\quot\\;//crlf////tab////tab//EditDialogID: \\quot\\POS_GENERIC_CHECK_DETAIL_DTADialog\\quot\\;//crlf////tab////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab////tab//ExternalFilters: \\quot\\\\quot\\;//crlf////tab////tab//TableControls: \\quot\\true\\quot\\;//crlf////tab////tab//TableHeader: \\quot\\true\\quot\\;//crlf////tab////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab////tab//SelectDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//EditDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//Menu: \\quot\\\\quot\\;//crlf////tab////tab//Messages: \\quot\\true\\quot\\;//crlf////tab////tab//ChartType: \\quot\\\\quot\\;//crlf////tab////tab//ChartWidth: \\quot\\640\\quot\\;//crlf////tab////tab//ChartHeight: \\quot\\480\\quot\\;//crlf////tab////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab////tab//ChartStyle: \\quot\\display:none\\quot\\;//crlf////tab////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab////tab//Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab////tab//debug: \\quot\\false\\quot\\;//crlf////tab//>//crlf//</conditional>//crlf//^
ID=373826|X=300|Y=127|W=796|H=663|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=[!------------------------------------------------------------------------//crlf//Store ID's for testing//crlf////tab//Micros 3700 Interface: gMkFTWsNwltnOvRukWzzNKNc//crlf////tab//Taylor Square: KZX2VBNGExCTHrLmixKxY8eJ//crlf//--------------------------------------------------------------------------]//crlf//<_include type:expression; expression:if(defined(\\quot\\__Filename__\\quot\\)\\comma\\\\quot\\\\quot\\\\comma\\htmlConstant(\\quot\\StoreID\\quot\\\\comma\\\\quot\\__StoreID__\\quot\\\\comma\\\\quot\\gMkFTWsNwltnOvRukWzzNKNc\\quot\\))>//crlf//<_include type:expression; expression:htmlConstant(\\quot\\salt\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\lowercase(getSalt(4)))>//crlf////crlf//<conditional expression:(defined(\\quot\\__StoreID__\\quot\\)) or (defined(\\quot\\__Filename__\\quot\\))>//crlf////tab//<script ID=\\quot\\JSDefaultSalesStruct\\quot\\>//crlf////tab////tab//function addDefaultUserStructFields(TableID\\comma\\bComplete)//crlf////tab////tab//{//crlf////tab////tab////tab//if(bComplete) {//crlf////tab////tab////tab////tab//showDialog(\\quot\\msg=Complete<br><br>//amp//fnOk=close\\quot\\);//crlf////tab////tab////tab////tab//refreshTable(TableID\\comma\\\\quot\\refresh\\quot\\);//crlf////tab////tab////tab////tab//return;//crlf////tab////tab////tab//};//crlf////crlf////tab////tab////tab//var salt=TableID.substring(0\\comma\\4);//crlf////tab////tab////tab//var e=document.getElementById(\\quot\\UserDefinedSalesStructStoreID\\quot\\+salt);//crlf////tab////tab////tab//if(!e) {//crlf////tab////tab////tab////tab//alert(\\quot\\Error: Cannot locate StoreID ID=UserDefinedSalesStructStoreID\\quot\\+salt);//crlf////tab////tab////tab////tab//return;//crlf////tab////tab////tab//};//crlf////crlf////tab////tab////tab//var sStoreID=e.value;//crlf////tab////tab////tab//var sUrl=getServer()+\\quot\\/?Network=GreenLight//amp//ID=getWidget//amp//source=//amp//DocumentID=VWaUGu88BMN0hDYWzZj57VpG\\quot\\;//crlf////tab////tab////tab//sUrl +=\\quot\\//amp//Widget=Daily Sales//amp//ContainerItemID=action_list\\quot\\;//crlf////tab////tab////tab//sUrl +=\\quot\\//amp//Action=createDefaultUserStruct//amp//ActionExec=true//amp//StoreID=\\quot\\+sStoreID;//crlf////tab////tab////tab//showDialog(\\quot\\icon=true//amp//msg=Adding default fields\\quot\\);//crlf////tab////tab////tab//sFunc=\\quot\\addDefaultUserStructFields(\\\quot\\\\quot\\+TableID+\\quot\\\\\quot\\\\comma\\true)\\quot\\;//crlf////tab////tab////tab//asynchInclude(null\\comma\\sUrl\\comma\\sFunc\\comma\\sFunc);//crlf////tab////tab//};//crlf////tab//</script>//crlf////crlf////tab//<!-- Dialog used to edit a record -->//crlf////tab//<div ID=\\quot\\POS_GENERIC_USER_DEFINED_DAILY_SALES_STRUCTDialog__salt__\\quot\\ class=\\quot\\default_table_dialog\\quot\\ style=\\quot\\height:auto; width:100\\percent\\; max-width:550px; display:none;\\quot\\>//crlf////tab////tab//<div style=\\quot\\padding:5px;width:100\\percent\\\\quot\\>//crlf////tab////tab////tab//<!-- set this image to visible to include a close icon when the dialog header is disabled -->//crlf////tab////tab////tab//<div class=\\quot\\EditDialogCloseIcon\\quot\\ onclick=\\quot\\closeTableEditDialog(this)\\quot\\></div>//crlf////crlf////tab////tab////tab//<!include type:expression; expression:htmlConstant(\\quot\\TextFieldWidth\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\\\quot\\300px\\quot\\)>//crlf////tab////tab////tab//<!include type:expression; expression:htmlConstant(\\quot\\NumberFieldWidth\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\\\quot\\150px\\quot\\)>//crlf////crlf////tab////tab////tab//<!-- The TableEditDialogTabsContainerExclusive and TableEditDialogSelectContainerExclusive//crlf////tab////tab////tab////tab//classes are used to make either the tabs or the select box visible\\comma\\ depending on the//crlf////tab////tab////tab////tab//size of the browser.  If only one or two tabs are to be included\\comma\\ the //crlf////tab////tab////tab////tab//TableEditDialogTabsContainer class can be used for the tabs and the select box can//crlf////tab////tab////tab////tab//be ommitted.//crlf////tab////tab////tab//-->//crlf////tab////tab////tab//<div class=\\quot\\TableEditDialogTabsContainerExclusive\\quot\\>//crlf////tab////tab////tab////tab//<table class='tabdialog'>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'__salt__Field')\\quot\\>Field</span></td>//crlf////tab////tab////tab////tab////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'__salt__Html')\\quot\\>Html</span></td>//crlf////tab////tab////tab////tab////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'__salt__AvailableFields')\\quot\\>Field List</span></td>//crlf////tab////tab////tab////tab////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'__salt__Notes')\\quot\\>Notes</span></td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//</table>//tab////crlf////tab////tab////tab//</div>//crlf////crlf////tab////tab////tab//<div class=\\quot\\TableEditDialogSelectContainerExclusive\\quot\\>//crlf////tab////tab////tab////tab//<select onChange=\\quot\\showTab(this)\\quot\\ class=\\quot\\TableEditDialogSelect\\quot\\>//crlf////tab////tab////tab////tab////tab//<option value='__salt__Field'>Field</option>//crlf////tab////tab////tab////tab////tab//<option value='__salt__Html'>Html</option>//crlf////tab////tab////tab////tab////tab//<option value='__salt__AvailableFields'>Field List</option>//crlf////tab////tab////tab////tab////tab//<option value='__salt__Notes'>Notes</option>//crlf////tab////tab////tab////tab//</select>//crlf////tab////tab////tab//</div>//crlf////crlf////tab////tab////tab//<conditional expression:false>//crlf////tab////tab////tab//==================================================================================//crlf////tab////tab////tab//Field//crlf////tab////tab////tab//==================================================================================//crlf////tab////tab////tab//</conditional>//crlf////tab////tab////tab//<div ID=\\quot\\__salt__Field\\quot\\ class=\\quot\\DialogTabContent\\quot\\>//crlf////tab////tab////tab////tab//<table style=\\quot\\width:auto\\quot\\>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td>Name</td>//crlf////tab////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\width:100\\percent\\;max-width:__TextFieldWidth__\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Description\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td>Type</td>//crlf////tab////tab////tab////tab////tab////tab//<td><!include type:expression; expression:htmlSelect(\\quot\\Data_Field_Types_Primary\\quot\\\\comma\\\\quot\\FieldType\\quot\\\\comma\\\\quot\\\\quot\\\\comma\\\\quot\\style=\\quot\\+quote(\\quot\\width:100\\percent\\;max-width:__TextFieldWidth__\\quot\\)+\\quot\\ onChange=\\quot\\+quote(\\quot\\submitDialogCell(this)\\quot\\))></td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td>Pattern</td>//crlf////tab////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\width:100\\percent\\;max-width:300px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Aspect_Structures_Pattern\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<constant name:\\quot\\__TooltipTextLines__\\quot\\; value:\\quot\\//crlf////tab////tab////tab////tab////tab////tab////tab//For text fields\\comma\\ determines the height of the input field.  If 0\\comma\\ a short //crlf////tab////tab////tab////tab////tab////tab////tab//input field will be used.  If the value is 1 or greater\\comma\\ a wide text box containing //crlf////tab////tab////tab////tab////tab////tab////tab//the specified number of lines will be used.//crlf////tab////tab////tab////tab////tab////tab//\\quot\\>//crlf////tab////tab////tab////tab////tab////tab//<td>Text Lines</td>//crlf////tab////tab////tab////tab////tab////tab//<td {@htmlTooltip(\\quot\\__TooltipTextLines__\\quot\\)}><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\width:100\\percent\\;max-width:300px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Number_Of_Text_Lines\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td>Default Value</td>//crlf////tab////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\width:100\\percent\\;max-width:300px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Aspect_Structures_DefaultValueOnInsert\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//</table>//crlf////tab////tab////tab////tab//<input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Visible\\quot\\ TYPE=\\quot\\checkbox\\quot\\></input> Visible//crlf////tab////tab////tab////tab//<input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Aspect_Structures_CalcSubtotal\\quot\\ TYPE=\\quot\\checkbox\\quot\\></input> Subtotal//crlf////tab////tab////tab////tab//<input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Aspect_Structures_Subtotal_As_Formula\\quot\\ TYPE=\\quot\\checkbox\\quot\\></input> Subtotal As Formula//crlf////tab////tab////tab////tab//<input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Aspect_Structures_Suppress_Zeros\\quot\\ TYPE=\\quot\\checkbox\\quot\\></input> Suppress Zeros//crlf////crlf////tab////tab////tab////tab//<h1>Calculation</h1>//crlf////tab////tab////tab////tab//<input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\IsCalculated\\quot\\ TYPE=\\quot\\checkbox\\quot\\></input> This is a calculated field<br>//crlf////tab////tab////tab////tab//Formula<br>//crlf////tab////tab////tab////tab//<constant name:\\quot\\__DriverExternalStructFormulaTooltip__\\quot\\; //crlf////tab////tab////tab////tab////tab//value:\\quot\\An expression that returns the value of a calculated field.  The expression //crlf////tab////tab////tab////tab////tab//should be entered directly and not surrounded by quotes.  E.g. 1+4.  Text constants //crlf////tab////tab////tab////tab////tab//and references to field names should be surrounded by double quotes.  A leading //crlf////tab////tab////tab////tab////tab//equals sign is optional and has no effect.  Any field in the driver's structure //crlf////tab////tab////tab////tab////tab//may be referenced in the expression.  See the tab named Field List for a list of //crlf////tab////tab////tab////tab////tab//fields imported from the POS system.\\quot\\>//crlf////tab////tab////tab////tab//<textarea ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\width:100\\percent\\;height:75px\\quot\\ NAME=\\quot\\Aspect_Structures_IsFormula\\quot\\ {@htmlTooltip(\\quot\\__DriverExternalStructFormulaTooltip__\\quot\\)}></textarea>//crlf////crlf////tab////tab////tab////tab//<table style=\\quot\\width:100\\percent\\\\quot\\>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td>//crlf////tab////tab////tab////tab////tab////tab////tab//Tags<br>//crlf////tab////tab////tab////tab////tab////tab////tab//<constant name:\\quot\\__TagsTooltip__\\quot\\; value:\\quot\\//crlf////tab////tab////tab////tab////tab////tab////tab////tab//Tags are used to select and group fields in the daily sales report.  Fields //crlf////tab////tab////tab////tab////tab////tab////tab////tab//are selected based on the tags associated with them.  Fields may have one or //crlf////tab////tab////tab////tab////tab////tab////tab////tab//more tags\\comma\\ separated by commas.  E.g. Deposit Calculation\\comma\\Notes.//crlf////tab////tab////tab////tab////tab////tab////tab//\\quot\\>//crlf////tab////tab////tab////tab////tab////tab// //tab//<input type=\\quot\\text\\quot\\ name=\\quot\\tags\\quot\\ onChange=\\quot\\submitDialogCell(this)\\quot\\ style=\\quot\\width:100\\percent\\;\\quot\\ {@htmlTooltip(\\quot\\__TagsTooltip__\\quot\\)}></input>//crlf////tab////tab////tab////tab////tab////tab//</td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//</table>//crlf////tab////tab////tab//</div>//crlf////crlf////tab////tab////tab//<conditional expression:false>//crlf////tab////tab////tab//==================================================================================//crlf////tab////tab////tab//Driver: External Structure: Html//crlf////tab////tab////tab//==================================================================================//crlf////tab////tab////tab//</conditional>//crlf////tab////tab////tab//<div ID=\\quot\\__salt__Html\\quot\\ class=\\quot\\DialogTabContent\\quot\\>//crlf////tab////tab////tab////tab//<h1>Html Override</h1>//crlf////tab////tab////tab////tab//<textarea ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\width:100\\percent\\;height:60px\\quot\\ NAME=\\quot\\Html\\quot\\></textarea>//crlf////tab////tab////tab////tab//<br>//crlf////tab////tab////tab////tab////crlf////tab////tab////tab////tab//<h1>Sections</h1>//crlf////tab////tab////tab////tab//<input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Enable_Html_Section_Breaks\\quot\\ TYPE=\\quot\\checkbox\\quot\\></input> Enable Html Section Breaks//crlf////tab////tab////tab////tab//Section Header<br>//crlf////tab////tab////tab////tab//<textarea ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\width:100\\percent\\;height:60px\\quot\\ NAME=\\quot\\Aspect_Structures_Html_Section_Header\\quot\\></textarea>//crlf////tab////tab////tab//</div>//crlf////crlf////crlf////tab////tab////tab//<conditional expression:false>//crlf////tab////tab////tab//==================================================================================//crlf////tab////tab////tab//Field List//crlf////tab////tab////tab//==================================================================================//crlf////tab////tab////tab//</conditional>//crlf////tab////tab////tab//<div ID=\\quot\\__salt__AvailableFields\\quot\\ class=\\quot\\DialogTabContent\\quot\\>//crlf////tab////tab////tab////tab//<p>This is a list of user-defined fields and fields imported from the POS system.  //crlf////tab////tab////tab////tab////tab//These fields can be used in a calculated field by surrounding them with quotes.  //crlf////tab////tab////tab////tab////tab//E.g. \\quot\\Comp 100\\percent\\\\quot\\+\\quot\\Employee Discount\\quot\\</p>//crlf////tab////tab////tab////tab//<div style=\\quot\\height:300px;overflow:auto;border:1px solid black\\quot\\>//crlf////tab////tab////tab////tab////tab//<conditional expression:defined(\\quot\\__StoreID__\\quot\\)>//crlf////tab////tab////tab////tab////tab////tab//<!include type:script; commands:\\quot\\//crlf////tab////tab////tab////tab////tab////tab////tab//s=getCollection(POS_Generic_Daily_Sales_Field_Name_by_ID\\comma\\\\quot\\\\quot\\\\comma\\\\quot\\StoreID=__StoreID__\\quot\\\\comma\\\\quot\\\\quot\\\\comma\\char(0x2C)\\comma\\\\quot\\Value\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab//s=removeElement(s\\comma\\\\quot\\-- Select Sales Field --\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab//s=removeElement(s\\comma\\\\quot\\0\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab//return(htmlTable(s\\comma\\char(0x2C)\\comma\\\\quot\\\\quot\\))//crlf////tab////tab////tab////tab////tab////tab//\\quot\\>//crlf////tab////tab////tab////tab////tab//</conditional>//crlf////tab////tab////tab////tab//</div>//crlf////tab////tab////tab//</div>//crlf////crlf////tab////tab////tab//<conditional expression:false>//crlf////tab////tab////tab//==================================================================================//crlf////tab////tab////tab//Notes//crlf////tab////tab////tab//==================================================================================//crlf////tab////tab////tab//</conditional>//crlf////tab////tab////tab//<div ID=\\quot\\__salt__Notes\\quot\\ class=\\quot\\DialogTabContent\\quot\\>//crlf////tab////tab////tab////tab//<textarea ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\width:100\\percent\\;height:200px\\quot\\ NAME=\\quot\\Aspect_Structures_DeveloperNotes\\quot\\></textarea>//crlf////tab////tab////tab//</div>//crlf////tab////tab//</div>//crlf////tab//</div>//crlf////crlf////tab//<input type=\\quot\\hidden\\quot\\ ID=\\quot\\UserDefinedSalesStructStoreID__salt__\\quot\\ value=\\quot\\__StoreID__\\quot\\>//crlf////crlf////tab//<!!include type:driver;//crlf////tab////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab////tab//title: \\quot\\\\quot\\;//crlf////tab////tab//ID: \\quot\\__salt__UserDefinedSalesStruct\\quot\\;//crlf////tab////tab//HashID: \\quot\\\\quot\\;//crlf////tab////tab//driver: \\quot\\POS_GENERIC_USER_DEFINED_DAILY_SALES_STRUCT\\quot\\;//crlf////tab////tab//name: \\quot\\\\quot\\;//crlf////tab////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab////tab//dispose: \\quot\\false\\quot\\;//crlf////tab////tab//state: \\quot\\\\quot\\;//crlf////tab////tab//params: \\quot\\<!include type:expression; expression:if(defined(\\quot\\__StoreID__\\quot\\)\\comma\\\\quot\\StoreID=__StoreID__\\quot\\\\comma\\\\quot\\Filename=__Filename__\\quot\\)>~~pipe~~keyexpression=ID~~pipe~~CacheTtl=0~~pipe~~Metadata=POS_GENERIC_USER_DEFINED_DAILY_SALES_STRUCT\\quot\\;//crlf////tab////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab////tab//display: \\quot\\\\quot\\;//crlf////tab////tab//fields: \\quot\\\\quot\\;//crlf////tab////tab//sort: \\quot\\ID\\quot\\;//crlf////tab////tab//filter: \\quot\\true\\quot\\;//crlf////tab////tab//class: \\quot\\basic1\\quot\\;//crlf////tab////tab//maxrecords: \\quot\\300\\quot\\;//crlf////tab////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab////tab//style: \\quot\\width:auto\\quot\\;//crlf////tab////tab//canSelect: \\quot\\true\\quot\\;//crlf////tab////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab////tab//canEdit: \\quot\\true\\quot\\;//crlf////tab////tab//canAdd: \\quot\\true\\quot\\;//crlf////tab////tab//canDelete: \\quot\\true\\quot\\;//crlf////tab////tab//EmbedValues: \\quot\\\\quot\\;//crlf////tab////tab//EditDialogID: \\quot\\POS_GENERIC_USER_DEFINED_DAILY_SALES_STRUCTDialog__salt__\\quot\\;//crlf////tab////tab//_EditDialogID: \\quot\\DocumentID~~pipe~~Widget~~pipe~~Item~~pipe~~POS_GENERIC_USER_DEFINED_DAILY_SALES_STRUCT~~pipe~~__salt__\\quot\\;//crlf////tab////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab////tab//ExternalFilters: \\quot\\\\quot\\;//crlf////tab////tab//TableControls: \\quot\\true\\quot\\;//crlf////tab////tab//TableHeader: \\quot\\true\\quot\\;//crlf////tab////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab////tab//SelectDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//EditDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//Menu: \\quot\\Add Default Fields~~pipe~~addDefaultUserStructFields\\quot\\;//crlf////tab////tab//Messages: \\quot\\true\\quot\\;//crlf////tab////tab//ChartType: \\quot\\\\quot\\;//crlf////tab////tab//ChartWidth: \\quot\\640\\quot\\;//crlf////tab////tab//ChartHeight: \\quot\\480\\quot\\;//crlf////tab////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab////tab//ChartStyle: \\quot\\display:none\\quot\\;//crlf////tab////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab////tab//_Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab////tab//debug: \\quot\\true\\quot\\;//crlf////tab//>//crlf//</conditional>//crlf////crlf//^
ID=19867|X=183|Y=205|W=150|H=20|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=AgentAction|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=567310|AgentChildNoNode=|AgentSensor=0|AgentAction=updateDailySalesAllDays|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=Result|AgentNodeComment=Update daily sales files for all days|AgentNodeTermType=0|^
ID=567310|X=183|Y=352|W=149|H=65|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=AgentDecision|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=976023|AgentChildNoNode=738121|AgentSensor=1|AgentAction=updateDailySalesAllDays|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=startsWith(Result//comma//~~backslash~~~~backslash~~quot~~backslash~~~~backslash~~ok~~backslash~~~~backslash~~quot~~backslash~~~~backslash~~)|AgentNodeActionReturnValue=|AgentNodeComment=Success?|AgentNodeTermType=0|^
ID=738121|X=373|Y=352|W=150|H=20|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=AgentTerminate|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=1|AgentAction=updateDailySalesAllDays|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=Result|AgentNodeActionReturnValue=|AgentNodeComment=Error|AgentNodeTermType=1|
</widget><widget name="Sales Structure" group="" category="Dependent Drivers" description="This agent contains two actions, both used to update the sales structure.  One updates the sales structure form a daily sales file, making sure the structure contains fields for all records in the daily sales file.  The other updates the structure using pos ID's including discounts, tenders, etc." type="Container" Mobile="false" Processing=0 metadata="" IncludeInViewer="false" PublicName="Sales Structure" modified="12-20-2017 14:14:44" modifiedby="Thnikpad3" TaskEnabled=false IsAgent=true ContainsAgentSensors=false ContainsAgentActions=true TaskInitialStartTime=12-09-2017 21:37:11:000 TaskIntervalType=0 TaskLastExecuted= TaskCatchUpMissedTasks=false TaskYearsBetweenExecution=0 TaskMonthsBetweenExecution=0 TaskDaysBetweenExecution=0 TaskHoursBetweenExecution=0 TaskMinutesBetweenExecution=0 TaskSecondsBetweenExecution=0 TaskExecuteSun=true TaskExecuteMon=true TaskExecuteTue=true TaskExecuteWed=true TaskExecuteThu=true TaskExecuteFri=true TaskExecuteSat=true TaskConditional_Expression="" TaskConditional_Expression_Description="" TaskState_Function="" TaskState_Expression_Description="" TaskWidgetParams="" TaskWindowForExecution=0>
Preferences|toolboxx=5|toolboxy=298|aspectfuncx=100|aspectfuncy=100|aspectfuncw=750|aspectfunch=auto|aspectfuncLock=true|aspectfuncVisible=false|PublishFtpFilename=Sales Structure.html|PublishToFtpSite=false|PublishFTPAccount=0|PublishFtpDirectory=/|PublishFtpPublicDirectory=/|PublishCopyFile=false|PublishCopyFilename=|PublishIncludeAspectScript=false|PublishIncludeAspectStyleshet=false|PublishAsText=false|
^
ID=code|X=300|Y=100|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<table class='tabdialog'>//crlf////tab//<tr>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'283939')\\quot\\>Javascript</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'AspectScript')\\quot\\>AspectScript</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'sensor_list')\\quot\\>Sensors</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'action_list')\\quot\\>Actions</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'sales_structure')\\quot\\>Sales Structure</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'debug_console')\\quot\\>Console</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'443442')\\quot\\>Notes</span></td>//crlf////tab//</tr>//crlf//</table>
^
ID=283939|X=300|Y=122|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Javascript|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=AspectScript|X=300|Y=122|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Aspect_Script|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=sensor_list|X=300|Y=122|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Aspect_Script|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>//crlf////tab//{@if(\\quot\\__SensorExec__\\quot\\=\\quot\\true\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf////tab//{@if(getSystemValue(\\quot\\DevelopmentMode\\quot\\)\\comma\\fileModified(getToken(\\quot\\homedir\\quot\\)+\\quot\\cache\WidgetEdit_VWaUGu88BMN0hDYWzZj57VpG_Sales Structure.html\\quot\\)\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//<conditional expression:(\\quot\\__sensor_list__\\quot\\=\\quot\\true\\quot\\)>//crlf//</conditional>//crlf////crlf//
^
ID=action_list|X=300|Y=122|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=Aspect_Script|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>//crlf////tab//{@if(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf////tab//{@if(getSystemValue(\\quot\\DevelopmentMode\\quot\\)\\comma\\fileModified(getToken(\\quot\\homedir\\quot\\)+\\quot\\cache\WidgetEdit_VWaUGu88BMN0hDYWzZj57VpG_Sales Structure.html\\quot\\)\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//<conditional expression:(\\quot\\__action_list__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab//Sales Structure\\comma\\updateSalesStructureFromDailySales\\comma\\action_list\\comma\\Action=updateSalesStructureFromDailySales\\comma\\private//crlf////tab//Sales Structure\\comma\\updateSalesStructureFromIDs\\comma\\action_list\\comma\\Action=updateSalesStructureFromIDs\\comma\\private//crlf//</conditional>//crlf////crlf//<conditional expression:false>//crlf//========================================================================//crlf//updateSalesStructureFromDailySales//crlf//========================================================================//crlf//</conditional>//crlf//<conditional expression:(\\quot\\__Action__\\quot\\=\\quot\\updateSalesStructureFromDailySales\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__ActionDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Ensures that a field exists in the sales structure for all fields in the//crlf////tab////tab//given daily sales file.  //crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//StoerID - ID of the store for which the driver will be updated//crlf////tab////tab//Date - Date of daily sales file//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Ok or Error//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\updateSalesStructureFromDailySales\\quot\\; commands:\\quot\\//crlf////tab////tab////tab//appendToLog(\\quot\\Updating sales structure from daily sales\\quot\\)//crlf////crlf////tab////tab////tab////abort if store is not defined//crlf////tab////tab////tab//if(undefined(\\quot\\__StoreID__\\quot\\))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing StoreID\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if date is not defined//crlf////tab////tab////tab//if(undefined(\\quot\\__date__\\quot\\))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing date\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////open the daily sales driver//crlf////tab////tab////tab//driverOpen(POS_Generic_Daily_Sales\\comma\\drvSales\\comma\\READ\\comma\\false\\comma\\\\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\)//crlf////tab////tab////tab//if(not(driverIsValid(drvSales)))//crlf////tab////tab////tab////tab//driverClose(drvSales)//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing daily sales for __Date__\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////open the sales structure//crlf////tab////tab////tab//driverOpen(POS_Generic_Sales_Summary_Driverstruct\\comma\\drvStruct\\comma\\WRITE\\comma\\false\\comma\\\\quot\\StoreID=__StoreID__~~pipe~~NoDepend\\quot\\)//crlf////crlf////tab////tab////tab////make a hashtable of all field ID's / names in the structure//crlf////tab////tab////tab//hashCreate(hFields)//crlf////tab////tab////tab//c=driverGetRecordCount(drvStruct\\comma\\true)//crlf////tab////tab////tab//n=0//crlf////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab//sFieldID=driverGetFieldAbsolute(drvStruct\\comma\\\\quot\\FieldID\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab//sFieldName=driverGetFieldAbsolute(drvStruct\\comma\\\\quot\\Description\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab//hashPut(hFields\\comma\\sFieldID\\comma\\sFieldName)//crlf////tab////tab////tab////tab//n++//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab//c=driverGetRecordCount(drvSales\\comma\\true)//crlf////tab////tab////tab//n=0//crlf////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab//iRecType=driverGetFieldAbsolute(drvSales\\comma\\\\quot\\Record_Type\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab//sPosID=driverGetFieldAbsolute(drvSales\\comma\\\\quot\\POS_ID\\quot\\\\comma\\n)//crlf////crlf////tab////tab////tab////tab//if(len(trim(sPosID))>0)//crlf////tab////tab////tab////tab////tab//if(iRecType=0)//crlf////tab////tab////tab////tab////tab////tab////add a field for category sales and department sales//crlf////tab////tab////tab////tab////tab////tab////Note: The category ID is recorded in the daily sales file\\comma\\ not the menu item ID//crlf////tab////tab////tab////tab////tab////tab////so only need to lookup the department ID//crlf////tab////tab////tab////tab////tab////tab//sCategoryID=sPosID//crlf////tab////tab////tab////tab////tab////tab//sDepartmentiD=lookup(POS_Generic_Lookup_Department_ID_By_Category_ID\\comma\\sCategoryID\\comma\\0\\comma\\\\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\)//crlf////crlf////tab////tab////tab////tab////tab////tab////if a field does not already exist for the department then add it//crlf////tab////tab////tab////tab////tab////tab//if(len(trim(sDepartmentiD))>0)//crlf////tab////tab////tab////tab////tab////tab////tab//sFieldID=\\quot\\Field0Dept_\\quot\\+sDepartmentiD//crlf////tab////tab////tab////tab////tab////tab////tab//if(not(hashContainsKey(hFields\\comma\\sFieldID)))//crlf////tab////tab////tab////tab////tab////tab////tab////tab//s=lookup(POS_Generic_Department_Names_By_Id\\comma\\sDepartmentiD\\comma\\0\\comma\\\\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sFieldName=\\quot\\Department - \\quot\\+if(len(s)>0\\comma\\s\\comma\\sDepartmentID)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(drvStruct)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(drvStruct\\comma\\\\quot\\FieldID\\quot\\\\comma\\r\\comma\\sFieldID)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(drvStruct\\comma\\\\quot\\Description\\quot\\\\comma\\r\\comma\\sFieldName)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//hashPut(hFields\\comma\\sFieldID\\comma\\sFieldName)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//cAdded++//crlf////tab////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\Error: Cannot determine department ID for menu item: \\quot\\+sPosID)//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////tab////if a field does not already exist for the category then add it//crlf////tab////tab////tab////tab////tab////tab//if(len(trim(sCategoryID))>0)//crlf////tab////tab////tab////tab////tab////tab////tab//sFieldID=\\quot\\Field0Cat_\\quot\\+sCategoryID//crlf////tab////tab////tab////tab////tab////tab////tab//if(not(hashContainsKey(hFields\\comma\\sFieldID)))//crlf////tab////tab////tab////tab////tab////tab////tab////tab//s=lookup(POS_Generic_Lookup_Menu_Category_By_Category_ID\\comma\\sCategoryID\\comma\\0\\comma\\\\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sFieldName=\\quot\\Category - \\quot\\+if(len(s)>0\\comma\\s\\comma\\sCategoryID)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(drvStruct)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(drvStruct\\comma\\\\quot\\FieldID\\quot\\\\comma\\r\\comma\\sFieldID)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(drvStruct\\comma\\\\quot\\Description\\quot\\\\comma\\r\\comma\\sFieldName)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//hashPut(hFields\\comma\\sFieldID\\comma\\sFieldName)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//cAdded++//crlf////tab////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\Error: Cannot determine category ID for menu item: \\quot\\+sPosID)//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////tab//sFieldID=\\quot\\Field\\quot\\+iRecType+\\quot\\_\\quot\\+sPosID//crlf////tab////tab////tab////tab////tab////tab//if(not(hashContainsKey(hFields\\comma\\sFieldID)))//crlf////tab////tab////tab////tab////tab////tab////tab//s=\\quot\\\\quot\\//crlf////tab////tab////tab////tab////tab////tab////tab//if(iRecType=1)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//s=lookup(POS_Generic_Void_Names_By_Id\\comma\\sPosID\\comma\\0\\comma\\\\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sFieldName=\\quot\\Void - \\quot\\+if(len(s)>0\\comma\\s\\comma\\sPosID)//crlf////tab////tab////tab////tab////tab////tab////tab//elseif(iRecType=2)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//s=lookup(POS_Generic_Comp_Names_By_Id\\comma\\sPosID\\comma\\0\\comma\\\\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sFieldName=\\quot\\Comp - \\quot\\+if(len(s)>0\\comma\\s\\comma\\sPosID)//crlf////tab////tab////tab////tab////tab////tab////tab//elseif(iRecType=3)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//s=lookup(POS_Generic_Discount_Names_By_Id\\comma\\sPosID\\comma\\0\\comma\\\\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sFieldName=\\quot\\Discount - \\quot\\+if(len(s)>0\\comma\\s\\comma\\sPosID)//crlf////tab////tab////tab////tab////tab////tab////tab//elseif(iRecType=4)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//s=lookup(POS_Generic_Tax_Names_By_Id\\comma\\sPosID\\comma\\0\\comma\\\\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sFieldName=\\quot\\Tax - \\quot\\+if(len(s)>0\\comma\\s\\comma\\sPosID)//crlf////tab////tab////tab////tab////tab////tab////tab//elseif(iRecType=8)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//s=lookup(POS_Generic_Tender_Names_By_Id\\comma\\sPosID\\comma\\0\\comma\\\\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sFieldName=\\quot\\Tender - \\quot\\+if(len(s)>0\\comma\\s\\comma\\sPosID)//crlf////tab////tab////tab////tab////tab////tab////tab//elseif(iRecType=9)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//s=lookup(POS_Generic_Gift_Certificate_Names_By_Id\\comma\\sPosID\\comma\\0\\comma\\\\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sFieldName=\\quot\\Gift Cert Sold - \\quot\\+if(len(s)>0\\comma\\s\\comma\\sPosID)//crlf////tab////tab////tab////tab////tab////tab////tab//elseif(iRecType=10)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//s=lookup(POS_Generic_Tender_Names_By_Id\\comma\\sPosID\\comma\\0\\comma\\\\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sFieldName=\\quot\\Tip - \\quot\\+if(len(s)>0\\comma\\s\\comma\\sPosID)//crlf////tab////tab////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(drvStruct)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(drvStruct\\comma\\\\quot\\FieldID\\quot\\\\comma\\r\\comma\\sFieldID)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(drvStruct\\comma\\\\quot\\Description\\quot\\\\comma\\r\\comma\\sFieldName)//crlf////tab////tab////tab////tab////tab////tab////tab//hashPut(hFields\\comma\\sFieldID\\comma\\sFieldName)//crlf////tab////tab////tab////tab////tab////tab////tab//cAdded++//crlf////tab////tab////tab////tab////tab////tab//endif//tab////tab////tab////crlf////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab//n++//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab//driverClose(drvStruct)//crlf////tab////tab////tab//return(\\quot\\Ok: Added \\quot\\+cAdded+\\quot\\ fields\\quot\\)//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf////crlf////crlf//<conditional expression:false>//crlf//========================================================================//crlf//updateSalesStructureFromIDs//crlf//========================================================================//crlf//</conditional>//crlf//<conditional expression:(\\quot\\__Action__\\quot\\=\\quot\\updateSalesStructureFromIDs\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__ActionDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Updates the structure for the daily sales summary driver.  This structure//crlf////tab////tab//includes a field for every ID - comps\\comma\\ discounts\\comma\\ tenders\\comma\\ etc//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//StoerID - ID of the store for which the driver will be updated//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Ok or Error//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\updateSalesStructureFromIDs\\quot\\; commands:\\quot\\//crlf////tab////tab////tab//appendToLog(\\quot\\Updating sales structure from POS identifiers\\quot\\)//crlf////return(appendToLog(\\quot\\aborting...\\quot\\))//crlf////tab////tab////tab////abort if store is not defined//crlf////tab////tab////tab//if(undefined(\\quot\\__StoreID__\\quot\\))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing StoreID\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////open the sales structure//crlf////tab////tab////tab//driverOpen(POS_Generic_Sales_Summary_Driverstruct\\comma\\drvStruct\\comma\\WRITE\\comma\\false\\comma\\\\quot\\StoreID=__StoreID__~~pipe~~NoDepend\\quot\\)//crlf////crlf////tab////tab////tab////make a hashtable of all field ID's / names in the structure//crlf////tab////tab////tab//hashCreate(hFields)//crlf////tab////tab////tab//c=driverGetRecordCount(drvStruct\\comma\\true)//crlf////tab////tab////tab//n=0//crlf////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab//sFieldID=driverGetFieldAbsolute(drvStruct\\comma\\\\quot\\FieldID\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab//sFieldName=driverGetFieldAbsolute(drvStruct\\comma\\\\quot\\Description\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab//hashPut(hFields\\comma\\sFieldID\\comma\\sFieldName)//crlf////tab////tab////tab////tab//n++//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab////add a field for the date number//crlf////tab////tab////tab//if(not(hashContainsKey(hFields\\comma\\\\quot\\DateNumber\\quot\\)))//crlf////tab////tab////tab////tab//r=driverAddNewRecord(drvStruct)//crlf////tab////tab////tab////tab//driverPutFieldAbsolute(drvStruct\\comma\\\\quot\\FieldID\\quot\\\\comma\\r\\comma\\\\quot\\DateNumber\\quot\\)//crlf////tab////tab////tab////tab//driverPutFieldAbsolute(drvStruct\\comma\\\\quot\\Description\\quot\\\\comma\\r\\comma\\\\quot\\Date Number\\quot\\)//crlf////tab////tab////tab////tab//driverPutFieldAbsolute(drvStruct\\comma\\\\quot\\FieldType\\quot\\\\comma\\r\\comma\\3)//crlf////tab////tab////tab////tab//driverPutFieldAbsolute(drvStruct\\comma\\\\quot\\ArraySize\\quot\\\\comma\\r\\comma\\32)//crlf////tab////tab////tab////tab//hashPut(hFields\\comma\\\\quot\\DateNumber\\quot\\\\comma\\\\quot\\Date Number\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////get array of collections that will be used to add ID's to the structure//crlf////tab////tab////tab//arCollection=\\quot\\POS_Generic_Department_Names_By_Id\\comma\\POS_Generic_Lookup_Menu_Category_By_Category_ID\\comma\\POS_Generic_Void_Names_By_Id\\comma\\POS_Generic_Comp_Names_By_Id\\comma\\POS_Generic_Discount_Names_By_Id\\comma\\POS_Generic_Tax_Names_By_Id\\comma\\POS_Generic_Tender_Names_By_Id\\comma\\POS_Generic_Gift_Certificate_Names_By_Id\\comma\\POS_Generic_Tender_Names_By_Id\\quot\\//crlf////tab////tab////tab//arFieldName=\\quot\\Department\\comma\\Category\\comma\\Void\\comma\\Comp\\comma\\Discount\\comma\\Tax\\comma\\Tender\\comma\\Gift Cert Sold\\comma\\Tip\\quot\\//crlf////tab////tab////tab//arRecType=\\quot\\0Dept\\comma\\0Cat\\comma\\1\\comma\\2\\comma\\3\\comma\\4\\comma\\8\\comma\\9\\comma\\10\\quot\\//crlf////crlf////tab////tab////tab////add ID's from each collection to the structure//crlf////tab////tab////tab//c=getElementCount(arCollection)//crlf////tab////tab////tab//cAdded=0//crlf////tab////tab////tab//n=0//crlf////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab//s=getCollection(getElement(arCollection\\comma\\n)\\comma\\\\quot\\true\\quot\\\\comma\\\\quot\\StoreID=__StoreID__\\quot\\)//crlf////tab////tab////tab////tab//c1=getElementCount(s\\comma\\\\quot\\~~pipe~~\\quot\\)//crlf////tab////tab////tab////tab//n1=0//crlf////tab////tab////tab////tab//while(n1<c1)//crlf////tab////tab////tab////tab////tab////get the ID and name of the identifier//crlf////tab////tab////tab////tab////tab//sPosID=getElement(getElement(s\\comma\\n1\\comma\\\\quot\\~~pipe~~\\quot\\)\\comma\\0\\comma\\\\quot\\=\\quot\\)//crlf////tab////tab////tab////tab////tab//sPosName=getElement(getElement(s\\comma\\n1\\comma\\\\quot\\~~pipe~~\\quot\\)\\comma\\1\\comma\\\\quot\\=\\quot\\)//crlf////crlf////tab////tab////tab////tab////tab////get the field ID and name to be used in the sales structure//crlf////tab////tab////tab////tab////tab//sFieldID=\\quot\\Field\\quot\\+getElement(arRecType\\comma\\n)+\\quot\\_\\quot\\+sPosID//crlf////tab////tab////tab////tab////tab//sFieldName=getElement(arFieldName\\comma\\n)+\\quot\\ - \\quot\\+sPosName//crlf////crlf////tab////tab////tab////tab////tab////if the field ID doesn't already exist in the structure\\comma\\ add it//crlf////tab////tab////tab////tab////tab//if(not(hashContainsKey(hFields\\comma\\sFieldID)))//crlf////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(drvStruct)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(drvStruct\\comma\\\\quot\\FieldID\\quot\\\\comma\\r\\comma\\sFieldID)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(drvStruct\\comma\\\\quot\\Description\\quot\\\\comma\\r\\comma\\sFieldName)//crlf////tab////tab////tab////tab////tab////tab//hashPut(hFields\\comma\\sFieldID\\comma\\sFieldName)//crlf////tab////tab////tab////tab////tab////tab//cAdded++//crlf////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab//n1++//crlf////tab////tab////tab////tab//endwhile//crlf////tab////tab////tab////tab//n++//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab//driverClose(drvStruct)//crlf////tab////tab////tab//return(\\quot\\Ok: Added \\quot\\+cAdded+\\quot\\ fields\\quot\\)//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf////crlf//
^
ID=debug_console|X=300|Y=122|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=debug_console|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=443442|X=300|Y=122|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=top_bar|X=0|Y=0|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=false|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=left_bar|X=0|Y=22|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=false|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=top_bar|AttachLeft=|AlignLeft=top_bar|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=AgentStart|X=183|Y=44|W=150|H=20|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=AgentStart|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=left_bar|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=577103|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|AgentSuspended=false|AgentDebug=false|AgentReport=never|
^
ID=577103|X=183|Y=205|W=119|H=45|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=AgentTerminate|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=AgentTabs|X=183|Y=22|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=top_bar|AttachLeft=left_bar|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<table class='tabdialog'>//crlf////tab//<tr>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentStart');agentSetVisible(true)\\quot\\>Agent</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentDescription');agentSetVisible(false)\\quot\\>Description</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentStatus');agentSetVisible(false)\\quot\\>Status</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentScript');agentSetVisible(false)\\quot\\>Script</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'ScriptText');agentSetVisible(false)\\quot\\>Script (Text)</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentChart');agentSetVisible(false);agentFormatNodes(document.getElementById('AgentChart'));agentDrawConnectors(document.getElementById('AgentChart'))\\quot\\>Chart</span></td>//crlf////tab//</tr>//crlf//</table>//crlf//
^
ID=AgentScript|X=183|Y=44|W=1000|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Aspect_Script|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<conditional expression:(\\quot\\__ExecAgentScript__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab//<!include type:script; name:\\quot\\agent_Sales Structure\\quot\\; commands:\\quot\\//crlf////crlf////tab////tab//::node\\comma\\VWaUGu88BMN0hDYWzZj57VpG_Sales Structure\\comma\\AgentStart\\comma\\AgentStart\\comma\\0\\comma\\//crlf////tab////tab////Created 06-25-2015 15:57:16//crlf////crlf////tab////tab////Force reporting when the agent is executed manually//crlf////tab////tab//bForceReport=((\\quot\\__ManualExecAgent__\\quot\\=\\quot\\true\\quot\\) or (false))//crlf////crlf////tab////tab////Record the starting time//crlf////tab////tab//tAgentStart=now()//crlf////crlf////tab////tab//::node\\comma\\VWaUGu88BMN0hDYWzZj57VpG_Sales Structure\\comma\\AgentTerminate\\comma\\577103\\comma\\2\\comma\\//crlf////tab////tab//scriptSetResult(2)//crlf////tab//\\quot\\>//crlf//</conditional>
^
ID=ScriptText|X=183|Y=44|W=1000|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<span style='font:8pt tahoma;color:black'>//amp//lt;state//amp//gt;06252015//amp//nbsp;155716//amp//lt;/state//amp//gt;<br>//amp//lt;<span class='includecontrol'>conditional</span>//amp//nbsp;expression:(\\quot\\__ExecAgentScript__\\quot\\=\\quot\\true\\quot\\)//amp//gt;<br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//lt;!<span class='includecontrol'>include</span>//amp//nbsp;type:script;//amp//nbsp;name:\\quot\\agent_Sales//amp//nbsp;Structure\\quot\\;//amp//nbsp;commands:\\quot\\<br><br><span class='comment'>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//Created//amp//nbsp;06-25-2015//amp//nbsp;15:57:16</span><br><br><span class='comment'>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//Force//amp//nbsp;reporting//amp//nbsp;when//amp//nbsp;the//amp//nbsp;agent//amp//nbsp;is//amp//nbsp;executed//amp//nbsp;manually</span><br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;bForceReport=((\\quot\\__ManualExecAgent__\\quot\\=\\quot\\true\\quot\\)//amp//nbsp;or//amp//nbsp;(false))<br><br><span class='comment'>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//Record//amp//nbsp;the//amp//nbsp;starting//amp//nbsp;time</span><br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;tAgentStart=<span class='keyword'>now</span>()<br><br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;<span class='keyword'>scriptSetResult</span>(2)<br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;\\quot\\//amp//gt;<br>//amp//lt;/<span class='includecontrol'>conditional</span>//amp//gt;<br><br></span>
^
ID=AgentDescription|X=183|Y=44|W=1000|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=AgentStatus|X=183|Y=44|W=1000|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<include type:expression; expression:htmlConstant(\\quot\\salt\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\getSalt(4))>//crlf////crlf//<include type:widget; server:{aspecthashid}; secure:false; documentID:\\quot\\h0BE4ziTlLytqKxtWLMy5CVY\\quot\\; widget:\\quot\\Notification Container\\quot\\; containerItemID:\\quot\\select_store_and_dates\\quot\\; params:\\quot\\Select=store//amp//From=false//amp//To=false//amp//func=showSalesStructure//amp//salt=__salt__\\quot\\;>//crlf//<script ID=\\quot\\JSSalesStructure\\quot\\>//crlf////tab//function showSalesStructure(Salt\\comma\\Store) {//crlf////tab////tab//var e=document.getElementById(\\quot\\SalesStructure__salt__\\quot\\);//crlf////tab////tab//e.setAttribute(\\quot\\url\\quot\\\\comma\\e.getAttribute(\\quot\\_url\\quot\\)+\\quot\\//amp//StoreID=\\quot\\+Store);//crlf////tab////tab//setInterval(e\\comma\\0\\comma\\true);//crlf////tab//};//crlf//</script>//crlf////tab////crlf//<div ID=\\quot\\SalesStructure__salt__\\quot\\ _url=\\quot\\__RequestServer__/?Source={AspectHashID}//amp//Network=GreenLight//amp//ID=getWidget//amp//DocumentID=VWaUGu88BMN0hDYWzZj57VpG//amp//Widget=Sales Structure//amp//ContainerItemID=sales_structure\\quot\\></div>//crlf//
^
ID=AgentChart|X=183|Y=44|W=1000|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>06252015 155716</state>//crlf//<canvas height=\\quot\\100\\quot\\ width=\\quot\\100\\quot\\ style=\\quot\\position: absolute; top: 0px; left: 0px; width: 100px; height: 100px; border-style: none; z-index: 2;\\quot\\ id=\\quot\\agent_doc_canvas\\quot\\></canvas><div agentchildyesnode=\\quot\\chart577103\\quot\\ content_type=\\quot\\AgentAction\\quot\\ style=\\quot\\position: absolute; top: 0px; left: 0px; width: 120px; height: auto; display: block;\\quot\\ isagentdoc=\\quot\\true\\quot\\ id=\\quot\\chartAgentStart\\quot\\><canvas height=\\quot\\111\\quot\\ width=\\quot\\120\\quot\\ style=\\quot\\width: 120px; height: 111px; position: absolute; top: 0px; left: 0px;\\quot\\></canvas><div class=\\quot\\agentstart\\quot\\><b>Sales Structure</b><br><span style=\\quot\\font-weight:normal;color:green\\quot\\>Active</span><br><span style=\\quot\\font-weight:normal;color:black\\quot\\>Debugging Is Off</span><br>Report Status: never<br>Report To: <br>Name Params: </div></div><div content_type=\\quot\\AgentTerminate\\quot\\ style=\\quot\\position: absolute; top: 107px; left: 135px; width: 120px; height: auto; display: block;\\quot\\ isagentdoc=\\quot\\true\\quot\\ id=\\quot\\chart577103\\quot\\><canvas height=\\quot\\46\\quot\\ width=\\quot\\120\\quot\\ style=\\quot\\width: 120px; height: 46px; position: absolute; top: 0px; left: 0px;\\quot\\></canvas><div class=\\quot\\agentterminator\\quot\\>Terminate<br><span style=\\quot\\color:black\\quot\\>Other</span></div></div>
^
ID=sales_structure|X=300|Y=122|W=816|H=570|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>//crlf////tab//__StoreID__//crlf////tab//{@if(defined(\\quot\\__StoreID__\\quot\\)\\comma\\if(dependencyStateChanged(\\quot\\POS_GENERIC_SALES_SUMMARY_DRIVERSTRUCT\\quot\\\\comma\\\\quot\\StoreID=__StoreID__\\quot\\)\\comma\\now()\\comma\\\\quot\\\\quot\\)\\comma\\now())}//crlf//</state>//crlf////crlf//<conditional expression:(undefined(\\quot\\__storeID__\\quot\\)) or (\\quot\\__storeID__\\quot\\=\\quot\\0\\quot\\)>//crlf////tab//Error: Missing StoreID<br>//crlf//</conditional>//crlf////crlf//<h2>sales structure</h2>//crlf//<conditional expression:(defined(\\quot\\__StoreID__\\quot\\)) and (not(\\quot\\__StoreID__\\quot\\=\\quot\\0\\quot\\))>//crlf////tab//<!include type:driver;//crlf////tab////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab////tab//title: \\quot\\\\quot\\;//crlf////tab////tab//HashID: \\quot\\\\quot\\;//crlf////tab////tab//driver: \\quot\\POS_GENERIC_SALES_SUMMARY_DRIVERSTRUCT\\quot\\;//crlf////tab////tab//name: \\quot\\\\quot\\;//crlf////tab////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab////tab//dispose: \\quot\\false\\quot\\;//crlf////tab////tab//state: \\quot\\\\quot\\;//crlf////tab////tab//params: \\quot\\keyexpression=ID~~pipe~~CacheTtl=0~~pipe~~Metadata=POS_GENERIC_SALES_SUMMARY_DRIVERSTRUCT~~pipe~~StoreID=__StoreID__\\quot\\;//crlf////tab////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab////tab//display: \\quot\\\\quot\\;//crlf////tab////tab//fields: \\quot\\\\quot\\;//crlf////tab////tab//sort: \\quot\\ID\\quot\\;//crlf////tab////tab//filter: \\quot\\true\\quot\\;//crlf////tab////tab//class: \\quot\\basic1\\quot\\;//crlf////tab////tab//maxrecords: \\quot\\-1\\quot\\;//crlf////tab////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab////tab//style: \\quot\\width:auto\\quot\\;//crlf////tab////tab//canSelect: \\quot\\false\\quot\\;//crlf////tab////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab////tab//canEdit: \\quot\\false\\quot\\;//crlf////tab////tab//canAdd: \\quot\\false\\quot\\;//crlf////tab////tab//canDelete: \\quot\\false\\quot\\;//crlf////tab////tab//EmbedValues: \\quot\\\\quot\\;//crlf////tab////tab//EditDialogID: \\quot\\POS_GENERIC_SALES_SUMMARY_DRIVERSTRUCTDialog\\quot\\;//crlf////tab////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab////tab//ExternalFilters: \\quot\\\\quot\\;//crlf////tab////tab//TableControls: \\quot\\true\\quot\\;//crlf////tab////tab//TableHeader: \\quot\\true\\quot\\;//crlf////tab////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab////tab//SelectDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//EditDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//Menu: \\quot\\\\quot\\;//crlf////tab////tab//Messages: \\quot\\true\\quot\\;//crlf////tab////tab//ChartType: \\quot\\\\quot\\;//crlf////tab////tab//ChartWidth: \\quot\\640\\quot\\;//crlf////tab////tab//ChartHeight: \\quot\\480\\quot\\;//crlf////tab////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab////tab//ChartStyle: \\quot\\display:none\\quot\\;//crlf////tab////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab////tab//Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab////tab//debug: \\quot\\false\\quot\\;//crlf////tab//>//crlf//</conditional>
</widget><widget name="Sales Summary" group="" category="Dependent Drivers" description="This widget contains the updateSalesSummary agent action used to merge one or more daily sales files into the sales summary driver.  This action is called when a dependency check of the 'POS Generic Sales Summary' driver indicates the driver needs to be updated." type="Container" Mobile="false" Processing=0 metadata="" IncludeInViewer="false" PublicName="Sales Summary" modified="12-20-2017 14:14:13" modifiedby="Thnikpad3" TaskEnabled=false IsAgent=true ContainsAgentSensors=false ContainsAgentActions=true TaskInitialStartTime=12-09-2017 21:37:11:000 TaskIntervalType=0 TaskLastExecuted= TaskCatchUpMissedTasks=false TaskYearsBetweenExecution=0 TaskMonthsBetweenExecution=0 TaskDaysBetweenExecution=0 TaskHoursBetweenExecution=0 TaskMinutesBetweenExecution=0 TaskSecondsBetweenExecution=0 TaskExecuteSun=true TaskExecuteMon=true TaskExecuteTue=true TaskExecuteWed=true TaskExecuteThu=true TaskExecuteFri=true TaskExecuteSat=true TaskConditional_Expression="" TaskConditional_Expression_Description="" TaskState_Function="" TaskState_Expression_Description="" TaskWidgetParams="" TaskWindowForExecution=0>
Preferences|toolboxx=68|toolboxy=994|aspectfuncx=100|aspectfuncy=100|aspectfuncw=750|aspectfunch=auto|aspectfuncLock=true|aspectfuncVisible=false|PublishFtpFilename=Sales Summary.html|PublishToFtpSite=false|PublishFTPAccount=0|PublishFtpDirectory=/|PublishFtpPublicDirectory=/|PublishCopyFile=false|PublishCopyFilename=|PublishIncludeAspectScript=false|PublishIncludeAspectStyleshet=false|PublishAsText=false|
^
ID=top_bar|X=0|Y=0|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=false|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=left_bar|X=0|Y=22|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=false|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=top_bar|AttachLeft=|AlignLeft=top_bar|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=code|X=1500|Y=0|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<table class='tabdialog'>//crlf////tab//<tr>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'181385')\\quot\\>Javascript</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'AspectScript')\\quot\\>AspectScript</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'sensor_list')\\quot\\>Sensors</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'action_list')\\quot\\>Actions</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'sales_summary')\\quot\\>Sales Summary</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'debug_console')\\quot\\>Console</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'720789')\\quot\\>Notes</span></td>//crlf////tab//</tr>//crlf//</table>
^
ID=181385|X=1500|Y=20|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Javascript|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=AspectScript|X=1500|Y=20|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Aspect_Script|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=sensor_list|X=1500|Y=20|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Aspect_Script|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>//crlf////tab//{@if(\\quot\\__SensorExec__\\quot\\=\\quot\\true\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf////tab//{@if(getSystemValue(\\quot\\DevelopmentMode\\quot\\)\\comma\\fileModified(getToken(\\quot\\homedir\\quot\\)+\\quot\\cache\WidgetEdit_VWaUGu88BMN0hDYWzZj57VpG_Sales Summary.html\\quot\\)\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//<conditional expression:(\\quot\\__sensor_list__\\quot\\=\\quot\\true\\quot\\)>//crlf//</conditional>//crlf////crlf//
^
ID=action_list|X=1500|Y=20|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=Aspect_Script|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>//crlf////tab//{@if(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf////tab//{@if(getSystemValue(\\quot\\DevelopmentMode\\quot\\)\\comma\\fileModified(getToken(\\quot\\homedir\\quot\\)+\\quot\\cache\WidgetEdit_VWaUGu88BMN0hDYWzZj57VpG_Sales Summary.html\\quot\\)\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//<conditional expression:(\\quot\\__action_list__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab//Sales Summary\\comma\\updateSalesSummary\\comma\\action_list\\comma\\Action=updateSalesSummary\\comma\\private//crlf//</conditional>//crlf////crlf//<conditional expression:false>//crlf//========================================================================//crlf//updateSalesSummary//crlf//========================================================================//crlf//</conditional>//crlf//<conditional expression:(\\quot\\__Action__\\quot\\=\\quot\\updateSalesSummary\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__ActionDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Updates a sales summary driver from the daily sales drivers.  The daily sales//crlf////tab////tab//drivers are transposed and merged into the sales summary//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//StoreID - The ID of the store for which the driver will be updated//crlf////tab////tab//DateFrom - Starting date (MM-dd-yyyy)//crlf////tab////tab//DateTo - Ending date (MM-dd-yyyy)//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Ok or Error//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\updateSalesSummary\\quot\\; commands:\\quot\\//crlf////tab////tab////tab//profile()//crlf////tab////tab////tab//appendToLog(\\quot\\updateSalesSummary StoreID=__StoreID__ DateFrom=__DateFrom__ DateTo=__DateTo__\\quot\\)//crlf////crlf////tab////tab////tab////abort if missing store ID//crlf////tab////tab////tab//if(undefined(\\quot\\__StoreID__\\quot\\))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing store ID\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if missing datefrom//crlf////tab////tab////tab//if(undefined(\\quot\\__DateFrom__\\quot\\))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing DateFrom\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if missing dateTo//crlf////tab////tab////tab//if(undefined(\\quot\\__DateTo__\\quot\\))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing DateTo\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////open the sales summary driver//crlf////tab////tab////tab//driverOpen(POS_Generic_Sales_Summary\\comma\\drvSummary\\comma\\WRITE\\comma\\false\\comma\\\\quot\\StoreID=__StoreID__~~pipe~~DateFrom=__DateFrom__~~pipe~~DateTo=__DateTo__~~pipe~~NoDepend\\quot\\)//crlf////tab////tab////tab//driverSetFilter(drvSummary\\comma\\\\quot\\true\\quot\\\\comma\\true)//crlf////crlf////tab////tab////tab////make a hashtable of absolute record numbers for all dates in the driver//crlf////tab////tab////tab//hashCreate(hRecords)//crlf////tab////tab////tab//c=driverGetRecordCount(drvSummary\\comma\\true)//crlf////tab////tab////tab//n=0//crlf////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab//dt=driverGetFieldAbsolute(drvSummary\\comma\\\\quot\\Date\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab//hashPut(hRecords\\comma\\formatDate(dt\\comma\\\\quot\\MM-dd-yyyy\\quot\\)\\comma\\n)//crlf//appendToLog(\\quot\\HashPut \\quot\\+formatDate(dt\\comma\\\\quot\\MM-dd-yyyy\\quot\\)+\\quot\\ n=\\quot\\+n)//crlf////tab////tab////tab////tab//n++//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab////get a list of fields in the sales summary driver//crlf////tab////tab////tab//arSummaryFieldID=driverGetFieldIDs(drvSummary\\comma\\0)//crlf////crlf////tab////tab////tab////get the store directory//crlf////tab////tab////tab//sStoreDir=addDirSlash(lookup(Aspect_BackOffice_Store_Directory_By_ID\\comma\\\\quot\\__StoreID__\\quot\\))//crlf////crlf////tab////tab////tab////merge each daily sales file into the summary//crlf////tab////tab////tab//dtFrom=parseTime(\\quot\\__DateFrom__\\quot\\\\comma\\\\quot\\MM-dd-yyyy\\quot\\)//crlf////tab////tab////tab//dtTo=parseTime(\\quot\\__DateTo__\\quot\\\\comma\\\\quot\\MM-dd-yyyy\\quot\\)//crlf////tab////tab////tab//dt=dtFrom//crlf////tab////tab////tab//while(dt<=dtTo)//crlf////tab////tab////tab////tab//appendToLog(\\quot\\Adding daily sales to sales summary: \\quot\\+formatDate(dt\\comma\\\\quot\\MM-dd-yyyy\\quot\\))//crlf////tab////tab////tab////tab//appendToLog(\\quot\\NEED TO CHECK STATE TO SEE IF DAY NEEDS TO BE ADDED\\quot\\)//crlf////tab////tab////tab////tab//sDate=formatDate(dt\\comma\\\\quot\\MM-dd-yyyy\\quot\\)//crlf////tab////tab////tab////tab//sDailySalesFilename=sStoreDir+\\quot\\ckd.\\quot\\+sDate+\\quot\\.bin\\quot\\//crlf////tab////tab////tab////tab//sState=getFilespecState(sDailySalesFilename\\comma\\false\\comma\\false\\comma\\0\\comma\\\\quot\\\\quot\\\\comma\\true\\comma\\true)//crlf////crlf////tab////tab////tab////tab////get the record number for the date//crlf////tab////tab////tab////tab//bIsNewRecord=false//crlf////tab////tab////tab////tab//bMerge=true//crlf////tab////tab////tab////tab//if(hashContainsKey(hRecords\\comma\\sDate))//crlf////tab////tab////tab////tab////tab//r=value(hashGet(hRecords\\comma\\sDate))//crlf////crlf////tab////tab////tab////tab////tab////see if the file has already been added//crlf////tab////tab////tab////tab////tab//if(sState=driverGetFieldAbsolute(drvSummary\\comma\\\\quot\\Source_Driver_State\\quot\\\\comma\\r))//crlf////tab////tab////tab////tab////tab////tab//bMerge=false//crlf////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\Not merging sales for \\quot\\+sDate+\\quot\\ because already up to date\\quot\\)//crlf////tab////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(drvSummary\\comma\\\\quot\\Source_Driver_State\\quot\\\\comma\\r\\comma\\sState)//crlf////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab//r=driverAddNewRecord(drvSummary)//crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(drvSummary\\comma\\\\quot\\DateNumber\\quot\\\\comma\\r\\comma\\dateNumber(dt))//crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(drvSummary\\comma\\\\quot\\Source_Driver_State\\quot\\\\comma\\r\\comma\\sState)//crlf////tab////tab////tab////tab////tab////driverClearWriteBuffer(drvSummary)//crlf////tab////tab////tab////tab////tab//bIsNewRecord=true//crlf////tab////tab////tab////tab////tab//hashPut(hRecords\\comma\\sDate\\comma\\r)//crlf////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab//if(fileExists(sDailySalesFilename))//crlf////tab////tab////tab////tab////tab//if(bMerge)//crlf////tab////tab////tab////tab////tab////tab////open the daily sales driver.  The driver is transposed since the daily sales//crlf////tab////tab////tab////tab////tab////tab////data is stored in rows //crlf////tab////tab////tab////tab////tab////tab//sDriverParams=\\quot\\StoreID=__StoreID__~~pipe~~Date=\\quot\\+sDate+\\quot\\~~pipe~~Transpose=true~~pipe~~TransposeID=Sales_Structure_Field_ID~~pipe~~TransposeFields=Amount\\quot\\//crlf////tab////tab////tab////tab////tab////tab//driverOpen(POS_Generic_Daily_Sales\\comma\\drvDailySales\\comma\\READ\\comma\\false\\comma\\sDriverParams)//crlf////tab////tab////tab////tab////tab////tab//driverSetFilter(drvDailySales\\comma\\\\quot\\true\\quot\\\\comma\\true)//crlf////crlf////tab////tab////tab////tab////tab////tab////get list of fields in the daily sales driver//tab////tab////tab////tab////tab////crlf////tab////tab////tab////tab////tab////tab//arDailySalesFieldID=driverGetFieldIDs(drvDailySales\\comma\\0)//crlf////crlf////tab////tab////tab////tab////tab////tab////get the fields to be merged.  Only fields appearing in both drivers are merged//crlf////tab////tab////tab////tab////tab////tab//arMergeFieldID=replaceSubstring(subset(arSummaryFieldID\\comma\\arDailySalesFieldID)\\comma\\\\quot\\\\comma\\\\quot\\\\comma\\\\quot\\~~pipe~~\\quot\\)//crlf////appendToLog(\\quot\\Fields in summary: \\quot\\+arSummaryFieldID)//crlf////appendToLog(\\quot\\Fields in daily: \\quot\\+arDailySalesFieldID)//crlf////appendToLog(\\quot\\Merging fields: \\quot\\+arMergeFieldID)//crlf////driverExportStruct(drvSummary\\comma\\getToken(\\quot\\temporary_files\\quot\\)+\\quot\\salessummarystruct.csv\\quot\\)//crlf////driverExportStruct(drvDailySales\\comma\\getToken(\\quot\\temporary_files\\quot\\)+\\quot\\dailysalesstruct.csv\\quot\\)//crlf////crlf////tab////tab////tab////tab////tab////tab////merge the drivers//crlf//appendToLog(\\quot\\Before merge: Records in drvDailySales: \\quot\\+driverGetRecordCount(drvDailySales\\comma\\true))//crlf//appendToLog(\\quot\\Before merge: Records in drvSummary: \\quot\\+driverGetRecordCount(drvSummary\\comma\\true))//crlf//appendToLog(\\quot\\Before merge filesize of summary=\\quot\\+fileSize(\\quot\\C:\Aspect7\stores\positouch pos interface\salessummary.06-17-2015.06-18-2015.bin\\quot\\))//crlf////tab////tab////tab////tab////tab////tab//s=driverMerge(true\\comma\\drvSummary\\comma\\drvDailySales\\comma\\\\quot\\DateNumber\\quot\\\\comma\\arMergeFieldID\\comma\\\\quot\\\\quot\\\\comma\\false)//crlf////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\Merge daily sales: \\quot\\+sDate+\\quot\\ \\quot\\+s)//crlf//appendToLog(\\quot\\After merge: Records in drvDailySales: \\quot\\+driverGetRecordCount(drvDailySales\\comma\\true))//crlf//appendToLog(\\quot\\After merge: Records in drvSummary: \\quot\\+driverGetRecordCount(drvSummary\\comma\\true))//crlf////tab////tab////tab////tab////tab////tab//driverClose(drvDailySales)//crlf////crlf////tab////tab////tab////tab////tab////tab////output fields in summary//crlf//if(false)//crlf////tab////tab////tab////tab////tab////tab//c=driverGetRecordCount(drvSummary\\comma\\true)//crlf////tab////tab////tab////tab////tab////tab//n=0//crlf////tab////tab////tab////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab////tab////tab////tab//cField=getElementCount(arSummaryFieldID)//crlf////tab////tab////tab////tab////tab////tab////tab//nField=0//crlf////tab////tab////tab////tab////tab////tab////tab//while(nField<cField)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sFieldID=getElement(arSummaryFieldID\\comma\\nField)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//s=\\quot\\Record \\quot\\+n+\\quot\\ Field: \\quot\\+nField+\\quot\\ [\\quot\\+sFieldID+\\quot\\]\\quot\\//crlf////tab////tab////tab////tab////tab////tab////tab////tab//Value=driverGetFieldAbsolute(drvSummary\\comma\\sFieldID\\comma\\n)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//s=s+\\quot\\ value=\\quot\\+Value//crlf////tab////tab////tab////tab////tab////tab////tab////tab//appendToLog(s)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//nField++//crlf////tab////tab////tab////tab////tab////tab////tab//endwhile//crlf////tab////tab////tab////tab////tab////tab////tab//n++//crlf////tab////tab////tab////tab////tab////tab//endwhile//crlf//endif//crlf////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////if the file doesn't exist but a record for it does\\comma\\ delete the record//crlf////tab////tab////tab////tab////tab////and add a new blank record//crlf////tab////tab////tab////tab////tab//appendToLog(\\quot\\Error: File not found: \\quot\\+sDailySalesFilename)//crlf////tab////tab////tab////tab////tab//if(not(bIsNewRecord))//crlf////tab////tab////tab////tab////tab////tab////delete the existing record//crlf////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\Deleting record \\quot\\+r+\\quot\\ because file for \\quot\\+sDate+\\quot\\ does not exist\\quot\\)//crlf////tab////tab////tab////tab////tab////tab//driverDeleteRecordAbsolute(drvSummary\\comma\\r)//crlf////crlf////tab////tab////tab////tab////tab////tab////add a new blank record//crlf////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(drvSummary)//crlf////tab////tab////tab////tab////tab////tab//hashPut(hRecords\\comma\\sDate\\comma\\r)//crlf////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\Added blank record \\quot\\+r+\\quot\\ for \\quot\\+sDate)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(drvSummary\\comma\\\\quot\\DateNumber\\quot\\\\comma\\r\\comma\\formatNumber(dateNumber(dt)\\comma\\\\quot\\//pound//\\quot\\))//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab//dt=incrementTime(dt\\comma\\1)//crlf////tab////tab////tab//endwhile//crlf////tab////tab////tab//driverClose(drvSummary)//crlf////crlf////tab////tab////tab//return(\\quot\\ok\\quot\\)//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf////crlf//
^
ID=debug_console|X=1500|Y=20|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=debug_console|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=720789|X=1500|Y=20|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=AgentStart|X=183|Y=42|W=150|H=20|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=AgentStart|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=left_bar|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=463077|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|AgentSuspended=false|AgentDebug=false|AgentReport=never|
^
ID=463077|X=183|Y=219|W=119|H=45|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=AgentTerminate|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=AgentTabs|X=183|Y=22|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=top_bar|AttachLeft=left_bar|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<table class='tabdialog'>//crlf////tab//<tr>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentStart');agentSetVisible(true)\\quot\\>Agent</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentDescription');agentSetVisible(false)\\quot\\>Description</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentStatus');agentSetVisible(false)\\quot\\>Status</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentScript');agentSetVisible(false)\\quot\\>Script</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'ScriptText');agentSetVisible(false)\\quot\\>Script (Text)</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentChart');agentSetVisible(false);agentFormatNodes(document.getElementById('AgentChart'));agentDrawConnectors(document.getElementById('AgentChart'))\\quot\\>Chart</span></td>//crlf////tab//</tr>//crlf//</table>//crlf//
^
ID=AgentScript|X=183|Y=42|W=1000|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Aspect_Script|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<conditional expression:(\\quot\\__ExecAgentScript__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab//<!include type:script; name:\\quot\\agent_Sales Summary\\quot\\; commands:\\quot\\//crlf////crlf////tab////tab//::node\\comma\\VWaUGu88BMN0hDYWzZj57VpG_Sales Summary\\comma\\AgentStart\\comma\\AgentStart\\comma\\0\\comma\\//crlf////tab////tab////Created 06-25-2015 16:27:21//crlf////crlf////tab////tab////Force reporting when the agent is executed manually//crlf////tab////tab//bForceReport=((\\quot\\__ManualExecAgent__\\quot\\=\\quot\\true\\quot\\) or (false))//crlf////crlf////tab////tab////Record the starting time//crlf////tab////tab//tAgentStart=now()//crlf////crlf////tab////tab//::node\\comma\\VWaUGu88BMN0hDYWzZj57VpG_Sales Summary\\comma\\AgentTerminate\\comma\\463077\\comma\\2\\comma\\//crlf////tab////tab//scriptSetResult(2)//crlf////tab//\\quot\\>//crlf//</conditional>
^
ID=ScriptText|X=183|Y=42|W=1000|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<span style='font:8pt tahoma;color:black'>//amp//lt;state//amp//gt;06252015//amp//nbsp;162721//amp//lt;/state//amp//gt;<br>//amp//lt;<span class='includecontrol'>conditional</span>//amp//nbsp;expression:(\\quot\\__ExecAgentScript__\\quot\\=\\quot\\true\\quot\\)//amp//gt;<br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//lt;!<span class='includecontrol'>include</span>//amp//nbsp;type:script;//amp//nbsp;name:\\quot\\agent_Sales//amp//nbsp;Summary\\quot\\;//amp//nbsp;commands:\\quot\\<br><br><span class='comment'>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//Created//amp//nbsp;06-25-2015//amp//nbsp;16:27:21</span><br><br><span class='comment'>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//Force//amp//nbsp;reporting//amp//nbsp;when//amp//nbsp;the//amp//nbsp;agent//amp//nbsp;is//amp//nbsp;executed//amp//nbsp;manually</span><br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;bForceReport=((\\quot\\__ManualExecAgent__\\quot\\=\\quot\\true\\quot\\)//amp//nbsp;or//amp//nbsp;(false))<br><br><span class='comment'>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//Record//amp//nbsp;the//amp//nbsp;starting//amp//nbsp;time</span><br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;tAgentStart=<span class='keyword'>now</span>()<br><br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;<span class='keyword'>scriptSetResult</span>(2)<br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;\\quot\\//amp//gt;<br>//amp//lt;/<span class='includecontrol'>conditional</span>//amp//gt;<br><br></span>
^
ID=AgentDescription|X=183|Y=42|W=1000|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=AgentStatus|X=183|Y=42|W=1000|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<include type:expression; expression:htmlConstant(\\quot\\salt\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\getSalt(4))>//crlf////crlf//<include type:widget; server:{aspecthashid}; secure:false; documentID:\\quot\\h0BE4ziTlLytqKxtWLMy5CVY\\quot\\; widget:\\quot\\Notification Container\\quot\\; containerItemID:\\quot\\select_store_and_dates\\quot\\; params:\\quot\\Select=store//amp//From=true//amp//To=true//amp//func=showSalesSummary//amp//salt=__salt__\\quot\\;>//crlf//<script ID=\\quot\\JSSalesSummary\\quot\\>//crlf////tab//function showSalesSummary(Salt\\comma\\Store\\comma\\From\\comma\\To) {//crlf////tab////tab//var e=document.getElementById(\\quot\\SalesSummary__salt__\\quot\\);//crlf////tab////tab//e.setAttribute(\\quot\\url\\quot\\\\comma\\e.getAttribute(\\quot\\_url\\quot\\)+\\quot\\//amp//StoreID=\\quot\\+Store+\\quot\\//amp//DateFrom=\\quot\\+From+\\quot\\//amp//DateTo=\\quot\\+To);//crlf////tab////tab//setInterval(e\\comma\\0\\comma\\true);//crlf////tab//};//crlf//</script>//crlf////tab////crlf//<div ID=\\quot\\SalesSummary__salt__\\quot\\ _url=\\quot\\__RequestServer__/?Source={AspectHashID}//amp//Network=GreenLight//amp//ID=getWidget//amp//DocumentID=VWaUGu88BMN0hDYWzZj57VpG//amp//Widget=Sales Summary//amp//ContainerItemID=sales_summary\\quot\\></div>//crlf//
^
ID=AgentChart|X=183|Y=42|W=1000|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>06252015 162721</state>//crlf//<canvas height=\\quot\\100\\quot\\ width=\\quot\\100\\quot\\ style=\\quot\\position: absolute; top: 0px; left: 0px; width: 100px; height: 100px; border-style: none; z-index: 2;\\quot\\ id=\\quot\\agent_doc_canvas\\quot\\></canvas><div agentchildyesnode=\\quot\\chart463077\\quot\\ content_type=\\quot\\AgentAction\\quot\\ style=\\quot\\position: absolute; top: 0px; left: 0px; width: 120px; height: auto; display: block;\\quot\\ isagentdoc=\\quot\\true\\quot\\ id=\\quot\\chartAgentStart\\quot\\><canvas height=\\quot\\111\\quot\\ width=\\quot\\120\\quot\\ style=\\quot\\width: 120px; height: 111px; position: absolute; top: 0px; left: 0px;\\quot\\></canvas><div class=\\quot\\agentstart\\quot\\><b>Sales Summary</b><br><span style=\\quot\\font-weight:normal;color:green\\quot\\>Active</span><br><span style=\\quot\\font-weight:normal;color:black\\quot\\>Debugging Is Off</span><br>Report Status: never<br>Report To: <br>Name Params: </div></div><div content_type=\\quot\\AgentTerminate\\quot\\ style=\\quot\\position: absolute; top: 175px; left: 217px; width: 120px; height: auto; display: block;\\quot\\ isagentdoc=\\quot\\true\\quot\\ id=\\quot\\chart463077\\quot\\><canvas height=\\quot\\46\\quot\\ width=\\quot\\120\\quot\\ style=\\quot\\width: 120px; height: 46px; position: absolute; top: 0px; left: 0px;\\quot\\></canvas><div class=\\quot\\agentterminator\\quot\\>Terminate<br><span style=\\quot\\color:black\\quot\\>Other</span></div></div>
^
ID=sales_summary|X=1500|Y=20|W=738|H=589|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>//crlf////tab//__StoreID__//crlf////tab//__DateFrom__//crlf////tab//__DateTo__//crlf////tab//{@if((defined(\\quot\\__StoreID__\\quot\\)) and (defined(\\quot\\__DateFrom__\\quot\\)) and (defined(\\quot\\__DateTo__\\quot\\))\\comma\\if(dependencyStateChanged(\\quot\\POS_GENERIC_SALES_SUMMARY\\quot\\\\comma\\\\quot\\StoreID=__StoreID__~~pipe~~DateFrom=__DateFrom__~~pipe~~DateTo=__DateTo__\\quot\\)\\comma\\now()\\comma\\\\quot\\\\quot\\)\\comma\\now())}//crlf//</state>//crlf////crlf//<conditional expression:(undefined(\\quot\\__storeID__\\quot\\)) or (\\quot\\__storeID__\\quot\\=\\quot\\0\\quot\\)>//crlf////tab//Error: Missing StoreID<br>//crlf//</conditional>//crlf////crlf//<conditional expression:(undefined(\\quot\\__DateFrom__\\quot\\))>//crlf////tab//Error: Missing DateFrom<br>//crlf//</conditional>//crlf////crlf//<conditional expression:(undefined(\\quot\\__DateTo__\\quot\\))>//crlf////tab//Error: Missing DateTo<br>//crlf//</conditional>//crlf////crlf//<conditional expression:(defined(\\quot\\__StoreID__\\quot\\)) and (not(\\quot\\__StoreID__\\quot\\=\\quot\\0\\quot\\)) and (defined(\\quot\\__DateFrom__\\quot\\)) and (defined(\\quot\\__DateTo__\\quot\\))>//crlf////tab//<!include type:driver;//crlf////tab////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab////tab//title: \\quot\\\\quot\\;//crlf////tab////tab//HashID: \\quot\\\\quot\\;//crlf////tab////tab//driver: \\quot\\POS_GENERIC_SALES_SUMMARY\\quot\\;//crlf////tab////tab//name: \\quot\\\\quot\\;//crlf////tab////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab////tab//dispose: \\quot\\false\\quot\\;//crlf////tab////tab//state: \\quot\\\\quot\\;//crlf////tab////tab//params: \\quot\\keyexpression=ID~~pipe~~CacheTtl=0~~pipe~~Metadata=POS_GENERIC_SALES_SUMMARY~~pipe~~StoreID=__StoreID__~~pipe~~DateFrom=__DateFrom__~~pipe~~DateTo=__DateTo__\\quot\\;//crlf////tab////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab////tab//display: \\quot\\\\quot\\;//crlf////tab////tab//fields: \\quot\\\\quot\\;//crlf////tab////tab//sort: \\quot\\ID\\quot\\;//crlf////tab////tab//filter: \\quot\\true\\quot\\;//crlf////tab////tab//class: \\quot\\basic1\\quot\\;//crlf////tab////tab//maxrecords: \\quot\\-1\\quot\\;//crlf////tab////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab////tab//style: \\quot\\width:auto\\quot\\;//crlf////tab////tab//canSelect: \\quot\\false\\quot\\;//crlf////tab////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab////tab//canEdit: \\quot\\false\\quot\\;//crlf////tab////tab//canAdd: \\quot\\false\\quot\\;//crlf////tab////tab//canDelete: \\quot\\false\\quot\\;//crlf////tab////tab//EmbedValues: \\quot\\\\quot\\;//crlf////tab////tab//EditDialogID: \\quot\\POS_GENERIC_SALES_SUMMARYDialog\\quot\\;//crlf////tab////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab////tab//ExternalFilters: \\quot\\\\quot\\;//crlf////tab////tab//TableControls: \\quot\\true\\quot\\;//crlf////tab////tab//TableHeader: \\quot\\true\\quot\\;//crlf////tab////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab////tab//SelectDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//EditDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//Menu: \\quot\\\\quot\\;//crlf////tab////tab//Messages: \\quot\\true\\quot\\;//crlf////tab////tab//ChartType: \\quot\\\\quot\\;//crlf////tab////tab//ChartWidth: \\quot\\640\\quot\\;//crlf////tab////tab//ChartHeight: \\quot\\480\\quot\\;//crlf////tab////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab////tab//ChartStyle: \\quot\\display:none\\quot\\;//crlf////tab////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab////tab//Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab////tab//debug: \\quot\\false\\quot\\;//crlf////tab//>//crlf//</conditional>
</widget><widget name="Sales Documentation" group="Documentation" category="" description="" type="Container" Mobile="false" Processing=0 metadata="" IncludeInViewer="false" PublicName="Sales Documentation" modified="06-28-2016 12:07:11" modifiedby="Thnikpad" TaskEnabled=false IsAgent=false ContainsAgentSensors=true ContainsAgentActions=false TaskInitialStartTime=03-09-2016 22:20:14:000 TaskIntervalType=0 TaskLastExecuted= TaskCatchUpMissedTasks=false TaskYearsBetweenExecution=0 TaskMonthsBetweenExecution=0 TaskDaysBetweenExecution=0 TaskHoursBetweenExecution=0 TaskMinutesBetweenExecution=0 TaskSecondsBetweenExecution=0 TaskExecuteSun=true TaskExecuteMon=true TaskExecuteTue=true TaskExecuteWed=true TaskExecuteThu=true TaskExecuteFri=true TaskExecuteSat=true TaskConditional_Expression="" TaskConditional_Expression_Description="" TaskState_Function="" TaskState_Expression_Description="" TaskWidgetParams="" TaskWindowForExecution=0>
Preferences|toolboxx=36|toolboxy=264|aspectfuncx=205|aspectfuncy=100|aspectfuncw=865|aspectfunch=824|aspectfuncLock=true|aspectfuncVisible=false|PublishFtpFilename=Sales Documentation.html|PublishToFtpSite=false|PublishFTPAccount=0|PublishFtpDirectory=/|PublishFtpPublicDirectory=/|PublishCopyFile=false|PublishCopyFilename=|PublishIncludeAspectScript=false|PublishIncludeAspectStyleshet=false|PublishAsText=false|
^
ID=top_bar|X=0|Y=0|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=false|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=left_bar|X=0|Y=22|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=false|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=top_bar|AttachLeft=|AlignLeft=top_bar|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=code|X=1500|Y=0|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<table class='tabdialog'>//crlf////tab//<tr>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'856212')\\quot\\>Javascript</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'AspectScript')\\quot\\>AspectScript</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'sensor_list')\\quot\\>Sensors</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'action_list')\\quot\\>Actions</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'debug_console')\\quot\\>Console</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'743532')\\quot\\>Notes</span></td>//crlf////tab//</tr>//crlf//</table>
^
ID=856212|X=1500|Y=23|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Javascript|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=AspectScript|X=1500|Y=23|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Aspect_Script|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=sensor_list|X=1500|Y=23|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=Aspect_Script|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>//crlf////tab//{@if(\\quot\\__SensorExec__\\quot\\=\\quot\\true\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf////tab//{@if(getSystemValue(\\quot\\DevelopmentMode\\quot\\)\\comma\\fileModified(getToken(\\quot\\homedir\\quot\\)+\\quot\\cache\WidgetEdit_VWaUGu88BMN0hDYWzZj57VpG_Sales Documentation.html\\quot\\)\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//<conditional expression:(\\quot\\__sensor_list__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab//Sales Documentation\\comma\\getSalesDriverList\\comma\\sensor_list\\comma\\Sensor=getSalesDriverList\\comma\\private//crlf//</conditional>//crlf////crlf//<conditional expression:false>//crlf//========================================================================//crlf//getSalesDriverList//crlf//========================================================================//crlf//</conditional>//crlf//<conditional expression:(\\quot\\__sensor__\\quot\\=\\quot\\getSalesDriverList\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__SensorDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Returns a list of driver ID's as a comma-delimited list in the form://crlf////tab////tab//Group\\comma\\DriverID\\comma\\Agent Name //crlf////tab////tab//where Agent Name is the name of the agent used to update the driver if there is one.//crlf////tab////tab//This sensor is used by the Driver Descriptions item in the Notification Container 2//crlf////tab////tab//widget in the System Products widget library.  That item produces a display containing//crlf////tab////tab//a list of the drivers and notes associated with each driver.//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__SensorParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//None//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__SensorReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//The list of drivers//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__SensorExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//POS Identifiers\\comma\\POS_Generic_POS_IDs_Comps//crlf////tab////tab//POS Identifiers\\comma\\POS_Generic_POS_IDs_Departments//crlf////tab////tab//POS Identifiers\\comma\\POS_Generic_POS_IDs_Discount//crlf////tab////tab//POS Identifiers\\comma\\POS_Generic_POS_IDs_Gift_Certificates//crlf////tab////tab//POS Identifiers\\comma\\POS_Generic_POS_IDs_PaidIn//crlf////tab////tab//POS Identifiers\\comma\\POS_Generic_POS_IDs_PaidOut//crlf////tab////tab//POS Identifiers\\comma\\POS_Generic_POS_IDs_Revenue_Centers//crlf////tab////tab//POS Identifiers\\comma\\POS_Generic_POS_IDs_Tax//crlf////tab////tab//POS Identifiers\\comma\\POS_Generic_POS_IDs_Tender//crlf////tab////tab//POS Identifiers\\comma\\POS_Generic_POS_IDs_Void//crlf////tab////tab//Other Imported Data\\comma\\POS_Generic_Check_Header_Dta//crlf////tab////tab//Other Imported Data\\comma\\POS_Generic_OtherTotal_Dta//crlf////tab////tab//Other Imported Data\\comma\\POS_Generic_PaidInOut_Dta//crlf////tab////tab//Other Imported Data\\comma\\POS_Generic_SalesMix_Dta//crlf////tab////tab//Other Imported Data\\comma\\POS_Generic_TimePeriod_Dta//crlf////tab////tab//Check Details\\comma\\POS_Generic_Check_Detail_Dta//crlf////tab////tab//Check Details\\comma\\POS_Generic_Check_Detail_Addendum\\comma\\updateCheckDetailAddendumSingleDay//crlf////tab////tab//Check Details\\comma\\POS_Generic_Check_Detail_With_Addendum//crlf////tab////tab//Daily Sales\\comma\\POS_Generic_Daily_Sales\\comma\\updateDailySalesSingleDay//crlf////tab////tab//Daily Sales\\comma\\POS_Generic_User_Defined_Daily_Sales_Struct//crlf////tab//</conditional>//crlf//</conditional>//crlf//
^
ID=action_list|X=1500|Y=23|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Aspect_Script|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>//crlf////tab//{@if(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf////tab//{@if(getSystemValue(\\quot\\DevelopmentMode\\quot\\)\\comma\\fileModified(getToken(\\quot\\homedir\\quot\\)+\\quot\\cache\WidgetEdit_VWaUGu88BMN0hDYWzZj57VpG_Sales Documentation.html\\quot\\)\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//<conditional expression:(\\quot\\__action_list__\\quot\\=\\quot\\true\\quot\\)>//crlf//</conditional>//crlf////crlf//
^
ID=debug_console|X=1500|Y=23|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=debug_console|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=743532|X=1500|Y=23|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=249346|X=183|Y=22|W=97|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=top_bar|AttachLeft=left_bar|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<select onChange=\\quot\\showTab(this)\\quot\\>//crlf////tab//<option value='841765'>Sales Documentation</option>//crlf////tab//<option value='905408'>Scratchpad</option>//crlf////tab//<option value='250123'>Test Transpose of Daily Sales</option>//crlf////tab//<option value='887231'>Placeholder4</option>//crlf////tab//<option value='424476'>Placeholder5</option>//crlf////tab//<option value='50841'>Placeholder6</option>//crlf////tab//<option value='894522'>Placeholder7</option>//crlf////tab//<option value='584998'>Placeholder8</option>//crlf////tab//<option value='172031'>Placeholder9</option>//crlf////tab//<option value='355722'>Placeholder10</option>//crlf//</select>//crlf//
^
ID=887231|X=183|Y=43|W=800|H=872|AutoHeight=true|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=249346|AttachLeft=|AlignLeft=249346|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=841765|X=183|Y=43|W=1092|H=1111|AutoHeight=true|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=249346|AttachLeft=|AlignLeft=249346|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<conditional expression:(true) or (\\quot\\__getContent__\\quot\\=\\quot\\true\\quot\\)>//crlf////crlf////tab//<constant name:\\quot\\__max_text_width__\\quot\\; value:\\quot\\800px\\quot\\>//crlf////crlf////tab//<div style=\\quot\\width:100\\percent\\;max-width:1200px\\quot\\>//crlf////tab////tab//<conditional expression:false>//crlf////tab////tab//=====================================================================================//crlf////tab////tab//Overview//crlf////tab////tab//=====================================================================================//crlf////tab////tab//</conditional>//crlf////tab////tab//<!include type:widget; server:{AspectHashID}; secure:true; documentID:\\quot\\K4Ui6j3Y1rwlvukPkOqn25Em\\quot\\; widget:\\quot\\Notification Container\\quot\\; containerItemID:\\quot\\601689\\quot\\; params:\\quot\\action=getheader\\amp\\Chapter=__salt__\\amp\\Section=Overview\\quot\\;>//crlf////tab////tab////tab//<div style=\\quot\\max-width:__max_text_width__\\quot\\>//crlf////tab////tab////tab////tab//<p>This document describes:</p>//crlf////crlf////tab////tab////tab////tab//<ul>//crlf////tab////tab////tab////tab////tab//<li>How the daily sales file is created</li>//crlf////tab////tab////tab////tab////tab//<li>How user-defined fields are added to the daily sales reconciliation/li>//crlf////tab////tab////tab////tab////tab//<li>How the daily sales reconciliation is created and how it can be customized</li>//crlf////tab////tab////tab////tab////tab//<li>How daily sales drivers are combined to create a sales summary</li>//crlf////tab////tab////tab////tab//</ul>//crlf////crlf////tab////tab////tab////tab//<p>The following drivers are used in processing daily sales:</p>//crlf////crlf////tab////tab////tab////tab//<table class=\\quot\\bordered\\quot\\>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<th align=\\quot\\left\\quot\\>Driver</th>//crlf////tab////tab////tab////tab////tab////tab//<th align=\\quot\\left\\quot\\>Description</th>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td>POS_Generic_Check_Detail_Dta<br></td>//crlf////tab////tab////tab////tab////tab////tab//<td>Check details imported from the POS system</td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td>POS_Generic_Check_Detail_Addendum<br></td>//crlf////tab////tab////tab////tab////tab////tab//<td>Additional check details derived from the original check details.  //crlf////tab////tab////tab////tab////tab////tab////tab////tab//(e.g. Sales less discounts and comps)</td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td>POS_Generic_Check_Detail_With_Addendum<br></td>//crlf////tab////tab////tab////tab////tab////tab//<td>Vertical consolidation of the two check details drivers</td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td>POS_Generic_Daily_Sales<br></td>//crlf////tab////tab////tab////tab////tab////tab//<td>In effect\\comma\\ subtotals of all record type / POS ID combinations in the //crlf////tab////tab////tab////tab////tab////tab////tab//consolidated check details driver.</td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td>POS_Generic_User_Defined_Daily_Sales_Struct<br></td>//crlf////tab////tab////tab////tab////tab////tab//<td>External structure used to add user-defined fields to the daily sales.</td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//</table>//crlf////tab////tab////tab//</div>//crlf////tab////tab//<!include type:widget; server:{AspectHashID}; secure:true; documentID:\\quot\\K4Ui6j3Y1rwlvukPkOqn25Em\\quot\\; widget:\\quot\\Notification Container\\quot\\; containerItemID:\\quot\\601689\\quot\\; params:\\quot\\action=getfooter\\quot\\;>//crlf////crlf////tab////tab//<conditional expression:false>//crlf////tab////tab//=====================================================================================//crlf////tab////tab//Check Details//crlf////tab////tab//=====================================================================================//crlf////tab////tab//</conditional>//crlf////tab////tab//<!include type:widget; server:{AspectHashID}; secure:true; documentID:\\quot\\K4Ui6j3Y1rwlvukPkOqn25Em\\quot\\; widget:\\quot\\Notification Container\\quot\\; containerItemID:\\quot\\601689\\quot\\; params:\\quot\\action=getheader\\amp\\Chapter=__salt__\\amp\\Section=Check Details\\quot\\;>//crlf////tab////tab////tab//<div style=\\quot\\max-width:__max_text_width__\\quot\\>//crlf////tab////tab////tab////tab//<h1>Check Details</h1>//crlf////tab////tab////tab////tab//<p>Check details are imported from the POS system each day.  These are use the //crlf////tab////tab////tab////tab////tab//POS Generic Check Detail Dta driver and are recorded in ckd.MMddyyyy.bin.</p>//crlf////crlf////tab////tab////tab////tab//<h1>Check Details Addendum</h1>//crlf////tab////tab////tab////tab//<p>In addition to the check details\\comma\\ a second check detail file is //crlf////tab////tab////tab////tab////tab//created using the POS_Generic_Check_Detail_Addendum driver and named//crlf////tab////tab////tab////tab////tab//ckdadd.MMddyyyy.bin.  This driver uses the same structure as the check details.  //crlf////tab////tab////tab////tab////tab//The purpose of the addendum is to add additional record types to the check //crlf////tab////tab////tab////tab////tab//details before they are used to produce the daily sales file.</p>//crlf////crlf////tab////tab////tab////tab//<p>For example\\comma\\ the check detail addendum currently adds record types for comps//crlf////tab////tab////tab////tab////tab//by category and discounts by category.  Records are added to the addendum by //crlf////tab////tab////tab////tab////tab//processing records in the check detail driver to accumulate totals for each //crlf////tab////tab////tab////tab////tab//category.</p>//crlf////crlf////tab////tab////tab////tab//<p>The addendum is a dependent driver\\comma\\ so it is created whenever it doesn\\apos\\t exist and //crlf////tab////tab////tab////tab////tab//whenever the check details file is modified for a day.  The driver is updated by //crlf////tab////tab////tab////tab////tab//the updateCheckDetailAddendumSingleDay agent action in the Daily Sales widget.</p>//crlf////tab////tab////tab//</div>//crlf////tab////tab//<!include type:widget; server:{AspectHashID}; secure:true; documentID:\\quot\\K4Ui6j3Y1rwlvukPkOqn25Em\\quot\\; widget:\\quot\\Notification Container\\quot\\; containerItemID:\\quot\\601689\\quot\\; params:\\quot\\action=getfooter\\quot\\;>//crlf////crlf////tab////tab//[!------------------------------------------------------------------------//crlf////tab////tab//Daily Sales File//crlf////tab////tab//--------------------------------------------------------------------------]//crlf////tab////tab//<!include type:widget; server:{AspectHashID}; secure:true; documentID:\\quot\\K4Ui6j3Y1rwlvukPkOqn25Em\\quot\\; widget:\\quot\\Notification Container\\quot\\; containerItemID:\\quot\\601689\\quot\\; params:\\quot\\action=getheader\\amp\\Chapter=__salt__\\amp\\Section=Daily Sales File\\quot\\;>//crlf////tab////tab////tab//<div style=\\quot\\max-width:__max_text_width__\\quot\\>//crlf////tab////tab////tab////tab//<p>In short\\comma\\ the daily sales file is just a subtotal of all the records in the //crlf////tab////tab////tab////tab////tab//consolidated check details and check details addendum.  These drivers are //crlf////tab////tab////tab////tab////tab//consolidated for a single day\\comma\\ subtotaled by record type and POS ID and then the//crlf////tab////tab////tab////tab////tab//subtotals are merged into the daily sales file.  (The daily sales file is cleared //crlf////tab////tab////tab////tab////tab//before the merge if it already exists.)  After merging\\comma\\ an additional record //crlf////tab////tab////tab////tab////tab//is added using record type 99 to record the date in the file.</p>//crlf////crlf////tab////tab////tab////tab//<p>The daily sales file is a dependent driver so it is created whenever it doesn\\apos\\t //crlf////tab////tab////tab////tab////tab//exist or when either of the check detail files are modified.  The driver is //crlf////tab////tab////tab////tab////tab//updated by the updateDailySalesSingleDay agent action in the daily sales //crlf////tab////tab////tab////tab////tab//widget.  The Daily Sales agent also checks at intervals for any files that //crlf////tab////tab////tab////tab////tab//need creating/updating and brings them up to date.  This speeds up opening //crlf////tab////tab////tab////tab////tab//of the daily sales reconciliation because the files will already be up //crlf////tab////tab////tab////tab////tab//to date and not require processing when the report is opened.</p>//crlf////crlf////tab////tab////tab////tab//<p>A daily sales file looks something like this</p>//crlf////tab////tab////tab////tab//<table>//crlf////tab////tab////tab////tab////tab//<tr><th>Record Type</th><th>POS ID</th><th>Quantity</th><th>Amount</th></tr>//crlf////tab////tab////tab////tab////tab//<tr><td>Sale</td><td>Food</td><td>1000</td><td>1000.00</td></tr>//crlf////tab////tab////tab////tab////tab//<tr><td>Sale</td><td>Liquor</td><td>1000</td><td>1000.00</td></tr>//crlf////tab////tab////tab////tab////tab//<tr><td>Sale</td><td>Beer</td><td>1000</td><td>1000.00</td></tr>//crlf////tab////tab////tab////tab////tab//<tr><td>Sale</td><td>Wine</td><td>1000</td><td>1000.00</td></tr>//crlf////tab////tab////tab////tab////tab//<tr><td>Tender</td><td>Visa</td><td>1000</td><td>1000.00</td></tr>//crlf////tab////tab////tab////tab////tab//<tr><td>Tender</td><td>Amex</td><td>1000</td><td>1000.00</td></tr>//crlf////tab////tab////tab////tab////tab//<tr><td>Tender</td><td>Mastercard</td><td>1000</td><td>1000.00</td></tr>//crlf////tab////tab////tab////tab//</table>//crlf////tab////tab////tab////tab////tab////crlf////tab////tab////tab////tab//<p>The number of records in the file depends on the number of subtotals in the //crlf////tab////tab////tab////tab////tab//check details file.  It will not necessarily be the same every day.  For example\\comma\\//crlf////tab////tab////tab////tab////tab//if a discount is not used on a day\\comma\\ that record will not appear in the file.</p>//crlf////tab////tab////tab//</div>//crlf////tab////tab//<!include type:widget; server:{AspectHashID}; secure:true; documentID:\\quot\\K4Ui6j3Y1rwlvukPkOqn25Em\\quot\\; widget:\\quot\\Notification Container\\quot\\; containerItemID:\\quot\\601689\\quot\\; params:\\quot\\action=getfooter\\quot\\;>//crlf////crlf////tab////tab//[!------------------------------------------------------------------------//crlf////tab////tab//Daily Sales Transposition//crlf////tab////tab//--------------------------------------------------------------------------]//crlf////tab////tab//<!include type:widget; server:{AspectHashID}; secure:true; documentID:\\quot\\K4Ui6j3Y1rwlvukPkOqn25Em\\quot\\; widget:\\quot\\Notification Container\\quot\\; containerItemID:\\quot\\601689\\quot\\; params:\\quot\\action=getheader\\amp\\Chapter=__salt__\\amp\\Section=Daily Sales Transposition\\quot\\;>//crlf////tab////tab////tab//<h1>Daily Sales Before Transposition</h1>//crlf////tab////tab////tab//<p>This is how the daily sales driver looks before it is transposed.</p>//crlf////tab////tab////tab//<div style=\\quot\\width:100\\percent\\;max-width:1200px;height:250px;overflow:auto;border:1px solid black\\quot\\>//crlf////tab////tab////tab////tab//<!include type:file; name:{packageurl_aspect_support}doc/sample_daily_sales_before_transpose.html;>//crlf////tab////tab////tab//</div>//crlf////crlf////tab////tab////tab//<h1>Daily Sales After Transposition</h1>//crlf////tab////tab////tab//<p>This is how the daily sales driver looks after it is transposed.</p>//crlf////tab////tab////tab//<div style=\\quot\\width:100\\percent\\;max-width:1200px;height:250px;overflow:auto;border:1px solid black\\quot\\>//crlf////tab////tab////tab////tab//<!include type:file; name:{packageurl_aspect_support}doc/sample_daily_sales_after_transpose.html;>//crlf////tab////tab////tab//</div>//crlf////crlf////tab////tab//<!include type:widget; server:{AspectHashID}; secure:true; documentID:\\quot\\K4Ui6j3Y1rwlvukPkOqn25Em\\quot\\; widget:\\quot\\Notification Container\\quot\\; containerItemID:\\quot\\601689\\quot\\; params:\\quot\\action=getfooter\\quot\\;>//crlf////crlf////tab////tab//<conditional expression:false>//crlf////tab////tab//=====================================================================================//crlf////tab////tab//User-Defined Fields//crlf////tab////tab//=====================================================================================//crlf////tab////tab//</conditional>//crlf////tab////tab//<!include type:widget; server:{AspectHashID}; secure:true; documentID:\\quot\\K4Ui6j3Y1rwlvukPkOqn25Em\\quot\\; widget:\\quot\\Notification Container\\quot\\; containerItemID:\\quot\\601689\\quot\\; params:\\quot\\action=getheader\\amp\\Chapter=__salt__\\amp\\Section=User-Defined Fields\\quot\\;>//crlf////tab////tab////tab//<div style=\\quot\\max-width:__max_text_width__\\quot\\>//crlf////tab////tab////tab////tab//<p>The POS_Generic_User_Defined_Daily_Sales_Struct driver is used to edit an external //crlf////tab////tab////tab////tab////tab//driver structure that it added to the daily sales driver.  All fields except //crlf////tab////tab////tab////tab////tab//calculated fields are flagged as external data fields.</p>//crlf////crlf////tab////tab////tab////tab//<p>The key for external data fields includes the date\\comma\\ store ID and field ID.  It is //crlf////tab////tab////tab////tab////tab//defined by the following expression:</p>//crlf////tab////tab////tab////tab//<br>//crlf////tab////tab////tab////tab//<code>\\quot\\formatDate(date(DateNumber)\\quot\\\\plus\\char(0x2C)\\plus\\quote(\\quot\\MMddyyyy\\quot\\)\\plus\\\\quot\\)\\plus\\left(StoreID\\quot\\\\plus\\char(0x2C)\\plus\\\\quot\\8)\\plus\\\\quot\\\\plus\\quote(FieldID)</code>//crlf////tab////tab////tab////tab//<br>//crlf////crlf////tab////tab////tab////tab//<p>All external data for a single store is recorded in a single file in the store //crlf////tab////tab////tab////tab////tab//directory named customsalesdata.bin.</p>//crlf////crlf////tab////tab////tab////tab//<!include type:view; viewid:\\quot\\8RV4iXbY\\quot\\; Source:\\quot\\\\quot\\; params:\\quot\\PackageID=POS_Generic\\amp\\ResourceType=Structures\\amp\\StructureID=POS_Generic_User_Defined_Daily_Sales_Struct\\quot\\;> //crlf////tab////tab////tab//</div>//crlf////tab////tab//<!include type:widget; server:{AspectHashID}; secure:true; documentID:\\quot\\K4Ui6j3Y1rwlvukPkOqn25Em\\quot\\; widget:\\quot\\Notification Container\\quot\\; containerItemID:\\quot\\601689\\quot\\; params:\\quot\\action=getfooter\\quot\\;>//crlf////crlf////tab////tab//<conditional expression:false>//crlf////tab////tab//=====================================================================================//crlf////tab////tab//User-Defined view container for report//crlf////tab////tab//=====================================================================================//crlf////tab////tab//</conditional>//crlf////tab////tab//<!include type:widget; server:{AspectHashID}; secure:true; documentID:\\quot\\K4Ui6j3Y1rwlvukPkOqn25Em\\quot\\; widget:\\quot\\Notification Container\\quot\\; containerItemID:\\quot\\601689\\quot\\; params:\\quot\\action=getheader\\amp\\Chapter=__salt__\\amp\\Section=User-Defined view container for report\\quot\\;>//crlf////crlf////tab////tab////tab//<div style=\\quot\\max-width:__max_text_width__\\quot\\>//crlf////tab////tab////tab////tab//<h1>Local Package</h1>//crlf////tab////tab////tab////tab//<p>A local package is now created automatically with the ID of \\quot\\Local\\quot\\.  This package //crlf////tab////tab////tab////tab////tab//provides a way for users to create views on their own computer\\comma\\ using the local //crlf////tab////tab////tab////tab////tab//package.</p>//crlf////tab////tab////tab////tab////crlf////tab////tab////tab////tab//<p>The method for editing local views is the same as for editing views for the UI\\comma\\ but //crlf////tab////tab////tab////tab////tab//it has been simplified by removing fields from the dialog.  A local view can only //crlf////tab////tab////tab////tab////tab//embed other views and it cannot prompt for any parameters.  Any parameters that are //crlf////tab////tab////tab////tab////tab//required are determined by the combined parameter list of all the embedded views.</p>//crlf////crlf////tab////tab////tab////tab//<h1>Sales Reconciliation Template</h1>//crlf////tab////tab////tab////tab//<p>A template is defined for the daily sales reconciliation in the views for the //crlf////tab////tab////tab////tab////tab//Back-Office package.  It is named \\quot\\Sales Reconciliation\\quot\\ in the Templates category.  //crlf////tab////tab////tab////tab////tab//The user-defined sales reconciliation is initialized by merging the template and //crlf////tab////tab////tab////tab////tab//its embedded views to the user-defined views.  This is done by the //crlf////tab////tab////tab////tab////tab//createDefaultDailySalesView agent action.  (This action must be executed manually //crlf////tab////tab////tab////tab////tab//as of 03-22-2016 and needs to be automated).  The ID of the template is \\quot\\lgWbT21Z\\quot\\.//crlf////tab////tab////tab////tab////tab//This ID is changed to \\quot\\_lgWbT21\\quot\\ in the user-defined view.  So\\comma\\ the view ID used //crlf////tab////tab////tab////tab////tab//to display the user-defined sales reconciliation will always be \\quot\\_lgWbT21\\quot\\.</p>//crlf////crlf////tab////tab////tab////tab//<h1>Customizing the Sales Reconciliation</h1>//crlf////tab////tab////tab////tab//<p>Users are free to edit the user-defined view and to add/remove embedded content //crlf////tab////tab////tab////tab////tab//and to change the order of the content.  Right now\\comma\\ a single view named //crlf////tab////tab////tab////tab////tab//\\quot\\Daily Sales by Record Type\\quot\\ is used to embed tables for each record type (sales\\comma\\//crlf////tab////tab////tab////tab////tab//tenders\\comma\\ discounts\\comma\\ etc).  This required that parameters be defined for the //crlf////tab////tab////tab////tab////tab//embedded view specifying the record type and other things.  This is probably //crlf////tab////tab////tab////tab////tab//beyond the reach of users for now.</p>//crlf////crlf////tab////tab////tab////tab//<h1>Adding the custom Sales Reconciliation to the standard UI</h1>//crlf////tab////tab////tab////tab//<p>To add the user-defined container as a view in the standard UI\\comma\\ an item named //crlf////tab////tab////tab////tab////tab//\\quot\\Include tag for user-defined daily sales container\\quot\\ has been created in the //crlf////tab////tab////tab////tab////tab//\\quot\\View Content\\quot\\ widget in the \\quot\\Aspect Back Office Sales\\quot\\ widget library.  This //crlf////tab////tab////tab////tab////tab//item is just an include tag that includes the user-defined view with the ID //crlf////tab////tab////tab////tab////tab//\\quot\\_lgWbT21\\quot\\.  It would be possible to include the user-defined view directly in //crlf////tab////tab////tab////tab////tab//the UI as well\\comma\\ but this provides a way to fix it\\apos\\s position and category //crlf////tab////tab////tab////tab////tab//in the UI.</p>//crlf////crlf////tab////tab////tab////tab//<p>As of 03-22-2016\\comma\\ additional content needs to be created for inclusion in //crlf////tab////tab////tab////tab////tab//the daily sales reconciliation.  For example\\comma\\ multiple record type might be //crlf////tab////tab////tab////tab////tab//included in a single view\\comma\\ or percentages might be added\\comma\\ etc.</p>//crlf////tab////tab////tab//</div>//crlf////tab////tab//<!include type:widget; server:{AspectHashID}; secure:true; documentID:\\quot\\K4Ui6j3Y1rwlvukPkOqn25Em\\quot\\; widget:\\quot\\Notification Container\\quot\\; containerItemID:\\quot\\601689\\quot\\; params:\\quot\\action=getfooter\\quot\\;>//crlf////crlf////tab////tab//[!------------------------------------------------------------------------//crlf////tab////tab//Drivers//crlf////tab////tab//--------------------------------------------------------------------------]//crlf////tab////tab//<!include type:widget; server:{AspectHashID}; secure:true; documentID:\\quot\\K4Ui6j3Y1rwlvukPkOqn25Em\\quot\\; widget:\\quot\\Notification Container\\quot\\; containerItemID:\\quot\\601689\\quot\\; params:\\quot\\action=getheader\\amp\\Chapter=__salt__\\amp\\Section=Sales Drivers\\quot\\;>//crlf////tab////tab////tab//<!include //crlf////tab////tab////tab////tab//type:widget; //crlf////tab////tab////tab////tab//server:{AspectHashID}; //crlf////tab////tab////tab////tab//secure:true; //crlf////tab////tab////tab////tab//documentID:\\quot\\K4Ui6j3Y1rwlvukPkOqn25Em\\quot\\; //crlf////tab////tab////tab////tab//widget:\\quot\\Resources\\quot\\; //crlf////tab////tab////tab////tab//containerItemID:\\quot\\79710\\quot\\; //crlf////tab////tab////tab////tab//params:\\quot\\PackageID=POS_Generic\\amp\\Display=Sales Drivers\\quot\\;>//crlf////tab////tab//<!include type:widget; server:{AspectHashID}; secure:true; documentID:\\quot\\K4Ui6j3Y1rwlvukPkOqn25Em\\quot\\; widget:\\quot\\Notification Container\\quot\\; containerItemID:\\quot\\601689\\quot\\; params:\\quot\\action=getfooter\\quot\\;>//crlf////crlf////tab////tab//[!------------------------------------------------------------------------//crlf////tab////tab//Driver Descriptions//crlf////tab////tab//--------------------------------------------------------------------------]//crlf////tab////tab//<!include type:widget; server:{AspectHashID}; secure:true; documentID:\\quot\\K4Ui6j3Y1rwlvukPkOqn25Em\\quot\\; widget:\\quot\\Notification Container\\quot\\; containerItemID:\\quot\\601689\\quot\\; params:\\quot\\action=getheader\\amp\\Chapter=__salt__\\amp\\Section=Sales Driver Descriptions\\quot\\;>//crlf////tab////tab////tab//<!include //crlf////tab////tab////tab////tab//type:widget; //crlf////tab////tab////tab////tab//server:{AspectHashID}; //crlf////tab////tab////tab////tab//secure:true; //crlf////tab////tab////tab////tab//documentID:\\quot\\K4Ui6j3Y1rwlvukPkOqn25Em\\quot\\; //crlf////tab////tab////tab////tab//widget:\\quot\\Notification Container 2\\quot\\; //crlf////tab////tab////tab////tab//containerItemID:\\quot\\260878\\quot\\; //crlf////tab////tab////tab////tab//params:\\quot\\sensor=getSalesDriverList\\amp\\getContent=true\\quot\\;//crlf////tab////tab////tab//>//tab////crlf////tab////tab//<!include type:widget; server:{AspectHashID}; secure:true; documentID:\\quot\\K4Ui6j3Y1rwlvukPkOqn25Em\\quot\\; widget:\\quot\\Notification Container\\quot\\; containerItemID:\\quot\\601689\\quot\\; params:\\quot\\action=getfooter\\quot\\;>//crlf////crlf////tab////tab//[!------------------------------------------------------------------------//crlf////tab////tab//Agent Sensors/Actions//crlf////tab////tab//--------------------------------------------------------------------------]//crlf////tab////tab//<!include type:widget; server:{AspectHashID}; secure:true; documentID:\\quot\\K4Ui6j3Y1rwlvukPkOqn25Em\\quot\\; widget:\\quot\\Notification Container\\quot\\; containerItemID:\\quot\\601689\\quot\\; params:\\quot\\action=getheader\\amp\\Chapter=__salt__\\amp\\Section=Sales Agent Sensors/Actions\\quot\\;>//crlf////tab////tab////tab//<!-- This relative div is required to position the dialogs properly in the table below -->//crlf////tab////tab////tab//<div style=\\quot\\position:relative;top:0px;left:0px;\\quot\\>//crlf////tab////tab////tab////tab//[!------------------------------------------------------------------------//crlf////tab////tab////tab////tab//This include tag uses the \\quot\\Sensors / Actions\\quot\\ view in the System Tools//crlf////tab////tab////tab////tab//package.  The Library parameter specifies that only agents included in the //crlf////tab////tab////tab////tab//\\quot\\Aspect Back-Office Sales\\quot\\ wiidget library should be included in the list.  //crlf////tab////tab////tab////tab//The Name parameter can be used to limit the list to specific agent sensors //crlf////tab////tab////tab////tab//and actions.  It has been disabled for now to show all sensors/actions///crlf////tab////tab////tab////tab//--------------------------------------------------------------------------]//crlf////tab////tab////tab////tab//<!include //crlf////tab////tab////tab////tab////tab//type:view; //crlf////tab////tab////tab////tab////tab//viewid:\\quot\\BCgmpiSl\\quot\\; //crlf////tab////tab////tab////tab////tab//Source:\\quot\\\\quot\\; //crlf////tab////tab////tab////tab////tab//params:\\quot\\getContent=true\\amp\\//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//Library=VWaUGu88BMN0hDYWzZj57VpG\\amp\\//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//Display=Actions and Sensors by Group / Widget\\amp\\//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//FilterType=false\\amp\\//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//_Name=updateCheckDetailAddendumSingleDay\\comma\\updateDailySalesSingleDay\\amp\\//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//TableControls=false\\amp\\getContent=true\\quot\\;//crlf////tab////tab////tab////tab//> //crlf////tab////tab////tab//</div>//crlf////crlf////tab////tab////tab//<!-- add some blank space so the dialog for the last item in the list can be seen -->//crlf////tab////tab////tab//<div style=\\quot\\height:500px;width:10px\\quot\\></div>//crlf////tab////tab//<!include type:widget; server:{AspectHashID}; secure:true; documentID:\\quot\\K4Ui6j3Y1rwlvukPkOqn25Em\\quot\\; widget:\\quot\\Notification Container\\quot\\; containerItemID:\\quot\\601689\\quot\\; params:\\quot\\action=getfooter\\quot\\;>//crlf////tab//</div>//crlf//</conditional>//crlf////crlf//
^
ID=905408|X=183|Y=43|W=714|H=690|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=249346|AttachLeft=|AlignLeft=249346|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<p>Discounts need to be calculated by category</p>//crlf////crlf//<p>The controllables report should make available:</p>//crlf//<ul>//crlf////tab//<li>Sales by category including comps / discounts</li>//crlf////tab//<li>Comps by category</li>//crlf////tab//<li>Discounts by category</li>//crlf////tab//<li>Sales by category less comps/discounts</li>//crlf//</ul>//crlf////crlf//<p>These elements can be displayed or not.  For example\\comma\\ a user may prefer to display only//crlf////tab//sales less comps and discounts.</p>//crlf////crlf//<p>All numbers in the controllables report are calculated and absolute.  The questions is //crlf////tab//which figures should be used when calculating percentages.  For example\\comma\\ should food cost//crlf////tab//be calculated as a percent of sales including comps/discounts or less comps/discounts.  //crlf////tab//These will be user-defined as in the current cost of sales.</p>//crlf////crlf//<p>Allow for budgets to be entered.  They might be entered as a fixed number or as a percent //crlf//of sales.  They should remain static once initialized so that changing a budget does not //crlf//alter past budgets.</p>//crlf////crlf//<p>Consider helping customers create controllables reports for different managers.  For //crlf//example\\comma\\ a kitchen manager may need to see one set of numbers while a front of house manager //crlf//needs another.</p>
^
ID=250123|X=183|Y=43|W=986|H=692|AutoHeight=true|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=249346|AttachLeft=|AlignLeft=249346|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<h1>Description</h1>//crlf//<p>This item was used to experiment with transposing the daily sales driver and was used //crlf//to create the sample tables included in the sales documentation.  To use it\\comma\\ make sure //crlf//the StoreID and Date constants are set to a valid value.</p>//crlf////crlf//<p>The two scripts return tables containing the daily sales driver before and after//crlf//transposing.  The tables are also written to the temporary_files folder using the names//crlf//daily_sales_before_notranspose.html and daily_sales_before_notranspose.html.  These //crlf//files were copied to the Aspect_Support doc< directory and included in the documentation.</p>//crlf////crlf//<conditional expression:(true) or (\\quot\\__getContent__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab//<constant name:\\quot\\__StoreID__\\quot\\; value:\\quot\\KZX2VBNGExCTHrLmixKxY8eJ\\quot\\>//crlf////tab//<constant name:\\quot\\__Date__\\quot\\; value:\\quot\\04-16-2016\\quot\\>//crlf////crlf////tab//<h1>Daily Sales Before Transposition</h1>//crlf////tab//<div style=\\quot\\width:100\\percent\\;max-width:1200px;height:250px;overflow:auto;border:1px solid black\\quot\\>//crlf////tab////tab//<!include type:script; commands:\\quot\\//crlf////tab////tab////tab//sParams=\\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\//crlf////tab////tab////tab//driverOpen(POS_Generic_Daily_Sales\\comma\\d\\comma\\READ\\comma\\false\\comma\\sParams)//crlf////tab////tab////tab//arField=driverGetFieldIDs(d\\comma\\0)//crlf////crlf////tab////tab////tab//cField=getElementCount(arField)//crlf////tab////tab////tab//sOutput=\\quot\\\\quot\\//crlf////crlf////tab////tab////tab//cRecord=driverGetRecordCount(d\\comma\\true)//crlf////tab////tab////tab//nRecord=0//crlf////tab////tab////tab//while(nRecord<cRecord)//crlf////tab////tab////tab////tab//sRecordOutput=\\quot\\\\quot\\//crlf////tab////tab////tab////tab//nField=0//crlf////tab////tab////tab////tab//while(nField<cField)//crlf////tab////tab////tab////tab////tab//sFieldID=getElement(arField\\comma\\nField)//crlf////tab////tab////tab////tab////tab//sValue=driverGetFieldAbsolute(d\\comma\\sFieldID\\comma\\nRecord)//crlf////tab////tab////tab////tab////tab//sRecordOutput=addElement(sRecordOutput\\comma\\sValue)//crlf////tab////tab////tab////tab////tab//nField++//crlf////tab////tab////tab////tab//endwhile//crlf////tab////tab////tab////tab//sOutput=sOutput+sRecordOutput+char(10)//crlf////tab////tab////tab////tab//nRecord++//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab//driverClose(d)//crlf////crlf////tab////tab////tab//sTable=htmlTable(sOutput\\comma\\char(10)\\comma\\\\quot\\\\comma\\\\quot\\\\comma\\arField)//crlf////tab////tab////tab//fileWriteContent(getToken(\\quot\\temporary_files\\quot\\)+\\quot\\daily_sales_before_notranspose.html\\quot\\\\comma\\sTable)//crlf////tab////tab////tab//return(sTable)//crlf////tab////tab//\\quot\\>//crlf////tab//</div>//crlf////crlf////tab//<h1>Daily Sales After Transposition</h1>//crlf////tab//<div style=\\quot\\width:100\\percent\\;max-width:1200px;height:250px;overflow:auto;border:1px solid black\\quot\\>//crlf////tab////tab//<!include type:script; commands:\\quot\\//crlf////tab////tab////tab//sParams=\\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\//crlf////tab////tab////tab//sParams=sParams+\\quot\\~~pipe~~Transpose=true~~pipe~~TransposeID=Sales_Structure_Field_ID\\quot\\//crlf////tab////tab////tab//driverOpen(POS_Generic_Daily_Sales\\comma\\d\\comma\\READ\\comma\\false\\comma\\sParams)//crlf////tab////tab////tab//arField=driverGetFieldIDs(d\\comma\\0)//crlf////crlf////tab////tab////tab//cField=getElementCount(arField)//crlf////tab////tab////tab//sOutput=\\quot\\\\quot\\//crlf////crlf////tab////tab////tab//cRecord=driverGetRecordCount(d\\comma\\true)//crlf////tab////tab////tab//nRecord=0//crlf////tab////tab////tab//while(nRecord<cRecord)//crlf////tab////tab////tab////tab//sRecordOutput=\\quot\\\\quot\\//crlf////tab////tab////tab////tab//nField=0//crlf////tab////tab////tab////tab//while(nField<cField)//crlf////tab////tab////tab////tab////tab//sFieldID=getElement(arField\\comma\\nField)//crlf////tab////tab////tab////tab////tab//sValue=driverGetFieldAbsolute(d\\comma\\sFieldID\\comma\\nRecord)//crlf////tab////tab////tab////tab////tab//sRecordOutput=addElement(sRecordOutput\\comma\\sValue)//crlf////tab////tab////tab////tab////tab//nField++//crlf////tab////tab////tab////tab//endwhile//crlf////tab////tab////tab////tab//sOutput=sOutput+sRecordOutput+char(10)//crlf////tab////tab////tab////tab//nRecord++//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab//driverClose(d)//crlf////crlf////tab////tab////tab//sTable=htmlTable(sOutput\\comma\\char(10)\\comma\\\\quot\\\\comma\\\\quot\\\\comma\\arField)//crlf////tab////tab////tab//fileWriteContent(getToken(\\quot\\temporary_files\\quot\\)+\\quot\\daily_sales_after_transpose.html\\quot\\\\comma\\sTable)//crlf////tab////tab////tab//return(sTable)//crlf////tab////tab//\\quot\\>//crlf////tab//</div>//crlf////crlf////tab//<h1>Daily Sales After Transposition</h1>//crlf////tab//<div style=\\quot\\width:100\\percent\\;max-width:1200px;height:250px;overflow:auto;border:1px solid black\\quot\\>//crlf////tab////tab//<!include type:script; commands:\\quot\\//crlf////tab////tab////tab//sParams=\\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\//crlf////tab////tab////tab//sParams=sParams+\\quot\\~~pipe~~Transpose=true~~pipe~~TransposeID=Sales_Structure_Field_ID~~pipe~~TransposeName=Field_Description~~pipe~~TransposeFields=Amount\\quot\\//crlf////tab////tab////tab//driverOpen(POS_Generic_Daily_Sales\\comma\\d\\comma\\READ\\comma\\false\\comma\\sParams)//crlf////tab////tab////tab//arField=driverGetFieldIDs(d\\comma\\0)//crlf////crlf////tab////tab////tab//cField=getElementCount(arField)//crlf////crlf////tab////tab////tab//arDescription=driverGetFieldIDs(d\\comma\\0\\comma\\false\\comma\\char(0x2c)\\comma\\true)//crlf////tab////tab////tab//sOutput=arDescription+char(10)//crlf////crlf////tab////tab////tab//cRecord=driverGetRecordCount(d\\comma\\true)//crlf////tab////tab////tab//nRecord=0//crlf////tab////tab////tab//while(nRecord<cRecord)//crlf////tab////tab////tab////tab//sRecordOutput=\\quot\\\\quot\\//crlf////tab////tab////tab////tab//nField=0//crlf////tab////tab////tab////tab//while(nField<cField)//crlf////tab////tab////tab////tab////tab//sFieldID=getElement(arField\\comma\\nField)//crlf////tab////tab////tab////tab////tab//sValue=driverGetFieldAbsolute(d\\comma\\sFieldID\\comma\\nRecord)//crlf////tab////tab////tab////tab////tab//sRecordOutput=addElement(sRecordOutput\\comma\\sValue)//crlf////tab////tab////tab////tab////tab//nField++//crlf////tab////tab////tab////tab//endwhile//crlf////tab////tab////tab////tab//sOutput=sOutput+sRecordOutput+char(10)//crlf////tab////tab////tab////tab//nRecord++//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab//driverClose(d)//crlf////crlf////tab////tab////tab//sTable=htmlTable(sOutput\\comma\\char(10)\\comma\\\\quot\\\\comma\\\\quot\\\\comma\\arField)//crlf////tab////tab////tab//fileWriteContent(getToken(\\quot\\temporary_files\\quot\\)+\\quot\\daily_sales_after_transpose.html\\quot\\\\comma\\sTable)//crlf////tab////tab////tab//return(sTable)//crlf////tab////tab//\\quot\\>//crlf////tab//</div>//crlf////crlf//</conditional>
^
ID=424476|X=183|Y=43|W=714|H=690|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=249346|AttachLeft=|AlignLeft=249346|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=50841|X=183|Y=43|W=714|H=690|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=249346|AttachLeft=|AlignLeft=249346|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=894522|X=183|Y=43|W=714|H=690|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=249346|AttachLeft=|AlignLeft=249346|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=584998|X=183|Y=43|W=714|H=690|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=249346|AttachLeft=|AlignLeft=249346|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=172031|X=183|Y=43|W=714|H=690|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=249346|AttachLeft=|AlignLeft=249346|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
^
ID=355722|X=183|Y=43|W=714|H=690|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=249346|AttachLeft=|AlignLeft=249346|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
</widget><widget name="View Content" group="" category="" description="Contains items used as content in views." type="Container" Mobile="false" Processing=0 metadata="" IncludeInViewer="false" PublicName="View Content" modified="04-06-2025 20:11:52" modifiedby="Thnikpad3" TaskEnabled=false IsAgent=false ContainsAgentSensors=false ContainsAgentActions=false TaskInitialStartTime=04-21-2024 02:18:35:000 TaskIntervalType=0 TaskLastExecuted= TaskCatchUpMissedTasks=false TaskYearsBetweenExecution=0 TaskMonthsBetweenExecution=0 TaskDaysBetweenExecution=0 TaskHoursBetweenExecution=0 TaskMinutesBetweenExecution=0 TaskSecondsBetweenExecution=0 TaskExecuteSun=true TaskExecuteMon=true TaskExecuteTue=true TaskExecuteWed=true TaskExecuteThu=true TaskExecuteFri=true TaskExecuteSat=true TaskConditional_Expression="" TaskConditional_Expression_Description="" TaskState_Function="" TaskState_Expression_Description="" TaskWidgetParams="" TaskWindowForExecution=0>
Preferences|toolboxx=23|toolboxy=303|aspectfuncx=188|aspectfuncy=100|aspectfuncw=842|aspectfunch=800|aspectfuncLock=true|aspectfuncVisible=false|PublishFtpFilename=View Content.html|PublishToFtpSite=false|PublishFTPAccount=0|PublishFtpDirectory=/|PublishFtpPublicDirectory=/|PublishCopyFile=false|PublishCopyFilename=|PublishWysiwig=false|PublishIncludeAspectScript=false|PublishIncludeAspectStyleshet=false|PublishAsText=false|^
ID=top_bar|X=0|Y=0|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=false|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=left_bar|X=0|Y=15|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=false|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=top_bar|AttachLeft=|AlignLeft=top_bar|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=code|X=1500|Y=0|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<table class='tabdialog'>//crlf////tab//<tr>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'111111')\\quot\\>Javascript</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'AspectScript')\\quot\\>AspectScript</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'sensor_list')\\quot\\>Sensors</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'action_list')\\quot\\>Actions</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'debug_console')\\quot\\>Console</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'785095')\\quot\\>Notes</span></td>//crlf////tab//</tr>//crlf//</table>^
ID=111111|X=1500|Y=26|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Javascript|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=AspectScript|X=1500|Y=26|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Aspect_Script|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=sensor_list|X=1500|Y=26|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Aspect_Script|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>//crlf////tab//{@if(\\quot\\__SensorExec__\\quot\\=\\quot\\true\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf////tab//{@if(getSystemValue(\\quot\\DevelopmentMode\\quot\\)\\comma\\fileModified(getToken(\\quot\\homedir\\quot\\)+\\quot\\cache\WidgetEdit_VWaUGu88BMN0hDYWzZj57VpG_View Content.html\\quot\\)\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//<conditional expression:(\\quot\\__sensor_list__\\quot\\=\\quot\\true\\quot\\)>//crlf//</conditional>//crlf////crlf//^
ID=action_list|X=1500|Y=26|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Aspect_Script|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>//crlf////tab//{@if(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf////tab//{@if(getSystemValue(\\quot\\DevelopmentMode\\quot\\)\\comma\\fileModified(getToken(\\quot\\homedir\\quot\\)+\\quot\\cache\WidgetEdit_VWaUGu88BMN0hDYWzZj57VpG_View Content.html\\quot\\)\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//<conditional expression:(\\quot\\__action_list__\\quot\\=\\quot\\true\\quot\\)>//crlf//</conditional>//crlf////crlf//^
ID=debug_console|X=1500|Y=26|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=debug_console|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=785095|X=1500|Y=26|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=652102|X=151|Y=15|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=top_bar|AttachLeft=left_bar|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<select onChange=\\quot\\showTab(this)\\quot\\>//crlf////tab//<option value='67678'>Embedded view container for daily sales</option>//crlf////tab//<option value='179312'>Sales by Department (6/17 Needs some work)</option>//crlf////tab//<option value='69726'>Sales by Category</option>//crlf////tab//<option value='454272'>Daily Sales Driver</option>//crlf////tab//<option value='574767'>Cash Reconcile</option>//crlf////tab//<option value='802751'>Cash Reconcile - Include Sales Driver Fields</option>//crlf////tab//<option value='801180'>Cash Reconcile - Include User-Defined Fields</option>//crlf////tab//<option value='781048'>User Defined Sales Driver</option>//crlf////tab//<option value='279647'>Labor</option>//crlf////tab//<option value='522904'>Section Header</option>//crlf////tab//<option value='53835'>Placeholder9</option>//crlf////tab//<option value='484114'>Placeholder10</option>//crlf////tab//<option value='770066'>Placeholder11</option>//crlf////tab//<option value='420245'>Placeholder12</option>//crlf////tab//<option value='377702'>Placeholder13</option>//crlf////tab//<option value='634654'>Placeholder14</option>//crlf////tab//<option value='247300'>Placeholder15</option>//crlf//</select>//crlf//^
ID=454272|X=151|Y=33|W=909|H=678|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=652102|AttachLeft=|AlignLeft=652102|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>//crlf////tab//__StoreID__//crlf////tab//__Date__//crlf////tab//__Record_Type__//crlf////tab//__TableControls__//crlf////tab//__TableHeader__//crlf////tab//{@if(not(fileExists(getStoreDir(\\quot\\__StoreID__\\quot\\)+\\quot\\sales.\\quot\\+\\quot\\__date__\\quot\\+\\quot\\.bin\\quot\\))\\comma\\now()\\comma\\gfs(getStoreDir(\\quot\\__StoreID__\\quot\\)+\\quot\\sales.__Date__.bin\\quot\\))}//crlf////tab//{@gfs(getStoreDir(\\quot\\__StoreID__\\quot\\)+\\quot\\ckd.\\quot\\+\\quot\\__date__\\quot\\+\\quot\\.bin\\quot\\)}//crlf////tab//{@gfs(getStoreDir(\\quot\\__StoreID__\\quot\\)+\\quot\\customsalesfields.bin\\quot\\)}//crlf////crlf////tab////for testing//crlf////tab//{@if(formatDate(now()\\comma\\\\quot\\MMddyyyy\\quot\\)=\\quot\\01292017\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//[!------------------------------------------------------------------------//crlf//For testing//crlf//--------------------------------------------------------------------------]//crlf//<_include type:expression; expression:htmlConstant(\\quot\\date\\quot\\\\comma\\\\quot\\__date__\\quot\\\\comma\\\\quot\\07-04-2016\\quot\\)>//crlf//<_include type:expression; expression:htmlConstant(\\quot\\StoreID\\quot\\\\comma\\\\quot\\__StoreID__\\quot\\\\comma\\\\quot\\89hd4FFKUJK49S5RoS1q641U\\quot\\)>//crlf//<_include type:expression; expression:htmlConstant(\\quot\\Display\\quot\\\\comma\\\\quot\\__Display__\\quot\\\\comma\\\\quot\\Daily Sales\\quot\\)>//crlf//<_include type:expression; expression:htmlConstant(\\quot\\TableControls\\quot\\\\comma\\\\quot\\__TableControls__\\quot\\\\comma\\\\quot\\true\\quot\\)>//crlf////crlf//[!------------------------------------------------------------------------//crlf//6/17 Replaced TableHeader with TableHeader1 to ignore the value passed from the default//crlf//controllables setup.  The default disables the table header by passing TableHeader=false.//crlf//If table headers are to be suppressed\\comma\\ use TableHeader1//crlf//--------------------------------------------------------------------------]//crlf//<_include type:expression; expression:htmlConstant(\\quot\\TableHeader1\\quot\\\\comma\\\\quot\\__TableHeader1__\\quot\\\\comma\\\\quot\\true\\quot\\)>//crlf////crlf//<include type:expression; expression:htmlConstant(\\quot\\StoreName\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\if(defined(\\quot\\__StoreID__\\quot\\)\\comma\\lookup(Aspect_BackOffice_Store_Name_By_ID\\comma\\\\quot\\__StoreID__\\quot\\)\\comma\\\\quot\\\\quot\\))>//crlf//<include type:expression; expression:htmlConstant(\\quot\\RecordTypeName\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\if(defined(\\quot\\__Record_Type__\\quot\\)\\comma\\lookup(POS_Generic_Check_Detail_Record_Types\\comma\\\\quot\\__Record_Type__\\quot\\)\\comma\\\\quot\\\\quot\\))>//crlf////crlf//<conditional expression:(undefined(\\quot\\__storeID__\\quot\\)) or (\\quot\\__storeID__\\quot\\=\\quot\\0\\quot\\)>//crlf////tab//Error: Missing StoreID<br>//crlf//</conditional>//crlf////crlf//<conditional expression:(undefined(\\quot\\__Date__\\quot\\))>//crlf////tab//Error: Missing Date<br>//crlf//</conditional>//crlf////crlf//<conditional expression:(defined(\\quot\\__StoreID__\\quot\\)) and (not(\\quot\\__StoreID__\\quot\\=\\quot\\0\\quot\\)) and (defined(\\quot\\__Date__\\quot\\))>//crlf////crlf////tab//<div style=\\quot\\width:100\\percent\\;max-width:{Aspect_BackOffice_Content_Multiple-Sales}px\\quot\\>//crlf////tab////tab//<conditional expression:(false) and (defined(\\quot\\__Record_Type__\\quot\\))>//crlf////tab////tab////tab//<h1>__RecordTypeName__</h1>//crlf////tab////tab//</conditional>//crlf////crlf////tab////tab//<conditional expression:false>//crlf////tab////tab////tab//<h2>Sales __StoreName__ __Date__</h2>//crlf////tab////tab//</conditional>//crlf////crlf////tab////tab//<!include type:driver;//crlf////tab////tab////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab////tab////tab//title: \\quot\\\\quot\\;//crlf////tab////tab////tab//HashID: \\quot\\\\quot\\;//crlf////tab////tab////tab//driver: \\quot\\POS_GENERIC_DAILY_SALES\\quot\\;//crlf////tab////tab////tab//name: \\quot\\\\quot\\;//crlf////tab////tab////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab////tab////tab//dispose: \\quot\\false\\quot\\;//crlf////tab////tab////tab//state: \\quot\\\\quot\\;//crlf////tab////tab////tab//params: \\quot\\keyexpression=ID~~pipe~~CacheTtl=0~~pipe~~Metadata=POS_GENERIC_DAILY_SALES~~pipe~~Date=__Date__~~pipe~~StoreID=__StoreID__\\quot\\;//crlf////tab////tab////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab////tab////tab//display: \\quot\\//crlf////tab////tab////tab////tab//<conditional expression:defined(\\quot\\__display__\\quot\\)>//crlf////tab////tab////tab////tab//__Display__//crlf////tab////tab////tab////tab//</conditional>//crlf////tab////tab////tab//\\quot\\;//crlf////tab////tab////tab//fields: \\quot\\\\quot\\;//crlf////tab////tab////tab//sort: \\quot\\Field_Description_Short\\quot\\;//crlf////tab////tab////tab//filter: \\quot\\true\\quot\\;//crlf////tab////tab////tab//basefilter:\\quot\\//crlf////tab////tab////tab////tab//(true)//crlf////tab////tab////tab////tab//<conditional expression:defined(\\quot\\__record_type__\\quot\\)>//crlf////tab////tab////tab////tab////tab//and (isSubset(Record_Type\\comma\\'__Record_Type__'))//crlf////tab////tab////tab////tab//</conditional>//crlf////tab////tab////tab////tab//<conditional expression:defined(\\quot\\__tags__\\quot\\)>//crlf////tab////tab////tab////tab////tab//and (keywordMatch('__tags__'\\comma\\tags))//crlf////tab////tab////tab////tab//</conditional>//crlf////tab////tab////tab////tab//<conditional expression:defined(\\quot\\__filter__\\quot\\)>//crlf////tab////tab////tab////tab////tab//and (__filter__)//crlf////tab////tab////tab////tab//</conditional>//crlf////tab////tab////tab//\\quot\\;//crlf////tab////tab////tab//<conditional expression:defined(\\quot\\__InspectMenu__\\quot\\)>//crlf////tab////tab////tab////tab//inspectmenu: \\quot\\__InspectMenu__\\quot\\;//crlf////tab////tab////tab//</conditional>//crlf////tab////tab////tab//class: \\quot\\basic1\\quot\\;//crlf////tab////tab////tab//maxrecords: \\quot\\-1\\quot\\;//crlf////tab////tab////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab////tab////tab//style: \\quot\\width:auto\\quot\\;//crlf////tab////tab////tab//canSelect: \\quot\\false\\quot\\;//crlf////tab////tab////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab////tab////tab//canEdit: \\quot\\false\\quot\\;//crlf////tab////tab////tab//canAdd: \\quot\\false\\quot\\;//crlf////tab////tab////tab//canDelete: \\quot\\false\\quot\\;//crlf////tab////tab////tab//EmbedValues: \\quot\\\\quot\\;//crlf////tab////tab////tab//EditDialogID: \\quot\\POS_GENERIC_DAILY_SALESDialog\\quot\\;//crlf////tab////tab////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab////tab////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab////tab////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab////tab////tab//ExternalFilters: \\quot\\\\quot\\;//crlf////tab////tab////tab//TableControls: \\quot\\//crlf////tab////tab////tab////tab//<conditional expression:defined(\\quot\\__TableControls__\\quot\\)>//crlf////tab////tab////tab////tab////tab//__TableControls__//crlf////tab////tab////tab////tab//</conditional>//crlf////tab////tab////tab//\\quot\\;//crlf////tab////tab////tab//TableHeader: \\quot\\//crlf////tab////tab////tab////tab//<conditional expression:defined(\\quot\\__TableHeader1__\\quot\\)>//crlf////tab////tab////tab////tab////tab//__TableHeader1__//crlf////tab////tab////tab////tab//</conditional>//crlf////tab////tab////tab//\\quot\\;//crlf////tab////tab////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab////tab////tab//SelectDisplay: \\quot\\true\\quot\\;//crlf////tab////tab////tab//EditDisplay: \\quot\\true\\quot\\;//crlf////tab////tab////tab//Menu: \\quot\\\\quot\\;//crlf////tab////tab////tab//Messages: \\quot\\true\\quot\\;//crlf////tab////tab////tab//ChartType: \\quot\\\\quot\\;//crlf////tab////tab////tab//ChartWidth: \\quot\\640\\quot\\;//crlf////tab////tab////tab//ChartHeight: \\quot\\480\\quot\\;//crlf////tab////tab////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab////tab////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab////tab////tab//ChartStyle: \\quot\\display:none\\quot\\;//crlf////tab////tab////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab////tab////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab////tab////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab////tab////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab////tab////tab//Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab////tab////tab//debug: \\quot\\false\\quot\\;//crlf////tab////tab//>//crlf////tab//</div>//crlf//</conditional>//crlf//^
ID=67678|X=151|Y=33|W=820|H=679|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=652102|AttachLeft=|AlignLeft=652102|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<conditional expression:false>//crlf//================================================================//crlf//This item is used to load the user-defined daily sales reconciliation view.//crlf//It is used by the back-office Sales Reconciliation view.//crlf////crlf//It would be possible to set the user-defined view so that it could be included //crlf//in the back-office view as an embedded viwe\\comma\\ but that would make it too easy //crlf//for a user to include the user-defined view as an embedded view in itself\\comma\\ leading //crlf//to a circular reference.//crlf////crlf//There is a big benefit to embedding the widget here with an include tag - a state//crlf//element can be defined to cache the document.  Each of the views included in the //crlf//daily sales view container have a state tag\\comma\\ but they still must all be processed//crlf//to determine the state of each one.  A single state tag here gets the job cone//crlf//all at once and is much faster.  The state tag here must include the entire state//crlf//to work properly.  For example\\comma\\ if daily labor is embedded in the daily sales view//crlf//then the state of the daily labor file would have to be considered here too (and //crlf//maybe job code names\\comma\\ employee names\\comma\\ etc.)  Even with sales\\comma\\ it's necessary to //crlf//check things like tender names\\comma\\ comp names\\comma\\ user-defined calculations\\comma\\ etc.//crlf//================================================================//crlf//</conditional>//crlf//<state>//crlf////tab//__StoreID__//crlf////tab//__Date__//crlf////crlf////tab////look for changes in any store files for the given date//crlf////tab//{@if((defined(\\quot\\__StoreID__\\quot\\)) and (defined(\\quot\\__date__\\quot\\))\\comma\\gfs(getStoreDir(\\quot\\__StoreID__\\quot\\)+\\quot\\*.__Date__\\quot\\)\\comma\\\\quot\\\\quot\\)}//crlf////crlf////tab////look for changes in the user interface - like changes to the embedded views//crlf////tab//{@gfs(getToken(\\quot\\PackageURL_Local\\quot\\)+\\quot\\supporting_files/ui*.bin\\quot\\)}//crlf////crlf////tab////force an update during development//crlf////tab//{@if(formatDate(now()\\comma\\\\quot\\MMddyyyy\\quot\\)=\\quot\\11022018\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//<conditional expression:(defined(\\quot\\__StoreID__\\quot\\)) and (defined(\\quot\\__Date__\\quot\\))>//crlf////tab//[!------------------------------------------------------------------------//crlf////tab//This embeds the user-defined view located in the local package.  The ID of //crlf////tab//the sales reconciliation in the local package is _lgWbT21.  That view uses //crlf////tab//the standard \\quot\\Process_Embedded_Views\\quot\\ item in the \\quot\\Embedded View Container\\quot\\//crlf////tab//widget to process the view.//crlf////tab//--------------------------------------------------------------------------]//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\StoreName\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\getStoreName(\\quot\\__StoreID__\\quot\\))>//crlf////tab//<!include type:view; viewid:\\quot\\_lgWbT21\\quot\\; Source:\\quot\\\\quot\\; params:\\quot\\StoreID=__StoreID__//amp//Date=__Date__//amp//StoreName=__StoreName__\\quot\\;> //crlf//</conditional>^
ID=781048|X=151|Y=33|W=1063|H=684|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=652102|AttachLeft=|AlignLeft=652102|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=[!------------------------------------------------------------------------//crlf//This item is used to create a content box containing user-defined fields that//crlf//can be embedded in the daily sales report.//crlf////crlf//A transposed daily sales driver is used.  The table contains a single record//crlf//for the store and date selected.  The table is hidden and the edit dialog is//crlf//displayed.  The dialog is created on the fly by reading the field ID's from //crlf//the user-defined structure.//crlf////crlf//Params://crlf////tab//StoreID - Store ID//crlf////tab//Date - Date (MM-dd-yyyy)//crlf////tab//Tags - Optional.  Specifies one or more tags used to filter the list of //crlf////tab////tab//user defined fields.  Only fields associated with the given tag(s) will//crlf////tab////tab//be included.  This is useful to break user defined fields into two or//crlf////tab////tab//more content boxes.  For example\\comma\\ one might include numbers and another//crlf////tab////tab//might include a textarea.//crlf////tab//Title - Optional. A title displayed at the top of the content//crlf////tab//MaxWidth - Optional.  Max width for the embedded content.  Can be absolute//crlf////tab////tab//or a percentage.  The default is 100\\percent\\.//crlf//--------------------------------------------------------------------------]//crlf////crlf//[!------------------------------------------------------------------------//crlf//Constants for testing//crlf//--------------------------------------------------------------------------]//crlf//<include type:expression; expression:htmlConstant(\\quot\\date\\quot\\\\comma\\\\quot\\__date__\\quot\\\\comma\\\\quot\\04-16-2016\\quot\\)>//crlf//<include type:expression; expression:htmlConstant(\\quot\\StoreID\\quot\\\\comma\\\\quot\\__StoreID__\\quot\\\\comma\\\\quot\\KZX2VBNGExCTHrLmixKxY8eJ\\quot\\)>//crlf////crlf//[!------------------------------------------------------------------------//crlf//Set constants//crlf//--------------------------------------------------------------------------]//crlf//<include type:expression; expression:htmlConstant(\\quot\\MaxWidth\\quot\\\\comma\\\\quot\\__MaxWidth__\\quot\\\\comma\\\\quot\\100\\percent\\\\quot\\)>//crlf////crlf//<conditional expression:(defined(\\quot\\__StoreID__\\quot\\)) and (defined(\\quot\\__Date__\\quot\\))>//crlf////crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\salt\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\lowercase(getSalt(4)))>//crlf////crlf////tab//<!-- Dialog used to edit a record -->//crlf////tab//<div ID=\\quot\\POS_GENERIC_DAILY_SALES__salt__\\quot\\ style=\\quot\\height:auto; width:100\\percent\\;max-width:__MaxWidth__;display:block; border:none\\quot\\>//crlf////tab////tab//<div style=\\quot\\padding:5px;width:100\\percent\\\\quot\\>//crlf////tab////tab////tab//<!-- set this image to visible to include a close icon when the dialog header is disabled -->//crlf////tab////tab////tab//<div class=\\quot\\EditDialogCloseIcon\\quot\\ style=\\quot\\display:none\\quot\\ onclick=\\quot\\closeTableEditDialog(this)\\quot\\></div>//crlf////crlf////tab////tab////tab//[!------------------------------------------------------------------------//crlf////tab////tab////tab//Title//crlf////tab////tab////tab//--------------------------------------------------------------------------]//crlf////tab////tab////tab//<conditional expression:defined(\\quot\\__Title__\\quot\\)>//crlf////tab////tab////tab////tab//<h2>__Title__</h2>//crlf////tab////tab////tab//</conditional>//crlf////crlf////tab////tab////tab//[!------------------------------------------------------------------------//crlf////tab////tab////tab//This is the table used to display fields in the dialog//crlf////tab////tab////tab//--------------------------------------------------------------------------]//crlf////tab////tab////tab//<table style=\\quot\\width:auto\\quot\\>//crlf////tab////tab////tab////tab//[!------------------------------------------------------------------------//crlf////tab////tab////tab////tab//The contents of the table (tr\\comma\\ td) are created by this script.  The fields //crlf////tab////tab////tab////tab//come from the user-defined structure.  The list of fields can be filtered //crlf////tab////tab////tab////tab//to include only those fields matching the tags passed to this widget.  //crlf////tab////tab////tab////tab//--------------------------------------------------------------------------]//crlf////tab////tab////tab////tab//<!!include type:script; commands:\\quot\\//crlf////tab////tab////tab////tab////tab////abort if any parameters missing//crlf////tab////tab////tab////tab////tab//sConfirmParams=\\quot\\__StoreID__\\comma\\__Date__\\quot\\//crlf////tab////tab////tab////tab////tab//if(pos(\\quot\\__\\quot\\\\comma\\sConfirmParams)>=0)//crlf////tab////tab////tab////tab////tab////tab//return(\\quot\\Error: Invalid parameters: \\quot\\+sConfirmParams//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab//sResult=\\quot\\\\quot\\//crlf////crlf////tab////tab////tab////tab////tab////get the width multiple//crlf////tab////tab////tab////tab////tab//iWidthMultiple=value(getToken(\\quot\\Aspect_BackOffice_Content_Multiple-Sales\\quot\\))//crlf////crlf////tab////tab////tab////tab////tab////set width for textarea.  Text areas will be at least two multiples and a//crlf////tab////tab////tab////tab////tab////max of three.//crlf////tab////tab////tab////tab////tab//iTextAreaMinWidth=(iWidthMultiple*2)+\\quot\\px\\quot\\//crlf////tab////tab////tab////tab////tab//iTextAreaMaxWidth=(iWidthMultiple*3)+\\quot\\px\\quot\\//crlf////crlf////tab////tab////tab////tab////tab////open the user-defined daily sales structure//crlf////tab////tab////tab////tab////tab//driverOpen(POS_Generic_User_Defined_Daily_Sales_Struct\\comma\\d\\comma\\read\\comma\\false\\comma\\\\quot\\StoreID=__StoreID__\\quot\\)//crlf////tab////tab////crlf////tab////tab////tab////tab////tab////sort and filter the driver//crlf////tab////tab////tab////tab////tab//driverSetSort(d\\comma\\\\quot\\sort_order\\quot\\\\comma\\false)//crlf////tab////tab////tab////tab////tab//sFilter=if((defined(\\quot\\__tags__\\quot\\)) and (len(\\quot\\__tags__\\quot\\)>0)\\comma\\\\quot\\isSubset(\\quot\\+quote(\\quot\\__tags__\\quot\\)+\\quot\\\\comma\\Tags)\\quot\\\\comma\\\\quot\\true\\quot\\)//crlf////tab////tab////tab////tab////tab//appendToLog(\\quot\\sFilter=\\quot\\+sFilter)//crlf////tab////tab////tab////tab////tab//driverSetFilter(d\\comma\\sFilter\\comma\\true)//crlf////crlf////tab////tab////tab////tab////tab//c=driverGetRecordCount(d)//crlf////tab////tab////tab////tab////tab//n=0//crlf////tab////tab////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab////tab////tab//sFieldID=driverGetField(d\\comma\\\\quot\\FieldID\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab////tab//sDescription=driverGetField(d\\comma\\\\quot\\Description\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab////tab//iType=driverGetField(d\\comma\\\\quot\\FieldType\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab////tab//iTextLines=driverGetField(d\\comma\\\\quot\\Number_Of_Text_Lines\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab////tab//bIsCalculated=driverGetField(d\\comma\\\\quot\\IsCalculated\\quot\\\\comma\\n)//crlf////crlf////tab////tab////tab////tab////tab////tab//if(iType<>0)//crlf////tab////tab////tab////tab////tab////tab////tab////open the row //crlf////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+quote(\\quot\\tr\\quot\\\\comma\\char(0x3C))//crlf////crlf////tab////tab////tab////tab////tab////tab////tab//if((iType=3) and (iTextLines>0))//crlf////tab////tab////tab////tab////tab////tab////tab////tab////text area with 1 or more lines.  Span two columns and make a //crlf////tab////tab////tab////tab////tab////tab////tab////tab////text area with the given number of rows//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+quote(\\quot\\td colspan='2'\\quot\\\\comma\\char(0x3C))//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+sDescription+quote(\\quot\\br\\quot\\\\comma\\char(0x3C))//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+quote(\\quot\\span\\quot\\\\comma\\char(0x3C))//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+char(0x3C)+\\quot\\textarea name=\\quot\\+quote(sFieldID)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+\\quot\\ onChange=\\quot\\+quote(\\quot\\submitDialogCell(this)\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+\\quot\\ rows=\\quot\\+iTextLines+\\quot\\ style='width:100\\percent\\\\quot\\+char(0x3B)+\\quot\\min-width:\\quot\\+iTextAreaMinWidth+char(0x3B)+\\quot\\max-width:\\quot\\+iTextAreaMaxWidth+char(0x27)+char(0x3E)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+quote(\\quot\\/textarea\\quot\\\\comma\\char(0x3C))//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+quote(\\quot\\/span\\quot\\\\comma\\char(0x3C))//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+quote(\\quot\\/td\\quot\\\\comma\\char(0x3C))//crlf////tab////tab////tab////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////tab////tab////tab////add a td tag for the description//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+quote(\\quot\\td\\quot\\\\comma\\char(0x3C))//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+sDescription+char(13)+char(10)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+quote(\\quot\\/td\\quot\\\\comma\\char(0x3C))//crlf////crlf////tab////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+quote(\\quot\\td\\quot\\\\comma\\char(0x3C))//crlf////tab////tab////tab////tab////tab////tab////tab////tab//if(bIsCalculated)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab////calculated field\\comma\\ so use a span tag//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+char(0x3C)+\\quot\\span name=\\quot\\+quote(sFieldID)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//if(iType=9) //crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+\\quot\\ class='number'\\quot\\//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//elseif(iType=7)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab////tab////long//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+\\quot\\ class='int'\\quot\\//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//elseif(iType=21)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab////tab////longdate//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+\\quot\\ class='datetime'\\quot\\//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+char(0x3E)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+quote(\\quot\\/span\\quot\\\\comma\\char(0x3C))//crlf////tab////tab////tab////tab////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab////user-input field\\comma\\ so use an input tag//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+char(0x3C)+\\quot\\input \\quot\\//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+\\quot\\ type='text'\\quot\\//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+\\quot\\ onChange=\\quot\\+quote(\\quot\\submitDialogCell(this)\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+\\quot\\ name=\\quot\\+quote(sFieldID)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//if(iType=3)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab////tab////char//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+\\quot\\ class='short'\\quot\\//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//elseif(iType=9)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab////tab////double//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+\\quot\\ class='number'\\quot\\//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//elseif(iType=7)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab////tab////long//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+\\quot\\ class='number'\\quot\\//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//elseif(iType=21)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab////tab////longdate//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+\\quot\\ class='datetime'\\quot\\//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+char(0x3E)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+quote(\\quot\\/input\\quot\\\\comma\\char(0x3C))//crlf////tab////tab////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+quote(\\quot\\/td\\quot\\\\comma\\char(0x3C))//crlf////tab////tab////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////tab////tab////close the row//crlf////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+quote(\\quot\\/tr\\quot\\\\comma\\char(0x3C))+char(13)+char(10)//crlf////tab////tab////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\Error: UNdefined field type for field: \\quot\\+sDescription)//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////crlf////tab////tab////tab////tab////tab////tab//n++//crlf////tab////tab////tab////tab////tab//endwhile//crlf////appendToLog(\\quot\\sResult=\\quot\\+sResult)//tab////tab////tab////tab////tab////crlf////tab////tab////tab////tab////tab//return(sResult)//crlf////tab////tab////tab////tab//\\quot\\>//crlf////tab////tab////tab//</table>//crlf////tab////tab//</div>//crlf////tab//</div>//crlf////crlf////tab//<!!include type:driver;//crlf////tab////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab////tab//title: \\quot\\\\quot\\;//crlf////tab////tab//ID: \\quot\\__salt__\\quot\\;//crlf////tab////tab//HashID: \\quot\\\\quot\\;//crlf////tab////tab//driver: \\quot\\POS_GENERIC_DAILY_SALES\\quot\\;//crlf////tab////tab//name: \\quot\\\\quot\\;//crlf////tab////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab////tab//dispose: \\quot\\false\\quot\\;//crlf////tab////tab//state: \\quot\\\\quot\\;//crlf////tab////tab//params: \\quot\\keyexpression=DateNumber~~pipe~~CacheTtl=0~~pipe~~Metadata=POS_GENERIC_DAILY_SALES_Transposed~~pipe~~Date=__Date__~~pipe~~StoreID=__StoreID__~~pipe~~Transpose=true~~pipe~~TransposeID=Sales_Structure_Field_ID~~pipe~~TransposeFields=Amount\\quot\\;//crlf////tab////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab////tab//display: \\quot\\\\quot\\;//crlf////tab////tab//fields: \\quot\\\\quot\\;//crlf////tab////tab//sort: \\quot\\ID\\quot\\;//crlf////tab////tab//filter: \\quot\\true\\quot\\;//crlf////tab////tab//class: \\quot\\basic1\\quot\\;//crlf////tab////tab//maxrecords: \\quot\\-1\\quot\\;//crlf////tab////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab////tab//style: \\quot\\display:none;position:relative;top:100px\\quot\\;//crlf////tab////tab//canSelect: \\quot\\false\\quot\\;//crlf////tab////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab////tab//canEdit: \\quot\\true\\quot\\;//crlf////tab////tab//canAdd: \\quot\\false\\quot\\;//crlf////tab////tab//canDelete: \\quot\\false\\quot\\;//crlf////tab////tab//EmbedValues: \\quot\\<!include type:expression; expression:getCollection(POS_Generic_User_Defined_Sales_Field_Names_by_FieldID\\comma\\\\quot\\\\quot\\\\comma\\\\quot\\StoreID=__StoreID__\\quot\\\\comma\\\\quot\\\\quot\\\\comma\\char(0x2C)\\comma\\\\quot\\key\\quot\\)>\\quot\\;//crlf////tab////tab//EditDialogID: \\quot\\POS_GENERIC_DAILY_SALES__salt__\\quot\\;//crlf////tab////tab//DialogOnly: \\quot\\true\\quot\\;//crlf////tab////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab////tab//ExternalFilters: \\quot\\\\quot\\;//crlf////tab////tab//TableControls: \\quot\\true\\quot\\;//crlf////tab////tab//TableHeader: \\quot\\true\\quot\\;//crlf////tab////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab////tab//SelectDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//EditDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//Menu: \\quot\\\\quot\\;//crlf////tab////tab//Messages: \\quot\\true\\quot\\;//crlf////tab////tab//ChartType: \\quot\\\\quot\\;//crlf////tab////tab//ChartWidth: \\quot\\640\\quot\\;//crlf////tab////tab//ChartHeight: \\quot\\480\\quot\\;//crlf////tab////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab////tab//ChartStyle: \\quot\\display:none\\quot\\;//crlf////tab////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab////tab//Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab////tab//debug: \\quot\\false\\quot\\;//crlf////tab//>//crlf////crlf////crlf//</conditional>^
ID=522904|X=151|Y=33|W=902|H=609|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=652102|AttachLeft=|AlignLeft=652102|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=[!------------------------------------------------------------------------//crlf//Set constant for width and title//crlf//--------------------------------------------------------------------------]//crlf//<include type:script; commands:\\quot\\//crlf////tab//w=value(getToken(\\quot\\Aspect_BackOffice_Content_Multiple-Sales\\quot\\))//crlf////tab//if(defined(\\quot\\__Columns__\\quot\\))//crlf////tab////tab//MaxW=(w*value(\\quot\\__Columns__\\quot\\))//crlf////tab//else//crlf////tab////tab//MaxW=(w*5)//crlf////tab//endif//crlf////crlf////tab//if((defined(\\quot\\__Title__\\quot\\)) and (len(\\quot\\__Title__\\quot\\)>0))//crlf////tab////tab//sTitle=\\quot\\__Title__\\quot\\//crlf////tab//else//crlf////tab////tab//sTitle=getStoreName(\\quot\\__StoreID__\\quot\\)+\\quot\\ __Date__\\quot\\//crlf////tab//endif//crlf////crlf////tab//s=htmlConstant(\\quot\\MaxWidth\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\MaxW+\\quot\\px\\quot\\)//crlf////tab//s=s+htmlConstant(\\quot\\FinalTitle\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\sTitle)//crlf////tab//return(s)//tab////crlf//\\quot\\>//crlf////crlf//<div style=\\quot\\max-width:__MaxWidth__\\quot\\>//crlf////tab//<!include type:expression; expression:sectionHeader(\\quot\\__FinalTitle__\\quot\\)>//crlf//</div>//crlf////crlf////crlf////tab//^
ID=179312|X=151|Y=33|W=820|H=679|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=652102|AttachLeft=|AlignLeft=652102|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=[!------------------------------------------------------------------------//crlf//Params://crlf////tab//StoreID - Store ID//crlf////tab//Date - Date (MM-dd-yyyy)//crlf////tab//Title - Optional.  Displays a title above the table//crlf////tab//TableControls - Optional.  If false\\comma\\ table controls will be hidden.  Default is true.//crlf//--------------------------------------------------------------------------]//crlf////crlf//[!------------------------------------------------------------------------//crlf//For testing//crlf//--------------------------------------------------------------------------]//crlf//<include type:expression; expression:htmlConstant(\\quot\\date\\quot\\\\comma\\\\quot\\__date__\\quot\\\\comma\\\\quot\\05-31-2017\\quot\\)>//crlf//<include type:expression; expression:htmlConstant(\\quot\\StoreID\\quot\\\\comma\\\\quot\\__StoreID__\\quot\\\\comma\\\\quot\\1mNufdynZWHlF17UxiqvpXVh\\quot\\)>//crlf//<include type:expression; expression:htmlConstant(\\quot\\Title\\quot\\\\comma\\\\quot\\__Title__\\quot\\\\comma\\\\quot\\\\quot\\)>//crlf//<include type:expression; expression:htmlConstant(\\quot\\TableControls\\quot\\\\comma\\\\quot\\__TableControls__\\quot\\\\comma\\\\quot\\true\\quot\\)>//crlf////crlf//<include type:expression; expression:htmlConstant(\\quot\\salt\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\lowercase(getSalt(4)))>//crlf////crlf//[!------------------------------------------------------------------------//crlf//Title//crlf//--------------------------------------------------------------------------]//crlf//<h1>__Title__</h2>//crlf////crlf//[!------------------------------------------------------------------------//crlf//Dimensional Driver//crlf//--------------------------------------------------------------------------]//crlf//<conditional expression:(defined(\\quot\\__StoreID__\\quot\\)) and (defined(\\quot\\__date__\\quot\\))>//crlf////tab//<!include type:driver;//crlf////tab////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab////tab//title: \\quot\\\\quot\\;//crlf////tab////tab//ID: \\quot\\__salt__\\quot\\;//crlf////tab////tab//HashID: \\quot\\\\quot\\;//crlf////tab////tab//driver: \\quot\\Greenlight_Dimensional_Driver\\quot\\;//crlf////tab////tab//name: \\quot\\\\quot\\;//crlf////tab////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab////tab//dispose: \\quot\\false\\quot\\;//crlf////tab////tab//state: \\quot\\\\quot\\;//crlf////tab////tab//params: \\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__~~pipe~~EmbedDriverID=POS_GENERIC_DAILY_SALES~~pipe~~YDim=Department_Name\\comma\\Category_Name~~pipe~~XDim=Record_Type_Description_Short~~pipe~~Measurement=Amount~~pipe~~KeyExpression=Department_Name+Category_Name+DimTotalAllSalesAmount~~pipe~~Metadata=POS_GENERIC_DAILY_SALESByDepartment\\quot\\;//crlf////tab////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab////tab//display: \\quot\\Sales By Department\\quot\\;//crlf////tab////tab//fields: \\quot\\\\quot\\;//crlf////tab////tab//IncludeFields: \\quot\\\\quot\\;//crlf////tab////tab//ExcludeFields: \\quot\\\\quot\\;//crlf////tab////tab//sort: \\quot\\ID\\quot\\;//crlf////tab////tab//filter: \\quot\\not(Amount=0)\\quot\\;//crlf////tab////tab//BaseFilter: \\quot\\not(Exclude_Department_From_Sales)\\quot\\;//crlf////tab////tab//class: \\quot\\basic1\\quot\\;//crlf////tab////tab//maxrecords: \\quot\\500\\quot\\;//crlf////tab////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab////tab//style: \\quot\\width:auto\\quot\\;//crlf////tab////tab//_style: \\quot\\float:left;width:100\\percent\\\\quot\\;//crlf////tab////tab//height:\\quot\\auto\\quot\\;//crlf////tab////tab//_maxheight:\\quot\\300px\\quot\\;//crlf////tab////tab//canSelect: \\quot\\false\\quot\\;//crlf////tab////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab////tab//canEdit: \\quot\\false\\quot\\;//crlf////tab////tab//canAdd: \\quot\\false\\quot\\;//crlf////tab////tab//canDelete: \\quot\\false\\quot\\;//crlf////tab////tab//InspectMenu: \\quot\\cHSxjjEe\\quot\\;//crlf////tab////tab//EmbedValues: \\quot\\\\quot\\;//crlf////tab////tab//EditDialogID: \\quot\\\\quot\\;//crlf////tab////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab////tab//ExternalFilters: \\quot\\\\quot\\;//crlf////tab////tab//TableControls: \\quot\\__TableControls__\\quot\\;//crlf////tab////tab//TableHeader: \\quot\\true\\quot\\;//crlf////tab////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab////tab//SelectDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//EditDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//Menu: \\quot\\\\quot\\;//crlf////tab////tab//Messages: \\quot\\true\\quot\\;//crlf////tab////tab//ChartType: \\quot\\\\quot\\;//crlf////tab////tab//ChartWidth: \\quot\\640\\quot\\;//crlf////tab////tab//ChartHeight: \\quot\\480\\quot\\;//crlf////tab////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab////tab//ChartStyle: \\quot\\display:none\\quot\\;//crlf////tab////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab////tab//_Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab////tab//debug: \\quot\\false\\quot\\;//crlf////tab//>//crlf//</conditional>//crlf//^
ID=279647|X=151|Y=33|W=820|H=679|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=652102|AttachLeft=|AlignLeft=652102|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=[!------------------------------------------------------------------------//crlf//Gets the contents of the daily labor driver//crlf////crlf//Params://crlf////tab//StoreID - Store ID//crlf////tab//Date - Date (MM-dd-yyyy)//crlf//--------------------------------------------------------------------------]//crlf//<state>//crlf////tab////check the dependency states of the POS_Generic_Labor_Detail_Dta driver//crlf////tab//{@if(defined(\\quot\\__StoreID__\\quot\\)\\comma\\getDependencyStates(POS_Generic_Labor_Detail_Dta\\comma\\\\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\)\\comma\\\\quot\\\\quot\\)}//crlf////crlf////tab////for testing//crlf////tab//{@if(formatDate(now()\\comma\\\\quot\\MMddyyyy\\quot\\)=\\quot\\04252016\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//[!------------------------------------------------------------------------//crlf//Constants for testing//crlf//--------------------------------------------------------------------------]//crlf//<include type:expression; expression:htmlConstant(\\quot\\date\\quot\\\\comma\\\\quot\\__date__\\quot\\\\comma\\\\quot\\04-16-2016\\quot\\)>//crlf//<include type:expression; expression:htmlConstant(\\quot\\StoreID\\quot\\\\comma\\\\quot\\__StoreID__\\quot\\\\comma\\\\quot\\KZX2VBNGExCTHrLmixKxY8eJ\\quot\\)>//crlf////crlf//[!------------------------------------------------------------------------//crlf//Defaults//crlf//--------------------------------------------------------------------------]//crlf//<include type:expression; expression:htmlConstant(\\quot\\Display\\quot\\\\comma\\\\quot\\__Display__\\quot\\\\comma\\\\quot\\Totals by Job Code\\quot\\)>//crlf////crlf//<conditional expression:defined(\\quot\\__StoreID__\\quot\\)>//crlf////crlf////tab//[!------------------------------------------------------------------------//crlf////tab//Include the daily labor widget//crlf////tab//--------------------------------------------------------------------------]//crlf////tab//<!include //crlf////tab////tab//type:widget; //crlf////tab////tab//server:{AspectHashID}; //crlf////tab////tab//secure:true; //crlf////tab////tab//documentID:\\quot\\oi85fK8kFTQDVVcRTsBH6W5i\\quot\\; //crlf////tab////tab//widget:\\quot\\Labor Drivers\\quot\\; //crlf////tab////tab//containerItemID:\\quot\\801096\\quot\\; //crlf////tab////tab//params:\\quot\\StoreID=__StoreID__//amp////crlf////tab////tab////tab//Date=__Date__//amp////crlf////tab////tab////tab//Display=__Display__//amp////crlf////tab////tab////tab//TableControls=false//amp////crlf////tab////tab////tab//CanSelect=false//amp////crlf////tab////tab////tab//getContent=true\\quot\\;//crlf////tab//>//crlf//</conditional>^
ID=69726|X=151|Y=33|W=820|H=679|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=652102|AttachLeft=|AlignLeft=652102|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=[!------------------------------------------------------------------------//crlf//Params://crlf////tab//StoreID - Store ID//crlf////tab//Date - Date (MM-dd-yyyy)//crlf////tab//Title - Optional.  Displays a title above the table//crlf////tab//TableControls - Optional.  If false\\comma\\ table controls will be hidden.  Default is true.//crlf//--------------------------------------------------------------------------]//crlf////crlf//[!------------------------------------------------------------------------//crlf//For testing//crlf//--------------------------------------------------------------------------]//crlf//<include type:expression; expression:htmlConstant(\\quot\\date\\quot\\\\comma\\\\quot\\__date__\\quot\\\\comma\\\\quot\\05-31-2017\\quot\\)>//crlf//<include type:expression; expression:htmlConstant(\\quot\\StoreID\\quot\\\\comma\\\\quot\\__StoreID__\\quot\\\\comma\\\\quot\\1mNufdynZWHlF17UxiqvpXVh\\quot\\)>//crlf//<include type:expression; expression:htmlConstant(\\quot\\Title\\quot\\\\comma\\\\quot\\__Title__\\quot\\\\comma\\\\quot\\\\quot\\)>//crlf//<include type:expression; expression:htmlConstant(\\quot\\TableControls\\quot\\\\comma\\\\quot\\__TableControls__\\quot\\\\comma\\\\quot\\true\\quot\\)>//crlf////crlf//<include type:expression; expression:htmlConstant(\\quot\\salt\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\lowercase(getSalt(4)))>//crlf////crlf//<include type:expression; expression:htmlConstant(\\quot\\Filter\\quot\\\\comma\\\\quot\\__Filter__\\quot\\\\comma\\\\quot\\true\\quot\\)>//crlf////crlf//[!------------------------------------------------------------------------//crlf//Title//crlf//--------------------------------------------------------------------------]//crlf//<h1>__Title__</h2>//crlf////crlf//[!------------------------------------------------------------------------//crlf//Dimensional Driver//crlf//--------------------------------------------------------------------------]//crlf//<conditional expression:(defined(\\quot\\__StoreID__\\quot\\)) and (defined(\\quot\\__date__\\quot\\))>//crlf////tab//<!include type:driver;//crlf////tab////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab////tab//title: \\quot\\\\quot\\;//crlf////tab////tab//ID: \\quot\\__salt__\\quot\\;//crlf////tab////tab//HashID: \\quot\\\\quot\\;//crlf////tab////tab//driver: \\quot\\Greenlight_Dimensional_Driver\\quot\\;//crlf////tab////tab//name: \\quot\\\\quot\\;//crlf////tab////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab////tab//dispose: \\quot\\false\\quot\\;//crlf////tab////tab//state: \\quot\\\\quot\\;//crlf////tab////tab//params: \\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__~~pipe~~EmbedDriverID=POS_GENERIC_DAILY_SALES~~pipe~~YDim=Category_Name~~pipe~~XDim=Record_Type_Description_Short~~pipe~~Measurement=Amount~~pipe~~KeyExpression=Category_Name+DimTotalAllSalesAmount~~pipe~~Debug=true~~pipe~~EmbedFilter=__Filter__~~pipe~~Metadata=POS_GENERIC_DAILY_SALESDim1\\quot\\;//crlf////tab////tab//_params: \\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__~~pipe~~EmbedDriverID=POS_GENERIC_DAILY_SALES~~pipe~~YDim=Department_Name\\comma\\Category_Name~~pipe~~XDim=Record_Type_Description_Short~~pipe~~Measurement=Amount~~pipe~~KeyExpression=Department_Name+Category_Name+DimTotalAllSalesAmount~~pipe~~Metadata=POS_GENERIC_DAILY_SALESDim1\\quot\\;//crlf////tab////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab////tab//display: \\quot\\Sales By Category\\quot\\;//crlf////tab////tab//fields: \\quot\\\\quot\\;//crlf////tab////tab//IncludeFields: \\quot\\\\quot\\;//crlf////tab////tab//ExcludeFields: \\quot\\\\quot\\;//crlf////tab////tab//sort: \\quot\\ID\\quot\\;//crlf////tab////tab//_filter: \\quot\\not(Amount=0)\\quot\\;//crlf////tab////tab//filter:\\quot\\\\quot\\;//crlf////tab////tab//basefilter:\\quot\\\\quot\\;//crlf////tab////tab//class: \\quot\\basic1\\quot\\;//crlf////tab////tab//maxrecords: \\quot\\500\\quot\\;//crlf////tab////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab////tab//style: \\quot\\width:auto\\quot\\;//crlf////tab////tab//_style: \\quot\\float:left;width:100\\percent\\\\quot\\;//crlf////tab////tab//height:\\quot\\auto\\quot\\;//crlf////tab////tab//_maxheight:\\quot\\300px\\quot\\;//crlf////tab////tab//canSelect: \\quot\\false\\quot\\;//crlf////tab////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab////tab//canEdit: \\quot\\false\\quot\\;//crlf////tab////tab//canAdd: \\quot\\false\\quot\\;//crlf////tab////tab//canDelete: \\quot\\false\\quot\\;//crlf////tab////tab//InspectMenu: \\quot\\cHSxjjEe\\quot\\;//crlf////tab////tab//EmbedValues: \\quot\\\\quot\\;//crlf////tab////tab//EditDialogID: \\quot\\\\quot\\;//crlf////tab////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab////tab//ExternalFilters: \\quot\\\\quot\\;//crlf////tab////tab//TableControls: \\quot\\__TableControls__\\quot\\;//crlf////tab////tab//TableHeader: \\quot\\true\\quot\\;//crlf////tab////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab////tab//SelectDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//EditDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//Menu: \\quot\\\\quot\\;//crlf////tab////tab//Messages: \\quot\\true\\quot\\;//crlf////tab////tab//ChartType: \\quot\\\\quot\\;//crlf////tab////tab//ChartWidth: \\quot\\640\\quot\\;//crlf////tab////tab//ChartHeight: \\quot\\480\\quot\\;//crlf////tab////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab////tab//ChartStyle: \\quot\\display:none\\quot\\;//crlf////tab////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab////tab//_Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab////tab//debug: \\quot\\false\\quot\\;//crlf////tab//>//crlf//</conditional>//crlf//^
ID=574767|X=151|Y=33|W=1209|H=657|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=652102|AttachLeft=|AlignLeft=652102|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<!-- servertimer=false -->//crlf//<state>//crlf////tab//__StoreID__//crlf////tab//__Date__//crlf////tab//__Record_Type__//crlf////tab//__TableControls__//crlf////tab//__TableHeader__//crlf////tab//{@if(not(fileExists(getStoreDir(\\quot\\__StoreID__\\quot\\)\\plus\\\\quot\\sales.\\quot\\\\plus\\\\quot\\__date__\\quot\\\\plus\\\\quot\\.bin\\quot\\))\\comma\\now()\\comma\\gfs(getStoreDir(\\quot\\__StoreID__\\quot\\)\\plus\\\\quot\\sales.__Date__.bin\\quot\\))}//crlf////tab//{@if(not(fileExists(getStoreDir(\\quot\\__StoreID__\\quot\\)\\plus\\\\quot\\salesadd.\\quot\\\\plus\\\\quot\\__date__\\quot\\\\plus\\\\quot\\.bin\\quot\\))\\comma\\now()\\comma\\gfs(getStoreDir(\\quot\\__StoreID__\\quot\\)\\plus\\\\quot\\salesadd.__Date__.bin\\quot\\))}//crlf////tab//{@gfs(getStoreDir(\\quot\\__StoreID__\\quot\\)\\plus\\\\quot\\ckd.\\quot\\\\plus\\\\quot\\__date__\\quot\\\\plus\\\\quot\\.bin\\quot\\)}//crlf////tab//{@gfs(getStoreDir(\\quot\\__StoreID__\\quot\\)\\plus\\\\quot\\ckdadd.\\quot\\\\plus\\\\quot\\__date__\\quot\\\\plus\\\\quot\\.bin\\quot\\)}//crlf////tab//{@gfs(getStoreDir(\\quot\\__StoreID__\\quot\\)\\plus\\\\quot\\customsalesfields.bin\\quot\\)}//crlf////tab//{@if(formatDate(now()\\comma\\\\quot\\MMddyyyy\\quot\\)=\\quot\\03302021\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf////tab//1.01//crlf////tab//Debug=true//crlf//</state>//crlf////crlf//<include type:expression; expression:htmlConstant(\\quot\\Header\\quot\\\\comma\\\\quot\\__Header__\\quot\\\\comma\\false)>//crlf//[!------------------------------------------------------------------------//crlf//Constants for testing.  //crlf//--------------------------------------------------------------------------]//crlf//<_conditional expression:false>//crlf////tab//[!------------------------------------------------------------------------//crlf////tab//These constants use the 710 Hyde Park store//crlf////tab//--------------------------------------------------------------------------]//crlf////tab//< include type:expression; expression:htmlConstant(\\quot\\date\\quot\\\\comma\\\\quot\\__date__\\quot\\\\comma\\\\quot\\10-31-2018\\quot\\)>//crlf////tab//< include type:expression; expression:htmlConstant(\\quot\\StoreID\\quot\\\\comma\\\\quot\\__StoreID__\\quot\\\\comma\\\\quot\\Es134hBQNJBUojYEL0ZGpNLO\\quot\\)>//crlf//</conditional>//crlf////crlf//<_include type:expression; expression:htmlConstant(\\quot\\StoreID\\quot\\\\comma\\\\quot\\__StoreID__\\quot\\\\comma\\getToken(\\quot\\POSInterface_StoreID\\quot\\))>//crlf////crlf//<conditional expression:(undefined(\\quot\\__Date__\\quot\\))>//crlf////tab//Error: Missing Date<br>//crlf//</conditional>//crlf////crlf//<conditional expression:(defined(\\quot\\__StoreID__\\quot\\)) and (not(\\quot\\__StoreID__\\quot\\=\\quot\\0\\quot\\)) and (defined(\\quot\\__Date__\\quot\\))>//crlf////tab//<style ID=\\quot\\CSSCashReconcile\\quot\\>//crlf////tab////tab//td.cash_reconcile_subtotal {border-top:1px solid black}//crlf////tab//</style>//crlf////crlf////tab//[!------------------------------------------------------------------------//crlf////tab//Constants//crlf////tab//--------------------------------------------------------------------------]//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\MaxWidth\\quot\\\\comma\\\\quot\\__MaxWidth__\\quot\\\\comma\\\\quot\\100\\percent\\\\quot\\)>//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\salt\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\lowercase(getSalt(4)))>//crlf////crlf////tab//[!------------------------------------------------------------------------//crlf////tab//Set EmbedValues constant containing all fields in the driver.  Could also just //crlf////tab//embed specific fields required by the dialog.  The embed fields don\\apos\\t seem to//crlf////tab//be handled properly when not defined.  Could have something to do with the //crlf////tab//transposing.//crlf////crlf////tab//Also create constants for all field ID\\apos\\s and amounts.  This is used to look for //crlf////tab//zero amount so fields can be left out of the dialog.  For example\\comma\\ POS Paid In and //crlf////tab//POS Paid Out are not included in the dialog if the amounts are zero//crlf////tab//--------------------------------------------------------------------------]//crlf////tab//<!include type:script; commands:\\quot\\//crlf////crlf////tab////tab//if((not(defined(\\quot\\__StoreID__\\quot\\))) or (not(defined(\\quot\\__Date__\\quot\\))))//crlf////tab////tab////tab//return(appendToLog(\\quot\\Error: Missing __StoreID__ or __Date__\\quot\\))//crlf////tab////tab//endif//crlf////tab////tab//sReturn=\\quot\\\\quot\\//crlf////crlf////tab////tab////add constant for embed values//crlf////tab////tab//sDriverParams=\\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\//crlf////tab////tab//sDriverParams=sDriverParams\\plus\\\\quot\\~~pipe~~Transpose=true~~pipe~~TransposeID=Sales_Structure_Field_ID\\quot\\//crlf////tab////tab//driverOpen(POS_GENERIC_DAILY_SALES\\comma\\d\\comma\\READ\\comma\\false\\comma\\sDriverParams)//crlf////tab////tab//s=getStructureFieldIDs(d\\comma\\\\quot\\\\quot\\)//crlf////tab////tab//sReturn=sReturn\\plus\\htmlConstant(\\quot\\EmbedValues\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\s)//crlf////tab////tab//driverClose(d)//crlf////crlf////tab////tab////get collection of field ID\\apos\\s and values//crlf////tab////tab//arValues=getCollection(POS_Generic_Daily_Sales_Field_Amount_by_ID\\comma\\true\\comma\\\\quot\\StoreID=__StoreID__~~pipe~~DateTo=__Date__~~pipe~~Selection=Amount\\quot\\)//crlf////tab////tab//c=getElementCount(arValues\\comma\\\\quot\\~~pipe~~\\quot\\)//crlf////tab////tab//n=0//crlf////tab////tab//while(n<c)//crlf////tab////tab////tab//s=getElement(arValues\\comma\\n\\comma\\\\quot\\~~pipe~~\\quot\\)//crlf////tab////tab////tab//sFieldID=getElement(s\\comma\\0\\comma\\\\quot\\=\\quot\\)//crlf////tab////tab////tab//dAmount=getElement(s\\comma\\1\\comma\\\\quot\\=\\quot\\)//crlf////tab////tab////tab//sReturn=sReturn\\plus\\htmlConstant(sFieldID\\comma\\\\quot\\__\\quot\\\\comma\\dAmount)//crlf////tab////tab////tab//n\\plus\\\\plus\\//crlf////tab////tab//endwhile//crlf////crlf////tab////tab//return(sReturn)//crlf////tab//\\quot\\>//crlf////crlf////tab//<!-- Dialog used to edit a record -->//crlf////tab//<div ID=\\quot\\Sales_Reconciliation__salt__\\quot\\ style=\\quot\\height:auto; width:100\\percent\\;max-width:__MaxWidth__;display:block; border:none\\quot\\>//crlf////tab////tab//<div style=\\quot\\padding:0px;width:100\\percent\\\\quot\\>//crlf////tab////tab////tab//<!-- set this image to visible to include a close icon when the dialog header is disabled -->//crlf////tab////tab////tab//<div class=\\quot\\EditDialogCloseIcon\\quot\\ style=\\quot\\display:none\\quot\\ onclick=\\quot\\closeTableEditDialog(this)\\quot\\></div>//crlf////crlf////tab////tab////tab//[!------------------------------------------------------------------------//crlf////tab////tab////tab//Store name and date//crlf////tab////tab////tab//--------------------------------------------------------------------------]//crlf////tab////tab////tab//<conditional expression:(__Header__)>//crlf////tab////tab////tab////tab//<div><h1><!include type:expression; expression:getStoreName(\\quot\\__StoreID__\\quot\\)>\\amp\\nbsp;\\amp\\nbsp;\\amp\\nbsp;__Date__</h1></div>//crlf////tab////tab////tab//</conditional>//crlf////crlf////tab////tab////tab//[!------------------------------------------------------------------------//crlf////tab////tab////tab//03/2021 - Added white-space:nowrap to td tag surrounding description and //crlf////tab////tab////tab//removed this max-width setting from the div just below.//crlf////tab////tab////tab//max-width:{Aspect_BackOffice_Content_Multiple-Sales}px//crlf////tab////tab////tab//--------------------------------------------------------------------------]//crlf////tab////tab////tab////tab////crlf////tab////tab////tab//<div style=\\quot\\float:left;margin-right:15px\\quot\\>//crlf////tab////tab////tab////tab//<table>//crlf////tab////tab////tab////tab////tab//[!------------------------------------------------------------------------//crlf////tab////tab////tab////tab////tab//Gross Sales//crlf////tab////tab////tab////tab////tab//--------------------------------------------------------------------------]//crlf////tab////tab////tab////tab////tab//<tr><td colspan=\\apos\\2\\apos\\><h2>Gross Sales</h2></td></tr>//crlf////crlf////tab////tab////tab////tab////tab//[!------------------------------------------------------------------------//crlf////tab////tab////tab////tab////tab//If total department sales equal total sales\\comma\\ then display sales by department//crlf////tab////tab////tab////tab////tab//--------------------------------------------------------------------------]//crlf////tab////tab////tab////tab////tab//<!conditional expression:(value(\\quot\\__Field41_0__\\quot\\)=value(\\quot\\__Field17_0__\\quot\\))>//crlf////tab////tab////tab////tab////tab////tab//<!!include type:widget; //crlf////tab////tab////tab////tab////tab////tab////tab//server:{AspectHashID}; //crlf////tab////tab////tab////tab////tab////tab////tab//secure:true; //crlf////tab////tab////tab////tab////tab////tab////tab//documentID:\\quot\\VWaUGu88BMN0hDYWzZj57VpG\\quot\\; //crlf////tab////tab////tab////tab////tab////tab////tab//widget:\\quot\\View Content\\quot\\; //crlf////tab////tab////tab////tab////tab////tab////tab//containerItemID:\\quot\\802751\\quot\\; //crlf////tab////tab////tab////tab////tab////tab////tab//params:\\quot\\StoreID=__StoreID__\\amp\\Date=__Date__\\amp\\Filter=(Record_Type=40) and (not(Exclude_Department_From_Sales))\\amp\\NameFieldID=Department_Name\\quot\\;//crlf////tab////tab////tab////tab////tab////tab//>//crlf////tab////tab////tab////tab////tab//</conditional>//crlf////crlf////tab////tab////tab////tab////tab//[!------------------------------------------------------------------------//crlf////tab////tab////tab////tab////tab//If total department sales do not equal total sales\\comma\\ then department sales //crlf////tab////tab////tab////tab////tab//are not set up properly.  Display only total sales.  All categories must be //crlf////tab////tab////tab////tab////tab//assigned to a department for department sales to be displayed.  This ensures //crlf////tab////tab////tab////tab////tab//that department sales are equal to total sales.//crlf////tab////tab////tab////tab////tab//--------------------------------------------------------------------------]//crlf////tab////tab////tab////tab////tab//<!conditional expression:not(value(\\quot\\__Field41_0__\\quot\\)=value(\\quot\\__Field17_0__\\quot\\))>//crlf////tab////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab////tab//<td>Total Sales</td>//crlf////tab////tab////tab////tab////tab////tab////tab//<td><span name=\\quot\\Field17_0\\quot\\ class=\\quot\\number\\quot\\></span></td>//crlf////tab////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab////tab//</conditional>//crlf////crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td>Tax</td>//crlf////tab////tab////tab////tab////tab////tab//<td><span name=\\quot\\Field20_0\\quot\\ class=\\quot\\number\\quot\\></span></td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td>Gross Sales</td>//crlf////tab////tab////tab////tab////tab////tab//<td class=\\quot\\cash_reconcile_subtotal\\quot\\><span name=\\quot\\Field21_0\\quot\\ class=\\quot\\number\\quot\\></span></td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////crlf////tab////tab////tab////tab////tab//[!------------------------------------------------------------------------//crlf////tab////tab////tab////tab////tab//Comps/Discounts//crlf////tab////tab////tab////tab////tab//--------------------------------------------------------------------------]//crlf////tab////tab////tab////tab////tab//<tr><td colspan=\\apos\\2\\apos\\><h2>Comps / Discounts</h2></td></tr>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td>Total Comp</td>//crlf////tab////tab////tab////tab////tab////tab//<td><span name=\\quot\\Field22_0\\quot\\ class=\\quot\\number\\quot\\><!!include type:expression; expression:formatNumber(__Field22_0__\\comma\\\\quot\\0.00\\quot\\)></span></td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td>Total Discount</td>//crlf////tab////tab////tab////tab////tab////tab//<td><span name=\\quot\\Field23_0\\quot\\ class=\\quot\\number\\quot\\><!!include type:expression; expression:formatNumber(__Field23_0__\\comma\\\\quot\\0.00\\quot\\)></span></td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td>Comp/Discount</td>//crlf////tab////tab////tab////tab////tab////tab//<td class=\\quot\\cash_reconcile_subtotal\\quot\\><span name=\\quot\\Field18_0\\quot\\ class=\\quot\\number\\quot\\><!!include type:expression; expression:formatNumber(__Field18_0__\\comma\\\\quot\\0.00\\quot\\)></span></td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////crlf////tab////tab////tab////tab////tab//<tr><td colspan=\\apos\\2\\apos\\><h2>Tenders</h2></td></tr>//crlf////tab////tab////tab////tab////tab//[!------------------------------------------------------------------------//crlf////tab////tab////tab////tab////tab//Tender - Credit Card//crlf////tab////tab////tab////tab////tab//--------------------------------------------------------------------------]//crlf////tab////tab////tab////tab////tab//<!!include type:widget; //crlf////tab////tab////tab////tab////tab////tab//server:{AspectHashID}; //crlf////tab////tab////tab////tab////tab////tab//secure:true; //crlf////tab////tab////tab////tab////tab////tab//documentID:\\quot\\VWaUGu88BMN0hDYWzZj57VpG\\quot\\; //crlf////tab////tab////tab////tab////tab////tab//widget:\\quot\\View Content\\quot\\; //crlf////tab////tab////tab////tab////tab////tab//containerItemID:\\quot\\802751\\quot\\; //crlf////tab////tab////tab////tab////tab////tab//params:\\quot\\StoreID=__StoreID__\\amp\\Date=__Date__\\amp\\//crlf////tab////tab////tab////tab////tab////tab////tab//Filter=(Record_Type=8) and (Lookup_Tender_Type=2) and (Is_NonCash_Tender)\\amp\\//crlf////tab////tab////tab////tab////tab////tab////tab//Sort=Lookup_Tender_Type\\comma\\Tender_Name\\amp\\NameFieldID=Tender_Name\\quot\\;//crlf////tab////tab////tab////tab////tab//>//crlf////crlf////tab////tab////tab////tab////tab//[!------------------------------------------------------------------------//crlf////tab////tab////tab////tab////tab//Tender - Gift Certificate//crlf////tab////tab////tab////tab////tab//--------------------------------------------------------------------------]//crlf////tab////tab////tab////tab////tab//<!!include type:widget; //crlf////tab////tab////tab////tab////tab////tab//server:{AspectHashID}; //crlf////tab////tab////tab////tab////tab////tab//secure:true; //crlf////tab////tab////tab////tab////tab////tab//documentID:\\quot\\VWaUGu88BMN0hDYWzZj57VpG\\quot\\; //crlf////tab////tab////tab////tab////tab////tab//widget:\\quot\\View Content\\quot\\; //crlf////tab////tab////tab////tab////tab////tab//containerItemID:\\quot\\802751\\quot\\; //crlf////tab////tab////tab////tab////tab////tab//params:\\quot\\StoreID=__StoreID__\\amp\\Date=__Date__\\amp\\//crlf////tab////tab////tab////tab////tab////tab////tab//Filter=(Record_Type=8) and (Lookup_Tender_Type=3) and (Is_NonCash_Tender)\\amp\\//crlf////tab////tab////tab////tab////tab////tab////tab//Sort=Lookup_Tender_Type\\comma\\Tender_Name\\amp\\NameFieldID=Tender_Name\\quot\\;//crlf////tab////tab////tab////tab////tab//>//crlf////crlf////tab////tab////tab////tab////tab//[!------------------------------------------------------------------------//crlf////tab////tab////tab////tab////tab//Tender - House Account//crlf////tab////tab////tab////tab////tab//--------------------------------------------------------------------------]//crlf////tab////tab////tab////tab////tab//<!!include type:widget; //crlf////tab////tab////tab////tab////tab////tab//server:{AspectHashID}; //crlf////tab////tab////tab////tab////tab////tab//secure:true; //crlf////tab////tab////tab////tab////tab////tab//documentID:\\quot\\VWaUGu88BMN0hDYWzZj57VpG\\quot\\; //crlf////tab////tab////tab////tab////tab////tab//widget:\\quot\\View Content\\quot\\; //crlf////tab////tab////tab////tab////tab////tab//containerItemID:\\quot\\802751\\quot\\; //crlf////tab////tab////tab////tab////tab////tab//params:\\quot\\StoreID=__StoreID__\\amp\\Date=__Date__\\amp\\//crlf////tab////tab////tab////tab////tab////tab////tab//Filter=(Record_Type=8) and (Lookup_Tender_Type=4) and (Is_NonCash_Tender)\\amp\\//crlf////tab////tab////tab////tab////tab////tab////tab//Sort=Lookup_Tender_Type\\comma\\Tender_Name\\amp\\NameFieldID=Tender_Name\\quot\\;//crlf////tab////tab////tab////tab////tab//>//crlf////crlf////tab////tab////tab////tab////tab//[!------------------------------------------------------------------------//crlf////tab////tab////tab////tab////tab//Tender - Other//crlf////tab////tab////tab////tab////tab//--------------------------------------------------------------------------]//crlf////tab////tab////tab////tab////tab//<!!include type:widget; //crlf////tab////tab////tab////tab////tab////tab//server:{AspectHashID}; //crlf////tab////tab////tab////tab////tab////tab//secure:true; //crlf////tab////tab////tab////tab////tab////tab//documentID:\\quot\\VWaUGu88BMN0hDYWzZj57VpG\\quot\\; //crlf////tab////tab////tab////tab////tab////tab//widget:\\quot\\View Content\\quot\\; //crlf////tab////tab////tab////tab////tab////tab//containerItemID:\\quot\\802751\\quot\\; //crlf////tab////tab////tab////tab////tab////tab//params:\\quot\\StoreID=__StoreID__\\amp\\Date=__Date__\\amp\\//crlf////tab////tab////tab////tab////tab////tab////tab//Filter=(Record_Type=8) and (Lookup_Tender_Type=5) and (Is_NonCash_Tender)\\amp\\//crlf////tab////tab////tab////tab////tab////tab////tab//Sort=Lookup_Tender_Type\\comma\\Tender_Name\\amp\\NameFieldID=Tender_Name\\quot\\;//crlf////tab////tab////tab////tab////tab//>//crlf////crlf////tab////tab////tab////tab////tab//[!------------------------------------------------------------------------//crlf////tab////tab////tab////tab////tab//Non-cash tenders//crlf////tab////tab////tab////tab////tab//Table rows and the associated descriptions/values are created on the fly//crlf////tab////tab////tab////tab////tab//using each of the non-cash tenders included in the driver.//crlf////tab////tab////tab////tab////tab//--------------------------------------------------------------------------]//crlf////tab////tab////tab////tab////tab//<conditional expression:false>//crlf////tab////tab////tab////tab////tab////tab//<!!include type:widget; //crlf////tab////tab////tab////tab////tab////tab////tab//server:{AspectHashID}; //crlf////tab////tab////tab////tab////tab////tab////tab//secure:true; //crlf////tab////tab////tab////tab////tab////tab////tab//documentID:\\quot\\VWaUGu88BMN0hDYWzZj57VpG\\quot\\; //crlf////tab////tab////tab////tab////tab////tab////tab//widget:\\quot\\View Content\\quot\\; //crlf////tab////tab////tab////tab////tab////tab////tab//containerItemID:\\quot\\802751\\quot\\; //crlf////tab////tab////tab////tab////tab////tab////tab//params:\\quot\\StoreID=__StoreID__\\amp\\Date=__Date__\\amp\\//crlf////tab////tab////tab////tab////tab////tab////tab////tab//Filter=(Record_Type=8) and (Is_NonCash_Tender)\\amp\\//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//Sort=Lookup_Tender_Type\\comma\\Tender_Name\\amp\\NameFieldID=Tender_Name\\quot\\;//crlf////tab////tab////tab////tab////tab////tab//>//crlf////tab////tab////tab////tab////tab//</conditional>//tab////crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td>Total Tender</td>//crlf////tab////tab////tab////tab////tab////tab//<td class=\\quot\\cash_reconcile_subtotal\\quot\\><span name=\\quot\\Field26_0\\quot\\ class=\\quot\\number\\quot\\><!!include type:expression; expression:formatNumber(__Field26_0__\\comma\\\\quot\\0.00\\quot\\)></span></td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//</table>//crlf////tab////tab////tab//</div>//crlf////crlf////tab////tab////tab//<div style=\\quot\\float:left;max-width:{Aspect_BackOffice_Content_Multiple-Sales}px\\quot\\>//crlf////tab////tab////tab////tab//<table>//crlf////tab////tab////tab////tab////tab//[!------------------------------------------------------------------------//crlf////tab////tab////tab////tab////tab//Cash Adjustments//crlf////tab////tab////tab////tab////tab//--------------------------------------------------------------------------]//crlf////tab////tab////tab////tab////tab//<tr><td colspan=\\apos\\2\\apos\\><h2>Cash Adjustments</h2></td></tr>//crlf////crlf////tab////tab////tab////tab////tab//<!conditional expression:not(value(\\quot\\__Field38_0__\\quot\\)=0)>//crlf////tab////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab////tab//<td>-POS Paid Out</td>//crlf////tab////tab////tab////tab////tab////tab////tab//<td><span name=\\quot\\Field38_0\\quot\\ class=\\quot\\number\\quot\\><!!include type:expression; expression:formatNumber(__Field38_0__\\comma\\\\quot\\0.00\\quot\\)></span></td>//crlf////tab////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab////tab//</conditional>//crlf////crlf////tab////tab////tab////tab////tab//<!conditional expression:not(value(\\quot\\__Field37_0__\\quot\\)=0)>//crlf////tab////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab////tab//<td>\\plus\\POS Paid In</td>//crlf////tab////tab////tab////tab////tab////tab////tab//<td><span name=\\quot\\Field37_0\\quot\\ class=\\quot\\number\\quot\\><!!include type:expression; expression:formatNumber(__Field37_0__\\comma\\\\quot\\0.00\\quot\\)></span></td>//crlf////tab////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab////tab//</conditional>//crlf////crlf////tab////tab////tab////tab////tab//<!!include type:widget; //crlf////tab////tab////tab////tab////tab////tab//server:{AspectHashID}; //crlf////tab////tab////tab////tab////tab////tab//secure:true; //crlf////tab////tab////tab////tab////tab////tab//documentID:\\quot\\VWaUGu88BMN0hDYWzZj57VpG\\quot\\; //crlf////tab////tab////tab////tab////tab////tab//widget:\\quot\\View Content\\quot\\; //crlf////tab////tab////tab////tab////tab////tab//containerItemID:\\quot\\801180\\quot\\; //crlf////tab////tab////tab////tab////tab////tab//params:\\quot\\StoreID=__StoreID__\\amp\\Date=__Date__\\amp\\//crlf////tab////tab////tab////tab////tab////tab////tab//Filter=(isSubset(\\apos\\Cash Adjust\\apos\\\\comma\\Tags)) and (not(Description=\\apos\\Total Cash Adjust\\apos\\))\\quot\\;//crlf////tab////tab////tab////tab////tab//>//crlf////crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td>=Cash Adjust Total</td>//crlf////tab////tab////tab////tab////tab////tab//<td><span class=\\quot\\number\\quot\\ name=\\quot\\TotalCashAdjust\\quot\\><!!include type:expression; expression:formatNumber(__TotalCashAdjust__\\comma\\\\quot\\0.00\\quot\\)></span></td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////crlf////tab////tab////tab////tab////tab//[!------------------------------------------------------------------------//crlf////tab////tab////tab////tab////tab//Deposit Due//crlf////tab////tab////tab////tab////tab//--------------------------------------------------------------------------]//crlf////tab////tab////tab////tab////tab//<tr><td colspan=\\apos\\2\\apos\\><h2>Deposit Due</h2></td></tr>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td>Gross Sales</td>//crlf////tab////tab////tab////tab////tab////tab//<td><span name=\\quot\\Field21_0\\quot\\ class=\\quot\\number\\quot\\><!!include type:expression; expression:formatNumber(__Field21_0__\\comma\\\\quot\\0.00\\quot\\)></span></td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td>-Comp/Discount</td>//crlf////tab////tab////tab////tab////tab////tab//<td><span name=\\quot\\Field18_0\\quot\\ class=\\quot\\number\\quot\\><!!include type:expression; expression:formatNumber(__Field18_0__\\comma\\\\quot\\0.00\\quot\\)></span></td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td>-Tenders</td>//crlf////tab////tab////tab////tab////tab////tab//<td><span name=\\quot\\Field26_0\\quot\\ class=\\quot\\number\\quot\\><!!include type:expression; expression:formatNumber(__Field26_0__\\comma\\\\quot\\0.00\\quot\\)></span></td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<conditional expression:(getToken(\\quot\\Aspect_BackOffice_Pref_CompanyPollingID\\quot\\)=\\quot\\PD7DCNDbGowgU3zchFKxzHTH\\quot\\) or (getToken(\\quot\\Aspect_BackOffice_Pref_CompanyPollingID\\quot\\)=\\quot\\gALyDzULcjFQ6OvpmlPQbFl5\\quot\\) or (getToken(\\quot\\Aspect_BackOffice_Pref_CompanyPollingID\\quot\\)=\\quot\\wHLzDiTLvqfezAYGjI7L5x2B\\quot\\) or (getToken(\\quot\\Aspect_BackOffice_Pref_CompanyPollingID\\quot\\)=\\quot\\5giaVJp4RHUYyuIZqOtT98Tc\\quot\\)> //crlf////tab////tab////tab////tab////tab////tab////tab//<td>\\plus\\GC/Driver Fee</td>//crlf////tab////tab////tab////tab////tab////tab//</conditional>//crlf////tab////tab////tab////tab////tab////tab//<conditional expression:(not(getToken(\\quot\\Aspect_BackOffice_Pref_CompanyPollingID\\quot\\)=\\quot\\PD7DCNDbGowgU3zchFKxzHTH\\quot\\)) and (not(getToken(\\quot\\Aspect_BackOffice_Pref_CompanyPollingID\\quot\\)=\\quot\\gALyDzULcjFQ6OvpmlPQbFl5\\quot\\)) and (not(getToken(\\quot\\Aspect_BackOffice_Pref_CompanyPollingID\\quot\\)=\\quot\\wHLzDiTLvqfezAYGjI7L5x2B\\quot\\)) and (not(getToken(\\quot\\Aspect_BackOffice_Pref_CompanyPollingID\\quot\\)=\\quot\\5giaVJp4RHUYyuIZqOtT98Tc\\quot\\))>//crlf////tab////tab////tab////tab////tab////tab////tab//<td>\\plus\\Gift Cert Sold</td>//crlf////tab////tab////tab////tab////tab////tab//</conditional>//crlf////tab////tab////tab////tab////tab////tab//<td><span name=\\quot\\Field30_0\\quot\\ class=\\quot\\number\\quot\\><!!include type:expression; expression:formatNumber(__Field30_0__\\comma\\\\quot\\0.00\\quot\\)></span></td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td>\\plus\\Cash Adjust</td>//crlf////tab////tab////tab////tab////tab////tab//<td><span class=\\quot\\number\\quot\\ name=\\quot\\TotalCashAdjust\\quot\\><!!include type:expression; expression:formatNumber(__TotalCashAdjust__\\comma\\\\quot\\0.00\\quot\\)></span></td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td>=Deposit Due</td>//crlf////tab////tab////tab////tab////tab////tab//<td class=\\quot\\cash_reconcile_subtotal\\quot\\><span class=\\quot\\number\\quot\\ name=\\quot\\DepositDue\\quot\\><!!include type:expression; expression:formatNumber(__DepositDue__\\comma\\\\quot\\0.00\\quot\\)></span></td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf//<!--//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td>=Cash Due</td>//crlf////tab////tab////tab////tab////tab////tab//<td class=\\quot\\cash_reconcile_subtotal\\quot\\><span name=\\quot\\Field31_0\\quot\\ class=\\quot\\number\\quot\\><!!include type:expression; expression:formatNumber(__Field31_0__\\comma\\\\quot\\0.00\\quot\\)></span></td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf//-->//crlf////tab////tab////tab////tab////tab//[!------------------------------------------------------------------------//crlf////tab////tab////tab////tab////tab//Actual Deposit//crlf////tab////tab////tab////tab////tab//--------------------------------------------------------------------------]//crlf////tab////tab////tab////tab////tab//<tr><td colspan=\\apos\\2\\apos\\><h2>Actual Deposit</h2></td></tr>//crlf////tab////tab////tab////tab////tab//<!!include type:widget; //crlf////tab////tab////tab////tab////tab////tab//server:{AspectHashID}; //crlf////tab////tab////tab////tab////tab////tab//secure:true; //crlf////tab////tab////tab////tab////tab////tab//documentID:\\quot\\VWaUGu88BMN0hDYWzZj57VpG\\quot\\; //crlf////tab////tab////tab////tab////tab////tab//widget:\\quot\\View Content\\quot\\; //crlf////tab////tab////tab////tab////tab////tab//containerItemID:\\quot\\801180\\quot\\; //crlf////tab////tab////tab////tab////tab////tab//params:\\quot\\StoreID=__StoreID__\\amp\\Date=__Date__\\amp\\//crlf////tab////tab////tab////tab////tab////tab////tab//Filter=isSubset(\\quot\\Deposit\\quot\\\\comma\\Tags)\\quot\\;//crlf////tab////tab////tab////tab////tab//>//crlf////tab////tab////tab////tab//</table>//crlf////tab////tab////tab//</div>//crlf////crlf////tab////tab////tab//<div style=\\quot\\clear:both;width:{@2*getToken(Aspect_BackOffice_Content_Multiple-Sales)}px;padding:20px 0px 0px 0px;margin:0px 0px 0px 0px\\quot\\>//crlf////tab////tab////tab////tab//<conditional expression:defined(\\quot\\__PrepareEmail__\\quot\\)>//crlf////tab////tab////tab////tab////tab//<!conditional expression:defined(\\quot\\__notes__\\quot\\)>//crlf////tab////tab////tab////tab////tab////tab//<b>Notes</b><br>//crlf////tab////tab////tab////tab////tab////tab//<div style=\\quot\\width:100\\percent\\;max-width:500px;height:80px\\quot\\>//crlf////tab////tab////tab////tab////tab////tab////tab//__notes__//crlf////tab////tab////tab////tab////tab////tab//</div>//crlf////tab////tab////tab////tab////tab//</conditional>//crlf////tab////tab////tab////tab//</conditional>//crlf////tab////tab////tab////tab//<conditional expression:not(defined(\\quot\\__PrepareEmail__\\quot\\))>//crlf////tab////tab////tab////tab////tab//<b>Notes</b><br>//crlf////tab////tab////tab////tab////tab//<span><textarea name=\\quot\\notes\\quot\\ onchange=\\quot\\submitDialogCell(this)\\quot\\ style=\\quot\\width:100\\percent\\;max-width:500px;height:80px\\quot\\>__notes__</textarea></span>//crlf////tab////tab////tab////tab//</conditional>//crlf////tab////tab////tab//</div>//crlf////tab////tab//</div>//crlf////tab//</div>//crlf////crlf////tab//<conditional expression:(false) and (defined(\\quot\\__Record_Type__\\quot\\))>//crlf////tab////tab//<h1>__RecordTypeName__</h1>//crlf////tab//</conditional>//crlf////crlf////tab//<conditional expression:false>//crlf////tab////tab//<h2>Sales __StoreName__ __Date__</h2>//crlf////tab//</conditional>//crlf////crlf////tab//<!!include type:driver;//crlf////tab////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab////tab//title: \\quot\\\\quot\\;//crlf////tab////tab//HashID: \\quot\\\\quot\\;//crlf////tab////tab//driver: \\quot\\POS_GENERIC_DAILY_SALES\\quot\\;//crlf////tab////tab//name: \\quot\\\\quot\\;//crlf////tab////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab////tab//dispose: \\quot\\false\\quot\\;//crlf////tab////tab//state: \\quot\\\\quot\\;//crlf////tab////tab//params: \\quot\\keyexpression=DateNumber~~pipe~~CacheTtl=0~~pipe~~Metadata=POS_GENERIC_DAILY_SALES_Transposed~~pipe~~Date=__Date__~~pipe~~StoreID=__StoreID__~~pipe~~Transpose=true~~pipe~~TransposeID=Sales_Structure_Field_ID~~pipe~~TransposeFields=Amount~~pipe~~TransposeName=Field_Description\\quot\\;//crlf////tab////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab////tab//display: \\quot\\\\quot\\;//crlf////tab////tab//fields: \\quot\\\\quot\\;//crlf////tab////tab//sort: \\quot\\DateNumber\\quot\\;//crlf////tab////tab//filter: \\quot\\true\\quot\\;//crlf////tab////tab//basefilter:\\quot\\\\quot\\;//crlf////tab////tab//inspectmenu: \\quot\\\\quot\\;//crlf////tab////tab//class: \\quot\\basic1\\quot\\;//crlf////tab////tab//maxrecords: \\quot\\-1\\quot\\;//crlf////tab////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab////tab//style: \\quot\\display:none;position:relative;top:100px\\quot\\;//crlf////tab////tab//_style: \\quot\\width:auto\\quot\\;//crlf////tab////tab//canSelect: \\quot\\true\\quot\\;//crlf////tab////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab////tab//canEdit: \\quot\\true\\quot\\;//crlf////tab////tab//canAdd: \\quot\\true\\quot\\;//crlf////tab////tab//canDelete: \\quot\\true\\quot\\;//crlf////tab////tab//EmbedValues: \\quot\\__EmbedValues__\\quot\\;//crlf////tab////tab//DialogOnly: \\quot\\true\\quot\\;//crlf////tab////tab//EditDialogID: \\quot\\Sales_Reconciliation__salt__\\quot\\;//crlf////tab////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab////tab//ExternalFilters: \\quot\\\\quot\\;//crlf////tab////tab//TableControls: \\quot\\true\\quot\\;//crlf////tab////tab//TableHeader: \\quot\\true\\quot\\;//crlf////tab////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab////tab//SelectDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//EditDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//Menu: \\quot\\\\quot\\;//crlf////tab////tab//Messages: \\quot\\true\\quot\\;//crlf////tab////tab//ChartType: \\quot\\\\quot\\;//crlf////tab////tab//ChartWidth: \\quot\\640\\quot\\;//crlf////tab////tab//ChartHeight: \\quot\\480\\quot\\;//crlf////tab////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab////tab//ChartStyle: \\quot\\display:none\\quot\\;//crlf////tab////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab////tab//Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab////tab//debug: \\quot\\true\\quot\\;//crlf////tab//>//crlf//</conditional>//crlf////crlf//__servertimerresults__//crlf//<include type:expression; expression:htmlConstant(\\quot\\salt\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\lowercase(getSalt(4)))>//crlf//^
ID=53835|X=151|Y=33|W=820|H=679|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=652102|AttachLeft=|AlignLeft=652102|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=484114|X=151|Y=33|W=820|H=679|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=652102|AttachLeft=|AlignLeft=652102|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=770066|X=151|Y=33|W=820|H=679|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=652102|AttachLeft=|AlignLeft=652102|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=420245|X=151|Y=33|W=820|H=679|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=652102|AttachLeft=|AlignLeft=652102|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=377702|X=151|Y=33|W=820|H=679|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=652102|AttachLeft=|AlignLeft=652102|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=634654|X=151|Y=33|W=820|H=679|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=652102|AttachLeft=|AlignLeft=652102|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=247300|X=151|Y=33|W=820|H=679|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=652102|AttachLeft=|AlignLeft=652102|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=801180|X=151|Y=33|W=846|H=639|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=Aspect_Script|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=652102|AttachLeft=|AlignLeft=652102|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=[!------------------------------------------------------------------------//crlf//This item creates a set of table rows from the daily sales driver using the//crlf//filter supplied.  It is used to include selected fields in the reconciliation//crlf//item.//crlf////crlf//Params://crlf////tab//StoreID - Store ID//crlf////tab//Date - Date (MM-dd-yyyy)//crlf////tab//Filter - Filter applied to the driver to select fields to be included//crlf//--------------------------------------------------------------------------]//crlf//<conditional expression:defined(\\quot\\__StoreID__\\quot\\)>//crlf////tab//<!include type:script; commands:\\quot\\//crlf////tab////tab////abort if any parameters missing//crlf////tab////tab//sConfirmParams=\\quot\\__StoreID__\\comma\\__Date__\\quot\\//crlf////tab////tab//if(pos(\\quot\\__\\quot\\\\comma\\sConfirmParams)>=0)//crlf////tab////tab////tab//return(\\quot\\Error: Invalid parameters: \\quot\\+sConfirmParams//crlf////tab////tab//endif//crlf////crlf////tab////tab//sResult=\\quot\\\\quot\\//crlf////crlf////tab////tab////get the width multiple//crlf////tab////tab//iWidthMultiple=value(getToken(\\quot\\Aspect_BackOffice_Content_Multiple-Sales\\quot\\))//crlf////crlf////tab////tab////set width for textarea.  Text areas will be at least two multiples and a//crlf////tab////tab////max of three.//crlf////tab////tab//iTextAreaMinWidth=(iWidthMultiple*2)+\\quot\\px\\quot\\//crlf////tab////tab//iTextAreaMaxWidth=(iWidthMultiple*3)+\\quot\\px\\quot\\//crlf////crlf////tab////tab////open the user-defined daily sales structure//crlf////tab////tab//driverOpen(POS_Generic_User_Defined_Daily_Sales_Struct\\comma\\d\\comma\\read\\comma\\false\\comma\\\\quot\\StoreID=__StoreID__\\quot\\)//crlf////crlf////tab////tab////sort and filter the driver//crlf////tab////tab//driverSetSort(d\\comma\\\\quot\\sort_order\\quot\\\\comma\\false)//crlf////tab////tab//sFilter=replaceSubstring(\\quot\\__Filter__\\quot\\\\comma\\char(0x27)\\comma\\char(0x22))//crlf////tab////tab//appendToLog(\\quot\\Filter=\\quot\\+sFilter)//crlf////tab////tab//driverSetFilter(d\\comma\\sFilter\\comma\\true)//crlf////crlf////tab////tab//c=driverGetRecordCount(d)//crlf////tab////tab//n=0//crlf////tab////tab//while(n<c)//crlf////tab////tab////tab//sFieldID=driverGetField(d\\comma\\\\quot\\FieldID\\quot\\\\comma\\n)//crlf////tab////tab////tab//sDescription=driverGetField(d\\comma\\\\quot\\Description\\quot\\\\comma\\n)//crlf////tab////tab////tab//iType=driverGetField(d\\comma\\\\quot\\FieldType\\quot\\\\comma\\n)//crlf////tab////tab////tab//iTextLines=driverGetField(d\\comma\\\\quot\\Number_Of_Text_Lines\\quot\\\\comma\\n)//crlf////tab////tab////tab//bIsCalculated=driverGetField(d\\comma\\\\quot\\IsCalculated\\quot\\\\comma\\n)//crlf////crlf////tab////tab////tab//if(iType<>0)//crlf////tab////tab////tab////tab////open the row //crlf////tab////tab////tab////tab//sResult=sResult+quote(\\quot\\tr\\quot\\\\comma\\char(0x3C))//crlf////crlf////tab////tab////tab////tab//if((iType=3) and (iTextLines>0))//crlf////tab////tab////tab////tab////tab////text area with 1 or more lines.  Span two columns and make a //crlf////tab////tab////tab////tab////tab////text area with the given number of rows//crlf////tab////tab////tab////tab////tab//sResult=sResult+quote(\\quot\\td colspan='2'\\quot\\\\comma\\char(0x3C))//crlf////tab////tab////tab////tab////tab//if(boolean(__PrepareEmail__))//crlf////tab////tab////tab////tab////tab////tab////if it's an email\\comma\\ use a div//crlf////tab////tab////tab////tab////tab////tab//sResult=sResult+quote(\\quot\\div\\quot\\\\comma\\char(0x3C))//crlf////tab////tab////tab////tab////tab////tab//sResult=sResult+\\quot\\__\\quot\\+sFieldID+\\quot\\__\\quot\\//crlf////tab////tab////tab////tab////tab////tab//sResult=sResult+quote(\\quot\\/div\\quot\\\\comma\\char(0x3C))//crlf////tab////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////tab////if it's not an email\\comma\\ use a textarea//crlf////tab////tab////tab////tab////tab////tab//sResult=sResult+sDescription+quote(\\quot\\br\\quot\\\\comma\\char(0x3C))//crlf////tab////tab////tab////tab////tab////tab//sResult=sResult+char(0x3C)+\\quot\\textarea name=\\quot\\+quote(sFieldID)//crlf////tab////tab////tab////tab////tab////tab//sResult=sResult+\\quot\\ rows=\\quot\\+iTextLines+\\quot\\ style='width:100\\percent\\\\quot\\+char(0x3B)+\\quot\\min-width:\\quot\\+iTextAreaMinWidth+char(0x3B)+\\quot\\max-width:\\quot\\+iTextAreaMaxWidth+char(0x27)+char(0x3E)//crlf////tab////tab////tab////tab////tab////tab//sResult=sResult+quote(\\quot\\/textarea\\quot\\\\comma\\char(0x3C))//crlf////tab////tab////tab////tab////tab////tab//sResult=sResult+quote(\\quot\\/td\\quot\\\\comma\\char(0x3C))//crlf////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////add a td tag for the description//crlf////tab////tab////tab////tab////tab//sResult=sResult+quote(\\quot\\td style='white-space:nowrap'\\quot\\\\comma\\char(0x3C))//crlf////tab////tab////tab////tab////tab//sResult=sResult+sDescription+char(13)+char(10)//crlf////tab////tab////tab////tab////tab//sResult=sResult+quote(\\quot\\/td\\quot\\\\comma\\char(0x3C))//crlf////crlf////tab////tab////tab////tab////tab//sResult=sResult+quote(\\quot\\td\\quot\\\\comma\\char(0x3C))//crlf////tab////tab////tab////tab////tab////use a span for calculated fields or when an email is being created//crlf////tab////tab////tab////tab////tab//if((boolean(__PrepareEmail__)) or (bIsCalculated))//crlf////tab////tab////tab////tab////tab////tab////calculated field\\comma\\ so use a span tag//crlf////tab////tab////tab////tab////tab////tab//if(len(trim(sDescription))>0)//crlf////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+char(0x3C)+\\quot\\span name=\\quot\\+quote(sFieldID)//crlf////tab////tab////tab////tab////tab////tab////tab//if(iType=9) //crlf////tab////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+\\quot\\ class='number'\\quot\\//crlf////tab////tab////tab////tab////tab////tab////tab//elseif(iType=7)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////long//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+\\quot\\ class='int'\\quot\\//crlf////tab////tab////tab////tab////tab////tab////tab//elseif(iType=21)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////longdate//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+\\quot\\ class='datetime'\\quot\\//crlf////tab////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+char(0x3E)//crlf////tab////tab////tab////tab////tab////tab////tab//if(boolean(__PrepareEmail__))//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+\\quot\\__\\quot\\+sFieldID+\\quot\\__\\quot\\//crlf////tab////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+quote(\\quot\\/span\\quot\\\\comma\\char(0x3C))//crlf////tab////tab////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+char(0x3C)+\\quot\\div style='height:13px'\\quot\\+char(0x3E)+quote(\\quot\\/div\\quot\\\\comma\\char(0x3C))//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////tab////user-input field\\comma\\ so use an input tag//crlf////tab////tab////tab////tab////tab////tab//sResult=sResult+char(0x3C)+\\quot\\input \\quot\\//crlf////tab////tab////tab////tab////tab////tab//sResult=sResult+\\quot\\ type='text'\\quot\\//crlf////tab////tab////tab////tab////tab////tab//sResult=sResult+\\quot\\ onChange=\\quot\\+quote(\\quot\\submitDialogCell(this)\\quot\\)//crlf////tab////tab////tab////tab////tab////tab//sResult=sResult+\\quot\\ name=\\quot\\+quote(sFieldID)//crlf////tab////tab////tab////tab////tab////tab//if(iType=3)//crlf////tab////tab////tab////tab////tab////tab////tab////char//crlf////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+\\quot\\ class='short'\\quot\\//crlf////tab////tab////tab////tab////tab////tab//elseif(iType=9)//crlf////tab////tab////tab////tab////tab////tab////tab////double//crlf////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+\\quot\\ class='number'\\quot\\//crlf////tab////tab////tab////tab////tab////tab//elseif(iType=7)//crlf////tab////tab////tab////tab////tab////tab////tab////long//crlf////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+\\quot\\ class='number'\\quot\\//crlf////tab////tab////tab////tab////tab////tab//elseif(iType=21)//crlf////tab////tab////tab////tab////tab////tab////tab////longdate//crlf////tab////tab////tab////tab////tab////tab////tab//sResult=sResult+\\quot\\ class='datetime'\\quot\\//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab//sResult=sResult+char(0x3E)//crlf////tab////tab////tab////tab////tab////tab//sResult=sResult+quote(\\quot\\/input\\quot\\\\comma\\char(0x3C))//crlf////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab//sResult=sResult+quote(\\quot\\/td\\quot\\\\comma\\char(0x3C))//crlf////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////close the row//crlf////tab////tab////tab////tab//sResult=sResult+quote(\\quot\\/tr\\quot\\\\comma\\char(0x3C))+char(13)+char(10)//crlf////tab////tab////tab//else//crlf////tab////tab////tab////tab//appendToLog(\\quot\\Error: UNdefined field type for field: \\quot\\+sDescription)//crlf////tab////tab////tab//endif//crlf////tab////tab////crlf////tab////tab////tab//n++//crlf////tab////tab//endwhile//crlf////appendToLog(\\quot\\sResult=\\quot\\+sResult)//tab////tab////tab////tab////tab////crlf////tab////tab//return(sResult)//crlf////tab//\\quot\\>//crlf//</conditional>^
ID=802751|X=151|Y=33|W=785|H=647|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=Aspect_Script|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=652102|AttachLeft=|AlignLeft=652102|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=[!------------------------------------------------------------------------//crlf//This item creates a set of table rows from the daily sales driver using the//crlf//filter supplied.  It is used to include selected fields in the reconciliation//crlf//item.//crlf////crlf//Params://crlf////tab//StoreID - Store ID//crlf////tab//Date - Date (MM-dd-yyyy)//crlf////tab//Filter - Filter applied to the driver to select fields to be included//crlf////tab//Sort - Comma-delimited list of fields used to sort the driver//crlf////tab//NameFieldID - Field ID to be used to the name (e.g. Tender_Name)//crlf//--------------------------------------------------------------------------]//crlf//<conditional expression:defined(\\quot\\__StoreID__\\quot\\)>//crlf////tab//<!include type:script; commands:\\quot\\//crlf////tab////tab//appendToLog(\\quot\\Opening POS_Generic_Daily_Sales StoreID=__StoreID__ Date=__Date__ Filter=__Filter__\\quot\\)//crlf////tab////tab//driverOpen(POS_Generic_Daily_Sales\\comma\\d\\comma\\READ\\comma\\false\\comma\\\\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\)//crlf////crlf////tab////tab//sFilter=replaceSubstring(\\quot\\__Filter__\\quot\\\\comma\\char(0x27)\\comma\\char(0x22))//crlf////tab////tab//driverSetFilter(d\\comma\\sFilter\\comma\\false)//crlf////tab////tab//driverSetSort(d\\comma\\\\quot\\__Sort__\\quot\\\\comma\\true)//crlf////tab////tab//sResult=\\quot\\\\quot\\//crlf////tab////tab//c=driverGetRecordCount(d)//crlf////tab////tab//if(c>0)//crlf////tab////tab////tab//appendToLog(\\quot\\Opening POS_Generic_Daily_Sales Record count=\\quot\\+c)//crlf////tab////tab////tab//dTtl=0//crlf////tab////tab////tab//n=0//crlf////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab//sName=driverGetField(d\\comma\\\\quot\\__NameFieldID__\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab//sFieldID=driverGetField(d\\comma\\\\quot\\Sales_Structure_Field_ID\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab//dAmount=driverGetField(d\\comma\\\\quot\\Amount\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab//dTtl=dTtl+dAmount//crlf////crlf////tab////tab////tab////tab////open the row //crlf////tab////tab////tab////tab//sResult=sResult+quote(\\quot\\tr\\quot\\\\comma\\char(0x3C))//crlf////crlf////tab////tab////tab////tab////add a td tag for the description//crlf////tab////tab////tab////tab//sResult=sResult+quote(\\quot\\td style='white-space:nowrap'\\quot\\\\comma\\char(0x3C))//crlf////tab////tab////tab////tab//sResult=sResult+titlecase(sName)+char(13)+char(10)//crlf////tab////tab////tab////tab//sResult=sResult+quote(\\quot\\/td\\quot\\\\comma\\char(0x3C))//crlf////crlf////tab////tab////tab////tab//sResult=sResult+quote(\\quot\\td\\quot\\\\comma\\char(0x3C))//crlf////crlf////tab////tab////tab////tab////create a non-editable span tag//crlf////tab////tab////tab////tab//sResult=sResult+char(0x3C)+\\quot\\span name=\\quot\\+quote(sFieldID)//crlf////tab////tab////tab////tab//sResult=sResult+\\quot\\ class='number'\\quot\\//crlf////tab////tab////tab////tab//sResult=sResult+char(0x3E)//crlf////tab////tab////tab////tab//sResult=sResult+formatNumber(dAmount\\comma\\\\quot\\0.00\\quot\\)//crlf////tab////tab////tab////tab//sResult=sResult+quote(\\quot\\/span\\quot\\\\comma\\char(0x3C))//crlf////crlf////tab////tab////tab////tab////this creates an editable input tag (for possible future use)//crlf////tab////tab////tab////tab////sResult=sResult+char(0x3C)+\\quot\\input \\quot\\//crlf////tab////tab////tab////tab////sResult=sResult+\\quot\\ type='text'\\quot\\//crlf////tab////tab////tab////tab////sResult=sResult+\\quot\\ onChange=\\quot\\+quote(\\quot\\submitDialogCell(this)\\quot\\)//crlf////tab////tab////tab////tab////sResult=sResult+\\quot\\ name=\\quot\\+quote(sFieldID)//crlf////tab////tab////tab////tab////sResult=sResult+\\quot\\ class='number'\\quot\\//crlf////tab////tab////tab////tab////sResult=sResult+char(0x3E)//crlf////tab////tab////tab////tab////sResult=sResult+quote(\\quot\\/input\\quot\\\\comma\\char(0x3C))//crlf////tab////tab////tab////tab////crlf////tab////tab////tab////tab//sResult=sResult+quote(\\quot\\/td\\quot\\\\comma\\char(0x3C))//crlf////crlf////tab////tab////tab////tab////close the row//crlf////tab////tab////tab////tab//sResult=sResult+quote(\\quot\\/tr\\quot\\\\comma\\char(0x3C))+char(13)+char(10)//crlf////crlf////tab////tab////tab////tab//n++//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab////open the row //crlf////tab////tab////tab//sResult=sResult+quote(\\quot\\tr\\quot\\\\comma\\char(0x3C))//crlf////crlf////tab////tab////tab////add a td tag for the description//crlf////tab////tab////tab//sResult=sResult+quote(\\quot\\td\\quot\\\\comma\\char(0x3C))+\\quot\\//amp//nbsp\\quot\\+char(0x3B)+quote(\\quot\\/td\\quot\\\\comma\\char(0x3C))//crlf////tab////tab////tab//sResult=sResult+quote(\\quot\\td class='cash_reconcile_subtotal'\\quot\\\\comma\\char(0x3C))//crlf////tab////tab////tab//sResult=sResult+quote(\\quot\\span class='number'\\quot\\\\comma\\char(0x3C))//crlf////tab////tab////tab//sResult=sResult+formatNumber(dTtl\\comma\\\\quot\\//pound////pound////pound////pound////pound////pound//.00\\quot\\)//crlf////tab////tab////tab//sResult=sResult+quote(\\quot\\/span\\quot\\\\comma\\char(0x3C))//crlf////tab////tab////tab//sResult=sResult+quote(\\quot\\/td\\quot\\\\comma\\char(0x3C))//crlf////tab////tab////tab//sResult=sResult+quote(\\quot\\/tr\\quot\\\\comma\\char(0x3C))+char(13)+char(10)//crlf////tab////tab////tab//sResult=sResult+replaceSubstring(replaceSubstring(\\quot\\[tr][td colspan='2']//amp//nbsp\\quot\\+char(0x3B)+\\quot\\[/td][tr]\\quot\\\\comma\\\\quot\\[\\quot\\\\comma\\char(0x3C))\\comma\\\\quot\\]\\quot\\\\comma\\char(0x3E))//crlf////tab////tab//endif//crlf////tab////tab//driverClose(d)//crlf////crlf////tab////tab//scriptSetResult(sResult)//crlf////tab//\\quot\\>//crlf//</conditional>//crlf//
</widget><widget name="Verify Sales Setup" group="Sales" category="Setup" description="" type="Container" Mobile="false" Processing=0 metadata="" IncludeInViewer="false" PublicName="Verify Sales Setup" modified="03-29-2021 22:18:53" modifiedby="Thnikpad3" TaskEnabled=true IsAgent=true ContainsAgentSensors=false ContainsAgentActions=true TaskInitialStartTime=04-29-2016 00:00:00:000 TaskIntervalType=0 TaskLastExecuted= TaskCatchUpMissedTasks=false TaskYearsBetweenExecution=0 TaskMonthsBetweenExecution=0 TaskDaysBetweenExecution=0 TaskHoursBetweenExecution=0 TaskMinutesBetweenExecution=1 TaskSecondsBetweenExecution=0 TaskExecuteSun=true TaskExecuteMon=true TaskExecuteTue=true TaskExecuteWed=true TaskExecuteThu=true TaskExecuteFri=true TaskExecuteSat=true TaskConditional_Expression="len(getToken(\\quote\\POSInterface_StoreID\\quote\\))\\gt\\0" TaskConditional_Expression_Description="" TaskState_Function="gfs(getStoreDir(getToken(\\quote\\POSInterface_StoreID\\quote\\))+\\quote\\customsalesfields.bin\\quote\\)" TaskState_Expression_Description="" TaskWidgetParams="" TaskWindowForExecution=0>
Preferences|toolboxx=78|toolboxy=115|aspectfuncx=100|aspectfuncy=100|aspectfuncw=750|aspectfunch=auto|aspectfuncLock=false|aspectfuncVisible=false|PublishFtpFilename=Verify Sales Setup.html|PublishToFtpSite=false|PublishFTPAccount=0|PublishFtpDirectory=/|PublishFtpPublicDirectory=/|PublishCopyFile=false|PublishCopyFilename=|PublishWysiwig=false|PublishIncludeAspectScript=false|PublishIncludeAspectStyleshet=false|PublishAsText=false|^
ID=top_bar|X=0|Y=0|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=false|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=left_bar2015|X=0|Y=15|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=false|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=top_bar|AttachLeft=|AlignLeft=top_bar|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=code|X=300|Y=100|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<table class='tabdialog'>//crlf////tab//<tr>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'364895')\\quot\\>Javascript</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'AspectScript')\\quot\\>AspectScript</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'sensor_list')\\quot\\>Sensors</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'action_list')\\quot\\>Actions</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'debug_console')\\quot\\>Console</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'974031')\\quot\\>Notes</span></td>//crlf////tab//</tr>//crlf//</table>^
ID=364895|X=300|Y=125|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Javascript|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=AspectScript|X=300|Y=125|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Aspect_Script|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=sensor_list|X=300|Y=125|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Aspect_Script|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>//crlf////tab//{@if(\\quot\\__SensorExec__\\quot\\=\\quot\\true\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf////tab//{@if(getSystemValue(\\quot\\DevelopmentMode\\quot\\)\\comma\\fileModified(getToken(\\quot\\homedir\\quot\\)+\\quot\\cache\WidgetEdit_VWaUGu88BMN0hDYWzZj57VpG_Verify Sales Setup.html\\quot\\)\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//<conditional expression:(\\quot\\__sensor_list__\\quot\\=\\quot\\true\\quot\\)>//crlf//</conditional>//crlf////crlf//^
ID=action_list|X=300|Y=125|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=Aspect_Script|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>//crlf////tab//{@if(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf////tab//{@if(getSystemValue(\\quot\\DevelopmentMode\\quot\\)\\comma\\fileModified(getToken(\\quot\\homedir\\quot\\)\\plus\\\\quot\\cache~~backslash~~WidgetEdit_VWaUGu88BMN0hDYWzZj57VpG_Verify Sales Setup.html\\quot\\)\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//<conditional expression:(\\quot\\__action_list__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab//Verify Sales Setup\\comma\\initializzeSalesStructure\\comma\\action_list\\comma\\Action=initializzeSalesStructure\\comma\\private//crlf//</conditional>//crlf////crlf//<conditional expression:false>//crlf//========================================================================//crlf//initializzeSalesStructure//crlf//========================================================================//crlf//</conditional>//crlf//<conditional expression:(\\quot\\__Action__\\quot\\=\\quot\\initializzeSalesStructure\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__ActionDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Makes sure that certain fields are defined in the user-defined sales//crlf////tab////tab//structure including deposit1\\comma\\ deposit2 and over/short.//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//None//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Ok or Error//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\initializzeSalesStructure\\quot\\; commands:\\quot\\//crlf////tab////tab////tab////abort if already executing//crlf////tab////tab////tab//if(scriptCount(this)>1)//crlf////tab////tab////tab////tab//return(\\quot\\Error: Aborted because another instance is already running\\quot\\)//crlf////tab////tab////tab//endif//crlf////tab////tab////tab////crlf////tab////tab////tab////abort if active store not defined//crlf////tab////tab////tab//sStoreID=getToken(\\quot\\POSInterface_StoreID\\quot\\)//crlf////tab////tab////tab//if((len(sStoreID)=0) or (sStoreID=\\quot\\Undefined\\quot\\))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Active store is undefined: \\quot\\\\plus\\sStoreID)//crlf////tab////tab////tab//endif//crlf////tab////crlf////tab////tab////tab////create an array of records to be written to the driver//crlf////tab////tab////tab////Field types are://crlf////tab////tab////tab//////tab//3//tab//Char//crlf////tab////tab////tab//////tab//9//tab//Double//crlf////tab////tab////tab//////tab//7//tab//Long//crlf////tab////tab////tab//////tab//21//tab//LongDate//crlf////tab////tab////tab//////tab//0//tab//Undefined//crlf////tab////tab////tab//arRecords=\\quot\\Paid In\\comma\\false\\comma\\\\comma\\9\\comma\\true\\comma\\\\pound\\\\pound\\\\pound\\~~pipe~~\\pound\\\\pound\\\\pound\\.00\\comma\\true\\comma\\0\\comma\\Cash Adjust\\quot\\//crlf////tab////tab////tab//arRecords=arRecords\\plus\\\\quot\\//power//Paid Out\\comma\\false\\comma\\\\comma\\9\\comma\\true\\comma\\\\pound\\\\pound\\\\pound\\~~pipe~~\\pound\\\\pound\\\\pound\\.00\\comma\\true\\comma\\0\\comma\\Cash Adjust\\quot\\//crlf////tab////tab////tab//arRecords=arRecords\\plus\\\\quot\\//power//Total Cash Adjust\\comma\\true\\comma\\\\apos\\Paid In\\apos\\-\\apos\\Paid Out\\apos\\\\comma\\9\\comma\\true\\comma\\\\pound\\\\pound\\\\pound\\~~pipe~~\\pound\\\\pound\\\\pound\\.00\\comma\\true\\comma\\0\\comma\\Cash Adjust\\quot\\//crlf////tab////tab////tab//arRecords=arRecords\\plus\\\\quot\\//power//Deposit 1\\comma\\false\\comma\\\\comma\\9\\comma\\true\\comma\\\\pound\\\\pound\\\\pound\\~~pipe~~\\pound\\\\pound\\\\pound\\.00\\comma\\true\\comma\\0\\comma\\Deposit\\quot\\//crlf////tab////tab////tab//arRecords=arRecords\\plus\\\\quot\\//power//Deposit 2\\comma\\false\\comma\\\\comma\\9\\comma\\true\\comma\\\\pound\\\\pound\\\\pound\\~~pipe~~\\pound\\\\pound\\\\pound\\.00\\comma\\true\\comma\\0\\comma\\Deposit\\quot\\//crlf////tab////tab////tab//arRecords=arRecords\\plus\\\\quot\\//power//Total Deposit\\comma\\true\\comma\\\\apos\\Deposit 1\\apos\\\\plus\\\\apos\\Deposit 2\\apos\\\\comma\\9\\comma\\true\\comma\\\\pound\\\\pound\\\\pound\\~~pipe~~\\pound\\\\pound\\\\pound\\.00\\comma\\true\\comma\\0\\comma\\Deposit\\quot\\//crlf////tab////tab////tab//arRecords=arRecords\\plus\\\\quot\\//power//Deposit Due\\comma\\true\\comma\\\\apos\\Cash Due\\apos\\\\plus\\\\apos\\Paid In\\apos\\-\\apos\\Paid Out\\apos\\\\comma\\9\\comma\\true\\comma\\\\pound\\\\pound\\\\pound\\~~pipe~~\\pound\\\\pound\\\\pound\\.00\\comma\\true\\comma\\0\\comma\\Deposit\\quot\\//crlf////tab////tab////tab//arRecords=arRecords\\plus\\\\quot\\//power//Over/Short\\comma\\true\\comma\\\\apos\\Total Deposit\\apos\\-\\apos\\Deposit Due\\apos\\\\comma\\9\\comma\\true\\comma\\\\pound\\\\pound\\\\pound\\~~pipe~~\\pound\\\\pound\\\\pound\\.00\\comma\\true\\comma\\0\\comma\\Deposit\\quot\\//crlf////tab////tab////tab//arRecords=arRecords\\plus\\\\quot\\//power//Notes\\comma\\false\\comma\\\\comma\\3\\comma\\false\\comma\\\\comma\\false\\comma\\5\\comma\\Notes\\quot\\//crlf////crlf////tab////tab////tab////open the user-defined sales structure//crlf////tab////tab////tab//driverOpen(POS_Generic_User_Defined_Daily_Sales_Struct_No_VirtualIndex\\comma\\d\\comma\\WRITE\\comma\\false\\comma\\\\quot\\StoreID=\\quot\\\\plus\\sStoreID)//crlf////crlf////tab////tab////tab//cRecord=getElementCount(arRecords\\comma\\\\quot\\//power//\\quot\\)//crlf////tab////tab////tab//nRecord=0//crlf////tab////tab////tab//while(nRecord<cRecord)//crlf////tab////tab////tab////tab//s=replaceSubstring(getElement(arRecords\\comma\\nRecord\\comma\\\\quot\\//power//\\quot\\)\\comma\\char(0x27)\\comma\\char(0x22))//crlf////tab////tab////tab////tab//sDescription=getElement(s\\comma\\0)//crlf////tab////tab////tab////tab//sFieldID=toAscii(replaceSubstring(sDescription\\comma\\\\quot\\ \\quot\\\\comma\\\\quot\\_\\quot\\))//crlf////crlf////tab////tab////tab////tab//r=driverFindRecordAbsolute(d\\comma\\0\\comma\\\\quot\\FieldID=\\quot\\\\plus\\quote(sFieldID))//crlf////tab////tab////tab////tab//bIsNewRecord=false//crlf////tab////tab////tab////tab//if(r<0)//crlf////tab////tab////tab////tab////tab//bIsNewRecord=true//crlf////tab////tab////tab////tab////tab//r=driverAddNewRecord(d)//crlf////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab//appendToLog(\\quot\\initSalesStruct FieldID: \\quot\\\\plus\\sFieldID\\plus\\\\quot\\ IsNewRecord: \\quot\\\\plus\\bIsNewRecord)//crlf////crlf////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\used\\quot\\\\comma\\r\\comma\\true)//crlf////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\Description\\quot\\\\comma\\r\\comma\\getElement(s\\comma\\0))//crlf////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\IsCalculated\\quot\\\\comma\\r\\comma\\getElement(s\\comma\\1))//crlf////crlf////tab////tab////tab////tab////only write the formula and sort order if it\\apos\\s a new record.  Don\\apos\\t overwrite a formula that //crlf////tab////tab////tab////tab////may have been modified by a user//crlf////tab////tab////tab////tab//if(bIsNewRecord)//crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\Aspect_Structures_IsFormula\\quot\\\\comma\\r\\comma\\getElement(s\\comma\\2))//crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\Sort_Order\\quot\\\\comma\\r\\comma\\nRecord)//crlf////tab////tab////tab////tab////tab//appendToLog(\\quot\\initSalesStruct set sort_order=\\quot\\\\plus\\nRecord\\plus\\\\quot\\ for \\quot\\\\plus\\sFieldID)//crlf////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab//appendToLog(\\quot\\initSalesStruct not overriding formula or sort_order\\quot\\)//crlf////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\FieldType\\quot\\\\comma\\r\\comma\\getElement(s\\comma\\3))//crlf////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\Aspect_Structures_CalcSubtotal\\quot\\\\comma\\r\\comma\\getElement(s\\comma\\4))//crlf////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\Aspect_Structures_Pattern\\quot\\\\comma\\r\\comma\\getElement(s\\comma\\5))//crlf////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\Aspect_Structures_Suppress_Zeros\\quot\\\\comma\\r\\comma\\getElement(s\\comma\\6))//crlf////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\Number_Of_Text_Lines\\quot\\\\comma\\r\\comma\\getElement(s\\comma\\7))//crlf////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\Tags\\quot\\\\comma\\r\\comma\\getElement(s\\comma\\8))//crlf////tab////tab////tab////tab////crlf////tab////tab////tab////tab//nRecord\\plus\\\\plus\\//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab//driverClose(d)//crlf////tab////tab////tab//return(\\quot\\Ok: Updated \\quot\\\\plus\\cRecord\\plus\\\\quot\\ records\\quot\\)//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf//^
ID=debug_console|X=300|Y=125|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=debug_console|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=974031|X=300|Y=125|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=AgentStart|X=221|Y=40|W=150|H=20|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=AgentStart|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=left_bar|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=213676|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|AgentSuspended=false|AgentDebug=false|AgentReport=never|^
ID=74614|X=221|Y=329|W=119|H=45|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=AgentDecision|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=889128|AgentChildNoNode=812313|AgentSensor=1|AgentAction=initializzeSalesStructure|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=startsWith(Result//comma//~~backslash~~~~backslash~~quot~~backslash~~~~backslash~~ok~~backslash~~~~backslash~~quot~~backslash~~~~backslash~~)|AgentNodeActionReturnValue=|AgentNodeComment=Success?|AgentNodeTermType=0|^
ID=AgentTabs|X=221|Y=15|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=top_bar|AttachLeft=left_bar|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<table class='tabdialog'>//crlf////tab//<tr>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentStart');agentSetVisible(true)\\quot\\>Agent</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentDescription');agentSetVisible(false)\\quot\\>Description</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentStatus');agentSetVisible(false)\\quot\\>Status</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentScript');agentSetVisible(false)\\quot\\>Script</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'ScriptText');agentSetVisible(false)\\quot\\>Script (Text)</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentChart');agentSetVisible(false);agentFormatNodes(document.getElementById('AgentChart'));agentDrawConnectors(document.getElementById('AgentChart'))\\quot\\>Chart</span></td>//crlf////tab//</tr>//crlf//</table>//crlf//^
ID=AgentScript|X=221|Y=40|W=1000|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Aspect_Script|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<conditional expression:(\\quot\\__ExecAgentScript__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab//<!include type:script; name:\\quot\\agent_Verify Sales Setup\\quot\\; commands:\\quot\\//crlf////crlf////tab////tab//::node\\comma\\VWaUGu88BMN0hDYWzZj57VpG_Verify Sales Setup\\comma\\AgentStart\\comma\\AgentStart\\comma\\0\\comma\\//crlf////tab////tab////Created 04-29-2016 23:28:59//crlf////crlf////tab////tab////Force reporting when the agent is executed manually//crlf////tab////tab//bForceReport=((\\quot\\__ManualExecAgent__\\quot\\=\\quot\\true\\quot\\) or (false))//crlf////crlf////tab////tab////Record the starting time//crlf////tab////tab//tAgentStart=now()//crlf////crlf////tab////tab//::node\\comma\\VWaUGu88BMN0hDYWzZj57VpG_Verify Sales Setup\\comma\\AgentAction\\comma\\213676\\comma\\0\\comma\\initializzeSalesStructure//crlf////tab////tab//Result=execAgentAction(\\quot\\initializzeSalesStructure\\quot\\)//crlf////crlf////tab////tab////Success?//crlf////tab////tab//if(startsWith(Result\\comma\\\\quot\\ok\\quot\\))//crlf////tab////tab////tab//::node\\comma\\VWaUGu88BMN0hDYWzZj57VpG_Verify Sales Setup\\comma\\AgentTerminate\\comma\\889128\\comma\\0\\comma\\//crlf////tab////tab////tab//scriptSetResult(Result)//crlf////tab////tab//else//crlf////tab////tab////tab//::node\\comma\\VWaUGu88BMN0hDYWzZj57VpG_Verify Sales Setup\\comma\\AgentTerminate\\comma\\812313\\comma\\1\\comma\\//crlf////tab////tab////tab//scriptSetResult(Result)//crlf////tab////tab//endif//crlf////tab//\\quot\\>//crlf//</conditional>^
ID=ScriptText|X=221|Y=40|W=1000|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<span style='font:8pt tahoma;color:black'>//amp//lt;state//amp//gt;04292016//amp//nbsp;232859//amp//lt;/state//amp//gt;<br>//amp//lt;<span class='includecontrol'>conditional</span>//amp//nbsp;expression:(\\quot\\__ExecAgentScript__\\quot\\=\\quot\\true\\quot\\)//amp//gt;<br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//lt;!<span class='includecontrol'>include</span>//amp//nbsp;type:script;//amp//nbsp;name:\\quot\\agent_Verify//amp//nbsp;Sales//amp//nbsp;Setup\\quot\\;//amp//nbsp;commands:\\quot\\<br><br><span class='comment'>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//Created//amp//nbsp;04-29-2016//amp//nbsp;23:28:59</span><br><br><span class='comment'>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//Force//amp//nbsp;reporting//amp//nbsp;when//amp//nbsp;the//amp//nbsp;agent//amp//nbsp;is//amp//nbsp;executed//amp//nbsp;manually</span><br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;bForceReport=((\\quot\\__ManualExecAgent__\\quot\\=\\quot\\true\\quot\\)//amp//nbsp;or//amp//nbsp;(false))<br><br><span class='comment'>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//Record//amp//nbsp;the//amp//nbsp;starting//amp//nbsp;time</span><br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;tAgentStart=<span class='keyword'>now</span>()<br><br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;Result=<span class='keyword'>execAgentAction</span>(\\quot\\initializzeSalesStructure\\quot\\)<br><br><span class='comment'>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//Success?</span><br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;<span class='flowcontrol'><span class='keyword'>if</span>(</span><span class='keyword'>startsWith</span>(Result\\comma\\\\quot\\ok\\quot\\))<br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;<span class='keyword'>scriptSetResult</span>(Result)<br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;<span class='flowcontrol'>else</span><br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;<span class='keyword'>scriptSetResult</span>(Result)<br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;<span class='flowcontrol'>endif</span><br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;\\quot\\//amp//gt;<br>//amp//lt;/<span class='includecontrol'>conditional</span>//amp//gt;<br><br></span>^
ID=AgentDescription|X=221|Y=40|W=1000|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=AgentStatus|X=221|Y=40|W=1000|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Aspect_Script|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=AgentChart|X=221|Y=40|W=1000|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>04292016 232859</state>//crlf//<canvas height=\\quot\\100\\quot\\ width=\\quot\\100\\quot\\ style=\\quot\\position: absolute; top: 0px; left: 0px; width: 100px; height: 100px; border-style: none; z-index: 2;\\quot\\ id=\\quot\\agent_doc_canvas\\quot\\></canvas><div agentchildyesnode=\\quot\\chart213676\\quot\\ content_type=\\quot\\AgentAction\\quot\\ style=\\quot\\position: absolute; top: 0px; left: 0px; width: 120px; height: auto; display: block;\\quot\\ isagentdoc=\\quot\\true\\quot\\ id=\\quot\\chartAgentStart\\quot\\><canvas height=\\quot\\124\\quot\\ width=\\quot\\120\\quot\\ style=\\quot\\width: 120px; height: 124px; position: absolute; top: 0px; left: 0px;\\quot\\></canvas><div class=\\quot\\agentstart\\quot\\><b>Verify Sales Setup</b><br><span style=\\quot\\font-weight:normal;color:green\\quot\\>Active</span><br><span style=\\quot\\font-weight:normal;color:black\\quot\\>Debugging Is Off</span><br>Report Status: never<br>Report To: <br>Name Params: </div></div><div agentchildnonode=\\quot\\chart812313\\quot\\ agentchildyesnode=\\quot\\chart889128\\quot\\ content_type=\\quot\\AgentDecision\\quot\\ style=\\quot\\position: absolute; top: 284px; left: 0px; width: 150px; height: auto; display: block;\\quot\\ isagentdoc=\\quot\\true\\quot\\ id=\\quot\\chart74614\\quot\\><canvas height=\\quot\\38\\quot\\ width=\\quot\\120\\quot\\ style=\\quot\\width: 150px; height: 38px; position: absolute; top: 0px; left: 0px;\\quot\\></canvas><div class=\\quot\\agentdecision\\quot\\><table tabsinitialized=\\quot\\true\\quot\\><tbody><tr><td><u>Sensor</u></td><td>None<br></td></tr></tbody></table></div></div><div agentchildyesnode=\\quot\\chart74614\\quot\\ content_type=\\quot\\AgentAction\\quot\\ style=\\quot\\position: absolute; top: 176px; left: 0px; width: 150px; height: auto; display: block;\\quot\\ isagentdoc=\\quot\\true\\quot\\ id=\\quot\\chart213676\\quot\\><canvas height=\\quot\\56\\quot\\ width=\\quot\\120\\quot\\ style=\\quot\\width: 150px; height: 56px; position: absolute; top: 0px; left: 0px;\\quot\\></canvas><div class=\\quot\\agentaction\\quot\\><table tabsinitialized=\\quot\\true\\quot\\><tbody><tr><td><u>Action</u></td><td>initializzeSalesStructure<br></td></tr><tr><td><u>Return</u></td><td>Result</td></tr></tbody></table></div></div><div content_type=\\quot\\AgentTerminate\\quot\\ style=\\quot\\position: absolute; top: 374px; left: 0px; width: 120px; height: auto; display: block;\\quot\\ isagentdoc=\\quot\\true\\quot\\ id=\\quot\\chart889128\\quot\\><canvas height=\\quot\\46\\quot\\ width=\\quot\\120\\quot\\ style=\\quot\\width: 120px; height: 46px; position: absolute; top: 0px; left: 0px;\\quot\\></canvas><div class=\\quot\\agentterminator\\quot\\>Terminate<br><span style=\\quot\\color:green\\quot\\>Success</span></div></div><div content_type=\\quot\\AgentTerminate\\quot\\ style=\\quot\\position: absolute; top: 284px; left: 190px; width: 120px; height: auto; display: block;\\quot\\ isagentdoc=\\quot\\true\\quot\\ id=\\quot\\chart812313\\quot\\><canvas height=\\quot\\46\\quot\\ width=\\quot\\120\\quot\\ style=\\quot\\width: 120px; height: 46px; position: absolute; top: 0px; left: 0px;\\quot\\></canvas><div class=\\quot\\agentterminator\\quot\\>Terminate<br><span style=\\quot\\color:red\\quot\\>Fail</span></div></div>^
ID=213676|X=221|Y=221|W=150|H=20|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=AgentAction|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=74614|AgentChildNoNode=|AgentSensor=0|AgentAction=initializzeSalesStructure|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=Result|AgentNodeComment=|AgentNodeTermType=0|^
ID=889128|X=221|Y=419|W=150|H=20|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=AgentTerminate|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=0|AgentAction=initializzeSalesStructure|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=Result|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=0|^
ID=812313|X=411|Y=329|W=150|H=20|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=AgentTerminate|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=0|AgentAction=initializzeSalesStructure|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=Result|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=1|
</widget><widget name="Export Sales" group="" category="Export" description="Includes scripts used to call the appropriate merge definition for a selected sales export." type="Container" Mobile="false" Processing=0 metadata="" IncludeInViewer="false" PublicName="Export Sales" modified="08-03-2025 11:37:03" modifiedby="Thnikpad3" TaskEnabled=false IsAgent=false ContainsAgentSensors=false ContainsAgentActions=true TaskInitialStartTime=04-21-2024 02:18:35:000 TaskIntervalType=0 TaskLastExecuted= TaskCatchUpMissedTasks=false TaskYearsBetweenExecution=0 TaskMonthsBetweenExecution=0 TaskDaysBetweenExecution=0 TaskHoursBetweenExecution=0 TaskMinutesBetweenExecution=0 TaskSecondsBetweenExecution=0 TaskExecuteSun=true TaskExecuteMon=true TaskExecuteTue=true TaskExecuteWed=true TaskExecuteThu=true TaskExecuteFri=true TaskExecuteSat=true TaskConditional_Expression="" TaskConditional_Expression_Description="" TaskState_Function="" TaskState_Expression_Description="" TaskWidgetParams="" TaskWindowForExecution=0>
Preferences|toolboxx=20|toolboxy=293|aspectfuncx=243|aspectfuncy=100|aspectfuncw=849|aspectfunch=661|aspectfuncLock=true|aspectfuncVisible=false|PublishFtpFilename=Export Sales.html|PublishToFtpSite=false|PublishFTPAccount=0|PublishFtpDirectory=/|PublishFtpPublicDirectory=/|PublishCopyFile=false|PublishCopyFilename=|PublishWysiwig=false|PublishIncludeAspectScript=false|PublishIncludeAspectStyleshet=false|PublishAsText=false|^
ID=top_bar|X=0|Y=0|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=false|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=left_bar|X=0|Y=15|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=false|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=top_bar|AttachLeft=|AlignLeft=top_bar|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=code|X=1500|Y=0|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<table class='tabdialog'>//crlf////tab//<tr>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'36275')\\quot\\>Javascript</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'AspectScript')\\quot\\>AspectScript</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'sensor_list')\\quot\\>Sensors</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'action_list')\\quot\\>Actions</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'debug_console')\\quot\\>Console</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'183798')\\quot\\>Notes</span></td>//crlf////tab//</tr>//crlf//</table>^
ID=36275|X=1500|Y=26|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=Javascript|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<conditional expression:(true) or (\\quot\\__getContent__\\quot\\=\\quot\\JSExportSales\\quot\\)>//crlf////tab//function exportSales(TableID\\comma\\s) {//crlf////crlf////tab////tab////if complete\\comma\\ display message and exit//crlf////tab////tab//if(s) {//crlf////tab////tab////tab//if(s.toUpperCase().startsWith(\\quot\\ERROR\\quot\\)) {//crlf////tab////tab////tab////tab//showDialog(\\quot\\msg=\\quot\\+s+\\quot\\<br><br>//amp//fnOk=close\\quot\\);//crlf////tab////tab////tab//}//crlf////tab////tab////tab//else {//crlf////tab////tab////tab////tab////if the result is successful\\comma\\ the first line is a message followed by a cr and then the output//crlf////tab////tab////tab////tab//appendToLog(\\quot\\s=\\quot\\+s);//crlf////tab////tab////tab////tab//var n=s.indexOf(\\quot\\\r\\quot\\);//crlf////tab////tab////tab////tab//var sMsg=s.substring(0\\comma\\n);//crlf////tab////tab////tab////tab//var sOutput=s.substring(n+1)+\\quot\\\r\n\\quot\\;//crlf////tab////tab////tab////tab//showDialog(\\quot\\msg=\\quot\\+sMsg+\\quot\\<br><br>//amp//fnOk=close\\quot\\);//crlf////tab////tab////tab////tab////refreshTable(TableID\\comma\\\\quot\\refresh\\quot\\);//crlf////tab////crlf////tab////tab////tab////tab//if (navigator.appName !='Microsoft Internet Explorer'){//crlf////tab////tab////tab////tab////tab//window.open('data:text/csv;charset=utf-8\\comma\\' + escape(sOutput));//crlf////tab////tab////tab////tab//}  else{//crlf////tab////tab////tab////tab////tab//var popup=window.open(''\\comma\\'csv'\\comma\\'');//crlf////tab////tab////tab////tab////tab//popup.document.write(sOutput);//crlf////tab////tab////tab////tab//}//crlf////tab////tab////tab//};//crlf////tab////tab////tab//return;//crlf////tab////tab//};//crlf////crlf////tab////tab////get driver params from table//crlf////tab////tab//var eTable=document.getElementById(TableID);//crlf////tab////tab//var eParams=eTable.getAttribute(\\quot\\AspectParams\\quot\\);//crlf////tab////tab//var sDimDriverParams=getElementValue(eParams\\comma\\\\quot\\DimDriverParams\\quot\\\\comma\\\\quot\\~~pipe~~\\quot\\);//crlf////crlf////tab////tab////get from/to dates//crlf////tab////tab//var sFrom=getElementValue(sDimDriverParams\\comma\\\\quot\\From\\quot\\\\comma\\\\quot\\//power//\\quot\\);//crlf////tab////tab//var sTo=getElementValue(sDimDriverParams\\comma\\\\quot\\To\\quot\\\\comma\\\\quot\\//power//\\quot\\);//crlf////crlf////tab////tab////01-25-2018: Now\\comma\\ only a single store will appear.  The lines below are from earlier.//crlf////tab////tab//var sStoreID=getElementValue(sDimDriverParams\\comma\\\\quot\\StoreID\\quot\\\\comma\\\\quot\\//power//\\quot\\);//crlf////crlf////tab////tab////get storeID from params.  This will be a string consisting of//crlf////tab////tab////Store\\comma\\StoreID or Group\\comma\\StoreID1\\comma\\StoreID2//crlf////tab////tab//if(false) {//crlf////tab////tab////tab//var s=getElementValue(sDimDriverParams\\comma\\\\quot\\StoreID\\quot\\\\comma\\\\quot\\//power//\\quot\\);//crlf////tab////tab////tab//var a=getSubStringArray(s\\comma\\\\quot\\\\comma\\\\quot\\\\comma\\true);//crlf////tab////tab////tab//if(a[0].equalsIgnoreCase(\\quot\\group\\quot\\)) {//crlf////tab////tab////tab////tab//var s=\\quot\\Sales cannot be exported for multiple stores.  Please open the \\quot\\;//crlf////tab////tab////tab////tab//s+=\\quot\\Sales report for a single store before exporting.\\quot\\;//crlf////tab////tab////tab////tab//showDialog(\\quot\\msg=\\quot\\+s+\\quot\\<br><br>//amp//fnOk=close\\quot\\);//crlf////tab////tab////tab////tab//return;//crlf////tab////tab////tab//};//crlf////tab////tab////tab//var sStoreID=a[1];//crlf////tab////tab//};//crlf////crlf////tab////tab////get the HashID of the computer used to create the table.  This is the source//crlf////tab////tab////for the agent action//crlf////tab////tab//sHashID=eTable.getAttribute(\\quot\\AspectHashID\\quot\\);//crlf////crlf////tab////tab////export sales//crlf////tab////tab//showDialog(\\quot\\icon=true//amp//msg=Exporting sales...\\quot\\);//crlf////tab////tab//var sUrl=getServer()+\\quot\\/?Network=GreenLight//amp//ID=getWidget//amp//DocumentID=VWaUGu88BMN0hDYWzZj57VpG\\quot\\;//crlf////tab////tab//sUrl +=\\quot\\//amp//Widget=Export Sales//amp//ContainerItemID=action_list\\quot\\;//crlf////tab////tab//sUrl +=\\quot\\//amp//Action=exportSales//amp//ActionExec=true\\quot\\;//crlf////tab////tab//sUrl +=\\quot\\//amp//StoreID=\\quot\\+sStoreID+\\quot\\//amp//From=\\quot\\+sFrom+\\quot\\//amp//To=\\quot\\+sTo;//crlf////tab////tab//sUrl +=\\quot\\//amp//Source=\\quot\\+sHashID;//crlf////tab////tab//sFunc=\\quot\\exportSales('\\quot\\+TableID+\\quot\\'\\comma\\s)\\quot\\;//crlf////tab////tab//asynchInclude(null\\comma\\sUrl\\comma\\sFunc\\comma\\sFunc);//crlf////tab//};//crlf//</conditional>^
ID=AspectScript|X=1500|Y=26|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Aspect_Script|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=sensor_list|X=1500|Y=26|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Aspect_Script|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>//crlf////tab//{@if(\\quot\\__SensorExec__\\quot\\=\\quot\\true\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf////tab//{@if(getSystemValue(\\quot\\DevelopmentMode\\quot\\)\\comma\\fileModified(getToken(\\quot\\homedir\\quot\\)+\\quot\\cache\WidgetEdit_VWaUGu88BMN0hDYWzZj57VpG_Export Sales.html\\quot\\)\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//<conditional expression:(\\quot\\__sensor_list__\\quot\\=\\quot\\true\\quot\\)>//crlf//</conditional>//crlf////crlf//^
ID=action_list|X=1500|Y=26|W=1057|H=655|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=Aspect_Script|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>//crlf////tab//{@if(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf////tab//{@if(getSystemValue(\\quot\\DevelopmentMode\\quot\\)\\comma\\fileModified(getToken(\\quot\\homedir\\quot\\)+\\quot\\cache\WidgetEdit_VWaUGu88BMN0hDYWzZj57VpG_Export Sales.html\\quot\\)\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//<conditional expression:(\\quot\\__action_list__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab//Export Sales\\comma\\updateChartOfAccounts\\comma\\action_list\\comma\\Action=updateChartOfAccounts\\comma\\private//crlf////tab//Export Sales\\comma\\exportSales\\comma\\action_list\\comma\\Action=exportSales\\comma\\private//crlf//</conditional>//crlf////crlf//<conditional expression:false>//crlf//========================================================================//crlf//updateChartOfAccounts//crlf//========================================================================//crlf//</conditional>//crlf//<conditional expression:(\\quot\\__Action__\\quot\\=\\quot\\updateChartOfAccounts\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__ActionDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Updates the chart of accounts to include fields from the daily sales drivers and //crlf////tab////tab//the user-defined structure.  Used the \\quot\\Consolidated Daily Sales with User Inputs\\quot\\//crlf////tab////tab//dimensional driver//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//StoreID - Store ID//crlf////tab////tab//From - Optional.  Starting date (MM-dd-yyyy) for daily sales drivers to include.  //crlf////tab////tab////tab//Default is 7 days prior to the current date.//crlf////tab////tab//To - Optional.  Ending date (MM-dd-yyyy) for daily sales drivers to include.//crlf////tab////tab////tab//Default is the current date//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Ok or Error//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\updateChartOfAccounts\\quot\\; commands:\\quot\\//crlf////tab////tab////tab////abort if already executing//crlf////tab////tab////tab//if(scriptCount(this)>1)//crlf////tab////tab////tab////tab//return(\\quot\\Error: Aborting because an instance is already running\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if StoreID is undefined//crlf////tab////tab////tab//if(undefined(\\quot\\__StoreID__\\quot\\))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing StoreID\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////get default starting date if a starting date is not defined//crlf////tab////tab////tab//if(defined(\\quot\\__From__\\quot\\))//crlf////tab////tab////tab////tab//sFrom=\\quot\\__From__\\quot\\//crlf////tab////tab////tab//else//crlf////tab////tab////tab////tab//sFrom=formatDate(incrementTime(now()\\comma\\-45)\\comma\\\\quot\\MM-dd-yyyy\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////get default ending date if a starting date is not defined//crlf////tab////tab////tab//if(defined(\\quot\\__To__\\quot\\))//crlf////tab////tab////tab////tab//sTo=\\quot\\__To__\\quot\\//crlf////tab////tab////tab//else//crlf////tab////tab////tab////tab//sTo=formatDate(now()\\comma\\\\quot\\MM-dd-yyyy\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab//appendToLog(\\quot\\updateChartOfAccounts StoreID=__StoreID__ From=\\quot\\+sFrom+\\quot\\ To=\\quot\\+sTo)//crlf////crlf////tab////tab////tab////open the dimensional driver used to consolidate the daily sales drivers and //crlf////tab////tab////tab////the user-defined fields//crlf////tab////tab////tab//sParams=\\quot\\StoreID=__StoreID__~~pipe~~From=\\quot\\+sFrom+\\quot\\~~pipe~~To=\\quot\\+sTo//crlf////tab////tab////tab//sDrvSrc=openDimensionalDriver(\\quot\\tPKytguD\\quot\\\\comma\\sParams)//crlf////tab////tab////tab////driverSetSubtotal(sDrvSrc\\comma\\\\quot\\Sum\\quot\\\\comma\\\\quot\\Record_Type\\comma\\POS_ID\\quot\\)//crlf////tab////tab////tab////driverSetDetails(sDrvSrc\\comma\\false)//crlf////tab////tab////tab//driverSetFilter(sDrvSrc\\comma\\\\quot\\true\\quot\\\\comma\\true)//crlf////crlf////tab////tab////tab////execute the merge//crlf////tab////tab////tab//sMergeParams=\\quot\\MergeID=Y5AqQELx//amp//SourceDriver=\\quot\\+sDrvSrc//crlf////tab////tab////tab//sMergeParams=sMergeParams+\\quot\\//amp//DestDriverParams=StoreID=__StoreID__\\quot\\//crlf////tab////tab////tab//s=execAgentAction(\\quot\\executeMergeDefinition\\quot\\\\comma\\sMergeParams)//crlf////crlf////tab////tab////tab//return(s)//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf////crlf////crlf//<conditional expression:false>//crlf//========================================================================//crlf//exportSales//crlf//========================================================================//crlf//</conditional>//crlf//<conditional expression:(\\quot\\__Action__\\quot\\=\\quot\\exportSales\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__ActionDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Exports sales to a selected format for a given store and time period.//crlf////crlf////tab////tab//Data may be exported for multiple stores and dates.  Each store is exported in //crlf////tab////tab//succession and a single output file is created for each store containing all dates.//crlf////crlf////tab////tab//Merge definitions are used to merge the daily sales to the selected driver (e.g. Quickbooks).//crlf////tab////tab//The export file is pipe-delimited.  The first field is a key in the form//crlf////tab////tab//Record_Type~POS_ID~GL_Account_Code~dateNumber.  The second field is a hardwired tab.  The //crlf////tab////tab//remaining fields define the data that will be included in the final output.  These fields //crlf////tab////tab//are collectively referred to as content.//crlf////crlf////tab////tab//The export file is opened as a tab-delimited driver containing two fields: key and content.  //crlf////tab////tab//The content field of the export file is merged to the final output.//crlf////crlf////tab////tab//The final output is then cleaned up in this action.  This includes things like replacing //crlf////tab////tab//the pipe delimiter with tabs or commas.//crlf////crlf////tab////tab//This action has been written to allow for more than one merge definition when creating the //crlf////tab////tab//export file.  It is not apparent that this will be needed.  //crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//StoreID - Comma-delimited array of store ID's.  Can also be a string formatted as //crlf////tab////tab////tab//Store\\comma\\StoreID or Group\\comma\\GroupID.  These strings occur when a store/group select//crlf////tab////tab////tab//box is used to get the store selection//tab////crlf////tab////tab//Date - Date (MM-dd-yyyy)//crlf////tab////tab//From - Start date (MM-dd-yyyy)//crlf////tab////tab//To - End date (MM-dd-yyyy)//crlf////tab////tab//ExportFormat - Export format//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Ok or Error//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\exportSales\\quot\\; commands:\\quot\\//crlf////tab////tab////tab//appendToLog(\\quot\\Export sales StoreID=__StoreID__ Date=__Date__ From=__From__ To=__To__ ExportFormat=__ExportFormat__\\quot\\)//crlf////crlf////tab////tab////tab////=========================================================================//crlf////tab////tab////tab////Verify all parameters//crlf////tab////tab////tab////=========================================================================//crlf////tab////tab////tab////abort if already executing//crlf////tab////tab////tab//if(scriptCount(this)>1)//crlf////tab////tab////tab////tab//return(\\quot\\Error: Aborting because another instance is already executing\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if StoreID is undefined//crlf////tab////tab////tab//if(undefined(\\quot\\__StoreID__\\quot\\))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing StoreID\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////get start/end dates//crlf////tab////tab////tab//if(defined(\\quot\\__Date__\\quot\\)) //crlf////tab////tab////tab////tab//sFromDate=\\quot\\__Date__\\quot\\//crlf////tab////tab////tab////tab//sToDate=\\quot\\__Date__\\quot\\//crlf////tab////tab////tab//else//crlf////tab////tab////tab////tab//if(undefined(\\quot\\__From__\\quot\\))//crlf////tab////tab////tab////tab////tab//return(\\quot\\Error: Missing From date\\quot\\)//crlf////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab//if(undefined(\\quot\\__To__\\quot\\))//crlf////tab////tab////tab////tab////tab//return(\\quot\\Error: Missing To date\\quot\\)//crlf////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab//sFromDate=\\quot\\__From__\\quot\\//crlf////tab////tab////tab////tab//sToDate=\\quot\\__To__\\quot\\//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab//arStoreID=expandStoreID(\\quot\\__StoreID__\\quot\\)//crlf////tab////tab////tab//cStore=getElementCount(arStoreID)//crlf////tab////tab////tab//if(cStore=0)//crlf////tab////tab////tab////tab//return(\\quot\\Error: Invalid store ID: __StoreID__\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////Export data for each store.  The export is completed and the output is copied to //crlf////tab////tab////tab////the file specified in the store setup for each store.  The debugging tables will //crlf////tab////tab////tab////only show the output from the last store if more than one store is exported.//crlf////crlf////tab////tab////tab////initialize the content that will be returned as a download in the browser//crlf////tab////tab////tab//sReturnValue=\\quot\\\\quot\\//crlf////crlf////tab////tab////tab//nStore=0//crlf////tab////tab////tab//while(nStore<cStore)//crlf////tab////tab////tab////tab//sStoreID=getElement(arStoreID\\comma\\nStore)//crlf////tab////tab////tab////tab////crlf////tab////tab////tab////tab////if ExportFormat is undefined\\comma\\ get the exportformat from the store//crlf////tab////tab////tab////tab//if((defined(\\quot\\__ExportFormat__\\quot\\)) and (len(\\quot\\__ExportFormat__\\quot\\)>0))//crlf////tab////tab////tab////tab////tab//sExportFormat=\\quot\\__ExportFormat__\\quot\\//crlf////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab//sExportFormat=lookup(Aspect_BackOffice_Sales_Export_Format_by_ID\\comma\\sStoreID)//crlf////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab//if((len(sExportFormat)=0) or (sExportFormat=\\quot\\0\\quot\\))//crlf////tab////tab////tab////tab////tab//return(\\quot\\Error: Missing ExportFormat\\quot\\)//crlf////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////=========================================================================//crlf////tab////tab////tab////tab////Set the merge definitions used to export the necessary data//crlf////tab////tab////tab////tab////The destination driver and filename are recorded as each merge is done and//crlf////tab////tab////tab////tab////this information is used to consolidate the exported files//crlf////tab////tab////tab////tab////=========================================================================//crlf////tab////tab////tab////tab//if(sExportFormat=\\quot\\Generic\\quot\\)//crlf////tab////tab////tab////tab////tab//arMergeDef=\\quot\\\\quot\\//crlf////tab////tab////tab////tab////tab//arFilter=\\quot\\\\quot\\//crlf////tab////tab////tab////tab//elseif(sExportFormat=\\quot\\Dynamics\\quot\\)//crlf////tab////tab////tab////tab////tab//arMergeDef=\\quot\\\\quot\\//crlf////tab////tab////tab////tab////tab//arFilter=\\quot\\\\quot\\//crlf////tab////tab////tab////tab//elseif(sExportFormat=\\quot\\Mas90\\quot\\)//crlf////tab////tab////tab////tab////tab//arMergeDef=\\quot\\D2OncJM3\\quot\\//crlf////tab////tab////tab////tab////tab//arFilter=\\quot\\true\\quot\\//crlf////tab////tab////tab////tab//elseif(sExportFormat=\\quot\\Peachtree\\quot\\)//crlf////tab////tab////tab////tab////tab//arMergeDef=\\quot\\\\quot\\//crlf////tab////tab////tab////tab////tab//arFilter=\\quot\\\\quot\\//crlf////tab////tab////tab////tab//elseif(sExportFormat=\\quot\\QuickBooks\\quot\\)//crlf////tab////tab////tab////tab////tab//arMergeDef=\\quot\\C9EPF2wU\\quot\\//crlf////tab////tab////tab////tab////tab//arFilter=\\quot\\true\\quot\\//crlf////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab//return(\\quot\\Error: Unrecognized export format\\quot\\)//crlf////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab//if(len(arMergeDef)=0)//crlf////tab////tab////tab////tab////tab//return(\\quot\\Error: No merge definitions for format: \\quot\\+sExportFormat+\\quot\\ StoreID=__StoreID__\\quot\\)//crlf////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////=========================================================================//crlf////tab////tab////tab////tab////Set final output filename and clear the contents //crlf////tab////tab////tab////tab////=========================================================================//crlf////tab////tab////tab////tab//sFinalOutputFilename=getToken(\\quot\\temporary_files\\quot\\)+\\quot\\sales_export_final.csv\\quot\\//crlf////tab////tab////tab////tab//if(fileExists(sFinalOutputFilename))//crlf////tab////tab////tab////tab////tab//fileSetLength(sFinalOutputFilename\\comma\\0)//crlf////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////=========================================================================//crlf////tab////tab////tab////tab////write the store ID and export format to a temp file.  This is used for debugging //crlf////tab////tab////tab////tab////so the appropriate drivers can be used when viewing the export files in this widget.//crlf////tab////tab////tab////tab////=========================================================================//crlf////tab////tab////tab////tab//s=sStoreID+\\quot\\~~pipe~~\\quot\\+arMergeDef//crlf////tab////tab////tab////tab//fileWriteContent(getToken(\\quot\\temporary_files\\quot\\)+\\quot\\sales_export_metadata.$$$\\quot\\\\comma\\s)//crlf////crlf////tab////tab////tab////tab////=========================================================================//crlf////tab////tab////tab////tab////open the dimensional driver//crlf////tab////tab////tab////tab////=========================================================================//crlf////tab////tab////tab////tab//dExportSales=openDimensionalDriver(\\quot\\tPKytguD\\quot\\\\comma\\\\quot\\StoreID=\\quot\\+sStoreID+\\quot\\~~pipe~~From=\\quot\\+sFromDate+\\quot\\~~pipe~~To=\\quot\\+sToDate)//crlf////tab////tab////tab////tab//driverSetSort(dExportSales\\comma\\\\quot\\Date\\quot\\\\comma\\false)//crlf////tab////tab////tab////tab//appendToLog(\\quot\\Sales export absolute record count=\\quot\\+driverGetRecordCount(dExportSales\\comma\\true))//crlf////crlf////tab////tab////tab////tab////=========================================================================//crlf////tab////tab////tab////tab////export each merge definition.  Save the destination driverID and Merge //crlf////tab////tab////tab////tab////definition name and filename so the consolidated driver can be opened.//crlf////tab////tab////tab////tab////This information is also saved to a file to be used when opening tables//crlf////tab////tab////tab////tab////to debug the export//crlf////tab////tab////tab////tab////=========================================================================//crlf////tab////tab////tab////tab//cMerge=getElementCount(arMergeDef)//crlf////tab////tab////tab////tab//nMerge=0//crlf////tab////tab////tab////tab//while(nMerge<cMerge)//crlf////tab////tab////tab////tab////tab//sMergeID=getElement(arMergeDef\\comma\\nMerge)//crlf////tab////tab////tab////tab////tab//sFilter=getElement(arFilter\\comma\\nMerge\\comma\\\\quot\\~~pipe~~\\quot\\)//crlf////tab////tab////tab////tab////tab//sFilter=\\quot\\(\\quot\\+sFilter+\\quot\\) and (not(Amount=0)) and (not(len(GL_Account_Code)=0)) and (not(GL_Account_Code=\\quot\\+quote(\\quot\\0\\quot\\)+\\quot\\))\\quot\\//crlf////tab////tab////tab////tab////tab//appendToLog(\\quot\\sFilter=\\quot\\+sFilter)//crlf////tab////tab////tab////tab////tab//driverSetFilter(dExportSales\\comma\\sFilter\\comma\\true)//crlf////tab////tab////tab////tab////tab//appendToLog(\\quot\\Sales export filtered record count=\\quot\\+driverGetRecordCount(dExportSales))//crlf////crlf////tab////tab////tab////tab////tab//sMergeName=lookup(Aspect_Merge_Definition_Name_by_ID\\comma\\sMergeID)//crlf////tab////tab////tab////tab////tab//sMergeDestDriverID=lookup(Aspect_Merge_Definition_Dest_Driver_ID_by_ID\\comma\\sMergeID)//crlf////crlf////tab////tab////tab////tab////tab//sFilename=getToken(\\quot\\temporary_files\\quot\\)+\\quot\\sales_export_\\quot\\+sMergeID+\\quot\\.$$$\\quot\\//crlf////tab////tab////tab////tab////tab//if(fileExists(sFilename))//crlf////tab////tab////tab////tab////tab////tab//fileSetLength(sFilename\\comma\\0)//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab//appendToLog(\\quot\\MergeID: \\quot\\+sMergeID+\\quot\\ MergeName: \\quot\\+sMergeName+\\quot\\ DriverID: \\quot\\+sMergeDestDriverID+\\quot\\ Filename: \\quot\\+sFilename)//crlf////tab////tab////tab////tab////tab//sArgs=\\quot\\MergeID=\\quot\\+sMergeID//crlf////tab////tab////tab////tab////tab//sArgs=sArgs+\\quot\\//amp//SourceDriver=\\quot\\+dExportSales//crlf////tab////tab////tab////tab////tab//sArgs=sArgs+\\quot\\//amp//DestDriverParams=Filename=\\quot\\+sFilename//crlf////tab////tab////tab////tab////tab//s=execAgentAction(\\quot\\executeMergeDefinition\\quot\\\\comma\\sArgs)//crlf////tab////tab////tab////tab////tab//appendToLog(s)//crlf////crlf////tab////tab////tab////tab////tab////remove quotes from the output file.  Quotes are placed around text fields by the driver //crlf////tab////tab////tab////tab////tab////and these will get in the way when the driver is opened as a tab-delimited driver//crlf////tab////tab////tab////tab////tab//s=fileGetContent(sFilename)//crlf////tab////tab////tab////tab////tab//s=replaceSubstring(s\\comma\\char(0x22)\\comma\\\\quot\\\\quot\\)//crlf////tab////tab////tab////tab////tab//fileWriteContent(sFilename\\comma\\s)//crlf////crlf////tab////tab////tab////tab////tab//nMerge++//crlf////tab////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab////tab////close the dimensional driver//crlf////tab////tab////tab////tab//driverClose(dExportSales)//crlf////crlf////tab////tab////tab////tab////=========================================================================//crlf////tab////tab////tab////tab////open a consolidated driver containing all outputs//crlf////tab////tab////tab////tab////=========================================================================//crlf////tab////tab////tab////tab//sParams=\\quot\\MergeID=\\quot\\+arMergeDef//crlf////tab////tab////tab////tab//driverOpen(POS_Generic_Sales_Export_Consolidated\\comma\\drvConsolidated\\comma\\READ\\comma\\true\\comma\\sParams)//crlf////crlf////tab////tab////tab////tab////=========================================================================//crlf////tab////tab////tab////tab////sort and filter the consolidated driver//crlf////tab////tab////tab////tab////=========================================================================//crlf////tab////tab////tab////tab////driverSetSort(drvConsolidated\\comma\\\\quot\\Date\\comma\\Record_Type\\comma\\POS_ID\\quot\\\\comma\\false)//crlf////tab////tab////tab////tab//driverSetSort(drvConsolidated\\comma\\\\quot\\Date\\comma\\GL_Sort_Order\\quot\\\\comma\\false)//crlf////tab////tab////tab////tab//driverSetFilter(drvConsolidated\\comma\\\\quot\\true\\quot\\\\comma\\true)//crlf////tab////tab////tab////tab//appendToLog(\\quot\\********* consolidated driver record count=\\quot\\+driverGetRecordCount(drvConsolidated)+\\quot\\/\\quot\\+driverGetRecordCount(drvConsolidated\\comma\\true))//crlf////crlf////tab////tab////tab////tab////=========================================================================//crlf////tab////tab////tab////tab////merge the consolidated driver to the final output//crlf////tab////tab////tab////tab////=========================================================================//crlf////tab////tab////tab////tab//sArgs=\\quot\\MergeID=Opwv2JCe\\quot\\//crlf////tab////tab////tab////tab//sArgs=sArgs+\\quot\\//amp//SourceDriver=\\quot\\+drvConsolidated//crlf////tab////tab////tab////tab//sArgs=sArgs+\\quot\\//amp//DestDriverParams=Filename=\\quot\\+sFinalOutputFilename//crlf////tab////tab////tab////tab//s=execAgentAction(\\quot\\executeMergeDefinition\\quot\\\\comma\\sArgs)//crlf////tab////tab////tab////tab//appendToLog(\\quot\\********* merge final: \\quot\\+s)//crlf////crlf////tab////tab////tab////tab////close the consolidated driver//crlf////tab////tab////tab////tab//driverClose(drvConsolidated)//crlf////crlf////tab////tab////tab////tab////remove quotes from the final output file//crlf////tab////tab////tab////tab//s=fileGetContent(sFinalOutputFilename)//crlf////tab////tab////tab////tab//s=replaceSubstring(s\\comma\\char(0x22)\\comma\\\\quot\\\\quot\\)//crlf////tab////tab////tab////tab//fileWriteContent(sFinalOutputFilename\\comma\\s)//crlf////crlf////tab////tab////tab////tab////=========================================================================//crlf////tab////tab////tab////tab////Perform any special handling of the final output//crlf////tab////tab////tab////tab////Note: quotes around specific fields could be added here if necessary.//crlf////tab////tab////tab////tab////Process the output line by line\\comma\\ using setElement() to set the value of //crlf////tab////tab////tab////tab////selected elements to the current value plus surrounding quotes.//crlf////tab////tab////tab////tab////=========================================================================//crlf////tab////tab////tab////tab//if(sExportFormat=\\quot\\QuickBooks\\quot\\)//crlf////tab////tab////tab////tab////tab//sFinal=fileGetContent(sFinalOutputFilename)//crlf////crlf////tab////tab////tab////tab////tab////iterate through the records in the file.  Replace SPL with TRNS in the first //crlf////tab////tab////tab////tab////tab////line of each transaction (where the date change occurs)//crlf////tab////tab////tab////tab////tab//sNewFinal=\\quot\\\\quot\\//crlf////tab////tab////tab////tab////tab//c=getElementCount(sFinal\\comma\\char(10))//crlf////tab////tab////tab////tab////tab//n=0//crlf////tab////tab////tab////tab////tab//sLastDate=\\quot\\\\quot\\//crlf////tab////tab////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab////tab////tab//s=getElement(sFinal\\comma\\n\\comma\\char(10))//crlf////tab////tab////tab////tab////tab////tab//if(len(trim(s))>0)//crlf////tab////tab////tab////tab////tab////tab////tab////if moving to a new date\\comma\\ replace SPL with TRANS.  Add and ENDTRNS[cr][lf] if //crlf////tab////tab////tab////tab////tab////tab////tab////if is not the first transaction in the file//crlf////tab////tab////tab////tab////tab////tab////tab//sDate=getElement(s\\comma\\2\\comma\\\\quot\\~~pipe~~\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab//if(sDate<>sLastDate)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//if(sLastDate=\\quot\\\\quot\\) //crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//s=\\quot\\TRNS\\quot\\+substring(s\\comma\\3)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//s=\\quot\\ENDTRNS\\quot\\+char(13)+char(10)+\\quot\\TRNS\\quot\\+substring(s\\comma\\3)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sLastDate=sDate//crlf////tab////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////crlf////tab////tab////tab////tab////tab////tab////tab////replace pipes with tabs//crlf////tab////tab////tab////tab////tab////tab////tab//s=replaceSubstring(s\\comma\\\\quot\\~~pipe~~\\quot\\\\comma\\char(9))//crlf////tab////tab////tab////tab////tab////tab////tab//sNewFinal=sNewFinal+s+char(10)//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////tab//n++//crlf////tab////tab////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab////tab////tab////add the header at the top of the file//crlf////tab////tab////tab////tab////tab//s=char(0x21)+\\quot\\TRNS~~pipe~~TRNSTYPE~~pipe~~DATE~~pipe~~ACCNT~~pipe~~NAME~~pipe~~CLASS~~pipe~~AMOUNT~~pipe~~MEMO\\quot\\+char(13)+char(10)//crlf////tab////tab////tab////tab////tab//s=s+char(0x21)+\\quot\\SPL~~pipe~~TRNSTYPE~~pipe~~DATE~~pipe~~ACCNT~~pipe~~NAME~~pipe~~CLASS~~pipe~~AMOUNT~~pipe~~MEMO\\quot\\+char(13)+char(10)//crlf////tab////tab////tab////tab////tab//s=s+char(0x21)+\\quot\\ENDTRNS\\quot\\+char(13)+char(10)//crlf////tab////tab////tab////tab////tab//s=replaceSubstring(s\\comma\\\\quot\\~~pipe~~\\quot\\\\comma\\char(9))//crlf////tab////tab////tab////tab////tab//sNewFinal=s+sNewFinal//crlf////crlf////tab////tab////tab////tab////tab////add ENDTRNS as final line//crlf////tab////tab////tab////tab////tab//sNewFinal=sNewFinal+\\quot\\ENDTRNS\\quot\\+char(13)+char(10)//crlf////crlf////tab////tab////tab////tab////tab////replace any tokenized apostrophes and quotes//crlf////tab////tab////tab////tab////tab//sNewFinal=replaceSubstring(sNewFinal\\comma\\\\quot\\\x27\\quot\\\\comma\\char(0x27))//crlf////tab////tab////tab////tab////tab//sNewFinal=replaceSubstring(sNewFinal\\comma\\\\quot\\\x22\\quot\\\\comma\\char(0x22))//crlf////crlf////tab////tab////tab////tab////tab//fileWriteContent(sFinalOutputFilename\\comma\\sNewFinal)//crlf////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab//if(sExportFormat=\\quot\\Mas90\\quot\\)//crlf////tab////tab////tab////tab////tab//sFinal=fileGetContent(sFinalOutputFilename)//crlf////crlf////tab////tab////tab////tab////tab////iterate through the records in the file.  //crlf////tab////tab////tab////tab////tab//sLastDate=\\quot\\\\quot\\//crlf////tab////tab////tab////tab////tab//sNewFinal=\\quot\\\\quot\\//crlf////tab////tab////tab////tab////tab//c=getElementCount(sFinal\\comma\\char(10))//crlf////tab////tab////tab////tab////tab//n=0//crlf////tab////tab////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab////tab////tab//s=getElement(sFinal\\comma\\n\\comma\\char(10))//crlf////tab////tab////tab////tab////tab////tab//if(len(trim(s))>0)//crlf////tab////tab////tab////tab////tab////tab////tab////remove dashes from date and set the 2nd field to the date plus the store code//crlf////tab////tab////tab////tab////tab////tab////tab//sStoreCode=getElement(s\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab////tab//sDate=getElement(s\\comma\\2)//crlf////tab////tab////tab////tab////tab////tab////tab//sDate=replaceSubstring(sDate\\comma\\\\quot\\-\\quot\\\\comma\\\\quot\\\\quot\\)//crlf////crlf////tab////tab////tab////tab////tab////tab////tab////output a header line if the date has changed//crlf////tab////tab////tab////tab////tab////tab////tab//if(sDate<>sLastDate)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sHeader=getElement(s\\comma\\0)+char(9)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sHeader=sHeader+sDate+sStoreCode+char(9)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sHeader=sHeader+sDate+char(9)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sHeader=sHeader+char(9)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sHeader=sHeader+\\quot\\H\\quot\\+char(9)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sHeader=sHeader+char(9)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sHeader=sHeader+\\quot\\0.00\\quot\\//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sNewFinal=sNewFinal+sHeader+char(13)+char(10)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sLastDate=sDate//crlf////tab////tab////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////tab////tab//s=setElement(s\\comma\\1\\comma\\sDate+sStoreCode)//crlf////tab////tab////tab////tab////tab////tab////tab//s=setElement(s\\comma\\2\\comma\\sDate)//crlf////crlf////tab////tab////tab////tab////tab////tab////tab////format the amount with two decimals//crlf////tab////tab////tab////tab////tab////tab////tab//d1=value(getElement(s\\comma\\6))//crlf////tab////tab////tab////tab////tab////tab////tab//s=setElement(s\\comma\\6\\comma\\formatNumber(d1\\comma\\\\quot\\0.00\\quot\\))//crlf////crlf////tab////tab////tab////tab////tab////tab////tab////replace commas with tabs.  Do this before replacing the account code with the account //crlf////tab////tab////tab////tab////tab////tab////tab////name in case there are commas in the name//crlf////tab////tab////tab////tab////tab////tab////tab//s=replaceSubstring(s\\comma\\\\quot\\\\comma\\\\quot\\\\comma\\char(9))//crlf////crlf////tab////tab////tab////tab////tab////tab////tab////replace the first g/l account code with the name from the external chart of accounts//crlf////tab////tab////tab////tab////tab////tab////tab//sGlAccountCode=getElement(s\\comma\\3\\comma\\char(9))//crlf////tab////tab////tab////tab////tab////tab////tab//sGLAccountName=lookup(POS_Generic_External_Chart_Of_Account_Name_by_Key_No_Sort\\comma\\sGLAccountCode\\comma\\0\\comma\\\\quot\\StoreID=\\quot\\+sStoreID)//crlf////tab////tab////tab////tab////tab////tab////tab//s=setElement(s\\comma\\3\\comma\\sGLAccountName\\comma\\char(9))//crlf////crlf////tab////tab////tab////tab////tab////tab////tab//sNewFinal=sNewFinal+s+char(13)+char(10)//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////tab//n++//crlf////tab////tab////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab////tab////tab////special handing for Tudors//crlf//if(false)//crlf////tab////tab////tab////tab////tab//if(pos(getToken(\\quot\\Aspect_BackOffice_Pref_CompanyPollingID\\quot\\)\\comma\\\\quot\\5giaVJp4RHUYyuIZqOtT98Tc\\comma\\VhGFwJcWHG2CnERns1zILedS\\quot\\)>=0)//crlf////tab////tab////tab////tab////tab////tab//sFinal=sNewFinal//crlf////tab////tab////tab////tab////tab////tab//sNewFinal=\\quot\\\\quot\\//crlf////crlf////tab////tab////tab////tab////tab////tab////replace tabs with commas//crlf////tab////tab////tab////tab////tab////tab//sFinal=replaceSubstring(sFinal\\comma\\char(9)\\comma\\char(0x2C))//crlf////tab////tab////tab////tab////crlf////tab////tab////tab////tab////tab////tab////Additional lines are added to handle credit cards.  These lines start with a header //crlf////tab////tab////tab////tab////tab////tab////line.  Initialize this header using the same header line that starts the file//crlf////tab////tab////tab////tab////tab////tab////add a \\quot\\2\\quot\\ to column F in the header record.  A 1 is added to column F in the //crlf////tab////tab////tab////tab////tab////tab////original header record below to distinguish the two//crlf////tab////tab////tab////tab////tab////tab//sAddHeader=getElement(sFinal\\comma\\0\\comma\\char(13))+char(13)+char(10)//crlf////tab////tab////tab////tab////tab////tab//sAddHeader=setElement(sAddHeader\\comma\\5\\comma\\\\quot\\2\\quot\\)//crlf////crlf////tab////tab////tab////tab////tab////tab//sFinal=replaceSubstring(sFinal\\comma\\char(10)\\comma\\\\quot\\\\quot\\)//crlf////tab////tab////tab////tab////tab////tab//dCreditCardTtl=0//crlf////tab////tab////tab////tab////tab////tab//sTtlCreditCardLine=\\quot\\\\quot\\//crlf////tab////tab////tab////tab////tab////tab//c=getElementCount(sFinal\\comma\\char(13))//crlf////tab////tab////tab////tab////tab////tab//n=0//crlf////tab////tab////tab////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab////tab////tab////tab//s=getElement(sFinal\\comma\\n\\comma\\char(13))//crlf////tab////tab////tab////tab////tab////tab////tab//if(len(s)>0)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////remove dash from account number//crlf////tab////tab////tab////tab////tab////tab////tab////tab//s1=getElement(s\\comma\\5)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//s=setElement(s\\comma\\5\\comma\\replaceSubstring(s1\\comma\\\\quot\\-\\quot\\\\comma\\\\quot\\\\quot\\))//crlf////crlf////tab////tab////tab////tab////tab////tab////tab////tab////add a \\quot\\1\\quot\\ to column F in the header record//crlf////tab////tab////tab////tab////tab////tab////tab////tab//if(getElement(s\\comma\\4)=\\quot\\h\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//s=setElement(s\\comma\\5\\comma\\\\quot\\1\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////tab////tab////tab////override credit card line.  Replace description and account//crlf////tab////tab////tab////tab////tab////tab////tab////tab////There will be more than one line.  Calculate the total of all lines in dCreditCardTtl//crlf////tab////tab////tab////tab////tab////tab////tab////tab////This total is added as an additional line in the last step below//crlf////tab////tab////tab////tab////tab////tab////tab////tab//s1=getElement(s\\comma\\3)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//if(s1=\\quot\\A/R - Credit Cards\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab////Replace the name with \\quot\\Credit Card\\quot\\//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//s=setElement(s\\comma\\3\\comma\\\\quot\\Credit Card\\quot\\)//crlf////crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab////Replace the first four digits of the code with 1111//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//sCode=getElement(s\\comma\\5)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//sCode=\\quot\\1111\\quot\\+substring(sCode\\comma\\4)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//s=setElement(s\\comma\\5\\comma\\sCode)//crlf////crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab////accumulate the total//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//dbl=value(getElement(s\\comma\\6))//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//dCreditCardTtl=dCreditCardTtl+dbl//crlf////crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab////add a line to the additional header that will be added at the end//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab////This is the same as the credit card line except the amount is negative//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//s1=s//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//s1=setElement(s1\\comma\\6\\comma\\formatNumber(-dbl\\comma\\\\quot\\0.00\\quot\\))//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//sAddHeader=sAddHeader+s1+char(13)+char(10)//crlf////crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab////save the line to use as a template for the credit card total in the additional //crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab////header added below.  Everything is the same except the account code is //crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab////changed to start with 1010//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//sTtlCreditCardLine=s1//crlf////tab////tab////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////crlf////tab////tab////tab////tab////tab////tab////tab////tab//sNewFinal=sNewFinal+s+char(13)+char(10)//crlf////tab////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab////tab//n++//crlf////tab////tab////tab////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab////tab////tab////tab////add line for total credit cards to the additional header//crlf////tab////tab////tab////tab////tab////tab//sTtlCreditCardLine=setElement(sTtlCreditCardLine\\comma\\3\\comma\\\\quot\\Cash In Bank: Hurrt\\quot\\)//crlf////tab////tab////tab////tab////tab////tab//s1=getElement(sTtlCreditCardLine\\comma\\5)//crlf////tab////tab////tab////tab////tab////tab//s1=replaceSubstring(s1\\comma\\\\quot\\1111\\quot\\\\comma\\\\quot\\1010\\quot\\)//crlf////tab////tab////tab////tab////tab////tab//sTtlCreditCardLine=setElement(sTtlCreditCardLine\\comma\\5\\comma\\s1)//crlf////tab////tab////tab////tab////tab////tab//sTtlCreditCardLine=setElement(sTtlCreditCardLine\\comma\\6\\comma\\formatNumber(dCreditCardTtl\\comma\\\\quot\\0.00\\quot\\))//crlf////tab////tab////tab////tab////tab////tab//sAddHeader=sAddHeader+sTtlCreditCardLine+char(13)+char(10)//crlf////tab////tab////tab////tab////tab////tab//sNewFinal=sNewFinal+sAddHeader+char(13)+char(10)//crlf////tab////tab////tab////tab////tab//endif//crlf//endif//crlf////crlf////tab////tab////tab////tab////tab//fileWriteContent(sFinalOutputFilename\\comma\\sNewFinal)//crlf////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////copy the final output to the filename specified in the store record//crlf////tab////tab////tab////tab//sOutputFilename=lookup(Aspect_BackOffice_Sales_Export_Filename_by_ID\\comma\\sStoreID)//crlf////tab////tab////tab////tab//if(len(trim(sOutputFilename))>0)//crlf////tab////tab////tab////tab////tab//appendToLog(\\quot\\Copying sales export to \\quot\\+sOutputFilename)//crlf////tab////tab////tab////tab////tab//fileCopy(sFinalOutputFilename\\comma\\sOutputFilename)//crlf////tab////tab////tab////tab////tab//sReturnValue=sReturnValue+fileGetContent(sFinalOutputFilename)//crlf////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab//return(\\quot\\Error: No sales output file name specified in store record\\quot\\+char(13));//crlf////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////crlf////tab////tab////tab////tab//nStore++//crlf////tab////tab////tab//endwhile//crlf////tab////tab////tab////crlf////tab////tab////tab////crlf////tab////tab////tab//return(\\quot\\Ok\\quot\\+char(13)+sReturnValue)//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf//^
ID=debug_console|X=1500|Y=26|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=debug_console|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=183798|X=1500|Y=26|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=761593|X=183|Y=15|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=top_bar|AttachLeft=left_bar|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<select onChange=\\quot\\showTab(this)\\quot\\>//crlf////tab//<option value='240991'>Table For Export Sales (Delete)</option>//crlf////tab//<option value='245971'>Table For Export Sales </option>//crlf////tab//<option value='311936'>Export Files</option>//crlf////tab//<option value='594716'>Export Files - Include</option>//crlf////tab//<option value='58816'>External Chart Of Accounts</option>//crlf////tab//<option value='732550'>Aspect6 Quickbooks Setup</option>//crlf////tab//<option value='640844'>Transposed user-defined daily sales driver</option>//crlf////tab//<option value='520218'>Placeholder 7</option>//crlf////tab//<option value='431391'>Placeholder 8</option>//crlf////tab//<option value='568221'>Placeholder 9</option>//crlf////tab//<option value='81266'>Placeholder 10</option>//crlf//</select>//crlf//^
ID=311936|X=183|Y=33|W=1048|H=683|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=761593|AttachLeft=|AlignLeft=761593|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=[!------------------------------------------------------------------------//crlf//This item displays a select box used to select the export file to be //crlf//viewed.  It also includes the consolidated driver containing all export //crlf//files and the final output.//crlf//Content is displayed by including the Export Files - Content item.//crlf//--------------------------------------------------------------------------]//crlf////crlf//<conditional expression:(true) or (defined(\\quot\\__getContent\\quot\\))>//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\salt\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\lowercase(getSalt(4)))>//crlf////crlf////tab//[!------------------------------------------------------------------------//crlf////tab//Set constant for store ID//crlf////tab//--------------------------------------------------------------------------]//crlf////tab//<!include type:script; commands:\\quot\\//crlf////tab////tab//s=fileGetContent(getToken(\\quot\\temporary_files\\quot\\)+\\quot\\sales_export_metadata.$$$\\quot\\)//crlf////tab////tab//sStoreID=getElement(s\\comma\\0\\comma\\\\quot\\~~pipe~~\\quot\\)//crlf////tab////tab//return(htmlConstant(\\quot\\StoreID\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\sStoreID))//crlf////tab//\\quot\\>//crlf////crlf////tab//[!------------------------------------------------------------------------//crlf////tab//Set constant for initial content selection//crlf////tab//--------------------------------------------------------------------------]//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\SelectedContent\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\\\quot\\final\\quot\\)>//crlf////crlf////tab//[!------------------------------------------------------------------------//crlf////tab//Javascript used to update the content when the select box changes//crlf////tab//--------------------------------------------------------------------------]//crlf////tab//<script ID=\\quot\\JSSalesExportOutput\\quot\\>//crlf////tab////tab//function salesExportContentSelected(e\\comma\\salt)//tab//{//crlf////tab////tab////tab//var d=document.getElementById(salt+\\quot\\SalesExportContent\\quot\\);//crlf////tab////tab////tab//var sUrl=d.getAttribute(\\quot\\_url\\quot\\);//crlf////tab////tab////tab//var sUrl=sUrl+\\quot\\//amp//getContent=\\quot\\+e.value+\\quot\\//amp//salt=\\quot\\+salt;//crlf////tab////tab////tab//showStatusIcon(d);//crlf////tab////tab////tab//asynchInclude(d\\comma\\sUrl);//crlf////tab////tab//};//crlf////tab//</script>//crlf////crlf////tab//<div style=\\quot\\width:100\\percent\\;max-width:800px\\quot\\>//crlf////tab////tab//[!------------------------------------------------------------------------//crlf////tab////tab//Overview//crlf////tab////tab//--------------------------------------------------------------------------]//crlf////tab////tab//<!include type:widget; server:{AspectHashID}; secure:true; documentID:\\quot\\K4Ui6j3Y1rwlvukPkOqn25Em\\quot\\; widget:\\quot\\Notification Container\\quot\\; containerItemID:\\quot\\601689\\quot\\; params:\\quot\\action=getheader//amp//Chapter=__salt__//amp//Section=Overview\\quot\\;>//crlf////tab////tab////tab//<p>The sales export is accomplished through a series of merges.</p>//crlf////tab////tab////tab//<ul>//crlf////tab////tab////tab////tab//<li>The daily sales driver is merged into a pipe-delimited file using a merge definition.  //crlf////tab////tab////tab////tab////tab//A unique key is created for the merge. The key is a tilde delimited string: //crlf////tab////tab////tab////tab////tab//Record_Type~POS_ID~GL_Account_Code~dateNumber</li>//crlf////tab////tab////tab////tab//<li>The export file contains the key in the first field\\comma\\ a tab in the second field and the contents //crlf////tab////tab////tab////tab////tab//to be exported in the remaining fields.  The driver is opened as a tab-delimited file.  The  //crlf////tab////tab////tab////tab////tab//content is treated as a single field and the content is merged to the final export file.</li>//crlf////tab////tab////tab////tab//<li>After the final merge the export may be modified by code written for the specific export.  //crlf////tab////tab////tab////tab////tab//For example\\comma\\ a header is added to the Quickbooks export.</li>//crlf////tab////tab////tab//</ul>//crlf////tab////tab//<!include type:widget; server:{AspectHashID}; secure:true; documentID:\\quot\\K4Ui6j3Y1rwlvukPkOqn25Em\\quot\\; widget:\\quot\\Notification Container\\quot\\; containerItemID:\\quot\\601689\\quot\\; params:\\quot\\action=getfooter\\quot\\;>//crlf////crlf////tab////tab//[!------------------------------------------------------------------------//crlf////tab////tab//Export Files//crlf////tab////tab//--------------------------------------------------------------------------]//crlf////tab////tab//<!include type:widget; server:{AspectHashID}; secure:true; documentID:\\quot\\K4Ui6j3Y1rwlvukPkOqn25Em\\quot\\; widget:\\quot\\Notification Container\\quot\\; containerItemID:\\quot\\601689\\quot\\; params:\\quot\\action=getheader//amp//Chapter=__salt__//amp//Section=Export Files\\quot\\;>//crlf////tab////tab////tab//[!------------------------------------------------------------------------//crlf////tab////tab////tab//Read export definitions and store code.  Set constants and create a select//crlf////tab////tab////tab//box used to select an output file//crlf////tab////tab////tab//--------------------------------------------------------------------------]//crlf////tab////tab////tab//<select onChange=\\quot\\salesExportContentSelected(this\\comma\\'__salt__')\\quot\\>//crlf////tab////tab////tab////tab//<option value=\\quot\\final\\quot\\ selected=\\quot\\selected\\quot\\>Final Output</option>//crlf////tab////tab////tab////tab//<option value=\\quot\\Consolidated\\quot\\>Consolidated Output</option>//crlf////tab////tab////tab////tab//<!include type:script; commands:\\quot\\//crlf////tab////tab////tab////tab////tab//s=fileGetContent(getToken(\\quot\\temporary_files\\quot\\)+\\quot\\sales_export_metadata.$$$\\quot\\)//crlf////tab////tab////tab////tab////tab//sStoreID=getElement(s\\comma\\0\\comma\\\\quot\\~~pipe~~\\quot\\)//crlf////tab////tab////tab////tab////tab//arMergeID=getElement(s\\comma\\1\\comma\\\\quot\\~~pipe~~\\quot\\)//crlf////tab////tab////tab////tab////tab//appendToLog(\\quot\\arMergeID=\\quot\\+arMergeID)//crlf////tab////tab////tab////tab////tab//sResult=\\quot\\\\quot\\//crlf////tab////tab////tab////tab////tab//c=getElementCount(arMergeID)//crlf////tab////tab////tab////tab////tab//n=0//crlf////tab////tab////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab////tab////tab//sMergeID=getElement(arMergeID\\comma\\n)//crlf////tab////tab////tab////tab////tab////tab//sMergeName=lookup(Aspect_Merge_Definition_Name_by_ID\\comma\\sMergeID)//crlf////crlf////tab////tab////tab////tab////tab////tab////add an option for the export file//crlf////tab////tab////tab////tab////tab////tab//sResult=sResult+quote(\\quot\\option value=\\quot\\+quote(sMergeID\\comma\\char(0x27))\\comma\\char(0x3C))//crlf////tab////tab////tab////tab////tab////tab//sResult=sResult+sMergeName+quote(\\quot\\/option\\quot\\\\comma\\char(0x3c))+char(13)+char(10)//crlf////crlf////tab////tab////tab////tab////tab////tab////add an option for the export file read as a tab-delimited file//crlf////tab////tab////tab////tab////tab////tab//sResult=sResult+quote(\\quot\\option value=\\quot\\+quote(\\quot\\_\\quot\\+sMergeID\\comma\\char(0x27))\\comma\\char(0x3C))//crlf////tab////tab////tab////tab////tab////tab//sResult=sResult+sMergeName+\\quot\\ (tab-delimited)\\quot\\+quote(\\quot\\/option\\quot\\\\comma\\char(0x3c))+char(13)+char(10)//crlf////tab////tab////tab////tab////tab////tab//n++//crlf////tab////tab////tab////tab////tab//endwhile//crlf////tab////tab////tab////tab////tab//appendToLog(\\quot\\sResult=\\quot\\+sResult)//crlf////tab////tab////tab////tab////tab//return(sResult)//crlf////tab////tab////tab////tab//\\quot\\>//crlf////tab////tab////tab//</select>//crlf////crlf////tab////tab////tab//[!------------------------------------------------------------------------//crlf////tab////tab////tab//Include the selected content.  The content is loaded using an interval and//crlf////tab////tab////tab//a url.  The div is initialized using an include tag to display the final//crlf////tab////tab////tab//output file.//crlf////tab////tab////tab//--------------------------------------------------------------------------]//crlf////tab////tab////tab//<div //tab////crlf////tab////tab////tab////tab//ID=\\quot\\__salt__SalesExportContent\\quot\\ //crlf////tab////tab////tab////tab//interval='0' //crlf////tab////tab////tab////tab//style='width:100\\percent\\;' //crlf////tab////tab////tab////tab//_url='__RequestServer__/?Network=GreenLight//amp//ID=getWidget//amp//source=//crlf////tab////tab////tab////tab////tab////amp//DocumentID=VWaUGu88BMN0hDYWzZj57VpG//amp//Widget=Export Sales//amp//ContainerItemID=594716'>//crlf////crlf////tab////tab////tab////tab//[!------------------------------------------------------------------------//crlf////tab////tab////tab////tab//Initialize the div with the final sales export output//crlf////tab////tab////tab////tab//--------------------------------------------------------------------------]//crlf////tab////tab////tab////tab//<include //crlf////tab////tab////tab////tab////tab//type:widget; //crlf////tab////tab////tab////tab////tab//server:{AspectHashID}; //crlf////tab////tab////tab////tab////tab//secure:true; //crlf////tab////tab////tab////tab////tab//documentID:\\quot\\VWaUGu88BMN0hDYWzZj57VpG\\quot\\; //crlf////tab////tab////tab////tab////tab//widget:\\quot\\Export Sales\\quot\\; //crlf////tab////tab////tab////tab////tab//containerItemID:\\quot\\594716\\quot\\; //crlf////tab////tab////tab////tab////tab//params:\\quot\\getContent=final\\quot\\;>//tab////crlf////tab////tab////tab//</div> //crlf////tab////tab//<!include type:widget; server:{AspectHashID}; secure:true; documentID:\\quot\\K4Ui6j3Y1rwlvukPkOqn25Em\\quot\\; widget:\\quot\\Notification Container\\quot\\; containerItemID:\\quot\\601689\\quot\\; params:\\quot\\action=getfooter\\quot\\;>//crlf////tab//</div>//crlf//</conditional>//crlf////crlf////crlf////crlf////crlf//^
ID=58816|X=183|Y=33|W=794|H=672|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=761593|AttachLeft=|AlignLeft=761593|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=[!------------------------------------------------------------------------//crlf//For debugging//crlf//< _include type:expression; expression:htmlConstant(\\quot\\StoreID\\quot\\\\comma\\\\quot\\__StoreID__\\quot\\\\comma\\\\quot\\KZX2VBNGExCTHrLmixKxY8eJ\\quot\\)>//crlf//--------------------------------------------------------------------------]//crlf////crlf//<conditional expression:(defined(\\quot\\__StoreID__\\quot\\))>//crlf////tab//[!------------------------------------------------------------------------//crlf////tab//Get the sales export format.  This is used in the display metadata//crlf////tab//--------------------------------------------------------------------------]//crlf////tab//<!include type:expression; expression:htmlConstant(\\quot\\ExportFormat\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\lookup(Aspect_BackOffice_Sales_Export_Format_by_ID\\comma\\\\quot\\__StoreID__\\quot\\))>//crlf////crlf////tab//<!conditional expression:(len(\\quot\\__ExportFormat__\\quot\\)=0) or (\\quot\\__ExportFormat__\\quot\\=\\quot\\0\\quot\\)>//crlf////tab////tab//<p>An export format has not been selected for this store.</p>//crlf////tab//</conditional>//crlf////crlf////tab//<!conditional expression:(not(len(\\quot\\__ExportFormat__\\quot\\)=0)) and (not(\\quot\\__ExportFormat__\\quot\\=\\quot\\0\\quot\\))>//crlf////tab////tab//<!!include type:driver;//crlf////tab////tab////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab////tab////tab//title: \\quot\\\\quot\\;//crlf////tab////tab////tab//ID: \\quot\\\\quot\\;//crlf////tab////tab////tab//HashID: \\quot\\\\quot\\;//crlf////tab////tab////tab//driver: \\quot\\POS_GENERIC_EXTERNAL_CHART_OF_ACCOUNTS\\quot\\;//crlf////tab////tab////tab//name: \\quot\\\\quot\\;//crlf////tab////tab////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab////tab////tab//dispose: \\quot\\false\\quot\\;//crlf////tab////tab////tab//state: \\quot\\\\quot\\;//crlf////tab////tab////tab//params: \\quot\\StoreID=__StoreID__~~pipe~~keyexpression=ID~~pipe~~CacheTtl=0~~pipe~~Metadata=POS_GENERIC_EXTERNAL_CHART_OF_ACCOUNTS___ExportFormat__\\quot\\;//crlf////tab////tab////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab////tab////tab//display: \\quot\\\\quot\\;//crlf////tab////tab////tab//fields: \\quot\\\\quot\\;//crlf////tab////tab////tab//IncludeFields: \\quot\\\\quot\\;//crlf////tab////tab////tab//ExcludeFields: \\quot\\\\quot\\;//crlf////tab////tab////tab//sort: \\quot\\ID\\quot\\;//crlf////tab////tab////tab//filter: \\quot\\true\\quot\\;//crlf////tab////tab////tab//BaseFilter: \\quot\\\\quot\\;//crlf////tab////tab////tab//class: \\quot\\basic1\\quot\\;//crlf////tab////tab////tab//maxrecords: \\quot\\250\\quot\\;//crlf////tab////tab////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab////tab////tab//style: \\quot\\width:auto\\quot\\;//crlf////tab////tab////tab//_style: \\quot\\float:left;width:100\\percent\\\\quot\\;//crlf////tab////tab////tab//height:\\quot\\auto\\quot\\;//crlf////tab////tab////tab//_maxheight:\\quot\\300px\\quot\\;//crlf////tab////tab////tab//canSelect: \\quot\\false\\quot\\;//crlf////tab////tab////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab////tab////tab//canEdit: \\quot\\false\\quot\\;//crlf////tab////tab////tab//canAdd: \\quot\\false\\quot\\;//crlf////tab////tab////tab//canDelete: \\quot\\false\\quot\\;//crlf////tab////tab////tab//inspectMenu: \\quot\\\\quot\\;//crlf////tab////tab////tab//EmbedValues: \\quot\\\\quot\\;//crlf////tab////tab////tab//EditDialogID: \\quot\\POS_GENERIC_EXTERNAL_CHART_OF_ACCOUNTSDialog\\quot\\;//crlf////tab////tab////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab////tab////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab////tab////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab////tab////tab//ExternalFilters: \\quot\\\\quot\\;//crlf////tab////tab////tab//TableControls: \\quot\\true\\quot\\;//crlf////tab////tab////tab//TableHeader: \\quot\\true\\quot\\;//crlf////tab////tab////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab////tab////tab//RecordCount: \\quot\\true\\quot\\;//crlf////tab////tab////tab//Timestamp: \\quot\\true\\quot\\;//crlf////tab////tab////tab//SelectDisplay: \\quot\\true\\quot\\;//crlf////tab////tab////tab//EditDisplay: \\quot\\true\\quot\\;//crlf////tab////tab////tab//Menu: \\quot\\\\quot\\;//crlf////tab////tab////tab//Messages: \\quot\\true\\quot\\;//crlf////tab////tab////tab//ChartType: \\quot\\\\quot\\;//crlf////tab////tab////tab//ChartWidth: \\quot\\640\\quot\\;//crlf////tab////tab////tab//ChartHeight: \\quot\\480\\quot\\;//crlf////tab////tab////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab////tab////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab////tab////tab//ChartStyle: \\quot\\display:none\\quot\\;//crlf////tab////tab////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab////tab////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab////tab////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab////tab////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab////tab////tab//_Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab////tab////tab//debug: \\quot\\false\\quot\\;//crlf////tab////tab//>//crlf////tab//</conditional>//crlf//</conditional>//crlf//<div style=\\quot\\width:100px;height:100px\\quot\\></div>^
ID=732550|X=183|Y=33|W=794|H=672|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=761593|AttachLeft=|AlignLeft=761593|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=//crlf//<conditional expression:defined(\\quot\\__Aspect6StoreDir__\\quot\\)>//crlf////tab//<!include type:expression; expression:htmlConstant(\\quot\\Filename\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\addDirSlash(\\quot\\__Aspect6StoreDir__\\quot\\)+\\quot\\slqbooks.dta\\quot\\)>//crlf////crlf////tab//<!!include type:driver;//crlf////tab////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab////tab//title: \\quot\\\\quot\\;//crlf////tab////tab//ID: \\quot\\\\quot\\;//crlf////tab////tab//HashID: \\quot\\\\quot\\;//crlf////tab////tab//driver: \\quot\\ASPECT6_TQBSLEXPREC\\quot\\;//crlf////tab////tab//name: \\quot\\\\quot\\;//crlf////tab////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab////tab//dispose: \\quot\\false\\quot\\;//crlf////tab////tab//state: \\quot\\\\quot\\;//crlf////tab////tab//params: \\quot\\Filename=__Filename__~~pipe~~keyexpression=ID~~pipe~~CacheTtl=0~~pipe~~Metadata=ASPECT6_TQBSLEXPREC\\quot\\;//crlf////tab////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab////tab//display: \\quot\\\\quot\\;//crlf////tab////tab//fields: \\quot\\\\quot\\;//crlf////tab////tab//IncludeFields: \\quot\\\\quot\\;//crlf////tab////tab//ExcludeFields: \\quot\\\\quot\\;//crlf////tab////tab//sort: \\quot\\ID\\quot\\;//crlf////tab////tab//filter: \\quot\\true\\quot\\;//crlf////tab////tab//BaseFilter: \\quot\\\\quot\\;//crlf////tab////tab//class: \\quot\\basic1\\quot\\;//crlf////tab////tab//maxrecords: \\quot\\250\\quot\\;//crlf////tab////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab////tab//style: \\quot\\width:auto\\quot\\;//crlf////tab////tab//_style: \\quot\\float:left;width:100\\percent\\\\quot\\;//crlf////tab////tab//height:\\quot\\auto\\quot\\;//crlf////tab////tab//_maxheight:\\quot\\300px\\quot\\;//crlf////tab////tab//canSelect: \\quot\\false\\quot\\;//crlf////tab////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab////tab//canEdit: \\quot\\false\\quot\\;//crlf////tab////tab//canAdd: \\quot\\false\\quot\\;//crlf////tab////tab//canDelete: \\quot\\false\\quot\\;//crlf////tab////tab//inspectMenu: \\quot\\\\quot\\;//crlf////tab////tab//EmbedValues: \\quot\\\\quot\\;//crlf////tab////tab//EditDialogID: \\quot\\ASPECT6_TQBSLEXPRECDialog\\quot\\;//crlf////tab////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab////tab//ExternalFilters: \\quot\\\\quot\\;//crlf////tab////tab//TableControls: \\quot\\true\\quot\\;//crlf////tab////tab//TableHeader: \\quot\\true\\quot\\;//crlf////tab////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab////tab//RecordCount: \\quot\\true\\quot\\;//crlf////tab////tab//Timestamp: \\quot\\true\\quot\\;//crlf////tab////tab//SelectDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//EditDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//Menu: \\quot\\\\quot\\;//crlf////tab////tab//Messages: \\quot\\true\\quot\\;//crlf////tab////tab//ChartType: \\quot\\\\quot\\;//crlf////tab////tab//ChartWidth: \\quot\\640\\quot\\;//crlf////tab////tab//ChartHeight: \\quot\\480\\quot\\;//crlf////tab////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab////tab//ChartStyle: \\quot\\display:none\\quot\\;//crlf////tab////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab////tab//_Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab////tab//debug: \\quot\\false\\quot\\;//crlf////tab//>//crlf//</conditional>//crlf////crlf//<div style=\\quot\\width:100px;height:100px\\quot\\></div>//crlf//^
ID=594716|X=183|Y=33|W=794|H=672|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=761593|AttachLeft=|AlignLeft=761593|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=[!------------------------------------------------------------------------//crlf//Gets the content for a sales export file//crlf////crlf//Parameters//crlf////tab//getContent - A value indicating the content to be returned.  Values of //crlf////tab////tab//\\quot\\final\\quot\\ and \\quot\\consolidated\\quot\\ return either the final output or the //crlf////tab////tab//consolidated driver used to produce the final output.//crlf////tab////tab//The value may also be a merge ID or a merge ID preceeded by an underscore.//crlf////tab////tab//When a merge ID is passed\\comma\\ the driver and filename are determined from //crlf////tab////tab//the merge ID.  When the merge ID is preceeded by an underscore\\comma\\ the //crlf////tab////tab//tab-delimited driver used in the consolidated driver is used to open//crlf////tab////tab//the driver//crlf//--------------------------------------------------------------------------]//crlf////crlf//<conditional expression:not(defined(\\quot\\__getContent__\\quot\\))>//crlf////tab//<h1>GetContent=__GetContent__</h1>//crlf//</conditional>//crlf////crlf//<conditional expression:defined(\\quot\\__getContent__\\quot\\)>//crlf////tab//[!------------------------------------------------------------------------//crlf////tab//Set constants for the Driver ID\\comma\\ Metadata\\comma\\ Filename and title//crlf////tab//--------------------------------------------------------------------------]//crlf////tab//<!include type:script; commands:\\quot\\//crlf////tab////tab//if(\\quot\\__getContent__\\quot\\=\\quot\\final\\quot\\)//crlf////tab////tab////tab//sTitle=\\quot\\Final Output\\quot\\//crlf////tab////tab////tab//sDriverID=\\quot\\POS_Generic_Sales_Export_Final\\quot\\//crlf////tab////tab////tab//sMetadata=\\quot\\Final\\quot\\//crlf////tab////tab////tab//sAddDriverParams=\\quot\\Filename=\\quot\\+getToken(\\quot\\temporary_files\\quot\\)+\\quot\\sales_export_final.csv\\quot\\//crlf////tab////tab//elseif(\\quot\\__getContent__\\quot\\=\\quot\\consolidated\\quot\\)//crlf////tab////tab////tab//sTitle=\\quot\\Consolidated\\quot\\//crlf////tab////tab////tab//sDriverID=\\quot\\POS_Generic_Sales_Export_Consolidated\\quot\\//crlf////tab////tab////tab//sMetadata=\\quot\\Consolidated\\quot\\//crlf////crlf////tab////tab////tab//s=fileGetContent(getToken(\\quot\\temporary_files\\quot\\)+\\quot\\sales_export_metadata.$$$\\quot\\)//crlf////tab////tab////tab//arMergeID=getElement(s\\comma\\1\\comma\\\\quot\\~~pipe~~\\quot\\)//crlf////tab////tab////tab//sAddDriverParams=\\quot\\MergeID=\\quot\\+arMergeID//crlf////tab////tab//else//crlf////tab////tab////tab//if(startsWith(\\quot\\__getContent__\\quot\\\\comma\\\\quot\\_\\quot\\))//crlf////tab////tab////tab////tab//bTabDelimited=true//crlf////tab////tab////tab////tab//sMergeID=substring(\\quot\\__getContent__\\quot\\\\comma\\1)//crlf////tab////tab////tab//else//crlf////tab////tab////tab////tab//bTabDelimited=false//crlf////tab////tab////tab////tab//sMergeID=\\quot\\__getContent__\\quot\\//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////get the merge name//crlf////tab////tab////tab//sTitle=lookup(Aspect_Merge_Definition_Name_by_ID\\comma\\sMergeID)//crlf////crlf////tab////tab////tab//if(bTabDelimited)//crlf////tab////tab////tab////tab//sDriverID=POS_Generic_Sales_Export_Tab_Delimited//crlf////tab////tab////tab////tab//sTitle=sTitle+\\quot\\ (Tab Delimited)\\quot\\//crlf////tab////tab////tab//else//crlf////tab////tab////tab////tab//sDriverID=lookup(Aspect_Merge_Definition_Dest_Driver_ID_by_ID\\comma\\sMergeID)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab//sAddDriverParams=\\quot\\Filename=\\quot\\+getToken(\\quot\\temporary_files\\quot\\)+\\quot\\sales_export_\\quot\\+sMergeID+\\quot\\.$$$\\quot\\//crlf////tab////tab////tab//sMetadata=\\quot\\__getContent__\\quot\\//crlf////tab////tab//endif//crlf////crlf////tab////tab//s=htmlConstant(\\quot\\Title\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\sTitle)//crlf////tab////tab//s=s+htmlConstant(\\quot\\DriverID\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\sDriverID)//crlf////tab////tab//s=s+htmlConstant(\\quot\\Metadata\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\sMetadata)//crlf////tab////tab//s=s+htmlConstant(\\quot\\AddDriverParams\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\sAddDriverParams)//crlf////tab////tab//return(s)//crlf////tab//\\quot\\>//crlf////crlf////tab//<h1>__Title__</h1>//crlf////tab//<div style=\\quot\\display:none\\quot\\>//crlf////tab////tab//DriverID: __DriverID__<br>//crlf////tab////tab//Metadata: __Metadata__<br>//crlf////tab////tab//AddDriverParams: __AddDriverParams__<br>//crlf////tab////tab//<br>//crlf////tab//</div>//crlf////crlf////tab//<!!include type:driver;//crlf////tab////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab////tab//title: \\quot\\\\quot\\;//crlf////tab////tab//ID: \\quot\\\\quot\\;//crlf////tab////tab//HashID: \\quot\\\\quot\\;//crlf////tab////tab//driver: \\quot\\__DriverID__\\quot\\;//crlf////tab////tab//name: \\quot\\\\quot\\;//crlf////tab////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab////tab//dispose: \\quot\\false\\quot\\;//crlf////tab////tab//state: \\quot\\\\quot\\;//crlf////tab////tab//params: \\quot\\__AddDriverParams__~~pipe~~keyexpression=ID~~pipe~~CacheTtl=0~~pipe~~Metadata=POS_GENERIC_SALES_EXPORT___Metadata__\\quot\\;//crlf////tab////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab////tab//display: \\quot\\\\quot\\;//crlf////tab////tab//fields: \\quot\\\\quot\\;//crlf////tab////tab//IncludeFields: \\quot\\\\quot\\;//crlf////tab////tab//ExcludeFields: \\quot\\\\quot\\;//crlf////tab////tab//sort: \\quot\\ID\\quot\\;//crlf////tab////tab//filter: \\quot\\true\\quot\\;//crlf////tab////tab//BaseFilter: \\quot\\\\quot\\;//crlf////tab////tab//class: \\quot\\basic1\\quot\\;//crlf////tab////tab//maxrecords: \\quot\\250\\quot\\;//crlf////tab////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab////tab//style: \\quot\\width:auto\\quot\\;//crlf////tab////tab//_style: \\quot\\float:left;width:100\\percent\\\\quot\\;//crlf////tab////tab//height:\\quot\\auto\\quot\\;//crlf////tab////tab//_maxheight:\\quot\\300px\\quot\\;//crlf////tab////tab//canSelect: \\quot\\false\\quot\\;//crlf////tab////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab////tab//canEdit: \\quot\\false\\quot\\;//crlf////tab////tab//canAdd: \\quot\\false\\quot\\;//crlf////tab////tab//canDelete: \\quot\\false\\quot\\;//crlf////tab////tab//inspectMenu: \\quot\\\\quot\\;//crlf////tab////tab//EmbedValues: \\quot\\\\quot\\;//crlf////tab////tab//EditDialogID: \\quot\\POS_GENERIC_SALES_EXPORT_FINALDialog\\quot\\;//crlf////tab////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab////tab//ExternalFilters: \\quot\\\\quot\\;//crlf////tab////tab//TableControls: \\quot\\true\\quot\\;//crlf////tab////tab//TableHeader: \\quot\\true\\quot\\;//crlf////tab////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab////tab//RecordCount: \\quot\\true\\quot\\;//crlf////tab////tab//Timestamp: \\quot\\true\\quot\\;//crlf////tab////tab//SelectDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//EditDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//Menu: \\quot\\\\quot\\;//crlf////tab////tab//Messages: \\quot\\true\\quot\\;//crlf////tab////tab//ChartType: \\quot\\\\quot\\;//crlf////tab////tab//ChartWidth: \\quot\\640\\quot\\;//crlf////tab////tab//ChartHeight: \\quot\\480\\quot\\;//crlf////tab////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab////tab//ChartStyle: \\quot\\display:none\\quot\\;//crlf////tab////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab////tab//_Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab////tab//debug: \\quot\\false\\quot\\;//crlf////tab//>//crlf////crlf//</conditional>^
ID=240991|X=183|Y=33|W=794|H=672|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=761593|AttachLeft=|AlignLeft=761593|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=[!------------------------------------------------------------------------//crlf//This item is used to display the Sales Export table.  It opens the dimensional //crlf//view with the ID //crlf//--------------------------------------------------------------------------]//crlf////crlf//<state>//crlf////tab//__StoreID__//crlf////tab//__From__//crlf////tab//__To__//crlf////tab//{@gfs(getSetTime(\\quot\\__From__\\quot\\\\comma\\\\quot\\__To__\\quot\\\\comma\\1440*60\\comma\\\\quot\\MM-dd-yyyy\\quot\\\\comma\\\\quot\\\\quot\\\\comma\\getStoreDir(\\quot\\__StoreID__\\quot\\)+\\quot\\sales.$e$.bin;\\quot\\+getStoreDir(\\quot\\__StoreID__\\quot\\)+\\quot\\salesadd.$e$.bin;\\quot\\+getStoreDir(\\quot\\__StoreID__\\quot\\)+\\quot\\ckd.$e$.bin;\\quot\\+getStoreDir(\\quot\\__StoreID__\\quot\\)+\\quot\\ckh.$e$.bin\\quot\\\\comma\\char(0x3B)))} //crlf////tab//{@gfs(getStoreDir(\\quot\\__StoreID__\\quot\\) + \\quot\\category.bin\\quot\\)}//crlf////tab//{@gfs(getStoreDir(\\quot\\__StoreID__\\quot\\) + \\quot\\department.bin\\quot\\)}//crlf////tab//{@gfs(getStoreDir(\\quot\\__StoreID__\\quot\\) + \\quot\\customsalesfields.bin\\quot\\)}//crlf////tab//{@gfs(getStoreDir(\\quot\\__StoreID__\\quot\\) + \\quot\\chart_of_accounts.bin\\quot\\)}//crlf////tab//{@if(formatDate(now()\\comma\\\\quot\\MMddyyyy\\quot\\)=\\quot\\11182021\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//[!------------------------------------------------------------------------//crlf//Debugging//crlf//--------------------------------------------------------------------------]//crlf//<include type:expression; expression:htmlConstant(\\quot\\StoreID\\quot\\\\comma\\\\quot\\__StoreID__\\quot\\\\comma\\\\quot\\VI8l9NQk0PECmdWbMgVJp94w\\quot\\)>//crlf//<include type:expression; expression:htmlConstant(\\quot\\From\\quot\\\\comma\\\\quot\\__From__\\quot\\\\comma\\\\quot\\11-02-2021\\quot\\)>//crlf//<include type:expression; expression:htmlConstant(\\quot\\To\\quot\\\\comma\\\\quot\\__To__\\quot\\\\comma\\\\quot\\11-02-2021\\quot\\)>//crlf////crlf//<include type:expression; expression:htmlConstant(\\quot\\salt\\quot\\\\comma\\\\quot\\__salt__\\quot\\\\comma\\lowercase(getSalt(4)))>//crlf////crlf//<conditional expression:(\\quot\\{@formatDate(now()\\comma\\\\quot\\MMddyyyy\\quot\\)}\\quot\\=\\quot\\11182021\\quot\\) or (defined(\\quot\\__StoreID__\\quot\\))>//crlf////crlf////tab//[!------------------------------------------------------------------------//crlf////tab//Filter - Show All Fields//crlf////tab//--------------------------------------------------------------------------]//crlf////tab//<span style=\\quot\\white-space:nowrap\\quot\\>//crlf////tab////tab//<!include type:ExternalDriverFilter;//crlf////tab////tab////tab//InputType:\\quot\\CheckBox\\quot\\;//crlf////tab////tab////tab//ID:\\quot\\__salt__FilterShowAllRecords\\quot\\;//crlf////tab////tab////tab//Condition:\\quot\\true\\quot\\;//crlf////tab////tab////tab//Expression:\\quot\\($value$) or ((not(len(GL_Account_Code)=0)) and (not(GL_Account_Code='0')))\\quot\\;//crlf////tab////tab////tab//Tooltip:\\quot\\\\quot\\;//crlf////tab////tab////tab//HtmlParams:\\quot\\\\quot\\;//crlf////tab////tab//> Show all records//crlf////tab//</span>//crlf////crlf////tab//<!include //crlf////tab////tab//type:widget; //crlf////tab////tab//server:{AspectHashID}; //crlf////tab////tab//secure:true; //crlf////tab////tab//documentID:\\quot\\K4Ui6j3Y1rwlvukPkOqn25Em\\quot\\; //crlf////tab////tab//widget:\\quot\\Dimensional Views\\quot\\; //crlf////tab////tab//containerItemID:\\quot\\379605\\quot\\; //crlf////tab////tab//params:\\quot\\{@replaceSubstring(\\quot\\__PageArgs__\\quot\\\\comma\\\\quot\\~\\quot\\\\comma\\\\quot\\//amp//\\quot\\)}//amp//ExternalFilters=__salt__FilterShowAllRecords//amp//XDisplayFilter=(not(len(GL_Account_Code)=0)) and (not(GL_Account_Code='0'))\\quot\\;>//crlf//</conditional>//crlf////crlf//<div style=\\quot\\width:100px;height:600px\\quot\\></div>^
ID=640844|X=183|Y=33|W=794|H=672|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=761593|AttachLeft=|AlignLeft=761593|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=[!------------------------------------------------------------------------//crlf//This table was created 8/3/2020 to troubleshoot a problem with the sales export table //crlf//at Vagabond for 7/31/2020.  The Record Type ID and Record Type Description and other fields//crlf//were displaying ???.  This problem is currently unresolved.//crlf//--------------------------------------------------------------------------]//crlf////crlf//<include type:expression; expression:htmlConstant(\\quot\\salt\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\lowercase(getSalt(4)))>//crlf//<include type:expression; expression:htmlConstant(\\quot\\StoreID\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\\\quot\\GzBEX4ofkZLwRfO29zJtRo8z\\quot\\)>//crlf//<include type:expression; expression:htmlConstant(\\quot\\Date\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\\\quot\\07-31-2020\\quot\\)>//crlf////crlf//<conditional expression:(\\quot\\{@formatDate(now()\\comma\\\\quot\\MMddyyyy\\quot\\)}\\quot\\=\\quot\\08032020\\quot\\)>//crlf////tab//<!include type:driver;//crlf////tab////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab////tab//title: \\quot\\\\quot\\;//crlf////tab////tab//ID: \\quot\\\\quot\\;//crlf////tab////tab//HashID: \\quot\\\\quot\\;//crlf////tab////tab//driver: \\quot\\POS_Generic_User_Defined_Daily_Sales_Transposed\\quot\\;//crlf////tab////tab//name: \\quot\\\\quot\\;//crlf////tab////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab////tab//dispose: \\quot\\false\\quot\\;//crlf////tab////tab//state: \\quot\\\\quot\\;//crlf////tab////tab//params: \\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__~~pipe~~keyexpression=ID~~pipe~~CacheTtl=0~~pipe~~Metadata=POS_Generic_User_Defined_Daily_Sales_Transposed\\quot\\;//crlf////tab////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab////tab//display: \\quot\\\\quot\\;//crlf////tab////tab//fields: \\quot\\\\quot\\;//crlf////tab////tab//IncludeFields: \\quot\\\\quot\\;//crlf////tab////tab//ExcludeFields: \\quot\\\\quot\\;//crlf////tab////tab//sort: \\quot\\ID\\quot\\;//crlf////tab////tab//filter: \\quot\\true\\quot\\;//crlf////tab////tab//BaseFilter: \\quot\\\\quot\\;//crlf////tab////tab//class: \\quot\\basic1\\quot\\;//crlf////tab////tab//maxrecords: \\quot\\250\\quot\\;//crlf////tab////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab////tab//style: \\quot\\width:auto\\quot\\;//crlf////tab////tab//_style: \\quot\\float:left;width:100\\percent\\\\quot\\;//crlf////tab////tab//height:\\quot\\auto\\quot\\;//crlf////tab////tab//_maxheight:\\quot\\300px\\quot\\;//crlf////tab////tab//canSelect: \\quot\\false\\quot\\;//crlf////tab////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab////tab//canEdit: \\quot\\false\\quot\\;//crlf////tab////tab//canAdd: \\quot\\false\\quot\\;//crlf////tab////tab//canDelete: \\quot\\false\\quot\\;//crlf////tab////tab//inspectMenu: \\quot\\\\quot\\;//crlf////tab////tab//EmbedValues: \\quot\\\\quot\\;//crlf////tab////tab//EditDialogID: \\quot\\POS_GENERIC_DAILY_SALESDialog\\quot\\;//crlf////tab////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab////tab//ExternalFilters: \\quot\\\\quot\\;//crlf////tab////tab//TableControls: \\quot\\true\\quot\\;//crlf////tab////tab//TableHeader: \\quot\\true\\quot\\;//crlf////tab////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab////tab//RecordCount: \\quot\\true\\quot\\;//crlf////tab////tab//Timestamp: \\quot\\true\\quot\\;//crlf////tab////tab//SelectDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//EditDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//Menu: \\quot\\\\quot\\;//crlf////tab////tab//faq: \\quot\\\\quot\\;//crlf////tab////tab//procedure: \\quot\\\\quot\\;//crlf////tab////tab//video: \\quot\\\\quot\\;//crlf////tab////tab//Messages: \\quot\\true\\quot\\;//crlf////tab////tab//ChartType: \\quot\\\\quot\\;//crlf////tab////tab//ChartWidth: \\quot\\640\\quot\\;//crlf////tab////tab//ChartHeight: \\quot\\480\\quot\\;//crlf////tab////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab////tab//ChartStyle: \\quot\\display:none\\quot\\;//crlf////tab////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab////tab//_Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab////tab//debug: \\quot\\false\\quot\\;//crlf////tab//>//crlf//</conditional>//crlf//^
ID=520218|X=183|Y=33|W=794|H=672|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=761593|AttachLeft=|AlignLeft=761593|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=431391|X=183|Y=33|W=794|H=672|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=761593|AttachLeft=|AlignLeft=761593|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=568221|X=183|Y=33|W=794|H=672|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=761593|AttachLeft=|AlignLeft=761593|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=81266|X=183|Y=33|W=794|H=672|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=761593|AttachLeft=|AlignLeft=761593|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=245971|X=183|Y=33|W=81|H=70|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=761593|AttachLeft=|AlignLeft=761593|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=[!------------------------------------------------------------------------//crlf//This item is used to display the Sales Export table.  It opens the dimensional //crlf//view with the ID //crlf//--------------------------------------------------------------------------]//crlf////crlf//<state>//crlf////tab//__StoreID__//crlf////tab//__From__//crlf////tab//__To__//crlf////tab//{@gfs(getSetTime(\\quot\\__From__\\quot\\\\comma\\\\quot\\__To__\\quot\\\\comma\\1440*60\\comma\\\\quot\\MM-dd-yyyy\\quot\\\\comma\\\\quot\\\\quot\\\\comma\\getStoreDir(\\quot\\__StoreID__\\quot\\)+\\quot\\sales.$e$.bin;\\quot\\+getStoreDir(\\quot\\__StoreID__\\quot\\)+\\quot\\salesadd.$e$.bin;\\quot\\+getStoreDir(\\quot\\__StoreID__\\quot\\)+\\quot\\ckd.$e$.bin;\\quot\\+getStoreDir(\\quot\\__StoreID__\\quot\\)+\\quot\\ckh.$e$.bin\\quot\\\\comma\\char(0x3B)))} //crlf////tab//{@gfs(getStoreDir(\\quot\\__StoreID__\\quot\\) + \\quot\\category.bin\\quot\\)}//crlf////tab//{@gfs(getStoreDir(\\quot\\__StoreID__\\quot\\) + \\quot\\department.bin\\quot\\)}//crlf////tab//{@gfs(getStoreDir(\\quot\\__StoreID__\\quot\\) + \\quot\\customsalesfields.bin\\quot\\)}//crlf////tab//{@gfs(getStoreDir(\\quot\\__StoreID__\\quot\\) + \\quot\\chart_of_accounts.bin\\quot\\)}//crlf////tab//{@if(formatDate(now()\\comma\\\\quot\\MMddyyyy\\quot\\)=\\quot\\11192021\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//[!------------------------------------------------------------------------//crlf//Debugging//crlf//--------------------------------------------------------------------------]//crlf//<include type:expression; expression:htmlConstant(\\quot\\StoreID\\quot\\\\comma\\\\quot\\__StoreID__\\quot\\\\comma\\\\quot\\VI8l9NQk0PECmdWbMgVJp94w\\quot\\)>//crlf//<include type:expression; expression:htmlConstant(\\quot\\From\\quot\\\\comma\\\\quot\\__From__\\quot\\\\comma\\\\quot\\11-02-2021\\quot\\)>//crlf//<include type:expression; expression:htmlConstant(\\quot\\To\\quot\\\\comma\\\\quot\\__To__\\quot\\\\comma\\\\quot\\11-02-2021\\quot\\)>//crlf////crlf//<include type:expression; expression:htmlConstant(\\quot\\salt\\quot\\\\comma\\\\quot\\__salt__\\quot\\\\comma\\lowercase(getSalt(4)))>//crlf////crlf//<conditional expression:(\\quot\\{@formatDate(now()\\comma\\\\quot\\MMddyyyy\\quot\\)}\\quot\\=\\quot\\11192021\\quot\\) or (defined(\\quot\\__StoreID__\\quot\\))>//crlf////crlf////tab//[!------------------------------------------------------------------------//crlf////tab//Filter - Show All Fields//crlf////tab//--------------------------------------------------------------------------]//crlf////tab//<span style=\\quot\\white-space:nowrap\\quot\\>//crlf////tab////tab//<!include type:ExternalDriverFilter;//crlf////tab////tab////tab//InputType:\\quot\\CheckBox\\quot\\;//crlf////tab////tab////tab//ID:\\quot\\__salt__FilterShowAllRecords\\quot\\;//crlf////tab////tab////tab//Condition:\\quot\\true\\quot\\;//crlf////tab////tab////tab//Expression:\\quot\\($value$) or ((not(len(GL_Account_Code)=0)) and (not(GL_Account_Code='0')))\\quot\\;//crlf////tab////tab////tab//Tooltip:\\quot\\\\quot\\;//crlf////tab////tab////tab//HtmlParams:\\quot\\\\quot\\;//crlf////tab////tab//> Show all records//crlf////tab//</span>//crlf////crlf////tab//[!------------------------------------------------------------------------//crlf////tab//Include the dimensional view//crlf////tab//--------------------------------------------------------------------------]//crlf////tab//<!include//crlf////tab////tab//type:view;//crlf////tab////tab//viewid:\\quot\\tPKytguD\\quot\\;//crlf////tab////tab//Source:\\quot\\\\quot\\;//crlf////tab////tab//params:\\quot\\salt=__salt__//amp////crlf////tab////tab////tab//ExternalFilters=__salt__FilterShowAllRecords//amp////crlf////tab////tab////tab//XDisplayFilter=(not(len(GL_Account_Code)=0)) and (not(GL_Account_Code='0'))//amp////crlf////tab////tab////tab//BaseFilter=//amp////crlf////tab////tab////tab//StoreID=__StoreID__//amp////crlf////tab////tab////tab//From=__From__//amp////crlf////tab////tab////tab//To=__To__//amp////crlf////tab////tab////tab//Display=__Display__//amp////crlf////tab////tab////tab//InspectMenu=\\quot\\;//crlf////tab//>//crlf//</conditional>//crlf////crlf//<div style=\\quot\\width:100px;height:300px\\quot\\></div>^
ID=656767|X=1497|Y=695|W=722|H=376|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=//pound//fbfac0|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<p style=\\quot\\color:black\\quot\\>11/19/2021 - Modified dimensional view with ID tPKytguD to correct a problem at Los Colinas.  </p>//crlf////crlf//<p style=\\quot\\color:black\\quot\\>Added Disk_Index to the y dimensions to eliminate an errant entry that appeared in the sales //crlf//export table.  There was an entry in the daily sales driver for a comp that was not being //crlf//added to the chart of accounts.  The reason is not certain.</p>//crlf////crlf//<p style=\\quot\\color:black\\quot\\>This missing entry in the chart of accounts resulted in two records in the sales export //crlf//dimensional driver that could not be combined and showed ???.  The comp as 10 - did not like.  //crlf//This problem can be reproduced by removing disk_index from the y dimensions and opening //crlf//a sales export for los colinas for 11-02-2021</p>//crlf////crlf//
</widget><widget name="Notification Container" group="Notifications" category="" description="" type="Container" Mobile="false" Processing=0 metadata="" IncludeInViewer="false" PublicName="Notification Container" modified="04-10-2017 19:33:19" modifiedby="Thnikpad2" TaskEnabled=false IsAgent=false ContainsAgentSensors=false ContainsAgentActions=false TaskInitialStartTime=04-10-2017 15:14:53:000 TaskIntervalType=0 TaskLastExecuted= TaskCatchUpMissedTasks=false TaskYearsBetweenExecution=0 TaskMonthsBetweenExecution=0 TaskDaysBetweenExecution=0 TaskHoursBetweenExecution=0 TaskMinutesBetweenExecution=0 TaskSecondsBetweenExecution=0 TaskExecuteSun=true TaskExecuteMon=true TaskExecuteTue=true TaskExecuteWed=true TaskExecuteThu=true TaskExecuteFri=true TaskExecuteSat=true TaskConditional_Expression="" TaskConditional_Expression_Description="" TaskState_Function="" TaskState_Expression_Description="" TaskWidgetParams="" TaskWindowForExecution=0>
Preferences|toolboxx=133|toolboxy=110|aspectfuncx=50|aspectfuncy=50|aspectfuncw=750|aspectfunch=auto|aspectfuncLock=null|aspectfuncVisible=false|PublishFtpFilename=Notification Container.html|PublishToFtpSite=false|PublishFTPAccount=0|PublishFtpDirectory=/|PublishFtpPublicDirectory=/|PublishCopyFile=false|PublishCopyFilename=|PublishWysiwig=false|PublishIncludeAspectScript=false|PublishIncludeAspectStyleshet=false|PublishAsText=false|^
ID=top_bar|X=0|Y=0|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=false|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=left_bar|X=0|Y=22|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=false|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=top_bar|AttachLeft=|AlignLeft=top_bar|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=code|X=253|Y=110|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<table class='tabdialog'>//crlf////tab//<tr>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'665649')\\quot\\>Javascript</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'AspectScript')\\quot\\>AspectScript</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'sensor_list')\\quot\\>Sensors</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'action_list')\\quot\\>Actions</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'debug_console')\\quot\\>Console</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'511307')\\quot\\>Notes</span></td>//crlf////tab//</tr>//crlf//</table>^
ID=665649|X=253|Y=133|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Javascript|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=AspectScript|X=253|Y=133|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Aspect_Script|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=sensor_list|X=253|Y=133|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Aspect_Script|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>//crlf////tab//{@if(\\quot\\__SensorExec__\\quot\\=\\quot\\true\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf////tab//{@if(getSystemValue(\\quot\\DevelopmentMode\\quot\\)\\comma\\fileModified(getToken(\\quot\\homedir\\quot\\)+\\quot\\cache\WidgetEdit_VWaUGu88BMN0hDYWzZj57VpG_Notification Container.html\\quot\\)\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//<conditional expression:(\\quot\\__sensor_list__\\quot\\=\\quot\\true\\quot\\)>//crlf//</conditional>//crlf////crlf//^
ID=action_list|X=253|Y=133|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Aspect_Script|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>//crlf////tab//{@if(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf////tab//{@if(getSystemValue(\\quot\\DevelopmentMode\\quot\\)\\comma\\fileModified(getToken(\\quot\\homedir\\quot\\)+\\quot\\cache\WidgetEdit_VWaUGu88BMN0hDYWzZj57VpG_Notification Container.html\\quot\\)\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//<conditional expression:(\\quot\\__action_list__\\quot\\=\\quot\\true\\quot\\)>//crlf//</conditional>//crlf////crlf//^
ID=debug_console|X=253|Y=133|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=debug_console|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=511307|X=253|Y=133|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|
</widget><widget name="Daily Sales Export" group="Sales" category="Dependent Drivers" description="Creates the salesexportprep and salesexport files used to consolidate data for multiple stores." type="Container" Mobile="false" Processing=0 metadata="" IncludeInViewer="false" PublicName="Daily Sales Export" modified="09-25-2024 21:04:30" modifiedby="Thnikpad3" TaskEnabled=true IsAgent=true ContainsAgentSensors=true ContainsAgentActions=true TaskInitialStartTime=06-07-2018 00:00:00:000 TaskIntervalType=0 TaskLastExecuted= TaskCatchUpMissedTasks=false TaskYearsBetweenExecution=0 TaskMonthsBetweenExecution=0 TaskDaysBetweenExecution=0 TaskHoursBetweenExecution=0 TaskMinutesBetweenExecution=13 TaskSecondsBetweenExecution=0 TaskExecuteSun=true TaskExecuteMon=true TaskExecuteTue=true TaskExecuteWed=true TaskExecuteThu=true TaskExecuteFri=true TaskExecuteSat=true TaskConditional_Expression="(indirect(getToken(POS_Generic_UpdateSalesExport_Conditional)))" TaskConditional_Expression_Description="" TaskState_Function="gfs(getBackofficeFilespec(\\quote\\\\quote\\,\\quote\\sales.*|salesadd.*|ckd.*|invoice_detail.*|lbr.*|physical_count.*|salesexport.*\\quote\\,incrementTime(LastBusinessDay(\\quote\\00:00\\quote\\),-30),LastBusinessDay(\\quote\\00:00\\quote\\),char(0x3B)))+getToken(ProgramStartTime)" TaskState_Expression_Description="" TaskWidgetParams="" TaskWindowForExecution=0>
Preferences|toolboxx=61|toolboxy=174|aspectfuncx=228|aspectfuncy=100|aspectfuncw=1151|aspectfunch=771|aspectfuncLock=true|aspectfuncVisible=false|PublishFtpFilename=Daily Sales Export.html|PublishToFtpSite=false|PublishFTPAccount=0|PublishFtpDirectory=/|PublishFtpPublicDirectory=/|PublishCopyFile=false|PublishCopyFilename=|PublishWysiwig=false|PublishIncludeAspectScript=false|PublishIncludeAspectStyleshet=false|PublishAsText=false|^
ID=top_bar|X=0|Y=0|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=false|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=left_bar|X=0|Y=15|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=false|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=top_bar|AttachLeft=|AlignLeft=top_bar|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=code|X=300|Y=100|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<select onChange=\\quot\\showTab(this)\\quot\\>//crlf////tab//<option value='660307'>Javascript</option>//crlf////tab//<option value='AspectScript'>AspectScript</option>//crlf////tab//<option value='sensor_list'>Sensors</option>//crlf////tab//<option value='action_list'>Actions</option>//crlf////tab//<option value='473162'>Enterprise Names</option>//crlf////tab//<option value='844181'>Sales Export Prep</option>//crlf////tab//<option value='374129'>Sales Export</option>//crlf////tab//<option value='356777'>Consolidated Sales Export</option>//crlf////tab//<option value='389443'>Dimensional Report Viewer for Sales Export</option>//crlf////tab//<option value='381410'>Report Header</option>//crlf////tab//<option value='515261'>CSS-1</option>//crlf////tab//<option value='20580'>Notes</option>//crlf//</select>//crlf//^
ID=660307|X=300|Y=118|W=980|H=659|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Javascript|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=AspectScript|X=300|Y=118|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Aspect_Script|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=sensor_list|X=300|Y=118|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=Aspect_Script|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>//crlf////tab//{@if(\\quot\\__SensorExec__\\quot\\=\\quot\\true\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf////tab//{@if(getSystemValue(\\quot\\DevelopmentMode\\quot\\)\\comma\\fileModified(getToken(\\quot\\homedir\\quot\\)+\\quot\\cache\WidgetEdit_VWaUGu88BMN0hDYWzZj57VpG_Daily Sales Export.html\\quot\\)\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//<conditional expression:(\\quot\\__sensor_list__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab//Daily Sales Export\\comma\\CollectionSalesExportValue\\comma\\sensor_list\\comma\\Sensor=CollectionSalesExportValue\\comma\\private\\comma\\text//crlf////tab//Daily Sales Export\\comma\\getPeriodTotalForRecord\\comma\\sensor_list\\comma\\Sensor=getPeriodTotalForRecord\\comma\\private\\comma\\text//crlf////tab//Daily Sales Export\\comma\\collectionHashIDbyStoreIndex\\comma\\sensor_list\\comma\\Sensor=collectionHashIDbyStoreIndex\\comma\\private\\comma\\text//crlf////tab//Daily Sales Export\\comma\\collectionEnterpriseStoreIndex\\comma\\sensor_list\\comma\\Sensor=collectionEnterpriseStoreIndex\\comma\\private\\comma\\text//crlf////tab//Daily Sales Export\\comma\\collectionAvailableConsolidatedData\\comma\\sensor_list\\comma\\Sensor=collectionAvailableConsolidatedData\\comma\\private\\comma\\text//crlf//</conditional>//crlf////crlf//[!------------------------------------------------------------------------//crlf//CollectionSalesExportValue//crlf//--------------------------------------------------------------------------]//crlf//<conditional expression:(\\quot\\__sensor__\\quot\\=\\quot\\CollectionSalesExportValue\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__SensorDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Used by the POS_Generic_Lookup_Sales_Export_Value collection to create a collection of FieldID's //crlf////tab////tab//and values.//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__SensorParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//CustomerID - Comma-delimited list of HashIDs//crlf////tab////tab//RecordType - Record type - corresponds to the Record_Type field in the daily sales export//crlf////tab////tab//DateFrom - MM-dd-yyyy//crlf////tab////tab//DateTo - MM-dd-yyyy//crlf////tab////tab//Selection - Either \\quot\\Amount\\quot\\ or \\quot\\Quantity\\quot\\ //crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__SensorReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__SensorExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\CollectionSalesExportValue\\quot\\; commands:\\quot\\//crlf////tab////tab////tab////abort if missing CustomerID//crlf////tab////tab////tab//if(not(defined(\\quot\\__CustomerID__\\quot\\)))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing CustomerID\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if missing RecordType//crlf////tab////tab////tab//if(not(defined(\\quot\\__RecordType__\\quot\\)))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing RecordType\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if missing DateFrom//crlf////tab////tab////tab//if(not(defined(\\quot\\__DateFrom__\\quot\\)))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing DateFrom\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if missing DateTo//crlf////tab////tab////tab//if(not(defined(\\quot\\__DateTo__\\quot\\)))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing DateTo\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if missing selection//crlf////tab////tab////tab//if(not(defined(\\quot\\__Selection__\\quot\\)))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing Selection\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab//arHashID=\\quot\\__CustomerID__\\quot\\//crlf////tab////tab////tab//if(arHashID=\\quot\\4idczse69\\quot\\)//crlf////tab////tab////tab////tab//arHashID=\\quot\\6hg2dvg0m\\quot\\//crlf////tab////tab////tab//endif//crlf////tab////tab////tab//iRecordType=value(\\quot\\__RecordType__\\quot\\)//crlf////tab////tab////tab//sPosID=\\quot\\__PosID__\\quot\\//crlf////tab////tab////tab//dtFrom=parseTime(\\quot\\__DateFrom__\\quot\\)//crlf////tab////tab////tab//dtTo=parseTime(\\quot\\__DateTo__\\quot\\)//crlf////crlf////tab////tab////tab//appendToLog(\\quot\\*** arHashID=\\quot\\+arHashID+\\quot\\ RecordType=__RecordType__ DateFrom=__DateFrom__ DateTo=__DateTo__\\quot\\)//crlf////tab////tab////tab//if(scriptCount(this)>1)//crlf////tab////tab////tab////tab//return(\\quot\\*** Error: Multiple calls to script\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////get temporary filename//crlf////tab////tab////tab//sFilename=getToken(\\quot\\temporary_files\\quot\\)+getSalt(4)+\\quot\\.$$$\\quot\\//crlf////tab////tab////tab//appendToLog(\\quot\\*** sFilename=\\quot\\+sFilename)//crlf////crlf////tab////tab////tab////concatenate all sales export files //crlf////tab////tab////tab//cHashID=getElementCount(arHashID)//crlf////tab////tab////tab//nHashID=0//crlf////tab////tab////tab//while(nHashID<cHashID)//crlf////tab////tab////tab////tab//sHashID=getElement(arHashID\\comma\\nHashID)//crlf////crlf////tab////tab////tab////tab//dt=dtFrom//crlf////tab////tab////tab////tab//while(dt<=dtTo)//crlf////tab////tab////tab////tab////tab//sDir=getToken(\\quot\\homedir\\quot\\)+\\quot\\data/\\quot\\+sHashID//crlf////tab////tab////tab////tab////tab//if(sHashID=getToken(\\quot\\AspectHashID\\quot\\))//crlf////tab////tab////tab////tab////tab////tab//sDir=getToken(\\quot\\POSInterface_StoreDir\\quot\\)//crlf////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab//s=addDirSlash(sDir)+\\quot\\salesexport.\\quot\\+formatDate(dt\\comma\\\\quot\\MM-dd-yyyy\\quot\\)+\\quot\\.bin\\quot\\//crlf////crlf////tab////tab////tab////tab////tab//if(fileExists(s))//crlf////tab////tab////tab////tab////tab////tab//fileCopy(s\\comma\\sFilename\\comma\\true\\comma\\true)//crlf////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\*** Adding \\quot\\+s)//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab//dt=incrementTime(dt\\comma\\1)//crlf////tab////tab////tab////tab//endwhile//crlf////tab////tab////tab////tab//nHashID++//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab////open the driver//crlf////tab////tab////tab//driverOpen(POS_Generic_Daily_Sales_Export\\comma\\d\\comma\\\\quot\\READ\\quot\\\\comma\\false\\comma\\\\quot\\filename=\\quot\\+sFilename+\\quot\\~~pipe~~NoDepend\\quot\\)//crlf////crlf////tab////tab////tab//hashCreate(hashTotal)//crlf////tab////tab////tab//c=driverGetRecordCount(d\\comma\\true)//crlf////tab////tab////tab//n=0//crlf////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab//iRecType=driverGetFieldAbsolute(d\\comma\\\\quot\\Record_Type\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab//if(iRecType=iRecordType)//crlf////tab////tab////tab////tab////tab//sPosID=driverGetFieldAbsolute(d\\comma\\\\quot\\POS_ID\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab//if(\\quot\\__Selection__\\quot\\=\\quot\\Quantity\\quot\\)//crlf////tab////tab////tab////tab////tab////tab//dbl=driverGetFieldAbsolute(d\\comma\\\\quot\\Quantity\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////tab//dbl=driverGetFieldAbsolute(d\\comma\\\\quot\\Amount\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab//if(hashContainsKey(hashTotal\\comma\\sPosID))//crlf////tab////tab////tab////tab////tab////tab//hashPut(hashTotal\\comma\\sPosID\\comma\\hashGet(hashTotal\\comma\\sPosID)+dbl)//crlf////tab////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////tab//hashPut(hashTotal\\comma\\sPosID\\comma\\dbl)//crlf////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab//n++//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab////Create the collection.  An element is added for each POS ID\\comma\\ using the POS ID as the //crlf////tab////tab////tab////index.  Another element is added at the end with a POS ID of -1 which is the total//crlf////tab////tab////tab////of all POS ID's.//crlf////tab////tab////tab//appendToLog(\\quot\\*** Adding records to sensor driver __DateFrom__ __DateTo__\\quot\\)//crlf////tab////tab////tab//driverOpen(Sensor_Collection\\comma\\dCollection\\comma\\WRITE\\comma\\true)//crlf////crlf////tab////tab////tab//arKey=hashGetKeys(hashTotal)//crlf////tab////tab////tab//c=getElementCount(arKey)//crlf////tab////tab////tab//n=0//crlf////tab////tab////tab//dTotal=0//crlf////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab//sPosID=getElement(arKey\\comma\\n)//crlf////tab////tab////tab////tab//dbl=hashGet(hashTotal\\comma\\sPosID)//crlf////crlf////tab////tab////tab////tab//r=driverAddNewRecord(dCollection)//crlf////tab////tab////tab////tab//driverPutFieldAbsolute(dCollection\\comma\\\\quot\\Index\\quot\\\\comma\\r\\comma\\sPosID)//crlf////tab////tab////tab////tab//driverPutFieldAbsolute(dCollection\\comma\\\\quot\\Value\\quot\\\\comma\\r\\comma\\dbl)//crlf////tab////tab////tab////tab//dTotal=dTotal+dbl//crlf////crlf////tab////tab////tab////tab//n++//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab////add an element for the total of all Pos IDs//crlf////tab////tab////tab//appendToLog(\\quot\\*** Adding grand total\\quot\\)//crlf////tab////tab////tab//r=driverAddNewRecord(dCollection)//crlf////tab////tab////tab//driverPutFieldAbsolute(dCollection\\comma\\\\quot\\Index\\quot\\\\comma\\r\\comma\\-1)//crlf////tab////tab////tab//driverPutFieldAbsolute(dCollection\\comma\\\\quot\\Value\\quot\\\\comma\\r\\comma\\dTotal)//crlf////crlf////tab////tab////tab//driverClose(d)//crlf////tab////tab////tab//return(dCollection)//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf////crlf//[!------------------------------------------------------------------------//crlf//getPeriodTotalForRecord//crlf//--------------------------------------------------------------------------]//crlf//<conditional expression:(\\quot\\__sensor__\\quot\\=\\quot\\getPeriodTotalForRecord\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__SensorDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Gets the sum of the value for a given record_type and POSID for a range of dates.//crlf////tab////tab//This is used to get total net sales for a range of dates.  Because the record_type and //crlf////tab////tab//POSID are passed as parameters\\comma\\ it can be used to get the total of any field\\comma\\ not just //crlf////tab////tab//net sales.  This can be used to handle situations where a percentage is to be calculated //crlf////tab////tab//based on net sales before or after discounts.//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__SensorParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//StoreID - The StoreID.  This is the store ID in the export file\\comma\\ NOT the HashID.//crlf////tab////tab//HashID - HashID of store.  This can be used in place of the StoreID//crlf////tab////tab//DateFrom - Starting date//crlf////tab////tab//DateTo//tab//- Ending date//crlf////tab////tab//RecordType - Optional.  Record type from the sales export file.  This will usually be a specific //crlf////tab////tab////tab//record type but it is possible to pass an empty string so that records from different record //crlf////tab////tab////tab//types can be added together.  For example\\comma\\ tags might be used to select the records.//crlf////tab////tab//POSID - Optional POS ID.  If blank\\comma\\ all records for the given record_type will be included.//crlf////tab////tab//Filter - Optional filter.  This is not implemented yet\\comma\\ but could be used to do something like //crlf////tab////tab////tab//including only fields with a given tag.//crlf////tab////tab//Selection - Optional.  Amount or Quantity.  Amount is the default and returns the sum of the //crlf////tab////tab////tab//amount in each record versus the quantity.//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__SensorReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//The sum of the selected records over the given period//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__SensorExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\getPeriodTotalForRecord\\quot\\; commands:\\quot\\//crlf////tab////tab////tab//profile(true)//crlf////crlf////tab////tab////tab////abort if missing StoreID//crlf////tab////tab////tab//if((not(defined(\\quot\\__StoreID__\\quot\\))) and (not(defined(\\quot\\__HashID__\\quot\\))))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing StoreID and HashID\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if missing DateFrom//crlf////tab////tab////tab//if(not(defined(\\quot\\__DateFrom__\\quot\\)))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing DateFrom\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if missing DateTo//crlf////tab////tab////tab//if(not(defined(\\quot\\__DateTo__\\quot\\)))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing DateTo\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab//sStoreID=\\quot\\__StoreID__\\quot\\//crlf////tab////tab////tab//sHashID=\\quot\\__HashID__\\quot\\//crlf////tab////tab////tab//dtFrom=parseTime(\\quot\\__DateFrom__\\quot\\)//crlf////tab////tab////tab//dtTo=parseTime(\\quot\\__DateTo__\\quot\\)//crlf////crlf////tab////tab////tab////this will be either Amount or Quantity.  It is Amount by default//crlf////tab////tab////tab//sSelection=if(defined(\\quot\\__Selection__\\quot\\)\\comma\\\\quot\\__Selection__\\quot\\\\comma\\\\quot\\Amount\\quot\\)//crlf////crlf////appendtoLog(\\quot\\getPeriodTotalForRecord StoreID=__StoreID__ DateFrom=__DateFrom__ DateTo=__DateTo__ sSelection=\\quot\\+sSelection+\\quot\\ Selection=__Selection__\\quot\\)//crlf////crlf////tab////tab////tab////if it's the local store\\comma\\ use the store directory//crlf////tab////tab////tab//sPOSInterface_StoreID=getToken(\\quot\\POSInterface_StoreID\\quot\\)//crlf////appendToLog(\\quot\\getPeriodTotalForRecord StoreID=\\quot\\+sStoreID+\\quot\\ sPOSInterface_StoreID=\\quot\\+sPOSInterface_StoreID)//crlf////tab////tab////tab//if((len(sStoreID)>0) and (defined(\\quot\\__StoreID__\\quot\\)) and (startsWith(sPOSInterface_StoreID\\comma\\sStoreID)))//crlf////tab////tab////tab////tab//sPOSInterfaceStoreDir=getToken(POSInterface_StoreDir)//crlf////tab////tab////tab////tab//setToken(\\quot\\EnterpriseDataDir__StoreID__\\quot\\\\comma\\sPOSInterfaceStoreDir)//crlf////appendToLog(\\quot\\getPeriodTotalForRecord  set EnterpriseDataDir__StoreID__=\\quot\\+getToken(EnterpriseDataDir__StoreID__))//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////get a list of directories in the Aspect7\data directory.  Or\\comma\\ if the directory is known\\comma\\ //crlf////tab////tab////tab////just add that directory to the array//crlf////tab////tab////tab//sEnterpriseDataDir=getToken(\\quot\\EnterpriseDataDir__StoreID__\\quot\\)//crlf////appendToLog(\\quot\\getPeriodTotalForRecord  sEnterpriseDataDir=\\quot\\+sEnterpriseDataDir)//crlf////appendToLog(\\quot\\getPeriodTotalForRecord  sHashID=\\quot\\+sHashID+\\quot\\ sEnterpriseDataDir=\\quot\\+sEnterpriseDataDir)//crlf////tab////tab////tab//if(sHashID=getToken(\\quot\\AspectHashID\\quot\\))//crlf////tab////tab////tab////tab//arDirectory=getToken(POSInterface_StoreDir)//crlf////appendToLog(\\quot\\getPeriodTotalForRecord arDirectory1=\\quot\\+arDirectory)//crlf////tab////tab////tab//elseif((len(sEnterpriseDataDir)>0) and (len(sStoreID)>0) and (defined(\\quot\\__StoreID__\\quot\\)))//crlf////tab////tab////tab////tab//arDirectory=sEnterpriseDataDir//crlf////appendToLog(\\quot\\getPeriodTotalForRecord arDirectory2=\\quot\\+arDirectory)//crlf////tab////tab////tab//else//crlf////tab////tab////tab////tab//arDirectory=getMatchingFiles(getToken(\\quot\\homedir\\quot\\)+\\quot\\data/*.*\\quot\\\\comma\\false\\comma\\true)//crlf////appendToLog(\\quot\\getPeriodTotalForRecord arDirectory3=\\quot\\+arDirectory)//crlf////tab////tab////tab//endif//crlf////crlf////appendToLog(\\quot\\getPeriodTotalForRecord arDirectory final=\\quot\\+arDirectory)//crlf////crlf////tab////tab////tab////initialize the result//crlf////tab////tab////tab//dResult=0//crlf////crlf////tab////tab////tab////iterate through the data directories until the directory containing data for the //crlf////tab////tab////tab////store is located//crlf////tab////tab////tab//cDirectory=getElementCount(arDirectory\\comma\\\\quot\\~~pipe~~\\quot\\)//crlf////tab////tab////tab//nDirectory=0//crlf////tab////tab////tab//while(nDirectory<cDirectory)//crlf////tab////tab////tab////tab//sDirectory=getElement(arDirectory\\comma\\nDirectory\\comma\\\\quot\\~~pipe~~\\quot\\)//crlf////tab////tab////tab////tab//if(fileIsDirectory(sDirectory))//crlf////appendToLog(\\quot\\Checking directory: \\quot\\+sDirectory)//crlf////tab////tab////tab////tab////tab//bStoreMatches=true//crlf////tab////tab////tab////tab////tab//dt=dtFrom//crlf////tab////tab////tab////tab////tab//cFile=0//crlf////appendToLog(\\quot\\getPeriodTotalForRecord: dt=\\quot\\+formatDate(dt\\comma\\\\quot\\MM-dd-yyyy\\quot\\)+\\quot\\ dtTo=\\quot\\+formatDate(dtTo\\comma\\\\quot\\MM-dd-yyyy\\quot\\))//crlf////tab////tab////tab////tab////tab//while((bStoreMatches) and (dt<=dtTo))//crlf////tab////tab////tab////tab////tab////tab//sFilename=addDirSlash(sDirectory)+\\quot\\salesexport.\\quot\\+formatDate(dt\\comma\\\\quot\\MM-dd-yyyy\\quot\\)+\\quot\\.bin\\quot\\//crlf////tab////tab////tab////tab////tab////tab//if((fileExists(sFilename)) and (fileSize(sFilename)>0))//crlf////tab////tab////tab////tab////tab////tab////tab//driverOpen(POS_Generic_Daily_Sales_Export\\comma\\d\\comma\\READ\\comma\\false\\comma\\\\quot\\AltName=\\quot\\+sFilename+\\quot\\~~pipe~~NoDepend\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab////crlf////tab////tab////tab////tab////tab////tab////tab////see if the file contains data for the selected store//crlf////tab////tab////tab////tab////tab////tab////tab//s=driverGetFieldAbsolute(d\\comma\\\\quot\\CalcStoreID\\quot\\\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab////tab//s1=driverGetFieldAbsolute(d\\comma\\\\quot\\HashID\\quot\\\\comma\\0)//crlf////appendToLog(\\quot\\getPeriodTotalForRecord: sFilename=\\quot\\+sFilename+\\quot\\ StoreID=\\quot\\+s+\\quot\\ sHashID=\\quot\\+sHashID+\\quot\\ s1=\\quot\\+s1)//crlf////tab////tab////tab////tab////tab////tab////tab//if((s=sStoreID) or (s1=sHashID))//crlf////tab////tab////tab////tab////tab////tab////tab////tab////record the directory//crlf////tab////tab////tab////tab////tab////tab////tab////tab//if((defined(\\quot\\__StoreID__\\quot\\)) and (len(\\quot\\__StoreID__\\quot\\)>0))//crlf////appendToLog(\\quot\\getPeriodTotalForRecord: setToken EnterpriseDataDir__StoreID__=\\quot\\+sDirectory+\\quot\\ StoreID=__StoreID__\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//setToken(\\quot\\EnterpriseDataDir__StoreID__\\quot\\\\comma\\sDirectory)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////tab////tab////tab//sFilter=\\quot\\(true)\\quot\\//crlf////tab////tab////tab////tab////tab////tab////tab////tab//if((defined(\\quot\\__RecordType__\\quot\\)) and (len(\\quot\\__RecordType__\\quot\\)>0))//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//sFilter=sFilter+\\quot\\ and (Record_Type=__RecordType__)\\quot\\//crlf////tab////tab////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab////tab////tab//if((defined(\\quot\\__POSID__\\quot\\)) and (len(\\quot\\__POSID__\\quot\\)>0))//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//sFilter=sFilter+\\quot\\ and (POS_ID=\\quot\\+quote(\\quot\\__POSID__\\quot\\)+\\quot\\)\\quot\\//crlf////tab////tab////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab////tab////tab//if((defined(\\quot\\__Filter__\\quot\\)) and (len(\\quot\\__filter__\\quot\\)>0))//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//s1=replaceSubstring(\\quot\\__Filter__\\quot\\\\comma\\\\quot\\//pound//22\\quot\\\\comma\\char(0x22))//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//s1=replaceSubstring(s1\\comma\\\\quot\\//pound//3C\\quot\\\\comma\\char(0x3C))//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//s1=replaceSubstring(s1\\comma\\\\quot\\//pound//3E\\quot\\\\comma\\char(0x3E))//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//s1=replaceSubstring(s1\\comma\\\\quot\\//pound//3D\\quot\\\\comma\\char(0x3D))//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//sFilter=sFilter+\\quot\\ and (\\quot\\+s1+\\quot\\)\\quot\\//crlf////tab////tab////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab////tab////tab////driverSetFilter(d\\comma\\sFilter\\comma\\true)//crlf////appendToLog(\\quot\\getPeriodTotalForRecord: Filter=__Filter__\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////d=driverRangeSum(d\\comma\\sSelection\\comma\\false\\comma\\\\quot\\\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//if(sSelection=\\quot\\amount\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//dvalue=driverRangeSum(d\\comma\\amount\\comma\\true\\comma\\sFilter)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//dvalue=driverRangeSum(d\\comma\\quantity\\comma\\true\\comma\\sFilter)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//endif//crlf////appendToLog(\\quot\\driverRangeSum=\\quot\\+dvalue+\\quot\\ Filter=\\quot\\+sFilter)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//dResult=dResult+dvalue//crlf////tab////tab////tab////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////tab////tab////tab//bStoreMatches=false//crlf////tab////tab////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////tab////tab//driverClose(d)//crlf////tab////tab////tab////tab////tab////tab////tab//cFile++//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab//dt=incrementTime(dt\\comma\\1)//crlf////tab////tab////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab////tab////tab////return if the store was found //crlf////tab////tab////tab////tab////tab//if((cFile>0) and (bStoreMatches))//crlf////appendToLog(\\quot\\Returning \\quot\\+dResult+\\quot\\ because store match found\\quot\\)//crlf////tab////tab////tab////tab////tab////tab//return(dResult)//crlf////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab//nDirectory++//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab//return(\\quot\\Error: no data for StoreID=__StoreID__ DateFrom=__DateFrom__ DateTo=__DateTo__\\quot\\)//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf////crlf//<conditional expression:false>//crlf//[!------------------------------------------------------------------------//crlf//collectionHashIDbyStoreIndex//crlf//--------------------------------------------------------------------------]//crlf//</conditional>//crlf//<conditional expression:(\\quot\\__sensor__\\quot\\=\\quot\\collectionHashIDbyStoreIndex\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__SensorDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Returns a collection of HashID's by index numbers for stores for which enterprise data //crlf////tab////tab//is available.  This collection is used by the getSalesExportPeriodTotal() function to get the //crlf////tab////tab//HashID when Store_Index is used as an X dimension in a report using the Daily Sales Export driver.//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__SensorParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//None//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__SensorReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//System driver containing the collection//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__SensorExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\collectionHashIDbyStoreIndex\\quot\\; commands:\\quot\\//crlf////crlf////tab////tab////tab//driverOpen(Sensor_Collection\\comma\\d\\comma\\WRITE\\comma\\true)//crlf////crlf////tab////tab////tab//driverOpen(Aspect_Back_Office_Company_List\\comma\\dCompanyList\\comma\\READ)//crlf////tab////tab////tab//driverSetSort(dCompanyList\\comma\\\\quot\\Name\\quot\\\\comma\\false)//crlf////tab////tab////tab//driverSetFilter(dCompanyList\\comma\\\\quot\\Has_Sales_Export_Data\\quot\\\\comma\\true)//crlf////tab////tab////tab//c=driverGetRecordCount(dCompanyList)//crlf////tab////tab////tab//n=0//crlf////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab//r=driverAddNewRecord(d)//crlf////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\Index\\quot\\\\comma\\r\\comma\\n)//crlf////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\Value\\quot\\\\comma\\r\\comma\\driverGetField(dCompanyList\\comma\\\\quot\\HashID\\quot\\\\comma\\n))//crlf////tab////tab////tab////tab//n++//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab//driverClose(dCompanyList)//crlf////tab////tab////tab//return(d)//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf////crlf//[!------------------------------------------------------------------------//crlf//collectionEnterpriseStoreIndex//crlf//--------------------------------------------------------------------------]//crlf//<conditional expression:(\\quot\\__sensor__\\quot\\=\\quot\\collectionEnterpriseStoreIndex\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__SensorDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Returns a collection of index numbers for stores for which enterprise data //crlf////tab////tab//is available.  This index is used in dimensional reports instead of a StoreID //crlf////tab////tab//so that default displays can be created.//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__SensorParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//None//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__SensorReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//System driver containing the collection//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__SensorExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\collectionEnterpriseStoreIndex\\quot\\; commands:\\quot\\//crlf////crlf////tab////tab////tab//driverOpen(Sensor_Collection\\comma\\d\\comma\\WRITE\\comma\\true)//crlf////crlf////tab////tab////tab//driverOpen(Aspect_Back_Office_Company_List\\comma\\dCompanyList\\comma\\READ)//crlf////tab////tab////tab//driverSetSort(dCompanyList\\comma\\\\quot\\Name\\quot\\\\comma\\false)//crlf////tab////tab////tab//driverSetFilter(dCompanyList\\comma\\\\quot\\Has_Sales_Export_Data\\quot\\\\comma\\true)//crlf////tab////tab////tab//c=driverGetRecordCount(dCompanyList)//crlf////tab////tab////tab//n=0//crlf////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab//r=driverAddNewRecord(d)//crlf////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\Index\\quot\\\\comma\\r\\comma\\driverGetField(dCompanyList\\comma\\\\quot\\HashID\\quot\\\\comma\\n))//crlf////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\Value\\quot\\\\comma\\r\\comma\\n)//crlf////tab////tab////tab////tab//n++//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab//driverClose(dCompanyList)//crlf////tab////tab////tab//return(d)//crlf////crlf////tab////tab////tab////==========================================================================//crlf////tab////tab////tab////This is the original script.  It was replaced with the lines above in order //crlf////tab////tab////tab////to sort the list by store name.  This causes stores to be alphabetical when //crlf////tab////tab////tab////used on the x dimension of a dimensional report.//crlf////tab////tab////tab////==========================================================================//crlf////tab////tab////tab//sDir=replaceSubstring(getToken(\\quot\\homedir\\quot\\)+\\quot\\data\\\quot\\\\comma\\\\quot\\\\\quot\\\\comma\\\\quot\\/\\quot\\)//crlf////tab////tab////tab//arHashID=\\quot\\\\quot\\//crlf////tab////tab////tab//bGotLocalHashID=false//crlf////tab////tab////tab//arDir=getMatchingFiles(getToken(\\quot\\homedir\\quot\\)+\\quot\\data\*\\quot\\\\comma\\false\\comma\\true)//crlf////tab////tab////tab//c=getElementCount(arDir\\comma\\\\quot\\~~pipe~~\\quot\\)//crlf////tab////tab////tab//n=0//crlf////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab//s=getElement(arDir\\comma\\n\\comma\\\\quot\\~~pipe~~\\quot\\)//crlf////tab////tab////tab////tab//if(fileIsDirectory(s))//crlf////tab////tab////tab////tab////tab//sHashID=replaceSubstring(replaceSubstring(s\\comma\\\\quot\\\\\quot\\\\comma\\\\quot\\/\\quot\\)\\comma\\sDir\\comma\\\\quot\\\\quot\\)//crlf////tab////tab////tab////tab////tab//sName=lookup(Aspect_BackOffice_Company_List\\comma\\sHashID)//crlf////tab////tab////tab////tab////tab//if(len(sName)=0)//crlf////tab////tab////tab////tab////tab////tab//sName=sHashID//crlf////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab//r=driverAddNewRecord(d)//crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\Index\\quot\\\\comma\\r\\comma\\sHashID)//crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\Value\\quot\\\\comma\\r\\comma\\r)//crlf////crlf////tab////tab////tab////tab////tab//bGotLocalHashID=((bGotLocalHashID) or (sHashID=getToken(\\quot\\AspectHashID\\quot\\)))//crlf////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab//n++//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab////add the local HashID if the pos interface is enabled and it doesn't appear in the list//crlf////tab////tab////tab//if(not(bGotLocalHashID))//crlf////tab////tab////tab////tab//sStoreDir=getToken(\\quot\\POSInterface_StoreDir\\quot\\)//crlf////tab////tab////tab////tab//if((len(sStoreDir)>0) and (sStoreDir<>\\quot\\Undefined\\quot\\))//crlf////tab////tab////tab////tab////tab//sHashID=getToken(\\quot\\AspectHashID\\quot\\)//crlf////tab////tab////tab////tab////tab//sName=lookup(Aspect_BackOffice_Company_List\\comma\\sHashID)//crlf////tab////tab////tab////tab////tab//if(len(trim(sName))=0)//crlf////tab////tab////tab////tab////tab////tab////Need to get this from the preferences//crlf////tab////tab////tab////tab////tab////tab//sName=sHashID//crlf////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab//r=driverAddNewRecord(d)//crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\Index\\quot\\\\comma\\r\\comma\\sHashID)//crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\Value\\quot\\\\comma\\r\\comma\\r)//crlf////tab////tab////tab////tab//endif//crlf////tab////tab////tab//endif//crlf////tab////tab////tab//return(d)//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf////crlf//[!------------------------------------------------------------------------//crlf//collectionAvailableConsolidatedData//crlf//--------------------------------------------------------------------------]//crlf//<conditional expression:(\\quot\\__sensor__\\quot\\=\\quot\\collectionAvailableConsolidatedData\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__SensorDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Returns a collection of HashID's for which consolidated data is available.  This //crlf////tab////tab//includes all directories in the [homedir]\data directory as well as the local HashID//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__SensorParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//None//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__SensorReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//System driver containing the collection//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__SensorExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\collectionAvailableConsolidatedData\\quot\\; commands:\\quot\\//crlf////crlf////tab////tab////tab//driverOpen(Sensor_Collection\\comma\\d\\comma\\WRITE\\comma\\true)//crlf////crlf////tab////tab////tab//driverOpen(Aspect_Back_Office_Company_List\\comma\\dCompanyList\\comma\\READ)//crlf////tab////tab////tab//driverSetSort(dCompanyList\\comma\\\\quot\\Name\\quot\\\\comma\\false)//crlf////tab////tab////tab//driverSetFilter(dCompanyList\\comma\\\\quot\\Has_Sales_Export_Data\\quot\\\\comma\\true)//crlf////tab////tab////tab//c=driverGetRecordCount(dCompanyList)//crlf////tab////tab////tab//n=0//crlf////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab//r=driverAddNewRecord(d)//crlf////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\Index\\quot\\\\comma\\r\\comma\\driverGetField(dCompanyList\\comma\\\\quot\\HashID\\quot\\\\comma\\n))//crlf////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\Value\\quot\\\\comma\\r\\comma\\driverGetField(dCompanyList\\comma\\\\quot\\Name\\quot\\\\comma\\n))//crlf////tab////tab////tab////tab//n++//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab//driverClose(dCompanyList)//crlf////tab////tab////tab//return(d)//crlf////crlf////tab////tab////tab////==========================================================================//crlf////tab////tab////tab////This is the original script.//crlf////tab////tab////tab////==========================================================================//crlf////tab////tab////tab//sDir=replaceSubstring(getToken(\\quot\\homedir\\quot\\)+\\quot\\data\\\quot\\\\comma\\\\quot\\\\\quot\\\\comma\\\\quot\\/\\quot\\)//crlf////tab////tab////tab//arHashID=\\quot\\\\quot\\//crlf////tab////tab////tab//bGotLocalHashID=false//crlf////tab////tab////tab//arDir=getMatchingFiles(getToken(\\quot\\homedir\\quot\\)+\\quot\\data\*\\quot\\\\comma\\false\\comma\\true)//crlf////tab////tab////tab//c=getElementCount(arDir\\comma\\\\quot\\~~pipe~~\\quot\\)//crlf////tab////tab////tab//n=0//crlf////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab//s=getElement(arDir\\comma\\n\\comma\\\\quot\\~~pipe~~\\quot\\)//crlf////tab////tab////tab////tab//if(fileIsDirectory(s))//crlf////tab////tab////tab////tab////tab//sHashID=replaceSubstring(replaceSubstring(s\\comma\\\\quot\\\\\quot\\\\comma\\\\quot\\/\\quot\\)\\comma\\sDir\\comma\\\\quot\\\\quot\\)//crlf////tab////tab////tab////tab////tab//sName=lookup(Aspect_BackOffice_Company_List\\comma\\sHashID)//crlf////tab////tab////tab////tab////tab//if(len(sName)=0)//crlf////tab////tab////tab////tab////tab////tab//sName=sHashID//crlf////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab//r=driverAddNewRecord(d)//crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\Index\\quot\\\\comma\\r\\comma\\sHashID)//crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\Value\\quot\\\\comma\\r\\comma\\sName)//crlf////tab////tab////tab////tab////tab//bGotLocalHashID=((bGotLocalHashID) or (sHashID=getToken(\\quot\\AspectHashID\\quot\\)))//crlf////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab//n++//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab////add the local HashID if the pos interface is enabled and it doesn't appear in the list//crlf////tab////tab////tab//if((not(bGotLocalHashID)) and (getToken(\\quot\\AspectHashID\\quot\\)<>\\quot\\4idczse69\\quot\\))//crlf////tab////tab////tab////tab//sStoreDir=getToken(\\quot\\POSInterface_StoreDir\\quot\\)//crlf////tab////tab////tab////tab//if((len(sStoreDir)>0) and (sStoreDir<>\\quot\\Undefined\\quot\\))//crlf////tab////tab////tab////tab////tab//sHashID=getToken(\\quot\\AspectHashID\\quot\\)//crlf////tab////tab////tab////tab////tab//sName=lookup(Aspect_BackOffice_Company_List\\comma\\sHashID)//crlf////tab////tab////tab////tab////tab//if(len(trim(sName))=0)//crlf////tab////tab////tab////tab////tab////tab////Need to get this from the preferences//crlf////tab////tab////tab////tab////tab////tab//sName=sHashID//crlf////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab//r=driverAddNewRecord(d)//crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\Index\\quot\\\\comma\\r\\comma\\sHashID)//crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\Value\\quot\\\\comma\\r\\comma\\sName)//crlf////tab////tab////tab////tab//endif//crlf////tab////tab////tab//endif//crlf////tab////tab////tab//return(d)//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf////crlf////crlf//^
ID=action_list|X=300|Y=118|W=908|H=661|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=Aspect_Script|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>//crlf////tab//{@if(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf////tab//{@if(getSystemValue(\\quot\\DevelopmentMode\\quot\\)\\comma\\fileModified(getToken(\\quot\\homedir\\quot\\)\\plus\\\\quot\\cache~~backslash~~WidgetEdit_VWaUGu88BMN0hDYWzZj57VpG_Daily Sales Export.html\\quot\\)\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//<conditional expression:(\\quot\\__action_list__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab//Daily Sales Export\\comma\\addRecordTypeToEnterpriseNames\\comma\\action_list\\comma\\Action=addRecordTypeToEnterpriseNames\\comma\\private//crlf////tab//Daily Sales Export\\comma\\createSalesExportSynchTasks\\comma\\action_list\\comma\\Action=createSalesExportSynchTasks\\comma\\private//crlf////tab//Daily Sales Export\\comma\\updateConsolidatedDailySalesExport\\comma\\action_list\\comma\\Action=updateConsolidatedDailySalesExport\\comma\\private//crlf////tab//Daily Sales Export\\comma\\createSalesExportFileset\\comma\\action_list\\comma\\Action=createSalesExportFileset\\comma\\private//crlf////tab//Daily Sales Export\\comma\\updateDailySalesExport\\comma\\action_list\\comma\\Action=updateDailySalesExport\\comma\\private//crlf////tab//Daily Sales Export\\comma\\updadeDailySalesExportPrep\\comma\\action_list\\comma\\Action=updadeDailySalesExportPrep\\comma\\private//crlf////tab//Daily Sales Export\\comma\\updateDailySalesExportForStore\\comma\\action_list\\comma\\Action=updateDailySalesExportForStore\\comma\\private//crlf////tab//Daily Sales Export\\comma\\updateEnterpriseExports\\comma\\action_list\\comma\\Action=updateEnterpriseExports\\comma\\private//crlf//</conditional>//crlf////crlf//[!------------------------------------------------------------------------//crlf//addRecordTypeToEnterpriseNames//crlf//--------------------------------------------------------------------------]//crlf//<conditional expression:(\\quot\\__Action__\\quot\\=\\quot\\addRecordTypeToEnterpriseNames\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__ActionDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Adds records to the enterprise names driver for the given record type.  Reads the //crlf////tab////tab//salesexport files for 45 days and adds all unique names found for the given record type.//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//RecordType - The record type to be added//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Ok or Error//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\addRecordTypeToEnterpriseNames\\quot\\; commands:\\quot\\//crlf////tab////tab////tab////abort if no record type defined//crlf////tab////tab////tab//if(not(defined(\\quot\\__RecordType__\\quot\\)))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing RecordType\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if record_type is 64 or 65.  Use the 6400-6403 instead.  These are required //crlf////tab////tab////tab////since revenue centers\\comma\\ time periods\\comma\\ departments and categories are all included in //crlf////tab////tab////tab////record types 64 and 65.//crlf////tab////tab////tab//if((__RecordType__=64) or (__RecordType__=65))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Use Time Period and (Name / Category1 / Category2 / Category3)\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////open enterprise names driver//crlf////tab////tab////tab//driverOpen(POS_Generic_Enterprise_Names\\comma\\d\\comma\\WRITE)//crlf////crlf////tab////tab////tab////make a hashtable of all existing names for the given record type.  The name is used //crlf////tab////tab////tab////as both the key and the value//crlf////tab////tab////tab//hashCreate(hashName)//crlf////tab////tab////tab//driverSetFilter(d\\comma\\\\quot\\Record_Type=__RecordType__\\quot\\\\comma\\true)//crlf////tab////tab////tab//c=driverGetRecordCount(d)//crlf////tab////tab////tab//n=0//crlf////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab//sName=driverGetField(d\\comma\\\\quot\\Name\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab//hashPut(hashName\\comma\\sName\\comma\\sName)//crlf////tab////tab////tab////tab//n\\plus\\\\plus\\//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab////iterate through sales export files\\comma\\ adding names from each file//crlf////tab////tab////tab//cAdded=0//crlf////tab////tab////tab//dt=incrementTime(now()\\comma\\-45)//crlf////tab////tab////tab//while(dt<now())//crlf////tab////tab////tab////tab////get a list of files from the data directory//crlf////tab////tab////tab////tab//sFilespec=getToken(\\quot\\homedir\\quot\\)\\plus\\\\quot\\data/salesexport.\\quot\\\\plus\\formatDate(dt\\comma\\\\quot\\MM-dd-yyyy\\quot\\)\\plus\\\\quot\\.bin\\quot\\//crlf////tab////tab////tab////tab//arFiles=getMatchingFiles(sFilespec\\comma\\true\\comma\\false\\comma\\2\\comma\\)//crlf////crlf////tab////tab////tab////tab////add file from the store directory//crlf////tab////tab////tab////tab//sFilespec=getToken(\\quot\\POSInterface_StoreDir\\quot\\)\\plus\\\\quot\\salesexport.\\quot\\\\plus\\formatDate(dt\\comma\\\\quot\\MM-dd-yyyy\\quot\\)\\plus\\\\quot\\.bin\\quot\\//crlf////tab////tab////tab////tab//if(fileExists(sFilespec))//crlf////tab////tab////tab////tab////tab//arFiles=addElement(arFiles\\comma\\sFilespec\\comma\\\\quot\\~~pipe~~\\quot\\)//crlf////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab//c=getElementCount(arFiles\\comma\\\\quot\\~~pipe~~\\quot\\)//crlf////tab////tab////tab////tab//n=0//crlf////tab////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab////tab//sFilename=getElement(arFiles\\comma\\n\\comma\\\\quot\\~~pipe~~\\quot\\)//crlf////tab////tab////tab////tab////tab//driverOpen(POS_Generic_Daily_Sales_Export\\comma\\dExport\\comma\\READ\\comma\\false\\comma\\\\quot\\NoDepend~~pipe~~AltName=\\quot\\\\plus\\sFilename)//crlf////crlf////tab////tab////tab////tab////tab////handle record type 58 for \\quot\\Store\\quot\\ differently by filtering to the net sales //crlf////tab////tab////tab////tab////tab////record.  This is used because there is only one record and it will be in every file//crlf////tab////tab////tab////tab////tab//if(\\quot\\__RecordType__\\quot\\=\\quot\\58\\quot\\)//crlf////tab////tab////tab////tab////tab////tab//driverSetFilter(dExport\\comma\\\\quot\\Record_Type=19\\quot\\\\comma\\true)//crlf////tab////tab////tab////tab////tab//elseif((__RecordType__>=6400) and (__RecordType__<=6403))//crlf////tab////tab////tab////tab////tab////tab//driverSetFilter(dExport\\comma\\\\quot\\Record_Type=64\\quot\\\\comma\\true)//crlf////tab////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////tab//driverSetFilter(dExport\\comma\\\\quot\\Record_Type=__RecordType__\\quot\\\\comma\\true)//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab//c1=driverGetRecordCount(dExport)//crlf////tab////tab////tab////tab////tab//n1=0//crlf////tab////tab////tab////tab////tab//while(n1<c1)//crlf////tab////tab////tab////tab////tab////tab//if(\\quot\\__RecordType__\\quot\\=\\quot\\58\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab//sName=driverGetField(dExport\\comma\\\\quot\\Store_Name\\quot\\\\comma\\n1)//crlf////tab////tab////tab////tab////tab////tab//elseif(\\quot\\__RecordType__\\quot\\=\\quot\\6400\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab////this is net or total sales by time period - name//crlf////tab////tab////tab////tab////tab////tab////tab//sName=driverGetField(dExport\\comma\\\\quot\\Name_Override\\quot\\\\comma\\n1)//crlf////tab////tab////tab////tab////tab////tab//elseif(\\quot\\__RecordType__\\quot\\=\\quot\\6401\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab////this is net or total sales by time period - name//crlf////tab////tab////tab////tab////tab////tab////tab//sName=driverGetField(dExport\\comma\\\\quot\\Category1\\quot\\\\comma\\n1)//crlf////tab////tab////tab////tab////tab////tab//elseif(\\quot\\__RecordType__\\quot\\=\\quot\\6402\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab////this is net or total sales by time period - name//crlf////tab////tab////tab////tab////tab////tab////tab//sName=driverGetField(dExport\\comma\\\\quot\\Category2\\quot\\\\comma\\n1)//crlf////tab////tab////tab////tab////tab////tab//elseif(\\quot\\__RecordType__\\quot\\=\\quot\\6403\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab////this is net or total sales by time period - name//crlf////tab////tab////tab////tab////tab////tab////tab//sName=driverGetField(dExport\\comma\\\\quot\\Category3\\quot\\\\comma\\n1)//crlf////tab////tab////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////tab////tab//sName=driverGetField(dExport\\comma\\\\quot\\Field_Description_Short\\quot\\\\comma\\n1)//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab//if(len(sName)>0)//crlf////tab////tab////tab////tab////tab////tab////tab////add the name if it doesn\\apos\\t exist//crlf////tab////tab////tab////tab////tab////tab////tab//if(not(hashContainsKey(hashName\\comma\\sName)))//crlf////tab////tab////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(d)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\__RecordType__)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\Name\\quot\\\\comma\\r\\comma\\sName)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//hashPut(hashName\\comma\\sName\\comma\\sName)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//cAdded\\plus\\\\plus\\//crlf////tab////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////tab//n1\\plus\\\\plus\\//crlf////tab////tab////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab////tab////tab//driverClose(dExport)//crlf////tab////tab////tab////tab////tab//n\\plus\\\\plus\\//crlf////tab////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab////tab//dt=incrementTime(dt\\comma\\1)//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab//driverClose(d)//crlf////crlf////tab////tab////tab//return(\\quot\\Ok: Added \\quot\\\\plus\\cAdded\\plus\\\\quot\\ records\\quot\\)//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf////crlf//[!------------------------------------------------------------------------//crlf//updateConsolidatedDailySalesExport//crlf//--------------------------------------------------------------------------]//crlf//<conditional expression:(\\quot\\__Action__\\quot\\=\\quot\\updateConsolidatedDailySalesExport\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__ActionDescription__\\quot\\=\\quot\\true\\quot\\)>//tab////crlf////tab////tab//Updates the POS_Generic_Daily_Sales_Export_Consolidated driver.  This driver uses a //crlf////tab////tab//dependency that calls this action to update the file.  The file is stored in the //crlf////tab////tab//temporary_files directory.  Using a dependency means the driver can be created one time //crlf////tab////tab//for a selection of dates and then be used repeatedly without the delay of opening it //crlf////tab////tab//again.//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//SelectedHashID - Comma-delimited array of HashIDs//crlf////tab////tab//DateFrom - Starting date//crlf////tab////tab//DateTo - Ending Date//crlf////tab////tab//ReportID - Report ID.  This is used to get the filter. //crlf////tab////tab//RecordType - Optional recordtype//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Ok or Error//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\updateConsolidatedDailySalesExport\\quot\\; commands:\\quot\\//crlf////crlf////tab////tab////tab////abort if missing DateFrom//crlf////tab////tab////tab//if(undefined(\\quot\\__DateFrom__\\quot\\))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing DateFrom\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if missing DateTo//crlf////tab////tab////tab//if(undefined(\\quot\\__DateTo__\\quot\\))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing DateTo\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab//if(defined(\\quot\\__SelectedHashID__\\quot\\))//crlf////tab////tab////tab////tab//arHashID=\\quot\\__SelectedHashID__\\quot\\//crlf////tab////tab////tab//else//crlf////tab////tab////tab////tab//arHashID=getCollection(POS_Generic_Available_Consolidated_HashID\\comma\\true\\comma\\\\quot\\coll=AvailableConsolidatedData\\quot\\\\comma\\\\quot\\\\quot\\\\comma\\\\quot\\\\comma\\\\quot\\\\comma\\\\quot\\keys\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab//sReportID=\\quot\\__ReportID__\\quot\\//crlf////tab////tab////tab//sDateFrom=\\quot\\__DateFrom__\\quot\\//crlf////tab////tab////tab//sDateTo=\\quot\\__DateTo__\\quot\\//crlf////crlf////tab////tab////tab////see if another instance is already running to update the date//crlf////tab////tab////tab//sExpression=\\quot\\(sDateFrom=\\quot\\\\plus\\quote(sDateFrom)\\plus\\\\quot\\) and (sDateTo=\\quot\\\\plus\\quote(sDateTo)\\plus\\\\quot\\) and (sReportID=\\quot\\\\plus\\quote(sReportID)\\plus\\\\quot\\) and (arHashID=\\quot\\\\plus\\quote(arHashID)\\plus\\\\quot\\) and (scriptGetInstanceID()\\quot\\\\plus\\char(0x3C)\\plus\\scriptGetInstanceID()\\plus\\\\quot\\)\\quot\\//crlf////tab////tab////tab//cInstance=scriptCount(this\\comma\\sExpression)//crlf////tab////tab////tab//bAlreadyUpdated=(cInstance>0)//crlf////crlf////tab////tab////tab////wait for any prior instances to terminate//crlf////tab////tab////tab//sExpression=\\quot\\(scriptGetInstanceID()\\quot\\\\plus\\char(0x3C)\\plus\\scriptGetInstanceID()\\plus\\\\quot\\)\\quot\\//crlf////tab////tab////tab//cInstance=scriptCount(this\\comma\\sExpression)//crlf////tab////tab////tab//while(cInstance>0)//crlf////tab////tab////tab////tab//scriptSleep(1000)//crlf////tab////tab////tab////tab//cInstance=scriptCount(this\\comma\\sExpression)//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab////abort if another instance was already running for the store and date//crlf////tab////tab////tab//if(bAlreadyUpdated)//crlf////tab////tab////tab////tab//return(\\quot\\Ok: Updated by previous instance\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////get the filter for the report.  This is done instead of passing the filter as a //crlf////tab////tab////tab////parameter because characters like equals and lt/gt were causing a problem when passed //crlf////tab////tab////tab////as a parameter//crlf////tab////tab////tab//sDriverFilter=\\quot\\\\quot\\//crlf////tab////tab////tab//if(defined(\\quot\\__ReportID__\\quot\\))//crlf////tab////tab////tab////tab//sDriverFilter=lookup(Greenlight_Dimensional_Report_Filter_by_ReportID\\comma\\sReportID)//crlf////tab////tab////tab//endif//crlf////tab////tab////tab//appendToLog(\\quot\\ReportID=\\quot\\\\plus\\sReportID\\plus\\\\quot\\ sDriverFilter=\\quot\\\\plus\\sDriverFilter)//crlf////tab////tab////tab//appendToLog(\\quot\\RecordType=__RecordType__\\quot\\)//crlf////crlf////tab////tab////tab////add RecordType filter passed in params//crlf////tab////tab////tab//if(defined(\\quot\\__RecordType__\\quot\\))//crlf////tab////tab////tab////tab//if(len(sDriverFilter)>0)//crlf////tab////tab////tab////tab////tab//sDriverFilter=sDriverFilter\\plus\\\\quot\\ and \\quot\\//crlf////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab//sDriverFilter=sDriverFilter\\plus\\\\quot\\(gte(containsElement(\\quot\\\\plus\\quote(\\quot\\__RecordType__\\quot\\)\\plus\\\\quot\\\\comma\\Record_Type)\\comma\\0\\comma\\n))\\quot\\//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab//dtFrom=parseTime(\\quot\\__DateFrom__\\quot\\)//crlf////tab////tab////tab//dtTo=parseTime(\\quot\\__DateTo__\\quot\\)//crlf////tab////tab////tab//appendToLog(\\quot\\HashID=\\quot\\\\plus\\arHashID\\plus\\\\quot\\ DateFrom=__DateFrom__ DateTo=__DateTo__\\quot\\)//crlf////crlf////tab////tab////tab////get filename//crlf////tab////tab////tab//sFilename=getToken(\\quot\\temporary_files\\quot\\)\\plus\\\\quot\\consolidated_sales_export_\\quot\\\\plus\\getCrcFilename(\\quot\\__SelectedHashID__\\quot\\\\comma\\\\quot\\__DateFrom__\\quot\\\\comma\\\\quot\\__DateTo__\\quot\\\\comma\\\\quot\\__ReportID__\\quot\\\\comma\\\\quot\\__RecordType__\\quot\\)\\plus\\\\quot\\.$$$\\quot\\//crlf////crlf////tab////tab////tab////delete the file if it exists//crlf////tab////tab////tab//if(fileExists(sFilename))//crlf////tab////tab////tab////tab//fileDelete(sFilename)//crlf////tab////tab////tab////tab//if(fileExists(sFilename))//crlf////tab////tab////tab////tab////tab//fileSetLength(sFilename\\comma\\0)//crlf////tab////tab////tab////tab//endif//tab////tab////tab////crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab//bApplyFilter=false//crlf////tab////tab////tab//sFilter=\\quot\\\\quot\\//crlf////tab////tab////tab//if(len(sDriverFilter)>0)//crlf////tab////tab////tab////tab//sFilter=sDriverFilter//crlf////tab////tab////tab////tab//bApplyFilter=true//crlf////tab////tab////tab//endif//crlf////tab////tab////tab//appendToLog(\\quot\\sFilter=\\quot\\\\plus\\sFilter)//crlf////crlf////tab////tab////tab////open the driver if a filter is being applied//crlf////tab////tab////tab//if(bApplyFilter)//crlf////tab////tab////tab////tab//d=getSalt(4)//crlf////tab////tab////tab////tab//sParams=\\quot\\SelectedHashID=__SelectedHashID__~~pipe~~DateFrom=__DateFrom__~~pipe~~DateTo=__DateTo__~~pipe~~ReportID=__ReportID__~~pipe~~RecordType=__RecordType__\\quot\\//crlf////tab////tab////tab////tab//driverOpen(POS_Generic_Daily_Sales_Export_Consolidated\\comma\\d\\comma\\WRITE\\comma\\true\\comma\\sParams\\plus\\\\quot\\~~pipe~~NoDepend\\quot\\)//crlf////tab////tab////tab////tab//appendToLog(\\quot\\POS_Generic_openDailySalesExportConsolidated complete\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////append the files//crlf////tab////tab////tab//cHashID=getElementCount(arHashID)//crlf////tab////tab////tab//nHashID=0//crlf////tab////tab////tab//cRecords=0//crlf////tab////tab////tab//appendToLog(\\quot\\cHashID=\\quot\\\\plus\\cHashID\\plus\\\\quot\\ arHashID=\\quot\\\\plus\\arHashID)//crlf////tab////tab////tab//while(nHashID<cHashID)//crlf////tab////tab////tab////tab//dt=dtFrom//crlf////tab////tab////tab////tab//appendToLog(\\quot\\Adding HashID \\quot\\\\plus\\nHashID\\plus\\\\quot\\ of \\quot\\\\plus\\cHashID\\plus\\\\quot\\ dt=\\quot\\\\plus\\dt\\plus\\\\quot\\ dtTo=\\quot\\\\plus\\dtTo)//crlf////tab////tab////tab////tab//while(dt<=dtTo)//crlf////tab////tab////tab////tab////tab//sHashID=getElement(arHashID\\comma\\nHashID)//crlf////tab////tab////tab////tab////tab////appendToLog(\\quot\\sHashID=\\quot\\\\plus\\sHashID\\plus\\\\quot\\ dt=\\quot\\\\plus\\dt)//crlf////tab////tab////tab////tab////tab//s=getToken(\\quot\\homedir\\quot\\)\\plus\\\\quot\\data~~backslash~~\\quot\\\\plus\\sHashID\\plus\\\\quot\\~~backslash~~salesexport.\\quot\\\\plus\\formatDate(dt\\comma\\\\quot\\MM-dd-yyyy\\quot\\)\\plus\\\\quot\\.bin\\quot\\//crlf////tab////tab////tab////tab////tab//if(not(fileExists(s)))//crlf////tab////tab////tab////tab////tab////tab//if(getToken(\\quot\\AspectHashID\\quot\\)=sHashID)//crlf////tab////tab////tab////tab////tab////tab////tab////look in the local store directory//crlf////tab////tab////tab////tab////tab////tab////tab//if(getToken(\\quot\\AspectHashID\\quot\\)=\\quot\\4idczse69\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////this is for testing.  Burnt City Brewing has one year\\apos\\s worth of data//crlf////tab////tab////tab////tab////tab////tab////tab////tab////s=\\quot\\C:~~backslash~~aspect7~~backslash~~stores~~backslash~~Southport_Lanes~~backslash~~salesexport.\\quot\\\\plus\\formatDate(dt\\comma\\\\quot\\MM-dd-yyyy\\quot\\)\\plus\\\\quot\\.bin\\quot\\//crlf////tab////tab////tab////tab////tab////tab////tab////tab//s=\\quot\\C:~~backslash~~aspect7~~backslash~~stores~~backslash~~Fosters Freeze - Lemoore 1myuvce82~~backslash~~salesexport.\\quot\\\\plus\\formatDate(dt\\comma\\\\quot\\MM-dd-yyyy\\quot\\)\\plus\\\\quot\\.bin\\quot\\//crlf////tab////tab////tab////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////tab////tab////tab//s=addDirSlash(getToken(\\quot\\POSInterface_StoreDir\\quot\\))\\plus\\\\quot\\salesexport.\\quot\\\\plus\\formatDate(dt\\comma\\\\quot\\MM-dd-yyyy\\quot\\)\\plus\\\\quot\\.bin\\quot\\//crlf////tab////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab//if((fileExists(s)) and (fileSize(s)>0))//crlf////tab////tab////tab////tab////tab////tab//if(not(bApplyFilter))//crlf////tab////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\POS_Generic_openDailySalesExportConsolidated copying \\quot\\\\plus\\s)//crlf////tab////tab////tab////tab////tab////tab////tab//fileCopy(s\\comma\\sFilename\\comma\\true\\comma\\true)//crlf////tab////tab////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////tab////tab//driverOpen(POS_Generic_Daily_Sales_Export\\comma\\d1\\comma\\READ\\comma\\false\\comma\\\\quot\\nodepend~~pipe~~AltName=\\quot\\\\plus\\s)//crlf////tab////tab////tab////tab////tab////tab////tab//driverSetFilter(d1\\comma\\sFilter\\comma\\true)//crlf////tab////tab////tab////tab////tab////tab////tab//c=driverGetRecordCount(d1)//crlf////tab////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\copying \\quot\\\\plus\\c\\plus\\\\quot\\ records from \\quot\\\\plus\\s)//crlf////tab////tab////tab////tab////tab////tab////tab//n=0//crlf////tab////tab////tab////tab////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////r=driverAddNewRecord(d)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//driverCopyRecord(d1\\comma\\driverGetAbsoluteIndex(d1\\comma\\n)\\comma\\d\\comma\\cRecords)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//cRecords\\plus\\\\plus\\//crlf////tab////tab////tab////tab////tab////tab////tab////tab//n\\plus\\\\plus\\//crlf////tab////tab////tab////tab////tab////tab////tab//endwhile//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\File not found: \\quot\\\\plus\\s)//crlf////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab//dt=incrementTime(dt\\comma\\1)//crlf////tab////tab////tab////tab//endwhile//crlf////tab////tab////tab////tab//nHashID\\plus\\\\plus\\//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab//driverClose(d)//crlf////tab////tab////tab//return(\\quot\\ok\\quot\\)//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf////crlf////crlf//<conditional expression:false>//crlf//[!------------------------------------------------------------------------//crlf//createSalesExportSynchTasks//crlf//--------------------------------------------------------------------------]//crlf//</conditional>//crlf//<conditional expression:(\\quot\\__Action__\\quot\\=\\quot\\createSalesExportSynchTasks\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__ActionDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Creates synch tasks used to get SalesExport files on the central computer//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//None//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Ok or Error//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\createSalesExportSynchTasks\\quot\\; commands:\\quot\\//crlf////tab////tab////tab////update the company list//crlf////appendToLog(\\quot\\Updating company list\\quot\\)//crlf////tab////tab////tab//scriptExec(Aspect_BackOffice_updateCompanyList\\comma\\true)//crlf////crlf////tab////tab////tab////open the file set synch driver//crlf////tab////tab////tab//driverOpen(Aspect_File_Set_Synch\\comma\\dFileSetSynch\\comma\\WRITE)//crlf////crlf////tab////tab////tab////array of computer Hash ID\\apos\\s//crlf////tab////tab////tab//arHashID=getCollection(Aspect_BackOffice_Company_List\\comma\\\\quot\\lt(Days_Since_Active\\comma\\30\\comma\\n)\\quot\\\\comma\\\\quot\\\\quot\\\\comma\\\\quot\\\\quot\\\\comma\\\\quot\\\\comma\\\\quot\\\\comma\\keys)//crlf////appendToLog(\\quot\\arHashID=\\quot\\\\plus\\arHashID)//crlf////crlf////tab////tab////tab////get hashtable of absolute record numbers for existing tasks.  Check the fileset name to //crlf////tab////tab////tab////avoid overwriting other synch tasks for the same hashid.//crlf////tab////tab////tab//hashCreate(hashTask)//crlf////tab////tab////tab//c=driverGetRecordCount(dFileSetsynch\\comma\\true)//crlf////tab////tab////tab//n=0//crlf////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab//sHashID=driverGetFieldAbsolute(dFileSetSynch\\comma\\\\quot\\HashID\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab//sFileSetName=driverGetFieldAbsolute(dFileSetSynch\\comma\\\\quot\\File_Set_Name\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab//if(sFileSetName=\\quot\\SalesExport\\quot\\)//crlf////appendToLog(\\quot\\added HashID to Hashtable: \\quot\\\\plus\\sHashID)//crlf////tab////tab////tab////tab////tab//hashPut(hashTask\\comma\\sHashID\\comma\\n)//crlf////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab//n\\plus\\\\plus\\//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab////add synch tasks to driver//crlf////tab////tab////tab//cAdded=0//crlf////tab////tab////tab//cDeleted=0//crlf////tab////tab////tab//c=getElementCount(arHashID)//crlf////tab////tab////tab//n=0//crlf////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab//sHashID=getElement(arHashID\\comma\\n)//crlf////appendToLog(\\quot\\sHashID1=\\quot\\\\plus\\sHashID1)//crlf////tab////tab////tab////tab//if(sHashID<>\\quot\\0\\quot\\)//crlf////tab////tab////tab////tab////tab//if(hashContainsKey(hashTask\\comma\\sHashID))//crlf////tab////tab////tab////tab////tab////tab//r=hashGet(hashTask\\comma\\sHashID)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dFileSetSynch\\comma\\\\quot\\Used\\quot\\\\comma\\r\\comma\\true)//crlf////tab////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\Added new task for \\quot\\\\plus\\sHashID)//crlf////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dFileSetSynch)//crlf////tab////tab////tab////tab////tab////tab//cAdded\\plus\\\\plus\\//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////get the directory to which files will be received.  Create it if it doesn\\apos\\t exist//crlf////tab////tab////tab////tab////tab//sDir=getToken(\\quot\\homedir\\quot\\)\\plus\\\\quot\\data/\\quot\\\\plus\\sHashID//crlf////tab////tab////tab////tab////tab//if(not(fileExists(sDir)))//crlf////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\Created directory: \\quot\\\\plus\\sDir)//crlf////tab////tab////tab////tab////tab////tab//fileMakeDirectory(sDir)//crlf////tab////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\Directory exists: \\quot\\\\plus\\sDir)//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dFileSetSynch\\comma\\\\quot\\CompanyID\\quot\\\\comma\\r\\comma\\getToken(\\quot\\Aspect_BackOffice_Pref_CompanyPollingID\\quot\\))//crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dFileSetSynch\\comma\\\\quot\\HashID\\quot\\\\comma\\r\\comma\\sHashID)//crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dFileSetSynch\\comma\\\\quot\\File_Set_Name\\quot\\\\comma\\r\\comma\\\\quot\\SalesExport\\quot\\)//crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dFileSetSynch\\comma\\\\quot\\Base_Directory\\quot\\\\comma\\r\\comma\\sDir)//crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dFileSetSynch\\comma\\\\quot\\Replace_Existing_Files\\quot\\\\comma\\r\\comma\\true)//crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dFileSetSynch\\comma\\\\quot\\Max_Age_Days\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dFileSetSynch\\comma\\\\quot\\Compare_Timestamps_Only\\quot\\\\comma\\r\\comma\\false)//crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dFileSetSynch\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\\\quot\\Sales Export\\quot\\)//crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dFileSetSynch\\comma\\\\quot\\TaskEnabled\\quot\\\\comma\\r\\comma\\true)//crlf////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab//n\\plus\\\\plus\\//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab////delete any tasks for which the HashID is not valid//crlf////tab////tab////tab//c=driverGetRecordCount(dFileSetSynch\\comma\\true)//crlf////tab////tab////tab//n=0//crlf////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab//bUsed=driverGetFieldAbsolute(dFileSetSynch\\comma\\\\quot\\Used\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab//if(bUsed)//crlf////tab////tab////tab////tab////tab//s=driverGetFieldAbsolute(dFileSetSynch\\comma\\\\quot\\File_Set_Name\\quot\\\\comma\\n)//crlf////appendToLog(\\quot\\s=\\quot\\\\plus\\s)//crlf////tab////tab////tab////tab////tab//if(s=\\quot\\SalesExport\\quot\\)//crlf////tab////tab////tab////tab////tab////tab//sHashID=driverGetFieldAbsolute(dFileSetSynch\\comma\\\\quot\\HashID\\quot\\\\comma\\n)//crlf////appendToLog(\\quot\\sHashID=\\quot\\\\plus\\sHashID)//crlf////tab////tab////tab////tab////tab////tab//if(containsElement(arHashID\\comma\\sHashID)<0)//crlf////tab////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\Deleted task for \\quot\\\\plus\\sHashID)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dFileSetSynch\\comma\\\\quot\\Used\\quot\\\\comma\\n\\comma\\false)//crlf////tab////tab////tab////tab////tab////tab////tab//cDeleted\\plus\\\\plus\\//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab//n\\plus\\\\plus\\//crlf////tab////tab////tab//endwhile//crlf////tab////tab////tab//driverClose(dFileSetSynch)//crlf////crlf////tab////tab////tab////update the task scheduler//crlf////tab////tab////tab//enableTaskScheduler(Aspect_File_Set_Synch\\comma\\true\\comma\\true)//crlf////crlf////tab////tab////tab//return(\\quot\\Ok.  Added \\quot\\\\plus\\cAdded\\plus\\\\quot\\ tasks.  Deleted \\quot\\\\plus\\cDeleted\\plus\\\\quot\\ tasks\\quot\\)//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf////crlf//[!------------------------------------------------------------------------//crlf//createSalesExportFileset//crlf//--------------------------------------------------------------------------]//crlf//<conditional expression:(\\quot\\__Action__\\quot\\=\\quot\\createSalesExportFileset\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__ActionDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Creates the fileset used to transfer the salesexport files to a central location.  The //crlf////tab////tab//store and it\\apos\\s directory are determined by the POSInterface_StoreID token.//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//None//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Ok or Error//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\createSalesExportFileset\\quot\\; commands:\\quot\\//crlf////tab////tab////tab////abort if store is not defined//crlf////tab////tab////tab//sStoreID=getToken(POSInterface_StoreID)//crlf////tab////tab////tab//if((len(sStoreID)=0) or (sStoreID=\\quot\\Undefined\\quot\\))//crlf////tab////tab////tab////tab//return(\\quot\\Error: POSInterface_StoreID is undefined\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab//sStoreDir=getStoreDir(sStoreID)//crlf////crlf////tab////tab////tab////abort if storedir is not valid//crlf////tab////tab////tab//if(len(trim(sStoreDir))=0)//crlf////tab////tab////tab////tab//return(\\quot\\Error: StoreDir is undefined\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////open file sets//crlf////tab////tab////tab//driverOpen(Aspect_File_Set\\comma\\d\\comma\\WRITE)//crlf////tab////tab////tab//driverSetFilter(d\\comma\\\\quot\\true\\quot\\\\comma\\true)//crlf////tab////tab////tab//r=driverFindRecord(d\\comma\\0\\comma\\\\quot\\TaskName=\\quot\\\\plus\\quote(\\quot\\SalesExport\\quot\\))//crlf////tab////tab////tab//if(r>=0)//crlf////tab////tab////tab////tab//r=driverGetAbsoluteIndex(d\\comma\\r)//crlf////tab////tab////tab//else//crlf////tab////tab////tab////tab//r=driverAddNewRecord(d)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\TaskName\\quot\\\\comma\\r\\comma\\\\quot\\SalesExport\\quot\\)//crlf////tab////tab////tab////sFilespec=addDirSlash(sStoreDir)\\plus\\\\quot\\SalesExport.*\\quot\\//crlf////tab////tab////tab//sFilespec=\\quot\\@=getSetTime(incrementTime(now()\\comma\\-30)\\comma\\now()\\comma\\1440*60\\comma\\\\apos\\MM-dd-yyyy\\apos\\\\comma\\true\\comma\\\\apos\\\\quot\\\\plus\\addDirSlash(sStoreDir)\\plus\\\\quot\\salesexport.$e$.bin\\apos\\\\comma\\char(0x3B))\\quot\\//crlf////tab////tab////tab//sFilespec=replaceSubstring(sFilespec\\comma\\char(0x27)\\comma\\char(0x22))//crlf////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\Filespec\\quot\\\\comma\\r\\comma\\sFilespec)//crlf////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\TaskEnabled\\quot\\\\comma\\r\\comma\\true)//crlf////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\\\quot\\Sales Export\\quot\\)//crlf////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\TaskMinutesBetweenExecution\\quot\\\\comma\\r\\comma\\10)//crlf////crlf////tab////tab////tab//driverClose(d)//crlf////crlf////tab////tab////tab//enableTaskScheduler(Aspect_File_Set\\comma\\true\\comma\\true)//crlf////tab////tab////tab////crlf////tab////tab////tab//return(\\quot\\ok: File set created for \\quot\\\\plus\\sFilespec)//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf////crlf//[!------------------------------------------------------------------------//crlf//updateDailySalesExport//crlf//--------------------------------------------------------------------------]//crlf//<conditional expression:(\\quot\\__Action__\\quot\\=\\quot\\updateDailySalesExport\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__ActionDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Update the final POS_Generic_Daily_Sales_Export that is used to consolidate data //crlf////tab////tab//for multiple stores.  This driver contains only data and no calculated fields.  //crlf////tab////tab//Any lookups for category names\\comma\\ job code names\\comma\\ etc. are recorded as values in //crlf////tab////tab//the file//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//StoreID - Store ID//crlf////tab////tab//Date - Date//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Ok or Error//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\updateDailySalesExport\\quot\\; commands:\\quot\\//crlf////tab////tab////tab//appendToLog(\\quot\\updadeDailySalesExport Date=__Date__\\quot\\)//crlf////tab////tab////tab//profile(true)//crlf////crlf////tab////tab////tab////abort if store not defined//crlf////tab////tab////tab//if(not(defined(\\quot\\__StoreID__\\quot\\)))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing StoreID\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if date not defined//crlf////tab////tab////tab//if(not(defined(\\quot\\__Date__\\quot\\)))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing Date\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////get the store directory and date//crlf////tab////tab////tab//sStoreDir=getStoreDir(\\quot\\__StoreID__\\quot\\)//crlf////tab////tab////tab//sDate=\\quot\\__Date__\\quot\\//crlf////crlf////tab////tab////tab////03-04-2024 Abort if the date is more than 30 days old and the file already exists//crlf////tab////tab////tab//dt=parseTime(\\quot\\__date__\\quot\\\\comma\\\\quot\\MM-dd-yyyy\\quot\\)//crlf////tab////tab////tab//if(dt<incrementTime(now()\\comma\\-30))//crlf////tab////tab////tab////tab//sFileName=sStoreDir\\plus\\\\quot\\salesexport.__date__.bin\\quot\\//crlf////tab////tab////tab////tab//if((fileExists(sFileName)) and (fileSize(sFileName)>0))//crlf////tab////tab////tab////tab////tab//return(\\quot\\Ok: Already exists: \\quot\\\\plus\\sFilename)//crlf////tab////tab////tab////tab//endif//crlf////tab////tab////tab//endif//crlf////tab////tab////tab////tab////crlf////tab////tab////tab////abort if granite links//crlf////tab////tab////tab//if(getToken(\\quot\\AspectHashID\\quot\\)=\\quot\\m1skppjhy\\quot\\)//crlf////tab////tab////tab////tab//return(\\quot\\Ok: Aborted Granite Links\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////see if another instance is already running to update the date//crlf////tab////tab////tab//sExpression=\\quot\\(sStoreID=\\quot\\\\plus\\quote(sStoreID)\\plus\\\\quot\\) and (sDate=\\quot\\\\plus\\quote(sDate)\\plus\\\\quot\\) and (scriptGetInstanceID()\\quot\\\\plus\\char(0x3C)\\plus\\scriptGetInstanceID()\\plus\\\\quot\\)\\quot\\//crlf////tab////tab////tab//cInstance=scriptCount(this\\comma\\sExpression)//crlf////tab////tab////tab//bAlreadyUpdated=(cInstance>0)//crlf////crlf////tab////tab////tab////wait for any prior instances to terminate//crlf////tab////tab////tab//sExpression=\\quot\\(scriptGetInstanceID()\\quot\\\\plus\\char(0x3C)\\plus\\scriptGetInstanceID()\\plus\\\\quot\\)\\quot\\//crlf////tab////tab////tab//cInstance=scriptCount(this\\comma\\sExpression)//crlf////tab////tab////tab//while(cInstance>0)//crlf////tab////tab////tab////tab//scriptSleep(1000)//crlf////tab////tab////tab////tab//cInstance=scriptCount(this\\comma\\sExpression)//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab////abort if another instance was already running for the store and date//crlf////tab////tab////tab//if(bAlreadyUpdated)//crlf////tab////tab////tab////tab//return(\\quot\\Ok: Updated by previous instance\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////delete the POS_Generic_Daily_Sales_Export file if it exists//crlf////tab////tab////tab//sFileName=sStoreDir\\plus\\\\quot\\salesexport.__date__.bin\\quot\\//crlf////tab////tab////tab//if(fileExists(sFileName))//crlf////tab////tab////tab////tab//fileDelete(sFileName)//crlf////tab////tab////tab////tab//if(fileExists(sFileName))//crlf////tab////tab////tab////tab////tab//fileSetLength(sFileName\\comma\\0)//crlf////tab////tab////tab////tab//endif//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////open the drivers//crlf////tab////tab////tab//dSrc=getSalt(4)//crlf////tab////tab////tab//dDest=getSalt(4)//crlf////tab////tab////tab//driverOpen(POS_Generic_Daily_Sales_Export_Prep\\comma\\dSrc\\comma\\READ\\comma\\true\\comma\\\\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\)//crlf////tab////tab////tab//driverOpen(POS_Generic_Daily_Sales_Export\\comma\\dDest\\comma\\WRITE\\comma\\true\\comma\\\\quot\\NoDepend=true~~pipe~~StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\)//crlf////tab////tab////tab//driverSetFilter(dSrc\\comma\\\\quot\\true\\quot\\\\comma\\true)//crlf////tab////tab////tab//driverSetFilter(dDest\\comma\\\\quot\\true\\quot\\\\comma\\true)//crlf////crlf////tab////tab////tab////merge the drivers//crlf////tab////tab////tab//s=execAgentAction(\\quot\\executeMergeDefinition\\quot\\\\comma\\\\quot\\MergeID=F6EUzrUI\\amp\\SourceDriver=\\quot\\\\plus\\dSrc\\plus\\\\quot\\\\amp\\DestDriver=\\quot\\\\plus\\dDest)//crlf////tab////tab////tab//appendToLog(s)//crlf////crlf////tab////tab////tab//driverClose(dSrc)//crlf////tab////tab////tab//driverClose(dDest)//crlf////crlf////tab////tab////tab//return(s)//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf////crlf//[!------------------------------------------------------------------------//crlf//updadeDailySalesExportPrep//crlf//--------------------------------------------------------------------------]//crlf//<conditional expression:(\\quot\\__Action__\\quot\\=\\quot\\updadeDailySalesExportPrep\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__ActionDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Updates the POS_Generic_Daily_Sales_Export_Prep driver.  This driver contains //crlf////tab////tab//data from the daily sales driver plus additional calculated fields such as counts //crlf////tab////tab//and amounts from the previous week\\comma\\ month and year.  This driver also contains additional //crlf////tab////tab//data like job code totals\\comma\\ menu item sales and any other data that might be used //crlf////tab////tab//when consolidating data for multiple stores.//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//StoreID - Store ID//crlf////tab////tab//Date - Date//crlf////tab////tab//Recurse - Optional.  If undefined or false\\comma\\ past data will be retrieved for the original driver but //crlf////tab////tab////tab//it will not be calculated for any previous drivers created when the current one is processed //crlf////tab////tab////tab//and adds past data.  This is to prevent calculating all past days when calculating a single //crlf////tab////tab////tab//day.  If defined and true\\comma\\ then past days will be calculated recursively.//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Ok or Error//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\updadeDailySalesExportPrep\\quot\\; commands:\\quot\\//crlf////tab////tab////tab//appendToLog(\\quot\\updadeDailySalesExportPrep __Date__\\quot\\)//crlf////tab////tab////tab//profile(true)//crlf////crlf////tab////tab////tab////abort if store not defined//crlf////tab////tab////tab//if(not(defined(\\quot\\__StoreID__\\quot\\)))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing StoreID\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if date not defined//crlf////tab////tab////tab//if(not(defined(\\quot\\__Date__\\quot\\)))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing Date\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////get the store directory and date//crlf////tab////tab////tab//sStoreDir=getStoreDir(\\quot\\__StoreID__\\quot\\)//crlf////tab////tab////tab//sDate=\\quot\\__Date__\\quot\\//crlf////crlf////tab////tab////tab////03-10-2024 Abort if the date is more than 30 days old and the file already exists//crlf////tab////tab////tab//dt=parseTime(\\quot\\__date__\\quot\\\\comma\\\\quot\\MM-dd-yyyy\\quot\\)//crlf////tab////tab////tab//if(dt<incrementTime(now()\\comma\\-30))//crlf////tab////tab////tab////tab//sFileName=sStoreDir\\plus\\\\quot\\salesexportprep.__date__.bin\\quot\\//crlf////tab////tab////tab////tab//if((fileExists(sFileName)) and (fileSize(sFileName)>0))//crlf////tab////tab////tab////tab////tab//return(\\quot\\Ok: Already exists: \\quot\\\\plus\\sFilename)//crlf////tab////tab////tab////tab//endif//crlf////tab////tab////tab//endif//crlf////tab////tab////tab////tab////crlf////tab////tab////tab////abort if granite links//crlf////tab////tab////tab//if(getToken(\\quot\\AspectHashID\\quot\\)=\\quot\\m1skppjhy\\quot\\)//crlf////tab////tab////tab////tab//return(\\quot\\Ok: Aborted Granite Links\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////see if another instance is already running to update the date//crlf////tab////tab////tab//sExpression=\\quot\\(sStoreID=\\quot\\\\plus\\quote(sStoreID)\\plus\\\\quot\\) and (sDate=\\quot\\\\plus\\quote(sDate)\\plus\\\\quot\\) and (scriptGetInstanceID()\\quot\\\\plus\\char(0x3C)\\plus\\scriptGetInstanceID()\\plus\\\\quot\\)\\quot\\//crlf////tab////tab////tab//cInstance=scriptCount(this\\comma\\sExpression)//crlf////tab////tab////tab//bAlreadyUpdated=(cInstance>0)//crlf////crlf////tab////tab////tab////wait for any prior instances to terminate.  Note: Can\\apos\\t just wait for any previous instance //crlf////tab////tab////tab////to terminate because this script may be called to update an earlier date to get past values//crlf////tab////tab////tab//sExpression=\\quot\\(sStoreID=\\quot\\\\plus\\quote(sStoreID)\\plus\\\\quot\\) and (sDate=\\quot\\\\plus\\quote(sDate)\\plus\\\\quot\\) and (scriptGetInstanceID()\\quot\\\\plus\\char(0x3C)\\plus\\scriptGetInstanceID()\\plus\\\\quot\\)\\quot\\//crlf////tab////tab////tab//cInstance=scriptCount(this\\comma\\sExpression)//crlf////tab////tab////tab//while(cInstance>0)//crlf////tab////tab////tab////tab//scriptSleep(1000)//crlf////tab////tab////tab////tab//cInstance=scriptCount(this\\comma\\sExpression)//crlf////tab////tab////tab////tab//appendToLog(\\quot\\updadeDailySalesExportPrep  waiting for previous instance to terminate\\quot\\)//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab////abort if another instance was already running for the store and date//crlf////tab////tab////tab//if(bAlreadyUpdated)//crlf////tab////tab////tab////tab//return(\\quot\\Ok: Updated by previous instance\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////delete the POS_Generic_Daily_Sales_Export_Prep file if it exists//crlf////tab////tab////tab//sFileName=sStoreDir\\plus\\\\quot\\salesexportprep.__date__.bin\\quot\\//crlf////tab////tab////tab//if(fileExists(sFileName))//crlf////tab////tab////tab////tab//fileDelete(sFileName)//crlf////tab////tab////tab////tab//if(fileExists(sFileName))//crlf////tab////tab////tab////tab////tab//fileSetLength(sFileName\\comma\\0)//crlf////tab////tab////tab////tab//endif//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////open the consolidated daily sales driver.  This driver contains both the daily sales driver //crlf////tab////tab////tab////and user-defined fields that are transposed and added to the driver.//crlf////tab////tab////tab//appendToLog(\\quot\\updadeDailySalesExportPrep: opening drivers\\quot\\)//crlf////tab////tab////tab//dSrc=getSalt(4)//crlf////tab////tab////tab//dDest=getSalt(4)//crlf////tab////tab////tab//driverOpen(POS_Generic_Daily_Sales_Consolidated\\comma\\dSrc\\comma\\READ\\comma\\true\\comma\\\\quot\\StoreID=__StoreID__~~pipe~~DateFrom=__Date__~~pipe~~DateTo=__Date__\\quot\\)//crlf////tab////tab////tab//driverOpen(POS_Generic_Daily_Sales_Export_Prep\\comma\\dDest\\comma\\WRITE\\comma\\true\\comma\\\\quot\\NoDepend~~pipe~~StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\)//crlf////tab////tab////tab////crlf////tab////tab////tab////why is this here?//crlf////tab////tab////tab////updateDependentDriver(POS_Generic_Daily_Sales\\comma\\\\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\)//crlf////crlf////tab////tab////tab//appendToLog(\\quot\\updadeDailySalesExportPrep: opening drivers complete\\quot\\)//crlf////crlf////tab////tab////tab//driverSetFilter(dSrc\\comma\\\\quot\\true\\quot\\\\comma\\true)//crlf////tab////tab////tab////driverSetFilter(dDest\\comma\\\\quot\\true\\quot\\\\comma\\true)//crlf////crlf////tab////tab////tab////merge the drivers//crlf////tab////tab////tab//appendToLog(\\quot\\updadeDailySalesExportPrep: begin merging drivers\\quot\\)//crlf////tab////tab////tab//s=execAgentAction(\\quot\\executeMergeDefinition\\quot\\\\comma\\\\quot\\MergeID=xxO5YZUB\\amp\\SourceDriver=\\quot\\\\plus\\dSrc\\plus\\\\quot\\\\amp\\DestDriver=\\quot\\\\plus\\dDest)//crlf////tab////tab////tab//appendToLog(\\quot\\updadeDailySalesExportPrep: merge drivers complete\\quot\\)//crlf////crlf////tab////tab////tab//driverClose(dSrc)//crlf////crlf////tab////tab////tab////open daily inventory summary.  This is used to merge item purchases and group purchases//crlf////tab////tab////tab//appendToLog(\\quot\\Opening daily inventory summary\\quot\\)//crlf////tab////tab////tab//driverOpen(Aspect_Back_Office_Daily_Inventory_Summary\\comma\\drvDailySummary\\comma\\READ\\comma\\true\\comma\\\\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\)//crlf////crlf////tab////tab////tab////add inventory item purchases//crlf////tab////tab////tab//s=\\quot\\MergeID=zpjssJsS\\quot\\//crlf////tab////tab////tab//sFilter=\\quot\\(Include_In_Enterprise_Reporting) and (not(Standard_Purchase_Dollar=0))\\quot\\//crlf////tab////tab////tab//driverSetFilter(drvDailySummary\\comma\\sFilter\\comma\\true)//crlf////tab////tab////tab//s=s\\plus\\\\quot\\\\amp\\SourceDriver=\\quot\\\\plus\\drvDailySummary//crlf////tab////tab////tab////s=s\\plus\\\\quot\\\\amp\\DestDriverParams=StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\//crlf////tab////tab////tab//s=s\\plus\\\\quot\\\\amp\\DestDriver=\\quot\\\\plus\\dDest//crlf////tab////tab////tab//appendToLog(\\quot\\Begin merge inventory item purchases \\quot\\)//crlf////tab////tab////tab//s=execAgentAction(\\quot\\executeMergeDefinition\\quot\\\\comma\\s)//crlf////tab////tab////tab//appendToLog(\\quot\\Merge inventory item purchases: \\quot\\\\plus\\s)//crlf////crlf////tab////tab////tab////add inventory item prices//crlf////tab////tab////tab//s=\\quot\\MergeID=YLslIg6O\\quot\\//crlf////tab////tab////tab//sFilter=\\quot\\(Include_In_Enterprise_Reporting) and (not(Standard_Purchase_Dollar=0))\\quot\\//crlf////tab////tab////tab//driverSetFilter(drvDailySummary\\comma\\sFilter\\comma\\true)//crlf////tab////tab////tab////s=s\\plus\\\\quot\\\\amp\\SourceDriverParams=StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\//crlf////tab////tab////tab////s=s\\plus\\\\quot\\\\amp\\DestDriverParams=StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\//crlf////tab////tab////tab//s=s\\plus\\\\quot\\\\amp\\SourceDriver=\\quot\\\\plus\\drvDailySummary//crlf////tab////tab////tab//s=s\\plus\\\\quot\\\\amp\\DestDriver=\\quot\\\\plus\\dDest//crlf////tab////tab////tab//appendToLog(\\quot\\Begin merge inventory item prices\\quot\\)//crlf////tab////tab////tab//s=execAgentAction(\\quot\\executeMergeDefinition\\quot\\\\comma\\s)//crlf////tab////tab////tab//appendToLog(\\quot\\Merge inventory item prices: \\quot\\\\plus\\s)//crlf////crlf////tab////tab////tab////add inventory group purchases//crlf////tab////tab////tab//s=\\quot\\MergeID=XMcRhIq6\\quot\\//crlf////tab////tab////tab//driverSetSubtotal(drvDailySummary\\comma\\\\quot\\sum\\quot\\\\comma\\\\quot\\Inventory_Item_Group_ID\\quot\\\\comma\\false)//crlf////tab////tab////tab//driverSetDetails(drvDailySummary\\comma\\false)//crlf////tab////tab////tab//driverSetFilter(drvDailySummary\\comma\\\\quot\\not(Standard_Purchase_Dollar=0)\\quot\\\\comma\\true)//crlf////tab////tab////tab//s=s\\plus\\\\quot\\\\amp\\SourceDriver=\\quot\\\\plus\\drvDailySummary//crlf////tab////tab////tab////s=s\\plus\\\\quot\\\\amp\\DestDriverParams=StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\//crlf////tab////tab////tab//s=s\\plus\\\\quot\\\\amp\\DestDriver=\\quot\\\\plus\\dDest//crlf////tab////tab////tab//appendToLog(\\quot\\Begin merge inventory group purchases\\quot\\)//crlf////tab////tab////tab//s=execAgentAction(\\quot\\executeMergeDefinition\\quot\\\\comma\\s)//crlf////tab////tab////tab//appendToLog(\\quot\\Merge inventory group purchases: \\quot\\\\plus\\s)//crlf////crlf////tab////tab////tab//driverClose(drvDailySummary)//crlf////crlf////tab////tab////tab////add sales mix//crlf////tab////tab////tab//s=\\quot\\MergeID=9bRp7Ygz\\quot\\//crlf////tab////tab////tab//s=s\\plus\\\\quot\\\\amp\\SourceDriverParams=StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\//crlf////tab////tab////tab////s=s\\plus\\\\quot\\\\amp\\DestDriverParams=StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\//crlf////tab////tab////tab//s=s\\plus\\\\quot\\\\amp\\DestDriver=\\quot\\\\plus\\dDest//crlf////tab////tab////tab//appendToLog(\\quot\\Begin merge menu item sales\\quot\\)//crlf////tab////tab////tab//s=execAgentAction(\\quot\\executeMergeDefinition\\quot\\\\comma\\s)//crlf////tab////tab////tab//appendToLog(\\quot\\Merge menu item sales: \\quot\\\\plus\\s)//crlf////crlf////tab////tab////tab////add menu item prep cost (from legitimate usages driver)//crlf////tab////tab////tab//dLegit=getSalt(4)//crlf////tab////tab////tab//driverOpen(Aspect_Back_Office_Legitimate_Usage\\comma\\dLegit\\comma\\READ\\comma\\true\\comma\\\\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\)//crlf////tab////tab////tab//driverSetSubtotal(dLegit\\comma\\\\quot\\sum\\quot\\\\comma\\\\quot\\Top_Item_ID\\quot\\)//crlf////tab////tab////tab//driverSetDetails(dLegit\\comma\\false)//crlf////tab////tab////tab//driverSetSort(dLegit\\comma\\\\quot\\Top_Item_ID\\quot\\\\comma\\false)//crlf////tab////tab////tab//driverSetFilter(dLegit\\comma\\\\quot\\not((Enterprise_Quantity=0) and (Enterprise_Amount=0))\\quot\\\\comma\\true)//crlf////tab////tab////tab//s=\\quot\\MergeID=1mjs9PgC\\quot\\//crlf////tab////tab////tab//s=s\\plus\\\\quot\\\\amp\\SourceDriver=\\quot\\\\plus\\dLegit//crlf////tab////tab////tab//s=s\\plus\\\\quot\\\\amp\\DestDriver=\\quot\\\\plus\\dDest//crlf////tab////tab////tab//appendToLog(\\quot\\Begin merge menu item prep cost\\quot\\)//crlf////tab////tab////tab//s=execAgentAction(\\quot\\executeMergeDefinition\\quot\\\\comma\\s)//crlf////tab////tab////tab//driverClose(dLegit)//crlf////tab////tab////tab//appendToLog(\\quot\\Merge menu item prep cost: \\quot\\\\plus\\s)//crlf////crlf////tab////tab////tab////check count//crlf////tab////tab////tab//appendToLog(\\quot\\Adding check counts\\quot\\)//crlf////tab////tab////tab//arCheckNumber=getCollection(POS_Generic_Check_Header_Check_Number_by_Check_Number\\comma\\true\\comma\\\\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\\\comma\\\\quot\\\\quot\\\\comma\\\\quot\\\\comma\\\\quot\\\\comma\\\\quot\\keys\\quot\\)//crlf////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\54)//crlf////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\\\quot\\0\\quot\\)//crlf////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Enterprise_Name\\quot\\\\comma\\r\\comma\\\\quot\\Check Count\\quot\\)//crlf////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\getElementCount(arCheckNumber))//crlf////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\0)//crlf////crlf////tab////tab////tab////check count by hour//crlf////tab////tab////tab//nKey=0//crlf////tab////tab////tab//while(nKey<24)//crlf////tab////tab////tab////tab//sKey=padleft(nKey\\comma\\2\\comma\\\\quot\\0\\quot\\)\\plus\\\\quot\\:00\\quot\\//crlf////tab////tab////tab////tab//iCount=lookup(POS_Generic_Check_Header_Check_Number_by_Hour_Opened\\comma\\sKey\\comma\\15\\comma\\\\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\)//crlf////tab////tab////tab////tab//if(iCount>0)//crlf////tab////tab////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\68)//crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\\\quot\\0\\quot\\)//crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\sKey)//crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\iCount)//crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\iCount)//crlf////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab//nKey\\plus\\\\plus\\//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab////ending inventory value//crlf////tab////tab////tab//driverOpen(Aspect_Back_Office_Daily_Inventory_Summary\\comma\\dDailyInventorySummary\\comma\\READ\\comma\\false\\comma\\\\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\)//crlf////tab////tab////tab//driverSetSubtotal(dDailyInventorySummary\\comma\\\\quot\\sum\\quot\\\\comma\\Inventory_Item_Group_ID)//crlf////tab////tab////tab//driverSetSort(dDailyInventorySummary\\comma\\\\quot\\Inventory_Item_Top_Group_Name\\comma\\Inventory_Item_Group_ID\\quot\\\\comma\\false)//crlf////tab////tab////tab//driverSetDetails(dDailyInventorySummary\\comma\\false)//crlf////tab////tab////tab//driverSetFilter(dDailyInventorySummary\\comma\\\\quot\\(Item_Record_Type=1) and (not(Ending_Dollars_On_Hand=0))\\quot\\\\comma\\true)//crlf////tab////tab////tab//c=driverGetRecordCount(dDailyInventorySummary)//crlf////tab////tab////tab//n=0//crlf////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab//sTopGroupName=driverGetField(dDailyInventorySummary\\comma\\Inventory_Item_Top_Group_Name\\comma\\n)//crlf////tab////tab////tab////tab//sGroupName=driverGetField(dDailyInventorySummary\\comma\\Inventory_Item_Group\\comma\\n)//crlf////tab////tab////tab////tab//sGroupID=driverGetField(dDailyInventorySummary\\comma\\Inventory_Item_Group_ID\\comma\\n)//crlf////tab////tab////tab////tab////sTopGroupName=lookup(Aspect_BackOffice_Inventory_Full_Group_Name_By_ID\\comma\\sGroupID\\comma\\0\\comma\\\\quot\\StoreID=__StoreID__\\quot\\)//crlf////tab////tab////tab////tab//dPhysicalCount=driverGetField(dDailyInventorySummary\\comma\\Ending_Physical_Count\\comma\\n)//crlf////tab////tab////tab////tab//dEndingDollars=driverGetField(dDailyInventorySummary\\comma\\Ending_Dollars_On_Hand\\comma\\n)//crlf////tab////tab////tab////tab//if(value(dEndingDollars)<>0)//crlf////tab////tab////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\6537)//crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\sGroupID)//crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\sTopGroupName)//crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category2\\quot\\\\comma\\r\\comma\\sGroupName)//crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\dPhysicalCount)//crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dEndingDollars)//crlf////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab//n\\plus\\\\plus\\//crlf////tab////tab////tab//endwhile//crlf////tab////tab////tab//appendToLog(\\quot\\Add ending dollars complete\\quot\\)//crlf////tab////tab////tab//driverClose(dDailyInventorySummary)//crlf////crlf////tab////tab////tab//bTotalSalesByTimePeriod=boolean(lookup(Aspect_BackOffice_Store_Enterprise_Total_Sales_By_Time_Period\\comma\\\\quot\\__StoreID__\\quot\\))//crlf////tab////tab////tab//bNetSalesByTimePeriod=boolean(lookup(Aspect_BackOffice_Store_Enterprise_Net_Sales_By_Time_Period\\comma\\\\quot\\__StoreID__\\quot\\))//crlf////tab////tab////tab//bTotalSalesByHour=boolean(lookup(Aspect_BackOffice_Store_Enterprise_Total_Sales_By_Hour\\comma\\\\quot\\__StoreID__\\quot\\))//crlf////tab////tab////tab//bNetSalesByHour=boolean(lookup(Aspect_BackOffice_Store_Enterprise_Net_Sales_By_Hour\\comma\\\\quot\\__StoreID__\\quot\\))//crlf////crlf////tab////tab////tab//if((bTotalSalesByTimePeriod) or (bNetSalesByTimePeriod) or (bTotalSalesByHour) or (bNetSalesByHour))//crlf////crlf////tab////tab////tab////tab////open check details to be used for merging department sales below//crlf////tab////tab////tab////tab//driverOpen(POS_Generic_Check_Detail_Dta\\comma\\dCheckDetail\\comma\\READ\\comma\\true\\comma\\\\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\)//crlf////crlf////tab////tab////tab////tab////Total Sales By Time Period//crlf////tab////tab////tab////tab//if(bTotalSalesByTimePeriod)//crlf////tab////tab////tab////tab////tab//driverSetSubtotal(dCheckDetail\\comma\\\\quot\\sum\\quot\\\\comma\\\\quot\\Time_Period_Name~~pipe~~Revenue_Center_Name~~pipe~~Department_Name~~pipe~~CategoryName\\quot\\)//tab////tab////tab////crlf////tab////tab////tab////tab////tab//driverSetDetails(dCheckDetail\\comma\\false)//crlf////tab////tab////tab////tab////tab//driverSetFilter(dCheckDetail\\comma\\\\quot\\(not(Amount=0)) and ((Rectype=0) or (Rectype=2) or (Rectype=3))\\quot\\\\comma\\true)//crlf////tab////tab////tab////tab////tab//s=\\quot\\MergeID=oCLyjInh\\amp\\SourceDriver=\\quot\\\\plus\\dCheckDetail\\plus\\\\quot\\\\amp\\DestDriver=\\quot\\\\plus\\dDest//crlf////tab////tab////tab////tab////tab//s=execAgentAction(\\quot\\executeMergeDefinition\\quot\\\\comma\\s)//crlf////tab////tab////tab////tab////tab//appendToLog(\\quot\\Total Sales By Time Period: \\quot\\\\plus\\s)//crlf////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////Net Sales By Time Period//crlf////tab////tab////tab////tab//if(bNetSalesByTimePeriod)//crlf////tab////tab////tab////tab////tab//driverSetSubtotal(dCheckDetail\\comma\\\\quot\\sum\\quot\\\\comma\\\\quot\\Time_Period_Name~~pipe~~Revenue_Center_Name~~pipe~~Department_Name~~pipe~~CategoryName\\quot\\)//tab////tab////tab////crlf////tab////tab////tab////tab////tab//driverSetDetails(dCheckDetail\\comma\\false)//crlf////tab////tab////tab////tab////tab//driverSetFilter(dCheckDetail\\comma\\\\quot\\(not(Amount=0)) and ((Rectype=0) or (Rectype=2) or (Rectype=3))\\quot\\\\comma\\true)//crlf////tab////tab////tab////tab////tab//s=\\quot\\MergeID=NPZ548yl\\amp\\SourceDriver=\\quot\\\\plus\\dCheckDetail\\plus\\\\quot\\\\amp\\DestDriver=\\quot\\\\plus\\dDest//crlf////tab////tab////tab////tab////tab//s=execAgentAction(\\quot\\executeMergeDefinition\\quot\\\\comma\\s)//crlf////tab////tab////tab////tab////tab//appendToLog(\\quot\\Net Sales By Time Period: \\quot\\\\plus\\s)//crlf////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////Total Sales By Hour / Revenue Center / Department / Category//crlf////tab////tab////tab////tab//if(bTotalSalesByHour)//crlf////tab////tab////tab////tab////tab//driverSetSubtotal(dCheckDetail\\comma\\\\quot\\sum\\quot\\\\comma\\\\quot\\Hour~~pipe~~Revenue_Center_Name~~pipe~~Department_Name~~pipe~~CategoryName\\quot\\)//tab////tab////tab////crlf////tab////tab////tab////tab////tab//driverSetDetails(dCheckDetail\\comma\\false)//crlf////tab////tab////tab////tab////tab//driverSetFilter(dCheckDetail\\comma\\\\quot\\(not(Amount=0)) and ((Rectype=0) or (Rectype=2) or (Rectype=3))\\quot\\\\comma\\true)//crlf////tab////tab////tab////tab////tab////driverSetFilter(dCheckDetail\\comma\\\\quot\\gt(Amount\\comma\\0\\comma\\n)\\quot\\\\comma\\true)//crlf////tab////tab////tab////tab////tab//s=\\quot\\MergeID=9lXZOuaD\\amp\\SourceDriver=\\quot\\\\plus\\dCheckDetail\\plus\\\\quot\\\\amp\\DestDriver=\\quot\\\\plus\\dDest//crlf////tab////tab////tab////tab////tab//s=execAgentAction(\\quot\\executeMergeDefinition\\quot\\\\comma\\s)//crlf////tab////tab////tab////tab////tab//appendToLog(\\quot\\Total Sales By Hour (Dept/Cat/Rev Ctr): \\quot\\\\plus\\s)//crlf////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////Net Sales By Hour / Revenue Center / Department / Category//crlf////tab////tab////tab////tab//if(bNetSalesByHour)//crlf////tab////tab////tab////tab////tab//driverSetSubtotal(dCheckDetail\\comma\\\\quot\\sum\\quot\\\\comma\\\\quot\\Hour~~pipe~~Revenue_Center_Name~~pipe~~Department_Name~~pipe~~CategoryName\\quot\\)//tab////tab////tab////crlf////tab////tab////tab////tab////tab//driverSetDetails(dCheckDetail\\comma\\false)//crlf////tab////tab////tab////tab////tab//driverSetFilter(dCheckDetail\\comma\\\\quot\\(not(Amount=0)) and ((Rectype=0) or (Rectype=2) or (Rectype=3))\\quot\\\\comma\\true)//crlf////tab////tab////tab////tab////tab//s=\\quot\\MergeID=S4Q3eITa\\amp\\SourceDriver=\\quot\\\\plus\\dCheckDetail\\plus\\\\quot\\\\amp\\DestDriver=\\quot\\\\plus\\dDest//crlf////tab////tab////tab////tab////tab//s=execAgentAction(\\quot\\executeMergeDefinition\\quot\\\\comma\\s)//crlf////tab////tab////tab////tab////tab//appendToLog(\\quot\\Net Sales By Hour (Dept/Cat/Rev Ctr): \\quot\\\\plus\\s)//crlf////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////Total Sales By Hour//crlf////tab////tab////tab////tab//if(bTotalSalesByHour)//crlf////tab////tab////tab////tab////tab//driverSetSubtotal(dCheckDetail\\comma\\\\quot\\sum\\quot\\\\comma\\\\quot\\Hour\\quot\\)//tab////tab////tab////crlf////tab////tab////tab////tab////tab//driverSetDetails(dCheckDetail\\comma\\false)//crlf////tab////tab////tab////tab////tab//driverSetFilter(dCheckDetail\\comma\\\\quot\\(not(Amount=0)) and ((Rectype=0) or (Rectype=2) or (Rectype=3))\\quot\\\\comma\\true)//crlf////tab////tab////tab////tab////tab////driverSetFilter(dCheckDetail\\comma\\\\quot\\gt(Amount\\comma\\0\\comma\\n)\\quot\\\\comma\\true)//crlf////tab////tab////tab////tab////tab//s=\\quot\\MergeID=7I2CtFWT\\amp\\SourceDriver=\\quot\\\\plus\\dCheckDetail\\plus\\\\quot\\\\amp\\DestDriver=\\quot\\\\plus\\dDest//crlf////tab////tab////tab////tab////tab//s=execAgentAction(\\quot\\executeMergeDefinition\\quot\\\\comma\\s)//crlf////tab////tab////tab////tab////tab//appendToLog(\\quot\\Total Sales By Hour: \\quot\\\\plus\\s)//crlf////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////Net Sales By Hour//crlf////tab////tab////tab////tab//if(bNetSalesByHour)//crlf////tab////tab////tab////tab////tab//driverSetSubtotal(dCheckDetail\\comma\\\\quot\\sum\\quot\\\\comma\\\\quot\\Hour\\quot\\)//tab////tab////tab////crlf////tab////tab////tab////tab////tab//driverSetDetails(dCheckDetail\\comma\\false)//crlf////tab////tab////tab////tab////tab//driverSetFilter(dCheckDetail\\comma\\\\quot\\(not(Amount=0)) and ((Rectype=0) or (Rectype=2) or (Rectype=3))\\quot\\\\comma\\true)//crlf////tab////tab////tab////tab////tab//s=\\quot\\MergeID=eZG5zIyD\\amp\\SourceDriver=\\quot\\\\plus\\dCheckDetail\\plus\\\\quot\\\\amp\\DestDriver=\\quot\\\\plus\\dDest//crlf////tab////tab////tab////tab////tab//s=execAgentAction(\\quot\\executeMergeDefinition\\quot\\\\comma\\s)//crlf////tab////tab////tab////tab////tab//appendToLog(\\quot\\Net Sales By Hour: \\quot\\\\plus\\s)//crlf////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab//driverClose(dCheckDetail)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////add job code totals and employee records//crlf////tab////tab////tab//sFilename=sStoreDir\\plus\\\\quot\\lbr.__Date__.bin\\quot\\//crlf////tab////tab////tab//if(fileExists(sFilename))//crlf////tab////tab////tab////tab//appendToLog(\\quot\\Adding job code totals\\quot\\)//crlf////tab////tab////tab////tab//driverOpen(POS_Generic_Labor_Detail_Dta\\comma\\dLabor\\comma\\READ\\comma\\false\\comma\\\\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\)//crlf////tab////tab////tab////tab//driverSetSubtotal(dLabor\\comma\\\\quot\\sum\\quot\\\\comma\\\\quot\\AppJobCode\\quot\\\\comma\\false)//crlf////tab////tab////tab////tab//driverSetDetails(dLabor\\comma\\false)//crlf////tab////tab////tab////tab//driverSetFilter(dLabor\\comma\\\\quot\\(not(Do_Not_Export))\\quot\\\\comma\\\\quot\\true\\quot\\)//crlf////crlf////tab////tab////tab////tab//c=driverGetRecordCount(dLabor)//crlf////tab////tab////tab////tab//n=0//crlf////tab////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab////tab//sJobCode=driverGetField(dLabor\\comma\\\\quot\\AppJobCode\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab//sJobCodeCategory1Name=lookup(POS_Generic_Job_Code_Enterprise_Category1_By_Job_Code_POS_ID\\comma\\sJobCode\\comma\\0\\comma\\\\quot\\StoreID=__StoreID__\\quot\\)//crlf////tab////tab////tab////tab////tab//sJobCodeCategory2Name=lookup(POS_Generic_Job_Code_Enterprise_Category2_By_Job_Code_POS_ID\\comma\\sJobCode\\comma\\0\\comma\\\\quot\\StoreID=__StoreID__\\quot\\)//crlf////tab////tab////tab////tab////tab//sJobCodeCategory3Name=lookup(POS_Generic_Job_Code_Enterprise_Category3_By_Job_Code_POS_ID\\comma\\sJobCode\\comma\\0\\comma\\\\quot\\StoreID=__StoreID__\\quot\\)//crlf////tab////tab////tab////tab////tab//sJobCodeEnterpriseName=lookup(POS_Generic_Job_Code_Enterprise_Name_By_Job_Code_POS_ID\\comma\\sJobCode\\comma\\0\\comma\\\\quot\\StoreID=__StoreID__\\quot\\)//crlf////crlf////tab////tab////tab////tab////tab//dRegHrs=driverGetField(dLabor\\comma\\\\quot\\AppRegHours\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab//dOvtHrs=driverGetField(dLabor\\comma\\\\quot\\AppOvtHours\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab//dTtlHrs=driverGetField(dLabor\\comma\\\\quot\\AppTtlHours\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab//dRegPay=driverGetField(dLabor\\comma\\\\quot\\AppRegPay\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab//dOvtPay=driverGetField(dLabor\\comma\\\\quot\\AppOvtPay\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab//dTtlPay=driverGetField(dLabor\\comma\\\\quot\\AppTtlPay\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab//dTtlPayExcludingOvertime=driverGetField(dLabor\\comma\\\\quot\\Approved_Pay_Excluding_Overtime\\quot\\\\comma\\n)//crlf////crlf////tab////tab////tab////tab////tab//dTotalCashTips=driverGetField(dLabor\\comma\\\\quot\\AppCashTip\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab//dTotalChargeTips=driverGetField(dLabor\\comma\\\\quot\\AppChgTip\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab//dTotalTotalTips=driverGetField(dLabor\\comma\\\\quot\\AppTotalTips\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab//dTotalCashSales=driverGetField(dLabor\\comma\\\\quot\\AppCashSls\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab//dTotalChargeSales=driverGetField(dLabor\\comma\\\\quot\\AppChgSls\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab//dTotalTotalSales=driverGetField(dLabor\\comma\\\\quot\\AppTtlSales\\quot\\\\comma\\n)//crlf////crlf////tab////tab////tab////tab////tab////regular hours and pay//crlf////tab////tab////tab////tab////tab//if(dRegHrs<>0)//crlf////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\55)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\sJobCode)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\sJobCodeCategory1Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category2\\quot\\\\comma\\r\\comma\\sJobCodeCategory2Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category3\\quot\\\\comma\\r\\comma\\sJobCodeCategory3Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Enterprise_Name\\quot\\\\comma\\r\\comma\\sJobCodeEnterpriseName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\dRegHrs)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dRegPay)//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////overtime hours and pay//crlf////tab////tab////tab////tab////tab//if(dOvtHrs<>0)//crlf////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\56)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\sJobCode)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\sJobCodeCategory1Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category2\\quot\\\\comma\\r\\comma\\sJobCodeCategory2Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category3\\quot\\\\comma\\r\\comma\\sJobCodeCategory3Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Enterprise_Name\\quot\\\\comma\\r\\comma\\sJobCodeEnterpriseName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\dOvtHrs)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dOvtPay)//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////total hours and pay//crlf////tab////tab////tab////tab////tab//if(dTtlHrs<>0)//crlf////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\57)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\sJobCode)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\sJobCodeCategory1Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category2\\quot\\\\comma\\r\\comma\\sJobCodeCategory2Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category3\\quot\\\\comma\\r\\comma\\sJobCodeCategory3Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Enterprise_Name\\quot\\\\comma\\r\\comma\\sJobCodeEnterpriseName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\dTtlHrs)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dTtlPay)//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////regular hours//crlf////tab////tab////tab////tab////tab//if(dRegHrs<>0)//crlf////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\60)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\sJobCode)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\sJobCodeCategory1Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category2\\quot\\\\comma\\r\\comma\\sJobCodeCategory2Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category3\\quot\\\\comma\\r\\comma\\sJobCodeCategory3Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Enterprise_Name\\quot\\\\comma\\r\\comma\\sJobCodeEnterpriseName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dRegHrs)//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////overtime hours//crlf////tab////tab////tab////tab////tab//if(dOvtHrs<>0)//crlf////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\61)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\sJobCode)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\sJobCodeCategory1Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category2\\quot\\\\comma\\r\\comma\\sJobCodeCategory2Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category3\\quot\\\\comma\\r\\comma\\sJobCodeCategory3Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Enterprise_Name\\quot\\\\comma\\r\\comma\\sJobCodeEnterpriseName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dOvtHrs)//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////total hours//crlf////tab////tab////tab////tab////tab//if(dTtlHrs<>0)//crlf////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\62)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\sJobCode)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\sJobCodeCategory1Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category2\\quot\\\\comma\\r\\comma\\sJobCodeCategory2Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category3\\quot\\\\comma\\r\\comma\\sJobCodeCategory3Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Enterprise_Name\\quot\\\\comma\\r\\comma\\sJobCodeEnterpriseName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dTtlHrs)//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////total pay excluding overtime//crlf////tab////tab////tab////tab////tab//if(dTtlPayExcludingOvertime<>0)//crlf////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\63)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\sJobCode)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\sJobCodeCategory1Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category2\\quot\\\\comma\\r\\comma\\sJobCodeCategory2Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category3\\quot\\\\comma\\r\\comma\\sJobCodeCategory3Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Enterprise_Name\\quot\\\\comma\\r\\comma\\sJobCodeEnterpriseName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dTtlPayExcludingOvertime)//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////Job Code Total Cash Tips//crlf////tab////tab////tab////tab////tab//if(dTotalCashTips<>0)//crlf////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\6506)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\sJobCode)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\sJobCodeCategory1Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category2\\quot\\\\comma\\r\\comma\\sJobCodeCategory2Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category3\\quot\\\\comma\\r\\comma\\sJobCodeCategory3Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Enterprise_Name\\quot\\\\comma\\r\\comma\\sJobCodeEnterpriseName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dTotalCashTips)//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////Job Code Total Charge Tips//crlf////tab////tab////tab////tab////tab//if(dTotalChargeTips<>0)//crlf////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\6507)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\sJobCode)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\sJobCodeCategory1Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category2\\quot\\\\comma\\r\\comma\\sJobCodeCategory2Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category3\\quot\\\\comma\\r\\comma\\sJobCodeCategory3Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Enterprise_Name\\quot\\\\comma\\r\\comma\\sJobCodeEnterpriseName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dTotalChargeTips)//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////Job Code Total Total Tips//crlf////tab////tab////tab////tab////tab//if(dTotalTotalTips<>0)//crlf////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\6508)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\sJobCode)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\sJobCodeCategory1Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category2\\quot\\\\comma\\r\\comma\\sJobCodeCategory2Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category3\\quot\\\\comma\\r\\comma\\sJobCodeCategory3Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Enterprise_Name\\quot\\\\comma\\r\\comma\\sJobCodeEnterpriseName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dTotalTotalTips)//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////Job Code Total Cash Sales//crlf////tab////tab////tab////tab////tab//if(dTotalCashSales<>0)//crlf////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\6509)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\sJobCode)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\sJobCodeCategory1Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category2\\quot\\\\comma\\r\\comma\\sJobCodeCategory2Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category3\\quot\\\\comma\\r\\comma\\sJobCodeCategory3Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Enterprise_Name\\quot\\\\comma\\r\\comma\\sJobCodeEnterpriseName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dTotalCashSales)//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////Job Code Total Charge Sales//crlf////tab////tab////tab////tab////tab//if(dTotalChargeSales<>0)//crlf////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\6510)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\sJobCode)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\sJobCodeCategory1Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category2\\quot\\\\comma\\r\\comma\\sJobCodeCategory2Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category3\\quot\\\\comma\\r\\comma\\sJobCodeCategory3Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Enterprise_Name\\quot\\\\comma\\r\\comma\\sJobCodeEnterpriseName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dTotalChargeSales)//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////Job Code Total Total Sales//crlf////tab////tab////tab////tab////tab//if(dTotalTotalSales<>0)//crlf////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\6511)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\sJobCode)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\sJobCodeCategory1Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category2\\quot\\\\comma\\r\\comma\\sJobCodeCategory2Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category3\\quot\\\\comma\\r\\comma\\sJobCodeCategory3Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Enterprise_Name\\quot\\\\comma\\r\\comma\\sJobCodeEnterpriseName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dTotalTotalSales)//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////hours and pay by hour//crlf////tab////tab////tab////tab////tab////Note: The hour is recorded in the quantity field//crlf////tab////tab////tab////tab////tab//nHour=0//crlf////tab////tab////tab////tab////tab//while(nHour<=23)//crlf////tab////tab////tab////tab////tab////tab//sHour=padright(padLeft(nHour\\comma\\2\\comma\\\\quot\\0\\quot\\)\\comma\\4\\comma\\\\quot\\0\\quot\\)//crlf////crlf////tab////tab////tab////tab////tab////tab////regular hours by job code and hour.//crlf////tab////tab////tab////tab////tab////tab//d1=driverGetField(dLabor\\comma\\\\quot\\Reg_Hours_\\quot\\\\plus\\sHour\\comma\\n)//crlf////tab////tab////tab////tab////tab////tab//if(d1<>0)//crlf////tab////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\6500)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\sJobCode)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\padLeft(nHour\\comma\\2\\comma\\\\quot\\0\\quot\\)\\plus\\\\quot\\:00\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category2\\quot\\\\comma\\r\\comma\\sJobCodeCategory1Name)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category3\\quot\\\\comma\\r\\comma\\sJobCodeCategory2Name)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Enterprise_Name\\quot\\\\comma\\r\\comma\\sJobCodeEnterpriseName)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\d1)//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////tab////regular pay by job code and hour.//crlf////tab////tab////tab////tab////tab////tab//d1=driverGetField(dLabor\\comma\\\\quot\\Reg_Pay_\\quot\\\\plus\\sHour\\comma\\n)//crlf////tab////tab////tab////tab////tab////tab//if(d1<>0)//crlf////tab////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\6501)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\sJobCode)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\padLeft(nHour\\comma\\2\\comma\\\\quot\\0\\quot\\)\\plus\\\\quot\\:00\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category2\\quot\\\\comma\\r\\comma\\sJobCodeCategory1Name)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category3\\quot\\\\comma\\r\\comma\\sJobCodeCategory2Name)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Enterprise_Name\\quot\\\\comma\\r\\comma\\sJobCodeEnterpriseName)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\d1)//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////tab////overtime hours by job code and hour.//crlf////tab////tab////tab////tab////tab////tab//d1=driverGetField(dLabor\\comma\\\\quot\\OT_Hours_\\quot\\\\plus\\sHour\\comma\\n)//crlf////tab////tab////tab////tab////tab////tab//if(d1<>0)//crlf////tab////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\6502)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\sJobCode)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\padLeft(nHour\\comma\\2\\comma\\\\quot\\0\\quot\\)\\plus\\\\quot\\:00\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category2\\quot\\\\comma\\r\\comma\\sJobCodeCategory1Name)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category3\\quot\\\\comma\\r\\comma\\sJobCodeCategory2Name)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Enterprise_Name\\quot\\\\comma\\r\\comma\\sJobCodeEnterpriseName)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\d1)//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////tab////overtime pay by job code and hour.//crlf////tab////tab////tab////tab////tab////tab//d1=driverGetField(dLabor\\comma\\\\quot\\Ovt_Pay_\\quot\\\\plus\\sHour\\comma\\n)//crlf////tab////tab////tab////tab////tab////tab//if(d1<>0)//crlf////tab////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\6503)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\sJobCode)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\padLeft(nHour\\comma\\2\\comma\\\\quot\\0\\quot\\)\\plus\\\\quot\\:00\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category2\\quot\\\\comma\\r\\comma\\sJobCodeCategory1Name)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category3\\quot\\\\comma\\r\\comma\\sJobCodeCategory2Name)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Enterprise_Name\\quot\\\\comma\\r\\comma\\sJobCodeEnterpriseName)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\d1)//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////tab////total hours by job code and hour.//crlf////tab////tab////tab////tab////tab////tab//d1=driverGetField(dLabor\\comma\\\\quot\\Ttl_Hours_\\quot\\\\plus\\sHour\\comma\\n)//crlf////tab////tab////tab////tab////tab////tab//if(d1<>0)//crlf////tab////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\6504)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\sJobCode)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\padLeft(nHour\\comma\\2\\comma\\\\quot\\0\\quot\\)\\plus\\\\quot\\:00\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category2\\quot\\\\comma\\r\\comma\\sJobCodeCategory1Name)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category3\\quot\\\\comma\\r\\comma\\sJobCodeCategory2Name)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Enterprise_Name\\quot\\\\comma\\r\\comma\\sJobCodeEnterpriseName)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\d1)//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////tab////total pay by job code and hour.//crlf////tab////tab////tab////tab////tab////tab//d1=driverGetField(dLabor\\comma\\\\quot\\Ttl_Pay_\\quot\\\\plus\\sHour\\comma\\n)//crlf////tab////tab////tab////tab////tab////tab//if(d1<>0)//crlf////tab////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\6505)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\sJobCode)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\padLeft(nHour\\comma\\2\\comma\\\\quot\\0\\quot\\)\\plus\\\\quot\\:00\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category2\\quot\\\\comma\\r\\comma\\sJobCodeCategory1Name)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category3\\quot\\\\comma\\r\\comma\\sJobCodeCategory2Name)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Enterprise_Name\\quot\\\\comma\\r\\comma\\sJobCodeEnterpriseName)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\d1)//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////tab//nHour\\plus\\\\plus\\//crlf////tab////tab////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab////tab////tab//n\\plus\\\\plus\\//crlf////tab////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab////tab////note: the driver is closed and opened again to clear the subtotal settings//crlf////tab////tab////tab////tab//driverClose(dLabor)//crlf////crlf////tab////tab////tab////tab////output records for each employee//crlf////tab////tab////tab////tab//driverOpen(POS_Generic_Labor_Detail_Dta\\comma\\dLabor\\comma\\READ\\comma\\false\\comma\\\\quot\\StoreID=__StoreID__~~pipe~~Date=__Date__\\quot\\)//crlf////tab////tab////tab////tab//driverSetFilter(dLabor\\comma\\\\quot\\(not(Do_Not_Export))\\quot\\\\comma\\\\quot\\true\\quot\\)//crlf////crlf////tab////tab////tab////tab//hashCreate(hShiftCount)//crlf////tab////tab////tab////tab//c=driverGetRecordCount(dLabor)//crlf////tab////tab////tab////tab//n=0//crlf////tab////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab////tab//sEmployeeID=driverGetField(dLabor\\comma\\\\quot\\Employee\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab//sEmployeeName=driverGetField(dLabor\\comma\\\\quot\\EmpName\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab//sJobCode=driverGetField(dLabor\\comma\\\\quot\\AppJobCode\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab//sJobCodeCategory1Name=lookup(POS_Generic_Job_Code_Enterprise_Category1_By_Job_Code_POS_ID\\comma\\sJobCode\\comma\\0\\comma\\\\quot\\StoreID=__StoreID__\\quot\\)//crlf////tab////tab////tab////tab////tab//sJobCodeCategory2Name=lookup(POS_Generic_Job_Code_Enterprise_Category2_By_Job_Code_POS_ID\\comma\\sJobCode\\comma\\0\\comma\\\\quot\\StoreID=__StoreID__\\quot\\)//crlf////tab////tab////tab////tab////tab//sJobCodeCategory3Name=lookup(POS_Generic_Job_Code_Enterprise_Category3_By_Job_Code_POS_ID\\comma\\sJobCode\\comma\\0\\comma\\\\quot\\StoreID=__StoreID__\\quot\\)//crlf////tab////tab////tab////tab////tab//sJobCodeEnterpriseName=lookup(POS_Generic_Job_Code_Enterprise_Name_By_Job_Code_POS_ID\\comma\\sJobCode\\comma\\0\\comma\\\\quot\\StoreID=__StoreID__\\quot\\)//crlf////tab////tab////tab////tab////tab//if(len(trim(sJobCodeEnterpriseName))=0)//crlf////tab////tab////tab////tab////tab////tab//sJobCodeEnterpriseName=lookup(POS_Generic_Lookup_Job_Code_By_ID\\comma\\sJobCode\\comma\\0\\comma\\\\quot\\StoreID=__StoreID__\\quot\\)//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab//dTimeIn=dateNumber(driverGetField(dLabor\\comma\\\\quot\\AppTimeIn\\quot\\\\comma\\n))//crlf////tab////tab////tab////tab////tab//dTimeOut=dateNumber(driverGetField(dLabor\\comma\\\\quot\\AppTimeOut\\quot\\\\comma\\n))//crlf////tab////tab////tab////tab////tab//dRegHrs=driverGetField(dLabor\\comma\\\\quot\\AppRegHours\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab//dOvtHrs=driverGetField(dLabor\\comma\\\\quot\\AppOvtHours\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab//dTtlHrs=driverGetField(dLabor\\comma\\\\quot\\AppTtlHours\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab//dRegPay=driverGetField(dLabor\\comma\\\\quot\\AppRegPay\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab//dOvtPay=driverGetField(dLabor\\comma\\\\quot\\AppOvtPay\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab//dTtlPay=driverGetField(dLabor\\comma\\\\quot\\AppTtlPay\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab//dTtlPayExcludingOvertime=driverGetField(dLabor\\comma\\\\quot\\Approved_Pay_Excluding_Overtime\\quot\\\\comma\\n)//crlf////crlf////tab////tab////tab////tab////tab//dTotalCashTips=driverGetField(dLabor\\comma\\\\quot\\AppCashTip\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab//dTotalChargeTips=driverGetField(dLabor\\comma\\\\quot\\AppChgTip\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab//dTotalTotalTips=driverGetField(dLabor\\comma\\\\quot\\AppTotalTips\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab//dTotalCashSales=driverGetField(dLabor\\comma\\\\quot\\AppCashSls\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab//dTotalChargeSales=driverGetField(dLabor\\comma\\\\quot\\AppChgSls\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab//dTotalTotalSales=driverGetField(dLabor\\comma\\\\quot\\AppTtlSales\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab//dComps=driverGetField(dLabor\\comma\\\\quot\\AppComps\\quot\\\\comma\\n)//crlf////crlf////tab////tab////tab////tab////tab////get shift count//crlf////tab////tab////tab////tab////tab//iShift=1//crlf////tab////tab////tab////tab////tab//if(hashContainsKey(hShiftCount\\comma\\sEmployeeID))//crlf////tab////tab////tab////tab////tab////tab//iShift=value(hashGet(hShiftCount\\comma\\sEmployeeID))\\plus\\1//crlf////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab//hashPut(hShiftCount\\comma\\sEmployeeID\\comma\\iShift)//crlf////crlf////tab////tab////tab////tab////tab////time in/out//crlf////tab////tab////tab////tab////tab//if(dTimeIn<>dTimeOut)//crlf////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\6532)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\sEmployeeID)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\sJobCodeEnterpriseName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category2\\quot\\\\comma\\r\\comma\\sJobCodeCategory2Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category3\\quot\\\\comma\\r\\comma\\iShift)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Enterprise_Name\\quot\\\\comma\\r\\comma\\sEmployeeName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dTimeIn)//crlf////crlf////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\6533)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\sEmployeeID)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\sJobCodeEnterpriseName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category2\\quot\\\\comma\\r\\comma\\sJobCodeCategory2Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category3\\quot\\\\comma\\r\\comma\\iShift)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Enterprise_Name\\quot\\\\comma\\r\\comma\\sEmployeeName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dTimeOut)//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////regular pay//crlf////tab////tab////tab////tab////tab//if(dRegPay<>0)//crlf////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\6521)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\sEmployeeID)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\sJobCodeEnterpriseName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category2\\quot\\\\comma\\r\\comma\\sJobCodeCategory2Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category3\\quot\\\\comma\\r\\comma\\iShift)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Enterprise_Name\\quot\\\\comma\\r\\comma\\sEmployeeName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dRegPay)//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////overtime pay//crlf////tab////tab////tab////tab////tab//if(dOvtPay<>0)//crlf////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\6523)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\sEmployeeID)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\sJobCodeEnterpriseName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category2\\quot\\\\comma\\r\\comma\\sJobCodeCategory2Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category3\\quot\\\\comma\\r\\comma\\iShift)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Enterprise_Name\\quot\\\\comma\\r\\comma\\sEmployeeName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dOvtPay)//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////total pay//crlf////tab////tab////tab////tab////tab//if(dTtlPay<>0)//crlf////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\6525)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\sEmployeeID)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\sJobCodeEnterpriseName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category2\\quot\\\\comma\\r\\comma\\sJobCodeCategory2Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category3\\quot\\\\comma\\r\\comma\\iShift)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Enterprise_Name\\quot\\\\comma\\r\\comma\\sEmployeeName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dTtlPay)//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////regular hours//crlf////tab////tab////tab////tab////tab//if(dRegHrs<>0)//crlf////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\6520)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\sEmployeeID)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\sJobCodeEnterpriseName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category2\\quot\\\\comma\\r\\comma\\sJobCodeCategory2Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category3\\quot\\\\comma\\r\\comma\\iShift)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Enterprise_Name\\quot\\\\comma\\r\\comma\\sEmployeeName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dRegHrs)//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////overtime hours//crlf////tab////tab////tab////tab////tab//if(dOvtHrs<>0)//crlf////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\6522\\comma\\)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\sEmployeeID)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\sJobCodeEnterpriseName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category2\\quot\\\\comma\\r\\comma\\sJobCodeCategory2Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category3\\quot\\\\comma\\r\\comma\\iShift)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Enterprise_Name\\quot\\\\comma\\r\\comma\\sEmployeeName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dOvtHrs)//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////total hours//crlf////tab////tab////tab////tab////tab//if(dTtlHrs<>0)//crlf////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\6524)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\sEmployeeID)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\sJobCodeEnterpriseName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category2\\quot\\\\comma\\r\\comma\\sJobCodeCategory2Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category3\\quot\\\\comma\\r\\comma\\iShift)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Enterprise_Name\\quot\\\\comma\\r\\comma\\sEmployeeName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dTtlHrs)//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////total pay excluding overtime//crlf////tab////tab////tab////tab////tab//if(dTtlPayExcludingOvertime<>0)//crlf////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\6534)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\sEmployeeID)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\sJobCodeEnterpriseName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category2\\quot\\\\comma\\r\\comma\\sJobCodeCategory2Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category3\\quot\\\\comma\\r\\comma\\iShift)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Enterprise_Name\\quot\\\\comma\\r\\comma\\sEmployeeName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dTtlPayExcludingOvertime)//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////Cash Tips//crlf////tab////tab////tab////tab////tab//if(dTotalCashTips<>0)//crlf////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\6526)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\sEmployeeID)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\sJobCodeEnterpriseName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category2\\quot\\\\comma\\r\\comma\\sJobCodeCategory2Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category3\\quot\\\\comma\\r\\comma\\iShift)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Enterprise_Name\\quot\\\\comma\\r\\comma\\sEmployeeName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dTotalCashTips)//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////Charge Tips//crlf////tab////tab////tab////tab////tab//if(dTotalChargeTips<>0)//crlf////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\6527)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\sEmployeeID)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\sJobCodeEnterpriseName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category2\\quot\\\\comma\\r\\comma\\sJobCodeCategory2Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category3\\quot\\\\comma\\r\\comma\\iShift)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Enterprise_Name\\quot\\\\comma\\r\\comma\\sEmployeeName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dTotalChargeTips)//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////Total Tips//crlf////tab////tab////tab////tab////tab//if(dTotalTotalTips<>0)//crlf////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\6528)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\sEmployeeID)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\sJobCodeEnterpriseName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category2\\quot\\\\comma\\r\\comma\\sJobCodeCategory2Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category3\\quot\\\\comma\\r\\comma\\iShift)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Enterprise_Name\\quot\\\\comma\\r\\comma\\sEmployeeName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dTotalTotalTips)//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////Cash Sales//crlf////tab////tab////tab////tab////tab//if(dTotalCashSales<>0)//crlf////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\6529)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\sEmployeeID)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\sJobCodeEnterpriseName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category2\\quot\\\\comma\\r\\comma\\sJobCodeCategory2Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category3\\quot\\\\comma\\r\\comma\\iShift)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Enterprise_Name\\quot\\\\comma\\r\\comma\\sEmployeeName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dTotalCashSales)//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////Charge Sales//crlf////tab////tab////tab////tab////tab//if(dTotalChargeSales<>0)//crlf////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\6530)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\sEmployeeID)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\sJobCodeEnterpriseName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category2\\quot\\\\comma\\r\\comma\\sJobCodeCategory2Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category3\\quot\\\\comma\\r\\comma\\iShift)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Enterprise_Name\\quot\\\\comma\\r\\comma\\sEmployeeName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dTotalChargeSales)//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////Total Sales//crlf////tab////tab////tab////tab////tab//if(dTotalTotalSales<>0)//crlf////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\6531)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\sEmployeeID)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\sJobCodeEnterpriseName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category2\\quot\\\\comma\\r\\comma\\sJobCodeCategory2Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category3\\quot\\\\comma\\r\\comma\\iShift)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Enterprise_Name\\quot\\\\comma\\r\\comma\\sEmployeeName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dTotalTotalSales)//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////Comps//crlf////tab////tab////tab////tab////tab//if(dComps<>0)//crlf////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\6535)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\sEmployeeID)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\sJobCodeEnterpriseName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category2\\quot\\\\comma\\r\\comma\\sJobCodeCategory2Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category3\\quot\\\\comma\\r\\comma\\iShift)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Enterprise_Name\\quot\\\\comma\\r\\comma\\sEmployeeName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dComps)//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////Sales Less Comps//crlf////tab////tab////tab////tab////tab//if((dComps<>0) or (dTotalTotalSales<>0))//crlf////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r\\comma\\6536)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\r\\comma\\sEmployeeID)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category1\\quot\\\\comma\\r\\comma\\sJobCodeEnterpriseName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category2\\quot\\\\comma\\r\\comma\\sJobCodeCategory2Name)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Category3\\quot\\\\comma\\r\\comma\\iShift)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Enterprise_Name\\quot\\\\comma\\r\\comma\\sEmployeeName)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dTotalTotalSales-dComps)//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab//n\\plus\\\\plus\\//crlf////tab////tab////tab////tab//endwhile//crlf////tab////tab////tab////tab//driverClose(dLabor)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////get quantities and values from previous periods//crlf////tab////tab////tab////determine if past data should be gotten for each of the past drivers recursively.//crlf////tab////tab////tab////If the Recurse parameter is undefined\\comma\\ past data will be gotten for the current driver //crlf////tab////tab////tab////but Recurse will be set to false when opening the driver to get past data and recursion//crlf////tab////tab////tab////will not occur.  This will also be the case if Recurse=false.  If Recurse=true\\comma\\ then//crlf////tab////tab////tab////past drivers will also get past data from earlier drivers and this will cause as many //crlf////tab////tab////tab////drivers to be updated as necessary or until there are no more check detail files.//crlf////crlf////tab////tab////tab////The Recurse parameter is undefined when the agent runs normally\\comma\\ so no recursion takes //crlf////tab////tab////tab////place.  The Recurse parameter can be set to true when data is updated by a call from the //crlf////tab////tab////tab////UI.//crlf////tab////tab////tab//bRecurse=boolean(\\quot\\__Recurse__\\quot\\)//crlf////tab////tab////tab////crlf////tab////tab////tab//appendToLog(\\quot\\Recurse=__Recurse__ bRecurse=\\quot\\\\plus\\bRecurse\\plus\\\\quot\\ Date=__Date__\\quot\\)//crlf////crlf////tab////tab////tab////special handling is done for Tudors.  They do not want to use the same day of the week//crlf////tab////tab////tab////when comparing month-to-date sales this year versus last year.  For example\\comma\\ 02/01/20 - 02/14/20//crlf////tab////tab////tab////is compared to 02/01/19 - 02/14/19 regardless of the day of the week that the range starts on.//crlf////tab////tab////tab////This causes a problem with leap years.  Zeroes are recorded when the current date is 02/29.//crlf////tab////tab////tab//bIsTudorsCompany=(getToken(\\quot\\Aspect_BackOffice_Pref_CompanyPollingID\\quot\\)=\\quot\\VhGFwJcWHG2CnERns1zILedS\\quot\\)//crlf////tab////tab////tab//bSkip=false//crlf////tab////tab////tab//if((bIsTudorsCompany) and (formatDate(dt\\comma\\\\quot\\MMdd\\quot\\)=\\quot\\0229\\quot\\))//crlf////tab////tab////tab////tab//bSkip=true//crlf////tab////tab////tab//endif//crlf////tab////tab////tab////crlf////tab////tab////tab//if((not(bSkip)) and ((bRecurse) or (undefined(\\quot\\__Recurse__\\quot\\))))//crlf////crlf////tab////tab////tab////tab//sDebug=\\quot\\\\quot\\//crlf////crlf////tab////tab////tab////tab////clear all past week\\comma\\ month and year values in the current driver//crlf////tab////tab////tab////tab//sDebug=sDebug\\plus\\\\quot\\clear all past week\\comma\\ month and year values in the current driver\\quot\\\\plus\\char(13)\\plus\\char(10)//crlf////tab////tab////tab////tab//c=driverGetRecordCount(dDest\\comma\\true)//crlf////tab////tab////tab////tab//n=0//crlf////tab////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab////tab//dDebugVal=driverGetFieldAbsolute(dDest\\comma\\\\quot\\Amount_Last_Year\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab//if(dDebugVal<>0)//crlf////tab////tab////tab////tab////tab////tab//sDebug=sDebug\\plus\\\\quot\\Clear n=\\quot\\\\plus\\n\\plus\\\\quot\\ DiskIndex: \\quot\\\\plus\\driverGetAbsoluteIndex(dDest\\comma\\n)\\plus\\\\quot\\ Value=\\quot\\\\plus\\dDebugVal\\plus\\char(13)\\plus\\char(10)//crlf////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity_Last_Week\\quot\\\\comma\\n\\comma\\0)//crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount_Last_Week\\quot\\\\comma\\n\\comma\\0)//crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity_Last_Month\\quot\\\\comma\\n\\comma\\0)//crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount_Last_Month\\quot\\\\comma\\n\\comma\\0)//crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity_Last_Year\\quot\\\\comma\\n\\comma\\0)//crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount_Last_Year\\quot\\\\comma\\n\\comma\\0)//crlf////tab////tab////tab////tab////tab//n\\plus\\\\plus\\//crlf////tab////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab////tab//dDebugVal=driverGetFieldAbsolute(dDest\\comma\\\\quot\\Amount_Last_Year\\quot\\\\comma\\1691)//crlf////tab////tab////tab////tab//dDebugCategory3=driverGetFieldAbsolute(dDest\\comma\\\\quot\\Category3\\quot\\\\comma\\1691)//crlf////tab////tab////tab////tab//dDebugDescription=driverGetFieldAbsolute(dDest\\comma\\\\quot\\Field_Description_Short\\quot\\\\comma\\1691)//crlf////tab////tab////tab////tab//sDebug=sDebug\\plus\\\\quot\\After clear Category3: \\quot\\\\plus\\dDebugCategory3\\plus\\\\quot\\ Description: \\quot\\\\plus\\dDebugDescription\\plus\\\\quot\\ Value: \\quot\\\\plus\\dDebugVal\\plus\\char(13)\\plus\\char(10)//crlf////crlf////tab////tab////tab////tab//hashCreate(hashQuantity)//crlf////tab////tab////tab////tab//hashCreate(hashAmount)//crlf////tab////tab////tab////tab//hashCreate(hashRecordNumber)//crlf////tab////tab////tab////tab//arPastWeek=\\quot\\1\\comma\\4\\comma\\52\\quot\\//crlf////tab////tab////tab////tab//cPastWeek=getElementCount(arPastWeek)//crlf////tab////tab////tab////tab//nPastWeek=0//crlf////tab////tab////tab////tab//dt=parseTime(\\quot\\__Date__\\quot\\)//crlf////tab////tab////tab////tab//while(nPastWeek<cPastWeek)//crlf////tab////tab////tab////tab////tab////get the date//crlf////tab////tab////tab////tab////tab//dtPrev=incrementTime(dt\\comma\\-7*value(getElement(arPastWeek\\comma\\nPastWeek)))//crlf////crlf////tab////tab////tab////tab////tab////special handling for Tudors to get last year\\apos\\s value//crlf////tab////tab////tab////tab////tab//if((bIsTudorsCompany) and (nPastWeek=2))//crlf////tab////tab////tab////tab////tab////tab//dtPrev=parseTime(formatDate(dt\\comma\\\\quot\\MM-dd\\quot\\)\\plus\\\\quot\\-\\quot\\\\plus\\(year(dt)-1)\\comma\\\\quot\\MM-dd-yyyy\\quot\\)//tab////crlf////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\Tudors: dt=\\quot\\\\plus\\formatDate(dt\\comma\\\\quot\\MM-dd-yyyy\\quot\\)\\plus\\\\quot\\ dtPrev=\\quot\\\\plus\\formatDate(dtPrev\\comma\\\\quot\\MM-dd-yyyy\\quot\\))//crlf////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////crlf////tab////tab////tab////tab////tab////see if a check detail file exists//crlf////tab////tab////tab////tab////tab//s=sStoreDir\\plus\\\\quot\\ckd.\\quot\\\\plus\\formatDate(dtPrev\\comma\\\\quot\\MM-dd-yyyy\\quot\\)\\plus\\\\quot\\.bin\\quot\\//crlf////tab////tab////tab////tab////tab//if(fileExists(s))//crlf////tab////tab////tab////tab////tab////tab////open the past driver//crlf////tab////tab////tab////tab////tab////tab//driverOpen(POS_Generic_Daily_Sales_Export_Prep\\comma\\dPrev\\comma\\WRITE\\comma\\true\\comma\\\\quot\\StoreID=__StoreID__~~pipe~~Date=\\quot\\\\plus\\formatDate(dtPrev\\comma\\\\quot\\MM-dd-yyyy\\quot\\)\\plus\\\\quot\\~~pipe~~Recurse=\\quot\\\\plus\\bRecurse)//crlf////tab////tab////tab////tab////tab////tab////crlf////tab////tab////tab////tab////tab////tab////create a hashtable of quantities and values//crlf////tab////tab////tab////tab////tab////tab//hashClear(hashQuantity)//crlf////tab////tab////tab////tab////tab////tab//hashClear(hashAmount)//crlf////tab////tab////tab////tab////tab////tab//hashClear(hashRecordNumber)//crlf////tab////tab////tab////tab////tab////tab//c=driverGetRecordCount(dPrev\\comma\\true)//crlf////tab////tab////tab////tab////tab////tab//n=0//crlf////tab////tab////tab////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab////tab////tab////tab//iRecordType=driverGetFieldAbsolute(dPrev\\comma\\\\quot\\Record_Type\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab////tab////tab//iPosID=driverGetFieldAbsolute(dPrev\\comma\\\\quot\\POS_ID\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab////tab////tab//sName=driverGetFieldAbsolute(dPrev\\comma\\\\quot\\Field_Description_Short1\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab////tab////tab//iQuantity=driverGetFieldAbsolute(dPrev\\comma\\\\quot\\Quantity\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab////tab////tab//dAmount=driverGetFieldAbsolute(dPrev\\comma\\\\quot\\Amount\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab////tab////tab//sKey=iRecordType\\plus\\\\quot\\_\\quot\\\\plus\\iPosID\\plus\\\\quot\\_\\quot\\\\plus\\sName//crlf////tab////tab////tab////tab////tab////tab////tab//hashPut(hashQuantity\\comma\\sKey\\comma\\iQuantity)//crlf////tab////tab////tab////tab////tab////tab////tab//hashPut(hashAmount\\comma\\sKey\\comma\\dAmount)//crlf////tab////tab////tab////tab////tab////tab////tab//hashPut(hashRecordNumber\\comma\\sKey\\comma\\n)//crlf////tab////tab////crlf////tab////tab////tab////tab////tab////tab////tab//if(nPastWeek=2)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sDebug=sDebug\\plus\\\\quot\\Get Prev n=\\quot\\\\plus\\n\\plus\\\\quot\\ dtPrev=\\quot\\\\plus\\formatDate(dtPrev\\comma\\\\quot\\MM-dd-yyyy\\quot\\)\\plus\\\\quot\\ sKey=\\quot\\\\plus\\sKey\\plus\\\\quot\\ Quantity=\\quot\\\\plus\\iQuantity\\plus\\\\quot\\ Amount=\\quot\\\\plus\\dAmount\\plus\\char(13)\\plus\\char(10)//crlf////tab////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab////tab//n\\plus\\\\plus\\//crlf////tab////tab////tab////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab////tab////tab////tab////record the values in the current driver//crlf////tab////tab////tab////tab////tab////tab//c=driverGetRecordCount(dDest\\comma\\true)//crlf////tab////tab////tab////tab////tab////tab//n=0//crlf////tab////tab////tab////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab////tab////tab////tab//iRecordType=driverGetFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab////tab////tab//iPosID=driverGetFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab////tab////tab//sName=driverGetFieldAbsolute(dDest\\comma\\\\quot\\Field_Description_Short1\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab////tab////tab////tab//sKey=iRecordType\\plus\\\\quot\\_\\quot\\\\plus\\iPosID\\plus\\\\quot\\_\\quot\\\\plus\\sName//crlf////tab////tab////tab////tab////tab////tab////tab//if(hashContainsKey(hashQuantity\\comma\\sKey))//crlf////tab////tab////tab////tab////tab////tab////tab////tab//if(nPastWeek=0)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity_Last_Week\\quot\\\\comma\\n\\comma\\hashGet(hashQuantity\\comma\\sKey))//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount_Last_Week\\quot\\\\comma\\n\\comma\\hashGet(hashAmount\\comma\\sKey))//crlf////tab////tab////tab////tab////tab////tab////tab////tab//elseif(nPastWeek=1)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity_Last_Month\\quot\\\\comma\\n\\comma\\hashGet(hashQuantity\\comma\\sKey))//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount_Last_Month\\quot\\\\comma\\n\\comma\\hashGet(hashAmount\\comma\\sKey))//crlf////tab////tab////tab////tab////tab////tab////tab////tab//elseif(nPastWeek=2)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity_Last_Year\\quot\\\\comma\\n\\comma\\hashGet(hashQuantity\\comma\\sKey))//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount_Last_Year\\quot\\\\comma\\n\\comma\\hashGet(hashAmount\\comma\\sKey))//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//sDebug=sDebug\\plus\\\\quot\\AddPrev n=\\quot\\\\plus\\n\\plus\\\\quot\\ sKey=\\quot\\\\plus\\sKey\\plus\\\\quot\\ Quantity=\\quot\\\\plus\\hashGet(hashQuantity\\comma\\sKey)\\plus\\\\quot\\ Amount=\\quot\\\\plus\\hashGet(hashAmount\\comma\\sKey)\\plus\\char(13)\\plus\\char(10)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////tab////tab////tab//hashRemoveKey(hashQuantity\\comma\\sKey)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//hashRemoveKey(hashAmount\\comma\\sKey)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//hashRemoveKey(hashRecordNumber\\comma\\sKey)//crlf////tab////tab////tab////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////tab////tab////tab//if(nPastWeek=0)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity_Last_Week\\quot\\\\comma\\n\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount_Last_Week\\quot\\\\comma\\n\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//elseif(nPastWeek=1)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity_Last_Month\\quot\\\\comma\\n\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount_Last_Month\\quot\\\\comma\\n\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//elseif(nPastWeek=2)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity_Last_Year\\quot\\\\comma\\n\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount_Last_Year\\quot\\\\comma\\n\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//sDebug=sDebug\\plus\\\\quot\\ZeroPrev n=\\quot\\\\plus\\n\\plus\\\\quot\\ sKey=\\quot\\\\plus\\sKey\\plus\\char(13)\\plus\\char(10)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab////tab//n\\plus\\\\plus\\//crlf////tab////tab////tab////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab////tab////tab////tab////add records for any elements left in the hashtable.  This is done to address situations //crlf////tab////tab////tab////tab////tab////tab////in which a value may appear for a department\\comma\\ job code\\comma\\ etc in a past period but not in //crlf////tab////tab////tab////tab////tab////tab////the current period.  If this wasn\\apos\\t done\\comma\\ a report comparing the current and past //crlf////tab////tab////tab////tab////tab////tab////period would not contain the element.  For example\\comma\\ a department or job code used last //crlf////tab////tab////tab////tab////tab////tab////year would not be included in a table comparing this year to last if it was not used//crlf////tab////tab////tab////tab////tab////tab////this year//crlf////tab////tab////tab////tab////tab////tab//arKeys=hashGetKeys(hashRecordNumber)//crlf////tab////tab////tab////tab////tab////tab//cKey=getElementCount(arKeys)//crlf////tab////tab////tab////tab////tab////tab//nKey=0//crlf////tab////tab////tab////tab////tab////tab//while(nKey<cKey)//crlf////tab////tab////tab////tab////tab////tab////tab//sKey=getElement(arKeys\\comma\\nKey)//crlf////tab////tab////tab////tab////tab////tab////tab//iRecordType=value(getElement(sKey\\comma\\0\\comma\\\\quot\\_\\quot\\))//crlf////tab////tab////tab////tab////tab////tab////tab//if((iRecordType<6520) or (iRecordType>6536))//crlf////tab////tab////tab////tab////tab////tab////tab////tab//r1=value(hashGet(hashRecordNumber\\comma\\sKey))//crlf////tab////tab////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(dDest)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////appendToLog(\\quot\\Add remaining key: \\quot\\\\plus\\sKey\\plus\\\\quot\\ r=\\quot\\\\plus\\r\\plus\\\\quot\\ iRecordType=\\quot\\\\plus\\iRecordType)//crlf////crlf////tab////tab////tab////tab////tab////tab////tab////tab//driverCopyRecord(dPrev\\comma\\r1\\comma\\dDest\\comma\\r)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////appendToLog(\\quot\\Src r1=\\quot\\\\plus\\r1\\plus\\\\quot\\ RecordType=\\quot\\\\plus\\driverGetFieldAbsolute(dPrev\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r1))//crlf////tab////tab////tab////tab////tab////tab////tab////tab////appendToLog(\\quot\\Dest r=\\quot\\\\plus\\r\\plus\\\\quot\\ RecordType=\\quot\\\\plus\\driverGetFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\r))//crlf////crlf////tab////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Date_Text\\quot\\\\comma\\r\\comma\\formatDate(dt\\comma\\\\quot\\MM-dd-yyyy\\quot\\))//crlf////tab////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity\\quot\\\\comma\\r\\comma\\0)//crlf////crlf////tab////tab////tab////tab////tab////tab////tab////tab////9-2024 added these to clear values from last years file//crlf////tab////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity_Last_Week\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount_Last_Week\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity_Last_Month\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount_Last_Month\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity_Last_Year\\quot\\\\comma\\r\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount_Last_Year\\quot\\\\comma\\r\\comma\\0)//crlf////crlf////tab////tab////tab////tab////tab////tab////tab////tab//if(nPastWeek=0)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity_Last_Week\\quot\\\\comma\\r\\comma\\hashGet(hashQuantity\\comma\\sKey))//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount_Last_Week\\quot\\\\comma\\r\\comma\\hashGet(hashAmount\\comma\\sKey))//crlf////tab////tab////tab////tab////tab////tab////tab////tab//elseif(nPastWeek=1)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity_Last_Month\\quot\\\\comma\\r\\comma\\hashGet(hashQuantity\\comma\\sKey))//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount_Last_Month\\quot\\\\comma\\r\\comma\\hashGet(hashAmount\\comma\\sKey))//crlf////tab////tab////tab////tab////tab////tab////tab////tab//elseif(nPastWeek=2)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Quantity_Last_Year\\quot\\\\comma\\r\\comma\\hashGet(hashQuantity\\comma\\sKey))//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Amount_Last_Year\\quot\\\\comma\\r\\comma\\hashGet(hashAmount\\comma\\sKey))//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//sDebug=sDebug\\plus\\\\quot\\AddLeftover n=\\quot\\\\plus\\n\\plus\\\\quot\\ sKey=\\quot\\\\plus\\sKey\\plus\\\\quot\\ Quantity=\\quot\\\\plus\\hashGet(hashQuantity\\comma\\sKey)\\plus\\\\quot\\ Amount=\\quot\\\\plus\\hashGet(hashAmount\\comma\\sKey)\\plus\\char(13)\\plus\\char(10)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab////tab//nKey\\plus\\\\plus\\//crlf////tab////tab////tab////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab////tab////tab////tab//driverClose(dPrev)//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab//dDebugVal=driverGetFieldAbsolute(dDest\\comma\\\\quot\\Amount_Last_Year\\quot\\\\comma\\1691)//crlf////tab////tab////tab////tab////tab//dDebugCategory3=driverGetFieldAbsolute(dDest\\comma\\\\quot\\Category3\\quot\\\\comma\\1691)//crlf////tab////tab////tab////tab////tab//dDebugDescription=driverGetFieldAbsolute(dDest\\comma\\\\quot\\Field_Description_Short\\quot\\\\comma\\1691)//crlf////tab////tab////tab////tab////tab//sDebug=sDebug\\plus\\\\quot\\After nPastWeek: \\quot\\\\plus\\nPastWeek\\plus\\\\quot\\ Category3: \\quot\\\\plus\\dDebugCategory3\\plus\\\\quot\\ Description: \\quot\\\\plus\\dDebugDescription\\plus\\\\quot\\ Value: \\quot\\\\plus\\dDebugVal\\plus\\char(13)\\plus\\char(10)//crlf////crlf////tab////tab////tab////tab////tab//nPastWeek\\plus\\\\plus\\//crlf////tab////tab////tab////tab//endwhile//crlf////tab////tab////tab////tab//fileWriteContent(\\quot\\c:~~backslash~~aspect7~~backslash~~salesexportlog.txt\\quot\\\\comma\\sDebug)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////add tags from chart of accounts//crlf////tab////tab////tab//driverOpen(POS_Generic_Chart_Of_Accounts\\comma\\dChart\\comma\\WRITE\\comma\\false\\comma\\\\quot\\StoreID=__StoreID__\\quot\\)//crlf////crlf////tab////tab////tab////create hashtable of tags and sort_order from chart of accounts//crlf////tab////tab////tab//hashCreate(hashTag)//crlf////tab////tab////tab//hashCreate(hashSortOrder)//crlf////tab////tab////tab//driverSetFilter(dChart\\comma\\\\quot\\true\\quot\\\\comma\\true)//crlf////tab////tab////tab//c=driverGetRecordCount(dChart)//crlf////tab////tab////tab//n=0//crlf////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab//sRecordType=driverGetField(dChart\\comma\\\\quot\\Record_Type\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab//sPosID=driverGetField(dChart\\comma\\\\quot\\POS_ID\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab//sKey=sRecordType\\plus\\\\quot\\_\\quot\\\\plus\\sPosID//crlf////tab////tab////tab////tab//hashPut(hashSortOrder\\comma\\sKey\\comma\\driverGetField(dChart\\comma\\\\quot\\Sort_Order\\quot\\\\comma\\n))//crlf////tab////tab////tab////tab//sTag=trim(driverGetField(dChart\\comma\\\\quot\\Tags\\quot\\\\comma\\n))//crlf////tab////tab////tab////tab//if(len(sTag)>0)//crlf////tab////tab////tab////tab////tab//hashPut(hashTag\\comma\\sKey\\comma\\sTag)//crlf////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab//n\\plus\\\\plus\\//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab////record the tags in the current driver//crlf////tab////tab////tab//c=driverGetRecordCount(dDest\\comma\\true)//crlf////tab////tab////tab//n=0//crlf////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab//iRecordType=driverGetFieldAbsolute(dDest\\comma\\\\quot\\Record_Type\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab//iPosID=driverGetFieldAbsolute(dDest\\comma\\\\quot\\POS_ID\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab//sKey=iRecordType\\plus\\\\quot\\_\\quot\\\\plus\\iPosID//crlf////tab////tab////tab////tab//if(hashContainsKey(hashTag\\comma\\sKey))//crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Tags\\quot\\\\comma\\n\\comma\\hashGet(hashTag\\comma\\sKey))//crlf////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab//if(hashContainsKey(hashSortOrder\\comma\\sKey))//crlf////tab////tab////tab////tab////tab//driverPutFieldAbsolute(dDest\\comma\\\\quot\\Chart_Of_Accounts_Sort_Order\\quot\\\\comma\\n\\comma\\hashGet(hashSortOrder\\comma\\sKey))//crlf////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab//n\\plus\\\\plus\\//crlf////tab////tab////tab//endwhile//crlf////tab////tab////tab////crlf////tab////tab////tab//driverClose(dDest)//crlf////tab////tab////tab////crlf////tab////tab////tab//return(\\quot\\ok\\quot\\)//crlf////tab////tab////tab////crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf////crlf//[!------------------------------------------------------------------------//crlf//updateDailySalesExportForStore//crlf//--------------------------------------------------------------------------]//crlf//<conditional expression:(\\quot\\__Action__\\quot\\=\\quot\\updateDailySalesExportForStore\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__ActionDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Updates the daily sales export files for a given store//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//StoreID - Store ID//crlf////tab////tab//DateFrom - Optional starting date//crlf////tab////tab//Overwrite - Optional.  If true\\comma\\ files will be created even if they are up to date//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\updateDailySalesExportForStore\\quot\\; commands:\\quot\\//crlf////crlf////tab////tab////tab////abort if already running//crlf////tab////tab////tab//if(scriptCount(this)>1)//crlf////tab////tab////tab////tab//return(\\quot\\Ok: Aborted because an instance is already running\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if StoreID is undefined//crlf////tab////tab////tab//if((not(defined(\\quot\\__StoreID__\\quot\\))) or (\\quot\\__StoreID__\\quot\\=\\quot\\Undefined\\quot\\))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing StoreID\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if granite links//crlf////tab////tab////tab//if(getToken(\\quot\\AspectHashID\\quot\\)=\\quot\\m1skppjhy\\quot\\)//crlf////tab////tab////tab////tab//return(\\quot\\Ok: Aborted Granite Links\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////get store ID//crlf////tab////tab////tab//StoreID=\\quot\\__StoreID__\\quot\\//crlf////crlf////tab////tab////tab////abort if StoreID is missing.  This can happen if the agent is executed before the pos interface //crlf////tab////tab////tab////agent has set the token for the active store or if no store is enabled for pos import//crlf////tab////tab////tab//if(len(\\quot\\__StoreID__\\quot\\)=0)//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing StoreID\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////get store directory//crlf////tab////tab////tab//StoreDir=getStoreDir(StoreID)//crlf////tab////tab////tab//appendToLog(\\quot\\StoreID=\\quot\\\\plus\\StoreID)//crlf////tab////tab////tab//appendToLog(\\quot\\StoreDir=\\quot\\\\plus\\StoreDir)//crlf////crlf////tab////tab////tab////get starting date//crlf////tab////tab////tab//if(defined(\\quot\\__DateFrom__\\quot\\))//crlf////tab////tab////tab////tab//dtFrom=parseTime(\\quot\\__DateFrom__\\quot\\\\comma\\\\quot\\MM-dd-yyyy\\quot\\)//crlf////tab////tab////tab//else//crlf////tab////tab////tab////tab//dtFrom=incrementTime(now()\\comma\\-45)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab//bOverwrite=if(defined(\\quot\\__Overwrite__\\quot\\)\\comma\\boolean(\\quot\\__Overwrite__\\quot\\)\\comma\\false)//crlf////crlf////tab////tab////tab//appendToLog(\\quot\\updateDailySalesExportForStore: StoreID=__StoreID__ DateFrom=\\quot\\\\plus\\formatDate(dtFrom\\comma\\\\quot\\MM-dd-yyyy\\quot\\)\\plus\\\\quot\\ OverWrite=\\quot\\\\plus\\bOverwrite)//crlf////crlf////tab////tab////tab////delete salesexport files prior to 7-30-2018.  This was to address changes in the format //crlf////tab////tab////tab////of the files.  Also delete salesexport files in the homedir~~backslash~~data directory.//crlf////tab////tab////tab//arFiles=getMatchingFiles(StoreDir\\plus\\\\quot\\salesexport*.bin*\\quot\\\\comma\\false\\comma\\false)//crlf////tab////tab////tab//arFiles2=getMatchingFiles(getToken(\\quot\\homedir\\quot\\)\\plus\\\\quot\\data~~backslash~~salesexport*.bin\\quot\\\\comma\\true\\comma\\false\\comma\\2)//crlf////tab////tab////tab//if(getElementCount(arFiles2\\comma\\\\quot\\~~pipe~~\\quot\\)>0)//crlf////tab////tab////tab////tab//arFiles=addElement(arFiles\\comma\\arFiles2\\comma\\\\quot\\~~pipe~~\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab//dt=parseTime(\\quot\\07-30-2018 23:59\\quot\\\\comma\\\\quot\\MM-dd-yyyy HH:mm\\quot\\)//crlf////tab////tab////tab//c=getElementCount(arFiles\\comma\\\\quot\\~~pipe~~\\quot\\)//crlf////tab////tab////tab//n=0//crlf////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab//sFilename=getElement(arFiles\\comma\\n\\comma\\\\quot\\~~pipe~~\\quot\\)//crlf////tab////tab////tab////tab//if(fileModified(sFilename)<dt)//crlf////tab////tab////tab////tab////tab//appendToLog(\\quot\\Deleted file: \\quot\\\\plus\\sFilename)//crlf////tab////tab////tab////tab////tab//fileDelete(sFilename)//crlf////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab//n\\plus\\\\plus\\//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab////12-2019 If it\\apos\\s a Mike Jones store\\comma\\ delete all sales export files for 2019 that were //crlf////tab////tab////tab////created prior to 12-07-2019.  This is a one-time thing to force updating of all of the files //crlf////tab////tab////tab////to include new tip information in the sales export//crlf////tab////tab////tab//dtCutoff=parseTime(\\quot\\12-07-2019\\quot\\\\comma\\\\quot\\MM-dd-yyyy\\quot\\)//crlf////tab////tab////tab//tPackageModified=fileModified(getToken(\\quot\\homedir\\quot\\)\\plus\\\\quot\\packages/POS_Generic.zip\\quot\\)//crlf////tab////tab////tab//appendToLog(\\quot\\tPackageModified=\\quot\\\\plus\\tPackageModified)//crlf////tab////tab////tab//if((getToken(\\quot\\Aspect_BackOffice_Pref_CompanyPollingID\\quot\\)=\\quot\\PD7DCNDbGowgU3zchFKxzHTH\\quot\\) and (tPackageModified>dtCutoff))//crlf////tab////tab////tab////tab//appendtoLog(\\quot\\Special processing for Mike Jones Group\\quot\\)//crlf////tab////tab////tab////tab//dt1=parseTime(\\quot\\01-01-2019\\quot\\\\comma\\\\quot\\MM-dd-yyyy\\quot\\)//crlf////tab////tab////tab////tab//dt2=now()//crlf////tab////tab////tab////tab//while(dt1<dt2)//crlf////tab////tab////tab////tab////tab//sFilename=StoreDir\\plus\\\\quot\\salesexport.\\quot\\\\plus\\formatDate(dt1\\comma\\\\quot\\MM-dd-yyyy\\quot\\)\\plus\\\\quot\\.bin\\quot\\//crlf////tab////tab////tab////tab////tab//appendToLog(fileName(sFilename)\\plus\\\\quot\\ Modified: \\quot\\\\plus\\formatDate(fileModified(sFilename)\\comma\\\\quot\\MM-dd-yyyy\\quot\\)\\plus\\\\quot\\ size: \\quot\\\\plus\\fileSize(sFilename))//crlf////tab////tab////tab////tab////tab//if(fileExists(sFilename))//crlf////tab////tab////tab////tab////tab////tab//if(fileModified(sFilename)<dtCutoff)//crlf////tab////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\Deleting \\quot\\\\plus\\sFilename)//crlf////tab////tab////tab////tab////tab////tab////tab//fileDelete(sFilename)//crlf////tab////tab////tab////tab////tab////tab////tab//if(fileExists(sFilename))//crlf////tab////tab////tab////tab////tab////tab////tab////tab//fileSetLength(sFilename\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////tab////tab////also delete the salesexportprep//crlf////tab////tab////tab////tab////tab////tab////tab//sFilename=StoreDir\\plus\\\\quot\\salesexportprep.\\quot\\\\plus\\formatDate(dt1\\comma\\\\quot\\MM-dd-yyyy\\quot\\)\\plus\\\\quot\\.bin\\quot\\//crlf////tab////tab////tab////tab////tab////tab////tab//fileDelete(sFilename)//crlf////tab////tab////tab////tab////tab////tab////tab//if(fileExists(sFilename))//crlf////tab////tab////tab////tab////tab////tab////tab////tab//fileSetLength(sFilename\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////tab////tab//if(dt1<dtFrom)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//dtFrom=dt1//crlf////tab////tab////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\[1]Set dtFrom to \\quot\\\\plus\\dt1)//crlf////tab////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////tab////if the file doesn\\apos\\t exist\\comma\\ see if a check detail file exists.  If it does\\comma\\ then //crlf////tab////tab////tab////tab////tab////tab////update from the beginning of the year//crlf////tab////tab////tab////tab////tab////tab//sFilename=StoreDir\\plus\\\\quot\\ckd.\\quot\\\\plus\\formatDate(dt1\\comma\\\\quot\\MM-dd-yyyy\\quot\\)\\plus\\\\quot\\.bin\\quot\\//crlf////tab////tab////tab////tab////tab////tab//if(fileExists(sFilename))//crlf////tab////tab////tab////tab////tab////tab////tab//if(dt1<dtFrom)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//dtFrom=dt1//crlf////tab////tab////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\[2]Set dtFrom to \\quot\\\\plus\\dt1)//crlf////tab////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\No check detali for \\quot\\\\plus\\formatDate(dt1))//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab//dt1=incrementTime(dt1\\comma\\1)//crlf////tab////tab////tab////tab//endwhile//crlf////tab////tab////tab////tab//appendtoLog(\\quot\\Special processing complete.  dtFrom=\\quot\\\\plus\\formatDate(dtFrom))//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab//cChecked=0//crlf////tab////tab////tab//cUpdated=0//crlf////tab////tab////tab//cCreated=0//crlf////tab////tab////tab//dt=dtFrom//crlf////tab////tab////tab//while(dt<now())//crlf////tab////tab////tab////tab//sDate=formatDate(dt\\comma\\\\quot\\MM-dd-yyyy\\quot\\)//crlf////tab////tab////tab////tab//sCheckDetailFilename=StoreDir\\plus\\\\quot\\ckd.\\quot\\\\plus\\sDate\\plus\\\\quot\\.bin\\quot\\//crlf////tab////tab////tab////tab//appendToLog(\\quot\\Check status of salesexport for \\quot\\\\plus\\sDate)//crlf////tab////tab////tab////tab//if(fileExists(sCheckDetailFilename))//crlf////tab////tab////tab////tab////tab//sExportFilename=StoreDir\\plus\\\\quot\\salesexport.\\quot\\\\plus\\sDate\\plus\\\\quot\\.bin\\quot\\//crlf////tab////tab////tab////tab////tab//sDailySales=StoreDir\\plus\\\\quot\\sales.\\quot\\\\plus\\sDate\\plus\\\\quot\\.bin\\quot\\//crlf////tab////tab////tab////tab////tab//sDailySalesAdd=StoreDir\\plus\\\\quot\\salesadd.\\quot\\\\plus\\sDate\\plus\\\\quot\\.bin\\quot\\//crlf////tab////tab////tab////tab////tab//sDailyLabor=StoreDir\\plus\\\\quot\\lbr.\\quot\\\\plus\\sDate\\plus\\\\quot\\.bin\\quot\\//crlf////tab////tab////tab////tab////tab//sSalesMix=StoreDir\\plus\\\\quot\\mix.\\quot\\\\plus\\sDate\\plus\\\\quot\\.bin\\quot\\//crlf////tab////tab////tab////tab////tab//sInventorySummary=StoreDir\\plus\\\\quot\\inventory_summary.\\quot\\\\plus\\sDate\\plus\\\\quot\\.bin\\quot\\//crlf////crlf////tab////tab////tab////tab////tab//t=dateNumber(fileModified(sCheckDetailFilename))//crlf////tab////tab////tab////tab////tab//t=max(t\\comma\\dateNumber(fileModified(sDailySales)))//crlf////tab////tab////tab////tab////tab//t=max(t\\comma\\dateNumber(fileModified(sDailySalesAdd)))//crlf////tab////tab////tab////tab////tab//t=max(t\\comma\\dateNumber(fileModified(sDailyLabor)))//crlf////tab////tab////tab////tab////tab//t=max(t\\comma\\dateNumber(fileModified(sSalesMix)))//crlf////tab////tab////tab////tab////tab//t=max(t\\comma\\dateNumber(fileModified(sInventorySummary)))//crlf////crlf////tab////tab////tab////tab////tab////check all labor files in the pay period//crlf////tab////tab////tab////tab////tab//appendToLog(\\quot\\t=\\quot\\\\plus\\formatDate(date(t)\\comma\\\\quot\\MM-dd-yyyy HH:mm:ss\\quot\\))//crlf////tab////tab////tab////tab////tab//dt1=payperiodStartDate(StoreID\\comma\\dt)//crlf////tab////tab////tab////tab////tab//dt1=incrementTime(dt1\\comma\\-7)//crlf////tab////tab////tab////tab////tab//appendToLog(\\quot\\Checking for labor changes from \\quot\\\\plus\\formatDate(dt1\\comma\\\\quot\\MM-dd-yyyy\\quot\\))//crlf////tab////tab////tab////tab////tab//while(dt1<=dt)//crlf////tab////tab////tab////tab////tab////tab//sDailyLabor=StoreDir\\plus\\\\quot\\lbr.\\quot\\\\plus\\formatDate(dt1\\comma\\\\quot\\MM-dd-yyyy\\quot\\)\\plus\\\\quot\\.bin\\quot\\//crlf////tab////tab////tab////tab////tab////tab//appendToLog(sDailyLabor\\plus\\\\quot\\ Modified: \\quot\\\\plus\\formatDate(fileModified(sDailyLabor)\\comma\\\\quot\\MM-dd-yyyy HH:mm:ss\\quot\\))//crlf////tab////tab////tab////tab////tab////tab//t=max(t\\comma\\dateNumber(fileModified(sDailyLabor)))//crlf////tab////tab////tab////tab////tab////tab//dt1=incrementTime(dt1\\comma\\1)//crlf////tab////tab////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab////tab////tab//appendToLog(\\quot\\bOverwrite=\\quot\\\\plus\\bOverwrite)//crlf////tab////tab////tab////tab////tab//appendToLog(sExportFilename\\plus\\\\quot\\ Modified: \\quot\\\\plus\\formatDate(fileModified(sExportFilename)\\comma\\\\quot\\MM-dd-yyyy HH:mm:ss\\quot\\))//crlf////tab////tab////tab////tab////tab//appendToLog(sDailySales\\plus\\\\quot\\ Modified: \\quot\\\\plus\\formatDate(fileModified(sDailySales)\\comma\\\\quot\\MM-dd-yyyy HH:mm:ss\\quot\\))//crlf////tab////tab////tab////tab////tab//appendToLog(sDailySalesAdd\\plus\\\\quot\\ Modified: \\quot\\\\plus\\formatDate(fileModified(sDailySalesAdd)\\comma\\\\quot\\MM-dd-yyyy HH:mm:ss\\quot\\))//crlf////tab////tab////tab////tab////tab//appendToLog(sDailyLabor\\plus\\\\quot\\ Modified: \\quot\\\\plus\\formatDate(fileModified(sDailyLabor)\\comma\\\\quot\\MM-dd-yyyy HH:mm:ss\\quot\\))//crlf////tab////tab////tab////tab////tab//appendToLog(sSalesMix\\plus\\\\quot\\ Modified: \\quot\\\\plus\\formatDate(fileModified(sSalesMix)\\comma\\\\quot\\MM-dd-yyyy HH:mm:ss\\quot\\))//crlf////tab////tab////tab////tab////tab//appendToLog(\\quot\\t=\\quot\\\\plus\\formatDate(t\\comma\\\\quot\\MM-dd-yyyy HH:mm:ss\\quot\\))//crlf////tab////tab////tab////tab////tab//appendToLog(\\quot\\Sales Export modified: \\quot\\\\plus\\formatDate(fileModified(sExportFilename)\\comma\\\\quot\\MM-dd-yyyy HH:mm:ss\\quot\\))//crlf////tab////tab////tab////tab////tab//appendToLog(\\quot\\Inventory Summary modified: \\quot\\\\plus\\formatDate(fileModified(sInventorySummary)\\comma\\\\quot\\MM-dd-yyyy HH:mm:ss\\quot\\))//crlf////crlf////tab////tab////tab////tab////tab//if((bOverwrite) or (not(fileExists(sExportFilename))) or (dateNumber(fileModified(sExportFilename))<t))//crlf////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\Updating sales export\\quot\\)//crlf////crlf////tab////tab////tab////tab////tab////tab////create the file for the previous year too to make sure it exists and that it contains //crlf////tab////tab////tab////tab////tab////tab////any new fields that may have been added to the current sales export.  This is done so //crlf////tab////tab////tab////tab////tab////tab////the previous year\\apos\\s numbers are accurate in the current file.//crlf////tab////tab////tab////tab////tab////tab//dtLastYear=incrementTime(dt\\comma\\-7*52)//crlf////tab////tab////tab////tab////tab////tab//sDtLastYear=formatDate(dtLastYear\\comma\\\\quot\\MM-dd-yyyy\\quot\\)//crlf////tab////tab////tab////tab////tab////tab//sCheckDetailPrevYear=StoreDir\\plus\\\\quot\\ckd.\\quot\\\\plus\\sDtLastYear\\plus\\\\quot\\.bin\\quot\\//tab////crlf////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\sCheckDetailPrevYear=\\quot\\\\plus\\sCheckDetailPrevYear)//crlf////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\sCheckDetailPrevYear size=\\quot\\\\plus\\fileSize(sCheckDetailPrevYear))//crlf////crlf////tab////tab////tab////tab////tab////tab////if a check detail file does not exist for the previous year\\comma\\ try to import the data//crlf////tab////tab////tab////tab////tab////tab//if(fileSize(sCheckDetailPrevYear)=0)//crlf////tab////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\POSInterface_PosType=\\quot\\\\plus\\getToken(\\quot\\POSInterface_PosType\\quot\\))//crlf////tab////tab////tab////tab////tab////tab////tab//bImport=false//crlf////tab////tab////tab////tab////tab////tab////tab//if(getToken(\\quot\\POSInterface_PosType\\quot\\)=\\quot\\aloha\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sGndsaleFilename=getToken(\\quot\\homedir\\quot\\)\\plus\\\\quot\\posdata/aloha/\\quot\\\\plus\\formatDate(dtLastYear\\comma\\\\quot\\yyyyMMdd\\quot\\)\\plus\\\\quot\\/gndsale.dbf\\quot\\//crlf////tab////tab////tab////tab////tab////tab////tab////tab//if(fileSize(sGndsaleFilename)=0)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//s=execAgentAction(\\quot\\processAlohaFiles_Day\\quot\\\\comma\\\\quot\\Date=\\quot\\\\plus\\sDtLastYear)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//appendToLog(s)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab////tab////tab//if(fileSize(sGndsaleFilename)>0)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//bImport=true//crlf////tab////tab////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab////tab//elseif(getToken(\\quot\\POSInterface_PosType\\quot\\)=\\quot\\Restaurant_Manager\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sProcessedFilename=getToken(\\quot\\homedir\\quot\\)\\plus\\\\quot\\posdata/restaurant_manager/\\quot\\\\plus\\formatDate(dtLastYear\\comma\\\\quot\\yyyyMMdd\\quot\\)\\plus\\\\quot\\/processed.txt\\quot\\//crlf////tab////tab////tab////tab////tab////tab////tab////tab//if(fileSize(sProcessedFilename)=0)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//s=execAgentAction(\\quot\\processRestaurantManagerFiles_Day\\quot\\\\comma\\\\quot\\Date=\\quot\\\\plus\\sDtLastYear)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//appendToLog(s)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab////tab////tab//if(fileSize(sProcessedFilename)>0)//crlf////tab////tab////tab////tab////tab////tab////tab////tab////tab//bImport=true//crlf////tab////tab////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////tab////tab////abort for AJ Gators Bennett Creek.  They do not have data for last year and //crlf////tab////tab////tab////tab////tab////tab////tab////the script hangs up.  This is a workaround//crlf////tab////tab////tab////tab////tab////tab////tab//sHashID=getToken(\\quot\\AspectHashID\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\sHashID=\\quot\\\\plus\\sHashID)//crlf////tab////tab////tab////tab////tab////tab////tab//if(sHashID=\\quot\\8zgrnyfl4\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//bImport=false//crlf////tab////tab////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\Aborting import of last year for AJ Gators Bennett Creek\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\bImport=\\quot\\\\plus\\bImport)//crlf////tab////tab////tab////tab////tab////tab////tab//if(bImport)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sParams=\\quot\\StoreID=\\quot\\\\plus\\StoreID\\plus\\\\quot\\\\amp\\From=\\quot\\\\plus\\sDtLastYear\\plus\\\\quot\\\\amp\\To=\\quot\\\\plus\\sDtLastYear//crlf////tab////tab////tab////tab////tab////tab////tab////tab////sParams=sParams\\plus\\\\quot\\\\amp\\DataType=check_details\\comma\\check_headers\\comma\\sales_mix\\comma\\paidinout\\comma\\othertotals\\comma\\timeclock\\comma\\id_comps\\comma\\id_departments\\comma\\id_discount\\comma\\id_employee_records\\comma\\id_gift_certificates\\comma\\id_job_codes\\comma\\id_menu_categories\\comma\\id_menu_items\\comma\\id_paid_in\\comma\\id_paid_out\\comma\\id_revenue_centers\\comma\\id_tax\\comma\\id_tender\\comma\\id_void\\quot\\//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sParams=sParams\\plus\\\\quot\\\\amp\\DataType=check_details\\comma\\check_headers\\comma\\sales_mix\\comma\\paidinout\\comma\\othertotals\\comma\\timeclock\\quot\\//crlf////tab////tab////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\Import previous year: \\quot\\\\plus\\sDtLastYear)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//s=execAgentAction(\\quot\\synchPastPOSData\\quot\\\\comma\\sParams)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//appendToLog(s)//crlf////crlf////tab////tab////tab////tab////tab////tab////tab////tab////import yesterday\\apos\\s employee file again to correct any employee numbers that may have //crlf////tab////tab////tab////tab////tab////tab////tab////tab////been recycled since the previous year//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sDtYesterday=formatDate(incrementTime(now()\\comma\\-2)\\comma\\\\quot\\MM-dd-yyyy\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sParams=\\quot\\StoreID=\\quot\\\\plus\\StoreID\\plus\\\\quot\\\\amp\\From=\\quot\\\\plus\\sDtYesterday\\plus\\\\quot\\\\amp\\To=\\quot\\\\plus\\sDtYesterday\\plus\\\\quot\\\\amp\\DataType=id_employee_records\\quot\\//crlf////tab////tab////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\Import current employees: \\quot\\\\plus\\sParams)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//s=execAgentAction(\\quot\\synchPastPOSData\\quot\\\\comma\\sParams)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//appendToLog(s)//crlf////tab////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////tab//if(fileExists(sCheckDetailPrevYear))//crlf////tab////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\Updating export for previous year: \\quot\\\\plus\\sDtLastYear)//crlf////tab////tab////tab////tab////tab////tab////tab//sExportLastYear=StoreDir\\plus\\\\quot\\salesexport.\\quot\\\\plus\\sDtLastYear\\plus\\\\quot\\.bin\\quot\\//crlf////tab////tab////tab////tab////tab////tab////tab//fileSetLength(sExportLastYear\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab////tab//sParams=\\quot\\StoreID=\\quot\\\\plus\\StoreID\\plus\\\\quot\\~~pipe~~Date=\\quot\\\\plus\\formatDate(dtLastYear\\comma\\\\quot\\MM-dd-yyyy\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab//updateDependentDriver(POS_Generic_Daily_Sales_Export\\comma\\sParams)//crlf////tab////tab////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\Not updating export for previous year: \\quot\\\\plus\\sDtLastYear\\plus\\\\quot\\ No check details.\\quot\\)//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////tab////delete the file if bOverwrite is true//crlf////tab////tab////tab////tab////tab////tab////12-02-2020 - Modified this to delete the file because the updateDependentDriver//crlf////tab////tab////tab////tab////tab////tab////function below does not take into account the timestamp of inventory_summary file//crlf////tab////tab////tab////tab////tab////tab////and possibly others that have been included in the salesexport driver.  The timestamps//crlf////tab////tab////tab////tab////tab////tab////evaluated above are used to determine if the file needs to be updated//crlf////tab////tab////tab////tab////tab////tab////if((bOverwrite) and (fileExists(sExportFilename)))//crlf////tab////tab////tab////tab////tab////tab//if(fileExists(sExportFilename))//crlf////tab////tab////tab////tab////tab////tab////tab//fileSetLength(sExportFilename\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////tab////delete the salesexportprep file too.  This is necessary to pick up changes //crlf////tab////tab////tab////tab////tab////tab////made to tags in the chart of accounts//crlf////tab////tab////tab////tab////tab////tab//sExportPrepFilename=replaceSubstring(sExportFilename\\comma\\\\quot\\salesexport.\\quot\\\\comma\\\\quot\\salesexportprep.\\quot\\)//crlf////tab////tab////tab////tab////tab////tab//if((bOverwrite) and (fileExists(sExportPrepFilename)))//crlf////tab////tab////tab////tab////tab////tab////tab//fileSetLength(sExportPrepFilename\\comma\\0)//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\Updating: \\quot\\\\plus\\sExportFilename)//crlf////tab////tab////tab////tab////tab////tab//sParams=\\quot\\StoreID=\\quot\\\\plus\\StoreID\\plus\\\\quot\\~~pipe~~Date=\\quot\\\\plus\\formatDate(dt\\comma\\\\quot\\MM-dd-yyyy\\quot\\)//crlf////tab////tab////tab////tab////tab////tab//updateDependentDriver(POS_Generic_Daily_Sales_Export\\comma\\sParams)//crlf////tab////tab////tab////tab////tab////tab//fileSetModified(sExportFilename\\comma\\now())//crlf////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\Set modified to \\quot\\\\plus\\formatDate(fileModified(sExportFilename)\\comma\\\\quot\\MM-dd-yyyy HH:mm:ss\\quot\\)\\plus\\\\quot\\ for \\quot\\\\plus\\sExportFilename)//crlf////tab////tab////tab////tab////tab////tab//cUpdated\\plus\\\\plus\\//crlf////tab////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\Sales export is up to date for \\quot\\\\plus\\sDate)//crlf////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab//appendToLog(\\quot\\Could not find: \\quot\\\\plus\\sCheckDetailFilename)//crlf////crlf////tab////tab////tab////tab////tab////update the dependency state so the driver is not updated again//tab////crlf////tab////tab////tab////tab////tab//setDependencyStates(POS_Generic_Daily_Sales_Export\\comma\\sParams\\comma\\\\quot\\\\quot\\\\comma\\\\quot\\\\quot\\\\comma\\\\quot\\No check details\\quot\\)//tab////crlf////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab//cChecked\\plus\\\\plus\\//crlf////tab////tab////tab////crlf////tab////tab////tab////tab//dt=incrementTime(dt\\comma\\1)//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab//sResult=\\quot\\Checked \\quot\\\\plus\\cChecked\\plus\\\\quot\\ files in \\quot\\\\plus\\StoreDir\\plus\\\\quot\\.  Updated: \\quot\\\\plus\\cUpdated//crlf////crlf////tab////tab////tab////create file set if it doesn\\apos\\t exist.  The file set is created now even if it exists to //crlf////tab////tab////tab////set the minutes between execution which was not set originally.  This can be removed.//crlf////tab////tab////tab//sID=lookup(Aspect_File_Set_ID_By_File_Set_Name\\comma\\\\quot\\SalesExport\\quot\\)//crlf////tab////tab////tab//if((true) or (len(sID)=0))//crlf////tab////tab////tab////tab//s=execAgentAction(\\quot\\createSalesExportFileset\\quot\\\\comma\\\\quot\\\\quot\\)//crlf////tab////tab////tab////tab//if(not(startsWith(s\\comma\\\\quot\\ok\\quot\\))) //crlf////tab////tab////tab////tab////tab////need to return ok anyway so the driver dependency is updated//crlf////tab////tab////tab////tab////tab//return(\\quot\\Ok: Error setting up file set: \\quot\\\\plus\\s\\plus\\getToken(\\quot\\br\\quot\\)\\plus\\sResult)//crlf////tab////tab////tab////tab//endif//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab//return(\\quot\\Ok: \\quot\\\\plus\\sResult)//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf////crlf//[!------------------------------------------------------------------------//crlf//updateEnterpriseExports//crlf//--------------------------------------------------------------------------]//crlf//<conditional expression:(\\quot\\__Action__\\quot\\=\\quot\\updateEnterpriseExports\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__ActionDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//This action is called when a notification is sent from the customer list to //crlf////tab////tab//create sales export files.//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Days - Number of days to create.  If 0 or undefined\\comma\\ all days will be created//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Ok or Error//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\updateEnterpriseExports\\quot\\; commands:\\quot\\//crlf////tab////tab////tab////get the store ID//crlf////tab////tab////tab//sStoreID=trim(getToken(\\quot\\POSInterface_StoreID\\quot\\))//crlf////crlf////tab////tab////tab////abort if storeID is undefined//crlf////tab////tab////tab//if((len(sStoreID)=0) or (sStoreID=\\quot\\Undefined\\quot\\))//crlf////tab////tab////tab////tab//if(getToken(\\quot\\AspectHashID\\quot\\)=\\quot\\4idczse69\\quot\\)//crlf////tab////tab////tab////tab////tab//sStoreID=\\quot\\Es134hBQNJBUojYEL0ZGpNLO\\quot\\//crlf////tab////tab////tab////tab////tab//appendToLog(\\quot\\Set StoreID for testing\\quot\\)//crlf////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab//return(appendToLog(\\quot\\Error: POS Interface is not enabled for any stores\\quot\\))//crlf////tab////tab////tab////tab//endif//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////get the starting date//crlf////tab////tab////tab//dt=now()//crlf////tab////tab////tab//if(value(\\quot\\__Days__\\quot\\)>0)//crlf////tab////tab////tab////tab//dt=incrementTime(dt\\comma\\-value(\\quot\\__Days__\\quot\\))//crlf////tab////tab////tab//else//crlf////tab////tab////tab////tab//sStoreDir=getStoreDir(sStoreID)//crlf////tab////tab////tab////tab//arFiles=getMatchingFiles(sStoreDir\\plus\\\\quot\\ckd.*\\quot\\\\comma\\false\\comma\\false\\comma\\0\\comma\\\\quot\\\\quot\\)//crlf////tab////tab////tab////tab//c=getElementCount(arFiles\\comma\\\\quot\\~~pipe~~\\quot\\)//crlf////tab////tab////tab////tab//n=0//crlf////tab////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab////tab//s=getElement(arFiles\\comma\\n\\comma\\\\quot\\~~pipe~~\\quot\\)//crlf////tab////tab////tab////tab////tab//sDate=getElement(fileName(s)\\comma\\1\\comma\\\\quot\\.\\quot\\)//crlf////tab////tab////tab////tab////tab//dt1=parseTime(sDate\\comma\\\\quot\\MM-dd-yyyy\\quot\\)//crlf////tab////tab////tab////tab////tab//if(dateNumber(dt1)<dateNumber(dt))//crlf////tab////tab////tab////tab////tab////tab//dt=dt1//crlf////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab//n\\plus\\\\plus\\//crlf////tab////tab////tab////tab//endwhile//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab//sParams=\\quot\\StoreID=\\quot\\\\plus\\sStoreID\\plus\\\\quot\\\\amp\\DateFrom=\\quot\\\\plus\\formatDate(dt\\comma\\\\quot\\MM-dd-yyyy\\quot\\)\\plus\\\\quot\\\\amp\\Overwrite=true\\quot\\//crlf////tab////tab////tab//appendToLog(\\quot\\updateEnterpriseExports sParams=\\quot\\\\plus\\sParams)//crlf////tab////tab////tab//s=execAgentAction(\\quot\\updateDailySalesExportForStore\\quot\\\\comma\\sParams)//crlf////tab////tab////tab//return(s)//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf////crlf////crlf//^
ID=20580|X=300|Y=118|W=740|H=660|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=AgentStart|X=151|Y=41|W=150|H=20|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=AgentStart|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=left_bar|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=259800|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|AgentSuspended=false|AgentDebug=false|AgentReport=always|^
ID=346477|X=183|Y=482|W=119|H=46|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=AgentTerminate|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=ActionResult|AgentNodeActionReturnValue=|AgentNodeComment=Ok|AgentNodeTermType=0|^
ID=AgentTabs|X=151|Y=15|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=top_bar|AttachLeft=left_bar|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<table class='tabdialog'>//crlf////tab//<tr>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentStart');agentSetVisible(true)\\quot\\>Agent</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentDescription');agentSetVisible(false)\\quot\\>Description</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentStatus');agentSetVisible(false)\\quot\\>Status</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentScript');agentSetVisible(false)\\quot\\>Script</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'ScriptText');agentSetVisible(false)\\quot\\>Script (Text)</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentChart');agentSetVisible(false);agentFormatNodes(document.getElementById('AgentChart'));agentDrawConnectors(document.getElementById('AgentChart'))\\quot\\>Chart</span></td>//crlf////tab//</tr>//crlf//</table>//crlf//^
ID=AgentScript|X=151|Y=41|W=1000|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Aspect_Script|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<conditional expression:(\\quot\\__ExecAgentScript__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab//<!include type:script; name:\\quot\\agent_Daily Sales Export\\quot\\; commands:\\quot\\//crlf////crlf////tab////tab//::node\\comma\\VWaUGu88BMN0hDYWzZj57VpG_Daily Sales Export\\comma\\AgentStart\\comma\\AgentStart\\comma\\0\\comma\\//crlf////tab////tab////Created 06-10-2022 22:43:33//crlf////crlf////tab////tab////Force reporting when the agent is executed manually//crlf////tab////tab//bForceReport=((\\quot\\__ManualExecAgent__\\quot\\=\\quot\\true\\quot\\) or (true))//crlf////crlf////tab////tab////Record the starting time//crlf////tab////tab//tAgentStart=now()//crlf////crlf////tab////tab//::node\\comma\\VWaUGu88BMN0hDYWzZj57VpG_Daily Sales Export\\comma\\AgentAction\\comma\\259800\\comma\\0\\comma\\Update sales export files//crlf////crlf////tab////tab////Update sales export files//crlf////tab////tab//ActionResult=execAgentAction(\\quot\\updateDailySalesExportForStore\\quot\\\\comma\\\\quot\\StoreID=\\quot\\+getToken(\\quot\\POSInterface_StoreID\\quot\\))//crlf////crlf////tab////tab////Ok?//crlf////tab////tab//if(startsWith(ActionResult\\comma\\\\quot\\ok\\quot\\))//crlf////tab////tab////tab//::node\\comma\\VWaUGu88BMN0hDYWzZj57VpG_Daily Sales Export\\comma\\AgentTerminate\\comma\\346477\\comma\\0\\comma\\Ok//crlf////tab////tab////tab//agentReportStatus(\\quot\\VWaUGu88BMN0hDYWzZj57VpG_Daily Sales Export\\quot\\\\comma\\\\quot\\346477\\quot\\\\comma\\0\\comma\\getToken(\\quot\\AspectHashID\\quot\\)\\comma\\\\quot\\Ok\\quot\\\\comma\\ActionResult\\comma\\bForceReport\\comma\\now()-tAgentStart\\comma\\\\quot\\\\quot\\)//crlf////tab////tab////tab//scriptSetResult(ActionResult)//crlf////tab////tab//else//crlf////tab////tab////tab//::node\\comma\\VWaUGu88BMN0hDYWzZj57VpG_Daily Sales Export\\comma\\AgentTerminate\\comma\\456222\\comma\\1\\comma\\Error//crlf////tab////tab////tab//agentReportStatus(\\quot\\VWaUGu88BMN0hDYWzZj57VpG_Daily Sales Export\\quot\\\\comma\\\\quot\\456222\\quot\\\\comma\\1\\comma\\getToken(\\quot\\AspectHashID\\quot\\)\\comma\\\\quot\\Error\\quot\\\\comma\\ActionResult\\comma\\bForceReport\\comma\\now()-tAgentStart\\comma\\\\quot\\\\quot\\)//crlf////tab////tab////tab//scriptSetResult(ActionResult)//crlf////tab////tab//endif//crlf////tab//\\quot\\>//crlf//</conditional>^
ID=ScriptText|X=151|Y=41|W=1000|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<span style='font:8pt tahoma;color:black'>//amp//lt;state//amp//gt;06102022//amp//nbsp;224333//amp//lt;/state//amp//gt;<br>//amp//lt;<span class='includecontrol'>conditional</span>//amp//nbsp;expression:(\\quot\\__ExecAgentScript__\\quot\\=\\quot\\true\\quot\\)//amp//gt;<br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//lt;!<span class='includecontrol'>include</span>//amp//nbsp;type:script;//amp//nbsp;name:\\quot\\agent_Daily//amp//nbsp;Sales//amp//nbsp;Export\\quot\\;//amp//nbsp;commands:\\quot\\<br><br><span class='comment'>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//Created//amp//nbsp;06-10-2022//amp//nbsp;22:43:33</span><br><br><span class='comment'>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//Force//amp//nbsp;reporting//amp//nbsp;when//amp//nbsp;the//amp//nbsp;agent//amp//nbsp;is//amp//nbsp;executed//amp//nbsp;manually</span><br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;bForceReport=((\\quot\\__ManualExecAgent__\\quot\\=\\quot\\true\\quot\\)//amp//nbsp;or//amp//nbsp;(true))<br><br><span class='comment'>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//Record//amp//nbsp;the//amp//nbsp;starting//amp//nbsp;time</span><br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;tAgentStart=<span class='keyword'>now</span>()<br><br><br><span class='comment'>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//Update//amp//nbsp;sales//amp//nbsp;export//amp//nbsp;files</span><br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;ActionResult=<span class='keyword'>execAgentAction</span>(\\quot\\updateDailySalesExportForStore\\quot\\\\comma\\\\quot\\StoreID=\\quot\\+<span class='keyword'>getToken</span>(\\quot\\POSInterface_StoreID\\quot\\))<br><br><span class='comment'>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//Ok?</span><br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;<span class='flowcontrol'><span class='keyword'>if</span>(</span><span class='keyword'>startsWith</span>(ActionResult\\comma\\\\quot\\ok\\quot\\))<br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;<span class='keyword'>agentReportStatus</span>(\\quot\\VWaUGu88BMN0hDYWzZj57VpG_Daily//amp//nbsp;Sales//amp//nbsp;Export\\quot\\\\comma\\\\quot\\346477\\quot\\\\comma\\0\\comma\\<span class='keyword'>getToken</span>(\\quot\\AspectHashID\\quot\\)\\comma\\\\quot\\Ok\\quot\\\\comma\\ActionResult\\comma\\bForceReport\\comma\\<span class='keyword'>now</span>()-tAgentStart\\comma\\\\quot\\\\quot\\)<br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;<span class='keyword'>scriptSetResult</span>(ActionResult)<br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;<span class='flowcontrol'>else</span><br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;<span class='keyword'>agentReportStatus</span>(\\quot\\VWaUGu88BMN0hDYWzZj57VpG_Daily//amp//nbsp;Sales//amp//nbsp;Export\\quot\\\\comma\\\\quot\\456222\\quot\\\\comma\\1\\comma\\<span class='keyword'>getToken</span>(\\quot\\AspectHashID\\quot\\)\\comma\\\\quot\\Error\\quot\\\\comma\\ActionResult\\comma\\bForceReport\\comma\\<span class='keyword'>now</span>()-tAgentStart\\comma\\\\quot\\\\quot\\)<br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;<span class='keyword'>scriptSetResult</span>(ActionResult)<br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;<span class='flowcontrol'>endif</span><br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;\\quot\\//amp//gt;<br>//amp//lt;/<span class='includecontrol'>conditional</span>//amp//gt;<br><br></span>^
ID=AgentDescription|X=151|Y=41|W=1000|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=AgentStatus|X=151|Y=41|W=1000|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<h1>Conditional expression</h1>//crlf////crlf//<p>{POS_Generic_UpdateSalesExport_Conditional}</p>//crlf////crlf//<p>Value: {@(indirect(getToken(POS_Generic_UpdateSalesExport_Conditional)))}</p>//crlf////crlf//<table class='bordered'>//crlf////tab//<tr>//crlf////tab////tab//<th align='left'>Variable</th>//crlf////tab////tab//<th align='left'>Value</th>//crlf////tab//</tr>//crlf////tab//<tr>//crlf////tab////tab//<td>isServer()</td>//crlf////tab////tab//<td>{@isServer()}</td>//crlf////tab//</tr>//crlf////tab//<tr>//crlf////tab////tab//<td>getToken(\\quot\\POSInterface_StoreID\\quot\\)</td>//crlf////tab////tab//<td>{POSInterface_StoreID}</td>//crlf////tab//</tr>//crlf////tab//<tr>//crlf////tab////tab//<td>getToken(\\quot\\POSInterface_StoreID\\quot\\)</td>//crlf////tab////tab//<td>{POSInterface_StoreID}</td>//crlf////tab//</tr>//crlf////tab//<tr>//crlf////tab////tab//<td>dateNumber(now())-value(getToken(ProgramStartTime))</td>//crlf////tab////tab//<td>{@dateNumber(now())-value(getToken(ProgramStartTime))}</td>//crlf////tab//</tr>//crlf////tab//<tr>//crlf////tab////tab//<td>dateNumber(now())-value(indirect(getToken(CacheViews_TimeOfLastActivity)))</td>//crlf////tab////tab//<td>{@dateNumber(now())-value(indirect(getToken(CacheViews_TimeOfLastActivity)))}</td>//crlf////tab//</tr>//crlf////tab//<tr>//crlf////tab////tab//<td>getToken(CacheViews_TimeOfLastActivity)</td>//crlf////tab////tab//<td>{@breakHTMLLine(getToken(\\quot\\CacheViews_TimeOfLastActivity\\quot\\))}</td>//crlf////tab//</tr>//crlf////tab//<tr>//crlf////tab////tab//<td>tmLastNotificationReceived_19</td>//crlf////tab////tab//<td>{@formatDate(date(getToken(\\quot\\tmLastNotificationReceived_19\\quot\\))\\comma\\\\quot\\MM-dd-yyyy HH:mm:ss\\quot\\)}</td>//crlf////tab//</tr>//crlf////tab//<tr>//crlf////tab////tab//<td>tmLastNotificationProcessed_19</td>//crlf////tab////tab//<td>{@formatDate(date(getToken(\\quot\\tmLastNotificationProcessed_19\\quot\\))\\comma\\\\quot\\MM-dd-yyyy HH:mm:ss\\quot\\)}</td>//crlf////tab//</tr>//crlf////tab//<tr>//crlf////tab////tab//<td>tmLastNotificationProcessed_22</td>//crlf////tab////tab//<td>{@formatDate(date(getToken(\\quot\\tmLastNotificationProcessed_22\\quot\\))\\comma\\\\quot\\MM-dd-yyyy HH:mm:ss\\quot\\)}</td>//crlf////tab//</tr>//crlf////tab//<tr>//crlf////tab////tab//<td>tmLastProcessContainerItem</td>//crlf////tab////tab//<td>{@formatDate(date(getToken(\\quot\\tmLastProcessContainerItem\\quot\\))\\comma\\\\quot\\MM-dd-yyyy HH:mm:ss\\quot\\)}</td>//crlf////tab//</tr>//crlf////tab//<tr>//crlf////tab////tab//<td>tmLastPutDriverData</td>//crlf////tab////tab//<td>{@formatDate(date(getToken(\\quot\\tmLastPutDriverData\\quot\\))\\comma\\\\quot\\MM-dd-yyyy HH:mm:ss\\quot\\)}</td>//crlf////tab//</tr>//crlf////tab//<tr>//crlf////tab////tab//<td>tmLastPutDriverDataRemote</td>//crlf////tab////tab//<td>{@formatDate(date(getToken(\\quot\\tmLastPutDriverDataRemote\\quot\\))\\comma\\\\quot\\MM-dd-yyyy HH:mm:ss\\quot\\)}</td>//crlf////tab//</tr>//crlf////tab//<tr>//crlf////tab////tab//<td>LastPOSSynch</td>//crlf////tab////tab//<td>{@formatDate(date(getToken(\\quot\\LastPOSSynch\\quot\\))\\comma\\\\quot\\MM-dd-yyyy HH:mm:ss\\quot\\)}</td>//crlf////tab//</tr>//crlf//</table>//crlf////crlf//<h1>State expression</h1>//crlf////crlf//<p>gfs(getBackofficeFilespec(\\quot\\\\quot\\\\comma\\\\quot\\sales.*~~pipe~~salesadd.*~~pipe~~ckd.*~~pipe~~invoice_detail.*~~pipe~~lbr.*~~pipe~~physical_count.*~~pipe~~salesexport.*\\quot\\\\comma\\incrementTime(LastBusinessDay(\\quot\\00:00\\quot\\)\\comma\\-30)\\comma\\LastBusinessDay(\\quot\\00:00\\quot\\)\\comma\\char(0x3B)))+getToken(ProgramStartTime)</p>//crlf////crlf//<p>Value: {@gfs(getBackofficeFilespec(\\quot\\\\quot\\\\comma\\\\quot\\sales.*~~pipe~~salesadd.*~~pipe~~ckd.*~~pipe~~invoice_detail.*~~pipe~~lbr.*~~pipe~~physical_count.*~~pipe~~salesexport.*\\quot\\\\comma\\incrementTime(LastBusinessDay(\\quot\\00:00\\quot\\)\\comma\\-30)\\comma\\LastBusinessDay(\\quot\\00:00\\quot\\)\\comma\\char(0x3B)))+getToken(ProgramStartTime)}^
ID=AgentChart|X=151|Y=41|W=1000|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>06102022 224333</state>//crlf//<canvas id=\\quot\\agent_doc_canvas\\quot\\ width=\\quot\\100\\quot\\ height=\\quot\\100\\quot\\ style=\\quot\\position: absolute; top: 0px; left: 0px; width: 100px; height: 100px; border-style: none; z-index: 2;\\quot\\></canvas><div id=\\quot\\chartAgentStart\\quot\\ isagentdoc=\\quot\\true\\quot\\ content_type=\\quot\\AgentAction\\quot\\ agentchildyesnode=\\quot\\chart259800\\quot\\ style=\\quot\\position: absolute; top: 0px; left: 0px; width: 120px; height: auto; display: block;\\quot\\><canvas width=\\quot\\120\\quot\\ height=\\quot\\113\\quot\\ style=\\quot\\width: 120px; height: 113px; position: absolute; top: 0px; left: 0px;\\quot\\></canvas><div class=\\quot\\agentstart\\quot\\><b>Daily Sales Export</b><br><span style=\\quot\\font-weight:normal;color:green\\quot\\>Active</span><br><span style=\\quot\\font-weight:normal;color:black\\quot\\>Debugging Is Off</span><br>Report Status: always<br>Report To: <br>Name Params: </div></div><div id=\\quot\\chart346477\\quot\\ isagentdoc=\\quot\\true\\quot\\ content_type=\\quot\\AgentTerminate\\quot\\ style=\\quot\\position: absolute; top: 441px; left: 0px; width: 120px; height: auto; display: block;\\quot\\><canvas width=\\quot\\120\\quot\\ height=\\quot\\84\\quot\\ style=\\quot\\width: 120px; height: 84px; position: absolute; top: 0px; left: 0px;\\quot\\></canvas><div class=\\quot\\agentterminator\\quot\\>Terminate<br><hr>Ok<hr><span style=\\quot\\color:green\\quot\\>Success</span></div></div><div id=\\quot\\chart259800\\quot\\ isagentdoc=\\quot\\true\\quot\\ content_type=\\quot\\AgentAction\\quot\\ agentchildyesnode=\\quot\\chart419407\\quot\\ style=\\quot\\position: absolute; top: 191px; left: 0px; width: 150px; height: auto; display: block;\\quot\\><canvas width=\\quot\\120\\quot\\ height=\\quot\\95\\quot\\ style=\\quot\\width: 150px; height: 82px; position: absolute; top: 0px; left: 0px;\\quot\\></canvas><div class=\\quot\\agentaction\\quot\\>Update sales export files<hr><table tabsinitialized=\\quot\\true\\quot\\><tbody><tr><td><u>Action</u></td><td>updateDailySalesExportForStore<br></td></tr><tr><td><u>Return</u></td><td>ActionResult</td></tr></tbody></table></div></div><div id=\\quot\\chart419407\\quot\\ isagentdoc=\\quot\\true\\quot\\ content_type=\\quot\\AgentDecision\\quot\\ agentchildyesnode=\\quot\\chart346477\\quot\\ agentchildnonode=\\quot\\chart456222\\quot\\ style=\\quot\\position: absolute; top: 325px; left: 0px; width: 150px; height: auto; display: block;\\quot\\><canvas width=\\quot\\120\\quot\\ height=\\quot\\64\\quot\\ style=\\quot\\width: 150px; height: 64px; position: absolute; top: 0px; left: 0px;\\quot\\></canvas><div class=\\quot\\agentdecision\\quot\\>Ok?<hr><table tabsinitialized=\\quot\\true\\quot\\><tbody><tr><td><u>Sensor</u></td><td>Expression<br></td></tr></tbody></table></div></div><div id=\\quot\\chart456222\\quot\\ isagentdoc=\\quot\\true\\quot\\ content_type=\\quot\\AgentTerminate\\quot\\ style=\\quot\\position: absolute; top: 325px; left: 190px; width: 120px; height: auto; display: block;\\quot\\><canvas width=\\quot\\120\\quot\\ height=\\quot\\84\\quot\\ style=\\quot\\width: 120px; height: 84px; position: absolute; top: 0px; left: 0px;\\quot\\></canvas><div class=\\quot\\agentterminator\\quot\\>Terminate<br><hr>Error<hr><span style=\\quot\\color:red\\quot\\>Fail</span></div></div>^
ID=374129|X=300|Y=118|W=1187|H=659|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<!-- servertimer=false -->//crlf//<conditional expression:(\\quot\\{@formatDate(now()\\comma\\\\quot\\MMddyyyy\\quot\\)}\\quot\\=\\quot\\07212018\\quot\\) or (\\quot\\__getContent__\\quot\\=\\quot\\true\\quot\\)>//crlf////crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\salt\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\lowercase(getSalt(4)))>//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\NoDepend\\quot\\\\comma\\\\quot\\__NoDepend__\\quot\\\\comma\\\\quot\\\\quot\\)>//crlf////crlf////tab//[!------------------------------------------------------------------------//crlf////tab//Debugging//crlf////tab//--------------------------------------------------------------------------]//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\StoreID\\quot\\\\comma\\\\quot\\__StoreID__\\quot\\\\comma\\\\quot\\Es134hBQNJBUojYEL0ZGpNLO\\quot\\)>//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\date\\quot\\\\comma\\\\quot\\__Date__\\quot\\\\comma\\\\quot\\06-19-2018\\quot\\)>//crlf////crlf////tab//[!------------------------------------------------------------------------//crlf////tab//Filter - Record Type//crlf////tab//--------------------------------------------------------------------------]//crlf////tab//<!include type:ExternalDriverFilter;//crlf////tab////tab//InputType:\\quot\\select\\quot\\;//crlf////tab////tab//ID:\\quot\\__salt__RecordType\\quot\\;//crlf////tab////tab//Condition:\\quot\\not('$value$'='all')\\quot\\;//crlf////tab////tab//Expression:\\quot\\Record_Type='$value$'\\quot\\;//crlf////tab////tab//Tooltip:\\quot\\\\quot\\;//crlf////tab////tab//HtmlParams:\\quot\\onChange=refreshTable('__salt__'\\comma\\'refresh')\\quot\\;//crlf////tab////tab//CollectionID:\\quot\\POS_Generic_Check_Detail_Record_Types_Sorted\\quot\\;//crlf////tab////tab//Datalist:\\quot\\\\quot\\;//crlf////tab////tab//Selected:\\quot\\all\\quot\\;//crlf////tab////tab//DriverParams:\\quot\\\\quot\\;//crlf////tab////tab//Filter:\\quot\\\\quot\\;//crlf////tab////tab//SystemDriverName:\\quot\\\\quot\\;//crlf////tab//>//crlf////crlf////tab//[!------------------------------------------------------------------------//crlf////tab//Filter - Contains text//crlf////tab//--------------------------------------------------------------------------]//crlf////tab//<!include type:ExternalDriverFilter;//crlf////tab////tab//InputType:\\quot\\text\\quot\\;//crlf////tab////tab//ID:\\quot\\__salt__FilterContainsText\\quot\\;//crlf////tab////tab//Condition:\\quot\\not(len(trim('$value$'))=0)\\quot\\;//crlf////tab////tab//Expression:\\quot\\gte(pos('$value$'\\comma\\Date+CalcStoreID+Store_Name+Store_Code+Record_Type+Record_Type_Description+Category1+Category2+Category3+Field_Description_Short+Enterprise_Name+Name_Override+Tags+Date_Text+Final_Category1+Final_Category2+Final_Category3+Final_Name+Final_Store_Category1+Final_Store_Category2+Final_Store_Category3+Final_Store_Name+ID+Lookup_Enterprise_Category1_By_Name+Lookup_Enterprise_Category1_By_PosID+Lookup_Enterprise_Category2_By_Name+Lookup_Enterprise_Category2_By_PosID+Lookup_Enterprise_Category3_By_Name+Lookup_Enterprise_Category3_By_PosID+Lookup_Enterprise_Name_By_Name+Lookup_Enterprise_Name_By_PosID+Lookup_Store_Category1_By_Name+Lookup_Store_Category1_By_PosID+Lookup_Store_Category2_By_Name+Lookup_Store_Category2_By_PosID+Lookup_Store_Category3_By_Name+Lookup_Store_Category3_By_PosID+Lookup_Store_Name_By_Name+Lookup_Store_Name_By_PosID+Field_Description_Short1+POS_ID+Sales_Structure_Field_ID)\\comma\\0\\comma\\n)\\quot\\;//crlf////tab////tab//Tooltip:\\quot\\\\quot\\;//crlf////tab////tab//HtmlParams:\\quot\\placeholder='Contains text' onChange=refreshTable('__salt__'\\comma\\'refresh')\\quot\\;//crlf////tab////tab//CollectionID:\\quot\\\\quot\\;//crlf////tab////tab//Datalist:\\quot\\\\quot\\;//crlf////tab////tab//Selected:\\quot\\\\quot\\;//crlf////tab////tab//DriverParams:\\quot\\\\quot\\;//crlf////tab////tab//Filter:\\quot\\\\quot\\;//crlf////tab////tab//SystemDriverName:\\quot\\\\quot\\;//crlf////tab//>//crlf////crlf////tab//<!include type:driver;//tab////crlf////tab////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab////tab//title: \\quot\\\\quot\\;//crlf////tab////tab//ID: \\quot\\__salt__\\quot\\;//crlf////tab////tab//HashID: \\quot\\\\quot\\;//crlf////tab////tab//driver: \\quot\\POS_GENERIC_DAILY_SALES_EXPORT\\quot\\;//crlf////tab////tab//name: \\quot\\\\quot\\;//crlf////tab////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab////tab//dispose: \\quot\\false\\quot\\;//crlf////tab////tab//state: \\quot\\\\quot\\;//crlf////tab////tab//<conditional expression:defined(\\quot\\__filename__\\quot\\)>//crlf////tab////tab////tab//params: \\quot\\keyexpression=ID~~pipe~~CacheTtl=0~~pipe~~Filename=__Filename__~~pipe~~__NoDepend__~~pipe~~Metadata=POS_GENERIC_DAILY_SALES_EXPORT\\quot\\;//crlf////tab////tab//</conditional>//crlf////tab////tab//<conditional expression:not(defined(\\quot\\__filename__\\quot\\))>//crlf////tab////tab////tab//params: \\quot\\keyexpression=ID~~pipe~~CacheTtl=0~~pipe~~StoreID=__StoreID__~~pipe~~Date=__Date__~~pipe~~__NoDepend__~~pipe~~Metadata=POS_GENERIC_DAILY_SALES_EXPORT\\quot\\;//crlf////tab////tab//</conditional>//crlf////tab////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab////tab//display: \\quot\\\\quot\\;//crlf////tab////tab//fields: \\quot\\\\quot\\;//crlf////tab////tab//IncludeFields: \\quot\\\\quot\\;//crlf////tab////tab//ExcludeFields: \\quot\\\\quot\\;//crlf////tab////tab//sort: \\quot\\ID\\quot\\;//crlf////tab////tab//filter: \\quot\\true\\quot\\;//crlf////tab////tab//BaseFilter: \\quot\\\\quot\\;//crlf////tab////tab//class: \\quot\\basic1\\quot\\;//crlf////tab////tab//maxrecords: \\quot\\250\\quot\\;//crlf////tab////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab////tab//style: \\quot\\width:auto\\quot\\;//crlf////tab////tab//_style: \\quot\\float:left;width:100\\percent\\\\quot\\;//crlf////tab////tab//height:\\quot\\auto\\quot\\;//crlf////tab////tab//_maxheight:\\quot\\300px\\quot\\;//crlf////tab////tab//canSelect: \\quot\\false\\quot\\;//crlf////tab////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab////tab//canEdit: \\quot\\false\\quot\\;//crlf////tab////tab//canAdd: \\quot\\false\\quot\\;//crlf////tab////tab//canDelete: \\quot\\false\\quot\\;//crlf////tab////tab//inspectMenu: \\quot\\\\quot\\;//crlf////tab////tab//EmbedValues: \\quot\\\\quot\\;//crlf////tab////tab//EditDialogID: \\quot\\POS_GENERIC_DAILY_SALES_EXPORTDialog\\quot\\;//crlf////tab////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab////tab//ExternalFilters: \\quot\\__salt__RecordType\\comma\\__salt__FilterContainsText\\quot\\;//crlf////tab////tab//TableControls: \\quot\\true\\quot\\;//crlf////tab////tab//TableHeader: \\quot\\true\\quot\\;//crlf////tab////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab////tab//RecordCount: \\quot\\true\\quot\\;//crlf////tab////tab//Timestamp: \\quot\\true\\quot\\;//crlf////tab////tab//SelectDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//EditDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//Menu: \\quot\\\\quot\\;//crlf////tab////tab//faq: \\quot\\\\quot\\;//crlf////tab////tab//procedure: \\quot\\\\quot\\;//crlf////tab////tab//video: \\quot\\\\quot\\;//crlf////tab////tab//Messages: \\quot\\true\\quot\\;//crlf////tab////tab//ChartType: \\quot\\\\quot\\;//crlf////tab////tab//ChartWidth: \\quot\\640\\quot\\;//crlf////tab////tab//ChartHeight: \\quot\\480\\quot\\;//crlf////tab////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab////tab//ChartStyle: \\quot\\display:none\\quot\\;//crlf////tab////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab////tab//_Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab////tab//debug: \\quot\\true\\quot\\;//crlf////tab//>//crlf//</conditional>//crlf////crlf//<conditional expression:(not(defined(\\quot\\__getContent__\\quot\\)))>//crlf////tab//<div style=\\quot\\width:100px;height:100px\\quot\\></div>//crlf//</conditional>//crlf////crlf//__servertimerresults__//crlf//^
ID=844181|X=300|Y=118|W=1097|H=662|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<conditional expression:(\\quot\\{@formatDate(now()\\comma\\\\quot\\MMddyyyy\\quot\\)}\\quot\\=\\quot\\07212018\\quot\\) or (\\quot\\__getContent__\\quot\\=\\quot\\true\\quot\\)>//crlf////crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\salt\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\lowercase(getSalt(4)))>//crlf////crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\StoreID\\quot\\\\comma\\\\quot\\__StoreID__\\quot\\\\comma\\\\quot\\Es134hBQNJBUojYEL0ZGpNLO\\quot\\)>//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\date\\quot\\\\comma\\\\quot\\__Date__\\quot\\\\comma\\\\quot\\06-19-2018\\quot\\)>//crlf////crlf////tab//[!------------------------------------------------------------------------//crlf////tab//Filter - Record Type//crlf////tab//--------------------------------------------------------------------------]//crlf////tab//<!include type:ExternalDriverFilter;//crlf////tab////tab//InputType:\\quot\\select\\quot\\;//crlf////tab////tab//ID:\\quot\\__salt__RecordType\\quot\\;//crlf////tab////tab//Condition:\\quot\\not('$value$'='all')\\quot\\;//crlf////tab////tab//Expression:\\quot\\Record_Type='$value$'\\quot\\;//crlf////tab////tab//Tooltip:\\quot\\\\quot\\;//crlf////tab////tab//HtmlParams:\\quot\\\\quot\\;//crlf////tab////tab//CollectionID:\\quot\\POS_Generic_Check_Detail_Record_Types_Sorted\\quot\\;//crlf////tab////tab//Datalist:\\quot\\\\quot\\;//crlf////tab////tab//Selected:\\quot\\all\\quot\\;//crlf////tab////tab//DriverParams:\\quot\\\\quot\\;//crlf////tab////tab//Filter:\\quot\\\\quot\\;//crlf////tab////tab//SystemDriverName:\\quot\\\\quot\\;//crlf////tab//>//crlf////crlf////tab//[!------------------------------------------------------------------------//crlf////tab//Filter - Contains text//crlf////tab//--------------------------------------------------------------------------]//crlf////tab//<!include type:ExternalDriverFilter;//crlf////tab////tab//InputType:\\quot\\text\\quot\\;//crlf////tab////tab//ID:\\quot\\__salt__FilterContainsText\\quot\\;//crlf////tab////tab//Condition:\\quot\\not(len(trim('$value$'))=0)\\quot\\;//crlf////tab////tab//Expression:\\quot\\gte(pos('$value$'\\comma\\Date+CalcStoreID+Store_Name+Store_Code+Record_Type+Record_Type_Description+Category1+Category2+Category3+Field_Description_Short+Enterprise_Name+Name_Override+Tags+Date_Text+Final_Category1+Final_Category2+Final_Category3+Final_Name+Final_Store_Category1+Final_Store_Category2+Final_Store_Category3+Final_Store_Name+ID+Lookup_Enterprise_Category1_By_Name+Lookup_Enterprise_Category1_By_PosID+Lookup_Enterprise_Category2_By_Name+Lookup_Enterprise_Category2_By_PosID+Lookup_Enterprise_Category3_By_Name+Lookup_Enterprise_Category3_By_PosID+Lookup_Enterprise_Name_By_Name+Lookup_Enterprise_Name_By_PosID+Lookup_Store_Category1_By_Name+Lookup_Store_Category1_By_PosID+Lookup_Store_Category2_By_Name+Lookup_Store_Category2_By_PosID+Lookup_Store_Category3_By_Name+Lookup_Store_Category3_By_PosID+Lookup_Store_Name_By_Name+Lookup_Store_Name_By_PosID+Field_Description_Short1+POS_ID+Sales_Structure_Field_ID)\\comma\\0\\comma\\n)\\quot\\;//crlf////tab////tab//Tooltip:\\quot\\\\quot\\;//crlf////tab////tab//HtmlParams:\\quot\\placeholder='Contains text'\\quot\\;//crlf////tab////tab//CollectionID:\\quot\\\\quot\\;//crlf////tab////tab//Datalist:\\quot\\\\quot\\;//crlf////tab////tab//Selected:\\quot\\\\quot\\;//crlf////tab////tab//DriverParams:\\quot\\\\quot\\;//crlf////tab////tab//Filter:\\quot\\\\quot\\;//crlf////tab////tab//SystemDriverName:\\quot\\\\quot\\;//crlf////tab//>//crlf////crlf////tab//<!include type:driver;//crlf////tab////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab////tab//title: \\quot\\\\quot\\;//crlf////tab////tab//ID: \\quot\\\\quot\\;//crlf////tab////tab//HashID: \\quot\\\\quot\\;//crlf////tab////tab//driver: \\quot\\POS_GENERIC_DAILY_SALES_EXPORT_PREP\\quot\\;//crlf////tab////tab//name: \\quot\\\\quot\\;//crlf////tab////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab////tab//dispose: \\quot\\false\\quot\\;//crlf////tab////tab//state: \\quot\\\\quot\\;//crlf////tab////tab//params: \\quot\\keyexpression=ID~~pipe~~CacheTtl=0~~pipe~~StoreID=__StoreID__~~pipe~~Date=__Date__~~pipe~~Metadata=POS_GENERIC_DAILY_SALES_EXPORT_PREP\\quot\\;//crlf////tab////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab////tab//display: \\quot\\\\quot\\;//crlf////tab////tab//fields: \\quot\\\\quot\\;//crlf////tab////tab//IncludeFields: \\quot\\\\quot\\;//crlf////tab////tab//ExcludeFields: \\quot\\\\quot\\;//crlf////tab////tab//sort: \\quot\\ID\\quot\\;//crlf////tab////tab//filter: \\quot\\true\\quot\\;//crlf////tab////tab//BaseFilter: \\quot\\\\quot\\;//crlf////tab////tab//class: \\quot\\basic1\\quot\\;//crlf////tab////tab//maxrecords: \\quot\\250\\quot\\;//crlf////tab////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab////tab//style: \\quot\\width:auto\\quot\\;//crlf////tab////tab//_style: \\quot\\float:left;width:100\\percent\\\\quot\\;//crlf////tab////tab//height:\\quot\\auto\\quot\\;//crlf////tab////tab//_maxheight:\\quot\\300px\\quot\\;//crlf////tab////tab//canSelect: \\quot\\false\\quot\\;//crlf////tab////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab////tab//canEdit: \\quot\\false\\quot\\;//crlf////tab////tab//canAdd: \\quot\\false\\quot\\;//crlf////tab////tab//canDelete: \\quot\\false\\quot\\;//crlf////tab////tab//inspectMenu: \\quot\\\\quot\\;//crlf////tab////tab//EmbedValues: \\quot\\\\quot\\;//crlf////tab////tab//EditDialogID: \\quot\\POS_GENERIC_DAILY_SALES_EXPORT_PREPDialog\\quot\\;//crlf////tab////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab////tab//ExternalFilters: \\quot\\__salt__RecordType\\comma\\__salt__FilterContainsText\\quot\\;//crlf////tab////tab//TableControls: \\quot\\true\\quot\\;//crlf////tab////tab//TableHeader: \\quot\\true\\quot\\;//crlf////tab////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab////tab//RecordCount: \\quot\\true\\quot\\;//crlf////tab////tab//Timestamp: \\quot\\true\\quot\\;//crlf////tab////tab//SelectDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//EditDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//Menu: \\quot\\\\quot\\;//crlf////tab////tab//faq: \\quot\\\\quot\\;//crlf////tab////tab//procedure: \\quot\\\\quot\\;//crlf////tab////tab//video: \\quot\\\\quot\\;//crlf////tab////tab//Messages: \\quot\\true\\quot\\;//crlf////tab////tab//ChartType: \\quot\\\\quot\\;//crlf////tab////tab//ChartWidth: \\quot\\640\\quot\\;//crlf////tab////tab//ChartHeight: \\quot\\480\\quot\\;//crlf////tab////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab////tab//ChartStyle: \\quot\\display:none\\quot\\;//crlf////tab////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab////tab//_Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab////tab//debug: \\quot\\true\\quot\\;//crlf////tab//>//crlf//</conditional>//crlf////crlf//<conditional expression:(not(defined(\\quot\\__getContent__\\quot\\)))>//crlf////tab//<div style=\\quot\\width:100px;height:100px\\quot\\></div>//crlf//</conditional>//crlf////crlf//^
ID=259800|X=183|Y=232|W=149|H=79|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=AgentAction|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=419407|AgentChildNoNode=|AgentSensor=|AgentAction=updateDailySalesExportForStore|AgentNodeNotes=|AgentNodeParams=~~backslash~~equals~~backslash~~\\quot\\StoreID~~backslash~~equals~~backslash~~\\quot\\//plus//getToken(\\quot\\POSInterface_StoreID\\quot\\)|AgentNodeExpression=|AgentNodeActionReturnValue=ActionResult|AgentNodeComment=Update sales export files|AgentNodeTermType=|^
ID=419407|X=183|Y=366|W=150|H=20|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=AgentDecision|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=346477|AgentChildNoNode=456222|AgentSensor=1|AgentAction=0|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=startsWith(ActionResult//comma//~~backslash~~~~backslash~~quot~~backslash~~~~backslash~~ok~~backslash~~~~backslash~~quot~~backslash~~~~backslash~~)|AgentNodeActionReturnValue=|AgentNodeComment=Ok?|AgentNodeTermType=|^
ID=456222|X=373|Y=366|W=150|H=20|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=AgentTerminate|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=ActionResult|AgentNodeActionReturnValue=|AgentNodeComment=Error|AgentNodeTermType=1|^
ID=389443|X=300|Y=118|W=1124|H=654|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=Aspect_Script|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<!-- servertimer=false -->//crlf//[!------------------------------------------------------------------------//crlf//This item is a wrapper for the consolidated sales export//crlf//--------------------------------------------------------------------------]//crlf//<conditional expression:not(defined(\\quot\\__ReportID__\\quot\\))>//crlf////tab//Error: Missing ReportID//crlf//</conditional>//crlf////crlf//<conditional expression:(defined(\\quot\\__ReportID__\\quot\\))>//crlf////crlf////tab//[!------------------------------------------------------------------------//crlf////tab//Include stylesheet//crlf////tab//--------------------------------------------------------------------------]//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\style\\quot\\\\comma\\\\quot\\__style__\\quot\\\\comma\\\\quot\\default\\quot\\)>//crlf////tab//<!include type:widget; //crlf////tab////tab//server:{AspectHashID}; //crlf////tab////tab//secure:true; //crlf////tab////tab//documentID:\\quot\\VWaUGu88BMN0hDYWzZj57VpG\\quot\\; //crlf////tab////tab//widget:\\quot\\Daily Sales Export\\quot\\; //crlf////tab////tab//containerItemID:\\quot\\515261\\quot\\; //crlf////tab////tab//params:\\quot\\style=__style__\\quot\\;>//crlf////crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\salt\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\lowercase(getSalt(4)))>//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\display\\quot\\\\comma\\\\quot\\__display__\\quot\\\\comma\\\\quot\\\\quot\\)>//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\DateFrom\\quot\\\\comma\\\\quot\\__DateFrom__\\quot\\\\comma\\if(defined(\\quot\\__Date__\\quot\\)\\comma\\\\quot\\__Date__\\quot\\\\comma\\formatDate(LastBusinessDay(\\quot\\00:00\\quot\\)\\comma\\\\quot\\MM-dd-yyyy\\quot\\)))>//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\DateTo\\quot\\\\comma\\\\quot\\__DateTo__\\quot\\\\comma\\if(defined(\\quot\\__Date__\\quot\\)\\comma\\\\quot\\__Date__\\quot\\\\comma\\formatDate(LastBusinessDay(\\quot\\00:00\\quot\\)\\comma\\\\quot\\MM-dd-yyyy\\quot\\)))>//crlf////crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\TableControls\\quot\\\\comma\\\\quot\\__TableControls__\\quot\\\\comma\\true)>//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\TableHeader\\quot\\\\comma\\\\quot\\__TableHeader__\\quot\\\\comma\\true)>//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\TableBorder\\quot\\\\comma\\\\quot\\__TableBorder__\\quot\\\\comma\\true)>//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\SelectDisplay\\quot\\\\comma\\\\quot\\__SelectDisplay__\\quot\\\\comma\\true)>//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\EditDisplay\\quot\\\\comma\\\\quot\\__EditDisplay__\\quot\\\\comma\\true)>//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\TableVisible\\quot\\\\comma\\\\quot\\__TableVisible__\\quot\\\\comma\\true)>//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\ChartTitle\\quot\\\\comma\\\\quot\\__ChartTitle__\\quot\\\\comma\\\\quot\\\\quot\\)>//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\ChartWidth\\quot\\\\comma\\\\quot\\__ChartWidth__\\quot\\\\comma\\\\quot\\100\\percent\\\\quot\\)>//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\ChartHeight\\quot\\\\comma\\\\quot\\__ChartHeight__\\quot\\\\comma\\\\quot\\300px\\quot\\)>//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\ChartVisible\\quot\\\\comma\\\\quot\\__ChartVisible__\\quot\\\\comma\\false)>//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\ChartCanClose\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\false)>//crlf////crlf////tab//[!------------------------------------------------------------------------//crlf////tab//Debugging//crlf////tab//--------------------------------------------------------------------------]//crlf////tab//<conditional expression:(false) and ((getToken(\\quot\\AspectHashID\\quot\\)=\\quot\\4idczse69\\quot\\) or (getToken(\\quot\\AspectHashID\\quot\\)=\\quot\\_y564wnrnl\\quot\\))>//crlf////tab////tab//<hr>//crlf////tab////tab//<b>View for consolidated sales export report DateFrom=__DateFrom__ DateTo=__DateTo__ ReportID=__ReportID__</b>//crlf////tab////tab//<table>//crlf////tab////tab////tab//<tr><td>ReportID</td><td>__ReportID__</td></tr>//crlf////tab////tab////tab//<tr><td>DateFrom</td><td>__DateFrom__</td></tr>//crlf////tab////tab////tab//<tr><td>DateTo</td><td>__DateTo__</td></tr>//crlf////tab////tab////tab//<tr><td>Date</td><td>__Date__</td></tr>//crlf////tab////tab////tab//<tr><td>SelectedHashID</td><td>{@replaceSubstring(\\quot\\__SelectedHashID__\\quot\\\\comma\\\\quot\\\\comma\\\\quot\\\\comma\\\\quot\\\\comma\\ \\quot\\)}</td></tr>//crlf////tab////tab////tab//<tr><td>TableControls</td><td>__TableControls__</td></tr>//crlf////tab////tab////tab//<tr><td>TableVisible</td><td>__TableVisible__</td></tr>//crlf////tab////tab////tab//<tr><td>ChartHeight</td><td>__ChartHeight__</td></tr>//crlf////tab////tab////tab//<tr><td>ChartWidth</td><td>__ChartWidth__</td></tr>//crlf////tab////tab////tab//<tr><td>TableHeader</td><td>__TableHeader__</td></tr>//crlf////tab////tab////tab//<tr><td>TableBorder</td><td>__TableBorder__</td></tr>//crlf////tab////tab////tab//<tr><td>SelectDisplay</td><td>__SelectDisplay__</td></tr>//crlf////tab////tab////tab//<tr><td>EditDisplay</td><td>__EditDisplay__</td></tr>//crlf////tab////tab//</table>//crlf////crlf////tab////tab//<h2>PageArgs</h2>//crlf////tab////tab//{@htmlTable(\\quot\\__pageargs__\\quot\\\\comma\\\\quot\\~\\quot\\\\comma\\\\quot\\=\\quot\\)}//crlf////crlf////tab////tab//<hr>//crlf////tab//</conditional>//crlf////crlf////tab//<!include type:script; commands:\\quot\\//crlf////tab////tab//if(undefined(\\quot\\__SelectedHashID__\\quot\\))//crlf////tab////tab////tab//arSelectedHashID=getCollection(POS_Generic_Available_Consolidated_HashID\\comma\\true\\comma\\\\quot\\coll=AvailableConsolidatedData\\quot\\\\comma\\\\quot\\\\quot\\\\comma\\\\quot\\\\comma\\\\quot\\\\comma\\\\quot\\keys\\quot\\)//crlf////tab////tab////tab//return(htmlConstant(SelectedHashID\\comma\\\\quot\\__\\quot\\\\comma\\arSelectedHashID))//crlf////tab////tab//endif//crlf////tab//\\quot\\>//crlf////crlf////tab//[!------------------------------------------------------------------------//crlf////tab//Title//crlf////tab//--------------------------------------------------------------------------]//crlf////tab//<conditional expression:not(\\quot\\__Title__\\quot\\=\\quot\\false\\quot\\)>//crlf////tab////tab//<h1 style=\\quot\\padding:0px 0px 0px 0px;margin:0px 0px 10px 0px\\quot\\>//crlf////tab////tab////tab//<include type:expression; expression:if(defined(\\quot\\__Title__\\quot\\)\\comma\\\\quot\\__Title__\\quot\\\\comma\\lookup(Greenlight_Dimensional_Report_Description_by_ReportID\\comma\\\\quot\\__ReportID__\\quot\\))>//crlf////tab////tab////tab//__DateFrom__ - __DateTo__//crlf////tab////tab//</h1>//crlf////tab//</conditional>//crlf////crlf////tab//[!------------------------------------------------------------------------//crlf////tab//Chart//crlf////tab//--------------------------------------------------------------------------]//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\ChartHeight\\quot\\\\comma\\\\quot\\__ChartHeight__\\quot\\\\comma\\\\quot\\350px\\quot\\)>//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\ChartWidth\\quot\\\\comma\\\\quot\\__ChartWidth__\\quot\\\\comma\\\\quot\\100\\percent\\\\quot\\)>//crlf////tab//<div ID=\\quot\\__salt__Chart\\quot\\ style=\\quot\\width:{@replaceSubstring(\\quot\\__ChartWidth__\\quot\\\\comma\\\\quot\\pcnt\\quot\\\\comma\\\\quot\\\\percent\\\\quot\\)};height:__ChartHeight__;display:none\\quot\\></div>//crlf////crlf////tab//[!------------------------------------------------------------------------//crlf////tab//This is the Dimensional Report Viewer item in the Dimensional Views widget.//crlf////crlf////tab//This item is used by the Consolidated Daily Sales Report view in the //crlf////tab//Enterprise - Templates category.  That view is used as an embedded view to //crlf////tab//load dimensional reports by passing the ReportID as a parameter.//crlf////crlf////tab//The dimensional report specifies the dimensions and measurements and a filter.//crlf////crlf////tab//It is also possible to specify XDim\\comma\\ YDim and Measure when the view is used as //crlf////tab//an embedded view.  This allows a single Dimensional Report to be used for daily\\comma\\ //crlf////tab//weekly\\comma\\ monthly\\comma\\ quarterly and period reports.  The only thing that changes is //crlf////tab//the x dimension (e.g. Day_Index\\comma\\ Week_Index\\comma\\ Month_Index...)//crlf////crlf////tab//If is also possible to specify a period in the parameters of the embedded view //crlf////tab//instead of specifying the specific field (like Day_Index).  The period is used //crlf////tab//below to set the x dimensions as necessary.//crlf////crlf////tab//Any additional dimensions defined in the Dimensional Report remain in effect and //crlf////tab//are added to the dimensions passed here.  //crlf////tab//--------------------------------------------------------------------------]//crlf////tab//<!!include //crlf////tab////tab//type:view; //crlf////tab////tab//viewid:\\quot\\DpQJE8Yp\\quot\\; //crlf////tab////tab//Source:\\quot\\\\quot\\; //crlf////tab////tab//params:\\quot\\//crlf////tab////tab////tab//Salt=__Salt__//amp////crlf////tab////tab////tab//ReportID=__ReportID__//amp////crlf////tab////tab////tab//<conditional expression:(\\quot\\__Period__\\quot\\=\\quot\\Day\\quot\\)>//crlf////tab////tab////tab////tab//XDim=Day_Index@Date//amp////crlf////tab////tab////tab//</conditional>//crlf////tab////tab////tab//<conditional expression:(\\quot\\__Period__\\quot\\=\\quot\\Week\\quot\\)>//crlf////tab////tab////tab////tab//XDim=Week_Index@Week_Description//amp////crlf////tab////tab////tab//</conditional>//crlf////tab////tab////tab//<conditional expression:(\\quot\\__Period__\\quot\\=\\quot\\Month\\quot\\)>//crlf////tab////tab////tab////tab//XDim=Month_Index@Month_Description//amp////crlf////tab////tab////tab//</conditional>//crlf////tab////tab////tab//<conditional expression:(\\quot\\__Period__\\quot\\=\\quot\\Quarter\\quot\\)>//crlf////tab////tab////tab////tab//XDim=Quarter_Index@Quarter_Description//amp////crlf////tab////tab////tab//</conditional>//crlf////tab////tab////tab//<conditional expression:(\\quot\\__Period__\\quot\\=\\quot\\Period\\quot\\)>//crlf////tab////tab////tab//</conditional>//crlf////tab////tab////tab//<conditional expression:defined(\\quot\\__YDim__\\quot\\)>//crlf////tab////tab////tab////tab//YDim=__YDim__//amp////crlf////tab////tab////tab//</conditional>//crlf////tab////tab////tab//<conditional expression:defined(\\quot\\__XDim__\\quot\\)>//crlf////tab////tab////tab////tab//XDim=__XDim__//amp////crlf////tab////tab////tab//</conditional>//crlf////tab////tab////tab//<conditional expression:defined(\\quot\\__Measure__\\quot\\)>//crlf////tab////tab////tab////tab//Measure=__Measure__//amp////crlf////tab////tab////tab//</conditional>//crlf////tab////tab////tab//<conditional expression:defined(\\quot\\__MetadataOverride__\\quot\\)>//crlf////tab////tab////tab////tab//DimParams=DateFrom=__DateFrom__~~pipe~~DateTo=__DateTo__~~pipe~~SelectedHashID=__SelectedHashID__~~pipe~~MetadataOverride=__MetadataOverride__//amp////crlf////tab////tab////tab//</conditional>//crlf////tab////tab////tab//<conditional expression:not(defined(\\quot\\__MetadataOverride__\\quot\\))>//crlf////tab////tab////tab////tab//DimParams=DateFrom=__DateFrom__~~pipe~~DateTo=__DateTo__~~pipe~~SelectedHashID=__SelectedHashID__~~pipe~~MetadataOverride=__ReportID__//amp////crlf////tab////tab////tab//</conditional>//crlf////tab////tab////tab//Display=__Display__//amp////crlf////tab////tab////tab//ExternalParams=//amp////crlf////tab////tab////tab//ExternalFilters=//amp////crlf////tab////tab////tab//canEdit=false//amp////crlf////tab////tab////tab//TableControls=__TableControls__//amp////crlf////tab////tab////tab//TableHeader=__TableHeader__//amp////crlf////tab////tab////tab//TableBorder=__TableBorder__//amp////crlf////tab////tab////tab//SelectDisplay=__SelectDisplay__//amp////crlf////tab////tab////tab//EditDisplay=__EditDisplay__//amp////crlf////tab////tab////tab//TableVisible=__TableVisible__//amp////crlf////tab////tab////tab//ChartTitle=__ChartTitle__//amp////crlf////tab////tab////tab//ChartWidth=__ChartWidth__//amp////crlf////tab////tab////tab//ChartHeight=__ChartHeight__//amp////crlf////tab////tab////tab//ChartVisible=__ChartVisible__//amp////crlf////tab////tab////tab//ChartCanClose=__ChartCanClose__//amp////crlf////tab////tab//\\quot\\;//crlf////tab//>//crlf////crlf//</conditional>//crlf////crlf//<conditional expression:not(defined(\\quot\\__getContent__\\quot\\))>//crlf////tab//<div style=\\quot\\width:100px;height:100px\\quot\\></div>//crlf//</conditional>//crlf////crlf////crlf//__servertimerresults__//crlf//^
ID=356777|X=300|Y=118|W=1059|H=687|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=[!------------------------------------------------------------------------//crlf//This item is used for testing.  It opens the POS_Generic_Daily_Sales_Export_Consolidated//crlf//driver which consolidates data from [homedir]\data for a range of days.  This is the //crlf//driver used in the dimensional view.//crlf//--------------------------------------------------------------------------]//crlf//<!-- servertimer=false -->//crlf//<conditional expression:(\\quot\\{@formatDate(now()\\comma\\\\quot\\MMddyyyy\\quot\\)}\\quot\\=\\quot\\07142018\\quot\\) or (\\quot\\__getContent__\\quot\\=\\quot\\true\\quot\\)>//crlf////crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\salt\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\lowercase(getSalt(4)))>//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\DateFrom\\quot\\\\comma\\\\quot\\__DateFrom__\\quot\\\\comma\\\\quot\\07-02-2018\\quot\\)>//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\DateTo\\quot\\\\comma\\\\quot\\__DateTo__\\quot\\\\comma\\\\quot\\07-08-2018\\quot\\)>//crlf////tab//<include type:expression; expression:htmlConstant(\\quot\\display\\quot\\\\comma\\\\quot\\__display__\\quot\\\\comma\\\\quot\\\\quot\\)>//crlf////crlf////tab//<conditional expression:((defined(\\quot\\__DateFrom__\\quot\\)) and (defined(\\quot\\__DateTo__\\quot\\)))>//crlf////tab////tab//<!include type:driver;//crlf////tab////tab////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab////tab////tab//title: \\quot\\\\quot\\;//crlf////tab////tab////tab//ID: \\quot\\\\quot\\;//crlf////tab////tab////tab//HashID: \\quot\\\\quot\\;//crlf////tab////tab////tab//driver: \\quot\\POS_GENERIC_DAILY_SALES_EXPORT_CONSOLIDATED\\quot\\;//crlf////tab////tab////tab//name: \\quot\\\\quot\\;//crlf////tab////tab////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab////tab////tab//dispose: \\quot\\false\\quot\\;//crlf////tab////tab////tab//state: \\quot\\\\quot\\;//crlf////tab////tab////tab//params: \\quot\\keyexpression=ID~~pipe~~DateFrom=__DateFrom__~~pipe~~DateTo=__DateTo__~~pipe~~CacheTtl=0~~pipe~~Metadata=POS_GENERIC_DAILY_SALES_EXPORT_CONSOLIDATED\\quot\\;//crlf////tab////tab////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab////tab////tab//display: \\quot\\__display__\\quot\\;//crlf////tab////tab////tab//fields: \\quot\\\\quot\\;//crlf////tab////tab////tab//IncludeFields: \\quot\\\\quot\\;//crlf////tab////tab////tab//ExcludeFields: \\quot\\\\quot\\;//crlf////tab////tab////tab//sort: \\quot\\ID\\quot\\;//crlf////tab////tab////tab//filter: \\quot\\true\\quot\\;//crlf////tab////tab////tab//BaseFilter: \\quot\\\\quot\\;//crlf////tab////tab////tab//class: \\quot\\basic1\\quot\\;//crlf////tab////tab////tab//maxrecords: \\quot\\250\\quot\\;//crlf////tab////tab////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab////tab////tab//style: \\quot\\width:auto\\quot\\;//crlf////tab////tab////tab//_style: \\quot\\float:left;width:100\\percent\\\\quot\\;//crlf////tab////tab////tab//height:\\quot\\auto\\quot\\;//crlf////tab////tab////tab//_maxheight:\\quot\\300px\\quot\\;//crlf////tab////tab////tab//canSelect: \\quot\\false\\quot\\;//crlf////tab////tab////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab////tab////tab//canEdit: \\quot\\false\\quot\\;//crlf////tab////tab////tab//canAdd: \\quot\\false\\quot\\;//crlf////tab////tab////tab//canDelete: \\quot\\false\\quot\\;//crlf////tab////tab////tab//inspectMenu: \\quot\\\\quot\\;//crlf////tab////tab////tab//EmbedValues: \\quot\\\\quot\\;//crlf////tab////tab////tab//EditDialogID: \\quot\\POS_GENERIC_DAILY_SALES_EXPORT_CONSOLIDATEDDialog\\quot\\;//crlf////tab////tab////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab////tab////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab////tab////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab////tab////tab//ExternalFilters: \\quot\\\\quot\\;//crlf////tab////tab////tab//TableControls: \\quot\\true\\quot\\;//crlf////tab////tab////tab//TableHeader: \\quot\\true\\quot\\;//crlf////tab////tab////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab////tab////tab//RecordCount: \\quot\\true\\quot\\;//crlf////tab////tab////tab//Timestamp: \\quot\\true\\quot\\;//crlf////tab////tab////tab//SelectDisplay: \\quot\\true\\quot\\;//crlf////tab////tab////tab//EditDisplay: \\quot\\true\\quot\\;//crlf////tab////tab////tab//Menu: \\quot\\\\quot\\;//crlf////tab////tab////tab//faq: \\quot\\\\quot\\;//crlf////tab////tab////tab//procedure: \\quot\\\\quot\\;//crlf////tab////tab////tab//video: \\quot\\\\quot\\;//crlf////tab////tab////tab//Messages: \\quot\\true\\quot\\;//crlf////tab////tab////tab//ChartType: \\quot\\\\quot\\;//crlf////tab////tab////tab//ChartWidth: \\quot\\640\\quot\\;//crlf////tab////tab////tab//ChartHeight: \\quot\\480\\quot\\;//crlf////tab////tab////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab////tab////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab////tab////tab//ChartStyle: \\quot\\display:none\\quot\\;//crlf////tab////tab////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab////tab////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab////tab////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab////tab////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab////tab////tab//_Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab////tab////tab//debug: \\quot\\true\\quot\\;//crlf////tab////tab//>//crlf////tab//</conditional>//crlf//</conditional>//crlf////crlf//<conditional expression:(not(defined(\\quot\\__getContent__\\quot\\)))>//crlf////tab//<div style=\\quot\\width:100px;height:100px\\quot\\></div>//crlf//</conditional>//crlf////crlf//__servertimerresults__//crlf//^
ID=473162|X=300|Y=118|W=1221|H=652|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<conditional expression:(true) or (\\quot\\__getContent__\\quot\\=\\quot\\true\\quot\\)>//crlf////crlf////tab//<script ID=\\quot\\JS473162\\quot\\>//crlf////tab////tab//function addRecordTypeToEnterpriseNames(TableID\\comma\\s) {//crlf////tab////tab////tab//var eTable=document.getElementById(TableID);//crlf////crlf////tab////tab////tab////if complete...//crlf////tab////tab////tab//if(s) {//crlf////tab////tab////tab////tab//console.log(\\quot\\Complete: \\quot\\+s);//crlf////tab////tab////tab////tab//showDialog(\\quot\\msg=\\quot\\+s+\\quot\\<br><br>//amp//fnOk=Close\\quot\\);//crlf////tab////tab////tab////tab//refreshTable(TableID\\comma\\\\quot\\refresh\\quot\\);//crlf////tab////tab////tab////tab//return;//crlf////tab////tab////tab//};//crlf////crlf////tab////tab////tab////get record type//crlf////tab////tab////tab//var sRecordType=document.getElementById(TableID+\\quot\\RecordType\\quot\\).value;//crlf////crlf////tab////tab////tab////abort if no record type selected//crlf////tab////tab////tab//if(sRecordType.equalsIgnoreCase(\\quot\\all\\quot\\)) {//crlf////tab////tab////tab////tab//showDialog(\\quot\\msg=Error: No record type selected<br><br>//amp//fnOk=Close\\quot\\);//crlf////tab////tab////tab////tab//return;//crlf////tab////tab////tab//};//crlf////crlf////tab////tab////tab////get HashID from table//crlf////tab////tab////tab//var sHashID=eTable.getAttribute(\\quot\\AspectHashID\\quot\\);//crlf////crlf////tab////tab////tab//var sUrl=getServer()+\\quot\\/?Network=GreenLight//amp//ID=getWidget//amp//DocumentID=VWaUGu88BMN0hDYWzZj57VpG//amp//Widget=Daily Sales Export\\quot\\;//crlf////tab////tab////tab//sUrl+=\\quot\\//amp//ContainerItemID=action_list//amp//action=addRecordTypeToEnterpriseNames//amp//ActionExec=true\\quot\\;//crlf////tab////tab////tab//sUrl+=\\quot\\//amp//Source=\\quot\\+sHashID+\\quot\\//amp//RecordType=\\quot\\+sRecordType;//crlf////crlf////tab////tab////tab//showDialog(\\quot\\msg=Adding records//amp//icon=true\\quot\\);//crlf////crlf////tab////tab////tab//var sFunc=\\quot\\addRecordTypeToEnterpriseNames(\\\quot\\\\quot\\+TableID+\\quot\\\\\quot\\\\comma\\s)\\quot\\;//crlf////tab////tab////tab//console.log(\\quot\\sUrl=\\quot\\+sUrl);//crlf////tab////tab////tab//console.log(\\quot\\sFunc=\\quot\\+sFunc);//crlf////tab////tab////tab//asynchInclude(null\\comma\\sUrl\\comma\\sFunc\\comma\\sFunc);//crlf////crlf////tab////tab////tab//return;//crlf////tab////tab//};//crlf////tab//</script>//crlf////crlf////tab//<!-- Dialog used to edit a record -->//crlf////tab//<div ID=\\quot\\POS_GENERIC_ENTERPRISE_NAMESDialog__salt__\\quot\\ class=\\quot\\default_table_dialog\\quot\\ style=\\quot\\height:auto; width:100\\percent\\; max-width:500px; display:none;\\quot\\>//crlf////tab////tab//<div style=\\quot\\padding:5px;width:100\\percent\\\\quot\\>//crlf////tab////tab////tab//<!-- set this image to visible to include a close icon when the dialog header is disabled -->//crlf////tab////tab////tab//<div class=\\quot\\EditDialogCloseIcon\\quot\\ onclick=\\quot\\closeTableEditDialog(this)\\quot\\></div>//crlf////crlf////tab////tab////tab//<!-- The TableEditDialogTabsContainerExclusive and TableEditDialogSelectContainerExclusive//crlf////tab////tab////tab////tab//classes are used to make either the tabs or the select box visible\\comma\\ depending on the//crlf////tab////tab////tab////tab//size of the browser.  If only one or two tabs are to be included\\comma\\ the //crlf////tab////tab////tab////tab//TableEditDialogTabsContainer class can be used for the tabs and the select box can//crlf////tab////tab////tab////tab//be ommitted.//crlf////tab////tab////tab//-->//crlf////tab////tab////tab//<div class=\\quot\\TableEditDialogTabsContainerExclusive\\quot\\>//crlf////tab////tab////tab////tab//<table class='tabdialog'>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'__salt__Main')\\quot\\>Enterprise Names</span></td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//</table>//tab////crlf////tab////tab////tab//</div>//crlf////crlf////tab////tab////tab//<div class=\\quot\\TableEditDialogSelectContainerExclusive\\quot\\>//crlf////tab////tab////tab////tab//<select onChange=\\quot\\showTab(this);this.blur();\\quot\\ class=\\quot\\TableEditDialogSelect\\quot\\>//crlf////tab////tab////tab////tab////tab//<option value='__salt__main'>Enterprise Names</option>//crlf////tab////tab////tab////tab//</select>//crlf////tab////tab////tab//</div>//crlf////crlf////tab////tab////tab//<!-- Main -->//crlf////tab////tab////tab//<div ID=\\quot\\__salt__Main\\quot\\ class=\\quot\\DialogTabContent\\quot\\>//crlf////tab////tab////tab////tab//<table style=\\quot\\width:auto\\quot\\>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td>Record_Type</td>//crlf////tab////tab////tab////tab////tab////tab//<td><!include type:expression; expression:htmlSelect(\\quot\\POS_Generic_Check_Detail_Record_Types_Sorted\\quot\\\\comma\\\\quot\\Record_Type\\quot\\\\comma\\\\quot\\\\quot\\\\comma\\\\quot\\style=\\quot\\+quote(\\quot\\width:150px\\quot\\)+\\quot\\ onChange=\\quot\\+quote(\\quot\\submitDialogCell(this)\\quot\\))></td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td>Pos_ID</td>//crlf////tab////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ ONKEYDOWN=\\quot\\return keyDown(event\\comma\\this);\\quot\\ STYLE=\\quot\\width:150px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Pos_ID\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td>Name</td>//crlf////tab////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ ONKEYDOWN=\\quot\\return keyDown(event\\comma\\this);\\quot\\ STYLE=\\quot\\width:150px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Name\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td>Enterprise_Category1</td>//crlf////tab////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ ONKEYDOWN=\\quot\\return keyDown(event\\comma\\this);\\quot\\ STYLE=\\quot\\width:150px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Enterprise_Category1\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td>Enterprise_Category2</td>//crlf////tab////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ ONKEYDOWN=\\quot\\return keyDown(event\\comma\\this);\\quot\\ STYLE=\\quot\\width:150px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Enterprise_Category2\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td>Enterprise_Category3</td>//crlf////tab////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ ONKEYDOWN=\\quot\\return keyDown(event\\comma\\this);\\quot\\ STYLE=\\quot\\width:150px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Enterprise_Category3\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab////tab//<td>Enterprise_Name</td>//crlf////tab////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ ONKEYDOWN=\\quot\\return keyDown(event\\comma\\this);\\quot\\ STYLE=\\quot\\width:150px\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\Enterprise_Name\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//</table>//crlf////tab////tab////tab//</div>//crlf////crlf////tab////tab//</div>//crlf////tab//</div>//crlf////crlf////tab//[!------------------------------------------------------------------------//crlf////tab//Filter - Record Type//crlf////tab//--------------------------------------------------------------------------]//crlf////tab//<!include type:ExternalDriverFilter;//crlf////tab////tab//InputType:\\quot\\select\\quot\\;//crlf////tab////tab//ID:\\quot\\__salt__RecordType\\quot\\;//crlf////tab////tab//Condition:\\quot\\not('$value$'='all')\\quot\\;//crlf////tab////tab//Expression:\\quot\\Record_Type='$value$'\\quot\\;//crlf////tab////tab//Tooltip:\\quot\\\\quot\\;//crlf////tab////tab//HtmlParams:\\quot\\onChange=refreshTable('__salt__'\\comma\\'refresh')\\quot\\;//crlf////tab////tab//CollectionID:\\quot\\POS_Generic_Check_Detail_Record_Types_Sorted\\quot\\;//crlf////tab////tab//Datalist:\\quot\\\\quot\\;//crlf////tab////tab//Selected:\\quot\\all\\quot\\;//crlf////tab////tab//DriverParams:\\quot\\\\quot\\;//crlf////tab////tab//Filter:\\quot\\\\quot\\;//crlf////tab////tab//SystemDriverName:\\quot\\\\quot\\;//crlf////tab//>//crlf////crlf////tab//[!------------------------------------------------------------------------//crlf////tab//Filter - Contains text//crlf////tab//--------------------------------------------------------------------------]//crlf////tab//<!include type:ExternalDriverFilter;//crlf////tab////tab//InputType:\\quot\\text\\quot\\;//crlf////tab////tab//ID:\\quot\\__salt__FilterContainsText\\quot\\;//crlf////tab////tab//Condition:\\quot\\not(len(trim('$value$'))=0)\\quot\\;//crlf////tab////tab//Expression:\\quot\\gte(pos('$value$'\\comma\\Record_Type+Record_Type_Description+Pos_ID+Name+Enterprise_Category1+Enterprise_Category2+Enterprise_Category3+Enterprise_Name)\\comma\\0\\comma\\n)\\quot\\;//crlf////tab////tab//Tooltip:\\quot\\\\quot\\;//crlf////tab////tab//HtmlParams:\\quot\\placeholder='Contains text' onChange=refreshTable('__salt__'\\comma\\'refresh')\\quot\\;//crlf////tab////tab//CollectionID:\\quot\\\\quot\\;//crlf////tab////tab//Datalist:\\quot\\\\quot\\;//crlf////tab////tab//Selected:\\quot\\\\quot\\;//crlf////tab////tab//DriverParams:\\quot\\\\quot\\;//crlf////tab////tab//Filter:\\quot\\\\quot\\;//crlf////tab////tab//SystemDriverName:\\quot\\\\quot\\;//crlf////tab//>//crlf////crlf////tab//<!include type:driver;//crlf////tab////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab////tab//title: \\quot\\\\quot\\;//crlf////tab////tab//ID: \\quot\\__salt__\\quot\\;//crlf////tab////tab//HashID: \\quot\\\\quot\\;//crlf////tab////tab//driver: \\quot\\POS_GENERIC_ENTERPRISE_NAMES\\quot\\;//crlf////tab////tab//name: \\quot\\\\quot\\;//crlf////tab////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab////tab//dispose: \\quot\\false\\quot\\;//crlf////tab////tab//state: \\quot\\\\quot\\;//crlf////tab////tab//params: \\quot\\keyexpression=ID~~pipe~~CacheTtl=0~~pipe~~Metadata=POS_GENERIC_ENTERPRISE_NAMES\\quot\\;//crlf////tab////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab////tab//display: \\quot\\\\quot\\;//crlf////tab////tab//fields: \\quot\\\\quot\\;//crlf////tab////tab//IncludeFields: \\quot\\\\quot\\;//crlf////tab////tab//ExcludeFields: \\quot\\\\quot\\;//crlf////tab////tab//sort: \\quot\\ID\\quot\\;//crlf////tab////tab//filter: \\quot\\true\\quot\\;//crlf////tab////tab//class: \\quot\\basic1\\quot\\;//crlf////tab////tab//maxrecords: \\quot\\300\\quot\\;//crlf////tab////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab////tab//style: \\quot\\width:auto\\quot\\;//crlf////tab////tab//canSelect: \\quot\\true\\quot\\;//crlf////tab////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab////tab//canEdit: \\quot\\true\\quot\\;//crlf////tab////tab//canAdd: \\quot\\true\\quot\\;//crlf////tab////tab//canDelete: \\quot\\true\\quot\\;//crlf////tab////tab//InsertPosition: \\quot\\top\\quot\\;//crlf////tab////tab//RefreshOnDataSubmit: \\quot\\true\\quot\\;//crlf////tab////tab//inspectMenu: \\quot\\\\quot\\;//crlf////tab////tab//EmbedValues: \\quot\\\\quot\\;//crlf////tab////tab//EditDialogID: \\quot\\POS_GENERIC_ENTERPRISE_NAMESDialog__salt__\\quot\\;//crlf////tab////tab//_EditDialogID: \\quot\\DocumentID~~pipe~~Widget~~pipe~~Item~~pipe~~POS_GENERIC_ENTERPRISE_NAMES~~pipe~~__salt__\\quot\\;//crlf////tab////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab////tab//ExternalFilters: \\quot\\__salt__RecordType\\comma\\__salt__FilterContainsText\\quot\\;//crlf////tab////tab//TableControls: \\quot\\true\\quot\\;//crlf////tab////tab//TableHeader: \\quot\\true\\quot\\;//crlf////tab////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab////tab//RecordCount: \\quot\\true\\quot\\;//crlf////tab////tab//Timestamp: \\quot\\true\\quot\\;//crlf////tab////tab//SelectDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//EditDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//Menu: \\quot\\Add record type~~pipe~~addRecordTypeToEnterpriseNames\\quot\\;//crlf////tab////tab//faq: \\quot\\MM6DaSU5\\quot\\;//crlf////tab////tab//procedure: \\quot\\\\quot\\;//crlf////tab////tab//video: \\quot\\\\quot\\;//crlf////tab////tab//Messages: \\quot\\true\\quot\\;//crlf////tab////tab//ChartType: \\quot\\\\quot\\;//crlf////tab////tab//ChartWidth: \\quot\\640\\quot\\;//crlf////tab////tab//ChartHeight: \\quot\\480\\quot\\;//crlf////tab////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab////tab//ChartStyle: \\quot\\display:none\\quot\\;//crlf////tab////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab////tab//_Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab////tab//debug: \\quot\\false\\quot\\;//crlf////tab//>//crlf//</conditional>//crlf////crlf//<conditional expression:(not(\\quot\\__getContent__\\quot\\=\\quot\\true\\quot\\))>//crlf////tab//<div style=\\quot\\width:100px;height:100px\\quot\\></div>//crlf//</conditional>//crlf//^
ID=381410|X=300|Y=118|W=1215|H=599|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<conditional expression:defined(\\quot\\__Title__\\quot\\)>//crlf////tab//<h1>__Title__</h1>//crlf//</conditional>//crlf////crlf//<conditional expression:defined(\\quot\\__DateFrom__\\quot\\)>//crlf////tab//<h1>//crlf////tab////tab//__DateFrom__//crlf////tab////tab//<conditional expression:not(\\quot\\__DateFrom__\\quot\\=\\quot\\__DateTo__\\quot\\)>//crlf////tab////tab// - __DateTo__//crlf////tab////tab//</conditional>//crlf////tab//</h1>//crlf//</conditional>//crlf////crlf//^
ID=515261|X=300|Y=118|W=939|H=674|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=Aspect_Script|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=[!------------------------------------------------------------------------//crlf//Contains styles that can be used for a driver that includes the sales export driver//crlf//Class names are supplied for fields in the POS_Generic_Daily_Sales_Export.  //crlf//This item can be added as an embedded view to apply a style to the table.//crlf////crlf//For example\\comma\\ this is used to set consistent column widths//crlf////crlf//Params://crlf////tab//Style - A number indicating the style to be included//crlf//--------------------------------------------------------------------------]//crlf//<conditional expression:(\\quot\\__style__\\quot\\=\\quot\\default\\quot\\)>//crlf////tab//<style ID=\\quot\\CSS515261___style__\\quot\\>//crlf////tab////tab//th.enterprise_final_category1 {width:125px}//crlf////tab////tab//th.enterprise_final_category2 {width:125px}//crlf////tab////tab//th.enterprise_final_category3 {width:125px}//crlf////tab////tab//th.enterprise_final_name {width:125px}//crlf////tab////tab//th.enterprise_amount {width:80px}//crlf////tab////tab//th.enterprise_quantity {width:80px}//crlf////crlf////tab////tab//td.enterprise_final_category1 {}//crlf////tab////tab//td.enterprise_final_category2 {}//crlf////tab////tab//td.enterprise_final_category3 {}//crlf////tab////tab//td.enterprise_final_name {}//crlf////tab////tab//td.enterprise_amount {}//crlf////tab////tab//td.enterprise_quantity {}//crlf////tab//</style>//crlf//</conditional>//crlf//
</widget><widget name="Validate Sales Export At Office" group="Sales" category="Dependent Drivers" description="Checks for missing salesexport files on office computers" type="Container" Mobile="false" Processing=0 metadata="" IncludeInViewer="false" PublicName="Validate Sales Export At Office" modified="06-18-2024 19:24:04" modifiedby="Thnikpad3" TaskEnabled=true IsAgent=true ContainsAgentSensors=true ContainsAgentActions=true TaskInitialStartTime=03-08-2024 09:15:00:000 TaskIntervalType=0 TaskLastExecuted= TaskCatchUpMissedTasks=false TaskYearsBetweenExecution=0 TaskMonthsBetweenExecution=0 TaskDaysBetweenExecution=1 TaskHoursBetweenExecution=0 TaskMinutesBetweenExecution=0 TaskSecondsBetweenExecution=0 TaskExecuteSun=true TaskExecuteMon=true TaskExecuteTue=true TaskExecuteWed=true TaskExecuteThu=true TaskExecuteFri=true TaskExecuteSat=true TaskConditional_Expression="(setConstant(sz,fileSize(getToken(\\quote\\homedir\\quote\\)+\\quote\\data\synch_salesexport.txt\\quote\\))) + ((sz=0) or (sz\\gt\\1))" TaskConditional_Expression_Description="" TaskState_Function="" TaskState_Expression_Description="" TaskWidgetParams="" TaskWindowForExecution=0>
Preferences|toolboxx=132|toolboxy=312|aspectfuncx=100|aspectfuncy=100|aspectfuncw=750|aspectfunch=auto|aspectfuncLock=false|aspectfuncVisible=false|PublishFtpFilename=Validate Sales Export At Office.html|PublishToFtpSite=false|PublishFTPAccount=0|PublishFtpDirectory=/|PublishFtpPublicDirectory=/|PublishCopyFile=false|PublishCopyFilename=|PublishWysiwig=false|PublishIncludeAspectScript=false|PublishIncludeAspectStyleshet=false|PublishAsText=false|^
ID=top_bar|X=0|Y=0|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=false|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=left_bar|X=0|Y=15|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=false|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=top_bar|AttachLeft=|AlignLeft=top_bar|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=code|X=300|Y=100|W=1271|H=773|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<table class='tabdialog'>//crlf////tab//<tr>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'267796')\\quot\\>Javascript</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'AspectScript')\\quot\\>AspectScript</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'sensor_list')\\quot\\>Sensors</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'action_list')\\quot\\>Actions</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'debug_console')\\quot\\>Console</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'435978')\\quot\\>Notes</span></td>//crlf////tab//</tr>//crlf//</table>^
ID=267796|X=300|Y=126|W=1271|H=773|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Javascript|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=AspectScript|X=300|Y=126|W=1271|H=773|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Aspect_Script|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=sensor_list|X=300|Y=126|W=1271|H=773|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=Aspect_Script|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>//crlf////tab//{@if(\\quot\\__SensorExec__\\quot\\=\\quot\\true\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf////tab//{@if(getSystemValue(\\quot\\DevelopmentMode\\quot\\)\\comma\\fileModified(getToken(\\quot\\homedir\\quot\\)+\\quot\\cache\WidgetEdit_VWaUGu88BMN0hDYWzZj57VpG_Validate Sales Export At Office.html\\quot\\)\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//<conditional expression:(\\quot\\__sensor_list__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab//Validate Sales Export At Office\\comma\\getFilesetSynchHashID\\comma\\sensor_list\\comma\\Sensor=getFilesetSynchHashID\\comma\\private\\comma\\text//crlf//</conditional>//crlf////crlf//[!------------------------------------------------------------------------//crlf//getFilesetSynchHashID//crlf//--------------------------------------------------------------------------]//crlf//<conditional expression:(\\quot\\__sensor__\\quot\\=\\quot\\getFilesetSynchHashID\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__SensorDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Returns a comma-delimited array of HashIDs for which a fileset synch task exists//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__SensorParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//None//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__SensorReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Comma-delimited array of HashIDs or a string starting with 0: if no salesexport synch tasks are defined//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__SensorExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\getFilesetSynchHashID\\quot\\; commands:\\quot\\//crlf////crlf////tab////tab////tab////debugging//crlf////tab////tab////tab//if((false) and (boolean(getSystemValue(\\quot\\DevelopmentMode\\quot\\))))//crlf////tab////tab////tab////tab//s=\\quot\\1xakdumqc\\comma\\2foct0v2h\\comma\\4zd8tv4tx\\quot\\//crlf////tab////tab////tab////tab//fileWriteContent(getToken(\\quot\\homedir\\quot\\)+\\quot\\data\synch_salesexport.txt\\quot\\\\comma\\s)//crlf////tab////tab////tab////tab//return(s)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab//driverOpen(Aspect_File_Set_Synch\\comma\\d\\comma\\READ\\comma\\false)//crlf////tab////tab////tab//driverSetFilter(d\\comma\\\\quot\\(Task_Sub_Structure.TaskEnabled) and (File_Set_Name=\\quot\\+quote(\\quot\\SalesExport\\quot\\)+\\quot\\)\\quot\\\\comma\\true)//crlf////tab////tab////tab//c=driverGetRecordCount(d)//crlf////tab////tab////tab//n=0//crlf////tab////tab////tab//ar=\\quot\\\\quot\\//crlf////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab//sHashID=driverGetField(d\\comma\\\\quot\\HashID\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab//ar=addElement(ar\\comma\\sHashID)//crlf////tab////tab////tab////tab//n++//crlf////tab////tab////tab//endwhile//crlf////tab////tab////tab//driverClose(d)//crlf////crlf////tab////tab////tab//if(len(ar)=0)//crlf////tab////tab////tab////tab////write a file indicating there are no synch tasks.  This is used in the condition of the agent//crlf////tab////tab////tab////tab//fileWriteContent(getToken(\\quot\\homedir\\quot\\)+\\quot\\data\synch_salesexport.txt\\quot\\\\comma\\\\quot\\0\\quot\\)//crlf////tab////tab////tab////tab//return(\\quot\\0: No salesexport synch tasks defined\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab//fileWriteContent(getToken(\\quot\\homedir\\quot\\)+\\quot\\data\synch_salesexport.txt\\quot\\\\comma\\ar)//crlf////tab////tab////tab//return(ar)//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf//^
ID=action_list|X=300|Y=126|W=1271|H=773|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=Aspect_Script|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>//crlf////tab//{@if(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf////tab//{@if(getSystemValue(\\quot\\DevelopmentMode\\quot\\)\\comma\\fileModified(getToken(\\quot\\homedir\\quot\\)\\plus\\\\quot\\cache~~backslash~~WidgetEdit_VWaUGu88BMN0hDYWzZj57VpG_Validate Sales Export At Office.html\\quot\\)\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//<conditional expression:(\\quot\\__action_list__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab//Validate Sales Export At Office\\comma\\getSalesExportFilesFromStores\\comma\\action_list\\comma\\Action=getSalesExportFilesFromStores\\comma\\private//crlf////tab//Validate Sales Export At Office\\comma\\getMissingSalesExportFiles\\comma\\action_list\\comma\\Action=getMissingSalesExportFiles\\comma\\private//crlf////tab//Validate Sales Export At Office\\comma\\validateSalesExportFilesExist\\comma\\action_list\\comma\\Action=validateSalesExportFilesExist\\comma\\private//crlf//</conditional>//crlf////crlf//[!------------------------------------------------------------------------//crlf//getSalesExportFilesFromStores//crlf//--------------------------------------------------------------------------]//crlf//<conditional expression:(\\quot\\__Action__\\quot\\=\\quot\\getSalesExportFilesFromStores\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__ActionDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Copies salesexport files from one or more stores and dates to an office computer//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//ARHashID - Comma-delimited array of HashIDs//crlf////tab////tab//DateFrom - Starting date MM-dd-yyyy//crlf////tab////tab//DateTo - Ending date MM-dd-yyyy//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Ok or Error//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\getSalesExportFilesFromStores\\quot\\; commands:\\quot\\//crlf////tab////tab////tab////abort if missing CustomerID//crlf////tab////tab////tab//if(not(defined(\\quot\\__ARHashID__\\quot\\)))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing CustomerID\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if missing DateFrom//crlf////tab////tab////tab//if(not(defined(\\quot\\__DateFrom__\\quot\\)))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing DateFrom\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if missing DateTo//crlf////tab////tab////tab//if(not(defined(\\quot\\__DateTo__\\quot\\)))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing DateTo\\quot\\)//crlf////tab////tab////tab//endif//crlf////tab////tab////crlf////tab////tab////tab//appendToLog(\\quot\\ARHashID=__ARHashID__ DateFrom=__DateFrom__ DateTo=__DateTo__\\quot\\)//crlf////crlf////tab////tab////tab//cExists=0//crlf////tab////tab////tab//cTransfer=0//crlf////tab////tab////tab//cTtlError=0//crlf////tab////tab////tab//cNotConnected=0//crlf////crlf////tab////tab////tab//cHashID=getElementCount(\\quot\\__ARHashID__\\quot\\)//crlf////tab////tab////tab//dtFrom=parseTime(\\quot\\__DateFrom__\\quot\\\\comma\\\\quot\\MM-dd-yyyy\\quot\\)//crlf////tab////tab////tab//dtTo=parseTime(\\quot\\__DateTo__\\quot\\\\comma\\\\quot\\MM-dd-yyyy\\quot\\)//crlf////tab////tab////tab//nHashID=0//crlf////tab////tab////tab//while(nHashID<cHashID)//crlf////tab////tab////tab////tab//sHashID=getElement(\\quot\\__ARHashID__\\quot\\\\comma\\nHashID)//crlf////crlf////tab////tab////tab////tab////check for connection//crlf////tab////tab////tab////tab//sConnected=fileGetContent(\\quot\\http://192.169.215.186:4446/?Network=Aspect_Support\\amp\\ID=isDirectSocketConnected2\\amp\\CustomerID=\\quot\\\\plus\\sHashID)//crlf////tab////tab////tab////tab//appendToLog(\\quot\\sConnected=\\quot\\\\plus\\sConnected)//crlf////tab////tab////tab////tab//bConnected=true//crlf////tab////tab////tab////tab//if(pos(\\quot\\Opened\\quot\\\\comma\\sConnected)<0)//crlf////tab////tab////tab////tab////tab//bConnected=false//crlf////tab////tab////tab////tab////tab//cNotConnected\\plus\\\\plus\\//crlf////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab//appendToLog(\\quot\\Connected: \\quot\\\\plus\\bConnected)//crlf////crlf////tab////tab////tab////tab//dt=dtFrom//crlf////tab////tab////tab////tab//cError=0//crlf////crlf////tab////tab////tab////tab////abort after 10 errors for a given HashID.  It could be that there is just no data available//crlf////tab////tab////tab////tab//while((bConnected) and (dt<=dtTo) and (cError<10))//crlf////tab////tab////tab////tab////tab//sLocalFilename=getToken(\\quot\\homedir\\quot\\)\\plus\\\\quot\\data~~backslash~~\\quot\\\\plus\\sHashID\\plus\\\\quot\\~~backslash~~salesexport.\\quot\\\\plus\\formatDate(dt\\comma\\\\quot\\MM-dd-yyyy\\quot\\)\\plus\\\\quot\\.bin\\quot\\//crlf////tab////tab////tab////tab////tab//if(fileSize(sLocalFilename)=0)//crlf////tab////tab////tab////tab////tab////tab//sRemoteFilename=\\quot\\c:~~backslash~~aspect7~~backslash~~store1~~backslash~~salesexport.\\quot\\\\plus\\formatDate(dt\\comma\\\\quot\\MM-dd-yyyy\\quot\\)\\plus\\\\quot\\.bin\\quot\\//crlf////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\Getting: \\quot\\\\plus\\fileName(sRemoteFilename)\\plus\\\\quot\\.bin\\quot\\\\plus\\\\quot\\ From: \\quot\\\\plus\\sHashID)//crlf////crlf////tab////tab////tab////tab////tab////tab////s=gw(\\quot\\K4Ui6j3Y1rwlvukPkOqn25Em\\quot\\\\comma\\\\quot\\Notification Query - Binary\\quot\\\\comma\\\\quot\\\\quot\\\\comma\\\\quot\\filename=\\quot\\\\plus\\sRemoteFilename\\comma\\sHashID)//crlf////tab////tab////tab////tab////tab////tab////appendToLog(\\quot\\Writing: \\quot\\\\plus\\sLocalFilename)//crlf////tab////tab////tab////tab////tab////tab////fileWriteContent(sLocalFilename\\comma\\s)//crlf////crlf////tab////tab////tab////tab////tab////tab//synchFiles(sHashID\\comma\\sLocalFilename\\comma\\sRemoteFilename\\comma\\false\\comma\\0\\comma\\\\quot\\\\quot\\\\comma\\true\\comma\\false\\comma\\0)//crlf////tab////crlf////tab////tab////tab////tab////tab////tab//nLoop=0//crlf////tab////tab////tab////tab////tab////tab//while((nLoop<10) and (not(fileExists(sLocalFilename))))//crlf////tab////tab////tab////tab////tab////tab////tab//scriptSleep(1000)//crlf////tab////tab////tab////tab////tab////tab////tab//nLoop\\plus\\\\plus\\//crlf////tab////tab////tab////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab////tab////tab////tab//if(fileSize(sLocalFilename)>0)//crlf////tab////tab////tab////tab////tab////tab////tab//cTransfer\\plus\\\\plus\\//crlf////tab////tab////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////tab////tab//cError\\plus\\\\plus\\//crlf////tab////tab////tab////tab////tab////tab////tab//cTtlError\\plus\\\\plus\\//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\Skipped: \\quot\\\\plus\\sLocalFilename)//crlf////tab////tab////tab////tab////tab////tab//cExists\\plus\\\\plus\\//crlf////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab//dt=incrementTime(dt\\comma\\1)//crlf////tab////tab////tab////tab//endwhile//crlf////tab////tab////tab////tab//nHashID\\plus\\\\plus\\//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab//return(\\quot\\Ok.  Transferred: \\quot\\\\plus\\cTransfer\\plus\\\\quot\\ Skipped: \\quot\\\\plus\\cExists\\plus\\\\quot\\ Error: \\quot\\\\plus\\cTtlError\\plus\\\\quot\\ NotConnected: \\quot\\\\plus\\cNotConnected)//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf////crlf////crlf//[!------------------------------------------------------------------------//crlf//getMissingSalesExportFiles//crlf//--------------------------------------------------------------------------]//crlf//<conditional expression:(\\quot\\__Action__\\quot\\=\\quot\\getMissingSalesExportFiles\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__ActionDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Checks for missing sales export files.  Makes a request to the remote computer for any //crlf////tab////tab//files that are missing.//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\getMissingSalesExportFiles\\quot\\; commands:\\quot\\//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf////crlf////crlf//[!------------------------------------------------------------------------//crlf//validateSalesExportFilesExist//crlf//--------------------------------------------------------------------------]//crlf//<conditional expression:(\\quot\\__Action__\\quot\\=\\quot\\validateSalesExportFilesExist\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__ActionDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Checks for existence of sales export files //crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Days - Optional.  Number of days to check.//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Ok or Error//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\validateSalesExportFilesExist\\quot\\; commands:\\quot\\//crlf////crlf////tab////tab////tab////get array of HashIDs for which a salesexport synch task exists//crlf////tab////tab////tab//ar=fileGetContent(getToken(\\quot\\homedir\\quot\\)\\plus\\\\quot\\data~~backslash~~synch_salesexport.txt\\quot\\)//crlf////tab////tab////tab////crlf////tab////tab////tab//if(getSystemValue(\\quot\\DevelopmentMode\\quot\\))//crlf////tab////tab////tab////tab//ar=\\quot\\zyg52drfp\\quot\\//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if no salesexport synch tasks exist//crlf////tab////tab////tab//if(getElementCount(ar)=0)//crlf////tab////tab////tab////tab//return(\\quot\\Error: No salesexport synch tasks exist\\quot\\)//crlf////tab////tab////tab//endif//crlf////tab////crlf////tab////tab////tab////get number of days to check//crlf////tab////tab////tab//iDays=if(value(\\quot\\__Days__\\quot\\)=0\\comma\\7\\comma\\value(\\quot\\__Days__\\quot\\))//crlf////crlf////tab////tab////tab////create a hashtable to record the results//crlf////tab////tab////tab//hashCreate(hCount)//crlf////crlf////tab////tab////tab//dt=LastBusinessDay(\\quot\\06:00\\quot\\)//crlf////tab////tab////tab//nDay=0//crlf////tab////tab////tab//cError=0//crlf////tab////tab////tab//while(nDay<iDays)//crlf////tab////tab////tab////tab//cHashID=getElementCount(ar)//crlf////tab////tab////tab////tab//nHashID=0//crlf////tab////tab////tab////tab//while(nHashID<cHashID)//crlf////tab////tab////tab////tab////tab//sHashID=getElement(ar\\comma\\nHashID)//crlf////tab////tab////tab////tab////tab//sResult=sResult\\plus\\getToken(\\quot\\br\\quot\\)\\plus\\sHashID\\plus\\\\quot\\~~pipe~~\\quot\\//crlf////tab////tab////tab////tab////tab//sFilename=getToken(\\quot\\homedir\\quot\\)\\plus\\\\quot\\data~~backslash~~\\quot\\\\plus\\sHashID\\plus\\\\quot\\~~backslash~~salesexport.\\quot\\\\plus\\formatDate(dt\\comma\\\\quot\\MM-dd-yyyy\\quot\\)\\plus\\\\quot\\.bin\\quot\\//crlf////tab////tab////tab////tab////tab//bOk=(fileSize(sFilename)>0)//crlf////crlf////tab////tab////tab////tab////tab////if Tudors\\comma\\ also check for cash_drawer file //crlf////tab////tab////tab////tab////tab//if((bOk) and (getToken(\\quot\\AspectHashID\\quot\\)=\\quot\\7h45pkiq7\\quot\\))//crlf////tab////tab////tab////tab////tab////tab//if(pos(sHashID\\comma\\getCollection(Tudors_Ginos_HashIDs\\comma\\true\\comma\\\\quot\\\\quot\\\\comma\\\\quot\\\\quot\\\\comma\\char(0x2C)\\comma\\\\quot\\key\\quot\\))<0)//crlf////tab////tab////tab////tab////tab////tab////tab//sFilename=getToken(\\quot\\homedir\\quot\\)\\plus\\\\quot\\data~~backslash~~\\quot\\\\plus\\sHashID\\plus\\\\quot\\~~backslash~~cash_drawer.\\quot\\\\plus\\formatDate(dt\\comma\\\\quot\\MM-dd-yyyy\\quot\\)\\plus\\\\quot\\.bin\\quot\\//crlf////tab////tab////tab////tab////tab////tab////tab//bOk=(fileSize(sFilename)>0)//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab//iCountError=if(hashContainsKey(hCount\\comma\\sHashID)\\comma\\hashGet(hCount\\comma\\sHashID)\\comma\\0)//crlf////tab////tab////tab////tab////tab//if(not(bOk))//crlf////tab////tab////tab////tab////tab////tab//iCountError\\plus\\\\plus\\//crlf////tab////tab////tab////tab////tab////tab//cError\\plus\\\\plus\\//crlf////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab//hashPut(hCount\\comma\\sHashID\\comma\\iCountError)//crlf////tab////tab////tab////tab////tab//nHashID\\plus\\\\plus\\//crlf////tab////tab////tab////tab//endwhile//crlf////tab////tab////tab////tab//dt=incrementTime(dt\\comma\\-1)//crlf////tab////tab////tab////tab//nDay\\plus\\\\plus\\//crlf////tab////tab////tab//endwhile//crlf////tab////tab////tab////crlf////tab////tab////tab//sResult=substring(sResult\\comma\\1)\\plus\\getToken(\\quot\\br\\quot\\)//crlf////crlf////tab////tab////tab////return Ok if no errors//crlf////tab////tab////tab//if(cError=0)//crlf////tab////tab////tab////tab//return(\\quot\\Ok: Checked \\quot\\\\plus\\iDays\\plus\\\\quot\\ days\\quot\\)//crlf////tab////tab////tab//endif//crlf////tab////tab////tab////crlf////tab////tab////tab////concatenate errors//crlf////tab////tab////tab//sResult=\\quot\\Error: Missing\\quot\\//crlf////tab////tab////tab//cHashID=getElementCount(ar)//crlf////tab////tab////tab//nHashID=0//crlf////tab////tab////tab//while(nHashID<cHashID)//crlf////tab////tab////tab////tab//sHashID=getElement(ar\\comma\\nHashID)//crlf////tab////tab////tab////tab//iCount=if(hashContainsKey(hCount\\comma\\sHashID)\\comma\\hashGet(hCount\\comma\\sHashID)\\comma\\0)//crlf////tab////tab////tab////tab//if(iCount>0)//crlf////tab////tab////tab////tab////tab//sResult=sResult\\plus\\\\quot\\: \\quot\\\\plus\\sHashID\\plus\\\\quot\\:\\quot\\\\plus\\iCount//crlf////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab//nHashID\\plus\\\\plus\\//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab//return(sResult)//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf//^
ID=debug_console|X=300|Y=126|W=1271|H=773|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=debug_console|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=435978|X=300|Y=126|W=1271|H=773|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=AgentStart|X=183|Y=41|W=150|H=20|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=AgentStart|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=left_bar|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=478477|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|AgentSuspended=false|AgentDebug=false|AgentReport=always|AgentReportTo=getToken(~~backslash~~~~backslash~~quot~~backslash~~~~backslash~~AspectServerHashID~~backslash~~~~backslash~~quot~~backslash~~~~backslash~~)|^
ID=38038|X=183|Y=624|W=119|H=47|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=AgentTerminate|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=ValidateResult|AgentNodeActionReturnValue=|AgentNodeComment=Ok|AgentNodeTermType=0|^
ID=AgentTabs|X=183|Y=15|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=top_bar|AttachLeft=left_bar|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<table class='tabdialog'>//crlf////tab//<tr>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentStart');agentSetVisible(true)\\quot\\>Agent</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentDescription');agentSetVisible(false)\\quot\\>Description</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentStatus');agentSetVisible(false)\\quot\\>Status</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentScript');agentSetVisible(false)\\quot\\>Script</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'ScriptText');agentSetVisible(false)\\quot\\>Script (Text)</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentChart');agentSetVisible(false);agentFormatNodes(document.getElementById('AgentChart'));agentDrawConnectors(document.getElementById('AgentChart'))\\quot\\>Chart</span></td>//crlf////tab//</tr>//crlf//</table>//crlf//^
ID=AgentScript|X=183|Y=41|W=1000|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=Aspect_Script|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<conditional expression:(\\quot\\__ExecAgentScript__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab//<!include type:script; name:\\quot\\agent_Validate Sales Export At Office\\quot\\; commands:\\quot\\//crlf////crlf////tab////tab//::node\\comma\\VWaUGu88BMN0hDYWzZj57VpG_Validate Sales Export At Office\\comma\\AgentStart\\comma\\AgentStart\\comma\\0\\comma\\//crlf////tab////tab////Created 03-08-2024 23:23:47//crlf////crlf////tab////tab////Force reporting when the agent is executed manually//crlf////tab////tab//bForceReport=((\\quot\\__ManualExecAgent__\\quot\\=\\quot\\true\\quot\\) or (true))//crlf////crlf////tab////tab////Record the starting time//crlf////tab////tab//tAgentStart=now()//crlf////crlf////crlf////tab////tab////Are there any salesexport synch tasks defined//crlf////tab////tab//Result=getSensorValue(\\quot\\getFilesetSynchHashID\\quot\\)//crlf////tab////tab//if(not(startsWith(Result\\comma\\\\quot\\0:\\quot\\)))//crlf////tab////tab////tab//::node\\comma\\VWaUGu88BMN0hDYWzZj57VpG_Validate Sales Export At Office\\comma\\AgentAction\\comma\\28715\\comma\\0\\comma\\Check for missing salesexport files//crlf////crlf////tab////tab////tab////Check for missing salesexport files//crlf////tab////tab////tab//ValidateResult=execAgentAction(\\quot\\validateSalesExportFilesExist\\quot\\)//crlf////crlf////tab////tab////tab////Ok?//crlf////tab////tab////tab//if(startsWith(ValidateResult\\comma\\\\quot\\Ok\\quot\\))//crlf////tab////tab////tab////tab//::node\\comma\\VWaUGu88BMN0hDYWzZj57VpG_Validate Sales Export At Office\\comma\\AgentTerminate\\comma\\38038\\comma\\0\\comma\\Ok//crlf////tab////tab////tab////tab//agentReportStatus(\\quot\\VWaUGu88BMN0hDYWzZj57VpG_Validate Sales Export At Office\\quot\\\\comma\\\\quot\\38038\\quot\\\\comma\\0\\comma\\getToken(\\quot\\AspectServerHashID\\quot\\)\\comma\\\\quot\\Ok\\quot\\\\comma\\ValidateResult\\comma\\bForceReport\\comma\\now()-tAgentStart\\comma\\\\quot\\\\quot\\)//crlf////tab////tab////tab////tab//scriptSetResult(ValidateResult)//crlf////tab////tab////tab//else//crlf////tab////tab////tab////tab//::node\\comma\\VWaUGu88BMN0hDYWzZj57VpG_Validate Sales Export At Office\\comma\\AgentTerminate\\comma\\406248\\comma\\1\\comma\\Error//crlf////tab////tab////tab////tab//agentReportStatus(\\quot\\VWaUGu88BMN0hDYWzZj57VpG_Validate Sales Export At Office\\quot\\\\comma\\\\quot\\406248\\quot\\\\comma\\1\\comma\\getToken(\\quot\\AspectServerHashID\\quot\\)\\comma\\\\quot\\Error\\quot\\\\comma\\ValidateResult\\comma\\bForceReport\\comma\\now()-tAgentStart\\comma\\\\quot\\\\quot\\)//crlf////tab////tab////tab////tab//scriptSetResult(ValidateResult)//crlf////tab////tab////tab//endif//crlf////tab////tab//else//crlf////tab////tab////tab//::node\\comma\\VWaUGu88BMN0hDYWzZj57VpG_Validate Sales Export At Office\\comma\\AgentTerminate\\comma\\746078\\comma\\0\\comma\\Ok//crlf////tab////tab////tab//agentReportStatus(\\quot\\VWaUGu88BMN0hDYWzZj57VpG_Validate Sales Export At Office\\quot\\\\comma\\\\quot\\746078\\quot\\\\comma\\0\\comma\\getToken(\\quot\\AspectServerHashID\\quot\\)\\comma\\\\quot\\Ok\\quot\\\\comma\\Result\\comma\\bForceReport\\comma\\now()-tAgentStart\\comma\\\\quot\\\\quot\\)//crlf////tab////tab////tab//scriptSetResult(Result)//crlf////tab////tab//endif//crlf////tab//\\quot\\>//crlf//</conditional>^
ID=ScriptText|X=183|Y=41|W=1000|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<span style='font:8pt tahoma;color:black'>//amp//lt;state//amp//gt;03082024//amp//nbsp;232347//amp//lt;/state//amp//gt;<br>//amp//lt;<span class='includecontrol'>conditional</span>//amp//nbsp;expression:(\\quot\\__ExecAgentScript__\\quot\\=\\quot\\true\\quot\\)//amp//gt;<br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//lt;!<span class='includecontrol'>include</span>//amp//nbsp;type:script;//amp//nbsp;name:\\quot\\agent_Validate//amp//nbsp;Sales//amp//nbsp;Export//amp//nbsp;At//amp//nbsp;Office\\quot\\;//amp//nbsp;commands:\\quot\\<br><br><span class='comment'>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//Created//amp//nbsp;03-08-2024//amp//nbsp;23:23:47</span><br><br><span class='comment'>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//Force//amp//nbsp;reporting//amp//nbsp;when//amp//nbsp;the//amp//nbsp;agent//amp//nbsp;is//amp//nbsp;executed//amp//nbsp;manually</span><br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;bForceReport=((\\quot\\__ManualExecAgent__\\quot\\=\\quot\\true\\quot\\)//amp//nbsp;or//amp//nbsp;(true))<br><br><span class='comment'>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//Record//amp//nbsp;the//amp//nbsp;starting//amp//nbsp;time</span><br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;tAgentStart=<span class='keyword'>now</span>()<br><br><br><span class='comment'>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//Are//amp//nbsp;there//amp//nbsp;any//amp//nbsp;salesexport//amp//nbsp;synch//amp//nbsp;tasks//amp//nbsp;defined</span><br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;Result=<span class='keyword'>getSensorValue</span>(\\quot\\getFilesetSynchHashID\\quot\\)<br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;<span class='flowcontrol'><span class='keyword'>if</span>(</span><span class='keyword'>not</span>(<span class='keyword'>startsWith</span>(Result\\comma\\\\quot\\0:\\quot\\)))<br><br><span class='comment'>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//Check//amp//nbsp;for//amp//nbsp;missing//amp//nbsp;salesexport//amp//nbsp;files</span><br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;ValidateResult=<span class='keyword'>execAgentAction</span>(\\quot\\validateSalesExportFilesExist\\quot\\)<br><br><span class='comment'>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//Ok?</span><br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;<span class='flowcontrol'><span class='keyword'>if</span>(</span><span class='keyword'>startsWith</span>(ValidateResult\\comma\\\\quot\\Ok\\quot\\))<br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;<span class='keyword'>agentReportStatus</span>(\\quot\\VWaUGu88BMN0hDYWzZj57VpG_Validate//amp//nbsp;Sales//amp//nbsp;Export//amp//nbsp;At//amp//nbsp;Office\\quot\\\\comma\\\\quot\\38038\\quot\\\\comma\\0\\comma\\<span class='keyword'>getToken</span>(\\quot\\AspectServerHashID\\quot\\)\\comma\\\\quot\\Ok\\quot\\\\comma\\ValidateResult\\comma\\bForceReport\\comma\\<span class='keyword'>now</span>()-tAgentStart\\comma\\\\quot\\\\quot\\)<br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;<span class='keyword'>scriptSetResult</span>(ValidateResult)<br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;<span class='flowcontrol'>else</span><br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;<span class='keyword'>agentReportStatus</span>(\\quot\\VWaUGu88BMN0hDYWzZj57VpG_Validate//amp//nbsp;Sales//amp//nbsp;Export//amp//nbsp;At//amp//nbsp;Office\\quot\\\\comma\\\\quot\\406248\\quot\\\\comma\\1\\comma\\<span class='keyword'>getToken</span>(\\quot\\AspectServerHashID\\quot\\)\\comma\\\\quot\\Error\\quot\\\\comma\\ValidateResult\\comma\\bForceReport\\comma\\<span class='keyword'>now</span>()-tAgentStart\\comma\\\\quot\\\\quot\\)<br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;<span class='keyword'>scriptSetResult</span>(ValidateResult)<br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;<span class='flowcontrol'>endif</span><br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;<span class='flowcontrol'>else</span><br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;<span class='keyword'>agentReportStatus</span>(\\quot\\VWaUGu88BMN0hDYWzZj57VpG_Validate//amp//nbsp;Sales//amp//nbsp;Export//amp//nbsp;At//amp//nbsp;Office\\quot\\\\comma\\\\quot\\746078\\quot\\\\comma\\0\\comma\\<span class='keyword'>getToken</span>(\\quot\\AspectServerHashID\\quot\\)\\comma\\\\quot\\Ok\\quot\\\\comma\\Result\\comma\\bForceReport\\comma\\<span class='keyword'>now</span>()-tAgentStart\\comma\\\\quot\\\\quot\\)<br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;<span class='keyword'>scriptSetResult</span>(Result)<br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;<span class='flowcontrol'>endif</span><br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;\\quot\\//amp//gt;<br>//amp//lt;/<span class='includecontrol'>conditional</span>//amp//gt;<br><br></span>^
ID=AgentDescription|X=183|Y=41|W=1000|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=AgentStatus|X=183|Y=41|W=1000|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Aspect_Script|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=AgentChart|X=183|Y=41|W=1000|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>03082024 232347</state>//crlf//<canvas id=\\quot\\agent_doc_canvas\\quot\\ width=\\quot\\100\\quot\\ height=\\quot\\100\\quot\\ style=\\quot\\position: absolute; top: 0px; left: 0px; width: 100px; height: 100px; border-style: none; z-index: 2;\\quot\\></canvas><div id=\\quot\\chartAgentStart\\quot\\ isagentdoc=\\quot\\true\\quot\\ content_type=\\quot\\AgentAction\\quot\\ agentchildyesnode=\\quot\\chart478477\\quot\\ style=\\quot\\position: absolute; top: 0px; left: 0px; width: 120px; height: auto; display: block;\\quot\\><canvas width=\\quot\\120\\quot\\ height=\\quot\\139\\quot\\ style=\\quot\\width: 120px; height: 139px; position: absolute; top: 0px; left: 0px;\\quot\\></canvas><div class=\\quot\\agentstart\\quot\\><b>Validate Sales Export At Office</b><br><span style=\\quot\\font-weight:normal;color:green\\quot\\>Active</span><br><span style=\\quot\\font-weight:normal;color:black\\quot\\>Debugging Is Off</span><br>Report Status: always<br>Report To: getToken(\\quot\\AspectServerHashID\\quot\\)<br>Name Params: </div></div><div id=\\quot\\chart38038\\quot\\ isagentdoc=\\quot\\true\\quot\\ content_type=\\quot\\AgentTerminate\\quot\\ style=\\quot\\position: absolute; top: 583px; left: 0px; width: 120px; height: auto; display: block;\\quot\\><canvas width=\\quot\\120\\quot\\ height=\\quot\\84\\quot\\ style=\\quot\\width: 120px; height: 84px; position: absolute; top: 0px; left: 0px;\\quot\\></canvas><div class=\\quot\\agentterminator\\quot\\>Terminate<br><hr>Ok<hr><span style=\\quot\\color:green\\quot\\>Success</span></div></div><div id=\\quot\\chart478477\\quot\\ isagentdoc=\\quot\\true\\quot\\ content_type=\\quot\\AgentDecision\\quot\\ agentchildyesnode=\\quot\\chart28715\\quot\\ agentchildnonode=\\quot\\chart746078\\quot\\ style=\\quot\\position: absolute; top: 191px; left: 0px; width: 150px; height: auto; display: block;\\quot\\><canvas width=\\quot\\120\\quot\\ height=\\quot\\90\\quot\\ style=\\quot\\width: 150px; height: 77px; position: absolute; top: 0px; left: 0px;\\quot\\></canvas><div class=\\quot\\agentdecision\\quot\\>Are there any salesexport synch tasks defined<hr><table tabsinitialized=\\quot\\true\\quot\\><tbody><tr><td><u>Sensor</u></td><td>getFilesetSynchHashID<br></td></tr></tbody></table></div></div><div id=\\quot\\chart746078\\quot\\ isagentdoc=\\quot\\true\\quot\\ content_type=\\quot\\AgentTerminate\\quot\\ style=\\quot\\position: absolute; top: 191px; left: 190px; width: 120px; height: auto; display: block;\\quot\\><canvas width=\\quot\\120\\quot\\ height=\\quot\\84\\quot\\ style=\\quot\\width: 120px; height: 84px; position: absolute; top: 0px; left: 0px;\\quot\\></canvas><div class=\\quot\\agentterminator\\quot\\>Terminate<br><hr>Ok<hr><span style=\\quot\\color:green\\quot\\>Success</span></div></div><div id=\\quot\\chart28715\\quot\\ isagentdoc=\\quot\\true\\quot\\ content_type=\\quot\\AgentAction\\quot\\ agentchildyesnode=\\quot\\chart671729\\quot\\ style=\\quot\\position: absolute; top: 320px; left: 0px; width: 150px; height: auto; display: block;\\quot\\><canvas width=\\quot\\120\\quot\\ height=\\quot\\95\\quot\\ style=\\quot\\width: 150px; height: 95px; position: absolute; top: 0px; left: 0px;\\quot\\></canvas><div class=\\quot\\agentaction\\quot\\>Check for missing salesexport files<hr><table tabsinitialized=\\quot\\true\\quot\\><tbody><tr><td><u>Action</u></td><td>validateSalesExportFilesExist<br></td></tr><tr><td><u>Return</u></td><td>ValidateResult</td></tr></tbody></table></div></div><div id=\\quot\\chart671729\\quot\\ isagentdoc=\\quot\\true\\quot\\ content_type=\\quot\\AgentDecision\\quot\\ agentchildyesnode=\\quot\\chart38038\\quot\\ agentchildnonode=\\quot\\chart406248\\quot\\ style=\\quot\\position: absolute; top: 467px; left: 0px; width: 150px; height: auto; display: block;\\quot\\><canvas width=\\quot\\120\\quot\\ height=\\quot\\64\\quot\\ style=\\quot\\width: 150px; height: 64px; position: absolute; top: 0px; left: 0px;\\quot\\></canvas><div class=\\quot\\agentdecision\\quot\\>Ok?<hr><table tabsinitialized=\\quot\\true\\quot\\><tbody><tr><td><u>Sensor</u></td><td>Expression<br></td></tr></tbody></table></div></div><div id=\\quot\\chart406248\\quot\\ isagentdoc=\\quot\\true\\quot\\ content_type=\\quot\\AgentTerminate\\quot\\ style=\\quot\\position: absolute; top: 467px; left: 190px; width: 120px; height: auto; display: block;\\quot\\><canvas width=\\quot\\120\\quot\\ height=\\quot\\84\\quot\\ style=\\quot\\width: 120px; height: 84px; position: absolute; top: 0px; left: 0px;\\quot\\></canvas><div class=\\quot\\agentterminator\\quot\\>Terminate<br><hr>Error<hr><span style=\\quot\\color:red\\quot\\>Fail</span></div></div>^
ID=478477|X=183|Y=232|W=150|H=20|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=AgentDecision|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=28715|AgentChildNoNode=746078|AgentSensor=getFilesetSynchHashID|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=not(startsWith(Result//comma//~~backslash~~~~backslash~~quot~~backslash~~~~backslash~~0:~~backslash~~~~backslash~~quot~~backslash~~~~backslash~~))|AgentNodeActionReturnValue=|AgentNodeComment=Are there any salesexport synch tasks defined|AgentNodeTermType=|^
ID=746078|X=373|Y=232|W=150|H=20|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=AgentTerminate|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=Result|AgentNodeActionReturnValue=|AgentNodeComment=Ok|AgentNodeTermType=0|^
ID=28715|X=183|Y=361|W=150|H=20|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=AgentAction|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=671729|AgentChildNoNode=|AgentSensor=|AgentAction=validateSalesExportFilesExist|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=ValidateResult|AgentNodeComment=Check for missing salesexport files|AgentNodeTermType=|^
ID=671729|X=183|Y=508|W=150|H=20|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=AgentDecision|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=38038|AgentChildNoNode=406248|AgentSensor=1|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=startsWith(ValidateResult//comma//~~backslash~~~~backslash~~quot~~backslash~~~~backslash~~Ok~~backslash~~~~backslash~~quot~~backslash~~~~backslash~~)|AgentNodeActionReturnValue=|AgentNodeComment=Ok?|AgentNodeTermType=|^
ID=406248|X=373|Y=508|W=150|H=20|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=AgentTerminate|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=ValidateResult|AgentNodeActionReturnValue=|AgentNodeComment=Error|AgentNodeTermType=1|
</widget><widget name="Export Sales - Tudors" group="Export" category="" description="Exports sales to Sage at Tudors home office" type="Container" Mobile="false" Processing=0 metadata="" IncludeInViewer="false" PublicName="Export Sales - Tudors" modified="11-24-2024 20:54:00" modifiedby="Thnikpad3" TaskEnabled=false IsAgent=true ContainsAgentSensors=true ContainsAgentActions=true TaskInitialStartTime=06-28-2024 22:57:26:000 TaskIntervalType=0 TaskLastExecuted= TaskCatchUpMissedTasks=false TaskYearsBetweenExecution=0 TaskMonthsBetweenExecution=0 TaskDaysBetweenExecution=0 TaskHoursBetweenExecution=0 TaskMinutesBetweenExecution=0 TaskSecondsBetweenExecution=0 TaskExecuteSun=true TaskExecuteMon=true TaskExecuteTue=true TaskExecuteWed=true TaskExecuteThu=true TaskExecuteFri=true TaskExecuteSat=true TaskConditional_Expression="" TaskConditional_Expression_Description="" TaskState_Function="" TaskState_Expression_Description="" TaskWidgetParams="" TaskWindowForExecution=0>
Preferences|toolboxx=48|toolboxy=285|aspectfuncx=100|aspectfuncy=100|aspectfuncw=750|aspectfunch=auto|aspectfuncLock=true|aspectfuncVisible=false|PublishFtpFilename=Export Sales - Tudors.html|PublishToFtpSite=false|PublishFTPAccount=0|PublishFtpDirectory=/|PublishFtpPublicDirectory=/|PublishCopyFile=false|PublishCopyFilename=|PublishWysiwig=false|PublishIncludeAspectScript=false|PublishIncludeAspectStyleshet=false|PublishAsText=false|^
ID=top_bar|X=0|Y=0|W=1255|H=15|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=false|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=left_bar|X=0|Y=15|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=false|BorderStyle=solid 1 black|Visible=true|Print=false|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=top_bar|AttachLeft=|AlignLeft=top_bar|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=code|X=300|Y=100|W=1255|H=768|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<table class='tabdialog'>//crlf////tab//<tr>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'832792')\\quot\\>Javascript</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'AspectScript')\\quot\\>AspectScript</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'sensor_list')\\quot\\>Sensors</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'action_list')\\quot\\>Actions</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'464641')\\quot\\>Definition</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\javascript:showTab(this\\comma\\'273545')\\quot\\>Export Preview</span></td>//crlf////tab//</tr>//crlf//</table>^
ID=832792|X=300|Y=126|W=1255|H=768|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Javascript|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=AspectScript|X=300|Y=126|W=1255|H=768|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Aspect_Script|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=sensor_list|X=300|Y=126|W=1255|H=768|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=Aspect_Script|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>//crlf////tab//{@if(\\quot\\__SensorExec__\\quot\\=\\quot\\true\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf////tab//{@if(getSystemValue(\\quot\\DevelopmentMode\\quot\\)\\comma\\fileModified(getToken(\\quot\\homedir\\quot\\)+\\quot\\cache\WidgetEdit_VWaUGu88BMN0hDYWzZj57VpG_Export Sales - Tudors.html\\quot\\)\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//<conditional expression:(\\quot\\__sensor_list__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab//Export Sales - Tudors\\comma\\collectionTudorsSageExportFields\\comma\\sensor_list\\comma\\Sensor=collectionTudorsSageExportFields\\comma\\private\\comma\\text//crlf////tab//Export Sales - Tudors\\comma\\collectionCashDrawerFieldID\\comma\\sensor_list\\comma\\Sensor=collectionCashDrawerFieldID\\comma\\private\\comma\\text//crlf////tab//Export Sales - Tudors\\comma\\collectionSalesDriverFieldID\\comma\\sensor_list\\comma\\Sensor=collectionSalesDriverFieldID\\comma\\private\\comma\\text//crlf//</conditional>//crlf////crlf//[!------------------------------------------------------------------------//crlf//collectionTudorsSageExportFields//crlf//--------------------------------------------------------------------------]//crlf//<conditional expression:(\\quot\\__sensor__\\quot\\=\\quot\\collectionTudorsSageExportFields\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__SensorDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Creates a collection of all available fields from the sales driver and cash drawer.//crlf////tab////tab//This replaces the two individual collections below with a single collection//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__SensorParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//None//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__SensorReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//The system driver containing the collection//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__SensorExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\collectionTudorsSageExportFields\\quot\\; commands:\\quot\\//crlf////tab////tab////tab//arField=\\quot\\\\quot\\//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Cash Deposit\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Cash Deposit:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Cash Deposit:PM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Charge Acct.\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Charge Acct.:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Charge Acct.:PM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Coupons\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Coupons:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Coupons:PM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Credit Cards\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Credit Cards:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Credit Cards:PM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Discounts\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Discounts:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Discounts:PM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Emp. Charges\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Emp. Charges:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Emp. Charges:PM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Food\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Food:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Food:PM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Fountain\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Fountain:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Fountain:PM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ GC Redeemed\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ GC Redeemed:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ GC Redeemed:PM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ GC Sold\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ GC Sold:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ GC Sold:PM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Online Order\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Online Order:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Online Order:PM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Over Rings\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Over Rings:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Over Rings:PM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Over/short\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Over/short:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Over/short:PM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Pay Outs\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Pay Outs:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Pay Outs:PM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Promo Donations\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Promo Donations:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Promo Donations:PM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Retail\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Retail:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Retail:PM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Spec. Deposit\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Spec. Deposit:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Spec. Deposit:PM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Subtotal\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Subtotal:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Subtotal:PM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Tax\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Tax:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Tax:PM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Total Sales\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Total Sales:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Drawer ~~pipe~~ Total Sales:PM\\quot\\)//crlf////crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Cash Due:Cash Due\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ CC Fees:CC Fees\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Discount:Dollar Discount\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Discount:EMP 20\\percent\\ DISC\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Discount:EMP 50\\percent\\ DISC\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Discount:POLICE\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Discount:SENIOR\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Gift Cert Sale:Gift Cert Sale 7\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Gross Sales:Gross Sales\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Department:BEVERAGE\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Department:DONATIONS\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Department:FOOD\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Department:RETAIL\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales:Net Sales\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Tax1:Tax1\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Tender:Cash\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Tender:Emv Credit Card\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Tender:Gift Card\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Tender:On Account\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Total All Sales:Total All Sales\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Total Cash Tender:Total Cash Tender\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Total Cash Tips:Total Cash Tips\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Total Comps/Discounts:Total Comps/Discounts\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Total Comps:Total Comps\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Total Department Net Sales:Total Department Net Sales\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Total Department Total Sales:Total Department Total Sales\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Total Discounts:Total Discounts\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Total Gift Cert Sale:Total Gift Cert Sale\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Total Non-Cash Tender:Total Non-Cash Tender\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Total Non-Cash Tips:Total Non-Cash Tips\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Total Sales by Department:BEVERAGE\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Total Sales by Department:DONATIONS\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Total Sales by Department:FOOD\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Total Sales by Department:RETAIL\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Total Tax:Total Tax\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Total Tender:Total Tender\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Total Tips:Total Tips\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Ttl POS Paid In:Ttl POS Paid In\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Ttl POS Paid Out:Ttl POS Paid Out\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ User-Defined:Deposit 1\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ User-Defined:Deposit 2\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ User-Defined:Deposit Due\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ User-Defined:Over/Short\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ User-Defined:Paid In\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ User-Defined:Paid Out\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ User-Defined:Promo Donations\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ User-Defined:Total Cash Adjust\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ User-Defined:Total Deposit\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ User-Defined:Total Tips\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ User-Defined:Tudors Net Sales Last Year\\quot\\)//crlf////crlf////tab////tab////tab////These sales by category fields are probably not needed//crlf////tab////tab////tab//if(false)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Add\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Add Meat Bisc Spcl\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Add$\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Apple Bisc Mods\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Bakery\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Beverages\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Big Tator Choice\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Biscuits\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Biscuits2\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Bread Choice\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Brk Lg Cmbo Fd Mods\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Brk Sm Cmbo Fd Mods\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Brkfst Sides\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Capp Sizes\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Catering Food\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Chk Strp Bsk Choice\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Cntry Sides\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Combo Food Mod Lunch\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Combo Lg Ftn Brk\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Combo Lg Ftn Lunch\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Combo Md Ftn Brk\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Combo Md Ftn Lunch\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Combo Retail Mods\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Condiments\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Dinners\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Donation Items\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Extra\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Flap Jack Choice\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Food Bev\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Lrg Hot Mods\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Lunch\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Lunch Side\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Meat Choice\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Meat Choice$\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Milk Mods\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Misc Food Items\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Pancake Add\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Platters\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Reg Hot Mods\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Retail\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Retail\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Salads\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Side Apple/Gravy Lg\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Soup\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Sub\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Tater Rnd Upsize\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Tators Upsize\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:Tea Mods\\quot\\)//crlf////tab////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Daily Sales ~~pipe~~ Net Sales by Category:With Mods\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab//d=getSalt(4)//crlf////tab////tab////tab//driverOpen(Sensor_Collection\\comma\\d\\comma\\WRITE\\comma\\true)//crlf////tab////tab////tab//c=getElementCount(arField)//crlf////tab////tab////tab//appendToLog(\\quot\\arField=\\quot\\+arField+\\quot\\ c=\\quot\\+c)//crlf////tab////tab////tab//n=0//crlf////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab//s=getElement(arField\\comma\\n)//crlf////tab////tab////tab////tab//r=driverAddNewRecord(d)//crlf////tab////tab////tab////tab////driverPutFieldAbsolute(d\\comma\\\\quot\\index\\quot\\\\comma\\r\\comma\\getElement(s\\comma\\0\\comma\\\\quot\\~~pipe~~\\quot\\))//crlf////tab////tab////tab////tab////driverPutFieldAbsolute(d\\comma\\\\quot\\value\\quot\\\\comma\\r\\comma\\getElement(s\\comma\\1\\comma\\\\quot\\~~pipe~~\\quot\\))//crlf////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\index\\quot\\\\comma\\r\\comma\\s)//crlf////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\value\\quot\\\\comma\\r\\comma\\s)//crlf////tab////tab////tab////tab////appendToLog(\\quot\\Added record: \\quot\\+r)//crlf////tab////tab////tab////tab//n++//crlf////tab////tab////tab//endwhile//crlf////tab////tab////tab//return(d)//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf////crlf//[!------------------------------------------------------------------------//crlf//collectionCashDrawerFieldID//crlf//--------------------------------------------------------------------------]//crlf//<conditional expression:(\\quot\\__sensor__\\quot\\=\\quot\\collectionCashDrawerFieldID\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__SensorDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Creates a collection of field ID's available from the cash drawer reconciliation//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__SensorParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//None//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__SensorReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//The system driver containing the collection//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__SensorExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\collectionCashDrawerFieldID\\quot\\; commands:\\quot\\//crlf////crlf////tab////tab////tab//arField=\\quot\\\\quot\\//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Food\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Retail\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Fountain\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\GC Sold\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Tax\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Total Sales\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Pay Outs\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Over Rings\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\GC Redeemed\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Coupons\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Credit Cards\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Online Order\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Emp. Charges\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Discounts\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Charge Acct.\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Promo Donations\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Subtotal\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Deposit\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Over/short\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Spec. Deposit\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Food:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Retail:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Fountain:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\GC Sold:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Tax:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Total Sales:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Pay Outs:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Over Rings:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\GC Redeemed:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Coupons:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Credit Cards:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Online Order:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Emp. Charges:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Discounts:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Charge Acct.:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Promo Donations:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Subtotal:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Deposit:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Over/short:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Spec. Deposit:AM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Food:PM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Retail:PM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Fountain:PM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\GC Sold:PM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Tax:PM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Total Sales:PM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Pay Outs:PM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Over Rings:PM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\GC Redeemed:PM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Coupons:PM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Credit Cards:PM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Online Order:PM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Emp. Charges:PM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Discounts:PM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Charge Acct.:PM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Promo Donations:PM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Subtotal:PM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Deposit:PM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Over/short:PM\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Spec. Deposit:PM\\quot\\)//crlf////crlf////tab////tab////tab//d=getSalt(4)//crlf////tab////tab////tab//driverOpen(Sensor_Collection\\comma\\d\\comma\\WRITE\\comma\\true)//crlf////tab////tab////tab//c=getElementCount(arField)//crlf////tab////tab////tab//appendToLog(\\quot\\arField=\\quot\\+arField+\\quot\\ c=\\quot\\+c)//crlf////tab////tab////tab//n=0//crlf////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab//s=getElement(arField\\comma\\n)//crlf////tab////tab////tab////tab//r=driverAddNewRecord(d)//crlf////tab////tab////tab////tab////driverPutFieldAbsolute(d\\comma\\\\quot\\index\\quot\\\\comma\\r\\comma\\getElement(s\\comma\\0\\comma\\\\quot\\~~pipe~~\\quot\\))//crlf////tab////tab////tab////tab////driverPutFieldAbsolute(d\\comma\\\\quot\\value\\quot\\\\comma\\r\\comma\\getElement(s\\comma\\1\\comma\\\\quot\\~~pipe~~\\quot\\))//crlf////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\index\\quot\\\\comma\\r\\comma\\s)//crlf////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\value\\quot\\\\comma\\r\\comma\\s)//crlf////tab////tab////tab////tab////appendToLog(\\quot\\Added record: \\quot\\+r)//crlf////tab////tab////tab////tab//n++//crlf////tab////tab////tab//endwhile//crlf////tab////tab////tab//return(d)//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf////crlf//[!------------------------------------------------------------------------//crlf//collectionSalesDriverFieldID//crlf//--------------------------------------------------------------------------]//crlf//<conditional expression:(\\quot\\__sensor__\\quot\\=\\quot\\collectionSalesDriverFieldID\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__SensorDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Creates a collection of field ID's available from the daily sales driver//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__SensorParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//None//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__SensorReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//The system driver containing the collection//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__SensorExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\collectionSalesDriverFieldID\\quot\\; commands:\\quot\\//crlf////crlf////tab////tab////tab////These fields are taken from the Record_Type_and_Name field //crlf////tab////tab////tab////in the salesexport driver//crlf////tab////tab////tab//arField=\\quot\\\\quot\\//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Cash Due:Cash Due\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\CC Fees:CC Fees\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Discount:Dollar Discount\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Discount:EMP 20\\percent\\ DISC\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Discount:EMP 50\\percent\\ DISC\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Discount:POLICE\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Discount:SENIOR\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Gift Cert Sale:Gift Cert Sale 7\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Gross Sales:Gross Sales\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Add\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Add Meat Bisc Spcl\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Add$\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Apple Bisc Mods\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Bakery\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Beverages\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Big Tator Choice\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Biscuits\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Biscuits2\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Bread Choice\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Brk Lg Cmbo Fd Mods\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Brk Sm Cmbo Fd Mods\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Brkfst Sides\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Capp Sizes\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Catering Food\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Chk Strp Bsk Choice\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Cntry Sides\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Combo Food Mod Lunch\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Combo Lg Ftn Brk\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Combo Lg Ftn Lunch\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Combo Md Ftn Brk\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Combo Md Ftn Lunch\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Combo Retail Mods\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Condiments\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Dinners\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Donation Items\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Extra\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Flap Jack Choice\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Food Bev\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Lrg Hot Mods\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Lunch\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Lunch Side\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Meat Choice\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Meat Choice$\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Milk Mods\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Misc Food Items\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Pancake Add\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Platters\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Reg Hot Mods\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Retail\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Retail\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Salads\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Side Apple/Gravy Lg\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Soup\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Sub\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Tater Rnd Upsize\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Tators Upsize\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:Tea Mods\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Category:With Mods\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Department:BEVERAGE\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Department:DONATIONS\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Department:FOOD\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales by Department:RETAIL\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Net Sales:Net Sales\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Tax1:Tax1\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Tender:Cash\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Tender:Emv Credit Card\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Tender:Gift Card\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Tender:On Account\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Total All Sales:Total All Sales\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Total Cash Tender:Total Cash Tender\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Total Cash Tips:Total Cash Tips\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Total Comps/Discounts:Total Comps/Discounts\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Total Comps:Total Comps\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Total Department Net Sales:Total Department Net Sales\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Total Department Total Sales:Total Department Total Sales\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Total Discounts:Total Discounts\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Total Gift Cert Sale:Total Gift Cert Sale\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Total Non-Cash Tender:Total Non-Cash Tender\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Total Non-Cash Tips:Total Non-Cash Tips\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Total Sales by Department:BEVERAGE\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Total Sales by Department:DONATIONS\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Total Sales by Department:FOOD\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Total Sales by Department:RETAIL\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Total Tax:Total Tax\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Total Tender:Total Tender\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Total Tips:Total Tips\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Ttl POS Paid In:Ttl POS Paid In\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\Ttl POS Paid Out:Ttl POS Paid Out\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\User-Defined:Deposit 1\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\User-Defined:Deposit 2\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\User-Defined:Deposit Due\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\User-Defined:Over/Short\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\User-Defined:Paid In\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\User-Defined:Paid Out\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\User-Defined:Promo Donations\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\User-Defined:Total Cash Adjust\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\User-Defined:Total Deposit\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\User-Defined:Total Tips\\quot\\)//crlf////tab////tab////tab//arField=addElement(arField\\comma\\\\quot\\User-Defined:Tudors Net Sales Last Year\\quot\\)//crlf////crlf////tab////tab////tab//d=getSalt(4)//crlf////tab////tab////tab//driverOpen(Sensor_Collection\\comma\\d\\comma\\WRITE\\comma\\true)//crlf////tab////tab////tab//c=getElementCount(arField)//crlf////tab////tab////tab//appendToLog(\\quot\\arField=\\quot\\+arField+\\quot\\ c=\\quot\\+c)//crlf////tab////tab////tab//n=0//crlf////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab//s=getElement(arField\\comma\\n)//crlf////tab////tab////tab////tab//r=driverAddNewRecord(d)//crlf////tab////tab////tab////tab////driverPutFieldAbsolute(d\\comma\\\\quot\\index\\quot\\\\comma\\r\\comma\\getElement(s\\comma\\0\\comma\\\\quot\\~~pipe~~\\quot\\))//crlf////tab////tab////tab////tab////driverPutFieldAbsolute(d\\comma\\\\quot\\value\\quot\\\\comma\\r\\comma\\getElement(s\\comma\\1\\comma\\\\quot\\~~pipe~~\\quot\\))//crlf////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\index\\quot\\\\comma\\r\\comma\\replaceSubstring(s\\comma\\\\quot\\:\\quot\\\\comma\\\\quot\\_\\quot\\))//crlf////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\value\\quot\\\\comma\\r\\comma\\replaceSubstring(s\\comma\\\\quot\\:\\quot\\\\comma\\\\quot\\-\\quot\\))//crlf////tab////tab////tab////tab////appendToLog(\\quot\\Added record: \\quot\\+r)//crlf////tab////tab////tab////tab//n++//crlf////tab////tab////tab//endwhile//crlf////tab////tab////tab//return(d)//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf//^
ID=action_list|X=300|Y=126|W=1255|H=768|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=false|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=Aspect_Script|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>//crlf////tab//{@if(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\\\comma\\now()\\comma\\\\quot\\\\quot\\)}//crlf////tab//{@if(getSystemValue(\\quot\\DevelopmentMode\\quot\\)\\comma\\fileModified(getToken(\\quot\\homedir\\quot\\)\\plus\\\\quot\\cache~~backslash~~WidgetEdit_VWaUGu88BMN0hDYWzZj57VpG_Export Sales - Tudors.html\\quot\\)\\comma\\\\quot\\\\quot\\)}//crlf//</state>//crlf////crlf//<conditional expression:(\\quot\\__action_list__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab//Export Sales - Tudors\\comma\\exportSalesToSage\\comma\\action_list\\comma\\Action=exportSalesToSage\\comma\\private//crlf////tab//Export Sales - Tudors\\comma\\createTudorsSageExportPreview\\comma\\action_list\\comma\\Action=createTudorsSageExportPreview\\comma\\private//crlf////tab//Export Sales - Tudors\\comma\\createTudorsSageExportFile\\comma\\action_list\\comma\\Action=createTudorsSageExportFile\\comma\\private//crlf//</conditional>//crlf////crlf//[!------------------------------------------------------------------------//crlf//exportSalesToSage//crlf//--------------------------------------------------------------------------]//crlf//<conditional expression:(\\quot\\__Action__\\quot\\=\\quot\\exportSalesToSage\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__ActionDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Creates the sage sales export file.//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Filename - Name of the temporary file containing the data to be exported//crlf////tab////tab//Filter - Filter to be applied//crlf////tab////tab//DateFrom - Starting date.  Used in output filename//crlf////tab////tab//DateTo - Ending date.  Used in output filename//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\exportSalesToSage\\quot\\; commands:\\quot\\//crlf////tab////tab////tab//sFilter=replaceSubstring(\\quot\\__Filter__\\quot\\\\comma\\char(0x27)\\comma\\char(0x22))//crlf////tab////tab////tab//sFilename=\\quot\\__Filename__\\quot\\//crlf////tab////tab////tab//dtFrom=parseTime(\\quot\\__DateFrom__\\quot\\\\comma\\\\quot\\MM-dd-yyyy\\quot\\)//crlf////tab////tab////tab//dtTo=parseTime(\\quot\\__DateTo__\\quot\\\\comma\\\\quot\\MM-dd-yyyy\\quot\\)//crlf////crlf////tab////tab////tab////get the selected company code and store number from the filter//crlf////tab////tab////tab//s=replaceSubstring(sFilter\\comma\\char(0x28)\\comma\\\\quot\\~~pipe~~\\quot\\)//crlf////tab////tab////tab//s=replaceSubstring(s\\comma\\char(0x29)\\comma\\\\quot\\~~pipe~~\\quot\\)//crlf////tab////tab////tab//s=replaceSubstring(s\\comma\\char(0x27)\\comma\\char(0x22))//crlf////tab////tab////tab//sCompanyCode=removeQuotes(getElementValue(s\\comma\\\\quot\\Company_Code\\quot\\\\comma\\\\quot\\~~pipe~~\\quot\\))//crlf////tab////tab////tab//sHashID=removeQuotes(getElementValue(s\\comma\\\\quot\\HashID\\quot\\\\comma\\\\quot\\~~pipe~~\\quot\\))//crlf////tab////tab////tab//sStoreNumber=\\quot\\\\quot\\//crlf////tab////tab////tab//if(len(sHashID)>0)//crlf////tab////tab////tab////tab//sStoreNumber=lookup(Tudors_Sage_Store_Number_by_HashID\\comma\\sHashID)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////get the filename for the output.  It is in the form://crlf////tab////tab////tab////sage_sales_export_MMddYYYY_MMddYYYY_CompanyCode_StoreNumber.csv//crlf////tab////tab////tab//sOutputFile=getToken(\\quot\\homedir\\quot\\)\\plus\\\\quot\\export~~backslash~~sage_sales_export\\quot\\//crlf////tab////tab////tab//sOutputFile=sOutputFile\\plus\\\\quot\\_\\quot\\\\plus\\replaceSubstring(\\quot\\__DateFrom__\\quot\\\\comma\\\\quot\\-\\quot\\\\comma\\\\quot\\\\quot\\)//crlf////tab////tab////tab//sOutputFile=sOutputFile\\plus\\\\quot\\_\\quot\\\\plus\\replaceSubstring(\\quot\\__DateTo__\\quot\\\\comma\\\\quot\\-\\quot\\\\comma\\\\quot\\\\quot\\)//crlf////tab////tab////tab//if(len(sCompanyCode)>0)//crlf////tab////tab////tab////tab//sOutputFile=sOutputFile\\plus\\\\quot\\_\\quot\\\\plus\\sCompanyCode//crlf////tab////tab////tab//endif//crlf////tab////tab////tab//if(len(sStoreNumber)>0)//crlf////tab////tab////tab////tab//sOutputFile=sOutputFile\\plus\\\\quot\\_\\quot\\\\plus\\sStoreNumber//crlf////tab////tab////tab//endif//crlf////tab////tab////tab//sOutputFile=sOutputFile\\plus\\\\quot\\.csv\\quot\\//crlf////tab////tab////tab////tab////tab////crlf////tab////tab////tab////open the driver and filter it//crlf////tab////tab////tab//driverOpen(Tudors_Journal_Transaction_Export\\comma\\d\\comma\\READ\\comma\\false\\comma\\\\quot\\Filename=\\quot\\\\plus\\sFilename)//crlf////tab////tab////tab//driverSetFilter(d\\comma\\sFilter\\comma\\false)//crlf////tab////tab////tab//driverSetSort(d\\comma\\\\quot\\Company_Code~~pipe~~Store_Code~~pipe~~Posting_Date~~pipe~~Sort_Order\\quot\\\\comma\\true)//crlf////tab////tab////tab//appendToLog(\\quot\\Filename: \\quot\\\\plus\\sFilename)//crlf////tab////tab////tab//appendToLog(\\quot\\Filter: \\quot\\\\plus\\sFilter)//crlf////tab////tab////tab//appendToLog(\\quot\\Records: \\quot\\\\plus\\driverGetRecordCount(d))//crlf////tab////crlf////tab////tab////tab////export the records//crlf////tab////tab////tab//sOutput=\\quot\\Posting Date\\comma\\Store Code\\comma\\Document Reference\\comma\\Account No\\comma\\Amount\\quot\\//crlf////tab////tab////tab//c=driverGetRecordCount(d)//crlf////tab////tab////tab//n=0//crlf////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab//dtPostingDate=driverGetField(d\\comma\\\\quot\\Posting_Date\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab//sStoreCode=driverGetField(d\\comma\\\\quot\\Store_Code\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab//sReference=driverGetField(d\\comma\\\\quot\\Document_Reference\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab//sAccountNo=driverGetField(d\\comma\\\\quot\\Account_No\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab//dAmount=driverGetField(d\\comma\\\\quot\\Amount\\quot\\\\comma\\n)//crlf////crlf////tab////tab////tab////tab//sOutput=sOutput\\plus\\char(13)\\plus\\char(10)//crlf////tab////tab////tab////tab//sOutput=sOutput\\plus\\formatDate(dtPostingDate\\comma\\\\quot\\MM/dd/yyyy\\quot\\)\\plus\\char(0x2C)//crlf////tab////tab////tab////tab//sOutput=sOutput\\plus\\sStoreCode\\plus\\char(0x2C)//crlf////tab////tab////tab////tab//sOutput=sOutput\\plus\\sReference\\plus\\char(0x2C)//crlf////tab////tab////tab////tab//sOutput=sOutput\\plus\\sAccountNo\\plus\\char(0x2C)//crlf////tab////tab////tab////tab//sOutput=sOutput\\plus\\formatNumber(dAmount\\comma\\\\quot\\0.00\\quot\\)//crlf////tab////tab////tab////tab//n\\plus\\\\plus\\//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab////add final cr/lf//crlf////tab////tab////tab//sOutput=sOutput\\plus\\char(13)\\plus\\char(10)//crlf////crlf////tab////tab////tab////write the file//crlf////tab////tab////tab//fileWriteContent(sOutputFile\\comma\\sOutput)//crlf////crlf////tab////tab////tab//return(\\quot\\Ok\\quot\\\\plus\\char(13)\\plus\\sOutput)//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf////crlf//[!------------------------------------------------------------------------//crlf//createTudorsSageExportPreview//crlf//--------------------------------------------------------------------------]//crlf//<conditional expression:(\\quot\\__Action__\\quot\\=\\quot\\createTudorsSageExportPreview\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__ActionDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//Creates the Tudors sage export file.  This action is called by a script in the //crlf////tab////tab//Export Preview tab of this widget when the Tudors - Sage Export view is opened.//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//DateFrom - Starting date (MM-dd-yyyy)//crlf////tab////tab//DateTo - Ending date (MM-dd-yyyy)//crlf////tab////tab//Filename - Name of output file.  This should be a temporary file so more than one can be opened//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\createTudorsSageExportPreview\\quot\\; commands:\\quot\\//crlf////tab////crlf////tab////tab////tab////abort if missing DateFrom//crlf////tab////tab////tab//if(not(defined(\\quot\\__DateFrom__\\quot\\)))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing DateFrom: __DateFrom__\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if missing DateTo//crlf////tab////tab////tab//if(not(defined(\\quot\\__DateTo__\\quot\\)))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing DateTo: __DateTo__\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////abort if missing filename//crlf////tab////tab////tab//if(not(defined(\\quot\\__Filename__\\quot\\)))//crlf////tab////tab////tab////tab//return(\\quot\\Error: Missing Filename: __Filename__\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab//dtFrom=parseTime(\\quot\\__DateFrom__\\quot\\\\comma\\\\quot\\MM-dd-yyyy\\quot\\)//crlf////tab////tab////tab//dtTo=parseTime(\\quot\\__DateTo__\\quot\\\\comma\\\\quot\\MM-dd-yyyy\\quot\\)//crlf////crlf////tab////tab////tab////abort if dtTo is earlier than dtFrom//crlf////tab////tab////tab//if(dtTo<dtFrom)//crlf////tab////tab////tab////tab//return(\\quot\\Error: Ending date is earlier than starting date\\quot\\)//crlf////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////open the journal definition driver//crlf////tab////tab////tab//driverOpen(Tudors_Journal_Transaction_Definition\\comma\\dJournalDef\\comma\\READ\\comma\\false)//crlf////tab////tab////tab//driverSetFilter(dJournalDef\\comma\\\\quot\\true\\quot\\\\comma\\false)//crlf////tab////tab////tab//driverSetSort(dJournalDef\\comma\\\\quot\\Sort_Order\\quot\\\\comma\\true)//crlf////crlf////tab////tab////tab////create arrays containing information about each record in the definition//crlf////tab////tab////tab////arrays are used to the sort order can be applied//crlf////tab////tab////tab//arrayCreate(arDefDebitCredit)//crlf////tab////tab////tab//arrayCreate(arDefGLAccount)//crlf////tab////tab////tab//arrayCreate(arDefFieldID)//crlf////tab////tab////tab//arrayCreate(arDefReverse_Sign)//crlf////crlf////tab////tab////tab//c=driverGetRecordCount(dJournalDef)//crlf////tab////tab////tab//appendToLog(\\quot\\Records in journal definition=\\quot\\\\plus\\c)//crlf////tab////tab////tab//n=0//crlf////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab//sFieldID=driverGetField(dJournalDef\\comma\\\\quot\\FieldID\\quot\\\\comma\\n)//crlf////tab////tab////tab////tab//if(sFieldID<>\\quot\\0\\quot\\)//crlf////tab////tab////tab////tab////tab//arrayAdd(arDefDebitCredit\\comma\\driverGetField(dJournalDef\\comma\\\\quot\\DebitCredit\\quot\\\\comma\\n))//crlf////tab////tab////tab////tab////tab//arrayAdd(arDefGLAccount\\comma\\driverGetField(dJournalDef\\comma\\\\quot\\GLAccount\\quot\\\\comma\\n))//crlf////tab////tab////tab////tab////tab//arrayAdd(arDefFieldID\\comma\\driverGetField(dJournalDef\\comma\\\\quot\\FieldID\\quot\\\\comma\\n))//crlf////tab////tab////tab////tab////tab//arrayAdd(arDefReverse_Sign\\comma\\driverGetField(dJournalDef\\comma\\\\quot\\Reverse_Sign\\quot\\\\comma\\n))//crlf////tab////tab////tab////tab////tab////appendToLog(\\quot\\Added n=\\quot\\\\plus\\n\\plus\\\\quot\\ FieldID=\\quot\\\\plus\\driverGetField(dJournalDef\\comma\\\\quot\\FieldID\\quot\\\\comma\\n))//crlf////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab//n\\plus\\\\plus\\//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab//driverClose(dJournalDef)//crlf////crlf////tab////tab////tab////initialize array of HashID\\apos\\s that will be included//crlf////tab////tab////tab//arHashID=getCollection(\\quot\\Tudors_Sage_Store_Number_by_HashID\\quot\\\\comma\\true\\comma\\\\quot\\\\quot\\\\comma\\\\quot\\\\quot\\\\comma\\char(0x2C)\\comma\\\\quot\\keys\\quot\\)//crlf////tab////tab////tab////crlf////tab////tab////tab////open the output driver//crlf////tab////tab////tab//sFilename=\\quot\\__Filename__\\quot\\//crlf////tab////tab////tab////appendToLog(\\quot\\createTudorsSageExportPreview Filename=\\quot\\\\plus\\sFilename)//crlf////tab////tab////tab////appendToLog(\\quot\\createTudorsSageExportPreview Filesize=\\quot\\\\plus\\fileSize(sFilename))//crlf////tab////tab////tab//driverOpen(Tudors_Journal_Transaction_Export\\comma\\d\\comma\\WRITE\\comma\\false\\comma\\\\quot\\Filename=\\quot\\\\plus\\sFilename)//crlf////tab////tab////tab//cRecords=driverGetRecordCount(d\\comma\\true)//crlf////tab////tab////tab////appendToLog(\\quot\\createTudorsSageExportPreview  records=\\quot\\\\plus\\cRecords)//crlf////crlf////tab////tab////tab////appendToLog(\\quot\\createTudorsSageExportPreview arHashID=\\quot\\\\plus\\arHashID)//crlf////tab////tab////tab////appendToLog(\\quot\\createTudorsSageExportPreview DateFrom=\\quot\\\\plus\\formatDate(dtFrom\\comma\\\\quot\\MM-dd-yyyy\\quot\\))//crlf////tab////tab////tab////appendToLog(\\quot\\createTudorsSageExportPreview DateTo=\\quot\\\\plus\\formatDate(dtTo\\comma\\\\quot\\MM-dd-yyyy\\quot\\))//crlf////crlf////tab////tab////tab////loop through the HashIDs//crlf////tab////tab////tab//cHashID=getElementCount(arHashID)//crlf////tab////tab////tab////appendToLog(\\quot\\*** cHashID=\\quot\\\\plus\\cHashID)//crlf////tab////tab////tab//nHashID=0//crlf////tab////tab////tab//while(nHashID<cHashID)//crlf////tab////tab////tab////tab//sHashID=getElement(arHashID\\comma\\nHashID)//crlf////tab////tab////tab////tab////appendToLog(\\quot\\*** sHashID=\\quot\\\\plus\\sHashID)//crlf////crlf////tab////tab////tab////tab////loop through the dates for the current HashID//crlf////tab////tab////tab////tab//dt=dtFrom//crlf////tab////tab////tab////tab//while(dt<=dtTo)//crlf////crlf////tab////tab////tab////tab////tab////appendToLog(\\quot\\*** dt=\\quot\\\\plus\\formatDate(dt\\comma\\\\quot\\MM-dd-yyyy\\quot\\))//crlf////crlf////tab////tab////tab////tab////tab////loop through each record in the journal definition//crlf////tab////tab////tab////tab////tab//iRecordStart=-1//crlf////tab////tab////tab////tab////tab//iRecordEnd=-1//crlf////tab////tab////tab////tab////tab//dAmountTtl=0//crlf////tab////tab////tab////tab////tab//dAMFood=0//crlf////tab////tab////tab////tab////tab//dPMFood=0//crlf////tab////tab////tab////tab////tab//dAMDeposit=0//crlf////tab////tab////tab////tab////tab//dPMDeposit=0//crlf////crlf////tab////tab////tab////tab////tab//c=arraySize(arDefFieldID)//crlf////tab////tab////tab////tab////tab//n=0//crlf////tab////tab////tab////tab////tab//while(n<c)//crlf////tab////tab////tab////tab////tab////tab//sDebitCredit=arrayGet(arDefDebitCredit\\comma\\n)//crlf////tab////tab////tab////tab////tab////tab//sGLAccount=arrayGet(arDefGLAccount\\comma\\n)//crlf////tab////tab////tab////tab////tab////tab//sFieldID=arrayGet(arDefFieldID\\comma\\n)//crlf////tab////tab////tab////tab////tab////tab//bReverseSign=arrayGet(arDefReverse_Sign\\comma\\n)//crlf////tab////crlf////tab////tab////tab////tab////tab////tab////get the amount//crlf////tab////tab////tab////tab////tab////tab//dAmount=0//crlf////tab////tab////tab////tab////tab////tab//sReference=\\quot\\\\quot\\//crlf////crlf////tab////tab////tab////tab////tab////tab////get the field ID not including the Cash Drawer or Daily Sales prefix//crlf////tab////tab////tab////tab////tab////tab//sLookupField=trim(getElement(sFieldID\\comma\\1\\comma\\\\quot\\~~pipe~~\\quot\\))//crlf////tab////tab////tab////tab////tab////tab//sReference=sLookupField//crlf////tab////tab////tab////tab////tab////tab//sLookupField=replaceSubstring(sLookupField\\comma\\\\quot\\:\\quot\\\\comma\\\\quot\\_\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////appendToLog(\\quot\\sLookupField=\\quot\\\\plus\\sLookupField)//crlf////crlf////tab////tab////tab////tab////tab////tab//if(startsWith(sFieldID\\comma\\\\quot\\Daily Sales\\quot\\))//crlf////tab////tab////tab////tab////tab////tab////tab////sales driver//crlf////tab////tab////tab////tab////tab////tab////tab//s=getToken(\\quot\\homedir\\quot\\)\\plus\\\\quot\\data~~backslash~~\\quot\\\\plus\\sHashID\\plus\\\\quot\\~~backslash~~salesexport.\\quot\\\\plus\\formatDate(dt\\comma\\\\quot\\MM-dd-yyyy\\quot\\)\\plus\\\\quot\\.bin\\quot\\//crlf////tab////tab////tab////tab////tab////tab////tab//dAmount=value(lookup(\\quot\\Tudors_Journal_SalesExport_Amount_By_Field\\quot\\\\comma\\sLookupField\\comma\\0\\comma\\\\quot\\filename=\\quot\\\\plus\\s))//crlf////tab////tab////tab////tab////tab////tab//elseif(startsWith(sFieldID\\comma\\\\quot\\Cash Drawer\\quot\\))//crlf////tab////tab////tab////tab////tab////tab////tab////cash drawer//crlf////tab////tab////tab////tab////tab////tab////tab//s=getToken(\\quot\\homedir\\quot\\)\\plus\\\\quot\\data~~backslash~~\\quot\\\\plus\\sHashID\\plus\\\\quot\\~~backslash~~cash_drawer.\\quot\\\\plus\\formatDate(dt\\comma\\\\quot\\MM-dd-yyyy\\quot\\)\\plus\\\\quot\\.bin\\quot\\//crlf////tab////tab////tab////tab////tab////tab////tab//if(pos(\\quot\\_AM\\quot\\\\comma\\sLookupField)>=0)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sLookupField1=replaceSubstring(sLookupField\\comma\\\\quot\\_AM\\quot\\\\comma\\\\quot\\\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//dAmount=value(lookup(\\quot\\Tudors_Journal_CashDrawer_AM_Amount_By_Field\\quot\\\\comma\\sLookupField1\\comma\\0\\comma\\\\quot\\filename=\\quot\\\\plus\\s))//crlf////tab////tab////tab////tab////tab////tab////tab////tab////appendToLog(\\quot\\sLookupField: \\quot\\\\plus\\sLookupField\\plus\\\\quot\\ sLookupField1: \\quot\\\\plus\\sLookupField1\\plus\\\\quot\\ Amound: \\quot\\\\plus\\dAmount)//crlf////tab////tab////tab////tab////tab////tab////tab//elseif(pos(\\quot\\_PM\\quot\\\\comma\\sLookupField)>=0)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//sLookupField1=replaceSubstring(sLookupField\\comma\\\\quot\\_PM\\quot\\\\comma\\\\quot\\\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//dAmount=value(lookup(\\quot\\Tudors_Journal_CashDrawer_PM_Amount_By_Field\\quot\\\\comma\\sLookupField1\\comma\\0\\comma\\\\quot\\filename=\\quot\\\\plus\\s))//crlf////tab////tab////tab////tab////tab////tab////tab////tab////appendToLog(\\quot\\sLookupField: \\quot\\\\plus\\sLookupField\\plus\\\\quot\\ sLookupField1: \\quot\\\\plus\\sLookupField1\\plus\\\\quot\\ Amound: \\quot\\\\plus\\dAmount)//crlf////tab////tab////tab////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////tab////tab////tab//dAmount=value(lookup(\\quot\\Tudors_Journal_CashDrawer_Amount_By_Field\\quot\\\\comma\\sLookupField\\comma\\0\\comma\\\\quot\\filename=\\quot\\\\plus\\s))//crlf////tab////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\Error: Missing source in line \\quot\\\\plus\\(n\\plus\\1)\\plus\\\\quot\\ of journal definition\\quot\\)//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////tab////set the amount based on if it\\apos\\s a debit or credit and the reverse sign setting//crlf////tab////tab////tab////tab////tab////tab//if(sDebitCredit=\\quot\\debit\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab//dAmount=-dAmount//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab////crlf////tab////tab////tab////tab////tab////tab//if(boolean(bReverseSign))//crlf////tab////tab////tab////tab////tab////tab////tab//dAmount=-dAmount//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////tab//if(sLookupField=\\quot\\Food_AM\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab//dAMFood=dAmount//crlf////tab////tab////tab////tab////tab////tab//elseif(sLookupField=\\quot\\Food_PM\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab//dPMFood=dAmount//crlf////tab////tab////tab////tab////tab////tab//elseif(sLookupField=\\quot\\Cash Deposit_AM\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab//dAMDeposit=dAmount//crlf////tab////tab////tab////tab////tab////tab//elseif(sLookupField=\\quot\\Cash Deposit_PM\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab//dPMDeposit=dAmount//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////tab//if(dAmount<>0)//crlf////tab////tab////tab////tab////tab////tab////tab////add a new record to the output file//crlf////tab////tab////tab////tab////tab////tab////tab//r=driverAddNewRecord(d)//crlf////tab////tab////tab////tab////tab////tab////tab//if(iRecordStart=-1)//crlf////tab////tab////tab////tab////tab////tab////tab////tab//iRecordStart=r//crlf////tab////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab////tab//iRecordEnd=r//crlf////crlf////tab////tab////tab////tab////tab////tab////tab////appendToLog(\\quot\\*** r=\\quot\\\\plus\\r\\plus\\\\quot\\ sSalesDriverField=\\quot\\\\plus\\sSalesDriverField\\plus\\\\quot\\ dAmount=\\quot\\\\plus\\dAmount)//crlf////tab////tab////tab////tab////tab////tab////tab////crlf////tab////tab////tab////tab////tab////tab////tab//sCompanyCode=lookup(Tudors_Sage_Company_Code_by_HashID\\comma\\sHashID)//crlf////tab////tab////tab////tab////tab////tab////tab//sStoreCode=lookup(Tudors_Sage_Store_Number_by_HashID\\comma\\sHashID)//crlf////crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\Posting_Date\\quot\\\\comma\\r\\comma\\dt)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\HashID\\quot\\\\comma\\r\\comma\\sHashID)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\Company_Code\\quot\\\\comma\\r\\comma\\sCompanyCode)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\Store_Code\\quot\\\\comma\\r\\comma\\sStoreCode)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\Document_Reference\\quot\\\\comma\\r\\comma\\sReference)//crlf////tab////tab////tab////tab////tab////tab////tab//if((startsWith(sReference\\comma\\\\quot\\tax\\quot\\)) or (startsWith(sReference\\comma\\\\quot\\promo\\quot\\)))//crlf////tab////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\Account_No\\quot\\\\comma\\r\\comma\\sGLAccount\\plus\\\\quot\\-000\\quot\\)//crlf////tab////tab////tab////tab////tab////tab////tab//else//crlf////tab////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\Account_No\\quot\\\\comma\\r\\comma\\sGLAccount\\plus\\\\quot\\-\\quot\\\\plus\\padLeft(sStoreCode\\comma\\3\\comma\\\\quot\\0\\quot\\))//crlf////tab////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\DebitCredit\\quot\\\\comma\\r\\comma\\sDebitCredit)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\Amount\\quot\\\\comma\\r\\comma\\dAmount)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\Sort_Order\\quot\\\\comma\\r\\comma\\n)//crlf////crlf////tab////tab////tab////tab////tab////tab////tab//dAmountTtl=dAmountTtl\\plus\\dAmount//crlf////tab////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////tab//n\\plus\\\\plus\\//crlf////tab////tab////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab////tab////tab////record the valid status for all records in the transaction.  The default is true//crlf////tab////tab////tab////tab////tab////so it only needs to be done when the transaction doesn\\apos\\t sum to 0//crlf////tab////tab////tab////tab////tab//if(abs(dAmountTtl)>=0.01)//crlf////tab////tab////tab////tab////tab////tab//r=iRecordStart//crlf////tab////tab////tab////tab////tab////tab//while(r<=iRecordEnd)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\Transaction_Is_Valid\\comma\\r\\comma\\false)//crlf////tab////tab////tab////tab////tab////tab////tab//r\\plus\\\\plus\\//crlf////tab////tab////tab////tab////tab////tab//endwhile//crlf////tab////tab////tab////tab////tab//endif//crlf////tab////tab////tab////tab////tab////crlf////tab////tab////tab////tab////tab////record errors for missing deposits.  The default is true//crlf////tab////tab////tab////tab////tab////so it only needs to be done when a deposit is missing//crlf////tab////tab////tab////tab////tab//bAMDepositOk=((dAmFood=0) or (dAMDeposit<>0))//crlf////tab////tab////tab////tab////tab//bPMDepositOk=((dPmFood=0) or (dPMDeposit<>0))//crlf////tab////tab////tab////tab////tab//if((not(bAMDepositOk)) or (not(bPMDepositOk)))//crlf////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\dAmFood: \\quot\\\\plus\\dAmFood\\plus\\\\quot\\ dAMDeposit: \\quot\\\\plus\\dAMDeposit)//crlf////tab////tab////tab////tab////tab////tab//r=iRecordStart//crlf////tab////tab////tab////tab////tab////tab//while(r<=iRecordEnd)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\AMDepositOk\\quot\\\\comma\\r\\comma\\bAMDepositOk)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\PMDepositOk\\quot\\\\comma\\r\\comma\\bPMDepositOk)//crlf////tab////tab////tab////tab////tab////tab////tab//r\\plus\\\\plus\\//crlf////tab////tab////tab////tab////tab////tab//endwhile//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab////record whether the gross sales for the cash drawers matches the gross sales for the day//crlf////tab////tab////tab////tab////tab//s=getToken(\\quot\\homedir\\quot\\)\\plus\\\\quot\\data~~backslash~~\\quot\\\\plus\\sHashID\\plus\\\\quot\\~~backslash~~salesexport.\\quot\\\\plus\\formatDate(dt\\comma\\\\quot\\MM-dd-yyyy\\quot\\)\\plus\\\\quot\\.bin\\quot\\//crlf////tab////tab////tab////tab////tab//dDayGrossSales=value(lookup(\\quot\\Tudors_Journal_SalesExport_Amount_By_Field\\quot\\\\comma\\\\quot\\Gross Sales_Gross Sales\\quot\\\\comma\\0\\comma\\\\quot\\filename=\\quot\\\\plus\\s))//crlf////crlf////tab////tab////tab////tab////tab//s=getToken(\\quot\\homedir\\quot\\)\\plus\\\\quot\\data~~backslash~~\\quot\\\\plus\\sHashID\\plus\\\\quot\\~~backslash~~cash_drawer.\\quot\\\\plus\\formatDate(dt\\comma\\\\quot\\MM-dd-yyyy\\quot\\)\\plus\\\\quot\\.bin\\quot\\//crlf////tab////tab////tab////tab////tab//dCashDrawerGrossSales=value(lookup(\\quot\\Tudors_Journal_CashDrawer_Amount_By_Field\\quot\\\\comma\\\\quot\\Total Sales\\quot\\\\comma\\0\\comma\\\\quot\\filename=\\quot\\\\plus\\s))//crlf////tab////tab////tab////tab////tab//dGiftCertSold=value(lookup(\\quot\\Tudors_Journal_CashDrawer_Amount_By_Field\\quot\\\\comma\\\\quot\\GC Sold\\quot\\\\comma\\0\\comma\\\\quot\\filename=\\quot\\\\plus\\s))//crlf////tab////tab////tab////tab////tab//dCashDrawerGrossSales=dCashDrawerGrossSales-dGiftCertSold//crlf////crlf////tab////tab////tab////tab////tab//dCashDrawerVariance=dCashDrawerGrossSales-dDayGrossSales//crlf////tab////tab////tab////tab////tab//if(abs(dCashDrawerVariance)>=0.01)//crlf////tab////tab////tab////tab////tab////tab//appendToLog(\\quot\\dDayGrossSales: \\quot\\\\plus\\dDayGrossSales\\plus\\\\quot\\ dCashDrawerGrossSales: \\quot\\\\plus\\dCashDrawerGrossSales\\plus\\\\quot\\ dGiftCertSold: \\quot\\\\plus\\dGiftCertSold)//crlf////tab////tab////tab////tab////tab////tab//r=iRecordStart//crlf////tab////tab////tab////tab////tab////tab//while(r<=iRecordEnd)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\Cash_Drawer_Valid\\quot\\\\comma\\r\\comma\\false)//crlf////tab////tab////tab////tab////tab////tab////tab//driverPutFieldAbsolute(d\\comma\\\\quot\\Cash_Drawer_Variance\\quot\\\\comma\\r\\comma\\dCashDrawerVariance)//crlf////tab////tab////tab////tab////tab////tab////tab//r\\plus\\\\plus\\//crlf////tab////tab////tab////tab////tab////tab//endwhile//crlf////tab////tab////tab////tab////tab//endif//crlf////crlf////tab////tab////tab////tab////tab//dt=incrementTime(dt\\comma\\1)//crlf////tab////tab////tab////tab//endwhile//crlf////tab////tab////tab////tab//nHashID\\plus\\\\plus\\//crlf////tab////tab////tab//endwhile//crlf////crlf////tab////tab////tab//driverClose(d)//crlf////tab////tab////tab//appendToLog(\\quot\\createTudorsSageExportPreview Final Filesize=\\quot\\\\plus\\fileSize(sFilename))//crlf////tab////tab////tab//return(\\quot\\ok\\quot\\)//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf////crlf//[!------------------------------------------------------------------------//crlf//createTudorsSageExportFile//crlf//--------------------------------------------------------------------------]//crlf//<conditional expression:(\\quot\\__Action__\\quot\\=\\quot\\createTudorsSageExportFile\\quot\\)>//crlf////tab//<conditional expression:(\\quot\\__ActionDescription__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionParams__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionReturns__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab//</conditional>//crlf////tab//<conditional expression:(\\quot\\__ActionExec__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab////tab//<!include type:script; name:\\quot\\createTudorsSageExportFile\\quot\\; commands:\\quot\\//crlf////tab////tab//\\quot\\>//crlf////tab//</conditional>//crlf//</conditional>//crlf////crlf//^
ID=AgentStart|X=151|Y=41|W=150|H=20|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=AgentStart|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=left_bar|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=577751|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|AgentSuspended=false|AgentDebug=false|AgentReport=never|^
ID=577751|X=183|Y=219|W=119|H=45|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=AgentTerminate|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=|AttachLeft=|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=AgentTabs|X=151|Y=15|W=150|H=20|AutoHeight=true|AutoWidth=true|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=false|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=top_bar|AttachLeft=left_bar|AlignLeft=|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<table class='tabdialog'>//crlf////tab//<tr>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentStart');agentSetVisible(true)\\quot\\>Agent</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentDescription');agentSetVisible(false)\\quot\\>Description</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentStatus');agentSetVisible(false)\\quot\\>Status</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentScript');agentSetVisible(false)\\quot\\>Script</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'ScriptText');agentSetVisible(false)\\quot\\>Script (Text)</span></td>//crlf////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'AgentChart');agentSetVisible(false);agentFormatNodes(document.getElementById('AgentChart'));agentDrawConnectors(document.getElementById('AgentChart'))\\quot\\>Chart</span></td>//crlf////tab//</tr>//crlf//</table>//crlf//^
ID=AgentScript|X=151|Y=41|W=1255|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Aspect_Script|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<conditional expression:(\\quot\\__ExecAgentScript__\\quot\\=\\quot\\true\\quot\\)>//crlf////tab//<!include type:script; name:\\quot\\agent_Export Sales - Tudors\\quot\\; commands:\\quot\\//crlf////crlf////tab////tab//::node\\comma\\VWaUGu88BMN0hDYWzZj57VpG_Export Sales - Tudors\\comma\\AgentStart\\comma\\AgentStart\\comma\\0\\comma\\//crlf////tab////tab////Created 06-28-2024 23:01:13//crlf////crlf////tab////tab////Force reporting when the agent is executed manually//crlf////tab////tab//bForceReport=((\\quot\\__ManualExecAgent__\\quot\\=\\quot\\true\\quot\\) or (false))//crlf////crlf////tab////tab////Record the starting time//crlf////tab////tab//tAgentStart=now()//crlf////crlf////tab////tab//::node\\comma\\VWaUGu88BMN0hDYWzZj57VpG_Export Sales - Tudors\\comma\\AgentTerminate\\comma\\577751\\comma\\2\\comma\\//crlf////tab////tab//scriptSetResult(2)//crlf////tab//\\quot\\>//crlf//</conditional>^
ID=ScriptText|X=151|Y=41|W=1255|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<span style='font:8pt tahoma;color:black'>//amp//lt;state//amp//gt;06282024//amp//nbsp;230113//amp//lt;/state//amp//gt;<br>//amp//lt;<span class='includecontrol'>conditional</span>//amp//nbsp;expression:(\\quot\\__ExecAgentScript__\\quot\\=\\quot\\true\\quot\\)//amp//gt;<br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//lt;!<span class='includecontrol'>include</span>//amp//nbsp;type:script;//amp//nbsp;name:\\quot\\agent_Export//amp//nbsp;Sales//amp//nbsp;-//amp//nbsp;Tudors\\quot\\;//amp//nbsp;commands:\\quot\\<br><br><span class='comment'>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//Created//amp//nbsp;06-28-2024//amp//nbsp;23:01:13</span><br><br><span class='comment'>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//Force//amp//nbsp;reporting//amp//nbsp;when//amp//nbsp;the//amp//nbsp;agent//amp//nbsp;is//amp//nbsp;executed//amp//nbsp;manually</span><br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;bForceReport=((\\quot\\__ManualExecAgent__\\quot\\=\\quot\\true\\quot\\)//amp//nbsp;or//amp//nbsp;(false))<br><br><span class='comment'>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//Record//amp//nbsp;the//amp//nbsp;starting//amp//nbsp;time</span><br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;tAgentStart=<span class='keyword'>now</span>()<br><br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;<span class='keyword'>scriptSetResult</span>(2)<br>//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;//amp//nbsp;\\quot\\//amp//gt;<br>//amp//lt;/<span class='includecontrol'>conditional</span>//amp//gt;<br><br></span>^
ID=AgentDescription|X=151|Y=41|W=1255|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=AgentStatus|X=151|Y=41|W=1255|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=Aspect_Script|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|^
ID=AgentChart|X=151|Y=41|W=1255|H=800|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=false|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=null|content_type=html|onload=|LockEditing=false|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=AgentTabs|AttachLeft=|AlignLeft=AgentTabs|AlignRight=|RefreshCondition=|zindex=1|opacity=10|Background=Transparent|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=<state>06282024 230113</state>//crlf//<canvas id=\\quot\\agent_doc_canvas\\quot\\ width=\\quot\\100\\quot\\ height=\\quot\\100\\quot\\ style=\\quot\\position: absolute; top: 0px; left: 0px; width: 100px; height: 100px; border-style: none; z-index: 2;\\quot\\></canvas><div id=\\quot\\chartAgentStart\\quot\\ isagentdoc=\\quot\\true\\quot\\ content_type=\\quot\\AgentAction\\quot\\ agentchildyesnode=\\quot\\chart577751\\quot\\ style=\\quot\\position: absolute; top: 0px; left: 0px; width: 120px; height: auto; display: block;\\quot\\><canvas width=\\quot\\120\\quot\\ height=\\quot\\113\\quot\\ style=\\quot\\width: 120px; height: 113px; position: absolute; top: 0px; left: 0px;\\quot\\></canvas><div class=\\quot\\agentstart\\quot\\><b>Export Sales - Tudors</b><br><span style=\\quot\\font-weight:normal;color:green\\quot\\>Active</span><br><span style=\\quot\\font-weight:normal;color:black\\quot\\>Debugging Is Off</span><br>Report Status: never<br>Report To: <br>Name Params: </div></div><div id=\\quot\\chart577751\\quot\\ isagentdoc=\\quot\\true\\quot\\ content_type=\\quot\\AgentTerminate\\quot\\ style=\\quot\\position: absolute; top: 142px; left: 154px; width: 120px; height: auto; display: block;\\quot\\><canvas width=\\quot\\120\\quot\\ height=\\quot\\46\\quot\\ style=\\quot\\width: 120px; height: 46px; position: absolute; top: 0px; left: 0px;\\quot\\></canvas><div class=\\quot\\agentterminator\\quot\\>Terminate<br><span style=\\quot\\color:black\\quot\\>Other</span></div></div>^
ID=464641|X=300|Y=126|W=1255|H=768|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=[!------------------------------------------------------------------------//crlf////crlf//--------------------------------------------------------------------------]//crlf//<conditional expression:(\\quot\\__getContent__\\quot\\=\\quot\\true\\quot\\) or (\\quot\\{@formatDate(now()\\comma\\\\quot\\MMddyyyy\\quot\\)}\\quot\\=\\quot\\07172024\\quot\\)>//crlf//<!-- Dialog used to edit a record -->//crlf//<div ID=\\quot\\TUDORS_JOURNAL_TRANSACTION_DEFINITIONDialog\\quot\\ class=\\quot\\default_table_dialog\\quot\\ style=\\quot\\height:auto; width:100\\percent\\; max-width:500px; display:none;\\quot\\>//crlf////tab//<div style=\\quot\\padding:5px;width:100\\percent\\\\quot\\>//crlf////tab////tab//<!-- set this image to visible to include a close icon when the dialog header is disabled -->//crlf////tab////tab//<div class=\\quot\\EditDialogCloseIcon\\quot\\ onclick=\\quot\\closeTableEditDialog(this)\\quot\\></div>//crlf////crlf////tab////tab//<!--//tab//Note:  If a a Javascript function named initializeDialogxxx where xxx is the dialog ID is defined\\comma\\ //crlf////tab////tab////tab//it will be called//tab//after the dialog values have been set and before the dialog is made visible.//crlf////tab////tab////tab////crlf////tab////tab////tab//An initialization function may also be specified by including it in an attribute named 'aspectinit'//crlf////tab////tab////tab//in the dialog div above.  Only include the function name with no parentheses or arguments.  //crlf////tab////tab////tab//Arguments can be made//tab//available to the function by including them as attributes or by embedding //crlf////tab////tab////tab//them in this div.  Use this method when the dialog ID is randomized to allow for multiple instances//crlf////tab////tab////tab//in one document.//crlf////crlf////tab////tab////tab//If an Aspect script is defined with the ID xxx_DataSubmitted where xxx is the driver ID\\comma\\ it will//crlf////tab////tab////tab//be called whenever data is submitted due to an edit in either the table or the dialog.//crlf////tab////tab////tab//Arguments passed to the script are in the form://crlf////crlf////tab////tab////tab////tab//driver=xxx//amp//r=n//amp//fields=//amp//values=//crlf////crlf////tab////tab////tab//where driver is the name of a system driver\\comma\\ r is the absolute record number\\comma\\//crlf////tab////tab////tab//fields is a pipe-delimited list of field ID's and values is a pipe-delimited list of//crlf////tab////tab////tab//values.  Ampersands and pipes in the values are tokenized by surrounding//crlf////tab////tab////tab//them with two forward slashes.//crlf////tab////tab//-->//crlf// //crlf////tab////tab//<!include type:expression; expression:htmlConstant(\\quot\\TextFieldWidth\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\\\quot\\300px\\quot\\)>//crlf////tab////tab//<!include type:expression; expression:htmlConstant(\\quot\\NumberFieldWidth\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\\\quot\\150px\\quot\\)>//crlf////crlf////tab////tab//<!-- The TableEditDialogTabsContainerExclusive and TableEditDialogSelectContainerExclusive//crlf////tab////tab////tab//classes are used to make either the tabs or the select box visible\\comma\\ depending on the//crlf////tab////tab////tab//size of the browser.  If only one or two tabs are to be included\\comma\\ the //crlf////tab////tab////tab//TableEditDialogTabsContainer class can be used for the tabs and the select box can//crlf////tab////tab////tab//be ommitted.//crlf////tab////tab//-->//crlf////tab////tab//<div class=\\quot\\TableEditDialogTabsContainerExclusive\\quot\\>//crlf////tab////tab////tab//<table class='tabdialog'>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td><span onClick=\\quot\\showTab(this\\comma\\'__salt__Main')\\quot\\>Main</span></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab//</table>//tab////crlf////tab////tab//</div>//crlf////crlf////tab////tab//<div class=\\quot\\TableEditDialogSelectContainerExclusive\\quot\\>//crlf////tab////tab////tab//<select onChange=\\quot\\showTab(this);this.blur();\\quot\\ class=\\quot\\TableEditDialogSelect\\quot\\>//crlf////tab////tab////tab////tab//<option value='__salt__main'>Main</option>//crlf////tab////tab////tab//</select>//crlf////tab////tab//</div>//crlf////crlf////tab////tab//<!-- Main -->//crlf////tab////tab//<div ID=\\quot\\__salt__Main\\quot\\ class=\\quot\\DialogTabContent\\quot\\>//crlf////tab////tab////tab//<table style=\\quot\\width:100\\percent\\\\quot\\>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Debit / Credit</td>//crlf////tab////tab////tab////tab////tab//<td><!include type:expression; expression:htmlSelect(\\quot\\Tudors_Journal_Debit_Or_Credit\\quot\\\\comma\\\\quot\\DebitCredit\\quot\\\\comma\\\\quot\\\\quot\\\\comma\\\\quot\\style=\\quot\\+quote(\\quot\\width:auto\\quot\\)+\\quot\\ onChange=\\quot\\+quote(\\quot\\submitDialogCell(this)\\quot\\))></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>G/L Account</td>//crlf////tab////tab////tab////tab////tab//<td><input ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ ONKEYDOWN=\\quot\\return keyDown(event\\comma\\this);\\quot\\ STYLE=\\quot\\width:100\\percent\\;max-width:__TextFieldWidth__\\quot\\ VALUE=\\quot\\\\quot\\ NAME=\\quot\\GLAccount\\quot\\ TYPE=\\quot\\text\\quot\\></input></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Field</td>//crlf////tab////tab////tab////tab////tab//<td>//crlf////tab////tab////tab////tab////tab////tab//<!include type:Collection;//crlf////tab////tab////tab////tab////tab////tab////tab//ID:\\quot\\__salt__FieldID\\quot\\;//crlf////tab////tab////tab////tab////tab////tab////tab//Name:\\quot\\FieldID\\quot\\;//crlf////tab////tab////tab////tab////tab////tab////tab//CollectionID:\\quot\\Tudors_Sage_Export_Field\\quot\\;//crlf////tab////tab////tab////tab////tab////tab////tab//DataList:\\quot\\false\\quot\\;//crlf////tab////tab////tab////tab////tab////tab////tab//SubmitDialogCell:\\quot\\true\\quot\\;//crlf////tab////tab////tab////tab////tab////tab////tab//Selected:\\quot\\\\quot\\;//crlf////tab////tab////tab////tab////tab////tab////tab//HtmlParams:\\quot\\style='width:360px'\\quot\\;//crlf////tab////tab////tab////tab////tab////tab////tab//DriverParams:\\quot\\coll=TudorsSageExportFields\\quot\\;//crlf////tab////tab////tab////tab////tab////tab////tab//Filter:\\quot\\\\quot\\;//crlf////tab////tab////tab////tab////tab////tab////tab//SystemDriverName:\\quot\\\\quot\\;//crlf////tab////tab////tab////tab////tab////tab////tab//HideSingleSelection:\\quot\\\\quot\\;//crlf////tab////tab////tab////tab////tab////tab//>//crlf////tab////tab////tab////tab////tab//</td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab////tab//<tr>//crlf////tab////tab////tab////tab////tab//<td>Notes</td>//crlf////tab////tab////tab////tab////tab//<td><textarea style='width:360px;height:90px' ONCHANGE=\\quot\\submitDialogCell(this)\\quot\\ STYLE=\\quot\\width:100\\percent\\;max-width:__TextFieldWidth__\\quot\\ NAME=\\quot\\Notes\\quot\\></textarea></td>//crlf////tab////tab////tab////tab//</tr>//crlf////tab////tab////tab//</table>//crlf////tab////tab//</div>//crlf////crlf////tab//</div>//crlf//</div>//crlf////crlf//<!include type:driver;//crlf////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab//title: \\quot\\\\quot\\;//crlf////tab//HashID: \\quot\\\\quot\\;//crlf////tab//driver: \\quot\\TUDORS_JOURNAL_TRANSACTION_DEFINITION\\quot\\;//crlf////tab//name: \\quot\\\\quot\\;//crlf////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab//dispose: \\quot\\false\\quot\\;//crlf////tab//state: \\quot\\\\quot\\;//crlf////tab//params: \\quot\\keyexpression=ID~~pipe~~CacheTtl=0~~pipe~~Metadata=TUDORS_JOURNAL_TRANSACTION_DEFINITION\\quot\\;//crlf////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab//display: \\quot\\Sage Export Definition\\quot\\;//crlf////tab//fields: \\quot\\\\quot\\;//crlf////tab//IncludeFields: \\quot\\\\quot\\;//crlf////tab//ExcludeFields: \\quot\\\\quot\\;//crlf////tab//sort: \\quot\\ID\\quot\\;//crlf////tab//filter: \\quot\\true\\quot\\;//crlf////tab//class: \\quot\\basic1\\quot\\;//crlf////tab//maxrecords: \\quot\\300\\quot\\;//crlf////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab//style: \\quot\\width:auto\\quot\\;//crlf////tab//canSelect: \\quot\\true\\quot\\;//crlf////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab//canEdit: \\quot\\true\\quot\\;//crlf////tab//canAdd: \\quot\\true\\quot\\;//crlf////tab//canDelete: \\quot\\true\\quot\\;//crlf////tab//InsertPosition: \\quot\\top\\quot\\;//crlf////tab//RefreshOnDataSubmit: \\quot\\true\\quot\\;//crlf////tab//inspectMenu: \\quot\\\\quot\\;//crlf////tab//EmbedValues: \\quot\\\\quot\\;//crlf////tab//EditDialogID: \\quot\\TUDORS_JOURNAL_TRANSACTION_DEFINITIONDialog\\quot\\;//crlf////tab//_EditDialogID: \\quot\\DocumentID~~pipe~~Widget~~pipe~~Item~~pipe~~TUDORS_JOURNAL_TRANSACTION_DEFINITION~~pipe~~__salt__\\quot\\;//crlf////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab//ExternalFilters: \\quot\\\\quot\\;//crlf////tab//TableControls: \\quot\\true\\quot\\;//crlf////tab//TableHeader: \\quot\\true\\quot\\;//crlf////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab//RecordCount: \\quot\\true\\quot\\;//crlf////tab//Timestamp: \\quot\\true\\quot\\;//crlf////tab//SelectDisplay: \\quot\\true\\quot\\;//crlf////tab//EditDisplay: \\quot\\true\\quot\\;//crlf////tab//Menu: \\quot\\\\quot\\;//crlf////tab//faq: \\quot\\\\quot\\;//crlf////tab//procedure: \\quot\\\\quot\\;//crlf////tab//video: \\quot\\\\quot\\;//crlf////tab//Messages: \\quot\\true\\quot\\;//crlf////tab//ChartType: \\quot\\\\quot\\;//crlf////tab//ChartWidth: \\quot\\640\\quot\\;//crlf////tab//ChartHeight: \\quot\\480\\quot\\;//crlf////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab//ChartStyle: \\quot\\display:none\\quot\\;//crlf////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab//_Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab//debug: \\quot\\false\\quot\\;//crlf//>//crlf////crlf//</conditional>^
ID=273545|X=300|Y=126|W=1255|H=768|AutoHeight=false|AutoWidth=false|widthpcnt=0|minwidth=0|maxwidth=0|minheight=0|maxheight=0|ProcessContent=true|Border=true|BorderStyle=solid 1 black|Visible=true|Print=true|RefreshInterval=0|RefreshWhenHidden=false|ExcludeFromAutospace=true|EditExternally=false|content_type=html|onload=|LockEditing=true|LineWrap=false|Publish=true|DragDeployed=false|SizeDeployed=false|ShowStatusIcon=true|AttachTop=code|AttachLeft=|AlignLeft=code|AlignRight=|RefreshCondition=|zindex=2|opacity=10|Background=white|Source=|DefaultSource=false|AgentChildYesNode=|AgentChildNoNode=|AgentSensor=|AgentAction=|AgentNodeNotes=|AgentNodeParams=|AgentNodeExpression=|AgentNodeActionReturnValue=|AgentNodeComment=|AgentNodeTermType=|Content=[!------------------------------------------------------------------------//crlf////crlf//--------------------------------------------------------------------------]//crlf//<conditional expression:(\\quot\\__getContent__\\quot\\=\\quot\\true\\quot\\) or (\\quot\\{@formatDate(now()\\comma\\\\quot\\MMddyyyy\\quot\\)}\\quot\\=\\quot\\09212024\\quot\\)>//crlf////crlf////tab//<_include type:expression; expression:htmlConstant(\\quot\\salt\\quot\\\\comma\\\\quot\\__\\quot\\\\comma\\lowercase(getSalt(4)))>//crlf////tab//<_include type:expression; expression:htmlConstant(\\quot\\DateFrom\\quot\\\\comma\\\\quot\\__DateFrom__\\quot\\\\comma\\\\quot\\07-02-2024\\quot\\)>//crlf////tab//<_include type:expression; expression:htmlConstant(\\quot\\DateTo\\quot\\\\comma\\\\quot\\__DateTo__\\quot\\\\comma\\\\quot\\07-02-2024\\quot\\)>//crlf////crlf////tab//<script ID=\\quot\\JS273545\\quot\\>//crlf////tab////tab//function exportSalesToSage(TableID\\comma\\s) {//crlf////crlf////tab////tab////tab////if complete\\comma\\ display message and exit//crlf////tab////tab////tab//if(s) {//crlf////tab////tab////tab////tab//if(s.toUpperCase().startsWith(\\quot\\ERROR\\quot\\)) {//crlf////tab////tab////tab////tab////tab//showDialog(\\quot\\msg=\\quot\\+s+\\quot\\<br><br>//amp//fnOk=close\\quot\\);//crlf////tab////tab////tab////tab//}//crlf////tab////tab////tab////tab//else {//crlf////tab////tab////tab////tab////tab////if the result is successful\\comma\\ the first line is a message followed by a cr and then the output//crlf////tab////tab////tab////tab////tab//appendToLog(\\quot\\s=\\quot\\+s);//crlf////tab////tab////tab////tab////tab//var n=s.indexOf(\\quot\\\r\\quot\\);//crlf////tab////tab////tab////tab////tab//var sMsg=s.substring(0\\comma\\n);//crlf////tab////tab////tab////tab////tab//var sOutput=s.substring(n+1)+\\quot\\\r\n\\quot\\;//crlf////tab////tab////tab////tab////tab//showDialog(\\quot\\msg=\\quot\\+sMsg+\\quot\\<br><br>//amp//fnOk=close\\quot\\);//crlf////tab////tab////tab////tab////tab////refreshTable(TableID\\comma\\\\quot\\refresh\\quot\\);//crlf////tab////tab////crlf////tab////tab////tab////tab////tab//if (navigator.appName !='Microsoft Internet Explorer'){//crlf////tab////tab////tab////tab////tab////tab//window.open('data:text/csv;charset=utf-8\\comma\\' + escape(sOutput));//crlf////tab////tab////tab////tab////tab//}  else{//crlf////tab////tab////tab////tab////tab////tab//var popup=window.open(''\\comma\\'csv'\\comma\\'');//crlf////tab////tab////tab////tab////tab////tab//popup.document.write(sOutput);//crlf////tab////tab////tab////tab////tab//}//crlf////tab////tab////tab////tab//};//crlf////tab////tab////tab////tab//return;//crlf////tab////tab////tab//};//crlf////crlf////tab////tab////tab////get driver params from table//crlf////tab////tab////tab//var eTable=document.getElementById(TableID);//crlf////tab////tab////tab//var sParams=eTable.getAttribute(\\quot\\AspectParams\\quot\\);//crlf////tab////tab////tab//var sFilter=eTable.getAttribute(\\quot\\AspectFilterActive\\quot\\);//crlf////crlf////tab////tab////tab////get the filename//crlf////tab////tab////tab//var sFilename=getElementValue(sParams\\comma\\\\quot\\Filename\\quot\\\\comma\\\\quot\\~~pipe~~\\quot\\);//crlf////tab////tab////tab//var sDateFrom=getElementValue(sParams\\comma\\\\quot\\DateFrom\\quot\\\\comma\\\\quot\\~~pipe~~\\quot\\);//crlf////tab////tab////tab//var sDateTo=getElementValue(sParams\\comma\\\\quot\\DateTo\\quot\\\\comma\\\\quot\\~~pipe~~\\quot\\);//crlf////crlf////tab////tab////tab////get the HashID of the computer used to create the table.  This is the source//crlf////tab////tab////tab////for the agent action//crlf////tab////tab////tab//sHashID=eTable.getAttribute(\\quot\\AspectHashID\\quot\\);//crlf////crlf////tab////tab////tab////export sales//crlf////tab////tab////tab//showDialog(\\quot\\icon=true//amp//msg=Exporting sales...\\quot\\);//crlf////tab////tab////tab//var sUrl=getServer()+\\quot\\/?Network=GreenLight//amp//ID=getWidget//amp//DocumentID=VWaUGu88BMN0hDYWzZj57VpG\\quot\\;//crlf////tab////tab////tab//sUrl +=\\quot\\//amp//Widget=Export Sales - Tudors//amp//ContainerItemID=action_list\\quot\\;//crlf////tab////tab////tab//sUrl +=\\quot\\//amp//Action=exportSalesToSage//amp//ActionExec=true\\quot\\;//crlf////tab////tab////tab//sUrl +=\\quot\\//amp//Filename=\\quot\\+sFilename+\\quot\\//amp//Filter=\\quot\\+sFilter+\\quot\\//amp//DateFrom=\\quot\\+sDateFrom+\\quot\\//amp//DateTo=\\quot\\+sDateTo;//crlf////tab////tab////tab//sUrl +=\\quot\\//amp//Source=\\quot\\+sHashID;//crlf////tab////tab////tab//sFunc=\\quot\\exportSalesToSage('\\quot\\+TableID+\\quot\\'\\comma\\s)\\quot\\;//crlf////tab////tab////tab//asynchInclude(null\\comma\\sUrl\\comma\\sFunc\\comma\\sFunc);//crlf////tab////tab//};//crlf////tab//</script>//crlf////crlf////tab//[!------------------------------------------------------------------------//crlf////tab//Initialize the file//crlf////tab//--------------------------------------------------------------------------]//crlf////tab//<!include type:script; commands:\\quot\\//crlf////tab////tab//sFilename=getToken(\\quot\\temporary_files\\quot\\)+\\quot\\sageexportpreview___salt__.$$$\\quot\\//crlf////tab////tab//sParams=\\quot\\Filename=\\quot\\+sFilename+\\quot\\//amp//DateFrom=__DateFrom__//amp//DateTo=__DateTo__\\quot\\//crlf////tab////tab//appendToLog(\\quot\\Init preview.  Filename=\\quot\\+sFilename)//crlf////tab////tab//appendToLog(\\quot\\Init preview.  Filesize=\\quot\\+fileSize(sFilename))//crlf////tab////tab//appendToLog(\\quot\\Init preview.  Params=\\quot\\+sParams)//crlf////tab////tab//s=execAgentAction(\\quot\\createTudorsSageExportPreview\\quot\\\\comma\\sParams)//crlf////tab////tab//return(\\quot\\\\quot\\)//crlf////tab//\\quot\\>//crlf////crlf////tab//[!------------------------------------------------------------------------//crlf////tab//Filter - Company ID//crlf////tab//--------------------------------------------------------------------------]//crlf////tab//<!include type:ExternalDriverFilter;//crlf////tab////tab//InputType:\\quot\\Select\\quot\\;//crlf////tab////tab//ID:\\quot\\__salt__FilterCompany\\quot\\;//crlf////tab////tab//Condition:\\quot\\not('$value$'=0)\\quot\\;//crlf////tab////tab//Expression:\\quot\\Company_Code='$value$'\\quot\\;//crlf////tab////tab//Tooltip:\\quot\\\\quot\\;//crlf////tab////tab//HtmlParams:\\quot\\onChange=refreshTable('__salt__'\\comma\\'refresh'\\comma\\''\\comma\\'true')\\quot\\;//crlf////tab////tab//CollectionID:\\quot\\Tudors_Sage_Company_Codes_with_Select\\quot\\;//crlf////tab////tab//Datalist:\\quot\\\\quot\\;//crlf////tab////tab//Selected:\\quot\\\\quot\\;//crlf////tab////tab//DriverParams:\\quot\\\\quot\\;//crlf////tab////tab//Filter:\\quot\\\\quot\\;//crlf////tab////tab//SystemDriverName:\\quot\\\\quot\\;//crlf////tab//>//crlf////crlf////tab//[!------------------------------------------------------------------------//crlf////tab//Filter - Computer//crlf////tab//--------------------------------------------------------------------------]//crlf////tab//<!include type:ExternalDriverFilter;//crlf////tab////tab//InputType:\\quot\\Select\\quot\\;//crlf////tab////tab//ID:\\quot\\__salt__FilterComputer\\quot\\;//crlf////tab////tab//Condition:\\quot\\not('$value$'=0)\\quot\\;//crlf////tab////tab//Expression:\\quot\\HashID='$value$'\\quot\\;//crlf////tab////tab//Tooltip:\\quot\\\\quot\\;//crlf////tab////tab//HtmlParams:\\quot\\onChange=refreshTable('__salt__'\\comma\\'refresh'\\comma\\''\\comma\\'true')\\quot\\;//crlf////tab////tab//CollectionID:\\quot\\Tudors_Sage_Store_Name_by_HashID_with_Select\\quot\\;//crlf////tab////tab//Datalist:\\quot\\\\quot\\;//crlf////tab////tab//Selected:\\quot\\\\quot\\;//crlf////tab////tab//DriverParams:\\quot\\\\quot\\;//crlf////tab////tab//Filter:\\quot\\\\quot\\;//crlf////tab////tab//SystemDriverName:\\quot\\\\quot\\;//crlf////tab//>//crlf////crlf////tab//[!------------------------------------------------------------------------//crlf////tab//Filter - Invalid Transactions//crlf////tab//--------------------------------------------------------------------------]//crlf////tab//<span style=\\quot\\white-space:nowrap\\quot\\>//crlf////tab////tab//<!include type:ExternalDriverFilter;//crlf////tab////tab////tab//InputType:\\quot\\checkbox\\quot\\;//crlf////tab////tab////tab//ID:\\quot\\__salt__InvalidOnly\\quot\\;//crlf////tab////tab////tab//Condition:\\quot\\boolean('$value$')\\quot\\;//crlf////tab////tab////tab//Expression:\\quot\\(not(Transaction_Is_Valid)) or (not(AMDepositOk)) or (not(PMDepositOk))\\quot\\;//crlf////tab////tab////tab//Tooltip:\\quot\\\\quot\\;//crlf////tab////tab////tab//HtmlParams:\\quot\\onChange=refreshTable('__salt__'\\comma\\'refresh'\\comma\\''\\comma\\'true')\\quot\\;//crlf////tab////tab////tab//CollectionID:\\quot\\\\quot\\;//crlf////tab////tab////tab//Datalist:\\quot\\\\quot\\;//crlf////tab////tab////tab//Selected:\\quot\\\\quot\\;//crlf////tab////tab////tab//DriverParams:\\quot\\\\quot\\;//crlf////tab////tab////tab//Filter:\\quot\\\\quot\\;//crlf////tab////tab////tab//SystemDriverName:\\quot\\\\quot\\;//crlf////tab////tab//> Only invalid entries//crlf////tab//</span>//crlf////crlf////tab//<!!include type:driver;//crlf////tab////tab//ver: \\quot\\1.0\\quot\\;//crlf////tab////tab//title: \\quot\\\\quot\\;//crlf////tab////tab//ID: \\quot\\__salt__\\quot\\;//crlf////tab////tab//HashID: \\quot\\\\quot\\;//crlf////tab////tab//driver: \\quot\\TUDORS_JOURNAL_TRANSACTION_EXPORT\\quot\\;//crlf////tab////tab//name: \\quot\\\\quot\\;//crlf////tab////tab//systemdriver: \\quot\\false\\quot\\;//crlf////tab////tab//dispose: \\quot\\false\\quot\\;//crlf////tab////tab//state: \\quot\\\\quot\\;//crlf////tab////tab//params: \\quot\\keyexpression=ID~~pipe~~Filename={temporary_files}sageexportpreview___salt__.$$$~~pipe~~DateFrom=__DateFrom__~~pipe~~DateTo=__DateTo__~~pipe~~CacheTtl=0~~pipe~~Metadata=TUDORS_JOURNAL_TRANSACTION_EXPORT\\quot\\;//crlf////tab////tab//keyDescription: \\quot\\\\quot\\;//crlf////tab////tab//display: \\quot\\\\quot\\;//crlf////tab////tab//fields: \\quot\\\\quot\\;//crlf////tab////tab//IncludeFields: \\quot\\\\quot\\;//crlf////tab////tab//ExcludeFields: \\quot\\\\quot\\;//crlf////tab////tab//sort: \\quot\\ID\\quot\\;//crlf////tab////tab//filter: \\quot\\true\\quot\\;//crlf////tab////tab//BaseFilter: \\quot\\\\quot\\;//crlf////tab////tab//class: \\quot\\basic1\\quot\\;//crlf////tab////tab//maxrecords: \\quot\\1000\\quot\\;//crlf////tab////tab//startrecord: \\quot\\0\\quot\\;//crlf////tab////tab//style: \\quot\\width:auto\\quot\\;//crlf////tab////tab//_style: \\quot\\float:left;width:100\\percent\\\\quot\\;//crlf////tab////tab//height:\\quot\\auto\\quot\\;//crlf////tab////tab//_maxheight:\\quot\\300px\\quot\\;//crlf////tab////tab//canSelect: \\quot\\false\\quot\\;//crlf////tab////tab//readOnly: \\quot\\false\\quot\\;//crlf////tab////tab//canEdit: \\quot\\false\\quot\\;//crlf////tab////tab//canAdd: \\quot\\false\\quot\\;//crlf////tab////tab//canDelete: \\quot\\false\\quot\\;//crlf////tab////tab//inspectMenu: \\quot\\\\quot\\;//crlf////tab////tab//EmbedValues: \\quot\\\\quot\\;//crlf////tab////tab//EditDialogID: \\quot\\TUDORS_JOURNAL_TRANSACTION_EXPORTDialog\\quot\\;//crlf////tab////tab//DialogHeader: \\quot\\false\\quot\\;//crlf////tab////tab//canCloseDialog: \\quot\\true\\quot\\;//crlf////tab////tab//ExternalParams: \\quot\\\\quot\\;//crlf////tab////tab//ExternalFilters: \\quot\\__salt__FilterCompany\\comma\\__salt__FilterComputer\\comma\\__salt__InvalidOnly\\quot\\;//crlf////tab////tab//TableControls: \\quot\\true\\quot\\;//crlf////tab////tab//TableHeader: \\quot\\true\\quot\\;//crlf////tab////tab//TableBorder: \\quot\\true\\quot\\;//crlf////tab////tab//RecordCount: \\quot\\true\\quot\\;//crlf////tab////tab//Timestamp: \\quot\\true\\quot\\;//crlf////tab////tab//SelectDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//EditDisplay: \\quot\\true\\quot\\;//crlf////tab////tab//Menu: \\quot\\Export To Sage~~pipe~~exportSalesToSage\\quot\\;//crlf////tab////tab//faq: \\quot\\\\quot\\;//crlf////tab////tab//procedure: \\quot\\\\quot\\;//crlf////tab////tab//video: \\quot\\\\quot\\;//crlf////tab////tab//Messages: \\quot\\true\\quot\\;//crlf////tab////tab//ChartType: \\quot\\\\quot\\;//crlf////tab////tab//ChartWidth: \\quot\\640\\quot\\;//crlf////tab////tab//ChartHeight: \\quot\\480\\quot\\;//crlf////tab////tab//ChartLabels: \\quot\\Down_45\\quot\\;//crlf////tab////tab//ChartTitle: \\quot\\\\quot\\;//crlf////tab////tab//ChartStyle: \\quot\\display:none\\quot\\;//crlf////tab////tab//RefreshInterval: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHidden: \\quot\\true\\quot\\;//crlf////tab////tab//RefreshIntervalRemote: \\quot\\0\\quot\\;//crlf////tab////tab//RefreshWhenHiddenRemote: \\quot\\true\\quot\\;//crlf////tab////tab//_Javascript: \\quot\\DocumentID~~pipe~~Widget~~pipe~~ContainerItemID~~pipe~~Params\\quot\\;//crlf////tab////tab//debug: \\quot\\true\\quot\\;//crlf////tab//>//crlf//</conditional>//crlf////crlf//
</widget>