Update gestione pesatura

This commit is contained in:
Samuele E. Locatelli
2023-09-20 10:07:27 +02:00
parent f112ee2b77
commit a8f1802eb8
+2 -4
View File
@@ -347,13 +347,11 @@ namespace IOB_WIN_NEXT.IobSoap
{
isPesata = true;
answ = reqWeight(true);
fatto = answ.feedback == "C";
}
else if (item.uid == "reqOUT")
{
isPesata = true;
answ = reqWeight(false);
fatto = answ.feedback == "C";
}
else if (item.uid == "RM" || item.uid.StartsWith("Cod"))
{
@@ -365,7 +363,7 @@ namespace IOB_WIN_NEXT.IobSoap
if (isPesata)
{
// se è OK
if (fatto)
if (answ.feedback == "C")
{
item.value = answ.feedback;
item.reqValue = "";
@@ -376,7 +374,7 @@ namespace IOB_WIN_NEXT.IobSoap
}
else
{
item.value = answ.feedback;
item.value = $"{answ.feedback} | {answ.notes}";
item.reqValue = "";
lgError($"reqWeight | Errore in richiesta peso GOMBA | {answ.feedback} | {answ.notes}");
}