Subversion Repositories SmartDukaan

Rev

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

Rev 4008 Rev 4018
Line 19... Line 19...
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, verify_order, is_alive, get_orders_by_shipping_date,\
21
    create_purchase_order, verify_order, is_alive, get_orders_by_shipping_date,\
22
    update_weight, change_warehouse, change_product, add_delay_reason,\
22
    update_weight, change_warehouse, change_product, add_delay_reason,\
23
    reconcile_cod_collection, get_transactions_requiring_extra_processing,\
23
    reconcile_cod_collection, get_transactions_requiring_extra_processing,\
24
    mark_transaction_as_processed
24
    mark_transaction_as_processed, get_item_wise_risky_orders_count
25
 
25
 
26
from shop2020.model.v1.order.impl.Convertors import to_t_transaction,\
26
from shop2020.model.v1.order.impl.Convertors import to_t_transaction,\
27
    to_t_alert, to_t_order, to_t_lineitem
27
    to_t_alert, to_t_order, to_t_lineitem
28
from shop2020.thriftpy.model.v1.order.ttypes import Transaction, OrderStatus,\
28
from shop2020.thriftpy.model.v1.order.ttypes import Transaction, OrderStatus,\
29
    LineItem, Order, TransactionServiceException
29
    LineItem, Order, TransactionServiceException
Line 851... Line 851...
851
        """
851
        """
852
        try:
852
        try:
853
            return mark_transaction_as_processed(transactionId, category)
853
            return mark_transaction_as_processed(transactionId, category)
854
        finally:
854
        finally:
855
            close_session()
855
            close_session()
-
 
856
            
-
 
857
    def getItemWiseRiskyOrdersCount(self, ):
-
 
858
        """
-
 
859
        Returns a map containing the number of risky orders keyed by item id. A risky order
-
 
860
        is defined as one whose shipping date is about to expire.
-
 
861
        """
-
 
862
        try:
-
 
863
            return get_item_wise_risky_orders_count()
-
 
864
        finally:
-
 
865
            close_session()
856
    
866
    
857
    def closeSession(self, ):
867
    def closeSession(self, ):
858
        close_session()
868
        close_session()
859
 
869
 
860
    def isAlive(self, ):
870
    def isAlive(self, ):