package com.ga.core.vo.commission;

import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 본사정산 항목유형 (HQ_ITEM_TYPE 그룹, V98)
 * hq_settle_item.item_type 에서 사용.
 * 본사손익 = Σ(INCOME) − Σ(EXPENSE)
 */
public enum HqItemType {
    INCOME("수입"),
    EXPENSE("비용");

    private final String label;

    HqItemType(String label) {
        this.label = label;
    }

    @JsonValue
    public String getCode() {
        return this.name();
    }

    public String getLabel() {
        return label;
    }
}
