Skip to content

Instantly share code, notes, and snippets.

@emreeren
emreeren / config.yaml
Last active September 21, 2018 15:12
Auto Config files
Items:
- Description: Fast payment buttons and confirmation tasks
Url: https://gist.githubusercontent.com/emreeren/0c925ae66dafa3a7b6da/raw/
Version: 99
- Description: Switch themes
Url: https://gist.githubusercontent.com/emreeren/8c64d9ca1f4bfbdea801/raw/
Version: 98
- Description: UK Postal Codes integration
Url: https://gist.githubusercontent.com/emreeren/1894194f2f8fe9a179ff/raw/
Version: 103
@emreeren
emreeren / fastpayment.txt
Last active August 29, 2015 14:17
SambaPOS Fast Payment Configuration
{"AccountScreens":null,"AccountTransactionDocumentTypes":null,"AccountTransactionTypes":null,"AccountTypes":null,"Accounts":null,"Actions":null,"AutoConfigurationTasks":[{"CreateBackup":true,"Description":"Adds \/ Removes fast payment buttons that appears under orders. Clicking a fast payment button will close ticket without need of switching to payment screen. ","Language":"en","Name":"Setup Fast Payment Buttons","SortOrder":20,"TaskData":"[{\"Action\":\"var payments = sql.Query('select Name from PaymentTypes').Join('|');\\u000d\\u000aresult = '[?Payment Type::'+payments+']'\",\"ActionType\":4,\"Condition\":null,\"Description\":\"Initialize Parameters\"},{\"Action\":\"Data.Set('op','Create');\\u000d\\u000aif(!sql.Exists(\\\"SELECT Id from PaymentTypes where Name = '[:Payment Type]'\\\"))\\u000d\\u000a{\\u000d\\u000a dlg.ShowMessage(\\\"A Payment Type named [:Payment Type] does not exists.\\\");\\u000d\\u000a result = false;\\u000d\\u000a}\\u000d\\u000aelse result = true;\",\"ActionType\":3,\"Condition\
@emreeren
emreeren / gist:5896654
Created June 30, 2013 20:06
Printer Template with Tax Printing
[LAYOUT]
-- General layout
<T>Ticket
<L00>Date:{TICKET DATE}
<L00>Time:{TIME}
{ENTITIES}
<L00>Ticket No:{TICKET NO}
<F>-
{ORDERS}
<F>=
@emreeren
emreeren / gist:5821927
Created June 20, 2013 11:13
Printer Template with Grouping
[LAYOUT]
-- General layout
<T>TICKET
<L00>Date:{TICKET DATE}
<L00>Time:{TIME}
{ENTITIES}
<L00>Ticket No:{TICKET NO}
<F>-
{ORDERS}
<F>=
@emreeren
emreeren / gist:5821894
Created June 20, 2013 11:05
Printer Template with Group Footer formatting
[LAYOUT]
-- General layout
<T>TICKET
<L00>Date:{TICKET DATE}
<L00>Time:{TIME}
{ENTITIES}
<L00>Ticket No:{TICKET NO}
<F>-
{ORDERS}
@emreeren
emreeren / dtran.sql
Last active September 7, 2023 11:47
SambaPOS V3 Clear Transaction Data
DELETE FROM [TicketEntities]
GO
DELETE FROM [Tickets]
GO
DELETE FROM [AccountTransactionDocuments]
GO
DELETE FROM [AccountTransactions]
@emreeren
emreeren / gist:5162270
Created March 14, 2013 15:24
Updated bill template
[LAYOUT]
-- General layout
<T>TICKET
<L00>Date:{TICKET DATE}
<L00>Time:{TIME}
{ENTITIES}
<L00>Ticket No:{TICKET NO}
<F>-
{ORDERS}
<F>=