Exemplo n.º 1
0
def writeOrd():
    print "Writing new order to file"
    print "-------------------------"
    print newOrderDict
    temp = int(fileOps.getNextOrderID())
    temp = str(temp + 1)
    fileOps.writeRecord(newOrderDict, temp)
    summaryLabelVar.set("New Order Saved")
    newCustProductsVar.set("")
    if (state == 0):
        addOrder()
    if (state == 1):
        showMain()
Exemplo n.º 2
0
def writeOrd():
	print "Writing new order to file"
	print "-------------------------"
	print newOrderDict
	temp = int(fileOps.getNextOrderID())
	temp = str(temp+1)
	fileOps.writeRecord(newOrderDict,temp)
	summaryLabelVar.set("New Order Saved")
	newCustProductsVar.set("")
	if(state == 0):
		addOrder()
	if(state == 1):
		showMain()
Exemplo n.º 3
0
def writeOrd():
    if state == 0:
        customerType = custTypeVar.get()
    else:
        for key in newOrderDict:
            custKey = key
            customerType = fileOps.getStockistType(custKey)
    print "Writing new order to file"
    print "-------------------------"
    print newOrderDict
    temp = int(fileOps.getNextOrderID())
    temp = str(temp + 1)
    fileOps.writeRecordQuant(newOrderDict, temp, customerType)
    summaryLabelVar.set("New Order Saved")
    newCustProductsVar.set("")
    if state == 0:
        addOrder()
    if state == 1:
        showMain()
Exemplo n.º 4
0
def writeOrd():
	if state == 0:
		customerType = custTypeVar.get()
	else:
		for key in newOrderDict:
			custKey = key
			customerType = fileOps.getStockistType(custKey)
	print "Writing new order to file"
	print "-------------------------"
	print newOrderDict
	temp = int(fileOps.getNextOrderID())
	temp = str(temp+1)
	fileOps.writeRecordQuant(newOrderDict,temp,customerType)
	summaryLabelVar.set("New Order Saved")
	newCustProductsVar.set("")
	if state == 0:
		addOrder()
	if state == 1:
		showMain()