package org.innovateuk.ifs.finance.resource.cost;

public enum OverheadRateType{
    NONE(null, null, "None"),
    DEFAULT_PERCENTAGE(20, "DEFAULT_PERCENTAGE", "Default %"),
    TOTAL(null, "total", "Custom Amount"),
    CUSTOM_RATE(null, "customRate", "Custom Rate"); // NOTE: Now that competiton 1 is gone, there is no need to keep custom rate. TODO: Check with Rogier and remove if safe : INFUND-7322

    private final Integer rate;
    private final String name;
    private final String label;

    OverheadRateType(Integer rate, String name, String label) {
        this.rate = rate;
        this.name = name;
        this.label = label;
    }

    public Integer getRate() {
        return rate;
    }
    public String getName() {
        return name;
    }

    public String getLabel() {
        return label;
    }
}
package org.innovateuk.ifs.finance.resource.cost;

public enum OverheadRateType{
    NONE(null, null, "None"),
    DEFAULT_PERCENTAGE(20, "defaultPercentage", "Default %"),
    TOTAL(null, "total", "Custom Amount"),
    CUSTOM_RATE(null, "customRate", "Custom Rate"); // NOTE: Now that competiton 1 is gone, there is no need to keep custom rate. TODO: Check with Rogier and remove if safe : INFUND-7322

    private final Integer rate;
    private final String name;
    private final String label;

    OverheadRateType(Integer rate, String name, String label) {
        this.rate = rate;
        this.name = name;
        this.label = label;
    }

    public Integer getRate() {
        return rate;
    }
    public String getName() {
        return name;
    }

    public String getLabel() {
        return label;
    }
}
Address PR comment. Made name consistent with others using camel case
Address PR comment.  Made name consistent with others using camel case


Former-commit-id: dd6877565ece23b153a6b4d26edc6a5d71ca1649