再次修改了收货上架
This commit is contained in:
@@ -184,7 +184,7 @@ namespace WMS.Web.Domain.Entitys
|
||||
/// </summary>
|
||||
/// <param name="inventory"></param>
|
||||
/// <returns></returns>
|
||||
public Result BoxInventory(BoxInventory inventory)
|
||||
public Result BoxInventory(BoxInventory inventory,string isNotUpdateBoxInv)
|
||||
{
|
||||
var detailClone = this.Details.Clone();
|
||||
foreach (var d in detailClone)
|
||||
@@ -203,8 +203,17 @@ namespace WMS.Web.Domain.Entitys
|
||||
var md = this.Details.FirstOrDefault(w => w.MaterialNumber == d.MaterialNumber);
|
||||
if (md == null)
|
||||
this.Details.Add(new BoxDetails() { MaterialNumber = d.MaterialNumber, Qty = d.Qty });
|
||||
//else//alter by yzh
|
||||
// md.Qty = d.Qty;
|
||||
else//alter by yzh
|
||||
{
|
||||
if (isNotUpdateBoxInv == "1")
|
||||
{
|
||||
}
|
||||
else
|
||||
{
|
||||
md.Qty = d.Qty;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
return Result.ReSuccess();
|
||||
|
||||
Reference in New Issue
Block a user