diff --git a/NX.ERP.Model/Response/Purchase/ArrivalDetail.cs b/NX.ERP.Model/Response/Purchase/ArrivalDetail.cs
index 9407616..4315b2b 100644
--- a/NX.ERP.Model/Response/Purchase/ArrivalDetail.cs
+++ b/NX.ERP.Model/Response/Purchase/ArrivalDetail.cs
@@ -18,10 +18,11 @@ namespace NX.ERP.Model.Purchase
public string BatchNo { get => batchNo; set => batchNo = value; }
public string UnitCode { get => unitCode; set => unitCode = value; }
public double Qty { get => quantity; set => quantity = value; }
+ public double RealQuantity { get; set; }
///
/// 审批状态2 说明已经审核过了
///
-
+
private int arrivalID;
private string batchNo;
private string unitCode;
diff --git a/NX.ERP.U8/Mom/MomOrderDAL.cs b/NX.ERP.U8/Mom/MomOrderDAL.cs
index b91cbcb..a0cc61d 100644
--- a/NX.ERP.U8/Mom/MomOrderDAL.cs
+++ b/NX.ERP.U8/Mom/MomOrderDAL.cs
@@ -158,7 +158,6 @@ namespace NX.ERP.U8.Mom
using (var conn = U8LoginContext.Instance.Connection)
{
-
conn.Query(strSql, (OrderDetail, MoAllocate) =>
{
if (!lookup.TryGetValue(OrderDetail.ProductOrderDtlId, out var _OrderDetail))
diff --git a/NX.ERP.U8/Purchase/ArrivalDAL.cs b/NX.ERP.U8/Purchase/ArrivalDAL.cs
index 55a060f..b9261b1 100644
--- a/NX.ERP.U8/Purchase/ArrivalDAL.cs
+++ b/NX.ERP.U8/Purchase/ArrivalDAL.cs
@@ -15,14 +15,15 @@ namespace NX.ERP.U8.Purchase
B.Autoid as id,b.ID as ArrivalID,
b.cInvCode AS MaterialCode,
b.cBatch AS BatchNo,
+ b.fRealQuantity as RealQuantity,
b.cUnitID AS UnitCode,b.ioricost as oricost,b.ioritaxcost as oritaxcost ,b.icost as cost,b.iorimoney as orimoney,b.ioritaxprice as oritaxprice,b.iorisum as orisum,
B.iQuantity as Quantity,b.iposid as PosId ,B.CORDERCODE as OrderCode,C.POID as Poid from
pu_ArrHead as a
left join pu_arrbody as b on a.id=b.id
- Left Join PO_Podetails C WITH (NOLOCK) ON B.iPOsID = C.ID ";
+ Left Join PO_Podetails C WITH (NOLOCK) ON B.iPOsID = C.ID where ISNULL( a.cverifier,'')<>'' ";
if (!string.IsNullOrEmpty(strWhere))
{
- strSQL += $" where {strWhere} ";
+ strSQL += $" and {strWhere} ";
}
var lookup = new Dictionary();
// return conn.Query(strSQL,null);
diff --git a/NX.ERP.U8/Sale/DispatchListDAL.cs b/NX.ERP.U8/Sale/DispatchListDAL.cs
index 38512fd..5f0f973 100644
--- a/NX.ERP.U8/Sale/DispatchListDAL.cs
+++ b/NX.ERP.U8/Sale/DispatchListDAL.cs
@@ -12,11 +12,11 @@ namespace NX.ERP.U8.Sale
{
var strSql = @"select a.DLID as SalesOrderId ,a.dDate as SalesOrderDate,a.cDLCode as SalesOrderNo ,A.cCusCode AS CustomerCode,b.DLID as id,b.AutoID as SalesOrderDtlId,b.DLID as SalesOrderId ,b.cInvCode as MaterialCode ,b.cInvName as InvName,b.iQuantity AS Qty
from DispatchList as a
- left join DispatchLists as b on a.DLID = b.DLID";
+ left join DispatchLists as b on a.DLID = b.DLID where ISNULL( a.cverifier,'')<>''";
if (!string.IsNullOrEmpty(strWhere))
{
- strSql += $" where {strWhere} ";
+ strSql += $" and {strWhere} ";
}
using (var conn = U8LoginContext.Instance.Connection)