| Line 112... |
Line 112... |
| 112 |
create_homeshop_order, get_homeshop_order, split_bulk_order, move_orders_to_correct_warehouse, \
|
112 |
create_homeshop_order, get_homeshop_order, split_bulk_order, move_orders_to_correct_warehouse, \
|
| 113 |
verify_orders_for_transaction, get_creditor_info, update_creditor_info, get_user_sanction_details, \
|
113 |
verify_orders_for_transaction, get_creditor_info, update_creditor_info, get_user_sanction_details, \
|
| 114 |
update_user_sanction, get_credit_history_records, process_credit_transaction, \
|
114 |
update_user_sanction, get_credit_history_records, process_credit_transaction, \
|
| 115 |
get_loan_payable_for_user_to_creditor, get_loan_history_records, \
|
115 |
get_loan_payable_for_user_to_creditor, get_loan_history_records, \
|
| 116 |
process_loan_transaction, get_credit_history_records_paginated, get_loan_history_records_paginated, \
|
116 |
process_loan_transaction, get_credit_history_records_paginated, get_loan_history_records_paginated, \
|
| 117 |
get_user_sanction_details_paginated, get_orders_in_batch_as_promised_shipping
|
117 |
get_user_sanction_details_paginated, get_orders_in_batch_as_promised_shipping, set_order_attribute_for_master_order_id, \
|
| - |
|
118 |
update_master_order_awb
|
| 118 |
from shop2020.model.v1.order.impl.DataService import DtrBatchCreditTracker
|
119 |
from shop2020.model.v1.order.impl.DataService import DtrBatchCreditTracker
|
| 119 |
from shop2020.model.v1.order.impl.model.DTHRechargeOrder import DTHRechargeOrder
|
120 |
from shop2020.model.v1.order.impl.model.DTHRechargeOrder import DTHRechargeOrder
|
| 120 |
from shop2020.model.v1.order.impl.model.DigitalTransaction import \
|
121 |
from shop2020.model.v1.order.impl.model.DigitalTransaction import \
|
| 121 |
DigitalTransaction
|
122 |
DigitalTransaction
|
| 122 |
from shop2020.model.v1.order.impl.model.MobileRechargeOrder import \
|
123 |
from shop2020.model.v1.order.impl.model.MobileRechargeOrder import \
|
| Line 2784... |
Line 2785... |
| 2784 |
orders = get_orders_in_batch_as_promised_shipping(statuses, offset, limit, warehouse_id, source)
|
2785 |
orders = get_orders_in_batch_as_promised_shipping(statuses, offset, limit, warehouse_id, source)
|
| 2785 |
return [to_t_order(order) for order in orders]
|
2786 |
return [to_t_order(order) for order in orders]
|
| 2786 |
finally:
|
2787 |
finally:
|
| 2787 |
close_session()
|
2788 |
close_session()
|
| 2788 |
|
2789 |
|
| - |
|
2790 |
def setOrderAttributeForMasterOrderId(self, logisticsTransactionId, attributes):
|
| - |
|
2791 |
try:
|
| - |
|
2792 |
set_order_attribute_for_master_order_id(logisticsTransactionId, attributes)
|
| - |
|
2793 |
finally:
|
| - |
|
2794 |
close_session()
|
| - |
|
2795 |
|
| - |
|
2796 |
def updateMasterOrderAWB(self, logisticsTransactionId, airwaybill_no):
|
| - |
|
2797 |
try:
|
| - |
|
2798 |
return update_master_order_awb(logisticsTransactionId, airwaybill_no)
|
| - |
|
2799 |
finally:
|
| - |
|
2800 |
close_session()
|
| - |
|
2801 |
|
| 2789 |
def main():
|
2802 |
def main():
|
| 2790 |
OrderServiceHandler().creditBatch(2, '{"483649":100.0, "8021773":23, "123213":10}')
|
2803 |
OrderServiceHandler().creditBatch(2, '{"483649":100.0, "8021773":23, "123213":10}')
|
| 2791 |
|
2804 |
|
| 2792 |
if __name__ == '__main__':
|
2805 |
if __name__ == '__main__':
|
| 2793 |
main()
|
2806 |
main()
|
| 2794 |
|
2807 |
|