修改bug1
This commit is contained in:
@@ -457,7 +457,7 @@ namespace WMS.Web.Domain.Services
|
||||
{
|
||||
var current_order = erp_list.Where(x => x.BillNo == item).FirstOrDefault();
|
||||
var dto = new InStockTask();
|
||||
dto.Create((InstockType)current_order.Type, current_order.BillNo, current_order.CreateTime);
|
||||
dto.Create((InstockType)current_order.Type, current_order.BillNo, current_order.CreateTime, current_order.SupplierId);
|
||||
|
||||
//找到当前对应来源单据编号的集合数据
|
||||
var current_erp_details = erp_list.Where(x => x.BillNo == item).ToList();
|
||||
@@ -574,7 +574,7 @@ namespace WMS.Web.Domain.Services
|
||||
bool IsAny = details_Groups.Any(d => d.RealityQtyTotal != 0 && d.AccruedQtyTotal > d.RealityQtyTotal);
|
||||
if (IsAny)
|
||||
order.Status = InstockStatus.Part;
|
||||
else if (details_Groups.Sum(x => x.ReceiveQtyTotal) <= 0)
|
||||
else if (details_Groups.Sum(x => x.ReceiveQtyTotal) <= 0 && order.Type== InstockType.Purchase)
|
||||
order.Status = InstockStatus.Wait;
|
||||
else if (details_Groups.Sum(x => x.RealityQtyTotal) <= 0)
|
||||
order.Status = InstockStatus.WaitInStock;
|
||||
@@ -609,7 +609,7 @@ namespace WMS.Web.Domain.Services
|
||||
{
|
||||
var current_order = erp_list.Where(x => x.BillNo == item).FirstOrDefault();
|
||||
var dto = new InStockTask();
|
||||
dto.Create((InstockType)current_order.Type, current_order.BillNo, current_order.CreateTime);
|
||||
dto.Create((InstockType)current_order.Type, current_order.BillNo, current_order.CreateTime, current_order.SupplierId);
|
||||
|
||||
//找到当前对应来源单据编号的集合数据
|
||||
var current_erp_details = erp_list.Where(x => x.BillNo == item).ToList();
|
||||
|
||||
Reference in New Issue
Block a user