| 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, get_return_order, mark_doas_as_picked_up
|
20 |
process_return, get_return_order, mark_doas_as_picked_up,\
|
| - |
|
21 |
create_purchase_order
|
| 21 |
|
22 |
|
| 22 |
from shop2020.model.v1.order.impl.Convertors import to_t_transaction,\
|
23 |
from shop2020.model.v1.order.impl.Convertors import to_t_transaction,\
|
| 23 |
to_t_alert, to_t_order, to_t_lineitem
|
24 |
to_t_alert, to_t_order, to_t_lineitem
|
| 24 |
from shop2020.thriftpy.model.v1.order.ttypes import Transaction, OrderStatus,\
|
25 |
from shop2020.thriftpy.model.v1.order.ttypes import Transaction, OrderStatus,\
|
| 25 |
LineItem, Order, TransactionServiceException
|
26 |
LineItem, Order, TransactionServiceException
|
| Line 680... |
Line 681... |
| 680 |
try:
|
681 |
try:
|
| 681 |
process_return(returnOrderId)
|
682 |
process_return(returnOrderId)
|
| 682 |
finally:
|
683 |
finally:
|
| 683 |
close_session()
|
684 |
close_session()
|
| 684 |
|
685 |
|
| - |
|
686 |
def createPurchaseOrder(self, warehouseId):
|
| - |
|
687 |
"""
|
| - |
|
688 |
Creates a purchase order corresponding to all the pending orders of the given warehouse.
|
| - |
|
689 |
Returns the PO no. of the newly created purchase order.
|
| - |
|
690 |
|
| - |
|
691 |
Parameters:
|
| - |
|
692 |
- warehouseId
|
| - |
|
693 |
"""
|
| - |
|
694 |
try:
|
| - |
|
695 |
return create_purchase_order(warehouseId)
|
| - |
|
696 |
finally:
|
| - |
|
697 |
close_session()
|
| - |
|
698 |
|
| 685 |
def closeSession(self, ):
|
699 |
def closeSession(self, ):
|
| 686 |
close_session()
|
700 |
close_session()
|