Subversion Repositories SmartDukaan

Rev

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

Rev 20072 Rev 20074
Line 1963... Line 1963...
1963
    order = get_order(orderId)
1963
    order = get_order(orderId)
1964
    if order.status != OrderStatus.ACCEPTED:
1964
    if order.status != OrderStatus.ACCEPTED:
1965
        return False
1965
        return False
1966
    logisticsTxnId = order.logisticsTransactionId
1966
    logisticsTxnId = order.logisticsTransactionId
1967
 
1967
 
1968
    orders = [get_order(orderId)]
1968
    orders = [order]
1969
    if logisticsTxnId is None:
1969
    if logisticsTxnId is not None:
1970
        orders = Order.query.filter(Order.logisticsTransactionId==order.logisticsTransactionId).all()
1970
        orders = Order.query.filter(Order.logisticsTransactionId==logisticsTxnId).all()
1971
    for o in orders:
1971
    for o in orders:
1972
        o.status = OrderStatus.SUBMITTED_FOR_PROCESSING 
1972
        o.status = OrderStatus.SUBMITTED_FOR_PROCESSING 
1973
        o.statusDescription = 'Submitted For Processing'
1973
        o.statusDescription = 'Submitted For Processing'
1974
        o.accepted_timestamp = None
1974
        o.accepted_timestamp = None
1975
        o.logisticsTransactionId = None
1975
        o.logisticsTransactionId = None