◆ ProspectStageWrapper()
org.turro.crm.zul.sale.ProspectStageWrapper.ProspectStageWrapper |
( |
SaleProspect |
saleProspect, |
|
|
Date |
now |
|
) |
| |
◆ canChangeTo()
boolean org.turro.crm.zul.sale.ProspectStageWrapper.canChangeTo |
( |
ProspectStage |
newStage | ) |
|
Definition at line 113 of file ProspectStageWrapper.java.
114 if(ProspectType.TRACING.equals(saleProspect.
getType()))
return false;
115 if(current.equals(ProspectStage.STARTED)) {
117 ProspectStage.BUDGETED,
118 ProspectStage.NEGOTIATING,
119 ProspectStage.CLOSED_WON,
120 ProspectStage.CLOSED_LOST).contains(newStage);
121 }
else if(current.equals(ProspectStage.BUDGETED)) {
123 ProspectStage.NEGOTIATING,
124 ProspectStage.CLOSED_WON,
125 ProspectStage.CLOSED_LOST).contains(newStage);
126 }
else if(current.equals(ProspectStage.NEGOTIATING)) {
128 ProspectStage.CLOSED_WON,
129 ProspectStage.CLOSED_LOST).contains(newStage);
◆ doChangeTo()
Definition at line 67 of file ProspectStageWrapper.java.
68 final ArrayList<SaleAction> saleActions =
new ArrayList<SaleAction>();
69 final Dao dao =
new CrmPU();
73 TouchPoint tp = sa.getEndingTouchPoint();
76 }
else if(tp.isPositive()) {
77 if(newStage.equals(ProspectStage.CLOSED_LOST)) {
78 sa.setEndingTouchPoint(
null);
81 }
else if(!tp.isPositive()) {
82 if(newStage.equals(ProspectStage.CLOSED_WON)) {
83 sa.setEndingTouchPoint(
null);
87 if(EnumSet.of(ProspectStage.CLOSED_WON,
88 ProspectStage.CLOSED_LOST).contains(newStage)) {
89 if(sa.getStatus() == SaleAction.SA_PENDING) {
90 sa.setStatus(SaleAction.SA_CANCELLED);
98 if(!saleActions.isEmpty()) {
99 Messages.confirmProcess().paragraph().add(I_.get(
"Affected") +
": ")
100 .add(saleActions.size() +
" " + I_.get(
"Sale actions")).show(() -> {
101 for(SaleAction sa : saleActions) {
void setStage(ProspectStage stage)
SaleActionSet getSaleActions()
◆ doCheckStatus()
ProspectStage org.turro.crm.zul.sale.ProspectStageWrapper.doCheckStatus |
( |
Date |
now | ) |
|
|
protected |
Definition at line 50 of file ProspectStageWrapper.java.
51 ProspectStage stage = current;
53 TouchPoint tp = sa.getEndingTouchPoint();
56 }
else if(tp.isPositive()) {
57 stage = ProspectStage.CLOSED_WON;
58 }
else if(!tp.isPositive()) {
59 stage = ProspectStage.CLOSED_LOST;
The documentation for this class was generated from the following file: