Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

package com.spice.profitmandi.dao.enumuration.dtr;

import java.util.Arrays;
import java.util.List;

/**
 * Predefined visit-agenda options shown on the Assign Visit modal.
 * Mirrors the React form's agendaOptions list. Multiple values are allowed
 * per assignment — they get comma-joined into LocationTracking.task_name.
 */
public enum VisitAgenda {
    LOW_INVESTMENT("Low investment"),
    LOW_SALES("Low sales"),
    LOW_PURCHASE("Low purchase"),
    BRAND_ADDITION("Brand addition"),
    CREDIT_DUES("Credit dues"),
    SYSTEM_TRAINING("System training"),
    REVIVAL("Revival"),
    NEW_STOCK_PAYMENT("New Stock Payment");

    private final String label;

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

    public static List<String> labels() {
        return Arrays.stream(values()).map(VisitAgenda::getLabel).collect(java.util.stream.Collectors.toList());
    }

    public String getLabel() {
        return label;
    }
}