Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.enumuration.dtr;/*** Agenda types tracked as lifecycle instances (user.agenda_instance.agenda_type).* Mirrors {@link VisitAgenda} 1:1 (same names, same labels). Five have AUTO rules* (LOW_INVESTMENT, LOW_SALES, LOW_PURCHASE, CREDIT_DUES, REVIVAL — the last* mirrors fofo_store.activation_type); all are manual-pickable on Assign Visit.*/public enum AgendaType {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;AgendaType(String label) {this.label = label;}public String getLabel() {return label;}public static AgendaType fromLabel(String label) {if (label == null) return null;for (AgendaType t : values()) {if (t.label.equalsIgnoreCase(label.trim())) return t;}return null;}}