Subversion Repositories SmartDukaan

Rev

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

Rev 5593 Rev 5676
Line 38... Line 38...
38
    get_doas_not_picked_up, get_return_orders_not_picked_up, get_orders_not_picked_up, get_rto_orders, get_order_list,\
38
    get_doas_not_picked_up, get_return_orders_not_picked_up, get_orders_not_picked_up, get_rto_orders, get_order_list,\
39
    get_order_ids_for_status, update_orders_as_paid_to_vendor, update_COD_agent,\
39
    get_order_ids_for_status, update_orders_as_paid_to_vendor, update_COD_agent,\
40
    get_refunded_orders_marked_paid, get_settlement_for_Cod, get_order_list_for_vendor, update_order_only_as_paid_to_vendor,\
40
    get_refunded_orders_marked_paid, get_settlement_for_Cod, get_order_list_for_vendor, update_order_only_as_paid_to_vendor,\
41
    get_all_verification_agents, get_all_attributes_for_order_id, set_order_attribute_for_transaction, get_billed_orders, get_all_return_orders,\
41
    get_all_verification_agents, get_all_attributes_for_order_id, set_order_attribute_for_transaction, get_billed_orders, get_all_return_orders,\
42
    mark_order_as_received_at_store, get_receive_pending_orders,\
42
    mark_order_as_received_at_store, get_receive_pending_orders,\
43
    get_received_at_store_orders
43
    get_received_at_store_orders, mark_orders_as_returned_from_store, set_order_attributes
44
 
44
 
45
 
45
 
46
from shop2020.model.v1.order.impl.Convertors import to_t_transaction,\
46
from shop2020.model.v1.order.impl.Convertors import to_t_transaction,\
47
    to_t_alert, to_t_order, to_t_lineitem, to_t_payment_settlement, to_t_verification_agent, to_t_attribute
47
    to_t_alert, to_t_order, to_t_lineitem, to_t_payment_settlement, to_t_verification_agent, to_t_attribute
48
from shop2020.thriftpy.model.v1.order.ttypes import Transaction, OrderStatus,\
48
from shop2020.thriftpy.model.v1.order.ttypes import Transaction, OrderStatus,\
Line 448... Line 448...
448
        try:
448
        try:
449
            return mark_orders_as_shipped_from_warehouse(warehouseId, providerId, cod, orderIds)
449
            return mark_orders_as_shipped_from_warehouse(warehouseId, providerId, cod, orderIds)
450
        finally:
450
        finally:
451
            close_session()
451
            close_session()
452
 
452
 
-
 
453
    def markOrdersAsReturnedFromStore(self, providerId, orderIds):
-
 
454
        """
-
 
455
        Parameters:
-
 
456
         - providerId
-
 
457
         - orderIds
-
 
458
        """
-
 
459
        try:
-
 
460
            return mark_orders_as_returned_from_store(providerId, orderIds)
-
 
461
        finally:
-
 
462
            close_session()
-
 
463
    
-
 
464
    def setOrderAttributes(self, orderId, attributes):
-
 
465
        """
-
 
466
        sets attributes for an order
-
 
467
 
-
 
468
        Parameters:
-
 
469
         - orderId
-
 
470
         - attributes
-
 
471
        """
-
 
472
        try:
-
 
473
            return set_order_attributes(orderId, attributes)
-
 
474
        finally:
-
 
475
            close_session()
-
 
476
 
-
 
477
 
453
    def markOrdersAsPickedUp(self, providerId, pickupDetails):
478
    def markOrdersAsPickedUp(self, providerId, pickupDetails):
454
        """
479
        """
455
        Marks all SHIPPED_FROM_WH orders of the previous day for a provider as SHIPPED_TO_LOGISTICS.
480
        Marks all SHIPPED_FROM_WH orders of the previous day for a provider as SHIPPED_TO_LOGISTICS.
456
        Raises an exception if we encounter report for an AWB number that we did not ship.
481
        Raises an exception if we encounter report for an AWB number that we did not ship.
457
        
482