This commit is contained in:
admin
2021-02-02 10:33:46 +08:00
parent 6ca5454a22
commit ad0b20f20a
9 changed files with 64 additions and 10 deletions

View File

@@ -15,12 +15,12 @@ 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.fRefuseQuantity 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 where ISNULL( a.cverifier,'')<>'' and a.id in (select id from PO_Podetails where fRealQuantity<>iQuantity ) ";
Left Join PO_Podetails C WITH (NOLOCK) ON B.iPOsID = C.ID where ISNULL( a.cverifier,'')<>'' and a.id in (select id from PO_Podetails where isnull( fRefuseQuantity,0)<>isnull( iQuantity,0) ) ";
if (!string.IsNullOrEmpty(strWhere))
{
strSQL += $" and {strWhere} ";