| Line 15... |
Line 15... |
| 15 |
order_outofstock, batch_orders, update_non_delivery_reason, enqueue_transaction_info_email,\
|
15 |
order_outofstock, batch_orders, update_non_delivery_reason, enqueue_transaction_info_email,\
|
| 16 |
get_undelivered_orders, get_order_for_customer, get_valid_order_count,\
|
16 |
get_undelivered_orders, get_order_for_customer, get_valid_order_count,\
|
| 17 |
get_cust_count_with_successful_txn, get_valid_orders_amount_range,\
|
17 |
get_cust_count_with_successful_txn, get_valid_orders_amount_range,\
|
| 18 |
get_valid_orders, toggle_doa_flag, request_pickup_number, authorize_pickup,\
|
18 |
get_valid_orders, toggle_doa_flag, request_pickup_number, authorize_pickup,\
|
| 19 |
receive_return, validate_doa, reship_order, refund_order, get_return_orders,\
|
19 |
receive_return, validate_doa, reship_order, refund_order, get_return_orders,\
|
| 20 |
process_return
|
20 |
process_return, get_return_order
|
| 21 |
|
21 |
|
| 22 |
from shop2020.model.v1.order.impl.Convertors import to_t_transaction,\
|
22 |
from shop2020.model.v1.order.impl.Convertors import to_t_transaction,\
|
| 23 |
to_t_alert, to_t_order, to_t_lineitem
|
23 |
to_t_alert, to_t_order, to_t_lineitem
|
| 24 |
from shop2020.thriftpy.model.v1.order.ttypes import Transaction, OrderStatus,\
|
24 |
from shop2020.thriftpy.model.v1.order.ttypes import Transaction, OrderStatus,\
|
| 25 |
LineItem, Order
|
25 |
LineItem, Order
|
| Line 632... |
Line 632... |
| 632 |
from_date, to_date = get_fdate_tdate(fromDate, toDate)
|
632 |
from_date, to_date = get_fdate_tdate(fromDate, toDate)
|
| 633 |
return get_return_orders(warehouseId, from_date, to_date)
|
633 |
return get_return_orders(warehouseId, from_date, to_date)
|
| 634 |
finally:
|
634 |
finally:
|
| 635 |
close_session()
|
635 |
close_session()
|
| 636 |
|
636 |
|
| - |
|
637 |
def getReturnOrder(self, id):
|
| - |
|
638 |
"""
|
| - |
|
639 |
Returns the ReturnOrder corresponding to the given id.
|
| - |
|
640 |
Throws an exception if the return order with the given id couldn't be found.
|
| - |
|
641 |
|
| - |
|
642 |
Parameters:
|
| - |
|
643 |
- id
|
| - |
|
644 |
"""
|
| - |
|
645 |
try:
|
| - |
|
646 |
return get_return_order(id)
|
| - |
|
647 |
finally:
|
| - |
|
648 |
close_session()
|
| - |
|
649 |
|
| 637 |
def processReturn(self, returnOrderId):
|
650 |
def processReturn(self, returnOrderId):
|
| 638 |
"""
|
651 |
"""
|
| 639 |
Marks the return order with the given id as processed. Raises an exception if no such return order exists.
|
652 |
Marks the return order with the given id as processed. Raises an exception if no such return order exists.
|
| 640 |
|
653 |
|
| 641 |
Parameters:
|
654 |
Parameters:
|