出库修复
This commit is contained in:
@@ -32,6 +32,11 @@ namespace WMS.Web.Domain.Entitys
|
|||||||
[Column("BillNo")]
|
[Column("BillNo")]
|
||||||
public string BillNo { get; set; }
|
public string BillNo { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
/// 出货方式
|
||||||
|
/// </summary>
|
||||||
|
[Column("Method")]
|
||||||
|
public InventoryInOutMethod Method { get; set; } = InventoryInOutMethod.Box;
|
||||||
|
/// <summary>
|
||||||
/// 单据类型
|
/// 单据类型
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Column("Type")]
|
[Column("Type")]
|
||||||
@@ -99,10 +104,11 @@ namespace WMS.Web.Domain.Entitys
|
|||||||
/// 创建(需要在明细都生成后最后调用)
|
/// 创建(需要在明细都生成后最后调用)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="creatorId"></param>
|
/// <param name="creatorId"></param>
|
||||||
public void Create(int creatorId, OutStockTask task)
|
public void Create(int creatorId, OutStockTask task,int method)
|
||||||
{
|
{
|
||||||
this.TaskId = task.Id;
|
this.TaskId = task.Id;
|
||||||
this.Type = task.Type;
|
this.Type = task.Type;
|
||||||
|
this.Method = (InventoryInOutMethod)method;
|
||||||
this.DeliveryOrgId = task.DeliveryOrgId;
|
this.DeliveryOrgId = task.DeliveryOrgId;
|
||||||
this.ReceiptCustomerId = task.ReceiptCustomerId;
|
this.ReceiptCustomerId = task.ReceiptCustomerId;
|
||||||
this.CreatorId = creatorId;
|
this.CreatorId = creatorId;
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ namespace WMS.Web.Domain.Services
|
|||||||
outd.SerialNumbers.AddRange(dtoDetails.SelectMany(s => s.SerialNumbers));
|
outd.SerialNumbers.AddRange(dtoDetails.SelectMany(s => s.SerialNumbers));
|
||||||
entity.Details.Add(outd);
|
entity.Details.Add(outd);
|
||||||
}
|
}
|
||||||
entity.Create(loginInfo.UserInfo.StaffId, outStockTask);
|
entity.Create(loginInfo.UserInfo.StaffId, outStockTask,dto.Method);
|
||||||
|
|
||||||
#region 组装库存dto
|
#region 组装库存dto
|
||||||
List<BoxInventoryGenerateDto> inventoryList = new List<BoxInventoryGenerateDto>();
|
List<BoxInventoryGenerateDto> inventoryList = new List<BoxInventoryGenerateDto>();
|
||||||
|
|||||||
Reference in New Issue
Block a user