diff --git a/NX.ERP.Model/Response/MOM/MomDetail.cs b/NX.ERP.Model/Response/MOM/MomDetail.cs
index 23f51ca..30cbb37 100644
--- a/NX.ERP.Model/Response/MOM/MomDetail.cs
+++ b/NX.ERP.Model/Response/MOM/MomDetail.cs
@@ -22,6 +22,8 @@ namespace NX.ERP.Model.MOM
public DateTime ProductOrderDate { get; set; }
+
+ public string ProductName { get; set; }
public string ProductCode { get; set; }
[Newtonsoft.Json.JsonIgnore]
diff --git a/NX.ERP.U8/Mom/MomOrderDAL.cs b/NX.ERP.U8/Mom/MomOrderDAL.cs
index 5449597..fe4ff36 100644
--- a/NX.ERP.U8/Mom/MomOrderDAL.cs
+++ b/NX.ERP.U8/Mom/MomOrderDAL.cs
@@ -179,7 +179,7 @@ namespace NX.ERP.U8.Mom
///
public IEnumerable GetDetails(string strWhere = "", object Param = null)
{
- var strSql = @"select b.MoId as id ,b.MoDId as ProductOrderDtlId,b.MoId as ProductOrderId,b.MoCode as ProductOrderNo,b.MakeDate as ProductOrderDate,b.InvCode as ProductCode,b.Qty as Qty,
+ var strSql = @"select b.MoId as id ,b.MoDId as ProductOrderDtlId,b.MoId as ProductOrderId,b.MoCode as ProductOrderNo,b.MakeDate as ProductOrderDate,b.InvCode as ProductCode,b.InvName as ProductName ,b.Qty as Qty,
d.AllocateId as id ,d.AllocateId as AllocateId,b.MoDId as ProductOrderDtlId,d.InvCode as MaterialCode,b.MoId as ProductOrderId, d.IssQty as IssQty,d.Qty
FROM v_st_mom_orderdetail b INNER JOIN
(SELECT modid as m_modid,allocateid,CREJECTCODE,IssQty,Qty,InvCode
@@ -192,7 +192,7 @@ namespace NX.ERP.U8.Mom
Where b.byproductflag=0
and ISNULL(b.Status,0) = 3
and ( isnull(b.bWorkshopTrans,0) = 0 or (isnull(b.bWorkshopTrans,0) =1
- and isnull(b.sfcflag,0) =1)) AND (1>0) AND (1>0) AND ( 1>0 )";
+ and isnull(b.sfcflag,0) =1)) ";
if (!string.IsNullOrEmpty(strWhere))
{
strSql += $" and {strWhere} ";