Hi Clayton Schroeder
/* select * from oinv t1 */
DECLARE @D1 DATETIME
SET @D1= /* t1.docdate */ '[%0]'
select Docdate, ItemCode,Dscription As Itemname, sum(Outqty) As Sales,sum(inqty) As CreditNote,ClBal=(sum(outqty)-sum(inqty))
from oinm where transtype in ('13' , '14')
and docdate=@d1
group by ItemCode,docdate,Dscription
order by Itemcode
Regards
Kennedy