diff --git a/NX.ERP.BLL/Store/SotreOut.cs b/NX.ERP.BLL/Store/SotreOut.cs index 2363f74..246b70a 100644 --- a/NX.ERP.BLL/Store/SotreOut.cs +++ b/NX.ERP.BLL/Store/SotreOut.cs @@ -69,7 +69,7 @@ namespace NX.ERP.BLL.Store ID = dal.AddVocher(new ERP.Model.Request.OtherStoreInOut() { Date = outBound.OutboundDate, - WhCode = outBound.Maker, + WhCode = outBound.WarehouseCode, Code= "19100032", Maker = outBound.Maker, details = outBound.OutboundDtlLst.ConvertAll(m => diff --git a/NX.ERP.U8/Mom/MomOrderDAL.cs b/NX.ERP.U8/Mom/MomOrderDAL.cs index 1163427..c1a832f 100644 --- a/NX.ERP.U8/Mom/MomOrderDAL.cs +++ b/NX.ERP.U8/Mom/MomOrderDAL.cs @@ -82,10 +82,15 @@ namespace NX.ERP.U8.Mom { where.Add(" a.moCode like @ProductOrderNo "); } + if (!string.IsNullOrEmpty(Params.ProductOrderendID)) + { + where.Add(" a.MoId >= @ProductOrderendID "); + } return this.GetOrders(string.Join(" and ", where.ToArray()), new { ProductCode = $"%{Params.ProductCode}%", - ProductOrderNo = $"{Params.ProductOrderNo}" + ProductOrderNo = $"{Params.ProductOrderNo}", + ProductOrderendID = $"{Params.ProductOrderendID}" }); }