MCPcopy Create free account

hub / github.com/CoinCulture/point-of-sale / functions

Functions56 in github.com/CoinCulture/point-of-sale

↓ 33 callersFunctionwriteError
(w http.ResponseWriter, msg string, err error)
errors.go:9
↓ 9 callersFunctiongetActiveItems
(itemType string)
queries.go:96
↓ 8 callersFunctionCurrentTime
()
types.go:16
↓ 7 callersFunctionrenderAndWrite
(w http.ResponseWriter, name string, template string, data interface{})
main.go:215
↓ 6 callersFunctiontotalItemsFromTransactions
(txs []*Transaction)
statistics.go:43
↓ 5 callersFunctiongetVisitTotal
(visit *Visit, paid int)
statistics.go:19
↓ 5 callersFunctionparseBraceletID
---------- actions to take from main pages ------------------
main.go:230
↓ 4 callersFunctiondoesSessionAlreadyExist
(braceletID int)
queries.go:22
↓ 4 callersFunctiongetActiveVisits
(active bool)
queries.go:35
↓ 4 callersFunctiongetVisitFromBraceletID
TODO deal with panics in here...
queries.go:12
↓ 3 callersFunctioncalculateDailyTotals
(txns []*Transaction)
statistics.go:75
↓ 3 callersFunctiongetAllTransactionsFromVisit
(braceletID, invoiceID, paid int, tYpe string)
queries.go:148
↓ 3 callersFunctiongetTransactionsByTypeFinalBill
(txType string)
queries.go:78
↓ 3 callersFunctionrenderTemplate
(uselessString, theTemplate string, theStruct interface{})
templates.go:8
↓ 3 callersFunctiontotalFromItems
(items []*Item)
statistics.go:35
↓ 3 callersFunctiontransactionsFromQuery
(query string)
queries.go:59
↓ 2 callersFunctiongetTransactionsByTypeNameID
(txType, itemName string, braceletID int)
queries.go:90
↓ 1 callersFunctionDateString
()
types.go:21
↓ 1 callersFunctionLoadConfig
()
config.go:34
↓ 1 callersFunctionactivateNotification
notification can be a buzzer or a light, or something else ...
hardware.go:12
↓ 1 callersFunctionbeep
(x)
hardware/notification.py:20
↓ 1 callersFunctiondestroy
()
hardware/notification.py:27
↓ 1 callersMethodgetAddr
()
config.go:27
↓ 1 callersFunctiongetLastOpenedVisitInfo
(number int)
main.go:80
↓ 1 callersFunctiongetLastTransactions
(last string)
queries.go:128
↓ 1 callersFunctiongetMenuSummaryFromDay
(stats *Statistics)
statistics.go:63
↓ 1 callersFunctionloop
()
hardware/notification.py:24
↓ 1 callersFunctionnewSessionTemplate
(lastOpenedSession, miscItemsForSale string)
templates.go:96
↓ 1 callersFunctionon
()
hardware/notification.py:14
↓ 1 callersFunctionprintTheChit
https://learn.adafruit.com/networked-thermal-printer-using-cups-and-raspberry-pi/overview hacked together from the above tutorial
hardware.go:22
↓ 1 callersFunctionsetup
(pin)
hardware/notification.py:7
↓ 1 callersFunctionstringsToInts
(strs []string)
statistics.go:7
MethodAll
()
types.go:34
FunctionNewDay
()
types.go:37
FunctionaddItems
(w http.ResponseWriter, r *http.Request)
main.go:104
FunctionaddItemsToASession
(w http.ResponseWriter, r *http.Request)
main.go:368
FunctionadminPage
(w http.ResponseWriter, r *http.Request)
main.go:131
FunctioncloseBill
(w http.ResponseWriter, r *http.Request)
main.go:443
FunctioncloseDay
(w http.ResponseWriter, r *http.Request)
main.go:472
FunctioncloseSession
(w http.ResponseWriter, r *http.Request)
main.go:121
FunctiondeleteSession
(w http.ResponseWriter, r *http.Request)
main.go:571
FunctiondisplayBill
(w http.ResponseWriter, r *http.Request)
main.go:153
FunctiongetTransactionsByTypeName
(txType, itemName string)
queries.go:84
FunctionhomePage
----------- main pages, rendered from templates ------------
main.go:21
FunctioninitializeSession
(w http.ResponseWriter, r *http.Request)
main.go:248
FunctioninsertNewItems
for adding new items on the fly, has some UX bugs
main.go:629
FunctioninsertNewItemsPage
(w http.ResponseWriter, r *http.Request)
main.go:223
FunctionisLockerActive
for the colour feature on Add Items page
main.go:26
Functionmain
()
main.go:657
FunctionnewSession
funcs in order as display on index.html
main.go:46
Functionoff
()
hardware/notification.py:17
FunctionreopenOrDeleteSessionPage
(w http.ResponseWriter, r *http.Request)
main.go:206
FunctionreopenSession
flip the bracelet_id from active = 0 to 1
main.go:532
FunctionselectTodaysMenu
(w http.ResponseWriter, r *http.Request)
main.go:607
FunctionselectTodaysMenuPage
(w http.ResponseWriter, r *http.Request)
main.go:136
FunctionstatisticsPage
(w http.ResponseWriter, r *http.Request)
main.go:172