修复bug
This commit is contained in:
@@ -2178,6 +2178,7 @@ namespace WMS.Web.Domain.Services.Public
|
||||
|
||||
if (lis == null)
|
||||
{
|
||||
lis = new ErpInventoryDto();
|
||||
lis.Qty = Convert.ToDecimal(item[0]);
|
||||
lis.MaterialNumber = item[1];
|
||||
lis.OrgCode = item[2];
|
||||
|
||||
@@ -214,6 +214,8 @@ namespace WMS.Web.Domain.Services
|
||||
var res_s = await sc_erpService.BillQueryForInventory(requestInventory);
|
||||
if (!res_s.IsSuccess)
|
||||
{
|
||||
entity.Sync(false, res_s.Message, SyncStatus.Fail, "");
|
||||
await sc_takeStockRepositories.Edit(entity, true);
|
||||
_logger.LogInformation($"及时库存获取异常->错误:{res_s.Message} 数据: {JsonConvert.SerializeObject(entity)}");
|
||||
return Result<ErpTakeStockSaveDto>.ReFailure(res_s.Message, res_s.Status);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user