From af75bea003a2a0d765b570063771f9ce5f63fc72 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Wed, 28 Jun 2023 09:10:33 +0200 Subject: [PATCH] reset errori da BatchID in risp validazione --- NKC_WF/Controllers/BatchProcController.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NKC_WF/Controllers/BatchProcController.cs b/NKC_WF/Controllers/BatchProcController.cs index c6ae2d4..149019d 100644 --- a/NKC_WF/Controllers/BatchProcController.cs +++ b/NKC_WF/Controllers/BatchProcController.cs @@ -142,6 +142,8 @@ namespace NKC_WF.Controllers // deserializzo come BatchreqIniziale (stima) nestReplyBatchInitial rispStima = JsonConvert.DeserializeObject(content); + // idempotenza: elimino errori costruiti con altri step... + DLMan.taEL.deteteByParent("", $"B.{rispStima.BatchID}"); // verifica preliminare che il batch possa accettare la risposta var currBatchStatus = ComLib.BStatus(rispStima.BatchID); if (currBatchStatus != BatchStatus.EstimationRequested)