Subversion Repositories SmartDukaan

Rev

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

Rev 19820 Rev 19832
Line 389... Line 389...
389
        """
389
        """
390
        try:
390
        try:
391
            return accept_order(orderId)
391
            return accept_order(orderId)
392
        finally:
392
        finally:
393
            close_session()
393
            close_session()
-
 
394
 
-
 
395
    def unacceptOrder(self, orderId):
-
 
396
        """
-
 
397
        Rollsback to Processing State
-
 
398
        
-
 
399
        Parameters:
-
 
400
         - orderId
-
 
401
        """
-
 
402
        try:
-
 
403
            return accept_order(orderId)
-
 
404
        finally:
-
 
405
            close_session()
394
    
406
    
395
    def getOrdersForCustomer(self, customerId, from_date, to_date, statuses):
407
    def getOrdersForCustomer(self, customerId, from_date, to_date, statuses):
396
        """
408
        """
397
        Returns list of orders for the given customer created between the given dates and having the given statuses.
409
        Returns list of orders for the given customer created between the given dates and having the given statuses.
398
        Pass and empty list to ignore filtering on statuses.
410
        Pass and empty list to ignore filtering on statuses.