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

Re: Net Income by Job/Customer report

$
0
0

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


Viewing all articles
Browse latest Browse all 9236

Trending Articles