增加已经到货数量
This commit is contained in:
@@ -18,10 +18,11 @@ namespace NX.ERP.Model.Purchase
|
|||||||
public string BatchNo { get => batchNo; set => batchNo = value; }
|
public string BatchNo { get => batchNo; set => batchNo = value; }
|
||||||
public string UnitCode { get => unitCode; set => unitCode = value; }
|
public string UnitCode { get => unitCode; set => unitCode = value; }
|
||||||
public double Qty { get => quantity; set => quantity = value; }
|
public double Qty { get => quantity; set => quantity = value; }
|
||||||
|
public double RealQuantity { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 审批状态2 说明已经审核过了
|
/// 审批状态2 说明已经审核过了
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
||||||
private int arrivalID;
|
private int arrivalID;
|
||||||
private string batchNo;
|
private string batchNo;
|
||||||
private string unitCode;
|
private string unitCode;
|
||||||
|
|||||||
@@ -158,7 +158,6 @@ namespace NX.ERP.U8.Mom
|
|||||||
using (var conn = U8LoginContext.Instance.Connection)
|
using (var conn = U8LoginContext.Instance.Connection)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
conn.Query<Model.MOM.MomDetail, Model.MOM.MoAllocate, Model.MOM.MomDetail>(strSql, (OrderDetail, MoAllocate) =>
|
conn.Query<Model.MOM.MomDetail, Model.MOM.MoAllocate, Model.MOM.MomDetail>(strSql, (OrderDetail, MoAllocate) =>
|
||||||
{
|
{
|
||||||
if (!lookup.TryGetValue(OrderDetail.ProductOrderDtlId, out var _OrderDetail))
|
if (!lookup.TryGetValue(OrderDetail.ProductOrderDtlId, out var _OrderDetail))
|
||||||
|
|||||||
@@ -15,14 +15,15 @@ namespace NX.ERP.U8.Purchase
|
|||||||
B.Autoid as id,b.ID as ArrivalID,
|
B.Autoid as id,b.ID as ArrivalID,
|
||||||
b.cInvCode AS MaterialCode,
|
b.cInvCode AS MaterialCode,
|
||||||
b.cBatch AS BatchNo,
|
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.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
|
B.iQuantity as Quantity,b.iposid as PosId ,B.CORDERCODE as OrderCode,C.POID as Poid from
|
||||||
pu_ArrHead as a
|
pu_ArrHead as a
|
||||||
left join pu_arrbody as b on a.id=b.id
|
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))
|
if (!string.IsNullOrEmpty(strWhere))
|
||||||
{
|
{
|
||||||
strSQL += $" where {strWhere} ";
|
strSQL += $" and {strWhere} ";
|
||||||
}
|
}
|
||||||
var lookup = new Dictionary<int, Model.Purchase.Arrival>();
|
var lookup = new Dictionary<int, Model.Purchase.Arrival>();
|
||||||
// return conn.Query<Model.Purchase.Arrival>(strSQL,null);
|
// return conn.Query<Model.Purchase.Arrival>(strSQL,null);
|
||||||
|
|||||||
@@ -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
|
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
|
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))
|
if (!string.IsNullOrEmpty(strWhere))
|
||||||
{
|
{
|
||||||
strSql += $" where {strWhere} ";
|
strSql += $" and {strWhere} ";
|
||||||
}
|
}
|
||||||
|
|
||||||
using (var conn = U8LoginContext.Instance.Connection)
|
using (var conn = U8LoginContext.Instance.Connection)
|
||||||
|
|||||||
Reference in New Issue
Block a user