不再有暂存

This commit is contained in:
2025-09-03 15:25:12 +08:00
parent 7be6f47c02
commit 326a616289

View File

@@ -1168,7 +1168,7 @@ namespace WMS.Web.Domain.Services
{
ErpOperateDto o_dto1 = new ErpOperateDto(dto.TargetFormId, null, id);//res_s.Data
//如果有错,就删除相关单据
var del_res = await sc_erpService.Delete(o_dto1, "PRD_INSTOCK");
var del_res = await sc_erpService.Delete(o_dto1, dto.TargetFormId);
_logger.LogInformation($"入库单->保存失败 单号:{billNo} erp明细Id:{erpDetail.ErpDetailId} 错误:{res_s.Message}");
return (Result.ReFailure(res_s.Message, res_s.Status), SyncStatus.SubmitFail, "", purchaseInStock.Details[0].DetailId);
}