Subversion Repositories SmartDukaan

Rev

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

Rev 7139 Rev 7151
Line 91... Line 91...
91
                TelecomCircle circle = tcl1.getClient().getTelecomCircle(-1, circlecode);
91
                TelecomCircle circle = tcl1.getClient().getTelecomCircle(-1, circlecode);
92
                if(circle != null) {
92
                if(circle != null) {
93
                    circleId = circle.getId();
93
                    circleId = circle.getId();
94
                }
94
                }
95
            }
95
            }
96
            
96
            this.paymentAmount = Long.parseLong(amount) - Long.parseLong(discount);
97
            if(rechargeType.equals("2")) {
97
            if(rechargeType.equals("2")) {
98
                for (FRC frc : tcl.getClient().getFRCs(circleId, Long.parseLong(mobileOperator))) {
98
                for (FRC frc : tcl.getClient().getFRCs(circleId, Long.parseLong(mobileOperator))) {
99
                    if(frc.getDenomination() == Long.parseLong(amount)) {
99
                    if(frc.getDenomination() == Long.parseLong(amount)) {
100
                        if(frc.getMaxDiscount() < Long.parseLong(discount)) {
100
                        if(frc.getMaxDiscount() < Long.parseLong(discount)) {
101
                            errorMessage = "Maximum discount possible is Rs. " + frc.getMaxDiscount();
101
                            errorMessage = "Maximum discount possible is Rs. " + frc.getMaxDiscount();