Subversion Repositories SmartDukaan

Rev

Rev 6535 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6535 Rev 6536
Line 39... Line 39...
39
        self.dthOperatorId = thriftDthRechargeOrder.operatorId
39
        self.dthOperatorId = thriftDthRechargeOrder.operatorId
40
        if not self.is_valid():
40
        if not self.is_valid():
41
            raise ValueError()
41
            raise ValueError()
42
 
42
 
43
    def is_valid(self):
43
    def is_valid(self):
44
        return super(DTHRechargeOrder, self).is_valid() and self.totalAmount < 2000
-
 
45
44
        return super(DTHRechargeOrder, self).is_valid() and self.totalAmount <= 2000
-
 
45
46
46