Subversion Repositories SmartDukaan

Rev

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

Rev 4452 Rev 4454
Line 603... Line 603...
603
        try:
603
        try:
604
            return toggle_doa_flag(orderId)
604
            return toggle_doa_flag(orderId)
605
        finally:
605
        finally:
606
            close_session()
606
            close_session()
607
 
607
 
-
 
608
    def markOrderDoaRequestReceived(self, orderId):
-
 
609
        """
-
 
610
        Once user raise the request for a DOA, order status will be changed from DELVIERY_SUCCESS to DOA_REQUEST_RECEIVED
-
 
611
    
-
 
612
        Parameters:
-
 
613
         - orderId
-
 
614
        """
-
 
615
        try:
-
 
616
            return mark_order_doa_request_received(orderId)
-
 
617
        finally:
-
 
618
            close_session()
-
 
619
 
-
 
620
    def markOrderDoaRequestAuthorized(self, orderId, isAuthorized):
-
 
621
        """
-
 
622
        CRM person can authorize or deny the request reised by customer. If he authorizes order will change from DOA_REQUEST_RECEIVED
-
 
623
        to DOA_REQUEST_AUTHORIZED. If he denies, status will be changed back to DELVIERY_SUCCESS.
-
 
624
    
-
 
625
        Parameters:
-
 
626
         - orderId
-
 
627
         - isAuthorized
-
 
628
        """
-
 
629
        try:
-
 
630
            return mark_order_doa_request_authorized(orderId, isAuthorized)
-
 
631
        finally:
-
 
632
            close_session()
-
 
633
 
608
    def requestPickupNumber(self, orderId):
634
    def requestPickupNumber(self, orderId):
609
        """
635
        """
610
        Sends out an email to the account manager of the original courier provider used to ship the order.
636
        Sends out an email to the account manager of the original courier provider used to ship the order.
611
        If the order status was DELIVERY_SUCCESS, it is changed to be DOA_PICKUP_REQUEST_RAISED.
637
        If the order status was DELIVERY_SUCCESS, it is changed to be DOA_PICKUP_REQUEST_RAISED.
612
        If the order status was DOA_PICKUP_REQUEST_RAISED, it is left unchanged.
638
        If the order status was DOA_PICKUP_REQUEST_RAISED, it is left unchanged.