作废出库
This commit is contained in:
Binary file not shown.
@@ -956,6 +956,9 @@ namespace WMS.Web.Domain.Services
|
|||||||
List<string> TransferOut_Nos = new List<string>();
|
List<string> TransferOut_Nos = new List<string>();
|
||||||
List<string> AssembledApp_Nos = new List<string>();
|
List<string> AssembledApp_Nos = new List<string>();
|
||||||
List<string> MisDeliveryOut_Nos = new List<string>();
|
List<string> MisDeliveryOut_Nos = new List<string>();
|
||||||
|
|
||||||
|
List<string> PickingOut_Nos = new List<string>();//生产入库
|
||||||
|
|
||||||
foreach (var entity in list)
|
foreach (var entity in list)
|
||||||
{
|
{
|
||||||
if (entity.Type == OutStockType.Sal)
|
if (entity.Type == OutStockType.Sal)
|
||||||
@@ -968,8 +971,19 @@ namespace WMS.Web.Domain.Services
|
|||||||
AssembledApp_Nos.AddRange(entity.Details.SelectMany(s => s.ErpDetails).Select(s => s.SourceBillNo));
|
AssembledApp_Nos.AddRange(entity.Details.SelectMany(s => s.ErpDetails).Select(s => s.SourceBillNo));
|
||||||
else if (entity.Type == OutStockType.Miscellaneous)
|
else if (entity.Type == OutStockType.Miscellaneous)
|
||||||
MisDeliveryOut_Nos.AddRange(entity.Details.SelectMany(s => s.ErpDetails).Select(s => s.SourceBillNo));
|
MisDeliveryOut_Nos.AddRange(entity.Details.SelectMany(s => s.ErpDetails).Select(s => s.SourceBillNo));
|
||||||
|
else if (entity.Type == OutStockType.PickingOut)
|
||||||
|
PickingOut_Nos.AddRange(entity.Details.SelectMany(s => s.ErpDetails).Select(s => s.SourceBillNo));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (PickingOut_Nos.Count() > 0)
|
||||||
|
{
|
||||||
|
var erp_result = await _erpService.BillQueryForPickingOutStock(PickingOut_Nos, null);
|
||||||
|
if (!erp_result.IsSuccess)
|
||||||
|
return Result<List<ErpDeliveryNoticeOutStockResultDto>>.ReFailure(erp_result.Message, erp_result.Status);
|
||||||
|
erp_list.AddRange(erp_result.Data);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (SalOutStock_Nos.Count() > 0)
|
if (SalOutStock_Nos.Count() > 0)
|
||||||
{
|
{
|
||||||
var erp_result = await _erpService.BillQueryForSalOutStock(SalOutStock_Nos, null);
|
var erp_result = await _erpService.BillQueryForSalOutStock(SalOutStock_Nos, null);
|
||||||
|
|||||||
Reference in New Issue
Block a user