Merge branch 'v1.0.5' of https://codeup.aliyun.com/62ce7bca487c500c27f70a79/OPS/WMS-Api into v1.0.5
This commit is contained in:
@@ -75,6 +75,12 @@ namespace WMS.Web.Domain.Services
|
||||
var dBox = await _boxRepositories.GetByNo(d.DestBoxBillNo);
|
||||
if (dBox == null)
|
||||
{
|
||||
//V01.05.00如果扫的内容不是CTN开头则提示"请扫描箱码作为箱号"
|
||||
if (string.IsNullOrEmpty(d.DestBoxBillNo) || d.DestBoxBillNo.Length <= 3)
|
||||
return Result.ReFailure(ResultCodes.BoxBillNoError);
|
||||
if (d.DestBoxBillNo.Substring(0, 3) != "CTN")
|
||||
return Result.ReFailure(ResultCodes.BoxBillNoError);
|
||||
|
||||
var res = await CreateBox(d);
|
||||
if (!res.IsSuccess) return res;
|
||||
dBox = await _boxRepositories.GetByNo(d.DestBoxBillNo);
|
||||
|
||||
@@ -507,6 +507,7 @@ namespace WMS.Web.Domain.Services
|
||||
Specifications = _erpBasicDataExtendService.GetMaterialSpecifications(materials, detail.MaterialNumber),
|
||||
AccruedQty = entity.Details.FirstOrDefault(f => f.MaterialNumber == detail.MaterialNumber)?.AccruedQty ?? 0
|
||||
};
|
||||
response.Details.Add(infoDetail);
|
||||
}
|
||||
|
||||
return Result<OutStockTaskInfoResponse>.ReSuccess(response);
|
||||
|
||||
Reference in New Issue
Block a user