Subversion Repositories SmartDukaan

Rev

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

Rev 34378 Rev 34379
Line 3598... Line 3598...
3598
        }
3598
        }
3599
 
3599
 
3600
    }
3600
    }
3601
    private static final NavigableMap<Double, Double> discountMap = new TreeMap<>();
3601
    private static final NavigableMap<Double, Double> discountMap = new TreeMap<>();
3602
    static {
3602
    static {
3603
        discountMap.put(6*ProfitMandiConstants.ONE_LAC-1, 0.2);   // Up to 6 -> 20%
3603
        discountMap.put(4*ProfitMandiConstants.ONE_LAC-1, 0.2);   // Up to 6 -> 20%
3604
        discountMap.put(10*ProfitMandiConstants.ONE_LAC-1, 0.25);  // 6-10 -> 25%
3604
        discountMap.put(10*ProfitMandiConstants.ONE_LAC-1, 0.25);  // 6-10 -> 25%
3605
        discountMap.put(20*ProfitMandiConstants.ONE_LAC-1, 0.3); // Above 10 -> 30%
3605
        discountMap.put(20*ProfitMandiConstants.ONE_LAC-1, 0.3); // Above 10 -> 30%
3606
        discountMap.put(Double.MAX_VALUE, 0.4); // Above 10 -> 30%
3606
        discountMap.put(Double.MAX_VALUE, 0.4); // Above 10 -> 30%
3607
    }
3607
    }
3608
    public  BigDecimal getSuggestedLimit(double investmentValue) {
3608
    public  BigDecimal getSuggestedLimit(double investmentValue) {