aggiunto num ordini forn in movimenti aperti
refresh su IIS01/IIS02
This commit is contained in:
@@ -446,20 +446,11 @@ namespace StockManMVC.Controllers
|
||||
case "CAR":
|
||||
// per partire scelgo la posizione di default ric ordini
|
||||
string stdLocationId = "RIC-ORD";
|
||||
// cerco se ci sia una posizione occupata dall'item in stock..
|
||||
if (db.ItemStock.Where(s => s.ItemID == ItemID).Count() > 0)
|
||||
{
|
||||
stdLocationId = db.ItemStock.Where(s => s.ItemID == ItemID).ToList()[0].LocationID;
|
||||
}
|
||||
ViewBag.LocationID = new SelectList(db.Location.Where(o => o.LocType.IsStock), "ID", "Descr", stdLocationId);
|
||||
ViewBag.ExtLocationID = new SelectList(db.Location.Where(o => o.LocType.IsFor), "ID", "Descr");
|
||||
CurrStyle = "bg-success";
|
||||
break;
|
||||
case "SCAR":
|
||||
if (query.Count() > 0)
|
||||
{
|
||||
ViewBag.LocationID = new SelectList(query, "ID", "Descr");
|
||||
}
|
||||
ViewBag.ExtLocationID = new SelectList(db.Location.Where(o => o.LocType.IsCli), "ID", "Descr");
|
||||
ViewBag.enabEditVal = false;
|
||||
CurrStyle = "bg-danger";
|
||||
@@ -475,10 +466,6 @@ namespace StockManMVC.Controllers
|
||||
CurrStyle = "bg-info";
|
||||
break;
|
||||
case "RETT":
|
||||
if (query.Count() > 0)
|
||||
{
|
||||
ViewBag.LocationID = new SelectList(query, "ID", "Descr");
|
||||
}
|
||||
ViewBag.ExtLocationID = new SelectList(db.Location, "ID", "Descr");
|
||||
ViewBag.enabEditVal = false;
|
||||
CurrStyle = "bg-warning";
|
||||
|
||||
Reference in New Issue
Block a user