Subversion Repositories SmartDukaan

Rev

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

Rev 6754 Rev 6800
Line 179... Line 179...
179
            log.warn("Invalid email address : " + email, e1);
179
            log.warn("Invalid email address : " + email, e1);
180
            return "ERROR : Invalid email address.";
180
            return "ERROR : Invalid email address.";
181
        }
181
        }
182
        
182
        
183
        if (RechargeType.findByValue(Integer.parseInt(this.rechargeType)) == RechargeType.DTH) {
183
        if (RechargeType.findByValue(Integer.parseInt(this.rechargeType)) == RechargeType.DTH) {
184
            if (Long.parseLong(totalAmount) < 200 || Long.parseLong(totalAmount) > 2000) {
184
            if (Long.parseLong(totalAmount) < 250 || Long.parseLong(totalAmount) > 2000) {
-
 
185
                if(operator.equals("1")) {
-
 
186
                    return "DishTv recharge amount should be between Rs.250 and Rs.2000";
-
 
187
                }
-
 
188
                
-
 
189
                if (!(Long.parseLong(totalAmount) >= 200 && Long.parseLong(totalAmount) < 250)) {
185
                return "DTH recharge amount should be between Rs.200 and Rs.2000";
190
                    return "DTH recharge amount should be between Rs.200 and Rs.2000";
-
 
191
                }
186
            }
192
            }
187
          
193
          
188
        } else if (RechargeType.findByValue(Integer.parseInt(this.rechargeType)) == RechargeType.MOBILE) {
194
        } else if (RechargeType.findByValue(Integer.parseInt(this.rechargeType)) == RechargeType.MOBILE) {
189
            if (Long.parseLong(totalAmount) < 10 || Long.parseLong(totalAmount) > 1000) {
195
            if (Long.parseLong(totalAmount) < 10 || Long.parseLong(totalAmount) > 1000) {
190
                return "Recharge amount should be between Rs.10 and Rs.1000";
196
                return "Recharge amount should be between Rs.10 and Rs.1000";