Subversion Repositories SmartDukaan

Rev

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

Rev 6504 Rev 6536
Line 171... Line 171...
171
            log.warn("Invalid email address : " + email, e1);
171
            log.warn("Invalid email address : " + email, e1);
172
            return "ERROR : Invalid email address.";
172
            return "ERROR : Invalid email address.";
173
        }
173
        }
174
        
174
        
175
        if (RechargeType.findByValue(Integer.parseInt(this.rechargeType)) == RechargeType.DTH) {
175
        if (RechargeType.findByValue(Integer.parseInt(this.rechargeType)) == RechargeType.DTH) {
176
            if (Long.parseLong(totalAmount) < 200 || Long.parseLong(totalAmount) > 9999) {
176
            if (Long.parseLong(totalAmount) < 200 || Long.parseLong(totalAmount) > 2000) {
177
                return "DTH recharge amount should be between Rs.200 and Rs.9999";
177
                return "DTH recharge amount should be between Rs.200 and Rs.2000";
178
            }
178
            }
179
          
179
          
180
        } else if (RechargeType.findByValue(Integer.parseInt(this.rechargeType)) == RechargeType.MOBILE) {
180
        } else if (RechargeType.findByValue(Integer.parseInt(this.rechargeType)) == RechargeType.MOBILE) {
181
            if (Long.parseLong(totalAmount) < 10 || Long.parseLong(totalAmount) > 1000) {
181
            if (Long.parseLong(totalAmount) < 10 || Long.parseLong(totalAmount) > 1000) {
182
                return "Recharge amount should be between Rs.10 and Rs.1000";
182
                return "Recharge amount should be between Rs.10 and Rs.1000";