diff --git a/ISG - Gramm (SILSE)/Core/Events/CaricoSfarinatiEvent.cs b/ISG - Gramm (SILSE)/Core/Events/CaricoSfarinatiEvent.cs index 7d7f98ac..4a7a1aaa 100644 --- a/ISG - Gramm (SILSE)/Core/Events/CaricoSfarinatiEvent.cs +++ b/ISG - Gramm (SILSE)/Core/Events/CaricoSfarinatiEvent.cs @@ -81,6 +81,7 @@ public class CaricoSfarinatiEvent( codMart: matchedOrder.CodMart, partitaMag: _currentSilosModel.CaricoLottoCar, quantity: quantity * 100, + numCnf: 1, gestioneOrd: "A", dataOrd: matchedOrder.DataOrd, numOrd: matchedOrder.NumOrd, diff --git a/Integry Smart Gateway/Core/RestConsumer/Controller/IWarehouseControllerService.cs b/Integry Smart Gateway/Core/RestConsumer/Controller/IWarehouseControllerService.cs index f9952208..a82663ed 100644 --- a/Integry Smart Gateway/Core/RestConsumer/Controller/IWarehouseControllerService.cs +++ b/Integry Smart Gateway/Core/RestConsumer/Controller/IWarehouseControllerService.cs @@ -28,7 +28,7 @@ public interface IWarehouseControllerService string posizioneSource, string posizioneDest, double qta, double qtaCnf, double numCnf); MtbColt CaricaMateriaPrimaInPosizione(string posizione, string codMdep, string codAnag, string codMart, - string partitaMag, float quantity, string gestioneOrd, DateTime dataOrd, int numOrd, int rigaOrd); + string partitaMag, float quantity, int numCnf, string gestioneOrd, DateTime dataOrd, int numOrd, int rigaOrd); MtbColt CaricaMateriaPrimaInSilos(string posizione, string codMdep, string codAnag, string codMart, string partitaMag, float quantity, DateTime dataOrd, int numOrd, int rigaOrd); diff --git a/Integry Smart Gateway/Core/RestConsumer/Controller/WarehouseControllerService.cs b/Integry Smart Gateway/Core/RestConsumer/Controller/WarehouseControllerService.cs index 4b22579d..412407ed 100644 --- a/Integry Smart Gateway/Core/RestConsumer/Controller/WarehouseControllerService.cs +++ b/Integry Smart Gateway/Core/RestConsumer/Controller/WarehouseControllerService.cs @@ -150,7 +150,7 @@ public class WarehouseControllerService( } public MtbColt CaricaMateriaPrimaInPosizione(string posizione, string codMdep, string codAnag, string codMart, - string partitaMag, float quantity, string gestioneOrd, DateTime dataOrd, int numOrd, int rigaOrd) + string partitaMag, float quantity, int numCnf, string gestioneOrd, DateTime dataOrd, int numOrd, int rigaOrd) { var createUdcRequest = new CreateUdcRequest() { @@ -176,7 +176,9 @@ public class WarehouseControllerService( RigaOrd = rigaOrd, CodMart = codMart, QtaTot = quantity * 100, - PartitaMag = partitaMag, + QtaCnf = (quantity * 100) / numCnf, + NumCnf = numCnf, + PartitaMag = partitaMag, } ] }; diff --git a/Integry Smart Gateway/Core/RestConsumer/Model/InsertUdcRowRequest.cs b/Integry Smart Gateway/Core/RestConsumer/Model/InsertUdcRowRequest.cs index eca1460a..c5a6b290 100644 --- a/Integry Smart Gateway/Core/RestConsumer/Model/InsertUdcRowRequest.cs +++ b/Integry Smart Gateway/Core/RestConsumer/Model/InsertUdcRowRequest.cs @@ -11,7 +11,7 @@ public class InsertUdcRowRequest [JsonProperty("barcode")] public string? Barcode { get; set; } [JsonProperty("qtaTot")] public float QtaTot { get; set; } [JsonProperty("qtaCnf")] public float QtaCnf { get; set; } - [JsonProperty("numCnf")] public float NumCnf { get; set; } + [JsonProperty("numCnf")] public int NumCnf { get; set; } [JsonProperty("partitaMag")] public string? PartitaMag { get; set; } [JsonProperty("dataScad")] public DateTime? DataScad { get; set; } [JsonProperty("codJcom")] public string CodJcom { get; set; }