再次修改了收货上架
This commit is contained in:
@@ -207,7 +207,7 @@
|
||||
<param name="qty"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:WMS.Web.Domain.Entitys.Box.BoxInventory(WMS.Web.Domain.Entitys.BoxInventory)">
|
||||
<member name="M:WMS.Web.Domain.Entitys.Box.BoxInventory(WMS.Web.Domain.Entitys.BoxInventory,System.String)">
|
||||
<summary>
|
||||
箱库存同步箱信息
|
||||
</summary>
|
||||
@@ -5449,7 +5449,7 @@
|
||||
箱服务信息
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:WMS.Web.Domain.Services.BoxService.BoxInventorySync(System.Collections.Generic.List{WMS.Web.Domain.Entitys.BoxInventory},System.Boolean)">
|
||||
<member name="M:WMS.Web.Domain.Services.BoxService.BoxInventorySync(System.Collections.Generic.List{WMS.Web.Domain.Entitys.BoxInventory},System.Boolean,System.String)">
|
||||
<summary>
|
||||
箱库存同步箱信息
|
||||
</summary>
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -14,6 +14,6 @@ namespace WMS.Web.Domain.IService
|
||||
// 同步老Ops箱信息
|
||||
Task<Result> Sync(List<OpsBoxResponse> list = null);
|
||||
// 箱库存同步箱信息
|
||||
Task<Result> BoxInventorySync(List<BoxInventory> list, bool isTransaction = true);
|
||||
Task<Result> BoxInventorySync(List<BoxInventory> list, bool isTransaction = true,string isNotUpdateBoxInv="0");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -838,7 +838,7 @@ namespace WMS.Web.Domain.Services
|
||||
}
|
||||
|
||||
//改箱
|
||||
var changeBox_result = await _boxService.BoxInventorySync(changeBox_inventoryList, isTransaction);
|
||||
var changeBox_result = await _boxService.BoxInventorySync(changeBox_inventoryList, isTransaction,"0");
|
||||
if (!changeBox_result.IsSuccess)
|
||||
return changeBox_result;
|
||||
|
||||
@@ -1255,7 +1255,7 @@ namespace WMS.Web.Domain.Services
|
||||
}
|
||||
|
||||
//改箱
|
||||
var changeBox_result = await _boxService.BoxInventorySync(changeBox_inventoryList, isTransaction);
|
||||
var changeBox_result = await _boxService.BoxInventorySync(changeBox_inventoryList, isTransaction,"1");
|
||||
if (!changeBox_result.IsSuccess)
|
||||
return changeBox_result;
|
||||
|
||||
@@ -1464,7 +1464,7 @@ namespace WMS.Web.Domain.Services
|
||||
}
|
||||
|
||||
//改箱
|
||||
var changeBox_result = await _boxService.BoxInventorySync(changeBox_inventoryList, isTransaction);
|
||||
var changeBox_result = await _boxService.BoxInventorySync(changeBox_inventoryList, isTransaction, "0");
|
||||
if (!changeBox_result.IsSuccess)
|
||||
return changeBox_result;
|
||||
|
||||
@@ -1584,7 +1584,7 @@ namespace WMS.Web.Domain.Services
|
||||
}
|
||||
|
||||
//改箱
|
||||
var changeBox_result = await _boxService.BoxInventorySync(changeBox_inventoryList, isTransaction);
|
||||
var changeBox_result = await _boxService.BoxInventorySync(changeBox_inventoryList, isTransaction, "0");
|
||||
if (!changeBox_result.IsSuccess)
|
||||
return changeBox_result;
|
||||
|
||||
@@ -1758,7 +1758,7 @@ namespace WMS.Web.Domain.Services
|
||||
}
|
||||
|
||||
//改箱
|
||||
var changeBox_result = await _boxService.BoxInventorySync(changeBox_inventoryList, isTransaction);
|
||||
var changeBox_result = await _boxService.BoxInventorySync(changeBox_inventoryList, isTransaction, "0");
|
||||
if (!changeBox_result.IsSuccess)
|
||||
return changeBox_result;
|
||||
|
||||
@@ -1923,7 +1923,7 @@ namespace WMS.Web.Domain.Services
|
||||
}
|
||||
|
||||
//改箱
|
||||
var changeBox_result = await _boxService.BoxInventorySync(changeBox_inventoryList, isTransaction);
|
||||
var changeBox_result = await _boxService.BoxInventorySync(changeBox_inventoryList, isTransaction, "0");
|
||||
if (!changeBox_result.IsSuccess)
|
||||
return changeBox_result;
|
||||
|
||||
|
||||
@@ -154,7 +154,7 @@ namespace WMS.Web.Domain.Services
|
||||
/// <param name="list"></param>
|
||||
/// <param name="isTransaction"></param>
|
||||
/// <returns></returns>
|
||||
public async Task<Result> BoxInventorySync(List<BoxInventory> list, bool isTransaction = true)
|
||||
public async Task<Result> BoxInventorySync(List<BoxInventory> list, bool isTransaction = true,string isNotUpdateBoxInv="0")
|
||||
{
|
||||
if (list.Count() == 0) return Result.ReSuccess();
|
||||
|
||||
@@ -165,7 +165,7 @@ namespace WMS.Web.Domain.Services
|
||||
{
|
||||
var box = boxs.FirstOrDefault(f => f.Id == db.BoxId);
|
||||
if (box == null) continue;
|
||||
box.BoxInventory(db);
|
||||
box.BoxInventory(db, isNotUpdateBoxInv);
|
||||
}
|
||||
_Logger.LogInformation($"即时库存改箱信息 改之后:{JsonConvert.SerializeObject(boxs)}");
|
||||
IDbContextTransaction _transaction = null;
|
||||
|
||||
Reference in New Issue
Block a user