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 mShouldAskPesoLU;
|
||||
private String mReportNameSpedizioneChiudiOrdine;
|
||||
private boolean mIsNewLU;
|
||||
|
||||
private MtbColt mCurrentMtbColt = null;
|
||||
|
||||
@ -435,6 +436,7 @@ public class SpedizioneViewModel {
|
||||
} else {
|
||||
this.mCurrentMtbColt = mtbColt;
|
||||
mMtbColtSessionID = this.mColliDataRecoverService.startNewSession(mtbColt, mTestateOrdini);
|
||||
this.mIsNewLU = false;
|
||||
|
||||
this.sendLUOpened(mtbColt);
|
||||
|
||||
@ -1236,8 +1238,8 @@ public class SpedizioneViewModel {
|
||||
.setMtbColr(new ObservableArrayList<>());
|
||||
|
||||
this.mCurrentMtbColt = mtbColt;
|
||||
|
||||
mMtbColtSessionID = this.mColliDataRecoverService.startNewSession(mtbColt, mTestateOrdini);
|
||||
this.mIsNewLU = true;
|
||||
|
||||
if (onComplete != null) onComplete.run();
|
||||
this.sendLUOpened(mtbColt);
|
||||
@ -1476,6 +1478,7 @@ public class SpedizioneViewModel {
|
||||
|
||||
if (canBeDeleted) {
|
||||
deleteLU(() -> {
|
||||
this.mIsNewLU = false;
|
||||
this.sendLUClosed();
|
||||
this.sendOnLoadingEnded();
|
||||
});
|
||||
@ -1510,6 +1513,7 @@ public class SpedizioneViewModel {
|
||||
} else {
|
||||
|
||||
distribuisciLU(mtbColts -> {
|
||||
if(this.mIsNewLU) {
|
||||
this.sendLUPositionChangeRequest((shouldChangePosition, mtbDepoPosizione) -> {
|
||||
|
||||
if (shouldChangePosition) {
|
||||
@ -1544,8 +1548,10 @@ public class SpedizioneViewModel {
|
||||
} else {
|
||||
postCloseOperations(mtbColts);
|
||||
}
|
||||
|
||||
});
|
||||
} else {
|
||||
postCloseOperations(mtbColts);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@ -1723,6 +1729,8 @@ public class SpedizioneViewModel {
|
||||
pickingObjectDTO.setWithdrawMtbColrs(new ArrayList<>());
|
||||
}
|
||||
|
||||
this.mIsNewLU = false;
|
||||
|
||||
this.resetMatchedRows();
|
||||
this.sendLUClosed();
|
||||
this.sendOnLoadingEnded();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user