增加序列号冻结启用
This commit is contained in:
@@ -130,7 +130,7 @@ namespace WMS.Web.Domain.Services
|
||||
var moveBoxRecord = moveBoxRecords.FirstOrDefault(f => f.BoxId == entity.BoxId);
|
||||
//修改序列号和箱绑定关系
|
||||
//entity.Bind(moveBoxRecord.BoxId);
|
||||
|
||||
entity.MoveBox(moveBoxRecord.Type);
|
||||
//记录序列号操作日志
|
||||
SerialNumberOperate op = new SerialNumberOperate()
|
||||
{
|
||||
@@ -392,11 +392,13 @@ namespace WMS.Web.Domain.Services
|
||||
if (box == null) continue;
|
||||
//if (backRecord.Type == BackRecordType.InstockOff)
|
||||
// entity.UnBind();
|
||||
if (backRecord.Type == BackRecordType.OutstockOn)
|
||||
{
|
||||
entity.Bind(detail.BoxId, box.CompleteCartonTime);
|
||||
entity.IsOutStock = false;//标识出库状态
|
||||
}
|
||||
|
||||
entity.BackRecord(backRecord.Type, detail.BoxId);
|
||||
//if (backRecord.Type == BackRecordType.OutstockOn)
|
||||
//{
|
||||
// entity.Bind(detail.BoxId, box.CompleteCartonTime);
|
||||
// entity.IsDelete = false;//解冻
|
||||
//}
|
||||
|
||||
|
||||
//记录序列号操作日志
|
||||
@@ -477,8 +479,8 @@ namespace WMS.Web.Domain.Services
|
||||
}
|
||||
else
|
||||
{
|
||||
s_entity.TakeStock(takeStockDetail.BoxId);
|
||||
if (s_entity.BoxId == takeStockDetail.BoxId) continue;
|
||||
s_entity.BoxId = takeStockDetail.BoxId;
|
||||
|
||||
var takeStock = takeStocks.FirstOrDefault(w => w.Details.FirstOrDefault(w => w.SerialNumbers.Contains(s)) != null);
|
||||
//记录序列号操作日志
|
||||
|
||||
Reference in New Issue
Block a user