| 36718 |
ranu |
1 |
package com.spice.profitmandi.dao.enumuration.dtr;
|
|
|
2 |
|
|
|
3 |
import java.util.Arrays;
|
|
|
4 |
import java.util.List;
|
|
|
5 |
|
|
|
6 |
/**
|
|
|
7 |
* Predefined visit-agenda options shown on the Assign Visit modal.
|
|
|
8 |
* Mirrors the React form's agendaOptions list. Multiple values are allowed
|
|
|
9 |
* per assignment — they get comma-joined into LocationTracking.task_name.
|
|
|
10 |
*/
|
|
|
11 |
public enum VisitAgenda {
|
|
|
12 |
LOW_INVESTMENT("Low investment"),
|
|
|
13 |
LOW_SALES("Low sales"),
|
|
|
14 |
LOW_PURCHASE("Low purchase"),
|
|
|
15 |
BRAND_ADDITION("Brand addition"),
|
|
|
16 |
CREDIT_DUES("Credit dues"),
|
|
|
17 |
SYSTEM_TRAINING("System training"),
|
|
|
18 |
REVIVAL("Revival"),
|
|
|
19 |
NEW_STOCK_PAYMENT("New Stock Payment");
|
|
|
20 |
|
|
|
21 |
private final String label;
|
|
|
22 |
|
|
|
23 |
VisitAgenda(String label) {
|
|
|
24 |
this.label = label;
|
|
|
25 |
}
|
|
|
26 |
|
|
|
27 |
public static List<String> labels() {
|
|
|
28 |
return Arrays.stream(values()).map(VisitAgenda::getLabel).collect(java.util.stream.Collectors.toList());
|
|
|
29 |
}
|
|
|
30 |
|
|
|
31 |
public String getLabel() {
|
|
|
32 |
return label;
|
|
|
33 |
}
|
|
|
34 |
}
|