修复无领料需求的错误
This commit is contained in:
@@ -64,9 +64,12 @@ namespace NX.ERP.U8.Mom
|
||||
{
|
||||
OrderDetail.SN.Add(SN);
|
||||
}
|
||||
Order.Allocates.Add(MoAllocate);
|
||||
OrderDetail.ProductAllocateOrderLst.Add(MoAllocate);
|
||||
MoAllocate.momDetail = OrderDetail;
|
||||
if (MoAllocate != null)
|
||||
{
|
||||
Order.Allocates.Add(MoAllocate);
|
||||
OrderDetail.ProductAllocateOrderLst.Add(MoAllocate);
|
||||
MoAllocate.momDetail = OrderDetail;
|
||||
}
|
||||
return Order;
|
||||
}, param, null, true, "id", 10, System.Data.CommandType.Text);
|
||||
return lookupOrder.Values;
|
||||
@@ -101,7 +104,7 @@ namespace NX.ERP.U8.Mom
|
||||
{
|
||||
where.Add(" b.InvCode like @ProductCode");
|
||||
}
|
||||
if (Params.ProductOrderNo != null)
|
||||
if (Params.ProductOrderNo != null && Params.ProductOrderNo.Count() > 0)
|
||||
{
|
||||
where.Add(" a.moCode in @ProductOrderNo ");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user