|
@@ -360,7 +360,7 @@ namespace OASystem.Infrastructure.Repositories.PersonnelModule
|
|
|
{
|
|
|
var info = _mapper.Map<Pm_GoodsStorage>(dto);
|
|
|
info.CreateUserId = currUserId;
|
|
|
- info.BatchNo = Guid.NewGuid().ToString("N");
|
|
|
+ info.BatchNo = DateTime.Now.ToString("yyyyMMddHHmmss");
|
|
|
|
|
|
decimal editAgoQuantity = 0.00M,
|
|
|
editAgoTotalPrice = 0.00M;
|
|
@@ -591,7 +591,7 @@ namespace OASystem.Infrastructure.Repositories.PersonnelModule
|
|
|
/// <param name="dto"></param>
|
|
|
/// <param name="currUserId"></param>
|
|
|
/// <returns></returns>
|
|
|
- public async Task<JsonView> GoodsReceiveOP(GoodsReceiveOPDTO dto, int currUserId)
|
|
|
+ public async Task<JsonView> GoodsReceiveOp(GoodsReceiveOPDTO dto, int currUserId)
|
|
|
{
|
|
|
var info = _mapper.Map<Pm_GoodsReceive>(dto);
|
|
|
info.CreateUserId = currUserId;
|
|
@@ -619,6 +619,7 @@ namespace OASystem.Infrastructure.Repositories.PersonnelModule
|
|
|
_jv.Msg = $"该条数据已通过审核,不可更改!";
|
|
|
return _jv;
|
|
|
}
|
|
|
+
|
|
|
//物品数量验证
|
|
|
decimal editAfterQuantity = waitAuditQuantity - selectInfo.Quantity + info.Quantity;
|
|
|
if (editAfterQuantity > stockQuantity)
|