Subversion Repositories SmartDukaan

Rev

Rev 2439 | Rev 3133 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2439 Rev 3031
Line 120... Line 120...
120
 
120
 
121
def change_product(order):
121
def change_product(order):
122
    '''
122
    '''
123
    Ship a product of a different color to the customer.
123
    Ship a product of a different color to the customer.
124
    '''
124
    '''
125
    if order.status != OrderStatus.SUBMITTED_FOR_PROCESSING:
125
    if order.status not in [OrderStatus.SUBMITTED_FOR_PROCESSING, OrderStatus.INVENTORY_LOW]:
126
        print "This order has already been processed. Please seek help from engineering."
126
        print "This order has already been processed. Please seek help from engineering."
127
        return
127
        return
128
    
128
    
129
    raw_item_id = raw_input("Enter the ID of the item that you want to ship: ")
129
    raw_item_id = raw_input("Enter the ID of the item that you want to ship: ")
130
    try:
130
    try: