Subversion Repositories SmartDukaan

Rev

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

Rev 6053 Rev 6535
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 < 10000
-
 
45
44
        return super(DTHRechargeOrder, self).is_valid() and self.totalAmount < 2000
-
 
45
46
46