package com.ruoyi.web.modules.trading.support;

/**
 * 供应商结算管理常量。
 */
public final class SettlementRules
{
    public static final String SETTLEMENT_STATUS_PENDING = "0";

    public static final String SETTLEMENT_STATUS_COMPLETED = "1";

    public static final String DEL_FLAG_NORMAL = "0";

    public static final String MSG_NOT_FOUND = "结算单不存在";

    public static final String MSG_NOT_PENDING = "仅待结算状态可完成结算";

    public static final String MSG_ALREADY_COMPLETED = "结算单已完成，无需重复操作";

    public static final String MSG_SETTLE_VOUCHER_REQUIRED = "请上传结算凭证";

    public static final String MSG_SETTLE_VOUCHER_INVALID = "结算凭证格式或大小不符合要求";

    public static final String MSG_ORDER_INVALID = "关联订单不存在或状态异常，无法完成结算";

    private SettlementRules()
    {
    }

    public static String settlementStatusName(String settlementStatus)
    {
        if (SETTLEMENT_STATUS_COMPLETED.equals(settlementStatus))
        {
            return "已完成";
        }
        return "待结算";
    }
}
