plu.addItem(Item('00000000000301', 'item 301', 2.00, 1)) plu.addItem(Item('00000000000302', 'item 302', 3.00, 1)) 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)) 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_281b9('delhaizecpe1', 1099, 'cks001', 1, False) p.sendSTATUS() ########################################################################################### p.sendBEGIN_TRANSACTION() p.sendMEMBER_ID('000000250329', '000000250329') #p.sendALT_ID('005555551212', '005555551212', '11') time.sleep(1) ScanItemQty('item 401', 1, 9) ScanItemWgt('turkey', 2, 21) time.sleep(1)
plu.addItem(Item('00000000000303', 'item 303', 4.00, 1)) plu.addItem(Item('00004138309018', 'Offer37 item', 4.00, 1)) plu.addItem(Item('00004126819384', 'Offer38 item', 4.00, 1)) plu.addItem(Item('00000000004030', 'kiwi', 0.33, 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_281b9('153.73.247.228', 1099, 'cpe01', 2, False) p = protocol_281b9('dz-cpe1', 1099, 'cpe01', 2, False) p.sendSTATUS() ########################################################################################### p.sendBEGIN_TRANSACTION() #p.sendMEMBER_ID('000000250329', '000000250329') p.sendALT_ID('7706237176', '0', '11') time.sleep(1) p.sendTOTAL(total, subtotal) total -= p.getDiscounts()
plu.addItem(Item('00000000000302', 'item 302', 3.00, 1)) plu.addItem(Item('00000000000303', 'item 303', 4.00, 1)) plu.addItem(Item('00004138309018', 'Offer37 item', 4.00, 1)) plu.addItem(Item('00004126819384', 'Offer38 item', 4.00, 1)) plu.addItem(Item('00000000004030', 'kiwi', 0.33, 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_281b9('153.78.75.150', 1099, 'cpe01', 2, False) p.sendSTATUS() ########################################################################################### p.sendBEGIN_TRANSACTION() #p.sendMEMBER_ID('000000250329', '000000250329') #p.sendALT_ID('6786146952', '0', '11') #p.sendMEMBER_ID('046123123123', '046123123123') #p.sendALT_ID('9999999930', '0', '11') p.sendALT_ID('7706237176', '0', '11') time.sleep(1) p.sendTOTAL(total, subtotal)
plu.addItem(Item('1899698433', 'battery pack A', 5.99, 1)) plu.addItem(Item('00001600027528', 'Shaun basket level item', 5.99, 1)) plu.addItem(Item('00088949727215', 'Plano offer13 item', 5.99, 1)) plu.addItem(Item('00000000004048', 'Limes', 0.86, 1)) plu.addItem(Item('00005100006992', 'Smart WIC', 3.29, 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_281b9('153.77.13.136', 1099, 'cks001', 1, False) p.sendSTATUS() ########################################################################################### p.sendBEGIN_TRANSACTION() p.sendMEMBER_ID('046100061477', '046100061477') # p.sendALT_ID('4083909353', '4083909353', '11') time.sleep(5) ScanItemQty('Smart WIC', 1, 2) p.sendTOTAL(total, subtotal) total -= p.getDiscounts()
plu.addItem(Item('00004138309018', 'Offer37 item', 4.00, 1)) plu.addItem(Item('00004126819384', 'Offer38 item', 4.00, 1)) plu.addItem(Item('00000000004030', 'kiwi', 0.33, 1)) plu.addItem(Item('00000012340111', 'offer111item', 0.68, 1)) plu.addItem(Item('00000000000323', 'offer112item', 24.49, 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_281b9('153.73.247.228', 1099, 'cpe01', 1, False) p.sendSTATUS() ########################################################################################### p.sendBEGIN_TRANSACTION() p.sendMEMBER_ID('002503290112', '002503290112') # p.sendALT_ID('4083909353', '4083909353', '11') time.sleep(1) ScanItemQty('offer112item', 2, 1) p.sendTOTAL(total, subtotal) total -= p.getDiscounts()
# upc, description, price, department plu.addItem(Item('0000000333333444', 'DeliHam', 3.49, 3000)) plu.addItem(Item('0000000333333445', 'Wurst', 5.49, 3000)) plu.addItem(Item('0000000333333446', 'OlivLoaf', 4.49, 3000)) plu.addItem(Item('000000120000013', 'DtPepsi', 1.79, 1000)) plu.addItem(Item('13803001198', 'DtPepsiStap', 3.99, 1000)) plu.addItem(Item('1899698432', 'battery pack', 7.99, 1)) plu.addItem(Item('41555000701', 'Corn', 0.60, 1000)) plu.addItem(Item('4401', 'CatFood', 28.77, 1)) plu.addItem(Item('0000000000004756', 'PrepMeal', 9.99, 3000)) tlu = TLU() # description, tenderID, subID, bin tlu.addTender(Tender('ckstender', 1, 1, 0)) p = protocol_281b9('153.60.64.126', 1099, '126', 4, False) total = 0.0 subtotal = 0.0 p.sendSTATUS() ########################################################################################### p.sendBEGIN_TRANSACTION() p.sendMEMBER_ID('46100008013', '46100008013') ScanItem('Corn', 3) p.sendTOTAL(total, subtotal) ScanItem('CatFood', 4)
plu.addItem(Item('4030', 'Offer 18 item', 3.29, 1)) plu.addItem(Item('00000000055991', 'item 55991', 1.00, 1)) plu.addItem(Item('00000000050555', 'item 50555', 1.00, 1)) plu.addItem(Item('00000000060123', 'item 60123', 1.00, 1)) plu.addItem(Item('00002880016205', 'item 2880016205', 5.00, 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_281b9('192.168.1.116', 1099, 'cks001', 1, False) p.sendSTATUS() ########################################################################################### p.sendBEGIN_TRANSACTION() p.sendMEMBER_ID('000000250329', '000000250329') # p.sendALT_ID('4083909353', '4083909353', '11') time.sleep(1) ScanItemQty('item 2880016205', 1, 1) p.sendTOTAL(total, subtotal) total -= p.getDiscounts()
# upc, description, price, department plu.addItem(Item('0000000333333444', 'DeliHam', 3.49, 3000)) plu.addItem(Item('0000000333333445', 'Wurst', 5.49, 3000)) plu.addItem(Item('0000000333333446', 'OlivLoaf', 4.49, 3000)) plu.addItem(Item('000000120000013', 'DtPepsi', 1.79, 1000)) plu.addItem(Item('13803001198', 'DtPepsiStap', 3.99, 1000)) plu.addItem(Item('1899698432', 'battery pack', 7.99, 1)) plu.addItem(Item('41555000701', 'Corn', 0.60, 1000)) plu.addItem(Item('4401', 'CatFood', 28.77, 1)) plu.addItem(Item('0000000000004756', 'PrepMeal', 9.99, 3000)) tlu = TLU() # description, tenderID, subID, bin tlu.addTender(Tender('ckstender', 1, 1, 0)) p = protocol_281b9('153.73.161.206', 1099, '0001', 4, False) total = 0.0 subtotal = 0.0 p.sendSTATUS() ########################################################################################### p.sendBEGIN_TRANSACTION() p.sendMEMBER_ID('46100008013', '46100008013') ScanItem('DtPepsi', 1) ScanItem('DtPepsiStap', 2) p.sendTOTAL(total, subtotal)
plu = PLU() # upc, description, price, department plu.addItem(Item('0000000333333444', 'DeliHam', 3.49, 3000)) plu.addItem(Item('0000000333333445', 'Wurst', 5.49, 3000)) plu.addItem(Item('0000000333333446', 'OlivLoaf', 4.49, 3000)) plu.addItem(Item('000000120000013', 'DtPepsi', 1.79, 1000)) plu.addItem(Item('13803001198', 'DtPepsiStap', 3.99, 1000)) plu.addItem(Item('1899698432', 'battery pack', 7.99, 1)) plu.addItem(Item('1899698433', 'battery pack A', 5.99, 1)) tlu = TLU() # description, tenderID, subID, bin tlu.addTender(Tender('ckstender', 1, 1, 0)) #p = protocol_281b9('153.73.161.206', 1099, '126', 1, False) p = protocol_281b9('153.73.240.126', 1099, '126', 1, False) total = 0.0 subtotal = 0.0 p.sendSTATUS() ########################################################################################### p.sendBEGIN_TRANSACTION() #p.sendMEMBER_ID('46100008013', '46100008013') p.sendMEMBER_ID('446666686650', '446666686650') #p.sendALT_ID('7706237177', '00000000000', '11') ScanItem('DeliHam', 1) ScanItem('Wurst', 2) ScanItem('OlivLoaf', 3)