自动修正库存负数
This commit is contained in:
parent
41a4ffa95f
commit
1e66342daa
|
|
@ -737,6 +737,18 @@
|
||||||
BLL.HJGL_HotProessManageEditService.AddHotProessItemByJoint(item);
|
BLL.HJGL_HotProessManageEditService.AddHotProessItemByJoint(item);
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region 自动修正库存负数
|
||||||
|
Model.SGGLDB db1 = Funs.DB;
|
||||||
|
var list = from x in db1.Weld_StockIn
|
||||||
|
where x.Amount == null || x.Amount < x.UsingAmount
|
||||||
|
select x;
|
||||||
|
foreach (var item in list)
|
||||||
|
{
|
||||||
|
item.Amount = item.UsingAmount;
|
||||||
|
}
|
||||||
|
db1.SubmitChanges();
|
||||||
|
#endregion
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void Session_Start(object sender, EventArgs e)
|
protected void Session_Start(object sender, EventArgs e)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue