bug修复

This commit is contained in:
tongfei
2023-12-04 17:10:08 +08:00
parent faadd8aabf
commit 530e6d49f9
4 changed files with 6 additions and 3 deletions

View File

@@ -69,7 +69,7 @@ namespace WMS.Web.Core.Dto
/// <summary> /// <summary>
/// 创建时间(入库时间) /// 创建时间(入库时间)
/// </summary> /// </summary>
public DateTime CreateTime { get; set; } public string CreateTime { get; set; }
/// <summary> /// <summary>
/// 同步成功或者失败 /// 同步成功或者失败
/// </summary> /// </summary>

View File

@@ -252,6 +252,7 @@ namespace WMS.Web.Domain.Services
task.Details.ForEach(x => task.Details.ForEach(x =>
{ {
x.DeliveredQty = x.ReceiveQty; x.DeliveredQty = x.ReceiveQty;
x.RealityQty = x.ReceiveQty;
}); });
task.Shelf(loginInfo.UserInfo.StaffId); task.Shelf(loginInfo.UserInfo.StaffId);
task = await _inStockTaskRepositories.Update(task, isTransaction); task = await _inStockTaskRepositories.Update(task, isTransaction);

View File

@@ -296,6 +296,8 @@ namespace WMS.Web.Domain.Services
if (erp_data != null) if (erp_data != null)
{ {
//2.1.2修改数量 //2.1.2修改数量
if (erp_data.Qty > item.AccruedQty)
data.Status = InstockStatus.Part;
item.Remark = erp_data.Remark; item.Remark = erp_data.Remark;
item.AccruedQty = erp_data.Qty; item.AccruedQty = erp_data.Qty;
item.FactoryPrice = erp_data.FactoryPrice; item.FactoryPrice = erp_data.FactoryPrice;

View File

@@ -128,7 +128,7 @@ namespace WMS.Web.Repositories
Stock = _singleDataService.GetSingleData(SingleAction.StocksJoinOrgCode, _loginRepositories.CompanyId, s.detail.StockCode+s.detail.OrgCode), Stock = _singleDataService.GetSingleData(SingleAction.StocksJoinOrgCode, _loginRepositories.CompanyId, s.detail.StockCode+s.detail.OrgCode),
Qty =s.detail.Qty, Qty =s.detail.Qty,
Creator = _singleDataService.GetSingleData(SingleAction.Staffs, _loginRepositories.CompanyId, s.order.CreatorId), Creator = _singleDataService.GetSingleData(SingleAction.Staffs, _loginRepositories.CompanyId, s.order.CreatorId),
CreateTime =s.order.CreateTime, CreateTime =s.order.CreateTime.ToString("yyyy-MM-dd HH:mm:ss"),
SuccessSync=s.order.SuccessSync SuccessSync=s.order.SuccessSync
}).OrderByDescending(x => x.Id).Skip((dto.PageNo - 1) * dto.PageSize).Take(dto.PageSize).ToListAsync(); }).OrderByDescending(x => x.Id).Skip((dto.PageNo - 1) * dto.PageSize).Take(dto.PageSize).ToListAsync();