fix ordinamento items + fix ricalcolo da flusso a stock!
This commit is contained in:
@@ -83,6 +83,36 @@ namespace StockManMVC.Controllers
|
||||
answ = answ.OrderBy(x => x.ItemFamilyID);
|
||||
}
|
||||
break;
|
||||
case "qtapend":
|
||||
if (Sort == "dsc")
|
||||
{
|
||||
answ = answ.OrderByDescending(x => x.QtaPend);
|
||||
}
|
||||
else
|
||||
{
|
||||
answ = answ.OrderBy(x => x.QtaPend);
|
||||
}
|
||||
break;
|
||||
case "currvalue":
|
||||
if (Sort == "dsc")
|
||||
{
|
||||
answ = answ.OrderByDescending(x => x.CurrValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
answ = answ.OrderBy(x => x.CurrValue);
|
||||
}
|
||||
break;
|
||||
case "totval":
|
||||
if (Sort == "dsc")
|
||||
{
|
||||
answ = answ.OrderByDescending(x => x.CurrValue * x.QtaPend);
|
||||
}
|
||||
else
|
||||
{
|
||||
answ = answ.OrderBy(x => x.CurrValue * x.QtaPend);
|
||||
}
|
||||
break;
|
||||
case "descr":
|
||||
default:
|
||||
if (Sort == "dsc")
|
||||
|
||||
Reference in New Issue
Block a user