修复bug

This commit is contained in:
18942506660
2024-04-03 11:07:35 +08:00
parent f9ce3ebec9
commit 2f0e379087
4 changed files with 19 additions and 4 deletions

View File

@@ -92,6 +92,11 @@ namespace WMS.Web.Domain.Entitys
///</summary>
[Column("CustomerId")]
public int CustomerId { get; set; } = 0;
/// <summary>
/// 是否出库
///</summary>
[Column("IsOutStock")]
public bool? IsOutStock { get; set; } = false;
/// <summary>
/// 操作(绑定箱信息)
@@ -126,6 +131,8 @@ namespace WMS.Web.Domain.Entitys
this.CustomerId = outStock.ReceiptCustomerId;
this.OutStockTime = DateTime.Now;
}
//标识出库
this.IsOutStock = true;
}
/// <summary>
/// 入库

View File

@@ -81,5 +81,10 @@ namespace WMS.Web.Domain.Entitys
///</summary>
[Column("CustomerId")]
public int CustomerId { get; set; } = 0;
/// <summary>
/// 是否出库
///</summary>
[Column("IsOutStock")]
public bool? IsOutStock { get; set; } = false;
}
}

View File

@@ -393,7 +393,10 @@ namespace WMS.Web.Domain.Services
//if (backRecord.Type == BackRecordType.InstockOff)
// entity.UnBind();
if (backRecord.Type == BackRecordType.OutstockOn)
{
entity.Bind(detail.BoxId, box.CompleteCartonTime);
entity.IsOutStock = false;//标识出库状态
}
//记录序列号操作日志