修改了同步领料出库
This commit is contained in:
@@ -450,10 +450,14 @@ namespace WMS.Web.Domain.Services
|
||||
//DateTime begin = await _erpOpsSyncDateRepositories.Get(ErpOpsSyncType.OutStock);
|
||||
if (begin == null)
|
||||
begin = DateTime.Now.AddHours(-8);//默认拉去8小时以内的数据,ALTER BY YZH
|
||||
// begin = DateTime.Now.AddDays(-200);//默认拉去8小时以内的数据,ALTER BY YZH
|
||||
//更新时间范围内所有
|
||||
//result = await BillQueryForTransferOutOutStock(false, null, begin);
|
||||
//if (!result.IsSuccess) isRollback = true;
|
||||
// begin = DateTime.Now.AddDays(-200);//默认拉去8小时以内的数据,ALTER BY YZH
|
||||
//更新时间范围内所有
|
||||
//result = await BillQueryForTransferOutOutStock(false, null, begin);
|
||||
//if (!result.IsSuccess) isRollback = true;
|
||||
|
||||
result = await BillQueryForPickingOutStock(false, null, begin);
|
||||
if (!result.IsSuccess) isRollback = true;
|
||||
|
||||
|
||||
result = await BillQueryForSalOutStock(false, null, begin);
|
||||
if (!result.IsSuccess) isRollback = true;
|
||||
@@ -466,8 +470,6 @@ namespace WMS.Web.Domain.Services
|
||||
result = await BillQueryForMisDeliveryOutStock(false, null, begin);
|
||||
if (!result.IsSuccess) isRollback = true;
|
||||
|
||||
result = await BillQueryForPickingOutStock(false, null, begin);
|
||||
if (!result.IsSuccess) isRollback = true;
|
||||
|
||||
|
||||
//更新时间管理
|
||||
@@ -538,7 +540,7 @@ namespace WMS.Web.Domain.Services
|
||||
}
|
||||
if (PickingOut_Nos.Count() > 0)
|
||||
{
|
||||
result = await BillQueryForPickingOutStock(false, MisDeliveryOut_Nos);
|
||||
result = await BillQueryForPickingOutStock(false, PickingOut_Nos);
|
||||
if (!result.IsSuccess) isRollback = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user