Skip to content

Instantly share code, notes, and snippets.

@kendash
kendash / config.yaml
Last active Dec 26, 2020
Master Repository
View config.yaml
Items:
- Description: Advanced Split Payment
Url: https://gist.githubusercontent.com/kendash/9ada73d833dcc5517162/raw/
Version: 115
@kendash
kendash / Advanced Split Payment.txt
Created Sep 27, 2015
Advanced Split Payment configuration
View Advanced Split Payment.txt
{"AccountScreens":null,"AccountTransactionDocumentTypes":null,"AccountTransactionTypes":null,"AccountTypes":null,"Accounts":null,"Actions":null,"AutoConfigurationTasks":[{"CreateBackup":false,"Description":"Creates an advanced way to Split Payments for customers. ","Language":"en","Name":"Advanced Split Payment","SortOrder":0,"TaskData":"[{\"Action\":\"Data.Set('op','Create');\\u000d\\u000aif (api.Rule('SP-Payment Processed Execute CMD').Exists())\\u000d\\u000a{\\u000d\\u000a var operation = dlg.AskQuestion(\\\"This configuration already exists. Do you want to Remove Advanced Split Payment?\\\",\\\"Yes,No\\\");\\u000d\\u000a if(operation == 'No')\\u000d\\u000a result = false;\\u000d\\u000a else if(operation == 'Yes')\\u000d\\u000a {\\u000d\\u000a Data.Set('op','Delete');\\u000d\\u000a result = true;\\u000d\\u000a }\\u000d\\u000a}\\u000d\\u000aelse result = true;\",\"ActionType\":3,\"Condition\":null,\"Description\":\"Check if Configuration Already Exists\"},{\"Action\":\"Actions
View TimeClock.txt
{"AccountScreens":null,"AccountTransactionDocumentTypes":null,"AccountTransactionTypes":null,"AccountTypes":null,"Accounts":null,"Actions":null,"AutoConfigurationTasks":[{"CreateBackup":false,"Description":"Activates Time Clock, Creates Employee Entity Type and adds Employee Entities. On this configuration Time Clock users are tracked as Ticket Entities.","Language":"en","Name":"Activate Time Clock & Add Employees","SortOrder":0,"TaskData":"[{\"Action\":\"[?Employee Name:[A-Z][A-Za-z ]+]\\u000d\\u000a[?Entry PIN:.{4}]\\u000d\\u000a[?Operator Number:\\\\d+]\\u000d\\u000a[?Pay Rate:\\\\d+\\\\.\\\\d{0,2}]\",\"ActionType\":4,\"Condition\":null,\"Description\":\"Ask Employee Name\"},{\"Action\":\"var result = true;\\u000d\\u000avar exists = api.Rule('TC_Set Ticket Employee').Exists();\\u000d\\u000aif(!exists)\\u000d\\u000a{\\u000d\\u000a var operation = dlg.AskQuestion('Do you want to enable Time Clock?','Yes,No. Cancel It');\\u000d\\u000a if(operation == 'Yes')\\u000d\\u000a {\\u000d\\u000a Data.Se
@kendash
kendash / autoprint.txt
Last active Sep 4, 2015
SambaPOS Auto Print Configuration
View autoprint.txt
{"AccountScreens":null,"AccountTransactionDocumentTypes":null,"AccountTransactionTypes":null,"AccountTypes":null,"Accounts":null,"Actions":null,"AutoConfigurationTasks":[{"CreateBackup":true,"Description":"Creates a Ticket State driven auto print system based off Payment Types and Ticket Closed event.","Language":"en","Name":"Automatic Print by Payment Type","SortOrder":0,"TaskData":"[{\"Action\":\"var payments = sql.Query('select Name from PaymentTypes').Join('|');\\u000d\\u000aresult = '[?Payment Type::'+payments+']'\\u000d\\u000a\",\"ActionType\":4,\"Condition\":null,\"Description\":\"Initialize Payment Type Parameters\"},{\"Action\":\"var printertemplates = sql.Query('select Name from PrinterTemplates').Join('|');\\u000d\\u000aresult = '[?Printer Template::'+printertemplates+']'\",\"ActionType\":4,\"Condition\":null,\"Description\":\"Initialize Printer Template Parameters\"},{\"Action\":\"Data.Set('op','Create');\\u000d\\u000aif(!sql.Exists(\\\"SELECT Id from PaymentTypes where Name = '[:Payment Type]'\\\