Subversion Repositories SmartDukaan

Rev

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

Rev 3133 Rev 3260
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 not in [OrderStatus.SUBMITTED_FOR_PROCESSING, OrderStatus.INVENTORY_LOW]:
125
    if order.status not in [OrderStatus.INIT, 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:
Line 156... Line 156...
156
 
156
 
157
def change_warehouse(order):
157
def change_warehouse(order):
158
    '''
158
    '''
159
    Update the warehouse which will be used to fulfil this order.
159
    Update the warehouse which will be used to fulfil this order.
160
    '''
160
    '''
161
    if order.status != OrderStatus.SUBMITTED_FOR_PROCESSING and order.status != OrderStatus.INVENTORY_LOW:
161
    if order.status not in [OrderStatus.INIT, OrderStatus.SUBMITTED_FOR_PROCESSING, OrderStatus.INVENTORY_LOW]:
162
        print "This order has already been processed. Please seek help from engineering."
162
        print "This order has already been processed. Please seek help from engineering."
163
        return
163
        return
164
    
164
    
165
    print("Current Warehouse: " + str(order.warehouse_id))
165
    print("Current Warehouse: " + str(order.warehouse_id))
166
    
166