Commit 43b2417f authored by MichiK's avatar MichiK
Browse files

Change load prefix to 980 (EAN group for refunds)

parent 20248f33
......@@ -11,7 +11,7 @@ class Logic(object):
Started = 1
USER_ID_PREFIX = 'U-'
LOAD_PREFIX = 'L-'
LOAD_PREFIX = '980'
def __init__(self, display, database):
self.display = display
......@@ -61,7 +61,7 @@ class Logic(object):
sleep(3)
self.display.show_welcome()
else: # Add credit loading to transaction
load_amount = int(scanned_text[2:])
load_amount = int(scanned_text[3:12])
self.cart += load_amount
self.display.show_two_messages(
"Credits loaded: {:.2f}".format(load_amount/100),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment