Cambiati parametri di chiamata servizio versamento automatico

This commit is contained in:
2025-05-12 18:45:42 +02:00
parent ed5c6c6b2f
commit 9866d5c4fd
3 changed files with 6 additions and 11 deletions

View File

@@ -608,17 +608,12 @@ public class ColliMagazzinoRESTConsumer extends _BaseRESTConsumer {
});
}
public void versamentoAutomaticoUL(MtbColt sourceMtbColt, RunnableArgs<VersamentoAutomaticoULResponseDTO> onComplete, RunnableArgs<Exception> onFailed) {
MtbColt sourceMtbColtClone = (MtbColt) sourceMtbColt.clone();
for (int i = 0; i < sourceMtbColtClone.getMtbColr().size(); i++) {
sourceMtbColtClone.getMtbColr().get(i)
.setMtbAart(null)
.setMtbPartitaMag(null);
}
public void versamentoAutomaticoUL(String barcodeUl, RunnableArgs<VersamentoAutomaticoULResponseDTO> onComplete, RunnableArgs<Exception> onFailed) {
MtbColt sourceMtbColt = new MtbColt()
.setBarcodeUl(barcodeUl);
ColliMagazzinoRESTConsumerService colliMagazzinoRESTConsumerService = restBuilder.getService(ColliMagazzinoRESTConsumerService.class);
colliMagazzinoRESTConsumerService.versamentoAutomaticoUL(sourceMtbColtClone).enqueue(new ManagedErrorCallback<>() {
colliMagazzinoRESTConsumerService.versamentoAutomaticoUL(sourceMtbColt).enqueue(new ManagedErrorCallback<>() {
@Override
public void onResponse(Call<ServiceRESTResponse<VersamentoAutomaticoULResponseDTO>> call, Response<ServiceRESTResponse<VersamentoAutomaticoULResponseDTO>> response) {
analyzeAnswer(response, "versamentoAutomaticoUL", data -> {

View File

@@ -870,7 +870,7 @@ public class AccettazioneBollaPickingViewModel {
private void versaAutomaticamenteUL(Runnable onComplete) {
if (mCurrentMtbColt == null) return;
mColliMagazzinoRESTConsumer.versamentoAutomaticoUL(mCurrentMtbColt, versamentoResult -> {
mColliMagazzinoRESTConsumer.versamentoAutomaticoUL(mCurrentMtbColt.getBarcodeUl(), versamentoResult -> {
this.notifyVersamentoAutomaticoResult(versamentoResult, onComplete);
}, this::sendError);
}

View File

@@ -819,7 +819,7 @@ public class AccettazioneOrdiniPickingViewModel {
public void versaAutomaticamenteUL(Runnable onComplete) {
if (mCurrentMtbColt == null) return;
mColliMagazzinoRESTConsumer.versamentoAutomaticoUL(mCurrentMtbColt, versamentoResult -> {
mColliMagazzinoRESTConsumer.versamentoAutomaticoUL(mCurrentMtbColt.getBarcodeUl(), versamentoResult -> {
this.notifyVersamentoAutomaticoResult(versamentoResult, onComplete);
}, this::sendError);
}