Subversion Repositories SmartDukaan

Rev

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

Rev 2591 Rev 2599
Line 391... Line 391...
391
    """
391
    """
392
    pass
392
    pass
393
 
393
 
394
  def acceptDoa(self, orderId):
394
  def acceptDoa(self, orderId):
395
    """
395
    """
396
    If the order status is DOA_RETURN_AUTHORIZED or DOA_RETURN_IN_TRANSIT, marks the order status as DOA_RETURNED and returns true.
396
    If the order status is DOA_RETURN_AUTHORIZED or DOA_RETURN_IN_TRANSIT, marks the order status as DOA_RECEIVED and returns true.
397
    If the order is in any other state, it returns false.
397
    If the order is in any other state, it returns false.
398
    Throws an exception if the order with the given id couldn't be found.
398
    Throws an exception if the order with the given id couldn't be found.
399
    
399
    
400
    Parameters:
400
    Parameters:
401
     - orderId
401
     - orderId
402
    """
402
    """
403
    pass
403
    pass
404
 
404
 
405
  def validateDoa(self, orderId, isValid):
405
  def validateDoa(self, orderId, isValid):
406
    """
406
    """
407
    Used to validate the DOA certificate for an order in the DOA_RETURNED state. If the certificate is valid,
407
    Used to validate the DOA certificate for an order in the DOA_RECEIVED state. If the certificate is valid,
408
    the order state is changed to DOA_PENDING and the warehouse executive gets to print a return receiving letter.
408
    the order state is changed to DOA_PENDING.
409
    If the certificate is invalid, the order state is changed to DOA_CERT_INVALID.
409
    If the certificate is invalid, the order state is changed to DOA_CERT_INVALID.
410
    If the order is in any other state, it returns false.
410
    If the order is in any other state, it returns false.
411
    Throws an exception if the order with the given id couldn't be found.
411
    Throws an exception if the order with the given id couldn't be found.
412
    
412
    
413
    Parameters:
413
    Parameters:
Line 1803... Line 1803...
1803
      raise result.ex
1803
      raise result.ex
1804
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authorizePickup failed: unknown result");
1804
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authorizePickup failed: unknown result");
1805
 
1805
 
1806
  def acceptDoa(self, orderId):
1806
  def acceptDoa(self, orderId):
1807
    """
1807
    """
1808
    If the order status is DOA_RETURN_AUTHORIZED or DOA_RETURN_IN_TRANSIT, marks the order status as DOA_RETURNED and returns true.
1808
    If the order status is DOA_RETURN_AUTHORIZED or DOA_RETURN_IN_TRANSIT, marks the order status as DOA_RECEIVED and returns true.
1809
    If the order is in any other state, it returns false.
1809
    If the order is in any other state, it returns false.
1810
    Throws an exception if the order with the given id couldn't be found.
1810
    Throws an exception if the order with the given id couldn't be found.
1811
    
1811
    
1812
    Parameters:
1812
    Parameters:
1813
     - orderId
1813
     - orderId
Line 1839... Line 1839...
1839
      raise result.ex
1839
      raise result.ex
1840
    raise TApplicationException(TApplicationException.MISSING_RESULT, "acceptDoa failed: unknown result");
1840
    raise TApplicationException(TApplicationException.MISSING_RESULT, "acceptDoa failed: unknown result");
1841
 
1841
 
1842
  def validateDoa(self, orderId, isValid):
1842
  def validateDoa(self, orderId, isValid):
1843
    """
1843
    """
1844
    Used to validate the DOA certificate for an order in the DOA_RETURNED state. If the certificate is valid,
1844
    Used to validate the DOA certificate for an order in the DOA_RECEIVED state. If the certificate is valid,
1845
    the order state is changed to DOA_PENDING and the warehouse executive gets to print a return receiving letter.
1845
    the order state is changed to DOA_PENDING.
1846
    If the certificate is invalid, the order state is changed to DOA_CERT_INVALID.
1846
    If the certificate is invalid, the order state is changed to DOA_CERT_INVALID.
1847
    If the order is in any other state, it returns false.
1847
    If the order is in any other state, it returns false.
1848
    Throws an exception if the order with the given id couldn't be found.
1848
    Throws an exception if the order with the given id couldn't be found.
1849
    
1849
    
1850
    Parameters:
1850
    Parameters: