Sistemata creazione documento solo per colli rettificati V-
This commit is contained in:
parent
72773deaf1
commit
d541761ac6
@ -20,7 +20,6 @@ import it.integry.barcode_base_android_library.model.BarcodeScanDTO;
|
||||
import it.integry.integrywmsnative.core.CommonConst;
|
||||
import it.integry.integrywmsnative.core.exception.AlreadyUsedAnonymousLabelException;
|
||||
import it.integry.integrywmsnative.core.exception.InvalidLUMultiGestioneException;
|
||||
import it.integry.integrywmsnative.core.exception.InvalidOrderTypeException;
|
||||
import it.integry.integrywmsnative.core.exception.LUScanNotGrantedException;
|
||||
import it.integry.integrywmsnative.core.exception.NoArtsFoundException;
|
||||
import it.integry.integrywmsnative.core.exception.NoResultFromBarcodeException;
|
||||
@ -126,8 +125,6 @@ public class AccettazionePickingViewModel {
|
||||
.distinctBy(x -> x)
|
||||
.toList();
|
||||
|
||||
if (foundGestioni != null) {
|
||||
|
||||
if (foundGestioni.size() == 1) {
|
||||
if (isOrdTrasf && (foundGestioni.get(0) == GestioneEnum.PRODUZIONE || foundGestioni.get(0) == GestioneEnum.LAVORAZIONE)) {
|
||||
defaultGestioneOfUL = GestioneEnum.ACQUISTO;
|
||||
@ -136,9 +133,6 @@ public class AccettazionePickingViewModel {
|
||||
} else {
|
||||
this.sendError(new InvalidLUMultiGestioneException());
|
||||
}
|
||||
} else {
|
||||
this.sendError(new InvalidOrderTypeException());
|
||||
}
|
||||
}
|
||||
|
||||
private void getEmptyPickingList(List<SitArtOrdDTO> sitArtOrdList, RunnableArgs<List<PickingObjectDTO>> onComplete) {
|
||||
|
||||
@ -32,7 +32,6 @@ public class ProdOrdineProduzioneElencoViewModel {
|
||||
this.codMdep = codMdep;
|
||||
|
||||
this.sendOnLoadingStarted();
|
||||
new Thread(() -> {
|
||||
|
||||
mProdOrdineProduzioneRESTConsumer.getOrdiniInevasi(codMdep, orderList -> {
|
||||
this.mOrderList.setValue(orderList);
|
||||
@ -40,16 +39,12 @@ public class ProdOrdineProduzioneElencoViewModel {
|
||||
this.sendOnLoadingEnded();
|
||||
}, this::sendError);
|
||||
|
||||
}).start();
|
||||
}
|
||||
|
||||
|
||||
public void loadPicking(List<OrdineAccettazioneInevasoDTO> selectedOrders) {
|
||||
|
||||
this.sendOnLoadingStarted();
|
||||
|
||||
new Thread(() -> {
|
||||
|
||||
this.mProdOrdineProduzioneRESTConsumer.retrievePickingListNew(selectedOrders, sitArtOrds -> {
|
||||
|
||||
this.sendOnOrdersDispatched(selectedOrders, sitArtOrds);
|
||||
@ -57,8 +52,6 @@ public class ProdOrdineProduzioneElencoViewModel {
|
||||
|
||||
}, this::sendError);
|
||||
|
||||
}).start();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -474,9 +474,7 @@ public class RettificaGiacenzeViewModel {
|
||||
|
||||
this.sendLUPositionChangeRequest((shouldChangePosition, mtbDepoPosizione) -> {
|
||||
if (shouldChangePosition) {
|
||||
this.savePosizione(mtbDepoPosizione, () -> {
|
||||
onComplete.run();
|
||||
});
|
||||
this.savePosizione(mtbDepoPosizione, onComplete);
|
||||
} else {
|
||||
onComplete.run();
|
||||
}
|
||||
@ -484,7 +482,7 @@ public class RettificaGiacenzeViewModel {
|
||||
}
|
||||
|
||||
private void createDoc(MtbColt mtbColt, Runnable onComplete) {
|
||||
if (mtbColt.getGestioneEnum() != GestioneEnum.VENDITA && mtbColt.getSegno() != -1) {
|
||||
if (!(mtbColt.getGestioneEnum() == GestioneEnum.VENDITA && mtbColt.getSegno() == -1)) {
|
||||
onComplete.run();
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user