Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3548

Re: Query PLD for_Balance Qty when: Sales Invoice made w.r.t Sales order

$
0
0

I think u missed this. AND T2.BaseType = 17


SELECT DISTINCT T0.[DocNum]'SONo.', T0.[DocDate]'SODate', T0.[CardCode], T0.[CardName], T1.[ItemCode], T1.[Dscription], T1.[Quantity]'SOQty', T3.[DocNum]'InvNo.', T3.[DocDate]'InvDate', T2.[Quantity]'BillQty', (T1.[Quantity]- T2.[Quantity])'BalBillQty',datediff(dd,T0.[DocDate],T3.[DocDate])'No.of Days' FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.[DocEntry] = T1.[DocEntry] left join INV1 T2 on T2.[BaseEntry] =T1.docentry and T2.[BaseLine] = T1.[LineNum]


AND T2.BaseType = 17



inner JOIN OINV T3 ON T2.[DocEntry] = T3.[DocEntry]

 

 

WHERE (T1.[Quantity]- T2.[Quantity])>0 AND T3.[DocNum] = [%0]


Viewing all articles
Browse latest Browse all 3548

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>