Cambiati parametri di chiamata servizio versamento automatico
This commit is contained in:
@@ -608,17 +608,12 @@ public class ColliMagazzinoRESTConsumer extends _BaseRESTConsumer {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public void versamentoAutomaticoUL(MtbColt sourceMtbColt, RunnableArgs<VersamentoAutomaticoULResponseDTO> onComplete, RunnableArgs<Exception> onFailed) {
|
public void versamentoAutomaticoUL(String barcodeUl, RunnableArgs<VersamentoAutomaticoULResponseDTO> onComplete, RunnableArgs<Exception> onFailed) {
|
||||||
MtbColt sourceMtbColtClone = (MtbColt) sourceMtbColt.clone();
|
MtbColt sourceMtbColt = new MtbColt()
|
||||||
|
.setBarcodeUl(barcodeUl);
|
||||||
for (int i = 0; i < sourceMtbColtClone.getMtbColr().size(); i++) {
|
|
||||||
sourceMtbColtClone.getMtbColr().get(i)
|
|
||||||
.setMtbAart(null)
|
|
||||||
.setMtbPartitaMag(null);
|
|
||||||
}
|
|
||||||
|
|
||||||
ColliMagazzinoRESTConsumerService colliMagazzinoRESTConsumerService = restBuilder.getService(ColliMagazzinoRESTConsumerService.class);
|
ColliMagazzinoRESTConsumerService colliMagazzinoRESTConsumerService = restBuilder.getService(ColliMagazzinoRESTConsumerService.class);
|
||||||
colliMagazzinoRESTConsumerService.versamentoAutomaticoUL(sourceMtbColtClone).enqueue(new ManagedErrorCallback<>() {
|
colliMagazzinoRESTConsumerService.versamentoAutomaticoUL(sourceMtbColt).enqueue(new ManagedErrorCallback<>() {
|
||||||
@Override
|
@Override
|
||||||
public void onResponse(Call<ServiceRESTResponse<VersamentoAutomaticoULResponseDTO>> call, Response<ServiceRESTResponse<VersamentoAutomaticoULResponseDTO>> response) {
|
public void onResponse(Call<ServiceRESTResponse<VersamentoAutomaticoULResponseDTO>> call, Response<ServiceRESTResponse<VersamentoAutomaticoULResponseDTO>> response) {
|
||||||
analyzeAnswer(response, "versamentoAutomaticoUL", data -> {
|
analyzeAnswer(response, "versamentoAutomaticoUL", data -> {
|
||||||
|
|||||||
@@ -870,7 +870,7 @@ public class AccettazioneBollaPickingViewModel {
|
|||||||
private void versaAutomaticamenteUL(Runnable onComplete) {
|
private void versaAutomaticamenteUL(Runnable onComplete) {
|
||||||
if (mCurrentMtbColt == null) return;
|
if (mCurrentMtbColt == null) return;
|
||||||
|
|
||||||
mColliMagazzinoRESTConsumer.versamentoAutomaticoUL(mCurrentMtbColt, versamentoResult -> {
|
mColliMagazzinoRESTConsumer.versamentoAutomaticoUL(mCurrentMtbColt.getBarcodeUl(), versamentoResult -> {
|
||||||
this.notifyVersamentoAutomaticoResult(versamentoResult, onComplete);
|
this.notifyVersamentoAutomaticoResult(versamentoResult, onComplete);
|
||||||
}, this::sendError);
|
}, this::sendError);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -819,7 +819,7 @@ public class AccettazioneOrdiniPickingViewModel {
|
|||||||
public void versaAutomaticamenteUL(Runnable onComplete) {
|
public void versaAutomaticamenteUL(Runnable onComplete) {
|
||||||
if (mCurrentMtbColt == null) return;
|
if (mCurrentMtbColt == null) return;
|
||||||
|
|
||||||
mColliMagazzinoRESTConsumer.versamentoAutomaticoUL(mCurrentMtbColt, versamentoResult -> {
|
mColliMagazzinoRESTConsumer.versamentoAutomaticoUL(mCurrentMtbColt.getBarcodeUl(), versamentoResult -> {
|
||||||
this.notifyVersamentoAutomaticoResult(versamentoResult, onComplete);
|
this.notifyVersamentoAutomaticoResult(versamentoResult, onComplete);
|
||||||
}, this::sendError);
|
}, this::sendError);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user