Skip to content

Instantly share code, notes, and snippets.

@emreeren
emreeren / config.yaml
Last active Sep 21, 2018
Auto Config files
View config.yaml
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 Aug 29, 2015
SambaPOS Fast Payment Configuration
View fastpayment.txt
{"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 Jun 30, 2013
Printer Template with Tax Printing
View gist:5896654
[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 Jun 20, 2013
Printer Template with Grouping
View gist:5821927
[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 Jun 20, 2013
Printer Template with Group Footer formatting
View gist:5821894
[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 May 2, 2018
SambaPOS V3 Clear Transaction Data
View dtran.sql
DELETE FROM [TicketEntities]
GO
DELETE FROM [Tickets]
GO
DELETE FROM [AccountTransactionDocuments]
GO
DELETE FROM [AccountTransactions]
@emreeren
emreeren / gist:5162270
Created Mar 14, 2013
Updated bill template
View gist:5162270
[LAYOUT]
-- General layout
<T>TICKET
<L00>Date:{TICKET DATE}
<L00>Time:{TIME}
{ENTITIES}
<L00>Ticket No:{TICKET NO}
<F>-
{ORDERS}
<F>=
You can’t perform that action at this time.