出库操作调整序列号
This commit is contained in:
@@ -30,10 +30,11 @@ namespace WMS.Web.Domain.Services
|
||||
private readonly IOutStockTaskRepositories _outStockTaskRepositories;
|
||||
private readonly IOutStockTaskService _outStockTaskService;
|
||||
private readonly IErpService _erpService;
|
||||
private readonly ISerialNumberService _serialNumberService;
|
||||
public OutStockService(IMapper mapper, ILoginService loginService,
|
||||
IBasicsRepositories transactionRepositories,
|
||||
IOutStockRepositories outStockRepositories, IOutStockTaskRepositories outStockTaskRepositories,
|
||||
IOutStockTaskService outStockTaskService, IErpService erpService)
|
||||
IOutStockTaskService outStockTaskService, IErpService erpService, ISerialNumberService serialNumberService)
|
||||
{
|
||||
_mapper = mapper;
|
||||
_loginService = loginService;
|
||||
@@ -42,6 +43,7 @@ namespace WMS.Web.Domain.Services
|
||||
_outStockTaskRepositories = outStockTaskRepositories;
|
||||
_outStockTaskService = outStockTaskService;
|
||||
_erpService = erpService;
|
||||
_serialNumberService = serialNumberService;
|
||||
}
|
||||
/// <summary>
|
||||
/// 出库单
|
||||
@@ -88,6 +90,8 @@ namespace WMS.Web.Domain.Services
|
||||
if (entity == null) isRollback = true;
|
||||
outStockTask = await _outStockTaskRepositories.Edit(outStockTask, false);
|
||||
if (outStockTask == null) isRollback = true;
|
||||
var res_change = await _serialNumberService.OutStock(entity, loginInfo, false);
|
||||
if (!res_change.IsSuccess) isRollback = true;
|
||||
//提交事务
|
||||
isSuccess = _transactionRepositories.CommitTransaction(isRollback, _transaction);
|
||||
if (!isSuccess)
|
||||
|
||||
Reference in New Issue
Block a user