Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{"AccountScreens":null,"AccountTransactionDocumentTypes":null,"AccountTransactionTypes":null,"AccountTypes":null,"Accounts":null,"Actions":null,"AutoConfigurationTasks":[{"CreateBackup":true,"Description":"Advanced Delivery screen setup that's compatible with Gloria Food online ordering integration sample.","Language":"en","Name":"Advanced Delivery Screen Setup","SortOrder":0,"TaskData":"[{\"Action\":\"var ds = sql.Exists(\\\"SELECT Id from EntityScreens where Name = 'Delivery'\\\");\\u000d\\u000avar et = sql.Exists(\\\"SELECT Id from EntityTypes where Name = 'Deliverers'\\\");\\u000d\\u000avar tt = sql.Exists(\\\"SELECT Id from TicketTypes where Name = 'Delivery Ticket'\\\");\\u000d\\u000avar cr = sql.Exists(\\\"SELECT Id from CustomReports where Name = 'Metrics'\\\");\\u000d\\u000avar sc = sql.Exists(\\\"SELECT Id from Scripts where Name = 'Metrics'\\\");\\u000d\\u000a\\u000d\\u000aData.Set('canCreateMetrics',!cr && !sc);\\u000d\\u000a\\u000d\\u000avar question = '';\\u000d\\u000aif(ds) question += 'Delivery Entity Screen<br\\\/>';\\u000d\\u000aif(et) question += 'Deliverer Entity Type<br\\\/>';\\u000d\\u000aif(tt) question += 'Delivery Ticket<br\\\/>';\\u000d\\u000a\\u000d\\u000aif(question !== ''){\\u000d\\u000a question = 'You already have<br\\\/><br\\\/>'+question;\\u000d\\u000a question += '<br\\\/>Imported setup may overwrite your current configuration.';\\u000d\\u000a question += '<br\\\/>Do you want to Continue?';\\u000d\\u000a result = dlg.AskQuestion(question,'Yes,No')==='Yes';\\u000d\\u000a}\\u000d\\u000aelse result = true;\",\"ActionType\":3,\"Condition\":null,\"Description\":\"Check Existing Configuration\"},{\"Action\":\"var miscTxt = gql.Exec('{getProduct(name:\\\"Misc\\\"){name}}');\\u000d\\u000avar misc = JSON.parse(miscTxt);\\u000d\\u000a\\u000d\\u000aif(misc.data === null){\\u000d\\u000a gql.Exec('mutation m{addProduct(name:\\\"Misc\\\",groupCode:\\\"Misc\\\",portions:[{name:\\\"Normal\\\",price:0}]){id}}');\\u000d\\u000a}\",\"ActionType\":1,\"Condition\":null,\"Description\":\"Create Misc Product\"},{\"Action\":\"EntityTypes:\\u000d\\u000a- Name: Deliverers\\u000d\\u000a EntityName: Deliverer\\u000d\\u000a EntityCustomFields:\\u000d\\u000a - Name: Phone\\u000d\\u000a EditingFormat: '(###) ####'\\u000d\\u000a - Name: Address\\u000d\\u000a FieldType: 1\\u000d\\u000a\",\"ActionType\":0,\"Condition\":null,\"Description\":\"Setup Deliverer Entity Type\"},{\"Action\":\"TicketTypes:\\u000d\\u000a- Name: Delivery Ticket\\u000d\\u000a ScreenMenuName: Menu\\u000d\\u000a TicketNumeratorName: Ticket Number Generator\\u000d\\u000a OrderNumeratorName: Order Number Generator\\u000d\\u000a SaleTransactionTypeName: Sale Transaction\\u000d\\u000a EntityTypeAssignments:\\u000d\\u000a - EntityTypeName: Customers\\u000d\\u000a CopyToNewTickets: true\\u000d\\u000a SortOrder: 10\\u000d\\u000a - EntityTypeName: Deliverers\\u000d\\u000a CopyToNewTickets: true\\u000d\\u000a SortOrder: 20\\u000d\\u000a\",\"ActionType\":0,\"Condition\":null,\"Description\":\"Setup Delivery Ticket Type\"},{\"Action\":\"Actions:\\u000d\\u000a- Name: DLV_Close Ticket\\u000d\\u000a ActionType: CloseActiveTicket\\u000d\\u000a Parameter: \\u000d\\u000a SortOrder: -1\\u000d\\u000a- Name: DLV_Update Ticket's Delivery Status\\u000d\\u000a ActionType: UpdateTicketState\\u000d\\u000a Parameter: '[{\\\"Key\\\":\\\"StateName\\\",\\\"Value\\\":\\\"Delivery\\\"},{\\\"Key\\\":\\\"CurrentState\\\",\\\"Value\\\":null},{\\\"Key\\\":\\\"State\\\",\\\"Value\\\":\\\"[:Delivery Status]\\\"},{\\\"Key\\\":\\\"StateValue\\\",\\\"Value\\\":null},{\\\"Key\\\":\\\"QuantityExp\\\",\\\"Value\\\":null}]'\\u000d\\u000a- Name: DLV_Load Ticket\\u000d\\u000a ActionType: LoadTicket\\u000d\\u000a Parameter: '[{\\\"Key\\\":\\\"TicketId\\\",\\\"Value\\\":\\\"[:Ticket Id]\\\"},{\\\"Key\\\":\\\"TagName\\\",\\\"Value\\\":null},{\\\"Key\\\":\\\"TagValue\\\",\\\"Value\\\":null},{\\\"Key\\\":\\\"StateName\\\",\\\"Value\\\":null},{\\\"Key\\\":\\\"State\\\",\\\"Value\\\":null}]'\\u000d\\u000a- Name: DLV_Update Ticket Deliverer\\u000d\\u000a ActionType: ChangeTicketEntity\\u000d\\u000a Parameter: '[{\\\"Key\\\":\\\"CanCreateTicket\\\",\\\"Value\\\":null},{\\\"Key\\\":\\\"CanCreateEntity\\\",\\\"Value\\\":null},{\\\"Key\\\":\\\"EntityTypeName\\\",\\\"Value\\\":\\\"Deliverers\\\"},{\\\"Key\\\":\\\"EntityName\\\",\\\"Value\\\":\\\"[:Deliverer]\\\"},{\\\"Key\\\":\\\"EntitySearchValue\\\",\\\"Value\\\":null},{\\\"Key\\\":\\\"UpdateNullEntity\\\",\\\"Value\\\":null},{\\\"Key\\\":\\\"EntityScreenName\\\",\\\"Value\\\":null},{\\\"Key\\\":\\\"EntityScreenSearchValue\\\",\\\"Value\\\":null}]'\\u000d\\u000a- Name: DLV_Display Ticket\\u000d\\u000a ActionType: DisplayTicket\\u000d\\u000a Parameter: '[{\\\"Key\\\":\\\"TicketId\\\",\\\"Value\\\":\\\"[:Ticket Id]\\\"}]'\\u000d\\u000a- Name: DLV_Popup Browser\\u000d\\u000a ActionType: PopupBrowser\\u000d\\u000a Parameter: '[{\\\"Key\\\":\\\"Url\\\",\\\"Value\\\":\\\"[:URL]\\\"},{\\\"Key\\\":\\\"Buttons\\\",\\\"Value\\\":\\\"Close\\\"},{\\\"Key\\\":\\\"AutomationCommandName\\\",\\\"Value\\\":null},{\\\"Key\\\":\\\"BackgroundColor\\\",\\\"Value\\\":null},{\\\"Key\\\":\\\"Zoom\\\",\\\"Value\\\":null},{\\\"Key\\\":\\\"Height\\\",\\\"Value\\\":null},{\\\"Key\\\":\\\"Width\\\",\\\"Value\\\":null}]'\\u000d\\u000a- Name: DLV_ACM Pay Ticket by Cash\\u000d\\u000a ActionType: PayTicket\\u000d\\u000a Parameter: '[{\\\"Key\\\":\\\"PaymentTypeName\\\",\\\"Value\\\":\\\"Cash\\\"}]'\\u000d\\u000a- Name: DLV_ACM Pay Ticket by Credit Card\\u000d\\u000a ActionType: PayTicket\\u000d\\u000a Parameter: '[{\\\"Key\\\":\\\"PaymentTypeName\\\",\\\"Value\\\":\\\"Credit Card\\\"}]'\\u000d\\u000a- Name: DLV_Confirm Customer\\u000d\\u000a ActionType: UpdateEntityState\\u000d\\u000a Parameter: '[{\\\"Key\\\":\\\"EntityTypeName\\\",\\\"Value\\\":\\\"Customers\\\"},{\\\"Key\\\":\\\"EntityName\\\",\\\"Value\\\":\\\"[:Entity Name]\\\"},{\\\"Key\\\":\\\"EntityStateName\\\",\\\"Value\\\":\\\"CStatus\\\"},{\\\"Key\\\":\\\"CurrentState\\\",\\\"Value\\\":null},{\\\"Key\\\":\\\"EntityState\\\",\\\"Value\\\":null},{\\\"Key\\\":\\\"QuantityExp\\\",\\\"Value\\\":null}]'\\u000d\\u000aRules:\\u000d\\u000a- Name: DLV_Update new Delivery Ticket Status\\u000d\\u000a EventName: TicketCreated\\u000d\\u000a RuleConstraints: '[{\\\"L\\\":\\\"TicketTypeName\\\",\\\"N\\\":\\\"WrFDFrpJSY\\\",\\\"O\\\":\\\"Equal\\\",\\\"R\\\":\\\"Delivery Ticket\\\"}]'\\u000d\\u000a Actions:\\u000d\\u000a - Name: DLV_Update Ticket's Delivery Status\\u000d\\u000a ParameterValues: Delivery Status=Waiting\\u000d\\u000a SortOrder: 10\\u000d\\u000a AppRuleMaps:\\u000d\\u000a - {}\\u000d\\u000a- Name: DLV_Update Ticket Status when Deliverer selected\\u000d\\u000a EventName: TicketEntityChanged\\u000d\\u000a RuleConstraints: '[{\\\"L\\\":\\\"EntityTypeName\\\",\\\"N\\\":\\\"6QExm2lu5N\\\",\\\"O\\\":\\\"Equal\\\",\\\"R\\\":\\\"Deliverers\\\"}]'\\u000d\\u000a Actions:\\u000d\\u000a - Name: DLV_Update Ticket's Delivery Status\\u000d\\u000a ParameterValues: Delivery Status=Delivering\\u000d\\u000a SortOrder: 10\\u000d\\u000a AppRuleMaps:\\u000d\\u000a - {}\\u000d\\u000a- Name: DLV_Update Paid Delivery Ticket status\\u000d\\u000a EventName: BeforeTicketClosing\\u000d\\u000a RuleConstraints: '[{\\\"L\\\":\\\"RemainingAmount\\\",\\\"N\\\":\\\"jxNSNGZv99\\\",\\\"O\\\":\\\"Equal\\\",\\\"R\\\":\\\"0\\\"},{\\\"L\\\":\\\"TicketTypeName\\\",\\\"N\\\":\\\"GjB7aRLtxU\\\",\\\"O\\\":\\\"Equal\\\",\\\"R\\\":\\\"Delivery Ticket\\\"}]'\\u000d\\u000a Actions:\\u000d\\u000a - Name: DLV_Update Ticket's Delivery Status\\u000d\\u000a ParameterValues: Delivery Status=Delivered\\u000d\\u000a SortOrder: 10\\u000d\\u000a AppRuleMaps:\\u000d\\u000a - {}\\u000d\\u000a- Name: DLV_Display Ticket Rule\\u000d\\u000a EventName: AutomationCommandExecuted\\u000d\\u000a RuleConstraints: '[{\\\"L\\\":\\\"AutomationCommandName\\\",\\\"N\\\":\\\"OADElxjvu5\\\",\\\"O\\\":\\\"Equal\\\",\\\"R\\\":\\\"Display Ticket\\\"}]'\\u000d\\u000a Tags: \\u000d\\u000a Actions:\\u000d\\u000a - Name: DLV_Display Ticket\\u000d\\u000a ParameterValues: Ticket Id=[:CommandValue]\\u000d\\u000a SortOrder: 10\\u000d\\u000a AppRuleMaps:\\u000d\\u000a - {}\\u000d\\u000a- Name: DLV_Display Map Rule\\u000d\\u000a EventName: AutomationCommandExecuted\\u000d\\u000a RuleConstraints: '[{\\\"L\\\":\\\"AutomationCommandName\\\",\\\"N\\\":\\\"I3G7T7PNTY\\\",\\\"O\\\":\\\"Equal\\\",\\\"R\\\":\\\"Display Map\\\"}]'\\u000d\\u000a Tags: \\u000d\\u000a Actions:\\u000d\\u000a - Name: DLV_Popup Browser\\u000d\\u000a ParameterValues: URL=[:MapURL]\\u000d\\u000a SortOrder: 10\\u000d\\u000a AppRuleMaps:\\u000d\\u000a - {}\\u000d\\u000a- Name: DLV_Handle Deliverer Command\\u000d\\u000a EventName: AutomationCommandExecuted\\u000d\\u000a RuleConstraints: '[{\\\"L\\\":\\\"AutomationCommandName\\\",\\\"N\\\":\\\"324uDV0qqA\\\",\\\"O\\\":\\\"Equal\\\",\\\"R\\\":\\\"DLV_Deliverer Command\\\"}]'\\u000d\\u000a Tags: \\u000d\\u000a Actions:\\u000d\\u000a - Name: DLV_Load Ticket\\u000d\\u000a ParameterValues: Ticket Id=[:TicketId]\\u000d\\u000a SortOrder: 10\\u000d\\u000a - Name: DLV_Update Ticket Deliverer\\u000d\\u000a ParameterValues: Deliverer=[:Deliverer]\\u000d\\u000a SortOrder: 20\\u000d\\u000a - Name: DLV_Close Ticket\\u000d\\u000a ParameterValues: \\u000d\\u000a SortOrder: 30\\u000d\\u000a AppRuleMaps:\\u000d\\u000a - {}\\u000d\\u000a- Name: DLV_Confirm Delivery Ticket\\u000d\\u000a EventName: AutomationCommandExecuted\\u000d\\u000a RuleConstraints: '[{\\\"L\\\":\\\"AutomationCommandName\\\",\\\"N\\\":\\\"P1zodb4mtm\\\",\\\"O\\\":\\\"Equal\\\",\\\"R\\\":\\\"Confirm Ticket\\\"}]'\\u000d\\u000a Actions:\\u000d\\u000a - Name: DLV_Load Ticket\\u000d\\u000a ParameterValues: Ticket Id=[:CommandValue]\\u000d\\u000a SortOrder: 10\\u000d\\u000a - Name: DLV_Update Ticket's Delivery Status\\u000d\\u000a ParameterValues: Delivery Status=Waiting\\u000d\\u000a SortOrder: 20\\u000d\\u000a - Name: DLV_Close Ticket\\u000d\\u000a ParameterValues: \\u000d\\u000a SortOrder: 40\\u000d\\u000a - Name: DLV_Confirm Customer\\u000d\\u000a ParameterValues: Entity Name={ENTITY NAME:Customers}\\u000d\\u000a SortOrder: 30\\u000d\\u000a AppRuleMaps:\\u000d\\u000a - {}\\u000d\\u000a- Name: DLV_Pay Ticket Rule\\u000d\\u000a EventName: AutomationCommandExecuted\\u000d\\u000a RuleConstraints: '[{\\\"L\\\":\\\"AutomationCommandName\\\",\\\"N\\\":\\\"RzVGgNtsdY\\\",\\\"O\\\":\\\"Equal\\\",\\\"R\\\":\\\"Pay Ticket by Cash\\\"}]'\\u000d\\u000a Tags: \\u000d\\u000a Actions:\\u000d\\u000a - Name: DLV_ACM Pay Ticket by Cash\\u000d\\u000a ParameterValues: \\u000d\\u000a SortOrder: 20\\u000d\\u000a - Name: DLV_Load Ticket\\u000d\\u000a ParameterValues: Ticket Id=[:CommandValue]\\u000d\\u000a SortOrder: 10\\u000d\\u000a - Name: DLV_Close Ticket\\u000d\\u000a ParameterValues: \\u000d\\u000a SortOrder: 30\\u000d\\u000a AppRuleMaps:\\u000d\\u000a - {}\\u000d\\u000a- Name: DLV_Pay Ticket by CC Rule\\u000d\\u000a EventName: AutomationCommandExecuted\\u000d\\u000a RuleConstraints: '[{\\\"L\\\":\\\"AutomationCommandName\\\",\\\"N\\\":\\\"RzVGgNtsdY\\\",\\\"O\\\":\\\"Equal\\\",\\\"R\\\":\\\"Pay Ticket by Credit Card\\\"}]'\\u000d\\u000a Tags: \\u000d\\u000a Actions:\\u000d\\u000a - Name: DLV_Load Ticket\\u000d\\u000a ParameterValues: Ticket Id=[:CommandValue]\\u000d\\u000a SortOrder: 10\\u000d\\u000a - Name: DLV_ACM Pay Ticket by Credit Card\\u000d\\u000a ParameterValues: \\u000d\\u000a SortOrder: 20\\u000d\\u000a - Name: DLV_Close Ticket\\u000d\\u000a ParameterValues: \\u000d\\u000a SortOrder: 30\\u000d\\u000a AppRuleMaps:\\u000d\\u000a - {}\",\"ActionType\":0,\"Condition\":null,\"Description\":\"Create Rules\"},{\"Action\":\"EntityScreens:\\u000d\\u000a- Name: Delivery\\u000d\\u000a TicketTypeName: Delivery Ticket\\u000d\\u000a EntityTypeName: Customers\\u000d\\u000a DisplayMode: 3\\u000d\\u000a BackgroundColor: Transparent\\u000d\\u000a FontSize: 50\\u000d\\u000a PageCount: 1\\u000d\\u000a Layout: <?xml version=\\\"1.0\\\" encoding=\\\"utf-16\\\"?><LayoutControl ID=\\\"LayoutControl\\\" ItemSpace=\\\"0\\\" Padding=\\\"0\\\"><LayoutGroup Orientation=\\\"Vertical\\\"><Element ID=\\\"NnrLHu9nXOEiD5ydKMH30XA\\\" Height=\\\"60\\\" \\\/><Element ID=\\\"NDMfNEVGSbE_2d5uYmU5RttXQ\\\" HorizontalAlignment=\\\"Stretch\\\" VerticalAlignment=\\\"Stretch\\\" Width=\\\"NaN\\\" \\\/><Element ID=\\\"N44PLf9_2dgj0qARq_2dMJ2gqiQ\\\" Height=\\\"65\\\" \\\/><\\\/LayoutGroup><LayoutGroup Orientation=\\\"Vertical\\\"><Element ID=\\\"N69567St60ESuONi_L0RtsQ\\\" HorizontalAlignment=\\\"Stretch\\\" Width=\\\"NaN\\\" Height=\\\"60\\\" \\\/><Element ID=\\\"NtyMvsdLG80iashKzpqhzrg\\\" HorizontalAlignment=\\\"Stretch\\\" VerticalAlignment=\\\"Stretch\\\" Width=\\\"NaN\\\" \\\/><\\\/LayoutGroup><LayoutGroup Orientation=\\\"Vertical\\\"><Element ID=\\\"NCtr1a9Uh_EKmvxCTxF0h5A\\\" HorizontalAlignment=\\\"Stretch\\\" Width=\\\"NaN\\\" Height=\\\"60\\\" \\\/><Element ID=\\\"NptQJrmXQPEW9JN8Qbyj0IA\\\" HorizontalAlignment=\\\"Stretch\\\" VerticalAlignment=\\\"Stretch\\\" Width=\\\"NaN\\\" \\\/><\\\/LayoutGroup><LayoutGroup Orientation=\\\"Vertical\\\"><Element ID=\\\"N3vrM01tIKUiPEBeyKAmFAA\\\" Height=\\\"60\\\" \\\/><Element ID=\\\"N60c_AsrHl0izh_2dZcTxQDtQ\\\" VerticalAlignment=\\\"Stretch\\\" \\\/><\\\/LayoutGroup><AvailableItems \\\/><\\\/LayoutControl>\\u000d\\u000a EntityScreenMaps:\\u000d\\u000a - UserRoleId: 1\\u000d\\u000a Widgets:\\u000d\\u000a - UniqueId: N69567St60ESuONi_L0RtsQ\\u000d\\u000a XLocation: 3\\u000d\\u000a YLocation: 1\\u000d\\u000a Height: 48\\u000d\\u000a Width: 475\\u000d\\u000a Properties: '{\\\"Alignment\\\":\\\"Center\\\",\\\"Alignments\\\":[\\\"Left\\\",\\\"Right\\\",\\\"Center\\\"],\\\"BackgroundColor\\\":\\\"#FF548DD4\\\",\\\"BorderColor\\\":\\\"#FF366092\\\",\\\"BorderThickness\\\":\\\"1\\\",\\\"FontName\\\":\\\"Segoe UI\\\",\\\"FontSize\\\":40,\\\"FontWeight\\\":\\\"Thin\\\",\\\"FontWeights\\\":[\\\"Normal\\\",\\\"Thin\\\",\\\"Bold\\\"],\\\"ForegroundColor\\\":\\\"#FFFFFFFF\\\",\\\"Text\\\":\\\"Waiting Orders\\\",\\\"VerticalAlignment\\\":\\\"Top\\\",\\\"VerticalAlignments\\\":[\\\"Top\\\",\\\"Center\\\",\\\"Bottom\\\"]}'\\u000d\\u000a CreatorName: LabelWidgetCreator\\u000d\\u000a AutoRefresh: true\\u000d\\u000a Margin: 4,0,4,4\\u000d\\u000a - UniqueId: NCtr1a9Uh_EKmvxCTxF0h5A\\u000d\\u000a XLocation: 486\\u000d\\u000a YLocation: 1\\u000d\\u000a Height: 47\\u000d\\u000a Width: 477\\u000d\\u000a Properties: '{\\\"Alignment\\\":\\\"Center\\\",\\\"Alignments\\\":[\\\"Left\\\",\\\"Right\\\",\\\"Center\\\"],\\\"BackgroundColor\\\":\\\"#FF9BBB59\\\",\\\"BorderColor\\\":\\\"#FF76923C\\\",\\\"BorderThickness\\\":\\\"1\\\",\\\"FontName\\\":\\\"Segoe UI\\\",\\\"FontSize\\\":40,\\\"FontWeight\\\":\\\"Thin\\\",\\\"FontWeights\\\":[\\\"Normal\\\",\\\"Thin\\\",\\\"Bold\\\"],\\\"ForegroundColor\\\":\\\"#FFFFFFFF\\\",\\\"Text\\\":\\\"Delivered Orders\\\",\\\"VerticalAlignment\\\":\\\"Top\\\",\\\"VerticalAlignments\\\":[\\\"Top\\\",\\\"Center\\\",\\\"Bottom\\\"]}'\\u000d\\u000a CreatorName: LabelWidgetCreator\\u000d\\u000a AutoRefresh: true\\u000d\\u000a Margin: 4,0,4,4\\u000d\\u000a - UniqueId: NtyMvsdLG80iashKzpqhzrg\\u000d\\u000a XLocation: 3\\u000d\\u000a YLocation: 48\\u000d\\u000a Height: 269\\u000d\\u000a Width: 475\\u000d\\u000a Properties: '{\\\"Background\\\":\\\"#FF1F497D\\\",\\\"Border\\\":\\\"#00FFFFFF\\\",\\\"ColumnCount\\\":1,\\\"CommandAreaHeight\\\":70,\\\"CommandAreaRows\\\":2,\\\"CommandButtons\\\":\\\"{REPORT ENTITY DETAILS:\\\\u000d\\\\u000aE.Name.asc\\\\u000d\\\\u000a:(ET=Deliverer)\\\\u000d\\\\u000a:{0}=DLV_Deliverer Command\\\\\\\\:TicketId=$1,Deliverer={0}}\\\",\\\"CommandName\\\":null,\\\"CommandValue\\\":null,\\\"Expression\\\":\\\"\\\",\\\"Filter\\\":null,\\\"FontName\\\":\\\"Consolas\\\",\\\"FontSize\\\":12,\\\"Foreground\\\":\\\"#FFDBEEF3\\\",\\\"Format\\\":\\\"<L00><block 10 transparent left *>\\\\u000d\\\\u000a<L00><size 20>{ENTITY NAME:Customers}<\\\\\\\/size><br\\\\\\\/>\\\\u000d\\\\u000a<L00><size 16>{ENTITY DATA:Customers:First Name} {ENTITY DATA:Customers:Last Name}<\\\\\\\/size><br\\\\\\\/>\\\\u000d\\\\u000a<L00>[=''{ENTITY DATA:Customers:Address}''.replace(''<!rn>'',''<br\\\\\\\/>'')]<br\\\\\\\/>\\\\u000d\\\\u000a<L00><size 15><timer {TICKET DATE:HH:mm} {TICKET TAG:Delivery Minutes} 1>\\\\u000d\\\\u000a<L00>-30:<color LightGreen><size 15><m:>:<s:{0:00}> min.<\\\\\\\/size><\\\\\\\/color>\\\\u000d\\\\u000a<L00><br\\\\\\\/>0-5:<color LightPink><size 15><m:{0:00}>:<s:{0:00}><\\\\\\\/size><\\\\\\\/color>\\\\u000d\\\\u000a<L00><br\\\\\\\/>5:<color LightPink><size 15><m:> Minutes Due!!<\\\\\\\/size><\\\\\\\/color>\\\\u000d\\\\u000a<L00><\\\\\\\/timer><\\\\\\\/size><\\\\\\\/block>\\\\u000d\\\\u000a\\\\u000d\\\\u000a<L00><block 20><size 40>${TICKET TOTAL}<\\\\\\\/size><\\\\\\\/block>\\\",\\\"HideBorderVisual\\\":true,\\\"ItemBorderThickness\\\":\\\"0,0,0,1\\\",\\\"LoopCommands\\\":true,\\\"MaxWidth\\\":1000,\\\"MergeLines\\\":false,\\\"MinHeight\\\":50,\\\"MinWidth\\\":20,\\\"MultiSelection\\\":true,\\\"OrderBy\\\":\\\"Last Order\\\",\\\"OrderFilter\\\":null,\\\"OrderState\\\":null,\\\"SelectedBackground\\\":\\\"#FF95B3D7\\\",\\\"SelectedForeground\\\":\\\"#FF0F243E\\\",\\\"ShowWorkperiodTickets\\\":true,\\\"SortDescending\\\":false,\\\"State\\\":\\\"Waiting\\\",\\\"Width\\\":100}'\\u000d\\u000a CreatorName: TicketListerCreator\\u000d\\u000a AutoRefresh: true\\u000d\\u000a Margin: 4,0,4,0\\u000d\\u000a - UniqueId: NptQJrmXQPEW9JN8Qbyj0IA\\u000d\\u000a XLocation: 486\\u000d\\u000a YLocation: 48\\u000d\\u000a Height: 229\\u000d\\u000a Width: 478\\u000d\\u000a Properties: \\\"{\\\\\\\"Background\\\\\\\":\\\\\\\"#FF76923C\\\\\\\",\\\\\\\"Border\\\\\\\":\\\\\\\"#00FFFFFF\\\\\\\",\\\\\\\"ColumnCount\\\\\\\":1,\\\\\\\"CommandAreaHeight\\\\\\\":70,\\\\\\\"CommandAreaRows\\\\\\\":2,\\\\\\\"CommandButtons\\\\\\\":\\\\\\\"<bold>$ <\\\\\\\\\\\/bold>Cash=Pay Ticket by Cash\\\\\\\\u000d\\\\\\\\u000a<sym> <\\\\\\\\\\\/sym>Credit Card=Pay Ticket by Credit Card\\\\\\\\u000d\\\\\\\\u000aDisplay Ticket\\\\\\\\u000d\\\\\\\\u000aDisplay Map=Display Map:\\\\\\\\\\\\\\\"TicketId=$1\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"MapURL=https:\\\\\\\\\\\/\\\\\\\\\\\/maps.google.com\\\\\\\\\\\/maps?saddr=Aşkabat Cd. No 30\\\\\\\\\\\/A Bahçelievler Ankara&daddr={ENTITY DATA:Customer:Address}&hl=en\\\\\\\\\\\\\\\"\\\\\\\",\\\\\\\"CommandName\\\\\\\":null,\\\\\\\"CommandValue\\\\\\\":null,\\\\\\\"Expression\\\\\\\":null,\\\\\\\"Filter\\\\\\\":null,\\\\\\\"FontName\\\\\\\":\\\\\\\"Consolas\\\\\\\",\\\\\\\"FontSize\\\\\\\":12,\\\\\\\"Foreground\\\\\\\":\\\\\\\"#FFEBF1DD\\\\\\\",\\\\\\\"Format\\\\\\\":\\\\\\\"<L00><block 10 transparent left *>\\\\\\\\u000d\\\\\\\\u000a<L00><size 20>{ENTITY NAME:Deliverer}<\\\\\\\\\\\/size><br\\\\\\\\\\\/>\\\\\\\\u000d\\\\\\\\u000a<L00>[='{ENTITY NAME:Customer}'.replace('<!rn>','<br\\\\\\\\\\\/>')]\\\\\\\\u000d\\\\\\\\u000a<L00><\\\\\\\\\\\/block>\\\\\\\\u000d\\\\\\\\u000a\\\\\\\\u000d\\\\\\\\u000a<L00><block 20><size 40>${TICKET TOTAL}<\\\\\\\\\\\/size><\\\\\\\\\\\/block>\\\\\\\",\\\\\\\"HideBorderVisual\\\\\\\":true,\\\\\\\"ItemBorderThickness\\\\\\\":\\\\\\\"0,0,0,1\\\\\\\",\\\\\\\"LoopCommands\\\\\\\":true,\\\\\\\"MaxWidth\\\\\\\":1000,\\\\\\\"MergeLines\\\\\\\":false,\\\\\\\"MinHeight\\\\\\\":30,\\\\\\\"MinWidth\\\\\\\":20,\\\\\\\"MultiSelection\\\\\\\":true,\\\\\\\"OrderBy\\\\\\\":null,\\\\\\\"OrderFilter\\\\\\\":null,\\\\\\\"OrderState\\\\\\\":null,\\\\\\\"SelectedBackground\\\\\\\":\\\\\\\"#FFC3D69B\\\\\\\",\\\\\\\"SelectedForeground\\\\\\\":\\\\\\\"#FF4F6128\\\\\\\",\\\\\\\"ShowWorkperiodTickets\\\\\\\":true,\\\\\\\"SortDescending\\\\\\\":false,\\\\\\\"State\\\\\\\":\\\\\\\"Delivering\\\\\\\",\\\\\\\"Width\\\\\\\":40}\\\"\\u000d\\u000a CreatorName: TicketListerCreator\\u000d\\u000a AutoRefresh: true\\u000d\\u000a Margin: 4,0,4,0\\u000d\\u000a - UniqueId: NnrLHu9nXOEiD5ydKMH30XA\\u000d\\u000a XLocation: 3\\u000d\\u000a YLocation: 1\\u000d\\u000a Height: 48\\u000d\\u000a Width: 475\\u000d\\u000a Properties: '{\\\"Alignment\\\":\\\"Center\\\",\\\"Alignments\\\":[\\\"Left\\\",\\\"Right\\\",\\\"Center\\\"],\\\"BackgroundColor\\\":\\\"#FFE36C09\\\",\\\"BorderColor\\\":\\\"#FFB22222\\\",\\\"BorderThickness\\\":\\\"1\\\",\\\"FontName\\\":\\\"Segoe UI\\\",\\\"FontSize\\\":40,\\\"FontWeight\\\":\\\"Thin\\\",\\\"FontWeights\\\":[\\\"Normal\\\",\\\"Thin\\\",\\\"Bold\\\"],\\\"ForegroundColor\\\":\\\"#FFFFFFFF\\\",\\\"Text\\\":\\\"Unconfirmed\\\",\\\"VerticalAlignment\\\":\\\"Top\\\",\\\"VerticalAlignments\\\":[\\\"Top\\\",\\\"Center\\\",\\\"Bottom\\\"]}'\\u000d\\u000a CreatorName: LabelWidgetCreator\\u000d\\u000a AutoRefresh: true\\u000d\\u000a Margin: 0,0,4,4\\u000d\\u000a - UniqueId: NDMfNEVGSbE-5uYmU5RttXQ\\u000d\\u000a XLocation: 3\\u000d\\u000a YLocation: 48\\u000d\\u000a Height: 269\\u000d\\u000a Width: 475\\u000d\\u000a Properties: \\\"{\\\\\\\"Background\\\\\\\":\\\\\\\"#FF632423\\\\\\\",\\\\\\\"Border\\\\\\\":\\\\\\\"#00FFFFFF\\\\\\\",\\\\\\\"ColumnCount\\\\\\\":1,\\\\\\\"CommandAreaHeight\\\\\\\":66,\\\\\\\"CommandAreaRows\\\\\\\":1,\\\\\\\"CommandButtons\\\\\\\":\\\\\\\"<background green><sym> <\\\\\\\\\\\/sym>Confirm<\\\\\\\\\\\/background>=Confirm Ticket\\\\\\\\u000d\\\\\\\\u000a<hover red><sym> <\\\\\\\\\\\/sym>Display Ticket<\\\\\\\\\\\/hover>=Display Ticket\\\\\\\",\\\\\\\"CommandName\\\\\\\":null,\\\\\\\"CommandValue\\\\\\\":null,\\\\\\\"Expression\\\\\\\":null,\\\\\\\"Filter\\\\\\\":null,\\\\\\\"FontName\\\\\\\":\\\\\\\"Consolas\\\\\\\",\\\\\\\"FontSize\\\\\\\":12,\\\\\\\"Foreground\\\\\\\":\\\\\\\"#FFF2DCDB\\\\\\\",\\\\\\\"Format\\\\\\\":\\\\\\\"[LAYOUT]\\\\\\\\u000d\\\\\\\\u000a<L00><block 9 transparent left *>\\\\\\\\u000d\\\\\\\\u000a<L00><size 20>{ENTITY NAME:Customers}<\\\\\\\\\\\/size><br\\\\\\\\\\\/>\\\\\\\\u000d\\\\\\\\u000a<L00><size 16>{ENTITY DATA:Customers:First Name} {ENTITY DATA:Customers:Last Name}<\\\\\\\\\\\/size><br\\\\\\\\\\\/>\\\\\\\\u000d\\\\\\\\u000a<L00>[='{ENTITY DATA:Customers:Address}'.replace('<!rn>','<br\\\\\\\\\\\/>')]\\\\\\\\u000d\\\\\\\\u000a<L00><\\\\\\\\\\\/block>\\\\\\\\u000d\\\\\\\\u000a<L00><block 15><size 35>${TICKET TOTAL}<\\\\\\\\\\\/size><\\\\\\\\\\\/block>\\\\\\\\u000d\\\\\\\\u000a<L00><color #FF953734>____________________________________________________________<\\\\\\\\\\\/color><br\\\\\\\\\\\/><br\\\\\\\\\\\/>\\\\\\\\u000d\\\\\\\\u000a{ORDERS}\\\\\\\\u000d\\\\\\\\u000a\\\\\\\\u000d\\\\\\\\u000a[ORDERS]\\\\\\\\u000d\\\\\\\\u000a<J00><size 16>{QUANTITY} {NAME}|{PRICE}<\\\\\\\\\\\/size><br\\\\\\\\\\\/>\\\\\\\\u000d\\\\\\\\u000a{ORDER TAGS}<br\\\\\\\\\\\/>\\\\\\\\u000d\\\\\\\\u000a\\\\\\\\u000d\\\\\\\\u000a[ORDER TAGS]\\\\\\\\u000d\\\\\\\\u000a<L00> ▪ {ORDER TAG NAME}\\\\\\\",\\\\\\\"HideBorderVisual\\\\\\\":true,\\\\\\\"ItemBorderThickness\\\\\\\":\\\\\\\"0\\\\\\\",\\\\\\\"LoopCommands\\\\\\\":true,\\\\\\\"MaxWidth\\\\\\\":1000,\\\\\\\"MergeLines\\\\\\\":false,\\\\\\\"MinHeight\\\\\\\":30,\\\\\\\"MinWidth\\\\\\\":20,\\\\\\\"MultiSelection\\\\\\\":true,\\\\\\\"OrderBy\\\\\\\":null,\\\\\\\"OrderFilter\\\\\\\":null,\\\\\\\"OrderState\\\\\\\":null,\\\\\\\"SelectedBackground\\\\\\\":\\\\\\\"#FFF2DCDB\\\\\\\",\\\\\\\"SelectedForeground\\\\\\\":\\\\\\\"#FF632423\\\\\\\",\\\\\\\"ShowWorkperiodTickets\\\\\\\":true,\\\\\\\"SortDescending\\\\\\\":false,\\\\\\\"State\\\\\\\":\\\\\\\"Unconfirmed\\\\\\\",\\\\\\\"Width\\\\\\\":53}\\\"\\u000d\\u000a CreatorName: TicketListerCreator\\u000d\\u000a AutoRefresh: true\\u000d\\u000a Margin: 0,0,4,0\\u000d\\u000a - UniqueId: N44PLf9-gj0qARq-MJ2gqiQ\\u000d\\u000a Height: 100\\u000d\\u000a Width: 100\\u000d\\u000a Properties: '{\\\"Alignment\\\":\\\"Center\\\",\\\"Alignments\\\":[\\\"Left\\\",\\\"Right\\\",\\\"Center\\\"],\\\"BackgroundColor\\\":\\\"#FF4F6128\\\",\\\"BorderColor\\\":\\\"Transparent\\\",\\\"BorderThickness\\\":\\\"0\\\",\\\"FontName\\\":\\\"Segoe UI\\\",\\\"FontSize\\\":24,\\\"FontWeight\\\":\\\"Normal\\\",\\\"FontWeights\\\":[\\\"Normal\\\",\\\"Thin\\\",\\\"Bold\\\"],\\\"ForegroundColor\\\":\\\"#FFEBF1DD\\\",\\\"Text\\\":\\\"{CALL:metrics.getDeliveryMetric()}\\\",\\\"VerticalAlignment\\\":\\\"Center\\\",\\\"VerticalAlignments\\\":[\\\"Top\\\",\\\"Center\\\",\\\"Bottom\\\"]}'\\u000d\\u000a CreatorName: LabelWidgetCreator\\u000d\\u000a AutoRefresh: true\\u000d\\u000a Margin: 0,8,4,0\\u000d\\u000a - UniqueId: N60c_AsrHl0izh-ZcTxQDtQ\\u000d\\u000a Height: 100\\u000d\\u000a Width: 100\\u000d\\u000a Properties: '{\\\"AutomationCommandName\\\":null,\\\"CanCreateEntity\\\":false,\\\"CanDisplayAccount\\\":false,\\\"CanEditEntity\\\":false,\\\"CommandAreaHeight\\\":70,\\\"CommandAreaRows\\\":2,\\\"CommandButtons\\\":\\\"Select Customer=Select\\\\u000d\\\\u000aCreate New Customer=Create\\\",\\\"CommandValue\\\":null,\\\"EntityTypeName\\\":null,\\\"IsKeyboardVisible\\\":false,\\\"SearchLabel\\\":null,\\\"StateFilterName\\\":null}'\\u000d\\u000a CreatorName: ResourceSearch\\u000d\\u000a AutoRefresh: true\\u000d\\u000a Margin: 4,0,0,0\\u000d\\u000a - UniqueId: N3vrM01tIKUiPEBeyKAmFAA\\u000d\\u000a XLocation: 486\\u000d\\u000a YLocation: 1\\u000d\\u000a Height: 47\\u000d\\u000a Width: 477\\u000d\\u000a Properties: '{\\\"Alignment\\\":\\\"Center\\\",\\\"Alignments\\\":[\\\"Left\\\",\\\"Right\\\",\\\"Center\\\"],\\\"BackgroundColor\\\":\\\"#FFC0504D\\\",\\\"BorderColor\\\":\\\"#FF632423\\\",\\\"BorderThickness\\\":\\\"1\\\",\\\"FontName\\\":\\\"Segoe UI\\\",\\\"FontSize\\\":40,\\\"FontWeight\\\":\\\"Thin\\\",\\\"FontWeights\\\":[\\\"Normal\\\",\\\"Thin\\\",\\\"Bold\\\"],\\\"ForegroundColor\\\":\\\"#FFF2F2F2\\\",\\\"Text\\\":\\\"Customers\\\",\\\"VerticalAlignment\\\":\\\"Top\\\",\\\"VerticalAlignments\\\":[\\\"Top\\\",\\\"Center\\\",\\\"Bottom\\\"]}'\\u000d\\u000a CreatorName: LabelWidgetCreator\\u000d\\u000a AutoRefresh: true\\u000d\\u000a Margin: 4,0,0,6\\u000d\\u000a\",\"ActionType\":0,\"Condition\":null,\"Description\":\"Create Entity Screen\"},{\"Action\":\"Scripts:\\u000d\\u000a- Name: Metrics\\u000d\\u000a HandlerName: metrics\\u000d\\u000a Code: >-\\u000d\\u000a function get(metricName){\\u000d\\u000a \\u0009var result = gql.Exec('{getCustomReport(name:\\\"Metrics\\\"){name,header,tables{name, rows{cells}}}}');\\u000d\\u000a \\u0009var data = JSON.parse(result).data;\\u000d\\u000a \\u0009var tables = data.getCustomReport.tables;\\u000d\\u000a \\u0009for(i=0; i < tables.length; i++){\\u000d\\u000a \\u0009\\u0009if(tables[i].name === metricName){\\u000d\\u000a \\u0009\\u0009\\u0009return tables[i].rows[0].cells[0];\\u000d\\u000a \\u0009\\u0009}\\u000d\\u000a \\u0009}\\u000d\\u000a \\u0009return \\\"Metric Not Found\\\";\\u000d\\u000a }\\u000d\\u000a\\u000d\\u000a\\u000d\\u000a function getDeliveryMetric(){\\u000d\\u000a \\u0009var deliveryCount = get('Delivery Ticket Count');\\u000d\\u000a \\u0009var caption = deliveryCount == 1 ? ' delivery ticket today' : ' delivery tickets today';\\u000d\\u000a \\u0009if(!deliveryCount || deliveryCount == 0 || deliveryCount == '-') return 'Good Morning\\\\r\\\\nHave a nice day.';\\u000d\\u000a \\u0009if(deliveryCount < 2) return 'Good Morning\\\\r\\\\n'+ deliveryCount + caption;\\u000d\\u000a \\u0009if(deliveryCount < 10) return deliveryCount + caption;\\u000d\\u000a \\u0009return deliveryCount + caption +'\\\\r\\\\nGood Job!';\\u000d\\u000a }\\u000d\\u000aCustomReports:\\u000d\\u000a- Name: Metrics\\u000d\\u000a Template: \\\"[Delivery Ticket Count] \\\\r\\\\n{REPORT TICKET COUNT:'(TicketType=Delivery Ticket)'}\\\"\\u000d\\u000a\",\"ActionType\":0,\"Condition\":\"Data.Get('canCreateMetrics')\",\"Description\":\"Add Metric Reports and Scripts\"},{\"Action\":\"Accounts:\\u000d\\u000a- Name: Delivery Service\\u000d\\u000a AccountTypeName: Service Accounts\\u000d\\u000a- Name: Tip\\u000d\\u000a AccountTypeName: Service Accounts\\u000d\\u000aAccountTypes:\\u000d\\u000a- Name: Service Accounts\\u000d\\u000aAccountTransactionTypes:\\u000d\\u000a- Name: Delivery Service Transaction\\u000d\\u000a SourceAccountTypeName: Service Accounts\\u000d\\u000a TargetAccountTypeName: Receiveable Accounts\\u000d\\u000a DefaultSourceAccountName: Delivery Service\\u000d\\u000a DefaultTargetAccountName: Receivables\\u000d\\u000a- Name: Tip Transaction\\u000d\\u000a SourceAccountTypeName: Service Accounts\\u000d\\u000a TargetAccountTypeName: Receiveable Accounts\\u000d\\u000a DefaultSourceAccountName: Tip\\u000d\\u000a DefaultTargetAccountName: Receivables\\u000d\\u000aCalculationTypes:\\u000d\\u000a- Name: Delivery Service\\u000d\\u000a CalculationMethod: 2\\u000d\\u000a IncludeTax: true\\u000d\\u000a AccountTransactionTypeName: Delivery Service Transaction\\u000d\\u000a- Name: Tip\\u000d\\u000a CalculationMethod: 2\\u000d\\u000a IncludeTax: true\\u000d\\u000a AccountTransactionTypeName: Tip Transaction\\u000d\\u000a\",\"ActionType\":0,\"Condition\":null,\"Description\":\"Setup Calculations & Accounts\"},{\"Action\":\"OrderTagGroups:\\u000d\\u000a- Name: Default\\u000d\\u000a ColumnCount: 5\\u000d\\u000a ButtonHeight: 65\\u000d\\u000a FontSize: 14\\u000d\\u000a Prefixes: '[]'\\u000d\\u000a OrderTags: []\\u000d\\u000a\",\"ActionType\":0,\"Condition\":null,\"Description\":\"Setup Default Order Tag\"}]"}],"AutomationCommands":null,"CalculationSelectors":null,"CalculationTypes":null,"CustomReports":null,"Departments":null,"EntityScreens":null,"EntityTypes":null,"Numerators":null,"OrderTagGroups":null,"PaymentTypes":null,"PrintJobs":null,"PrinterTemplates":null,"Printers":null,"ProgramSettingValues":null,"Rules":null,"Scripts":null,"States":null,"TaskTypes":null,"TicketTagGroups":null,"TicketTypes":null,"Triggers":null}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.