Rimossa domanda di posizionamento nel caso si apre una UL e non viene creata da 0.
This commit is contained in:
parent
91f4658fe3
commit
3663b2bf4e
@ -93,6 +93,7 @@ public class SpedizioneViewModel {
|
|||||||
private boolean mCanOverflowOrderQuantity;
|
private boolean mCanOverflowOrderQuantity;
|
||||||
private boolean mShouldAskPesoLU;
|
private boolean mShouldAskPesoLU;
|
||||||
private String mReportNameSpedizioneChiudiOrdine;
|
private String mReportNameSpedizioneChiudiOrdine;
|
||||||
|
private boolean mIsNewLU;
|
||||||
|
|
||||||
private MtbColt mCurrentMtbColt = null;
|
private MtbColt mCurrentMtbColt = null;
|
||||||
|
|
||||||
@ -435,6 +436,7 @@ public class SpedizioneViewModel {
|
|||||||
} else {
|
} else {
|
||||||
this.mCurrentMtbColt = mtbColt;
|
this.mCurrentMtbColt = mtbColt;
|
||||||
mMtbColtSessionID = this.mColliDataRecoverService.startNewSession(mtbColt, mTestateOrdini);
|
mMtbColtSessionID = this.mColliDataRecoverService.startNewSession(mtbColt, mTestateOrdini);
|
||||||
|
this.mIsNewLU = false;
|
||||||
|
|
||||||
this.sendLUOpened(mtbColt);
|
this.sendLUOpened(mtbColt);
|
||||||
|
|
||||||
@ -1236,8 +1238,8 @@ public class SpedizioneViewModel {
|
|||||||
.setMtbColr(new ObservableArrayList<>());
|
.setMtbColr(new ObservableArrayList<>());
|
||||||
|
|
||||||
this.mCurrentMtbColt = mtbColt;
|
this.mCurrentMtbColt = mtbColt;
|
||||||
|
|
||||||
mMtbColtSessionID = this.mColliDataRecoverService.startNewSession(mtbColt, mTestateOrdini);
|
mMtbColtSessionID = this.mColliDataRecoverService.startNewSession(mtbColt, mTestateOrdini);
|
||||||
|
this.mIsNewLU = true;
|
||||||
|
|
||||||
if (onComplete != null) onComplete.run();
|
if (onComplete != null) onComplete.run();
|
||||||
this.sendLUOpened(mtbColt);
|
this.sendLUOpened(mtbColt);
|
||||||
@ -1476,6 +1478,7 @@ public class SpedizioneViewModel {
|
|||||||
|
|
||||||
if (canBeDeleted) {
|
if (canBeDeleted) {
|
||||||
deleteLU(() -> {
|
deleteLU(() -> {
|
||||||
|
this.mIsNewLU = false;
|
||||||
this.sendLUClosed();
|
this.sendLUClosed();
|
||||||
this.sendOnLoadingEnded();
|
this.sendOnLoadingEnded();
|
||||||
});
|
});
|
||||||
@ -1510,6 +1513,7 @@ public class SpedizioneViewModel {
|
|||||||
} else {
|
} else {
|
||||||
|
|
||||||
distribuisciLU(mtbColts -> {
|
distribuisciLU(mtbColts -> {
|
||||||
|
if(this.mIsNewLU) {
|
||||||
this.sendLUPositionChangeRequest((shouldChangePosition, mtbDepoPosizione) -> {
|
this.sendLUPositionChangeRequest((shouldChangePosition, mtbDepoPosizione) -> {
|
||||||
|
|
||||||
if (shouldChangePosition) {
|
if (shouldChangePosition) {
|
||||||
@ -1544,8 +1548,10 @@ public class SpedizioneViewModel {
|
|||||||
} else {
|
} else {
|
||||||
postCloseOperations(mtbColts);
|
postCloseOperations(mtbColts);
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
postCloseOperations(mtbColts);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1723,6 +1729,8 @@ public class SpedizioneViewModel {
|
|||||||
pickingObjectDTO.setWithdrawMtbColrs(new ArrayList<>());
|
pickingObjectDTO.setWithdrawMtbColrs(new ArrayList<>());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.mIsNewLU = false;
|
||||||
|
|
||||||
this.resetMatchedRows();
|
this.resetMatchedRows();
|
||||||
this.sendLUClosed();
|
this.sendLUClosed();
|
||||||
this.sendOnLoadingEnded();
|
this.sendOnLoadingEnded();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user