Exemple #1
0
plu.addItem(Item('00000000000303', 'item 303', 4.00, 1))
plu.addItem(Item('00220075044178', 'turkey', 1.99, 1))
plu.addItem(Item('00000000000401', 'item 401', 4.00, 1))
plu.addItem(Item('00000000998230', 'fuel', 2.49, 1))
plu.addItem(Item('00000000998330', 'expensive fuel', 4.19, 1))

tlu = TLU()
# description, tenderID, subID, bin
tlu.addTender(Tender('cash', 11, 12, 0))

total = 0.0
subtotal = 0.0

print(datetime.datetime.now())

p = protocol_281b10('localhost', 51098, 'cpe07', 701, False)

p.sendSTATUS()

###########################################################################################

# CAPTURE transaction

p.sendBEGIN_TRANSACTION()
p.sendMEMBER_ID('000000250329', '000000250329')

time.sleep(1)

ScanItemQty('fuel', 1, 2, 3.00)

time.sleep(1)
Exemple #2
0
plu.addItem(Item('00000000000303', 'item 303', 4.00, 1))
plu.addItem(Item('00220075044178', 'turkey', 1.99, 1))
plu.addItem(Item('00000000000401', 'item 401', 4.00, 1))
plu.addItem(Item('00000000998230', 'fuel', 2.49, 1))
plu.addItem(Item('00000000998330', 'expensive fuel', 4.19, 1))

tlu = TLU()
# description, tenderID, subID, bin
tlu.addTender(Tender('cash', 11, 12, 0))

total = 0.0
subtotal = 0.0

print(datetime.datetime.now())

p = protocol_281b10('ah-cpe7', 1099, 'cpe02', 1, False)

p.sendSTATUS()

###########################################################################################

# CAPTURE transaction

p.sendBEGIN_TRANSACTION()
p.sendMEMBER_ID('0000002503290026001', '0000002503290026001')

time.sleep(1)

ScanItemQty('fuel', 1, 2, 3.00)

time.sleep(1)