fix: utilizzo campo già presente pezziUdc
This commit is contained in:
@@ -351,18 +351,10 @@ namespace GMW.WebUserControls
|
||||
lblMessaggi.Text += " - impostato particolare!";
|
||||
pnlAll.CssClass = "stileComandoOk";
|
||||
}
|
||||
// default: qta a zero
|
||||
decimal qtaPart = 0;
|
||||
// leggo la qta dell'ultimo UDC del particolare, SE C'E', e la imposto...
|
||||
try
|
||||
if (pezziUdc > 0)
|
||||
{
|
||||
qtaPart = MagClass.magazzino.taCartellini.getLastByParticolare(memLayer.ML.StringSessionObj("CodCS"), currParticolare)[0].Qta;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
if (qtaPart > 0)
|
||||
{
|
||||
txtQta.Text = Convert.ToInt32(qtaPart).ToString();
|
||||
txtQta.Text = pezziUdc.ToString();
|
||||
}
|
||||
else // rimette default
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user