| Line 1463... |
Line 1463... |
| 1463 |
OrderStatus.CANCEL_REQUEST_CONFIRMED : OrderStatus.CANCELLED_ON_CUSTOMER_REQUEST
|
1463 |
OrderStatus.CANCEL_REQUEST_CONFIRMED : OrderStatus.CANCELLED_ON_CUSTOMER_REQUEST
|
| 1464 |
}
|
1464 |
}
|
| 1465 |
if order.status not in status_transition.keys():
|
1465 |
if order.status not in status_transition.keys():
|
| 1466 |
raise TransactionServiceException(114, "This order can't be refunded")
|
1466 |
raise TransactionServiceException(114, "This order can't be refunded")
|
| 1467 |
|
1467 |
|
| 1468 |
if order.status < OrderStatus.BILLED:
|
1468 |
if order.status in [OrderStatus.COD_VERIFICATION_PENDING, OrderStatus.SUBMITTED_FOR_PROCESSING, OrderStatus.INVENTORY_LOW, OrderStatus.LOW_INV_PO_RAISED, OrderStatus.LOW_INV_REVERSAL_IN_PROCESS, OrderStatus.LOW_INV_NOT_AVAILABLE_AT_HOTSPOT]:
|
| 1469 |
__update_inventory_reservation(order)
|
1469 |
__update_inventory_reservation(order)
|
| 1470 |
order.statusDescription = "Order Cancelled"
|
1470 |
order.statusDescription = "Order Cancelled"
|
| 1471 |
elif order.status == OrderStatus.BILLED:
|
1471 |
elif order.status == OrderStatus.BILLED:
|
| 1472 |
__create_return_order(order)
|
1472 |
__create_return_order(order)
|
| 1473 |
order.statusDescription = "Order Cancelled"
|
1473 |
order.statusDescription = "Order Cancelled"
|